/*
  Shared styles of the public static pages: landing.html and documents.html (H10-T1, Wave 10).
  Tokens are the values of frontend/src/index.css, copied because these pages are served outside
  the React bundle; docs/design-system/VISUAL_RULES.md §13 lists the public-page rules. Each page
  keeps its own sections' styles in its <style> block, after this file.
*/
:root {
  color-scheme: light;
  --canvas: #F7F7F8; --surface: #FFFFFF; --sunken: #F4F4F5;
  --fg: #18181B; --fg-muted: #52525B; --fg-subtle: #6B6B76; --fg-on-accent: #FFFFFF;
  --border: #E4E4E7; --border-strong: #898992;
  --accent: #6D4AE5; --accent-hover: #5B3AD1; --accent-soft: #EEEAFD; --accent-soft-fg: #4C2DB8; --link: #5B3AD1;
  --success: #15803D; --success-soft: #E3F7EA; --success-soft-fg: #166534;
  --warning-soft: #FDF1D6; --warning-soft-fg: #92400E;
  --danger: #DC2626;
  --radius-sm: 6px; --radius-md: 10px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ring: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent);
  --font-sans: "Inter Variable", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.dark {
  color-scheme: dark;
  --canvas: #121215; --surface: #18181B; --sunken: #131316;
  --fg: #F4F4F5; --fg-muted: #A1A1AA; --fg-subtle: #909099;
  --border: #2A2A31; --border-strong: #6B6B76;
  --accent: #7257EE; --accent-hover: #6D4AE5; --accent-soft: #241D45; --accent-soft-fg: #B4A3FF; --link: #A78BFA;
  --success: #4ADE80; --success-soft: #0E2B1A; --success-soft-fg: #6EE7A0;
  --danger: #F87171;
}

/* Inter, self-hosted like the app (@fontsource-variable/inter copied to public/fonts/): no Google Fonts. */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
body { margin: 0; background: var(--canvas); color: var(--fg); font: 400 14px/20px var(--font-sans); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 768px) { .wrap { padding: 0 16px; } }
.lucide { width: 16px; height: 16px; flex: none; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: var(--radius-sm); font: 500 15px/1 var(--font-sans); border: 1px solid transparent; cursor: pointer; transition: background-color 150ms var(--ease), border-color 150ms var(--ease); white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: 2px solid transparent; box-shadow: var(--ring); }
.btn-primary { background: var(--accent); color: var(--fg-on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--fg); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--sunken); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.eyebrow { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-subtle); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Nav */
.nav { position: sticky; top: 0; z-index: 30; background: var(--canvas); border-bottom: 1px solid transparent; transition: border-color 200ms var(--ease); }
.nav.scrolled { border-bottom-color: var(--border); }
.nav .wrap { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); font-size: 18px; line-height: 26px; font-weight: 600; letter-spacing: -.01em; border-radius: var(--radius-sm); }
.brand:hover { text-decoration: none; }
.brand img { height: 24px; width: auto; display: block; }
.brand-sm { font-size: 14px; line-height: 20px; }
.brand-sm img { height: 20px; }
.nav-links { display: flex; gap: 24px; font-size: 14px; margin-right: auto; }
.nav-links a { color: var(--fg-muted); white-space: nowrap; border-radius: var(--radius-sm); }
.nav-links a:hover { color: var(--fg); text-decoration: none; }
.nav-cta { display: flex; gap: 8px; }
a:focus-visible { outline: 2px solid transparent; box-shadow: var(--ring); }
@media (max-width: 1000px) { .nav-links { display: none; } .nav .wrap { justify-content: space-between; } }
@media (max-width: 520px) { .nav-cta .btn-primary { display: none; } }

/* Sections */
section { scroll-margin-top: 64px; }
.sec { padding: 128px 0; }
.sec-h { max-width: 720px; }
.sec-h h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -.025em; margin-top: 12px; }
.sec-h p { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--fg-muted); }
.band { background: var(--canvas); color: var(--fg); }
@media (max-width: 768px) { .sec { padding: 80px 0; } }

footer { border-top: 1px solid var(--border); padding: 32px 0; font-size: 13px; color: var(--fg-subtle); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
footer nav a { color: var(--fg-subtle); }
footer nav a:hover { color: var(--fg); }
