/* The public site (server/public-site): landing page and privacy page. A file rather than inline styles because
   the app's Content Security Policy allows only its own stylesheets. The colour tokens are the app's
   (src/styles.css :root and [data-theme='light']); keep both in step when one changes. */

:root {
  --background-primary: #000000;
  --background-secondary: #0f0f0f;
  --background-third: #1b1b1b;
  --alpha-subtle: rgba(255,255,255,.06);
  --alpha-rest: rgba(255,255,255,.08);
  --alpha-border: rgba(255,255,255,.12);
  --alpha-hover: rgba(255,255,255,.16);
  --text-primary: #ffffff;
  --text-secondary: rgba(255,255,255,.6);
  --text-tertiary: rgba(255,255,255,.55);
  --text-body: rgba(255,255,255,.78);
  --text-dark: #000000;
  --button-primary: #f2f2f2;
  --button-primary-hover: #dadada;
  --brand: #6851eb;
  --pink: #e046a4;
  --surface-soft: rgba(255,255,255,.025);
  --glow-a: rgba(255,160,82,.16);
  --glow-b: rgba(224,70,164,.14);
  --glow-c: rgba(104,81,235,.18);
  color-scheme: dark;
}

:root[data-theme='light'] {
  --background-primary: #ffffff;
  --background-secondary: #f7f8fa;
  --background-third: #eef0f4;
  --alpha-subtle: rgba(17,24,39,.09);
  --alpha-rest: rgba(17,24,39,.05);
  --alpha-border: rgba(17,24,39,.16);
  --alpha-hover: rgba(17,24,39,.10);
  --text-primary: #111827;
  --text-secondary: rgba(17,24,39,.78);
  --text-tertiary: rgba(17,24,39,.65);
  --text-body: rgba(17,24,39,.86);
  --text-dark: #ffffff;
  --button-primary: #111827;
  --button-primary-hover: #293344;
  --brand: #5b3cc4;
  --pink: #ad2679;
  --surface-soft: rgba(17,24,39,.025);
  --glow-a: rgba(255,160,82,.22);
  --glow-b: rgba(224,70,164,.14);
  --glow-c: rgba(104,81,235,.16);
  color-scheme: light;
}

* { 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; min-width: 320px; min-height: 100vh;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.5;
  color: var(--text-primary); background: var(--background-primary); font-synthesis: none; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
strong { font-weight: 600; color: var(--text-primary); }

.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; transform: translateY(-160%); padding: 10px 14px; border-radius: 8px; background: var(--button-primary); color: var(--text-dark); text-decoration: none; }
.skip-link:focus { transform: translateY(0); }

/* Brand lockup: the drawn C in front of "annyList", as in the app (src/components/BrandLockup.tsx). */
.brand-lockup { display: inline-flex; align-items: baseline; gap: 1.5px; color: inherit; text-decoration: none; line-height: 1; }
.brand-glyph { display: inline-block; width: 13.8px; height: 15.5px; flex: 0 0 auto; transform: translateY(.5px); }
.brand-glyph svg { display: block; width: 100%; height: 100%; overflow: visible; }
.brand-lockup strong { font-size: 20px; line-height: 24px; font-weight: 700; letter-spacing: -.02em; }

/* Header */
.site-header { border-bottom: 1px solid var(--alpha-subtle); background: var(--background-primary); }
.site-nav { max-width: 1120px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-nav-links { display: flex; align-items: center; gap: 22px; }
.site-nav-links > a:not(.button) { color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500; }
.site-nav-links > a:not(.button):hover { color: var(--text-primary); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--alpha-border); border-radius: 8px; background: var(--alpha-rest); color: var(--text-primary); font-size: 14px; line-height: 19px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color 150ms cubic-bezier(.15,.75,.3,1), border-color 150ms cubic-bezier(.15,.75,.3,1); }
.button:hover { background: var(--alpha-hover); border-color: var(--text-tertiary); }
.button.primary { background: var(--button-primary); border-color: transparent; color: var(--text-dark); }
.button.primary:hover { background: var(--button-primary-hover); }

/* Hero */
main { overflow-x: clip; }
.hero { position: relative; isolation: isolate; max-width: 1120px; margin: 0 auto; padding: 88px 24px 48px; }
.site-home .hero { padding-top: 112px; }
.hero::before {
  content: ''; position: absolute; inset: -140px 0 auto 0; height: 520px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(420px 260px at 18% 30%, var(--glow-a), transparent 70%),
    radial-gradient(460px 280px at 48% 10%, var(--glow-b), transparent 70%),
    radial-gradient(520px 300px at 78% 36%, var(--glow-c), transparent 70%);
  filter: blur(18px); opacity: .9;
}
.eyebrow { margin-bottom: 18px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; line-height: 17px; font-weight: 600; }
.hero h1 { max-width: 14ch; font-size: clamp(38px, 6.4vw, 66px); line-height: 1.02; letter-spacing: -.035em; }
.site:not(.site-home) .hero h1 { max-width: 18ch; font-size: clamp(32px, 5vw, 50px); }
.lede { max-width: 58ch; margin-top: 24px; color: var(--text-secondary); font-size: clamp(17px, 2vw, 20px); line-height: 1.5; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero-actions .button { min-height: 46px; padding: 0 20px; font-size: 15px; }
.hero-note { margin-top: 14px; color: var(--text-tertiary); font-size: 13px; }
.updated { margin-top: 36px; color: var(--text-tertiary); font-size: 13px; }
.updated time { font-family: 'Inconsolata', ui-monospace, monospace; font-weight: 600; font-size: 13.5px; }

/* Content */
.content { max-width: 1120px; margin: 0 auto; padding: 8px 24px 72px; }
.content section { max-width: 760px; padding: 48px 0; border-top: 1px solid var(--alpha-subtle); }
.content section:first-child { border-top: 0; padding-top: 24px; }
.content h2 { font-size: clamp(24px, 3vw, 30px); line-height: 1.2; letter-spacing: -.025em; }
.content h2 + * { margin-top: 20px; }
.content p { color: var(--text-body); font-size: 17px; line-height: 1.65; text-wrap: pretty; }
.content p + p { margin-top: 16px; }
.content a { color: var(--text-primary); text-decoration: underline; text-decoration-color: var(--alpha-border); text-underline-offset: 3px; }
.content a:hover { text-decoration-color: currentColor; }
.content ul, .content ol:not(.steps) { margin: 0; padding-left: 22px; display: grid; gap: 10px; color: var(--text-body); font-size: 17px; line-height: 1.6; }
.content li::marker { color: var(--text-tertiary); }

/* How it works: six numbered cards. */
.content section#how-it-works { max-width: none; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.steps li { display: grid; align-content: start; gap: 10px; padding: 22px 22px 24px; border: 1px solid var(--alpha-subtle); border-radius: 16px; background: var(--surface-soft); }
.step-number { font-family: 'Inconsolata', ui-monospace, monospace; font-weight: 600; font-size: 13px; letter-spacing: .04em; background: linear-gradient(90deg,#ffa052 0%,#e046a4 45%,#6851eb 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.015em; }
.steps p { font-size: 15.5px; line-height: 1.55; }

/* Score table */
.table-scroll { overflow-x: auto; margin-top: 24px; border: 1px solid var(--alpha-subtle); border-radius: 14px; background: var(--surface-soft); }
.table-scroll + p { margin-top: 20px; }
table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
caption { text-align: left; padding: 14px 16px 0; color: var(--text-tertiary); font-size: 13px; caption-side: top; }
th, td { padding: 14px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--alpha-subtle); color: var(--text-body); }
thead th { padding-top: 12px; padding-bottom: 10px; border-top: 0; color: var(--text-tertiary); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
tbody th { color: var(--text-primary); font-weight: 600; white-space: nowrap; }
td:last-child, thead th:last-child { text-align: right; font-family: 'Inconsolata', ui-monospace, monospace; font-weight: 600; font-size: 16px; color: var(--text-primary); white-space: nowrap; }
thead th:last-child { font-family: inherit; font-size: 12px; color: var(--text-tertiary); }

/* FAQ */
.faq { margin: 0; display: grid; }
.faq-item { padding: 22px 0; border-top: 1px solid var(--alpha-subtle); }
.faq-item:first-child { border-top: 0; padding-top: 4px; }
.faq dt h3 { font-size: 18px; line-height: 1.35; letter-spacing: -.01em; }
.faq dd { margin: 10px 0 0; }
.faq dd p { font-size: 16.5px; }

/* Footer */
.site-footer { border-top: 1px solid var(--alpha-subtle); background: var(--background-secondary); }
.site-footer-inner { max-width: 1120px; margin: 0 auto; padding: 40px 24px 56px; display: grid; gap: 18px; }
.site-footer-inner > p:first-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; }
.footer-tagline { color: var(--text-secondary); font-size: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer nav a { color: var(--text-secondary); font-size: 14px; text-decoration: none; }
.site-footer nav a:hover { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; }
.footer-small { color: var(--text-tertiary); font-size: 13px; }

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .site-nav, .hero, .content, .site-footer-inner { padding-left: 16px; padding-right: 16px; }
  .site-nav { padding-top: 14px; padding-bottom: 14px; }
  .site-nav-links { gap: 14px; }
  .site-nav-links > a:not(.button) { display: none; }
  .hero { padding-top: 56px; padding-bottom: 36px; }
  .site-home .hero { padding-top: 64px; }
  .hero-actions .button { flex: 1 1 auto; }
  .content section { padding: 36px 0; }
  .steps { grid-template-columns: 1fr; }
  .content p, .content ul, .content ol:not(.steps) { font-size: 16px; }
}
