/* Clauso website: one shared stylesheet. No external fonts, no images from other hosts.
   Colours follow mobile/src/theme/tokens.ts (dark palette) and the app icon. */

:root {
  color-scheme: dark;
  --bg: #0a100e;            /* near-black green, matches the icon background */
  --bg-2: #0d1714;
  --surface: #121c19;
  --surface-2: #17231f;
  --border: #23312c;
  --text: #f8fafc;          /* tokens dark.textPrimary */
  --text-2: #a7b4c4;        /* between textSecondary and textPrimary for contrast on green-black */
  --muted: #7c8a9c;
  --accent: #10b981;        /* tokens dark.safe: the shield green */
  --accent-strong: #34d399;
  --accent-bg: #0f241c;     /* tokens dark.safeBg */
  --warning: #f59e0b;       /* tokens dark.warning */
  --warning-bg: #2a2112;    /* tokens dark.warningBg */
  --mark-bg: #fde047;
  --mark-text: #1c1917;
  --radius: 14px;
  --maxw: 1040px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: radial-gradient(1200px 600px at 50% -200px, #1b2e28 0%, rgba(10, 16, 14, 0) 70%), var(--bg);
  background-repeat: no-repeat;
  min-height: 100vh;
}

a { color: var(--accent-strong); text-underline-offset: 2px; }
a:hover { color: #6ee7b7; }
a:focus-visible, .btn:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 6px;
}

img { max-width: 100%; height: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #04130d; padding: 8px 14px; z-index: 10;
}
.skip-link:focus { left: 12px; top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 820px; }

/* ---------- header / nav ---------- */
.site-header { border-bottom: 1px solid var(--border); background: rgba(10, 16, 14, 0.85); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand:hover { color: var(--text); }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; align-items: center; font-size: 15px; }
.nav a { color: var(--text-2); text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .lang { border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; font-size: 13px; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 72px 0 40px; }
.hero-icon { width: 132px; height: 132px; border-radius: 30px; box-shadow: 0 20px 60px rgba(16, 185, 129, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.hero h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.1; letter-spacing: -0.02em; margin: 26px 0 6px; }
.hero .tagline { font-size: clamp(19px, 2.6vw, 23px); color: var(--text-2); margin: 10px auto 0; max-width: 640px; }
.hero .sub { color: var(--muted); font-size: 15px; margin-top: 14px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: 16px;
  text-decoration: none; border: 1px solid transparent; line-height: 1.2;
}
.btn-primary { background: var(--accent); color: #04130d; }
.btn-primary:hover { background: var(--accent-strong); color: #04130d; }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { color: var(--text); border-color: #355046; }
.btn small { display: block; font-weight: 500; font-size: 12px; opacity: 0.8; }
.btn .glyph { font-size: 22px; line-height: 1; }

/* ---------- sections ---------- */
section { padding: 44px 0; }
.section-title { font-size: clamp(26px, 3.6vw, 34px); letter-spacing: -0.015em; margin: 0 0 8px; text-align: center; }
.section-lead { text-align: center; color: var(--text-2); margin: 0 auto 30px; max-width: 640px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
}
.card h3 { margin: 10px 0 6px; font-size: 19px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.card ul { margin: 8px 0 0; padding-left: 20px; color: var(--text-2); font-size: 15.5px; }
.card li { margin: 4px 0; }
.icon-badge {
  width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-bg); color: var(--accent-strong); font-size: 20px; border: 1px solid #1d3d31;
}

.price { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 2px; }
.price span { font-size: 16px; font-weight: 500; color: var(--text-2); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-strong); background: var(--accent-bg); border: 1px solid #1d3d31; border-radius: 999px; padding: 2px 10px; }
.fineprint { color: var(--muted); font-size: 14px; line-height: 1.55; max-width: 780px; margin: 22px auto 0; text-align: center; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 30px; margin: 10px 0; color: var(--text-2); }
.check-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
.check-list strong { color: var(--text); }

/* ---------- placeholders and notices ---------- */
mark, .ph {
  background: var(--mark-bg); color: var(--mark-text); padding: 0 4px; border-radius: 4px;
  font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.draft-banner {
  background: var(--warning-bg); border: 1px solid #5c4210; color: #fde68a;
  border-radius: var(--radius); padding: 14px 18px; margin: 28px 0 8px; font-size: 15.5px;
}
.draft-banner strong { color: #fef3c7; }
.notice {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: 10px; padding: 14px 18px; color: var(--text-2); font-size: 15.5px;
}
.notice p { margin: 0.4em 0; }

/* ---------- legal / prose pages ---------- */
.prose { padding-top: 20px; padding-bottom: 60px; overflow-wrap: break-word; }
.prose h1 { font-size: clamp(28px, 4.4vw, 38px); line-height: 1.2; letter-spacing: -0.015em; margin: 26px 0 12px; }
.prose h2 { font-size: 24px; margin: 44px 0 10px; padding-top: 10px; border-top: 1px solid var(--border); letter-spacing: -0.01em; }
.prose h3 { font-size: 19px; margin: 30px 0 8px; }
.prose p, .prose li { color: #d9e1ea; }
.prose li { margin: 6px 0; }
.prose ul, .prose ol { padding-left: 24px; }
.prose code { font-family: var(--mono); font-size: 0.88em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; }
.prose blockquote {
  margin: 18px 0; padding: 12px 18px; border-left: 4px solid var(--warning);
  background: var(--warning-bg); border-radius: 8px; color: #fde68a;
}
.prose blockquote p { color: #fde68a; margin: 0.3em 0; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 30px 0; }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--border); border-radius: 10px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 560px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.prose th { background: var(--surface-2); color: var(--text); font-weight: 600; }
.prose td { color: #d0d9e3; }
.prose tr:last-child td { border-bottom: 0; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 22px; margin: 20px 0; font-size: 15px; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2 260px; column-gap: 28px; }
.toc li { margin: 3px 0; break-inside: avoid; }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--text); text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin: 10px 0; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; position: relative; padding-right: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 13px; font-size: 22px; color: var(--accent-strong); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 20px 16px; color: var(--text-2); }
.faq .answer p { margin: 0.5em 0; }
.faq .answer ul { margin: 0.5em 0; padding-left: 22px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 30px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer p { margin: 0; }

.center { text-align: center; }
.mt-0 { margin-top: 0; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 48px; }
  .hero-icon { width: 108px; height: 108px; border-radius: 25px; }
  .site-header .wrap { padding-top: 8px; padding-bottom: 8px; }
  .card { padding: 18px; }
}

@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .skip-link { display: none; }
  .prose p, .prose li, .prose td { color: #000; }
}
