/*
 * Labs Code website. The colours, type and radii follow the app's design
 * (apps/web/src/tokens.css): a warm black canvas, hairline borders, paper-white
 * ink for the one primary action and focus, green only for live work, amber
 * only for "your turn". Fonts are self-hosted (no Google Fonts).
 */

/* ---------------------------------------------------------------- fonts */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/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('/assets/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;
}
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url('/assets/fonts/jetbrains-mono-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: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url('/assets/fonts/jetbrains-mono-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;
}

/* ---------------------------------------------------------------- tokens */
:root {
  color-scheme: dark;
  --black: #1c1b1a;          /* page canvas */
  --bg: #262624;             /* the app's canvas: cards, frames */
  --bg-panel: #1f1e1d;
  --bg-raised: #2e2d2b;
  --bg-elevated: #30302e;
  --bg-hover: #2c2b29;
  --border: #3a3936;
  --border-soft: #2c2b29;
  --border-strong: #4b4a46;
  --text: #faf9f5;
  --text-muted: #c2c0b6;
  --text-faint: #a7a59c;
  --text-dim: #6f6d66;
  /* The ink: the one primary action is paper on the black, its words are black. */
  --accent: #f0eee6;
  --accent-hover: #ffffff;
  --accent-contrast: #1f1e1d;
  --accent-text: #ebe9e0;
  --accent-soft: rgba(250, 249, 245, .08);
  --accent-line: rgba(250, 249, 245, .42);
  --glow: rgba(250, 249, 245, .05);
  --warn: #e5a43a;
  --warn-soft: rgba(229, 164, 58, .12);
  --warn-line: rgba(229, 164, 58, .45);
  --ok: #4cc38a;

  --font: 'Inter Variable', 'Inter', 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono Variable', 'JetBrains Mono', 'Cascadia Code', 'SF Mono', Consolas, monospace;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --wrap: 1180px;
  --gutter: 24px;
  --header-h: 60px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--black);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--black);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  font-feature-settings: 'cv05' 1, 'cv08' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p a, li a, dd a, .link { color: var(--accent-text); text-decoration: underline; text-decoration-color: rgba(235, 233, 224, .35); text-underline-offset: 3px; transition: text-decoration-color .15s; }
p a:hover, li a:hover, dd a:hover, .link:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
code, kbd, .mono { font-family: var(--mono); font-variant-ligatures: none; }
code {
  font-size: .86em;
  padding: .12em .4em;
  border-radius: var(--radius-xs);
  background: var(--bg-raised);
  color: var(--text);
  word-break: break-word;
}
kbd {
  display: inline-flex;
  align-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  background: var(--bg-raised);
  color: var(--text-muted);
  font-size: 11px;
  justify-content: center;
}
.num { font-variant-numeric: tabular-nums; }
::selection { background: rgba(250, 249, 245, .22); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 2px; border-radius: var(--radius-sm); }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: 16px; top: -48px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 14px;
  font-weight: 500;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: calc(820px + var(--gutter) * 2); }

/* ---------------------------------------------------------------- buttons */
.btn {
  --btn-h: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--btn-h);
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  color: var(--text);
  font: 500 14px/1 var(--font);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s var(--ease);
}
.btn:hover { background: var(--bg-elevated); border-color: var(--border-strong); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; }
/* The one primary action: a paper pill, as in the app. */
.btn.primary { border-color: transparent; border-radius: 999px; background: var(--accent); color: var(--accent-contrast); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 10px 30px -14px rgba(250, 249, 245, .35); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-muted); }
.btn.ghost:hover { color: var(--text); background: var(--bg-hover); }
.btn.lg { --btn-h: 46px; padding: 0 22px; font-size: 15px; border-radius: 999px; }
.btn.sm { --btn-h: 32px; padding: 0 12px; font-size: 13px; }
.btn.block { width: 100%; }

/* One label per platform; detect.js sets html[data-os] before the first paint. */
[data-os-label] { display: none; }
html:not([data-os]) [data-os-label='default'],
html[data-os='windows'] [data-os-label='windows'],
html[data-os='mac'] [data-os-label='mac'],
html[data-os='linux'] [data-os-label='linux'],
html[data-os='mobile'] [data-os-label='default'],
html[data-os='other'] [data-os-label='default'] { display: inline; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(28, 27, 26, .76);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled, .site-header.open { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; height: 100%; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.brand img { width: 24px; height: 24px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav a { padding: 6px 10px; border-radius: var(--radius-sm); color: var(--text-muted); font-size: 14px; transition: color .15s, background-color .15s; }
.nav a:hover { color: var(--text); background: var(--bg-hover); }
.nav a[aria-current='page'] { color: var(--text); }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-button {
  display: none;
  width: 36px; height: 36px;
  margin-left: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-button svg { width: 18px; height: 18px; }
.menu-button .close-icon { display: none; }
.site-header.open .menu-button .open-icon { display: none; }
.site-header.open .menu-button .close-icon { display: block; }

@media (max-width: 760px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 12px var(--gutter) 20px;
    background: var(--black);
    border-bottom: 1px solid var(--border);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .18s, transform .18s var(--ease), visibility 0s .18s;
  }
  .nav a { padding: 12px 8px; font-size: 16px; color: var(--text); border-bottom: 1px solid var(--border-soft); border-radius: 0; }
  .site-header.open .nav { visibility: visible; opacity: 1; transform: none; transition: opacity .18s, transform .18s var(--ease); }
  .menu-button { display: inline-flex; }
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: 88px 0 0; text-align: center; isolation: isolate; }
.hero::before {
  content: '';
  position: absolute;
  inset: -120px 0 auto;
  height: 760px;
  z-index: -1;
  background:
    radial-gradient(ellipse 50% 42% at 50% 30%, var(--glow), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 255, 255, .035), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0 0 auto;
  height: 620px;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 20%, #000 20%, transparent 75%);
  pointer-events: none;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 12px 0 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(38, 38, 36, .8);
  color: var(--text-muted);
  font-size: 13px;
  transition: border-color .15s, color .15s;
}
.pill:hover { border-color: var(--border-strong); color: var(--text); }
.pill-tag { padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-weight: 500; font-size: 12px; }
.pill svg { width: 14px; height: 14px; color: var(--text-faint); }
.hero h1 {
  margin: 28px auto 0;
  max-width: 900px;
  font-size: clamp(40px, 6.6vw, 76px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.02;
}
.hero h1 .soft { color: var(--text-faint); }
.hero .lead {
  max-width: 640px;
  margin: 24px auto 0;
  color: var(--text-muted);
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.hero-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-top: 18px;
  color: var(--text-faint);
  font-size: 13px;
}
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 14px; height: 14px; color: var(--text-muted); }
.started {
  min-height: 22px;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 13px;
}
.started[hidden] { display: block; visibility: hidden; }

.showcase { position: relative; margin: 64px auto 0; max-width: 1240px; padding: 0 var(--gutter); }
.showcase::before {
  content: '';
  position: absolute;
  left: 10%; right: 10%; top: 4%;
  height: 60%;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(250, 249, 245, .07), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.frame {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg);
  padding: 6px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 40px 120px -30px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .06) inset;
}
.frame img { width: 100%; aspect-ratio: 16 / 10; border-radius: 9px; background: var(--bg); }
.showcase .frame { -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); }

/* ---------------------------------------------------------------- providers strip */
.providers { padding: 8px 0 24px; text-align: center; }
.providers p { color: var(--text-faint); font-size: 13px; }
.provider-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 16px auto 0;
  padding: 0;
  list-style: none;
  max-width: 860px;
}
.provider-list li {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 13px;
  background: rgba(38, 38, 36, .6);
}

/* ---------------------------------------------------------------- sections */
.section { padding: 112px 0; }
.section + .section { border-top: 1px solid var(--border-soft); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; margin-bottom: 14px; color: var(--accent-text); font-size: 13px; font-weight: 500; }
.section h2 { font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -.035em; line-height: 1.08; }
.section-head p { margin-top: 16px; color: var(--text-muted); font-size: 17px; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); overflow: hidden; }
.steps li { padding: 32px 28px 34px; }
.steps li + li { border-left: 1px solid var(--border); }
.step-num { display: block; color: var(--text-faint); font: 500 12px/1 var(--mono); letter-spacing: .02em; }
.steps h3 { margin-top: 28px; font-size: 19px; letter-spacing: -.015em; }
.steps p { margin-top: 10px; color: var(--text-muted); font-size: 15px; }
.steps .quote { display: block; margin-top: 16px; padding: 10px 12px; border-radius: var(--radius); background: var(--bg-raised); color: var(--text); font: 400 13px/1.5 var(--mono); }

/* feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 64px; }
.feature + .feature { margin-top: 120px; }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .feature-text { order: 2; }
.feature h3 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; line-height: 1.12; }
.feature-text > p { margin-top: 16px; color: var(--text-muted); font-size: 16px; }
.checks { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 28px; color: var(--text-muted); font-size: 15px; }
.checks li::before {
  content: '';
  position: absolute;
  left: 0; top: 3px;
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  background: var(--bg-raised) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a4a6ad' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checks b { color: var(--text); font-weight: 500; }
.team-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; padding: 0; list-style: none; }
.team-chips li { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--text-muted); font-size: 12.5px; }
.team-chips li.lead { color: var(--text); border-color: var(--border-strong); }
.your-turn { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 6px 12px; border: 1px solid var(--warn-line); border-radius: 999px; background: var(--warn-soft); color: var(--text); font-size: 13px; }
.your-turn::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.feature-media .frame img { aspect-ratio: auto; }
.feature-media.tall { max-width: 560px; justify-self: center; width: 100%; }

/* small feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--border); }
.grid li { padding: 28px 26px 30px; background: var(--black); transition: background-color .2s; }
.grid li:hover { background: var(--bg-panel); }
.tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-raised);
  color: var(--text);
}
.tile-icon svg { width: 17px; height: 17px; }
.grid h3 { margin-top: 18px; font-size: 16px; letter-spacing: -.01em; }
.grid p { margin-top: 8px; color: var(--text-muted); font-size: 14.5px; line-height: 1.6; }

/* privacy block */
.local { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.local-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.local-list li { display: grid; grid-template-columns: 34px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.local-list h3 { font-size: 16px; letter-spacing: -.01em; }
.local-list p { margin-top: 6px; color: var(--text-muted); font-size: 15px; }

/* faq */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
.faq-list { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  position: relative;
  display: block;
  padding: 22px 40px 22px 0;
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -.01em;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-sm);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute;
  right: 6px; top: 50%;
  width: 14px; height: 14px;
  margin-top: -7px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386878f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--text); }
.faq .answer { padding: 0 40px 24px 0; color: var(--text-muted); font-size: 15.5px; }
.faq .answer p + p { margin-top: 10px; }

/* closing call to action */
.cta {
  position: relative;
  overflow: hidden;
  padding: 88px 32px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, var(--glow), transparent 70%), var(--bg);
  text-align: center;
  isolation: isolate;
}
.cta h2 { font-size: clamp(30px, 4.6vw, 50px); letter-spacing: -.04em; }
.cta p { max-width: 560px; margin: 16px auto 0; color: var(--text-muted); font-size: 17px; }
.cta .hero-actions { margin-top: 32px; }

/* ---------------------------------------------------------------- inner pages */
.page { padding: 80px 0 112px; }
.page-head { max-width: 760px; }
.page-head.center { margin: 0 auto; text-align: center; }
.page-head h1 { font-size: clamp(36px, 5.4vw, 60px); letter-spacing: -.045em; line-height: 1.04; }
.page-head > p { margin-top: 18px; color: var(--text-muted); font-size: 18px; }
.meta-line { margin-top: 14px; color: var(--text-faint); font-size: 14px; }
.meta-line .mono { color: var(--text-muted); }

.download-hero { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 34px; }
.download-hero .alt { color: var(--text-faint); font-size: 13px; }
.download-hero .alt a { color: var(--text-muted); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.download-hero .alt a:hover { color: var(--text); }

.notice {
  margin: 32px auto 0;
  max-width: 760px;
  padding: 14px 16px;
  border: 1px solid var(--warn-line);
  border-radius: var(--radius);
  background: var(--warn-soft);
  color: var(--text);
  font-size: 14.5px;
}

.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 64px; }
.platform {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  transition: border-color .2s;
}
.platform.current { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line) inset; }
.platform-head { display: flex; align-items: center; gap: 12px; }
.platform-head svg { width: 26px; height: 26px; color: var(--text); }
.platform h2 { font-size: 20px; letter-spacing: -.02em; }
.platform .tag { margin-left: auto; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 500; visibility: hidden; }
.platform.current .tag { visibility: visible; }
.platform small { display: block; margin-top: 10px; color: var(--text-faint); font-size: 13.5px; }
.platform-links { display: grid; gap: 8px; margin-top: auto; padding-top: 24px; }
.platform-links .btn { justify-content: space-between; }
.size { color: inherit; opacity: .72; font: 400 12px/1 var(--mono); font-variant-numeric: tabular-nums; }

.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; margin-top: 24px; align-items: start; }
.card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
}
.card h2 { font-size: 20px; letter-spacing: -.02em; }
.card > p { margin-top: 10px; color: var(--text-muted); font-size: 15px; }
.card + .card { margin-top: 24px; }

.tabs { display: inline-flex; gap: 2px; margin-top: 18px; padding: 3px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-panel); }
.tabs button {
  height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font: 500 13px/1 var(--font);
  cursor: pointer;
}
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected='true'] { background: var(--bg-elevated); color: var(--text); box-shadow: 0 0 0 1px var(--border-strong) inset; }
.tab-panel { margin-top: 20px; }
.tab-panel[hidden] { display: none; }

.steps-list { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps-list li { position: relative; padding-left: 36px; color: var(--text-muted); font-size: 15px; counter-increment: s; }
.steps-list li::before {
  content: counter(s);
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  color: var(--text);
  font: 500 11.5px/20px var(--mono);
  text-align: center;
}
.steps-list b { color: var(--text); font-weight: 500; }
.hint { display: flex; gap: 10px; margin-top: 18px; padding: 12px 14px; border-radius: var(--radius); background: var(--bg-raised); color: var(--text-muted); font-size: 14px; }
.hint svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--text-faint); }

.req { margin: 16px 0 0; display: grid; gap: 0; }
.req div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); font-size: 14.5px; }
.req div:last-child { border-bottom: 0; }
.req dt { color: var(--text-faint); }
.req dd { margin: 0; color: var(--text); }

.notes { margin-top: 18px; color: var(--text-muted); font-size: 15px; }
.notes h3 { margin: 22px 0 8px; color: var(--text); font-size: 15px; letter-spacing: -.01em; }
.notes h3:first-child { margin-top: 0; }
.notes ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.notes li::marker { color: var(--text-dim); }
.notes p + p, .notes ul + p, .notes p + ul { margin-top: 10px; }
.notes strong { color: var(--text); font-weight: 500; }
.notes .muted { color: var(--text-faint); }
.notes-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border-soft); font-size: 14px; }

/* legal and contact */
.prose { max-width: 760px; margin-top: 48px; color: var(--text-muted); font-size: 16px; line-height: 1.7; }
.prose h2 { margin: 44px 0 12px; color: var(--text); font-size: 21px; letter-spacing: -.02em; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 12px; }
.prose ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.prose li::marker { color: var(--text-dim); }
.prose b, .prose strong { color: var(--text); font-weight: 500; }
.prose .summary { padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); }
.prose .summary ul { margin-top: 0; }
.prose hr { margin: 48px 0; border: 0; border-top: 1px solid var(--border); }
.prose [lang='en'] h2 { font-size: 18px; }

.contact { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 900px; margin-top: 48px; }
.contact .card h2 { font-size: 18px; }
.contact .mail { display: inline-flex; margin-top: 18px; }

.not-found { padding: 140px 0; text-align: center; }
.not-found .code { color: var(--text-faint); font: 500 13px/1 var(--mono); }
.not-found h1 { margin-top: 18px; font-size: clamp(34px, 5vw, 52px); letter-spacing: -.04em; }
.not-found p { margin-top: 14px; color: var(--text-muted); }
.not-found .hero-actions { margin-top: 30px; }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 40px; color: var(--text-faint); font-size: 14px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-top p { margin-top: 12px; max-width: 280px; }
.footer-col h2 { margin-bottom: 14px; color: var(--text); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--text-faint); transition: color .15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--border-soft); font-size: 13px; }

/* ---------------------------------------------------------------- reveal (only with JS, never for reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  html.js .reveal.in { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .feature, .feature.flip, .local, .faq, .split { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .feature-text { order: 0; }
  .feature + .feature { margin-top: 88px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .platforms { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .hero { padding-top: 56px; }
  .showcase { margin-top: 44px; }
  .steps { grid-template-columns: 1fr; }
  .steps li + li { border-left: 0; border-top: 1px solid var(--border); }
  .steps h3 { margin-top: 16px; }
  .contact { grid-template-columns: 1fr; }
  .page { padding: 56px 0 88px; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .header-cta .btn.sm { padding: 0 10px; }
  .hero-actions .btn { width: 100%; }
  .grid { grid-template-columns: 1fr; }
  .frame { padding: 4px; border-radius: 10px; }
  .frame img { border-radius: 7px; }
  .cta { padding: 64px 20px; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .req div { grid-template-columns: 1fr; gap: 2px; }
  .card { padding: 22px; }
  .tabs { display: flex; }
  .tabs button { flex: 1; padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* card spacing */
.card h2 + .steps-list, .card h2 + .notes { margin-top: 18px; }
.card .steps-list + p { margin-top: 18px; color: var(--text-muted); font-size: 14.5px; }

/* footer and closing details */
.site-footer .brand { color: var(--text); }
.footer-col a, .footer-col li a { color: var(--text-faint); text-decoration: none; }
.footer-col a:hover { color: var(--text); }
.cta { padding-bottom: 68px; }
.frame picture { display: block; }
@media (max-width: 560px) {
  .showcase .frame img { aspect-ratio: auto; }
}
.local .section-head, .faq .section-head { margin-bottom: 0; }
.notice.info { border-color: var(--border-strong); background: var(--bg-raised); }
