/* Shared stylesheet for the marketing pages (index.html and the localised pages
   under /<lang>/). Deliberately NOT used by privacy.html or auth-callback.html:
   those two are standalone documents that must render even if this file 404s —
   auth-callback.html especially, since it is the password-reset page. */

:root {
  --bg: #ffffff;
  --fg: #1a1c1e;
  --muted: #5a6169;
  --accent: #2563eb;
  --accent-fg: #ffffff;
  --border: #e4e7eb;
  --card: #f7f8fa;
  --maxw: 60rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181c;
    --fg: #e6e8ea;
    --muted: #9aa2ab;
    --accent: #6ea8fe;
    --accent-fg: #10131a;
    --border: #2a2e35;
    --card: #1e2127;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--accent); }

/* Header ------------------------------------------------------------------ */
header.site { border-bottom: 1px solid var(--border); padding: 1.1rem 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.logo { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--fg); text-decoration: none; }
.logo span { color: var(--accent); }
header.site nav { display: flex; gap: 1.25rem; font-size: .95rem; align-items: center; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover { color: var(--fg); }

/* Language picker --------------------------------------------------------- */
.langs { position: relative; }
.langs summary {
  cursor: pointer; list-style: none; color: var(--muted); font-size: .95rem;
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover { color: var(--fg); }
.langs .menu {
  position: absolute; inset-inline-end: 0; top: 1.9rem; z-index: 10;
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: .4rem; min-width: 9rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  display: grid; gap: .1rem;
}
.langs .menu a {
  display: block; padding: .35rem .6rem; border-radius: 6px;
  text-decoration: none; color: var(--fg); font-size: .92rem;
}
.langs .menu a:hover { background: var(--card); }
.langs .menu a[aria-current="true"] { color: var(--accent); font-weight: 600; }

/* Hero -------------------------------------------------------------------- */
.hero { padding: 4.5rem 0 3.5rem; text-align: center; }
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.1rem);
  line-height: 1.1; letter-spacing: -0.025em;
  margin: 0 auto 1rem; max-width: 20ch;
}
.hero p.lede {
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  color: var(--muted); max-width: 46ch; margin: 0 auto 2rem;
}
.cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: .8rem 1.5rem; border-radius: 8px;
  font-weight: 600; text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-secondary { border-color: var(--border); color: var(--fg); background: var(--card); }
.hero .note { margin-top: 1.1rem; font-size: .9rem; color: var(--muted); }

/* Pillars ----------------------------------------------------------------- */
.pillars {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem; padding: 1rem 0 3.5rem;
}
.pillar { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1.4rem 1.35rem; }
.pillar h3 { margin: 0 0 .45rem; font-size: 1.05rem; }
.pillar p { margin: 0; color: var(--muted); font-size: .95rem; }
.pillar .icon { font-size: 1.5rem; line-height: 1; display: block; margin-bottom: .6rem; }

/* Sections ---------------------------------------------------------------- */
section { padding: 3.25rem 0; border-top: 1px solid var(--border); }
section h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); letter-spacing: -0.02em; margin: 0 0 .6rem; }
section > .wrap > p.sub { color: var(--muted); margin: 0 0 1.75rem; max-width: 58ch; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem 2rem; }
.feature h4 { margin: 0 0 .3rem; font-size: 1rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Pricing ----------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; }
.plan { border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; background: var(--card); }
.plan.featured { border-color: var(--accent); }
.plan h3 { margin: 0 0 .2rem; font-size: 1.1rem; }
.plan .price { font-size: 1.6rem; font-weight: 700; margin: .2rem 0 1rem; }
.plan ul { margin: 0; padding-inline-start: 1.15rem; color: var(--muted); font-size: .95rem; }
.plan li { margin: .35rem 0; }
.plan .plan-note { color: var(--muted); font-size: .9rem; margin: 1rem 0 0; }

/* Privacy callout --------------------------------------------------------- */
.privacy-callout {
  background: var(--card); border: 1px solid var(--border);
  border-inline-start: 3px solid var(--accent);
  border-radius: 10px; padding: 1.35rem 1.5rem;
}
.privacy-callout ul { margin: .75rem 0 0; padding-inline-start: 1.15rem; color: var(--muted); }
.privacy-callout li { margin: .35rem 0; }
.privacy-tail { margin-top: 1.25rem; }

/* Footer ------------------------------------------------------------------ */
footer.site { border-top: 1px solid var(--border); padding: 2.25rem 0 3rem; color: var(--muted); font-size: .9rem; }
footer.site .links { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-bottom: .9rem; }
.disclaimer { font-size: .85rem; color: var(--muted); margin-top: 1.25rem; }
