/* =====================================================================
   Koltype site.css
   Shared styles for koltype.com. Plain CSS, no build step, no web fonts.

   COMPONENT REFERENCE (for the login, account and desktop-auth pages)
   ---------------------------------------------------------------------
   Page skeleton
     <link rel="stylesheet" href="/css/site.css">
     <script src="/js/site.js"></script>  in <head>, no defer. It applies the
     saved theme before first paint, then wires the nav toggle and theme button.
     Copy the <header class="site-header"> and <footer class="site-footer">
     markup from any marketing page. <main id="main" tabindex="-1"> is the
     skip-link target. Never use inline <script> or on* attributes (CSP).

   Layout
     .container          centered column, max 1200px, responsive side gutters
     .container-narrow   same, max 760px (forms, legal text)
     .section            vertical padding for a page section
     .section-tight      smaller vertical padding
     .page-head          title block at the top of an inner page
     .stack              vertical flex column; gap from --stack (default 1rem)
     .cluster            wrapping row with gap (buttons, badges)
     .grid .grid-2 .grid-3   responsive grids; collapse on small screens
     .shell-center       fills the viewport under the header, centers a child
     .panel              width-limited card for auth forms (max 440px)
                         usage: <div class="shell-center"><div class="card panel">...</div></div>

   Type
     h1 to h4 (or .h1 to .h4), .lead, .muted, .small, .eyebrow (mono label)
     .prose              long-form text (headings, lists, tables, links)
     kbd or .kbd         keycap, e.g. <kbd>Ctrl</kbd>

   Buttons (on <a> or <button>)
     .btn + one of:
       .btn-primary      signal coral, the main action (one per view)
       .btn-secondary    outlined
       .btn-ink          highest contrast (ink in light mode, white in dark)
       .btn-ghost        text-like
     sizes   .btn-sm  .btn-lg   width  .btn-block
     states  :disabled or [aria-disabled="true"]; [aria-busy="true"] shows a spinner

   Cards
     .card               surface, border, radius, padding
     .card-raised        adds a shadow
     .card-accent        signal coral top edge

   Forms
     .field              wrapper: label, control, then help or error text
     .label .input .select .textarea .help .field-error
     .input-code         one-time code entry (mono, letter-spaced, centered)
     .check              <label class="check"><input type="checkbox"> Text</label>
     invalid             aria-invalid="true" on the control, plus .field-error text
                         linked with aria-describedby

   Alerts   .alert + .alert-info | .alert-success | .alert-warning | .alert-error
            use role="status" for info/success and role="alert" for errors
   Badges   .badge + .badge-signal | .badge-success | .badge-warning | .badge-muted
   Tables   <div class="table-wrap"><table class="table">...</table></div>
            the wrapper scrolls sideways on small screens
   Misc     .divider  .sr-only  .spinner  .skip-link  .center

   Tokens: every color, radius, shadow and font is a custom property on :root.
   Theme: follows the OS via prefers-color-scheme; <html data-theme="light">
   or data-theme="dark" overrides it (site.js stores the choice).
   ===================================================================== */

/* ---------- 1. Tokens (light) ---------- */
:root {
  --font-display: "Segoe UI Variable Display", "Segoe UI Variable", "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Segoe UI Variable Text", "Segoe UI Variable", "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Mono", "Cascadia Code", ui-monospace, "SF Mono", Consolas, Menlo, monospace;

  --c-bg: #F7F8FA;
  --c-surface: #FFFFFF;
  --c-surface-2: #EEF1F5;
  --c-mist: #E2E8F1;
  --c-text: #0D1117;
  --c-text-2: #485260;
  --c-text-3: #5C6675;
  --c-line: #DDE2E9;
  --c-line-strong: #C2C9D3;
  --c-field-line: #858F9E;       /* form control borders: 3.27:1 on #FFFFFF, 3.08:1 on #F7F8FA */

  --c-signal: #FF5A36;
  --c-signal-hover: #F2471F;
  --c-on-signal: #0D1117;
  --c-signal-text: #C0391B;
  --c-signal-soft: #FFE8E1;

  --c-band: #0D1117;
  --c-focus: #C0391B;
  --c-header: rgba(247, 248, 250, 0.86);

  --c-success: #0B6E47;  --c-success-bg: #E1F4EA;  --c-success-line: #A8DCC1;
  --c-warning: #7A4F00;  --c-warning-bg: #FFF2D2;  --c-warning-line: #EBCB82;
  --c-error: #B3261E;    --c-error-bg: #FDEBE9;    --c-error-line: #F1B6B0;
  --c-info: #1D4F9E;     --c-info-bg: #E5EDFA;     --c-info-line: #B5C9EC;

  --shadow-1: 0 1px 2px rgba(13, 17, 23, 0.06), 0 1px 1px rgba(13, 17, 23, 0.04);
  --shadow-2: 0 18px 40px -18px rgba(13, 17, 23, 0.28), 0 2px 6px rgba(13, 17, 23, 0.05);
  --shadow-3: 0 44px 80px -36px rgba(13, 17, 23, 0.55);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-pill: 999px;

  --t-xs: 0.8125rem;
  --t-sm: 0.875rem;
  --t-base: 1rem;
  --t-md: 1.125rem;
  --t-lg: 1.3125rem;
  --t-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --t-2xl: clamp(2.125rem, 1.45rem + 2.7vw, 3.375rem);
  --t-hero: clamp(3rem, 1.6rem + 5.4vw, 6rem);

  --container: 1200px;
  --container-narrow: 760px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
}

/* ---------- 1b. Tokens (dark): OS preference, unless forced light ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-bg: #0D1117;
    --c-surface: #141A23;
    --c-surface-2: #1A212C;
    --c-mist: #222B38;
    --c-text: #EEF1F5;
    --c-text-2: #B0BAC7;
    --c-text-3: #8E99A9;
    --c-line: #242D3A;
    --c-line-strong: #364253;
    --c-field-line: #667385;     /* 3.62:1 on #141A23 */
    --c-signal: #FF6A47;
    --c-signal-hover: #FF8264;
    --c-on-signal: #0D1117;
    --c-signal-text: #FF8A6B;
    --c-signal-soft: #331912;
    --c-band: #141A23;
    --c-focus: #FF8A6B;
    --c-header: rgba(13, 17, 23, 0.82);
    --c-success: #5CD6A0;  --c-success-bg: #0F2A1F;  --c-success-line: #1E4D39;
    --c-warning: #F2C14E;  --c-warning-bg: #2D2410;  --c-warning-line: #5A4718;
    --c-error: #FF8F85;    --c-error-bg: #3A1714;    --c-error-line: #6A2A25;
    --c-info: #8DB8FF;     --c-info-bg: #12233D;     --c-info-line: #27426E;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-2: 0 18px 40px -18px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.3);
    --shadow-3: 0 44px 80px -36px rgba(0, 0, 0, 0.9);
    color-scheme: dark;
  }
}

/* ---------- 1c. Tokens (dark): forced by data-theme ---------- */
:root[data-theme="dark"] {
  --c-bg: #0D1117;
  --c-surface: #141A23;
  --c-surface-2: #1A212C;
  --c-mist: #222B38;
  --c-text: #EEF1F5;
  --c-text-2: #B0BAC7;
  --c-text-3: #8E99A9;
  --c-line: #242D3A;
  --c-line-strong: #364253;
  --c-field-line: #667385;
  --c-signal: #FF6A47;
  --c-signal-hover: #FF8264;
  --c-on-signal: #0D1117;
  --c-signal-text: #FF8A6B;
  --c-signal-soft: #331912;
  --c-band: #141A23;
  --c-focus: #FF8A6B;
  --c-header: rgba(13, 17, 23, 0.82);
  --c-success: #5CD6A0;  --c-success-bg: #0F2A1F;  --c-success-line: #1E4D39;
  --c-warning: #F2C14E;  --c-warning-bg: #2D2410;  --c-warning-line: #5A4718;
  --c-error: #FF8F85;    --c-error-bg: #3A1714;    --c-error-line: #6A2A25;
  --c-info: #8DB8FF;     --c-info-bg: #12233D;     --c-info-line: #27426E;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 18px 40px -18px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-3: 0 44px 80px -36px rgba(0, 0, 0, 0.9);
  color-scheme: dark;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -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(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { display: block; max-width: 100%; }

h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1, .h1 { font-size: var(--t-2xl); letter-spacing: -0.035em; line-height: 1.04; }
h2, .h2 { font-size: clamp(1.75rem, 1.25rem + 2vw, 2.75rem); letter-spacing: -0.03em; line-height: 1.08; }
h3, .h3 { font-size: 1.1875rem; letter-spacing: -0.01em; line-height: 1.25; }
h4, .h4 { font-size: 1.0625rem; letter-spacing: -0.005em; line-height: 1.3; }
.h5 { margin: 0; font-size: 0.9375rem; font-weight: 700; line-height: 1.3; }
mark.placeholder { padding: 0 0.25em; border-radius: 4px; background: var(--c-warning-bg); color: var(--c-warning); font-weight: 600; }

p { margin: 0; text-wrap: pretty; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 2px; }

ul, ol { margin: 0; }
strong, b { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: 0; }
code { font-family: var(--font-mono); font-size: 0.9em; }

:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
}
main:focus { outline: none; }

::selection { background: var(--c-signal); color: var(--c-on-signal); }

/* ---------- 3. Utilities ---------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -200px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--r-md);
  background: var(--c-text);
  color: var(--c-bg);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus, .skip-link:focus-visible { top: 12px; }

.center { text-align: center; }
.muted { color: var(--c-text-2); }
.small { font-size: var(--t-sm); }
.nowrap { white-space: nowrap; }
.divider { border: 0; border-top: 1px solid var(--c-line); margin: 32px 0; }

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--c-text-2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-signal-text);
}

kbd, .kbd {
  display: inline-block;
  min-width: 2.3em;
  padding: 0.08em 0.5em 0.14em;
  border: 1px solid var(--c-line-strong);
  border-bottom-width: 3px;
  border-radius: 7px;
  background: var(--c-surface);
  color: var(--c-text);
  font-family: var(--font-mono);
  font-size: 0.8em;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  vertical-align: 0.1em;
  white-space: nowrap;
}

.icon { width: 20px; height: 20px; flex: none; }

/* ---------- 4. Layout ---------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.container-narrow {
  width: min(100% - 2 * var(--gutter), var(--container-narrow));
  margin-inline: auto;
}

.section { padding-block: clamp(64px, 8vw, 120px); }
.section-tight { padding-block: clamp(40px, 5vw, 72px); }
.section-alt { background: var(--c-surface); border-block: 1px solid var(--c-line); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head > * + * { margin-top: 14px; }
.section-head.center { margin-inline: auto; }

.stack { display: flex; flex-direction: column; gap: var(--stack, 1rem); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cluster, 12px); }

.grid { display: grid; gap: var(--grid-gap, 20px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
}

.shell-center {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: grid;
  place-items: center;
  padding: 48px var(--gutter);
}
.panel { width: 100%; max-width: 440px; }

.page-head { padding-block: clamp(44px, 7vw, 96px) clamp(28px, 3.5vw, 48px); }
.page-head > * + * { margin-top: 16px; }
.page-head .lead { max-width: 44rem; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 46px;
  padding: 0.7em 1.3em;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s var(--ease), box-shadow 0.18s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }

.btn-primary { background: var(--c-signal); color: var(--c-on-signal); box-shadow: 0 1px 0 rgba(13, 17, 23, 0.12); }
.btn-primary:hover { background: var(--c-signal-hover); }

.btn-secondary { background: var(--c-surface); color: var(--c-text); border-color: var(--c-line-strong); }
.btn-secondary:hover { border-color: var(--c-text); }

.btn-ink { background: var(--c-text); color: var(--c-bg); }
.btn-ink:hover { background: var(--c-text-2); }

.btn-ghost { background: transparent; color: var(--c-text); }
.btn-ghost:hover { background: var(--c-surface-2); }

.btn-sm { min-height: 38px; padding: 0.45em 1em; font-size: 0.9375rem; }
.btn-lg { min-height: 54px; padding: 0.8em 1.6em; font-size: 1.0625rem; }
.btn-block { display: flex; width: 100%; }

.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { position: relative; color: transparent !important; pointer-events: none; }
.btn[aria-busy="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px; height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  border-color: var(--c-on-signal) var(--c-on-signal) transparent transparent;
  animation: spin 0.7s linear infinite;
}
.btn-secondary[aria-busy="true"]::after,
.btn-ghost[aria-busy="true"]::after { border-color: var(--c-text) var(--c-text) transparent transparent; }
.btn-ink[aria-busy="true"]::after { border-color: var(--c-bg) var(--c-bg) transparent transparent; }

.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid var(--c-line-strong);
  border-top-color: var(--c-signal);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 6. Cards, badges, alerts ---------- */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 32px);
}
.card-raised { box-shadow: var(--shadow-2); }
.card-accent { border-top: 3px solid var(--c-signal); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--c-surface-2);
  color: var(--c-text-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge-signal { background: var(--c-signal-soft); color: var(--c-signal-text); }
.badge-success { background: var(--c-success-bg); color: var(--c-success); }
.badge-warning { background: var(--c-warning-bg); color: var(--c-warning); }
.badge-muted { background: transparent; border: 1px solid var(--c-line-strong); color: var(--c-text-2); }

.alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-surface-2);
  color: var(--c-text);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.alert > * + * { margin-top: 0; }
.alert-stack { flex-direction: column; align-items: stretch; }   /* text above its buttons, e.g. the payment notice */
.alert strong { display: block; }
.alert-info { background: var(--c-info-bg); border-color: var(--c-info-line); }
.alert-info strong { color: var(--c-info); }
.alert-success { background: var(--c-success-bg); border-color: var(--c-success-line); }
.alert-success strong { color: var(--c-success); }
.alert-warning { background: var(--c-warning-bg); border-color: var(--c-warning-line); }
.alert-warning strong { color: var(--c-warning); }
.alert-error { background: var(--c-error-bg); border-color: var(--c-error-line); }
.alert-error strong { color: var(--c-error); }

/* ---------- 7. Forms ---------- */
.field { display: grid; gap: 6px; }
.field + .field { margin-top: 18px; }
.label { font-size: 0.9375rem; font-weight: 600; color: var(--c-text); }

.input, .select, .textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7em 0.9em;
  border: 1px solid var(--c-field-line);
  border-radius: var(--r-md);
  background: var(--c-surface);
  color: var(--c-text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.select {
  appearance: none;
  padding-right: 2.4em;
  background-image: linear-gradient(45deg, transparent 50%, var(--c-text-2) 50%), linear-gradient(135deg, var(--c-text-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.input::placeholder, .textarea::placeholder { color: var(--c-text-3); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--c-text-3); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible {
  outline: none;
  border-color: var(--c-focus);
  box-shadow: 0 0 0 3px var(--c-signal-soft), 0 0 0 1px var(--c-focus);
}
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--c-error); }
.input:disabled, .select:disabled, .textarea:disabled { opacity: 0.6; cursor: not-allowed; }
/* a select with its own Save button (the cap for extra minutes); the button drops below on narrow screens */
.cap-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.cap-row .select { flex: 1 1 340px; width: auto; min-width: 0; }

.input-code {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.45em;
  text-align: center;
  padding-left: 1.2em;
}

.help { font-size: var(--t-sm); color: var(--c-text-3); }
.field-error { font-size: var(--t-sm); font-weight: 600; color: var(--c-error); }

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9375rem;
  cursor: pointer;
}
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--c-signal); flex: none; }

/* ---------- 8. Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-surface);
}
.table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.table th, .table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--c-line);
}
.table tr:last-child > th, .table tr:last-child > td { border-bottom: 0; }
.table thead th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-2);
  background: var(--c-surface-2);
}
.table tbody th { font-weight: 600; }

/* ---------- 9. Header and navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-header);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--c-line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--c-text);
  text-decoration: none;
  border-radius: var(--r-sm);
}
.brand-mark { width: 32px; height: 32px; flex: none; }
.bm-bg { fill: var(--c-text); }
.bm-stem { fill: var(--c-bg); }
.bm-bar { fill: var(--c-signal); }

.site-nav { display: flex; align-items: center; gap: 8px; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border-radius: var(--r-pill);
  color: var(--c-text-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.nav-list a:hover { color: var(--c-text); background: var(--c-surface-2); }
.nav-list a[aria-current="page"] { color: var(--c-text); font-weight: 600; }
.nav-list a.nav-download {
  margin-inline: 6px;
  padding: 0 16px;
  background: var(--c-signal);
  color: var(--c-on-signal);
  font-weight: 600;
  gap: 7px;
}
.nav-list a.nav-download:hover { background: var(--c-signal-hover); }
.nav-download .icon { width: 16px; height: 16px; }

.theme-toggle, .nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--c-text-2);
  cursor: pointer;
}
.theme-toggle:hover, .nav-toggle:hover { color: var(--c-text); border-color: var(--c-line-strong); }
.theme-toggle .icon, .nav-toggle .icon { width: 19px; height: 19px; }
.theme-toggle { display: none; }
.js .theme-toggle { display: inline-grid; }

/* the icon shows the theme you will switch TO */
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}

.nav-toggle { display: none; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }
.nav-toggle[aria-expanded="true"] .i-menu { display: none; }

@media (max-width: 860px) {
  .js .nav-toggle { display: inline-grid; }
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px var(--gutter) 22px;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow-2);
  }
  .js .site-nav.is-open { display: flex; }
  .js .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .js .nav-list a { min-height: 50px; padding: 0 12px; font-size: 1.0625rem; border-radius: var(--r-md); }
  .js .nav-list a.nav-download { justify-content: center; margin: 10px 0 0; border-radius: var(--r-pill); }
  .js .theme-toggle { align-self: flex-start; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 10px; }
  html:not(.js) .nav-list { flex-wrap: wrap; }
}

/* ---------- 10. Footer ---------- */
.site-footer {
  padding-block: 64px 32px;
  border-top: 1px solid var(--c-line);
  background: var(--c-surface);
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer-brand p { margin-top: 14px; color: var(--c-text-2); max-width: 22rem; }
.footer-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-3);
}
.footer-links { display: grid; gap: 9px; list-style: none; padding: 0; }
.footer-links a { color: var(--c-text-2); text-decoration: none; }
.footer-links a:hover { color: var(--c-text); text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--c-line);
  color: var(--c-text-3);
  font-size: var(--t-sm);
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 11. Hero ---------- */
.hero { padding-block: clamp(36px, 6vw, 84px) clamp(64px, 8vw, 112px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.hero-title {
  margin: 20px 0 24px;
  font-size: var(--t-hero);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.caret {
  display: inline-block;
  width: 0.07em;
  height: 0.8em;
  margin-left: 0.06em;
  border-radius: 2px;
  background: var(--c-signal);
  vertical-align: -0.02em;
  animation: blink 1.06s steps(1, end) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-lead { max-width: 34rem; }
.hero-lead kbd { font-size: 0.78em; }
.hero-ctas { margin-top: 32px; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
  color: var(--c-text-2);
  font-size: var(--t-sm);
}
.hero-facts li { display: inline-flex; align-items: center; gap: 9px; }
.hero-facts li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-signal);
}

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 44rem; }
}

/* ---------- 12. Hero demo (the Flow bar stage) ---------- */
.demo { position: relative; }
.demo-frame { position: relative; --c-focus: #FF8A6B; }
.demo-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(16px, 2.6vw, 28px) clamp(16px, 2.6vw, 28px) 84px;
  border: 1px solid #1F2835;
  border-radius: var(--r-xl);
  background:
    radial-gradient(110% 80% at 90% -10%, #22314A 0%, rgba(34, 49, 74, 0) 60%),
    radial-gradient(80% 60% at 0% 110%, #2A1A1A 0%, rgba(42, 26, 26, 0) 60%),
    #0F151E;
  box-shadow: var(--shadow-3);
}
.demo-windows { display: grid; }
.demo-window {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #FFFFFF;
  color: #0D1117;
  box-shadow: 0 26px 50px -24px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.demo-window.is-active { opacity: 1; transform: none; }

.win-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 38px;
  padding: 0 8px 0 14px;
  border-bottom: 1px solid #E3E7EC;
  background: #F1F3F6;
  color: #3F4855;
  font-size: 12.5px;
}
.win-app { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.win-app em { font-style: normal; font-weight: 400; color: #6B7480; }
.win-icon { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.win-icon-mail { background: #2F6FDB; }
.win-icon-chat { background: #1F9D63; }
.win-icon-code { background: #0E8FA3; }
.win-ctrl { width: 92px; height: 12px; flex: none; color: #4A5462; }

.win-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 236px;
  padding: 16px 20px 22px;
  font-size: 15px;
  line-height: 1.55;
}
.mail-row {
  display: flex;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid #EDF0F3;
  color: #1F2630;
  font-size: 13.5px;
}
.mail-row span { width: 58px; flex: none; color: #5C6675; }
.win-text { margin-top: 16px; font-size: 15.5px; color: #0D1117; }

.typed {
  border-radius: 4px;
  transition: background-color 1.6s ease;
}
.typed.is-pending { display: none; }
.typed.is-flash { background-color: #FFD9CE; transition: none; }
.tcaret {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  margin-left: 1px;
  background: #0D1117;
  vertical-align: -0.24em;
  animation: blink 1.06s steps(1, end) infinite;
}

.chat-thread { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.chat-day { align-self: center; font-size: 11.5px; color: #5C6675; }
.chat-msg {
  align-self: flex-start;
  max-width: 82%;
  padding: 8px 12px;
  border-radius: 14px 14px 14px 4px;
  background: #EEF1F5;
  font-size: 14px;
  line-height: 1.45;
}
.chat-msg b { display: block; font-size: 11.5px; font-weight: 600; color: #1F7A4E; }
.chat-compose {
  margin-top: auto;
  padding: 10px 14px;
  border: 1px solid #DDE2E9;
  border-radius: 20px;
  font-size: 14.5px;
  min-height: 44px;
}

.code-body { padding: 14px 0 18px; background: #FBFCFD; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.75; color: #24292F; }
.code-line { display: grid; grid-template-columns: 44px minmax(0, 1fr); white-space: pre-wrap; }
.code-line .ln { padding-right: 14px; text-align: right; color: #8C959F; }
.code-line.is-current { background: #F1F4F8; }
.tk-k { color: #0B57D0; }
.tk-f { color: #8A3FFC; }
.tk-s { color: #0B7A55; }
.tk-c { color: #5B7F3A; }
.code-body .typed { color: #5B7F3A; }
.code-body .tcaret { height: 1.25em; }

/* Flow bar pill */
.flowbar {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 60px;
  height: 16px;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: #05080C;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.24), 0 12px 26px rgba(0, 0, 0, 0.5);
  transform: translateX(-50%);
  transition: width 0.38s var(--ease), height 0.38s var(--ease);
}
.flowbar[data-state="listening"] { width: 176px; height: 42px; }
.flowbar[data-state="processing"] { width: 92px; height: 34px; }
.fb-dot, .fb-wave, .fb-busy { display: none; }
.flowbar[data-state="listening"] .fb-dot,
.flowbar[data-state="listening"] .fb-wave,
.flowbar[data-state="processing"] .fb-busy { display: flex; }
.fb-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #FF5A36;
  box-shadow: 0 0 0 4px rgba(255, 90, 54, 0.22);
  flex: none;
}
.fb-wave { align-items: center; gap: 3px; height: 22px; }
.fb-wave i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: #F7F8FA;
  transform: scaleY(0.3);
  animation: wave 0.9s ease-in-out infinite;
}
.fb-wave i:nth-child(2n) { animation-duration: 0.72s; animation-delay: -0.3s; }
.fb-wave i:nth-child(3n) { animation-duration: 1.1s; animation-delay: -0.5s; }
.fb-wave i:nth-child(4n+1) { animation-delay: -0.15s; }
.fb-wave i:nth-child(5n) { animation-duration: 0.8s; animation-delay: -0.62s; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.22); }
  50% { transform: scaleY(1); }
}
.fb-busy { gap: 6px; }
.fb-busy i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #F7F8FA;
  animation: busy 0.9s ease-in-out infinite;
}
.fb-busy i:nth-child(2) { animation-delay: 0.15s; }
.fb-busy i:nth-child(3) { animation-delay: 0.3s; }
@keyframes busy {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

.demo-toggle {
  position: absolute;
  right: 16px;
  bottom: 18px;
  z-index: 3;
  display: none;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #DDE3EA;
  cursor: pointer;
}
.demo-toggle:hover { background: rgba(255, 255, 255, 0.14); }
.js .demo-toggle { display: grid; }
.demo-toggle .icon { width: 15px; height: 15px; }
.demo-toggle .i-play { display: none; }
.demo-toggle[data-state="paused"] .i-play { display: block; }
.demo-toggle[data-state="paused"] .i-pause { display: none; }

.demo-foot {
  display: flex;
  align-items: flex-start;
  gap: 14px 20px;
  margin-top: 18px;
  padding: 0 4px;
}
.demo-keys { display: flex; gap: 6px; flex: none; }
.key {
  display: inline-grid;
  place-items: center;
  min-width: 54px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--c-line-strong);
  border-bottom-width: 4px;
  border-radius: 10px;
  background: var(--c-surface);
  color: var(--c-text);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.12s ease, border-bottom-width 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}
.key.is-down {
  transform: translateY(3px);
  border-bottom-width: 1px;
  border-color: var(--c-signal);
  background: var(--c-signal-soft);
  color: var(--c-signal-text);
}
.demo-said-wrap { display: grid; flex: 1; min-width: 0; }
.demo-said {
  grid-area: 1 / 1;
  margin: 0;
  color: var(--c-text);
  font-size: 15px;
  line-height: 1.55;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.demo-said.is-active { opacity: 1; }
.said-label {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-3);
}
.js .demo-said .w { opacity: 0; transition: opacity 0.18s ease, color 0.3s ease; }
.js .demo-said .w.is-on { opacity: 1; }
.demo-said.is-clean .w.x {
  color: var(--c-text-3);
  text-decoration: line-through;
  text-decoration-color: var(--c-signal);
  text-decoration-thickness: 2px;
}
.demo-said.is-clean .w.p { color: var(--c-signal-text); font-weight: 600; }
.demo-said.is-clean .w.p::after { content: " \2192  " attr(data-out); }

@media (max-width: 520px) {
  .demo-foot { flex-direction: column; gap: 12px; }
  .win-body { min-height: 0; padding: 14px 16px 18px; }
  .code-body { padding: 12px 0 14px; }
  .code-line { grid-template-columns: 34px minmax(0, 1fr); }
  .code-line .ln { padding-right: 10px; }
}

/* ---------- 13. How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-surface);
}
.step-visual {
  display: grid;
  place-items: center;
  height: 112px;
  margin-bottom: 8px;
  border-radius: var(--r-md);
  background: var(--c-surface-2);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-signal-text);
}
.step p { color: var(--c-text-2); }
.step-keys { display: flex; gap: 8px; align-items: center; color: var(--c-text-3); font-family: var(--font-mono); }
.step-keys .key { min-width: 64px; height: 50px; font-size: 14px; }
.step-wave { display: flex; align-items: center; gap: 5px; height: 52px; }
.step-wave i { width: 5px; border-radius: 3px; background: var(--c-signal); }
.step-wave i:nth-child(1) { height: 22%; } .step-wave i:nth-child(2) { height: 48%; }
.step-wave i:nth-child(3) { height: 80%; } .step-wave i:nth-child(4) { height: 100%; }
.step-wave i:nth-child(5) { height: 62%; } .step-wave i:nth-child(6) { height: 88%; }
.step-wave i:nth-child(7) { height: 40%; } .step-wave i:nth-child(8) { height: 70%; }
.step-wave i:nth-child(9) { height: 30%; } .step-wave i:nth-child(10) { height: 16%; }
.step-line {
  padding: 10px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  font-size: 0.9375rem;
  white-space: nowrap;
}
.step-line .tcaret { background: var(--c-text); }
.steps-note { margin-top: 24px; color: var(--c-text-2); }
@media (max-width: 860px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 14. Speed comparison ---------- */
.speed {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.speed-copy > * + * { margin-top: 16px; }
.meter { display: grid; gap: 26px; }
.meter-row { display: grid; gap: 10px; }
.meter-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.meter-label { font-weight: 600; }
.meter-value {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.meter-value small {
  margin-left: 4px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-text-3);
}
.meter-track {
  height: 16px;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background: var(--c-surface-2);
}
.meter-fill { height: 100%; width: var(--w); border-radius: inherit; background: var(--c-text-3); }
.meter-fill.is-signal { background: var(--c-signal); }
.w-typing { --w: 34%; }          /* 52 of 153 wpm */
.w-speaking { --w: 100%; }
.meter.is-armed .meter-fill { width: 0; transition: none; }
.meter.is-armed.is-visible .meter-fill { width: var(--w); transition: width 1.3s var(--ease); }
.meter.is-armed.is-visible .meter-row + .meter-row .meter-fill { transition-delay: 0.15s; }
.speed-example { margin-top: 34px; }
.speed-example p + p { margin-top: 8px; }
.footnote { margin-top: 14px; font-size: var(--t-xs); color: var(--c-text-3); }
@media (max-width: 900px) {
  .speed { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 15. Feature grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  transition: border-color 0.2s ease, transform 0.2s var(--ease);
}
.feature:hover { border-color: var(--c-line-strong); }
.feature-wide { grid-column: span 2; }
.feature-icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  margin-bottom: 6px;
  border-radius: 11px;
  background: var(--c-signal-soft);
  color: var(--c-signal-text);
}
.feature-icon .icon { width: 21px; height: 21px; }
.feature p { color: var(--c-text-2); font-size: 0.975rem; }
.feature-art { margin-top: auto; padding-top: 16px; }

.said-typed {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 16px;
  align-items: baseline;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--c-surface-2);
  font-size: 0.9375rem;
}
.said-typed dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-3);
}
.said-typed dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.said-typed s { color: var(--c-text-3); text-decoration-color: var(--c-signal); text-decoration-thickness: 2px; }
.said-typed .cmd { color: var(--c-signal-text); font-weight: 600; }
.said-typed .out { font-weight: 600; }

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background: var(--c-surface);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-text-2);
  white-space: nowrap;
}
.chip.is-on { border-color: var(--c-signal); background: var(--c-signal-soft); color: var(--c-signal-text); font-weight: 600; }

.style-table { display: grid; gap: 8px; }
.style-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  font-size: 0.875rem;
}
.style-row > span:first-child { font-weight: 600; }

.status-list { display: grid; gap: 8px; padding: 0; list-style: none; font-size: 0.875rem; }
.status-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  background: var(--c-surface-2);
}
.status-list li > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lang-line { font-size: 1.0625rem; font-weight: 600; line-height: 1.45; }
.lang-line span { color: var(--c-signal-text); }

.smalls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 16px;
  padding: 0;
  list-style: none;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  overflow: hidden;
}
.smalls li {
  padding: 18px 22px;
  border-bottom: 1px solid var(--c-line);
  border-right: 1px solid var(--c-line);
  font-size: 0.9375rem;
  color: var(--c-text-2);
}
.smalls li:nth-child(3n) { border-right: 0; }
.smalls li:nth-last-child(-n+3) { border-bottom: 0; }
.smalls strong { display: block; color: var(--c-text); }

@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .smalls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .smalls li:nth-child(3n) { border-right: 1px solid var(--c-line); }
  .smalls li:nth-child(2n) { border-right: 0; }
  .smalls li:nth-last-child(-n+3) { border-bottom: 1px solid var(--c-line); }
  .smalls li:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 640px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .feature-wide { grid-column: auto; }
  .feature { padding: 22px; }
  .smalls { grid-template-columns: minmax(0, 1fr); }
  .smalls li, .smalls li:nth-child(3n) { border-right: 0; }
  .smalls li:nth-last-child(-n+2) { border-bottom: 1px solid var(--c-line); }
  .smalls li:last-child { border-bottom: 0; }
}

/* ---------- 16. Works everywhere ---------- */
.apps-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1rem + 1.7vw, 2.375rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.3;
}
.apps-list li { display: inline-flex; align-items: center; }
.apps-list li::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 0.85em;
  margin: 0 0.42em;
  border-radius: 2px;
  background: var(--c-signal);
}
.apps-list li:last-child::after { display: none; }
.apps-list li.is-muted { color: var(--c-text-3); }
.apps-note { margin-top: 28px; max-width: 44rem; color: var(--c-text-2); }
.apps-note + .apps-note { margin-top: 10px; font-size: var(--t-xs); color: var(--c-text-3); }

/* ---------- 17. Dark band (privacy) ---------- */
.band {
  --c-text: #EEF1F5;
  --c-text-2: #B0BAC7;
  --c-text-3: #8E99A9;
  --c-surface: #161D28;
  --c-surface-2: #1A222E;
  --c-line: #29323F;
  --c-line-strong: #3A4657;
  --c-signal-text: #FF8A6B;
  --c-signal-soft: #331912;
  --c-focus: #FF8A6B;
  background: var(--c-band);
  color: var(--c-text);
  border-block: 1px solid var(--c-line);
}
.band .btn-ink { background: #EEF1F5; color: #0D1117; }
.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 6vw, 96px);
}
.privacy-grid .section-head { margin-bottom: 0; }
.privacy-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.privacy-points li { padding-top: 18px; border-top: 1px solid var(--c-line-strong); }
.privacy-points h3 { font-size: 1.125rem; margin-bottom: 8px; }
.privacy-points p { color: var(--c-text-2); font-size: 0.975rem; }
@media (max-width: 900px) {
  .privacy-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .privacy-points { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 18. Plans and pricing ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 940px;
  margin-inline: auto;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 3.4vw, 36px);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-surface);
}
.plan-pro { border: 2px solid var(--c-text); box-shadow: var(--shadow-2); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-name {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-2);
}
.plan-price { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-display); }
.plan-price .amount {
  font-size: clamp(3rem, 2.2rem + 2.6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}
.plan-price .per { color: var(--c-text-2); font-size: 1rem; font-family: var(--font-body); }
.plan-note { min-height: 1.6em; color: var(--c-text-2); font-size: var(--t-sm); }
.plan-list { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; font-size: 0.975rem; }
.plan-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; }
.plan-list li::before {
  content: "";
  width: 6px;
  height: 11px;
  margin: 4px 0 0 5px;
  border: solid var(--c-signal-text);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.plan-list li.is-dim { color: var(--c-text-3); }
.plan-list li.is-dim::before { border-color: var(--c-line-strong); }
.plan .btn { margin-top: auto; }
.plans-more { margin-top: 28px; text-align: center; }
@media (max-width: 760px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
}

.billing-toggle {
  display: none;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background: var(--c-surface-2);
}
.js .billing-toggle { display: inline-flex; }
.billing-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--c-text-2);
  font: 600 0.9375rem/1 var(--font-body);
  cursor: pointer;
}
.billing-toggle button:hover { color: var(--c-text); }
.billing-toggle button[aria-pressed="true"] { background: var(--c-surface); color: var(--c-text); box-shadow: var(--shadow-1); }
.billing-bar { display: flex; justify-content: center; margin-bottom: 28px; }

.compare-table th[scope="col"]:not(:first-child),
.compare-table td { width: 36%; }
.compare-table .col-pro { background: var(--c-signal-soft); }
.compare-table thead .col-pro { color: var(--c-signal-text); }
.compare-table td.is-none { color: var(--c-text-3); }

.example {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.example-copy > * + * { margin-top: 14px; }
.example-copy p { color: var(--c-text-2); }
.calc { font-size: 0.975rem; }
.calc-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--c-line-strong);
}
.calc-row span:last-child { font-family: var(--font-mono); font-weight: 600; white-space: nowrap; }
.calc-row.is-total { border-bottom: 0; padding-top: 14px; font-weight: 700; font-size: 1.0625rem; }
.calc-title { margin-bottom: 6px; }
.calc-note { margin-top: 14px; font-size: var(--t-sm); color: var(--c-text-2); }
@media (max-width: 860px) {
  .example { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 19. FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.45fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}
.faq-head { position: sticky; top: calc(var(--header-h) + 28px); }
.faq-head > * + * { margin-top: 14px; }
.faq-list { border-top: 1px solid var(--c-line); }
.faq-item { border-bottom: 1px solid var(--c-line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  font-family: var(--font-display);
  font-size: 1.0938rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border: solid var(--c-text-2);
  border-width: 0 2px 2px 0;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq-item summary:hover { color: var(--c-signal-text); }
.faq-answer { max-width: 64ch; padding: 0 4px 24px; color: var(--c-text-2); }
.faq-answer > * + * { margin-top: 10px; }
.faq-answer a { color: var(--c-text); }
.faq-answer ul { padding-left: 1.2em; }
@media (max-width: 900px) {
  .faq { grid-template-columns: minmax(0, 1fr); }
  .faq-head { position: static; }
}

/* ---------- 20. Final call to action ---------- */
.cta-block {
  --c-focus: #0D1117;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  overflow: hidden;
  padding: clamp(36px, 6vw, 80px);
  border-radius: var(--r-xl);
  background: var(--c-signal);
  color: #0D1117;
}
.cta-block h2 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem); letter-spacing: -0.045em; line-height: 1; }
.cta-block p { margin-top: 18px; max-width: 32rem; font-size: 1.125rem; }
.cta-block .cluster { margin-top: 30px; }
.cta-block .btn-ink { background: #0D1117; color: #F7F8FA; }
.cta-block .btn-ink:hover { background: #2A3340; }
.cta-block .btn-ghost { color: #0D1117; text-decoration: underline; text-underline-offset: 0.2em; }
.cta-block .btn-ghost:hover { background: rgba(13, 17, 23, 0.08); }
.cta-keys { display: flex; justify-content: center; gap: 14px; }
.cta-keys .key {
  min-width: 112px;
  height: 104px;
  border-color: #0D1117;
  border-width: 2px 2px 9px;
  border-radius: 20px;
  background: #FF7A5C;
  color: #0D1117;
  font-size: 22px;
}
@media (max-width: 860px) {
  .cta-block { grid-template-columns: minmax(0, 1fr); }
  .cta-keys { display: none; }
}

/* ---------- 21. Inner pages ---------- */
.dl-card {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 52px);
  text-align: center;
}
.dl-card .brand-mark { width: 64px; height: 64px; margin: 0 auto 22px; }
.dl-card h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.dl-meta { margin-top: 12px; color: var(--c-text-2); }
.dl-meta .badge { margin-right: 6px; }
.dl-card .btn { margin-top: 28px; }
.dl-file { margin-top: 12px; font-family: var(--font-mono); font-size: var(--t-xs); color: var(--c-text-3); }

.install-steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: install;
}
.install-step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  counter-increment: install;
}
.install-step::before {
  content: counter(install);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-text);
  color: var(--c-bg);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}
.install-step > div > * + * { margin-top: 10px; }
.install-step p, .install-step li { color: var(--c-text-2); }
.install-step ul { padding-left: 1.2em; }
@media (max-width: 520px) {
  .install-step { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

.ss-mock {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.ss-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 200px;
  padding: 18px;
  border-radius: 6px;
  background: #1B66B3;
  color: #FFFFFF;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 12.5px;
  line-height: 1.45;
}
.ss-panel .ss-title { font-size: 17px; font-weight: 600; line-height: 1.2; }
.ss-panel .ss-link { color: #FFFFFF; text-decoration: underline; }
.ss-panel .ss-hl { outline: 2px solid #FFD54A; outline-offset: 2px; border-radius: 2px; }
.ss-buttons { display: flex; justify-content: flex-end; gap: 8px; margin-top: auto; }
.ss-btn { padding: 5px 14px; border: 1px solid #FFFFFF; background: transparent; color: #FFFFFF; font-size: 12px; }
.ss-cap { margin-top: 10px; font-size: var(--t-sm); color: var(--c-text-2); }
@media (max-width: 600px) {
  .ss-mock { grid-template-columns: minmax(0, 1fr); }
  .ss-panel { min-height: 0; }
}

.req-list { display: grid; margin: 0; }
.req-list > div {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-line);
}
.req-list > div:last-child { border-bottom: 0; }
.req-list dt { font-weight: 600; }
.req-list dd { margin: 0; color: var(--c-text-2); }
@media (max-width: 560px) {
  .req-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}
@media (max-width: 760px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}

.vs-table th[scope="col"]:not(:first-child),
.vs-table td { width: 37%; }
.vs-table thead th.col-us { color: var(--c-signal-text); }
.source-note { margin-top: 14px; font-size: var(--t-sm); color: var(--c-text-3); }
.source-note a { color: var(--c-text-2); }

.fix-list { display: grid; gap: 14px; }
.fix {
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-surface);
}
.fix summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.fix summary::-webkit-details-marker { display: none; }
.fix summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border: solid var(--c-text-2);
  border-width: 0 2px 2px 0;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.fix[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.fix-body { padding: 0 22px 22px; color: var(--c-text-2); }
.fix-body > * + * { margin-top: 10px; }
.fix-body ol, .fix-body ul { padding-left: 1.3em; }
.fix-body li + li { margin-top: 6px; }
.fix-body strong { color: var(--c-text); }

.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.contact-card .big-link {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1rem + 1.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--c-text);
  overflow-wrap: anywhere;
}

/* ---------- 22. Legal and long-form text ---------- */
.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding-bottom: clamp(64px, 8vw, 120px);
}
.toc { position: sticky; top: calc(var(--header-h) + 28px); font-size: var(--t-sm); }
.toc-title {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-3);
}
.toc ol { display: grid; gap: 7px; padding: 0; list-style: none; }
.toc a { color: var(--c-text-2); text-decoration: none; }
.toc a:hover { color: var(--c-text); text-decoration: underline; }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .toc {
    position: static;
    padding: 18px 20px;
    border: 1px solid var(--c-line);
    border-radius: var(--r-lg);
    background: var(--c-surface);
  }
  .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 16px; }
}
@media (max-width: 520px) {
  .toc ol { grid-template-columns: minmax(0, 1fr); }
}

.legal-meta { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--c-text-3); }

.summary-box {
  margin-bottom: 40px;
  padding: 22px 24px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-surface);
}
.summary-box h2 { margin: 0 0 12px !important; font-size: 1.0625rem !important; }
.summary-box ul { margin: 0 !important; }

.prose {
  max-width: 72ch;
  font-size: 1.0313rem;
  line-height: 1.72;
  overflow-wrap: break-word;
}
.prose > :first-child { margin-top: 0; }
.prose h2 {
  margin: 2.4em 0 0.7em;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.prose h3 { margin: 1.7em 0 0.5em; font-size: 1.1563rem; }
.prose p, .prose ul, .prose ol, .prose table, .prose .table-wrap { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--c-signal-text); text-decoration: underline; }
.prose a:hover { color: var(--c-text); }
.prose .table-wrap { margin-block: 1.2em 1.6em; }
.prose .table { font-size: 0.9375rem; }
.prose .table th, .prose .table td { padding: 12px 14px; }
.prose blockquote {
  margin: 1.2em 0;
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: var(--c-surface-2);
  font-size: 0.975rem;
}
.prose blockquote p:last-child { margin-bottom: 0; }

/* ---------- 23. Error and status pages ---------- */
.notfound { padding-block: clamp(72px, 12vw, 160px); }
.notfound .eyebrow { margin-bottom: 18px; }
.notfound h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.75rem); letter-spacing: -0.045em; line-height: 1; }
.notfound .lead { margin-top: 20px; max-width: 36rem; }
.notfound .cluster { margin-top: 32px; }

/* ---------- 24. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .caret, .tcaret { animation: none; }
  .fb-wave i { animation: none; }
  .fb-wave i:nth-child(odd) { transform: scaleY(0.55); }
  .fb-wave i:nth-child(even) { transform: scaleY(0.9); }
}

/* ---------- 25. Small fixes ---------- */
/* a page head that opens a section should not add its own top padding on top of the section's */
.section > .container > .page-head:first-child,
.section > .container-narrow > .page-head:first-child { padding-top: 0; }
.page-head.center .lead, .section-head.center .lead { margin-inline: auto; }
/* the hidden attribute must win over component display rules (alerts, stacks, forms) */
[hidden] { display: none !important; }

/* Download page on a phone: Koltype runs on Windows, so the page offers to send itself to a computer */
.dl-phone { flex-direction: column; align-items: flex-start; margin: 0 0 18px; text-align: start; }
.dl-phone p { margin: 0; }

/* Hebrew landing page (/he/): right to left, with the shared header and footer kept left to right */
[dir="rtl"] .he-list { padding-inline-start: 1.2em; padding-left: 0; margin-top: 10px; }
[dir="rtl"] .he-list li + li { margin-top: 6px; }
[dir="rtl"] .he-gap { margin-top: 16px; }
[dir="rtl"] .he-soon { margin-top: 12px; }
[dir="rtl"] .faq-item summary::after { margin-right: 0; margin-left: 6px; }
[dir="rtl"] .hero-copy { max-width: 760px; }
[dir="rtl"] .eyebrow { font-family: var(--font-body); font-size: 0.9rem; letter-spacing: 0; text-transform: none; }
[dir="rtl"] span[dir="ltr"], .nw { white-space: nowrap; }
