/* JetTalk: the only hand-written stylesheet. Colours come from tokens.css (copied from lyrai-site, generated there). */
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-cyrillic.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --col: 680px;       /* text column */
  --wide: 1080px;     /* feature grid */
  --gut: 32px;        /* page side padding */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s6: 24px; --s8: 32px; --s12: 48px; --s16: 64px; --s24: 96px;
  --t-xs: 13px; --t-sm: 14px; --t-md: 15px; --t-base: 16px; --t-h2: 22px; --t-h1: clamp(36px, 6vw, 56px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text); font: 400 var(--t-base)/1.6 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--strong); outline-offset: 3px; border-radius: 4px; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s6) calc(var(--gut) + env(safe-area-inset-right)) var(--s6) calc(var(--gut) + env(safe-area-inset-left));
}
.brand { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; color: var(--strong); text-decoration: none; }
.top nav { display: flex; gap: var(--s6); font-size: var(--t-sm); }
.top nav a { color: var(--muted); text-decoration: none; transition: color .2s; }
.top nav a:hover, .top nav a[aria-current] { color: var(--strong); }

main { flex: 1; width: 100%; padding: 0 var(--gut); }

/* Home */
.hero { max-width: var(--col); margin: var(--s24) auto var(--s16); text-align: center; }
.hero h1 { margin: 0 0 var(--s4); font-size: var(--t-h1); line-height: 1.05; letter-spacing: -0.035em; font-weight: 600; color: var(--strong); }
.hero p { margin: 0 auto; max-width: 34ch; font-size: 18px; color: var(--muted); text-wrap: balance; }
.hero .cta { display: inline-flex; margin-top: var(--s8); padding: var(--s3) var(--s6); border-radius: 999px;
  background: var(--strong); color: var(--on-strong); text-decoration: none; font-size: var(--t-md); font-weight: 500; transition: opacity .2s; }
.hero .cta:hover { opacity: .85; }

.feats-wrap { max-width: var(--wide); margin: 0 auto var(--s16); }
.feats-wrap h2 { margin: 0 0 var(--s8); font-size: var(--t-h2); font-weight: 600; letter-spacing: -0.02em; color: var(--strong); }
/* Three fixed columns (not CSS columns), so a group never jumps to another column with the window width. */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--s12); align-items: start; }
@media (max-width: 960px) { .feats { grid-template-columns: 1fr 1fr; } .feat-col:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s12); } }
@media (max-width: 600px) { .feats, .feat-col:last-child { grid-template-columns: 1fr; } }
.feat-group { break-inside: avoid; padding-top: var(--s4); margin-bottom: var(--s8); border-top: 1px solid var(--line); }
.feat-group h3 { display: flex; align-items: center; gap: var(--s2); margin: 0 0 var(--s4); font-size: var(--t-sm); font-weight: 600; color: var(--strong); }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.feat-group ul { margin: 0; padding: 0; list-style: none; }
.feat-group li { font-size: var(--t-md); line-height: 1.5; color: var(--muted); }
.feat-group li + li { margin-top: var(--s2); }
.feat-group b { font-weight: 500; color: var(--strong); }

/* Documents */
.doc { max-width: var(--col); margin: var(--s12) auto var(--s16); }
.doc h1 { margin: 0 0 var(--s2); font-size: 32px; line-height: 1.15; letter-spacing: -0.025em; font-weight: 600; color: var(--strong); }
.doc .lede { margin: 0 0 var(--s8); color: var(--muted); font-size: var(--t-md); }
.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { padding: var(--s4) 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 1px solid var(--line); }
.facts th { width: 38%; padding-right: var(--s6); font-weight: 400; color: var(--muted); font-size: var(--t-sm); }
.facts th span { display: block; color: var(--faint); font-size: var(--t-xs); }
.facts td { color: var(--strong); overflow-wrap: anywhere; }
.facts td span { display: block; color: var(--muted); font-size: var(--t-sm); }
.facts a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.facts a:hover { text-decoration-color: var(--strong); }
.num { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

.foot {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2) var(--s6);
  padding: var(--s8) var(--gut) calc(var(--s8) + env(safe-area-inset-bottom)); font-size: var(--t-xs); color: var(--faint);
}
.foot a { text-decoration: none; transition: color .2s; }
.foot a:hover { color: var(--muted); }

@media (max-width: 600px) {
  :root { --gut: 20px; }
  .hero { margin-top: var(--s16); }
  .facts th { width: 42%; padding-right: var(--s3); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
