/* Smargent's public website. Same tokens as the screens (docs/DESIGN.md): Anek Latin, its width axis
   doing the work; neel for links and actions, leaf for ready, haldi for "needs something".
   No scripts, no cookies, no tracking: light and dark follow the system setting. */

@font-face {
  font-family: "Anek Latin";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  font-stretch: 75% 125%;
  src: url(fonts/anek-latin.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;
}
@font-face {
  font-family: "Anek Latin";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  font-stretch: 75% 125%;
  src: url(fonts/anek-latin-ext.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+A720-A7FF;
}

:root {
  --paper: #f3f4f6;
  --surface: #ffffff;
  --sunken: #f7f8fa;
  --ink: #1a1d29;
  --muted: #5e6372;
  --line: #e2e4ea;
  --line-strong: #cdd1da;
  --neel: #283478;
  --neel-soft: #e9ebf6;
  --on-neel: #ffffff;
  --leaf: #1f7a55;
  --leaf-soft: #e3f2ea;
  --haldi: #9a6100;
  --haldi-ring: #d99a1e;
  --haldi-soft: #fbf1dc;
  color-scheme: light;
  font-family: "Anek Latin", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12141b;
    --surface: #191c25;
    --sunken: #1f2330;
    --ink: #e8e9ee;
    --muted: #9aa0b0;
    --line: #2a2f3d;
    --line-strong: #3a4052;
    --neel: #a3adf5;
    --neel-soft: #252b4a;
    --on-neel: #12141b;
    --leaf: #5cc79a;
    --leaf-soft: #173126;
    --haldi: #e7b04a;
    --haldi-ring: #e7b04a;
    --haldi-soft: #2e2615;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { font-size: 17px; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.55; }
a { color: var(--neel); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--neel); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--surface); padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 8px; z-index: 2; }
.skip:focus { top: 12px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } html { font-size: 16px; } }

/* Header and footer */
.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-stretch: 112.5%; font-weight: 720; font-size: 1.3rem; letter-spacing: 0.005em; }
.wordmark svg { flex: none; }
.top nav ul { list-style: none; display: flex; gap: 4px 20px; margin: 0; padding: 0; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 540; padding: 6px 0; display: inline-block; }
.top nav a:hover { color: var(--ink); }
.top nav a[aria-current="page"] { color: var(--neel); box-shadow: inset 0 -2px 0 var(--neel); }
@media (max-width: 600px) { .top .wrap { padding-top: 10px; padding-bottom: 6px; } .top nav ul { gap: 2px 16px; } }

.foot { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 40px; color: var(--muted); font-size: 0.92rem; }
.foot .wrap { display: grid; gap: 14px; }
.foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; }
.foot a { color: var(--muted); }
.foot p { margin: 0; }

/* Type */
h1, h2, h3 { line-height: 1.12; margin: 0; }
h1 { font-stretch: 87.5%; font-weight: 640; letter-spacing: -0.012em; font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-stretch: 87.5%; font-weight: 640; font-size: clamp(1.45rem, 2.6vw, 1.9rem); letter-spacing: -0.006em; }
h3 { font-weight: 640; font-size: 1.08rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 58ch; margin: 18px 0 0; }
.muted { color: var(--muted); }

/* Buttons */
.button { display: inline-block; background: var(--neel); color: var(--on-neel); text-decoration: none; font-weight: 600; padding: 11px 18px; border-radius: 10px; border: 1px solid var(--neel); }
.button:hover { filter: brightness(1.12); }
.button.quiet { background: transparent; color: var(--neel); border-color: var(--line-strong); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }

/* Home: hero */
.hero { padding: 64px 0 40px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 36px; } }

/* The one bold thing: a product as Smargent shows it, a mark per channel, and a proposal waiting. */
.board { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 0; }
.board-head { padding: 16px 18px 14px; border-bottom: 1px solid var(--line); }
.board-head strong { display: block; font-weight: 620; }
.board-head span { color: var(--muted); font-size: 0.9rem; }
.channels { list-style: none; margin: 0; padding: 6px 0; }
.channels li { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center; padding: 8px 18px; }
.channels li + li { border-top: 1px solid var(--line); }
.channels .state { font-size: 0.88rem; color: var(--muted); text-align: right; }
.channels .needs .state { color: var(--haldi); }
.mark { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.mark.ready { background: var(--leaf); }
.mark.needs { border: 2.5px solid var(--haldi-ring); }
.proposal { background: var(--sunken); border-top: 1px solid var(--line); padding: 16px 18px 18px; }
.proposal p { margin: 0 0 4px; }
.proposal .who { color: var(--muted); font-size: 0.88rem; }
.proposal .what { font-weight: 600; }
.proposal .pair { display: flex; gap: 8px; margin-top: 12px; }
.proposal .pair span { font-size: 0.9rem; font-weight: 600; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line-strong); color: var(--ink); }
.proposal .pair span:first-child { background: var(--neel); border-color: var(--neel); color: var(--on-neel); }
.board figcaption { padding: 10px 18px 14px; font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); }

/* Sections */
.section { padding: 56px 0 8px; }
.section > header { max-width: 62ch; margin-bottom: 26px; }
.section > header p { color: var(--muted); margin: 12px 0 0; }

.does { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.does > div { padding: 20px 22px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.does > div:nth-child(3n) { border-right: 0; }
.does > div:nth-last-child(-n+3) { border-bottom: 0; }
.does p { margin: 6px 0 0; color: var(--muted); }
@media (max-width: 860px) {
  .does { grid-template-columns: 1fr; }
  .does > div, .does > div:nth-child(3n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .does > div:last-child { border-bottom: 0; }
}

.for { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.for p { color: var(--muted); margin-top: 8px; max-width: 52ch; }
@media (max-width: 700px) { .for { grid-template-columns: 1fr; gap: 20px; } }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; border-left: 2px solid var(--line-strong); }
.steps li { counter-increment: step; position: relative; padding: 0 0 26px 30px; max-width: 64ch; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(step); position: absolute; left: -15px; top: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); border: 2px solid var(--neel); color: var(--neel); font-weight: 700; font-size: 0.9rem; display: grid; place-items: center; }
.steps p { color: var(--muted); margin: 4px 0 0; }

.offer { border: 1px solid var(--line); border-left: 4px solid var(--leaf); background: var(--surface); border-radius: 14px; padding: 26px 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.offer ul { margin: 14px 0 0; padding-left: 1.2em; }
.offer li { margin-bottom: 6px; }
@media (max-width: 700px) { .offer { grid-template-columns: 1fr; padding: 22px 20px; } }

/* Long-form pages: security, privacy, terms, contact */
.page { padding-top: 48px; }
.page > header { max-width: 66ch; margin-bottom: 32px; }
.prose { max-width: 70ch; }
.prose h2 { margin: 40px 0 12px; font-size: 1.4rem; }
.prose h3 { margin: 24px 0 8px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose table { border-collapse: collapse; width: 100%; margin: 4px 0 1.2em; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 620; background: var(--sunken); }
.prose tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin: 0 0 8px; max-width: 70ch; }
.toc ol { margin: 6px 0 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 4px; break-inside: avoid; }
@media (max-width: 600px) { .toc ol { columns: 1; } }

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; max-width: 760px; }
.facts li { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.facts li:last-child { border-bottom: 0; }
.facts .k { color: var(--muted); }
.facts .v { overflow-wrap: anywhere; }
@media (max-width: 600px) { .facts li { grid-template-columns: 1fr; gap: 2px; } }

.claims { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; max-width: 820px; }
.claims li { padding: 18px 22px 18px 50px; border-bottom: 1px solid var(--line); position: relative; }
.claims li:last-child { border-bottom: 0; }
.claims li::before { content: ""; position: absolute; left: 22px; top: 25px; width: 12px; height: 12px; border-radius: 50%; background: var(--leaf); }
.claims h3 { margin-bottom: 4px; }
.claims p { margin: 0; color: var(--muted); }
.claims.next li::before { background: transparent; border: 2.5px solid var(--haldi-ring); width: 12px; height: 12px; box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  .board .proposal { animation: arrive 0.6s 0.25s ease-out both; }
  @keyframes arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
