/* ==================================================================
   Letterbot design system (lb.css)
   One layout, two color themes (dark default, light).
   Docs: assets/css/lb/README.md
   ================================================================== */

/* ------------------------------------------------------------------
   Fonts: Mona Sans variable (OFL, self-hosted, no Google request)
   ------------------------------------------------------------------ */
@font-face {
  font-family: "Mona Sans";
  font-style: normal;
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url("/assets/fonts/mona-sans-latin.woff2") format("woff2");
  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: "Mona Sans";
  font-style: normal;
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url("/assets/fonts/mona-sans-latin-ext.woff2") format("woff2");
  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;
}
/* Metric-matched fallback so the swap from Arial does not reflow headlines */
@font-face { font-family: "Mona Sans Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 103%; }

/* ------------------------------------------------------------------
   Tokens shared by both themes
   ------------------------------------------------------------------ */
:root {
  --font: "Mona Sans", "Mona Sans Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ui-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* spacing (4px base) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  /* radius grows with the container */
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 18px;

  /* motion */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 150ms; --t-base: 250ms; --t-slow: 450ms;

  /* layout */
  --wrap: 1280px;
  --wrap-narrow: 760px;
  --gutter: 24px;
  --nav-h: 64px;
}

/* ------------------------------------------------------------------
   Dark theme (default, and when the OS asks for dark)
   ------------------------------------------------------------------ */
:root {
  color-scheme: dark;
  --bg: #0C0C0D;
  --bg-2: #131315;
  --surface: #161617;
  --surface-2: #1C1C1E;
  --surface-3: #252528;
  --line: rgba(255,255,255,.075);
  --line-2: rgba(255,255,255,.13);
  --text: #EDEDEC;
  --text-2: #A6A6AB;
  --text-3: #86868D;
  --text-4: #6A6A71;            /* large text only (3:1) */

  --accent: #2DD4BF;            /* fills, caret, markers */
  --accent-hi: #5EEAD4;
  --accent-text: #5EEAD4;       /* accent used as text */
  --accent-ink: #042F2E;        /* text on an accent fill */
  --accent-soft: rgba(45,212,191,.13);
  --accent-line: rgba(45,212,191,.42);
  --accent-tint: rgba(45,212,191,.06);
  --focus: #2DD4BF;

  --btn-bg: #2DD4BF;
  --btn-fg: #042F2E;
  --btn-hover: #5EEAD4;
  --btn-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 24px -10px rgba(45,212,191,.55);
  --ghost-bg: rgba(255,255,255,.02);
  --ghost-hover: rgba(255,255,255,.06);
  --ghost-line: rgba(255,255,255,.13);
  --ghost-line-hover: rgba(255,255,255,.2);
  --ghost-shadow: none;

  --nav-bg: rgba(12,12,13,.94);
  --sel-bg: rgba(45,212,191,.32);
  --sel-fg: #FFFFFF;
  --scrollbar: #2C2C30;
  --kbd-shadow: 0 2px 0 rgba(0,0,0,.5);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 1px 2px rgba(0,0,0,.4), 0 12px 28px -12px rgba(0,0,0,.6);
  --glow: radial-gradient(closest-side, rgba(45,212,191,.14), rgba(45,212,191,.06) 45%, rgba(45,212,191,.02) 72%, transparent);

  --field-bg: #19191C;
  --field-line: rgba(255,255,255,.13);

  --ok: #2DD4BF;   --ok-bg: rgba(45,212,191,.08);   --ok-line: rgba(45,212,191,.32);
  --warn: #F5B544; --warn-bg: rgba(245,181,68,.08); --warn-line: rgba(245,181,68,.32);
  --err: #F87171;  --err-bg: rgba(248,113,113,.08); --err-line: rgba(248,113,113,.34);
  --info: #A6A6AB; --info-bg: rgba(255,255,255,.03); --info-line: rgba(255,255,255,.13);
}

/* ------------------------------------------------------------------
   Light theme. Keep the two blocks below identical.
   1) OS prefers light and the visitor did not force dark
   2) visitor forced light in the footer switcher
   ------------------------------------------------------------------ */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #FAFAF9;
    --bg-2: #F3F3F1;
    --surface: #FFFFFF;
    --surface-2: #F7F7F5;
    --surface-3: #ECECE9;
    --line: #E6E5E1;
    --line-2: #D4D3CE;
    --text: #111110;
    --text-2: #3F3E3A;
    --text-3: #6A6963;
    --text-4: #8A8983;

    --accent: #0D9488;
    --accent-hi: #0F766E;
    --accent-text: #0F766E;
    --accent-ink: #FFFFFF;
    --accent-soft: #E6F6F4;
    --accent-line: rgba(13,148,136,.45);
    --accent-tint: rgba(13,148,136,.05);
    --focus: #0F766E;

    --btn-bg: #111110;
    --btn-fg: #FFFFFF;
    --btn-hover: #2B2A26;
    --btn-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 1px 2px rgba(17,17,16,.24), 0 6px 16px -8px rgba(17,17,16,.5);
    --ghost-bg: #FFFFFF;
    --ghost-hover: #F3F3F1;
    --ghost-line: #D4D3CE;
    --ghost-line-hover: #C6C5BF;
    --ghost-shadow: 0 1px 2px rgba(17,17,16,.06);

    --nav-bg: rgba(250,250,249,.94);
    --sel-bg: #CCEEEA;
    --sel-fg: #111110;
    --scrollbar: #D4D3CE;
    --kbd-shadow: 0 2px 0 rgba(17,17,16,.08);
    --shadow-sm: 0 1px 2px rgba(17,17,16,.06);
    --shadow-md: 0 1px 2px rgba(17,17,16,.05), 0 10px 24px -10px rgba(17,17,16,.14);
    --glow: radial-gradient(closest-side, rgba(13,148,136,.09), rgba(13,148,136,.035) 50%, transparent);

    --field-bg: #FFFFFF;
    --field-line: #D4D3CE;

    --ok: #0F766E;   --ok-bg: #EEF8F6;   --ok-line: rgba(13,148,136,.35);
    --warn: #92400E; --warn-bg: #FDF6E7; --warn-line: rgba(180,83,9,.3);
    --err: #B91C1C;  --err-bg: #FDF0F0;  --err-line: rgba(185,28,28,.3);
    --info: #3F3E3A; --info-bg: #FFFFFF; --info-line: #E6E5E1;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #FAFAF9;
  --bg-2: #F3F3F1;
  --surface: #FFFFFF;
  --surface-2: #F7F7F5;
  --surface-3: #ECECE9;
  --line: #E6E5E1;
  --line-2: #D4D3CE;
  --text: #111110;
  --text-2: #3F3E3A;
  --text-3: #6A6963;
  --text-4: #8A8983;

  --accent: #0D9488;
  --accent-hi: #0F766E;
  --accent-text: #0F766E;
  --accent-ink: #FFFFFF;
  --accent-soft: #E6F6F4;
  --accent-line: rgba(13,148,136,.45);
  --accent-tint: rgba(13,148,136,.05);
  --focus: #0F766E;

  --btn-bg: #111110;
  --btn-fg: #FFFFFF;
  --btn-hover: #2B2A26;
  --btn-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 1px 2px rgba(17,17,16,.24), 0 6px 16px -8px rgba(17,17,16,.5);
  --ghost-bg: #FFFFFF;
  --ghost-hover: #F3F3F1;
  --ghost-line: #D4D3CE;
  --ghost-line-hover: #C6C5BF;
  --ghost-shadow: 0 1px 2px rgba(17,17,16,.06);

  --nav-bg: rgba(250,250,249,.94);
  --sel-bg: #CCEEEA;
  --sel-fg: #111110;
  --scrollbar: #D4D3CE;
  --kbd-shadow: 0 2px 0 rgba(17,17,16,.08);
  --shadow-sm: 0 1px 2px rgba(17,17,16,.06);
  --shadow-md: 0 1px 2px rgba(17,17,16,.05), 0 10px 24px -10px rgba(17,17,16,.14);
  --glow: radial-gradient(closest-side, rgba(13,148,136,.09), rgba(13,148,136,.035) 50%, transparent);

  --field-bg: #FFFFFF;
  --field-line: #D4D3CE;

  --ok: #0F766E;   --ok-bg: #EEF8F6;   --ok-line: rgba(13,148,136,.35);
  --warn: #92400E; --warn-bg: #FDF6E7; --warn-line: rgba(180,83,9,.3);
  --err: #B91C1C;  --err-bg: #FDF0F0;  --err-line: rgba(185,28,28,.3);
  --info: #3F3E3A; --info-bg: #FFFFFF; --info-line: #E6E5E1;
}

/* ------------------------------------------------------------------
   Base
   ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px);
  scrollbar-color: var(--scrollbar) var(--bg);
  background: var(--bg);
}
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; caret-color: var(--accent);
  -webkit-tap-highlight-color: transparent;
}
body > main { flex: 1 0 auto; }
::selection { background: var(--sel-bg); color: var(--sel-fg); }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--s4); top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: var(--r-md); font-weight: 600; font-size: 14px; }
.skip:focus { top: var(--s3); }
.anchor { display: block; position: relative; height: 0; overflow: hidden; }

/* ------------------------------------------------------------------
   Type
   ------------------------------------------------------------------ */
h1, h2 { font-weight: 620; font-stretch: 104%; letter-spacing: -0.035em; text-wrap: balance; }
h1 { font-size: clamp(2.375rem, 5.4vw, 3.75rem); line-height: 1.04; }
h2 { font-size: clamp(1.875rem, 3.4vw, 2.625rem); line-height: 1.08; }
h3, h2.h3 { font-size: 1.0625rem; font-weight: 600; font-stretch: 100%; letter-spacing: -0.01em; line-height: 1.35; text-wrap: balance; }
p { text-wrap: pretty; }
.lede { color: var(--text-2); font-size: 1.0625rem; line-height: 1.6; max-width: 54ch; text-wrap: pretty; }
.muted { color: var(--text-3); }
.small { font-size: 14px; }
.accent-text { color: var(--accent-text); }

/* ------------------------------------------------------------------
   Layout
   ------------------------------------------------------------------ */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: calc(var(--wrap-narrow) + var(--gutter) * 2); }
.section { padding: clamp(72px, 9vw, 104px) 0; }
.section-tight { padding: clamp(48px, 6vw, 72px) 0; }
.section-head { max-width: 640px; }
.section-head .lede { margin-top: 16px; }
.section-head + * { margin-top: clamp(40px, 5vw, 56px); }
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stack > * + * { margin-top: var(--stack, 16px); }

/* Sub-page heading (pricing, FAQ, contact, legal, checkout) */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); }
.page-head h1 { font-size: clamp(2.125rem, 4.4vw, 3.25rem); max-width: 18em; }
.page-head .lede { margin-top: 16px; }

/* ------------------------------------------------------------------
   Buttons and links
   ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: var(--r-md); border: 1px solid transparent;
  font-size: 15px; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap; text-decoration: none;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: var(--btn-shadow); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-ghost { color: var(--text); border-color: var(--ghost-line); background: var(--ghost-bg); box-shadow: var(--ghost-shadow); }
.btn-ghost:hover { background: var(--ghost-hover); border-color: var(--ghost-line-hover); }
.btn .arrow { transition: transform var(--t-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(2px); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn-sm svg { width: 16px; height: 16px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-note { margin-top: 16px; font-size: 14px; color: var(--text-3); display: flex; align-items: center; gap: 8px; text-wrap: pretty; }
.cta-note svg { width: 16px; height: 16px; flex-shrink: 0; }

.link { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: text-decoration-color var(--t-fast); }
.link:hover { text-decoration-color: var(--accent); }

/* ------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.nav-in { height: var(--nav-h); display: flex; align-items: center; gap: var(--s6); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 640; font-stretch: 104%; font-size: 16px; letter-spacing: -0.02em; color: var(--text); }
.brand img { width: 28px; height: 28px; flex: none; object-fit: contain; }
.nav-links { display: flex; gap: var(--s5); margin-left: auto; font-size: 14px; color: var(--text-2); }
.nav-links a { transition: color var(--t-fast); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-end { display: flex; align-items: center; gap: 16px; }
.nav-links + .nav-end { margin-left: 0; }
.nav-in > .brand + .nav-end { margin-left: auto; }

/* ------------------------------------------------------------------
   Footer with language links and theme switcher
   ------------------------------------------------------------------ */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--text-2); }
.foot-links a { padding: 4px 0; transition: color var(--t-fast); }
.foot-links a:hover { color: var(--text); }
.foot-row { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.foot-meta { font-size: 13px; color: var(--text-3); }
.foot-tools { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.foot-lang { display: flex; align-items: center; gap: 4px 14px; color: var(--text-3); font-size: 13px; }
.foot-lang svg { width: 15px; height: 15px; }
.foot-lang a { color: var(--text-2); padding: 4px 0; }
.foot-lang a:hover { color: var(--text); }
.foot-lang a[aria-current="page"] { color: var(--text); font-weight: 600; }

.theme-switch { display: inline-flex; gap: 2px; padding: 3px; margin: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); min-inline-size: 0; }
.theme-switch legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.theme-switch label { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 7px; font-size: 12.5px; font-weight: 520; color: var(--text-3); cursor: pointer; transition: background-color var(--t-fast), color var(--t-fast); }
.theme-switch label:hover { color: var(--text); }
.theme-switch svg { width: 14px; height: 14px; }
.theme-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.theme-switch label:has(input:checked) { background: var(--surface-3); color: var(--text); }
.theme-switch label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 1px; }

/* ------------------------------------------------------------------
   Cards, chips, kbd, proof row
   ------------------------------------------------------------------ */
.card { padding: 28px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.card-sm { padding: 20px 22px; border-radius: var(--r-lg); }
.card h3 + p, .card h2.h3 + p { margin-top: 6px; color: var(--text-2); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip { height: 32px; padding: 0 12px; border-radius: 8px; display: inline-flex; align-items: center; font-size: 13.5px; color: var(--text-2); border: 1px solid var(--line); background: var(--surface); }
.chip-accent { color: var(--accent-text); background: var(--accent-soft); border-color: var(--accent-line); }

kbd { font-family: var(--font); font-size: 12.5px; font-weight: 600; color: var(--text); min-width: 28px; height: 28px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--kbd-shadow); }

.proof { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 0; padding-top: 24px; border-top: 1px solid var(--line); }
.proof li { font-size: 15px; color: var(--text-2); line-height: 1.4; padding: 0 28px; border-left: 1px solid var(--line); }
.proof li:first-child { padding-left: 0; border-left: 0; }
.proof strong { color: var(--text); font-weight: 620; font-stretch: 104%; font-size: 1.75rem; letter-spacing: -0.03em; margin-right: 6px; }

/* Callout: one line of text with an action on the right */
.callout { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.callout p { color: var(--text-2); font-size: 15px; max-width: 52ch; }
.callout p strong { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------------
   Steps (ordered list with numbered boxes)
   ------------------------------------------------------------------ */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s8); align-items: start; }
.split > .section-head { position: sticky; top: calc(var(--nav-h) + 48px); }
.split > .section-head + * { margin-top: 0; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 28px 0 30px; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-n { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: var(--text-2); }
.step p { margin-top: 6px; color: var(--text-2); max-width: 52ch; }
.step .extra { margin-top: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); }

/* ------------------------------------------------------------------
   Tabs (vertical list beside a panel; horizontal under 1040px)
   ------------------------------------------------------------------ */
.tabs { display: grid; grid-template-columns: 4fr 8fr; gap: 24px; align-items: start; }
.tablist { display: flex; flex-direction: column; gap: 2px; }
.tab { text-align: left; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid transparent; transition: background-color var(--t-fast), border-color var(--t-fast); }
.tab .t { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; font-weight: 600; color: var(--text-2); transition: color var(--t-fast); }
.tab .d { display: block; margin-top: 2px; font-size: 13.5px; color: var(--text-3); line-height: 1.45; }
.tab .t svg { width: 16px; height: 16px; color: var(--accent); opacity: 0; transform: translateX(-4px); transition: opacity var(--t-fast), transform var(--t-base) var(--ease); }
.tab:hover .t { color: var(--text); }
.tab[aria-selected="true"] { background: var(--surface); border-color: var(--line); }
.tab[aria-selected="true"] .t { color: var(--text); }
.tab[aria-selected="true"] .t svg { opacity: 1; transform: none; }

/* Specimen: input next to output */
.specimen { border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); padding: 28px; }
.sp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.sp-head p { color: var(--text-2); font-size: 15px; margin-top: 4px; }
.plan-tag { flex-shrink: 0; font-size: 12.5px; color: var(--text-3); }
.sp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.sp-col { display: flex; flex-direction: column; }
.sp-col > div { flex: 1; }
.sp-col h4 { margin: 0 0 10px; font-size: 13px; font-weight: 520; color: var(--text-3); }
.sp-in, .sp-out { border-radius: var(--r-md); padding: 16px 18px; font-size: 14.5px; line-height: 1.6; white-space: pre-line; }
.sp-in { background: var(--bg-2); border: 1px dashed var(--line-2); color: var(--text-2); }
.sp-out { background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); }
.sp-out.list { white-space: normal; }
.sp-out ul { display: grid; gap: 8px; }
.sp-out li { display: grid; grid-template-columns: 14px 1fr; gap: 8px; }
.sp-out li::before { content: ""; width: 5px; height: 5px; border-radius: 1px; background: var(--accent); margin-top: .62em; }

/* ------------------------------------------------------------------
   Languages run (big type with a sample sentence)
   ------------------------------------------------------------------ */
.lang-run { font-size: clamp(1.75rem, 4.6vw, 3.5rem); font-weight: 600; font-stretch: 104%; letter-spacing: -0.035em; line-height: 1.18; text-wrap: pretty; }
.lang-h { display: inline; font: inherit; letter-spacing: inherit; color: var(--text); margin-right: .3em; }
.langs { display: inline; }
.lang { font: inherit; letter-spacing: inherit; line-height: inherit; color: var(--text-4); padding: 0; margin: 0 .3em 0 0; border-radius: 6px; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 3px; text-underline-offset: .14em; transition: color var(--t-fast), text-decoration-color var(--t-fast); }
.lang:hover { color: var(--text-2); }
.lang[aria-pressed="true"] { color: var(--text); text-decoration-color: var(--accent); }
.lang[lang="ar"] { letter-spacing: 0; }
.sample { margin-top: 48px; display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 26px 28px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.sample-k { font-size: 13px; color: var(--text-3); line-height: 1.5; }
.sample-k b { display: block; color: var(--text-2); font-weight: 600; font-size: 14px; }
.sample-v { font-size: clamp(1.125rem, 1.8vw, 1.375rem); line-height: 1.5; color: var(--text); text-wrap: pretty; min-height: 3em; }

/* ------------------------------------------------------------------
   Pricing
   ------------------------------------------------------------------ */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan { display: flex; flex-direction: column; padding: 28px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.plan.feat { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-tint), transparent 40%), var(--surface); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan h3, .plan h2.h3 { font-size: 16px; }
.plan .badge { font-size: 12px; font-weight: 600; color: var(--accent-text); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 6px; padding: 2px 8px; }
.plan .for { color: var(--text-3); font-size: 14px; margin-top: 2px; min-height: 1.6em; }
.price { margin-top: 24px; display: flex; align-items: baseline; gap: 6px; }
.price b { font-size: 2.5rem; font-weight: 620; font-stretch: 104%; letter-spacing: -0.035em; line-height: 1; }
.price span { color: var(--text-3); font-size: 14px; }
.plan .btn { margin-top: 24px; }
.plan form { margin: 0; }
.feats { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: 14.5px; color: var(--text-2); }
.feats li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.feats svg { width: 16px; height: 16px; margin-top: 3px; color: var(--text-3); }
.plan.feat .feats svg { color: var(--accent); }
.feats strong { color: var(--text); font-weight: 600; }
.plans-note { margin-top: 24px; font-size: 14px; color: var(--text-3); }

/* ------------------------------------------------------------------
   FAQ accordion (native <details>, no JS)
   ------------------------------------------------------------------ */
.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.45; transition: color var(--t-fast); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--text); }
.faq summary::after {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 6px;
  background:
    linear-gradient(var(--text-3), var(--text-3)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--text-3), var(--text-3)) center / 1.5px 10px no-repeat;
  transition: transform var(--t-base) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline-offset: 4px; }
.faq .a { padding: 0 0 24px; color: var(--text-2); font-size: 15px; line-height: 1.65; max-width: 68ch; }
.faq .a > * + * { margin-top: 10px; }

/* ------------------------------------------------------------------
   Forms
   ------------------------------------------------------------------ */
.form { display: grid; gap: 18px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label, .label { font-size: 14px; font-weight: 560; color: var(--text); }
.field .help { font-size: 13px; color: var(--text-3); }
.field .error { font-size: 13px; color: var(--err); }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--r-md);
  font: inherit; font-size: 15px; color: var(--text); background-color: var(--field-bg);
  border: 1px solid var(--field-line); transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--err); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }

/* ------------------------------------------------------------------
   Notices
   ------------------------------------------------------------------ */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--info-line); background: var(--info-bg); color: var(--text-2); font-size: 15px; line-height: 1.55; }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--info); }
.notice strong { color: var(--text); font-weight: 600; }
.notice-ok { border-color: var(--ok-line); background: var(--ok-bg); }
.notice-ok svg { color: var(--ok); }
.notice-warn { border-color: var(--warn-line); background: var(--warn-bg); }
.notice-warn svg { color: var(--warn); }
.notice-err { border-color: var(--err-line); background: var(--err-bg); }
.notice-err svg { color: var(--err); }

/* Status page block (success, cancel, goodbye, welcome) */
.status { max-width: 560px; margin: 0 auto; text-align: center; padding: clamp(64px, 10vw, 120px) 0; }
.status-icon { width: 56px; height: 56px; margin: 0 auto 24px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent-line); }
.status-icon svg { width: 26px; height: 26px; }
.status h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.status .lede { margin: 16px auto 0; }
.status .cta-row { justify-content: center; margin-top: 28px; }

/* ------------------------------------------------------------------
   Prose (legal pages, long text)
   ------------------------------------------------------------------ */
.prose { max-width: 70ch; color: var(--text-2); font-size: 16px; line-height: 1.7; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(1.375rem, 2.2vw, 1.625rem); color: var(--text); margin-top: 2.2em; line-height: 1.25; letter-spacing: -0.025em; }
.prose h3 { font-size: 1.125rem; color: var(--text); margin-top: 1.8em; }
.prose h4 { font-size: 1rem; color: var(--text); margin-top: 1.5em; font-weight: 600; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--text-3); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; }
.prose address { font-style: normal; }
.prose .meta { font-size: 14px; color: var(--text-3); }

/* ------------------------------------------------------------------
   Final CTA block
   ------------------------------------------------------------------ */
.final { text-align: center; padding: clamp(80px, 10vw, 128px) 0 clamp(88px, 11vw, 136px); border-top: 1px solid var(--line); }
.final h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); max-width: 18ch; margin: 0 auto; }
.final .lede { margin: 18px auto 0; }
.final .cta-row { justify-content: center; margin-top: 28px; }
.final .cta-note { justify-content: center; }
.platforms { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; font-size: 14px; color: var(--text-3); }
.platforms a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 9px; color: var(--text-2); border: 1px solid var(--line); background: var(--surface); transition: color var(--t-fast), border-color var(--t-fast); }
.platforms a:hover { color: var(--text); border-color: var(--line-2); }
.platforms svg { width: 15px; height: 15px; }

/* ------------------------------------------------------------------
   Motion
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: lb-rise .7s var(--ease) both; animation-delay: var(--d, 0ms); }
  @keyframes lb-rise { from { opacity: 0; transform: translateY(10px); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */
@media (max-width: 1040px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split > .section-head { position: static; }
  .tabs { grid-template-columns: 1fr; }
  .tablist { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: none; }
  .tablist::-webkit-scrollbar { display: none; }
  .tab { flex-shrink: 0; padding: 10px 14px; border-color: var(--line); }
  .tab .d, .tab .t svg { display: none; }
}
@media (max-width: 900px) {
  .nav-in { gap: var(--s5); }
  .nav-links { gap: var(--s4); }
}
@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .grid { grid-template-columns: 1fr; }
  .sp-grid { grid-template-columns: 1fr; }
  .sample { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-in > .btn, .nav-end { margin-left: auto; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .cta-row .btn { flex: 1 1 100%; }
  .cta-note { align-items: flex-start; }
  .proof { flex-direction: column; align-items: flex-start; gap: 6px; }
  .proof li { padding: 0; border-left: 0; }
  .callout { flex-direction: column; align-items: flex-start; }
  .specimen, .card, .sample { padding: 20px; }
  .sp-head { flex-direction: column; gap: 6px; }
  .plan { padding: 24px; }
  .foot-in, .foot-row { flex-direction: column; align-items: flex-start; }
  .final .cta-note svg { display: none; }
  .platforms > span { flex-basis: 100%; }
}
@media (max-width: 380px) {
  .nav-in .btn { padding: 0 10px; font-size: 13px; }
  .nav-in .btn svg { display: none; }
}
