/* PatternXRadar portal — exchange-grade light theme with automatic dark mode.
   Typefaces: IBM Plex Sans + IBM Plex Mono (self-hosted), nothing else. */

/* ------------------------------------------------------------------ fonts */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("/static/fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* ----------------------------------------------------------------- tokens */
:root {
  color-scheme: light;
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --surface-2: #F3F4F6;
  --surface-3: #EAECEF;
  --line: #EAECEF;
  --line-strong: #D5D9DF;
  --text: #0B0E11;
  --text-2: #474D57;
  --text-3: #707A8A;
  --text-4: #9AA3AF;
  --green: #0ECB81;
  --green-text: #0A9F66;
  --green-dim: rgba(14, 203, 129, 0.12);
  --red: #F6465D;
  --red-text: #D83A4E;
  --red-dim: rgba(246, 70, 93, 0.12);
  --accent: #F0B90B;
  --accent-hover: #FCD535;
  --accent-ink: #0B0E11;
  --accent-text: #8A6A00;
  --accent-dim: rgba(240, 185, 11, 0.14);
  --amber: #F0B90B;
  --amber-text: #8A6A00;
  --amber-dim: rgba(240, 185, 11, 0.16);
  --ink-btn: #0B0E11;
  --ink-btn-text: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(11, 14, 17, 0.04), 0 1px 3px rgba(11, 14, 17, 0.06);
  --shadow: 0 4px 14px -4px rgba(11, 14, 17, 0.10), 0 1px 3px rgba(11, 14, 17, 0.06);
  --shadow-lg: 0 24px 48px -16px rgba(11, 14, 17, 0.18), 0 8px 16px -8px rgba(11, 14, 17, 0.08);
  --glow: rgba(240, 185, 11, 0.22);
  --frame-bg: #0F1419;
  --header-bg: rgba(255, 255, 255, 0.86);
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
  --container: 1200px;
  --gutter: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
  --rail-w: 232px;
}
@media (min-width: 720px) { :root { --gutter: 28px; } }
@media (min-width: 1100px) { :root { --gutter: 40px; } }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #181A20;
    --surface: #1E2329;
    --surface-2: #252A31;
    --surface-3: #2B3139;
    --line: #2B3139;
    --line-strong: #3C434D;
    --text: #EAECEF;
    --text-2: #B7BDC6;
    --text-3: #848E9C;
    --text-4: #5E6673;
    --green-text: #0ECB81;
    --red-text: #F6465D;
    --accent-text: #F0B90B;
    --amber-text: #F0B90B;
    --ink-btn: #EAECEF;
    --ink-btn-text: #0B0E11;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, 0.6), 0 8px 16px -8px rgba(0, 0, 0, 0.4);
    --glow: rgba(240, 185, 11, 0.16);
    --frame-bg: #0B0E11;
    --header-bg: rgba(24, 26, 32, 0.86);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #181A20;
  --surface: #1E2329;
  --surface-2: #252A31;
  --surface-3: #2B3139;
  --line: #2B3139;
  --line-strong: #3C434D;
  --text: #EAECEF;
  --text-2: #B7BDC6;
  --text-3: #848E9C;
  --text-4: #5E6673;
  --green-text: #0ECB81;
  --red-text: #F6465D;
  --accent-text: #F0B90B;
  --amber-text: #F0B90B;
  --ink-btn: #EAECEF;
  --ink-btn-text: #0B0E11;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, 0.6), 0 8px 16px -8px rgba(0, 0, 0, 0.4);
  --glow: rgba(240, 185, 11, 0.16);
  --frame-bg: #0B0E11;
  --header-bg: rgba(24, 26, 32, 0.86);
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; overflow-wrap: anywhere; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 24px; height: 24px; flex: none; }
.icon-sm { width: 18px; height: 18px; flex: none; }

/* ----------------------------------------------------------------- layout */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container-narrow { max-width: 780px; margin-left: auto; margin-right: auto; }
/* 26 Oct 2026: product screenshots follow the site theme (light shots on light, dark shots on dark) */
/* only the picture of the OTHER theme is hidden; the visible one keeps its own layout (block in frames, inline in articles) */
:root[data-theme="light"] img.shot-dark, :root[data-theme="dark"] img.shot-light { display: none !important; }
@media not (prefers-color-scheme: dark) { :root:not([data-theme="dark"]) img.shot-dark { display: none !important; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) img.shot-light { display: none !important; } }
.footer-legal { margin-top: 14px; font-size: 0.6875rem; line-height: 1.5; color: var(--text-4, var(--text-3)); max-width: 1100px; }
.footer-legal a { text-decoration: underline; }
.container-wide { max-width: 1320px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 720px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.small { font-size: 0.875rem; }
.tiny { font-size: 0.8125rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.eyebrow .n { font-family: var(--mono); color: var(--text-3); font-weight: 500; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.hairline { border-top: 1px solid var(--line); }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; } .mt-6 { margin-top: 64px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.hide-mobile { display: none; }
@media (min-width: 720px) { .hide-mobile { display: initial; } }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.up { color: var(--green-text); } .down { color: var(--red-text); }

.page { padding-top: 40px; padding-bottom: 80px; }
.page-head { padding: 0 0 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-weight: 600; letter-spacing: -0.02em; }
.page-head .lede { color: var(--text-2); margin: 10px 0 0; max-width: 64ch; font-size: 1.05rem; }
.page-head > p { margin: 8px 0 0; max-width: 72ch; flex-basis: 100%; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ----------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--header-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line); }
.site-header .container { position: relative; display: flex; align-items: center; height: 100%; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; white-space: nowrap; color: var(--text); }
.brand .mark { width: 28px; height: 28px; flex: none; border-radius: 7px; background: var(--mark-bg, var(--ink-btn)); display: inline-flex; align-items: center; justify-content: center; }
.brand .mark svg { width: var(--mark-size, 18px); height: var(--mark-size, 18px); overflow: visible; }
/* 26 Oct 2026: light mode - no box behind the mark, a brighter, thicker line so it reads on white */
:root { --mark-bg: transparent; --mark-size: 26px; }
.brand .mark .mk-line { stroke: var(--mark-line, url(#pxr-mark-g)); stroke-width: var(--mark-w, 2.8); }
.brand .mark .mk-dot { fill: var(--mark-dot, #00B86B); }
.nav { display: none; align-items: center; gap: 4px; font-size: 0.9rem; font-weight: 500; color: var(--text-2); }
.nav a { padding: 8px 12px; border-radius: var(--radius-sm); transition: color .15s, background .15s; min-height: 40px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--text); background: var(--surface-3); }
.nav-right { margin-left: auto; display: none; align-items: center; gap: 8px; }
.theme-toggle { width: 40px; height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); cursor: pointer; transition: background .15s, color .15s, border-color .15s; flex: none; }
.theme-toggle:hover { color: var(--text); border-color: var(--line-strong); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: block; } .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}
.nav-toggle { width: 40px; height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); position: relative; border-radius: 2px; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-actions-top { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.mobile-nav { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 49; background: var(--bg); padding: 12px var(--gutter) 24px; overflow-y: auto; }
.nav-open .mobile-nav { display: block; }
.mobile-nav a.link { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; font-weight: 500; min-height: 48px; }
.mobile-nav a.link svg { width: 18px; height: 18px; color: var(--text-3); }
.mobile-nav .mobile-actions { display: grid; gap: 10px; margin-top: 20px; }
.mobile-nav .mobile-actions .btn { width: 100%; }
/* 26 Oct 2026: five nav items (Home, Models, Features, Pricing, Knowledge base) - desktop bar from 1100px,
   flowing after the brand; truly centred only once there is room for it */
@media (min-width: 1100px) {
  .nav, .nav-right { display: flex; }
  .nav-toggle, .mobile-nav, .mobile-actions-top { display: none !important; }
  .nav a { padding: 8px 10px; }
}
@media (min-width: 1280px) {
  /* true centre of the header bar, independent of the brand and button widths */
  .site-header .nav { position: absolute; left: 50%; transform: translateX(-50%); }
  .nav a { padding: 8px 12px; }
}

/* ----------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 48px 0 28px; font-size: 0.9rem; color: var(--text-2); flex-shrink: 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; } }
.site-footer h4 { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); margin-bottom: 12px; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 40px; min-width: 44px; padding: 2px 0; transition: color .15s; }
.site-footer li a:hover { color: var(--text); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.8125rem; color: var(--text-3); }
.footer-disclaimer { max-width: 48ch; line-height: 1.55; font-size: 0.875rem; }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; min-height: 40px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-weight: 600; font-size: 0.9rem; line-height: 1.2;
  cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s; text-decoration: none; }
.btn:hover { border-color: var(--text-4); background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn-dark { background: var(--ink-btn); border-color: var(--ink-btn); color: var(--ink-btn-text); }
.btn-dark:hover { background: var(--text-2); border-color: var(--text-2); color: var(--ink-btn-text); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); border-color: transparent; }
.btn-danger { border-color: rgba(246,70,93,0.4); color: var(--red-text); background: var(--surface); }
.btn-danger:hover { background: var(--red-dim); border-color: var(--red); }
.btn-sm { padding: 0 12px; min-height: 36px; font-size: 0.8125rem; }
.btn-lg { padding: 0 24px; min-height: 48px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn svg { width: 18px; height: 18px; }
@media (max-width: 719px) { .btn-sm { min-height: 40px; } }

/* ------------------------------------------------------------------ forms */
.field { display: block; margin-bottom: 16px; min-width: 0; }
.field > label, .field .label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.field .hint { font-size: 0.8125rem; color: var(--text-3); margin-top: 6px; line-height: 1.45; }
.input, .select, .textarea { width: 100%; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 0 12px; min-height: 42px; color: var(--text); font-size: 0.95rem; transition: border-color .15s, box-shadow .15s; }
.input::placeholder, .textarea::placeholder { color: var(--text-4); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-4); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.input[readonly] { background: var(--surface-2); color: var(--text-2); }
.textarea { min-height: 120px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23707A8A' stroke-width='1.75'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.input-mono { font-family: var(--mono); }
.input-group { display: flex; gap: 8px; }
/* password show/hide: the button sits inside the field, and the input keeps room for it */
.pw-wrap { position: relative; display: block; }
.pw-wrap .input { padding-right: 44px; }
.pw-toggle { position: absolute; top: 0; right: 0; width: 42px; height: 100%; display: inline-flex;
  align-items: center; justify-content: center; background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--text-3); border-radius: var(--radius); }
.pw-toggle:hover { color: var(--text); }
.pw-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pw-toggle svg { width: 18px; height: 18px; }
.pw-toggle .pw-eye-off { display: none; }
.pw-wrap.is-shown .pw-toggle .pw-eye { display: none; }
.pw-wrap.is-shown .pw-toggle .pw-eye-off { display: inline; }
.input-group .input { flex: 1; min-width: 0; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--text-2); cursor: pointer; }
.checkbox input { margin-top: 3px; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; flex: none; vertical-align: -3px; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.check-row { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 0.9rem; cursor: pointer; }

/* ------------------------------------------------------------------ cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); min-width: 0; }
@media (min-width: 720px) { .card { padding: 24px; } }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h2, .card-head h3, .card > h3:first-child, .card > h2:first-child { font-size: 1.05rem; font-weight: 600; }
.card > h3:first-child, .card > h2:first-child { margin-bottom: 14px; }
.card-flat { background: transparent; box-shadow: none; }
.card-hover { transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.empty-state { text-align: center; padding: 36px 20px; color: var(--text-3); font-size: 0.9rem; }
.empty-state svg { width: 32px; height: 32px; margin: 0 auto 10px; color: var(--text-4); }
.empty-state b { color: var(--text-2); display: block; margin-bottom: 4px; font-weight: 600; }

/* ----------------------------------------------------------------- tables */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.card > .table-wrap { border-radius: var(--radius); }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.875rem; }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { position: sticky; top: 0; z-index: 1; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); font-weight: 600; background: var(--surface-2); white-space: nowrap; }
.table tbody tr:last-child td, .table > tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td, .table > tr:hover td { background: var(--surface-2); }
.table td.num, .table th.num, .table td.right, .table th.right { text-align: right; font-variant-numeric: tabular-nums; }
.table td.num { font-family: var(--mono); }
.table td a { color: var(--text); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.table td a:hover { text-decoration-color: var(--accent); }
.table .empty, .table td[colspan] { text-align: center; color: var(--text-3); padding: 28px 14px; }
.table .mono { font-size: 0.8125rem; }
.table .btn-sm { min-height: 32px; }
.table .muted { font-size: 0.8125rem; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; font-size: 0.875rem; color: var(--text-2); flex-wrap: wrap; }
.pager a { font-weight: 600; color: var(--text); padding: 8px 0; display: inline-flex; min-height: 40px; align-items: center; }
/* stacked rows on phones (JS adds .table-stack and data-label after reading the header) */
@media (max-width: 719px) {
  .table-wrap { border: 0; background: transparent; overflow: visible; }
  .table.table-stack { display: block; font-size: 0.875rem; border-spacing: 0; }
  .table.table-stack thead, .table.table-stack tbody, .table.table-stack tr, .table.table-stack td { display: block; }
  .table.table-stack thead, .table.table-stack tr.is-head { display: none; }
  .table.table-stack tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 14px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
  .table.table-stack tr:hover td { background: transparent; }
  .table.table-stack td { border: 0; padding: 8px 0; text-align: right !important; display: grid; grid-template-columns: fit-content(36%) minmax(0, 1fr); align-items: center; gap: 0 14px; border-bottom: 1px solid var(--line); min-width: 0; min-height: 44px; }
  .table.table-stack td:last-child { border-bottom: 0; }
  .table.table-stack, .table.table-stack tr { max-width: 100%; }
  .table.table-stack td, .table.table-stack td.nowrap { overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
  .table.table-stack td[data-label]::before { content: attr(data-label); grid-column: 1; grid-row: 1 / span 20; text-align: left; align-self: center; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); overflow-wrap: anywhere; }
  .table.table-stack td > * { min-width: 0; justify-self: end; overflow-wrap: anywhere; }
  .table.table-stack td > * + * { margin-top: 4px; }
  .table.table-stack td.td-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
  .table.table-stack td[colspan] { display: block; text-align: center !important; padding: 20px 0; }
  .table.table-stack td a { display: inline-flex; align-items: center; min-height: 40px; text-align: right; }
  .table.table-stack td .btn-sm, .table .btn-sm { min-height: 40px; }
  .table.table-stack td .muted { display: block; }
}

/* ----------------------------------------------------------------- badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; line-height: 1.6; letter-spacing: 0.01em; border: 1px solid transparent; color: var(--text-2); background: var(--surface-3); white-space: nowrap; vertical-align: middle; }
.badge-green { color: var(--green-text); background: var(--green-dim); }
.badge-amber { color: var(--amber-text); background: var(--amber-dim); }
.badge-ember { color: var(--amber-text); background: var(--amber-dim); }
.badge-red { color: var(--red-text); background: var(--red-dim); }
.badge-gray { color: var(--text-3); background: var(--surface-3); }
.badge-outline { background: transparent; border-color: var(--line-strong); color: var(--text-2); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ----------------------------------------------------------------- alerts */
.alert-box { padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); font-size: 0.9rem; margin-bottom: 16px; display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.alert-box > * { min-width: 0; }
.alert-box, .alert-box .mono { overflow-wrap: anywhere; }
.alert-box::before { content: ""; flex: none; width: 3px; align-self: stretch; border-radius: 2px; background: var(--text-3); }
.alert-box[hidden] { display: none; }
.alert-error { border-color: rgba(246,70,93,0.35); background: var(--red-dim); } .alert-error::before { background: var(--red); }
.alert-ok { border-color: rgba(14,203,129,0.35); background: var(--green-dim); } .alert-ok::before { background: var(--green); }
.alert-info { border-color: rgba(240,185,11,0.4); background: var(--amber-dim); } .alert-info::before { background: var(--amber); }
.alert-box a { text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }

/* ------------------------------------------------------------------- tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs .btn { padding: 10px 14px; font-size: 0.875rem; font-weight: 500; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .15s; min-height: 40px; display: inline-flex; align-items: center; border-radius: 0; background: transparent; border-top: 0; border-left: 0; border-right: 0; }
.tabs a:hover, .tabs .btn:hover { color: var(--text); background: transparent; }
.tabs a.active, .tabs .btn-primary { color: var(--text); border-bottom-color: var(--accent); background: transparent; }
.tabs .btn-ghost { color: var(--text-2); }

/* ------------------------------------------------------------------- stat */
.stat { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); min-width: 0; }
.stat .value, .stat .stat-v { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat .label, .stat .stat-l { font-size: 0.8125rem; color: var(--text-3); margin-top: 6px; font-weight: 500; }
.stat .delta { font-size: 0.8125rem; font-weight: 600; }
.stat-row, .stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (min-width: 720px) { .stat-row, .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat-grid .card.stat { padding: 16px 18px; margin-bottom: 0; }

.kbd { font-family: var(--mono); font-size: 0.8em; padding: 2px 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; background: var(--surface-2); color: var(--text); }

/* ------------------------------------------------------------------ prose */
.prose { font-size: 1rem; line-height: 1.7; color: var(--text); max-width: 72ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h1 { font-size: 2rem; margin-top: 0; }
.prose h2 { font-size: 1.45rem; margin-top: 2em; padding-top: 0.75em; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1.15rem; margin-top: 1.7em; }
.prose h4 { font-size: 1rem; font-weight: 700; margin-top: 1.4em; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose a { color: var(--accent-text); text-decoration: underline; text-decoration-color: rgba(240,185,11,0.5); text-underline-offset: 3px; font-weight: 500; }
.prose a:hover { text-decoration-color: var(--accent-text); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--text-3); }
.prose code { font-family: var(--mono); font-size: 0.86em; background: var(--surface-2); border: 1px solid var(--line); padding: 1px 5px; border-radius: 4px; }
.prose pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; overflow-x: auto; font-size: 0.85rem; line-height: 1.55; }
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--text-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.875rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); font-weight: 600; background: var(--surface-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose img { border: 1px solid var(--line); border-radius: var(--radius); }
.prose strong { font-weight: 600; }
.prose kbd { font-family: var(--mono); font-size: 0.8em; padding: 2px 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; background: var(--surface-2); }

/* ==================================================================== marketing */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* 26 Oct 2026: the hero is the first thing a visitor sees - its text is visible at once (no blank fade-in) */
.hero .reveal { opacity: 1; transform: none; transition: none; }
.reveal-d1 { transition-delay: .07s; } .reveal-d2 { transition-delay: .14s; } .reveal-d3 { transition-delay: .21s; }

.section { padding: 72px 0; position: relative; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 600; letter-spacing: -0.02em; margin-top: 12px; text-wrap: balance; }
.section-head p { font-size: 1.05rem; color: var(--text-2); margin: 14px 0 0; }
.section-foot { margin-top: 32px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* hero (26 Oct 2026 redesign: animated grid + glow + price line, proof stats, device frame) */
.hero { position: relative; padding: 52px 0 0; overflow: hidden; background: var(--bg); isolation: isolate; }
@media (min-width: 900px) { .hero { padding-top: 84px; } }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-grid { position: absolute; inset: -1px; opacity: .55;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; background-position: 0 0;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 18%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 75% 60% at 50% 18%, #000 30%, transparent 75%);
  animation: hero-grid 24s linear infinite; }
@keyframes hero-grid { from { background-position: 0 0; } to { background-position: 0 56px; } }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .9; will-change: transform; }
.hero-glow.g1 { width: 620px; height: 420px; left: 50%; top: -180px; margin-left: -420px; background: radial-gradient(closest-side, var(--glow), transparent); animation: hero-drift 18s var(--ease) infinite alternate; }
.hero-glow.g2 { width: 520px; height: 380px; left: 50%; top: -80px; margin-left: 40px; background: radial-gradient(closest-side, var(--green-dim), transparent); animation: hero-drift 22s var(--ease) infinite alternate-reverse; }
@media (max-width: 719px) { .hero-glow.g1 { width: 420px; height: 320px; margin-left: -260px; } .hero-glow.g2 { width: 360px; height: 280px; margin-left: -40px; } }
@keyframes hero-drift { from { transform: translate3d(-40px, 0, 0) scale(1); } to { transform: translate3d(60px, 30px, 0) scale(1.12); } }
.hero-line { position: absolute; left: -2%; width: 104%; max-width: none; top: 120px; height: 300px; color: var(--accent); opacity: .5;
  /* faint behind the headline and copy, full strength towards the edges */
  -webkit-mask-image: radial-gradient(ellipse 36% 60% at 50% 45%, rgba(0, 0, 0, .18), #000 100%), linear-gradient(180deg, #000 45%, transparent);
          mask-image: radial-gradient(ellipse 36% 60% at 50% 45%, rgba(0, 0, 0, .18), #000 100%), linear-gradient(180deg, #000 45%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  animation: hero-float 14s ease-in-out infinite alternate; }
.hero-line .hl-path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: hero-draw 3.2s var(--ease) .3s forwards; }
.hero-line .hl-ghost { stroke-dasharray: 4 6; stroke-dashoffset: 0; animation: none; opacity: .45; }
.hero-line .hl-area { opacity: 0; animation: hero-fade 1.6s ease 1.8s forwards; }
@keyframes hero-draw { to { stroke-dashoffset: 0; } }
@keyframes hero-fade { to { opacity: 1; } }
@keyframes hero-float { from { transform: translateY(0); } to { transform: translateY(-18px); } }
@media (min-width: 900px) { .hero-line { top: 170px; opacity: .6; } }

.hero-inner { position: relative; text-align: center; max-width: 900px; margin: 0 auto; }
.hero-pill { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 6px 12px 6px 10px; margin-bottom: 24px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface) 78%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm);
  font-size: 0.8125rem; font-weight: 500; color: var(--text-2); text-align: left; transition: border-color .2s, transform .2s var(--ease); }
.hero-pill:hover { border-color: var(--accent); transform: translateY(-1px); }
.hero-pill b { color: var(--accent-text); font-weight: 600; }
.hero-pill > span:nth-child(2) { min-width: 0; }
.hero-pill .icon-sm { width: 15px; height: 15px; color: var(--text-3); }
.hero-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; animation: hero-pulse 2.4s ease-out infinite; }
@keyframes hero-pulse { 0% { box-shadow: 0 0 0 0 rgba(14, 203, 129, .45); } 70%, 100% { box-shadow: 0 0 0 8px rgba(14, 203, 129, 0); } }
.hero h1 { font-size: clamp(2.2rem, 6.4vw, 4.3rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
.hero h1 .hl { color: var(--accent-text); background-image: linear-gradient(100deg, #C99400 5%, #E0A800 45%, var(--green-text) 110%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
:root[data-theme="dark"] .hero h1 .hl { background-image: linear-gradient(100deg, var(--accent) 10%, var(--accent-hover) 45%, var(--green) 110%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 .hl { background-image: linear-gradient(100deg, var(--accent) 10%, var(--accent-hover) 45%, var(--green) 110%); } }
.hero .lede { font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: var(--text-2); max-width: 62ch; margin: 22px auto 30px; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: center; }
.hero-actions .btn { min-width: 180px; }
.hero-actions .btn-primary { box-shadow: 0 10px 28px -12px var(--accent); }
.hero-actions .btn-primary:hover { transform: translateY(-1px); }
.btn-glass { background: color-mix(in srgb, var(--surface) 70%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-color: var(--line-strong); }
.hero .note { font-size: 0.875rem; color: var(--text-3); margin-top: 16px; }
.hero .note b { color: var(--text-2); font-weight: 500; }
@media (max-width: 479px) { .hero-actions .btn { width: 100%; } }

/* proof stats under the hero copy */
.proof { position: relative; margin: 40px auto 0; max-width: 1000px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow); }
@media (min-width: 900px) { .proof { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.proof-stat { display: flex; flex-direction: column; gap: 6px; padding: 16px 14px; min-width: 0; text-align: left; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-stat:nth-child(2n) { border-right: 0; }
.proof-stat:nth-child(n+3) { border-bottom: 0; }
@media (min-width: 900px) { .proof-stat { padding: 22px; border-bottom: 0; border-right: 1px solid var(--line); } .proof-stat:nth-child(2n) { border-right: 1px solid var(--line); } .proof-stat:last-child { border-right: 0; } }
.proof-stat .k { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.proof-stat .v { font-size: clamp(1.4rem, 3.2vw, 2.1rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; color: var(--text); overflow-wrap: anywhere; }
.proof-stat .v.up { color: var(--green-text); } .proof-stat .v.down { color: var(--red-text); }
.proof-stat .v i { font-style: normal; color: var(--text-3); font-weight: 600; }
.proof-stat .c { font-size: 0.85rem; color: var(--text-2); line-height: 1.4; }
.proof-note { margin: 12px auto 0; text-align: center; font-size: 0.8125rem; color: var(--text-3); }
.proof-note a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.proof-note a:hover { color: var(--accent-text); }

/* ticker */
.ticker { position: relative; margin: 0; max-width: none; padding: 0; }
.ticker-inner { border: 0; border-bottom: 1px solid var(--line); background: var(--surface); border-radius: 0; overflow: hidden; white-space: nowrap; font-family: var(--mono); font-size: 0.8125rem; height: 44px; display: flex; align-items: center; position: relative; box-shadow: var(--shadow-sm); }
.ticker-inner::before, .ticker-inner::after { content: ""; position: absolute; top: 0; bottom: 0; width: 56px; z-index: 2; pointer-events: none; }
.ticker-inner::before { left: 0; background: linear-gradient(90deg, var(--surface), transparent); }
.ticker-inner::after { right: 0; background: linear-gradient(-90deg, var(--surface), transparent); }
.ticker-track { display: inline-flex; gap: 0; animation: ticker 60s linear infinite; will-change: transform; }
.ticker-track:hover { animation-play-state: paused; }
.ticker .item { display: inline-flex; gap: 10px; padding: 0 22px; border-right: 1px solid var(--line); align-items: center; height: 44px; }
.ticker .sym { color: var(--text-2); }
.ticker .sym b { color: var(--text); font-weight: 500; }
.ticker .px { color: var(--text); font-weight: 500; }
/* green / red by the day's change (7 Oct 2026) */
.ticker .item.up .px, .ticker .item.up .chg, .ticker .item.up .sym b { color: #22c55e; }
.ticker .item.down .px, .ticker .item.down .chg, .ticker .item.down .sym b { color: #ef4444; }
.ticker .chg { font-size: 0.75em; font-weight: 600; }
.ticker .chg { font-size: 0.75rem; font-weight: 500; padding: 1px 6px; border-radius: 4px; }
.ticker .chg.up { color: var(--green-text); background: var(--green-dim); } .ticker .chg.down { color: var(--red-text); background: var(--red-dim); }
.ticker .label { color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.7rem; display: inline-flex; align-items: center; gap: 8px; }
.ticker .label .live { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.ticker.is-empty .ticker-track { animation: none; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* browser frame */
.frame { background: var(--frame-bg); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.frame-bar { height: 36px; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,0.08); background: #161B22; }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3C434D; }
.frame-bar i:nth-child(1) { background: #F6465D; } .frame-bar i:nth-child(2) { background: #F0B90B; } .frame-bar i:nth-child(3) { background: #0ECB81; }
.frame-bar .url { margin-left: 12px; font-family: var(--mono); font-size: 0.7rem; color: #848E9C; background: #0B0E11; padding: 4px 12px; border-radius: 5px; flex: 1; max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame img { width: 100%; height: auto; display: block; }
.hero-shot { position: relative; margin: 48px auto 0; max-width: 1240px; padding: 0 var(--gutter); perspective: 2200px; }
.hero-shot::before { content: ""; position: absolute; left: 10%; right: 10%; top: 6%; bottom: 0; background: radial-gradient(60% 60% at 50% 40%, var(--glow), transparent 70%); filter: blur(48px); pointer-events: none; }
.hero-shot .device { position: relative; transform-origin: 50% 0; }
.hero-shot .frame { position: relative; border-radius: 16px;
  box-shadow: 0 50px 100px -30px rgba(11, 14, 17, .45), 0 30px 60px -30px rgba(11, 14, 17, .35), 0 0 0 8px color-mix(in srgb, var(--surface) 60%, transparent), 0 0 0 9px var(--line); }
.hero-shot .frame-bar { height: 38px; }
@media (min-width: 900px) {
  .hero-shot .device { transform: rotateX(9deg); animation: hero-tilt 1.4s var(--ease) .4s backwards; transition: transform .8s var(--ease); }
  .hero-shot .device:hover { transform: rotateX(3deg); }
}
@keyframes hero-tilt { from { transform: rotateX(18deg) translateY(30px); opacity: 0; } to { transform: rotateX(9deg) translateY(0); opacity: 1; } }
.float-card { display: none; position: absolute; z-index: 2; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); font-size: 0.8rem; line-height: 1.3; color: var(--text); white-space: nowrap; }
.float-card b { font-weight: 600; }
.float-card .muted { color: var(--text-3); font-size: 0.75rem; }
.fc-ico { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-dim); color: var(--accent-text); flex: none; }
.fc-ico.up { background: var(--green-dim); color: var(--green-text); } .fc-ico.down { background: var(--red-dim); color: var(--red-text); }
@media (min-width: 1100px) {
  .float-card { display: inline-flex; animation: hero-bob 6s ease-in-out infinite alternate; }
  .fc-1 { left: -18px; top: 16%; }
  .fc-2 { right: -22px; top: 36%; animation-delay: -2s; }
  .fc-3 { left: 7%; bottom: 16%; animation-delay: -4s; }
}
@keyframes hero-bob { from { transform: translateY(0); } to { transform: translateY(-10px); } }
.hero-shot .shot-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none; z-index: 3; }
@media (prefers-reduced-motion: reduce) {
  .hero-grid, .hero-glow, .hero-line, .hero-pill .dot, .float-card { animation: none !important; }
  .hero-line .hl-path { stroke-dashoffset: 0; animation: none !important; }
  .hero-line .hl-area { opacity: 1; animation: none !important; }
  .hero-shot .device { animation: none !important; }
}

/* models grid: the flagship Pair Model card spans the row */
.models .flagship { position: relative; border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: radial-gradient(120% 140% at 100% 0%, var(--accent-dim), transparent 55%), var(--surface); box-shadow: var(--shadow); }
@media (min-width: 720px) { .models .flagship { grid-column: 1 / -1; padding: 28px; } }
.flag-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flag-badge { border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.models .flagship h3 { font-size: 1.35rem; }
.models .flagship > p { font-size: 0.975rem; max-width: 80ch; }
.models .flagship p b { color: var(--text); }
.flag-stats { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 720px) { .flag-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.flag-stats li { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: var(--surface); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.flag-stats b { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; color: var(--green-text); font-variant-numeric: tabular-nums; }
.flag-stats span { font-size: 0.85rem; color: var(--text-2); }
.models .flagship .flag-note { font-size: 0.8125rem; color: var(--text-3); }
.models .flagship .flag-note a { text-decoration: underline; text-underline-offset: 2px; }
.hero-bottom { height: 1px; }

/* stat tiles */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); min-width: 0; }
.tile .big { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tile .big i { font-style: normal; color: var(--accent-text); }
.tile .cap { font-size: 0.875rem; color: var(--text-2); margin-top: 10px; line-height: 1.45; }

/* feature grid */
.features { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; min-width: 0; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.feature-card .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--accent-dim); color: var(--accent-text); display: inline-flex; align-items: center; justify-content: center; }
.feature-card h3 { font-size: 1.05rem; font-weight: 600; }
.feature-card p { font-size: 0.9rem; color: var(--text-2); margin: 0; line-height: 1.55; }
.feature-card .more { margin-top: auto; font-size: 0.875rem; font-weight: 600; color: var(--accent-text); display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.feature-card .more svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.feature-card:hover .more svg { transform: translateX(3px); }

/* feature detail blocks (features page + home showcase) */
.feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 48px 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .feature { grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; padding: 64px 0; } .feature.flip > .feature-text { order: 2; } }
.feature-text .eyebrow { margin-bottom: 14px; }
.feature-text h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; margin-bottom: 14px; text-wrap: balance; }
.feature-text p { color: var(--text-2); font-size: 1rem; }
.feature-text ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.feature-text li { padding: 0 0 0 30px; font-size: 0.925rem; position: relative; color: var(--text-2); }
.feature-text li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--green-dim);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A9F66' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l5 5L20 7'/></svg>"); background-size: 11px; background-repeat: no-repeat; background-position: center; }
.feature-text li b { color: var(--text); font-weight: 600; }
.feature-art { min-width: 0; }
.feature-art .frame { max-width: 100%; }
.feature-art .frame.small { max-width: 560px; }

/* stepper */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { position: relative; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); counter-increment: step; min-width: 0; }
.steps .n { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink-btn); color: var(--ink-btn-text); font-family: var(--mono); font-size: 0.8125rem; font-weight: 500; margin-bottom: 16px; }
.steps h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.steps p { font-size: 0.9rem; color: var(--text-2); margin: 0; }
.steps .t { font-family: var(--mono); font-size: 0.75rem; color: var(--text-3); margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; background: var(--surface-2); border-radius: 4px; }
@media (min-width: 1024px) { .steps li:not(:last-child)::after { content: ""; position: absolute; right: -16px; top: 38px; width: 16px; height: 1px; background: var(--line-strong); } }

/* "what it is not" */
.honest { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; background: var(--surface); display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); box-shadow: var(--shadow-sm); }
@media (min-width: 900px) { .honest { grid-template-columns: 1fr 2fr; gap: 48px; padding: 40px; } }
.honest h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -0.02em; margin-top: 12px; }
.honest .lead { color: var(--text-2); margin-top: 12px; font-size: 0.95rem; }
.honest ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.honest li { padding: 14px 0 14px 34px; border-top: 1px solid var(--line); position: relative; font-size: 0.925rem; color: var(--text-2); }
.honest li:first-child { border-top: 0; padding-top: 0; }
.honest li::before { content: ""; position: absolute; left: 0; top: 16px; width: 20px; height: 20px; border-radius: 50%; background: var(--red-dim);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D83A4E' stroke-width='3' stroke-linecap='round'><path d='M6 6l12 12M18 6L6 18'/></svg>"); background-size: 10px; background-repeat: no-repeat; background-position: center; }
.honest li:first-child::before { top: 2px; }
.honest li b { color: var(--text); font-weight: 600; }

/* comparison */
.compare-wrap { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.9rem; }
.compare th, .compare td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.compare tr:last-child td { border-bottom: 0; }
.compare th { font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); font-weight: 600; background: var(--surface-2); }
.compare th:nth-child(3) { color: var(--accent-text); }
.compare th:nth-child(3), .compare td:nth-child(3) { background: var(--accent-dim); }
.compare th:nth-child(3) { background: var(--accent-dim); }
.compare td:first-child { color: var(--text); font-weight: 600; width: 28%; }
.compare td:nth-child(2) { color: var(--text-3); }
.compare td:nth-child(3) { color: var(--text); }
@media (max-width: 719px) {
  .compare, .compare tbody, .compare tr, .compare td { display: block; }
  .compare thead { display: none; }
  .compare tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .compare tr:last-child { border-bottom: 0; }
  .compare td { padding: 4px 0; width: auto !important; border: 0; background: transparent !important; }
  .compare td:first-child { padding-bottom: 8px; font-size: 0.95rem; }
  .compare td[data-label]::before { content: attr(data-label); display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 2px; }
  .compare td:nth-child(3)[data-label]::before { color: var(--accent-text); }
  .compare td:nth-child(3) { padding-top: 10px; }
}

/* pricing */
.pricing-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
@media (max-width: 640px) { .pricing-top { flex-direction: column; justify-content: center; text-align: center; } }
.pricing-toggle { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 3px; font-size: 0.875rem; font-weight: 600; }
.pricing-toggle button { border: 0; background: transparent; color: var(--text-2); padding: 0 16px; min-height: 38px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; display: inline-flex; align-items: center; gap: 8px; }
.pricing-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.pricing-toggle .save { font-size: 0.7rem; color: var(--green-text); background: var(--green-dim); padding: 1px 6px; border-radius: 999px; letter-spacing: 0.02em; }
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: stretch; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1024px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }   /* 27 Oct 2026: 6 plans = 3 x 2 */
.plans .plan .coins { font-size: 2.2rem; font-weight: 700; line-height: 1; margin: 14px 0 2px; }
.plans .plan .coins small, .choose-plans .plan .coins small { font-size: .85rem; font-weight: 500; color: var(--muted); }
.plan .every { font-size: .85rem; color: var(--muted); margin: 6px 0 16px; }
.trial-bar { margin-top: 18px; padding: 18px 22px; border: 1px dashed var(--accent); border-radius: var(--radius-lg); background: var(--surface);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.trial-bar .name { font-size: 1.15rem; font-weight: 600; }
.trial-bar .amt { font-size: 1.6rem; font-weight: 700; }
.feature-all { margin-top: 22px; columns: 1; column-gap: 28px; padding-left: 18px; }
.coin-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 18px; }
.coin-chip { font-family: var(--mono, monospace); font-size: .85rem; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.coin-chip small { color: var(--muted); font-size: .7rem; }
.plan .coins sup { font-size: .55em; color: var(--accent-text, var(--accent)); margin-left: 1px; }
@media (min-width: 720px) { .feature-all { columns: 2; } }
@media (min-width: 1024px) { .feature-all { columns: 3; } }
.plan { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; position: relative; box-shadow: var(--shadow-sm); min-width: 0; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.plan:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.plan.highlight { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan .tag { position: absolute; top: -13px; left: 20px; background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 3px var(--surface); }
.plan .tag.badge-green { background: var(--green); color: #fff; }
.plan .name { font-size: 1.2rem; font-weight: 600; }
.plan .blurb { color: var(--text-2); font-size: 0.875rem; margin: 6px 0 18px; min-height: 2.6em; }
.plan .price { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.plan .price .amt { font-size: 2.4rem; letter-spacing: -0.03em; line-height: 1; font-weight: 600; }
.plan .price .per { color: var(--text-3); font-size: 0.875rem; }
.plan .price-note { font-size: 0.8125rem; color: var(--text-3); margin-top: 8px; min-height: 1.4em; }
.plan .limits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan .limits .k { font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.plan .limits .v { font-size: 1.05rem; font-weight: 600; margin-top: 2px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; font-size: 0.875rem; color: var(--text-2); flex: 1; display: grid; gap: 8px; align-content: start; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--green-dim);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A9F66' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l5 5L20 7'/></svg>"); background-size: 10px; background-repeat: no-repeat; background-position: center; }
.plan li.inherit { color: var(--text-3); font-weight: 500; }
.plan li.inherit::before { background: var(--surface-3); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23707A8A' stroke-width='3' stroke-linecap='round'><path d='M12 5v14M5 12h14'/></svg>"); background-size: 10px; background-repeat: no-repeat; background-position: center; }
.plan .btn { margin-top: auto; width: 100%; }
.pay-note { margin-top: 20px; font-size: 0.8125rem; color: var(--text-3); display: flex; gap: 8px 20px; flex-wrap: wrap; }
.pay-note span { display: inline-flex; align-items: center; gap: 6px; }
.pay-note svg { width: 16px; height: 16px; color: var(--green-text); }

/* faq */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 18px; font-size: 1rem; font-weight: 600; display: flex; justify-content: space-between; gap: 20px; align-items: center; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--surface-2);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23474D57' stroke-width='2.5' stroke-linecap='round'><path d='M12 5v14M5 12h14'/></svg>"); background-size: 12px; background-repeat: no-repeat; background-position: center; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 18px 18px; color: var(--text-2); max-width: 70ch; font-size: 0.95rem; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* cta band */
.cta-band { padding: 72px 0; border-top: 1px solid var(--line); background: var(--surface); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 300px at 50% 120%, var(--glow), transparent 70%); pointer-events: none; }
.cta-band .container { position: relative; text-align: center; }
.cta-band h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 600; letter-spacing: -0.02em; max-width: 22ch; margin: 0 auto; text-wrap: balance; }
.cta-band p { color: var(--text-2); margin: 14px auto 0; max-width: 52ch; }
.cta-band .row { margin-top: 28px; justify-content: center; }

/* features page */
.feature-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
@media (min-width: 720px) { .feature-index { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .feature-index { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.feature-index a { padding: 10px 12px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); font-size: 0.875rem; font-weight: 500; color: var(--text-2); display: flex; gap: 8px; align-items: center; min-height: 44px; transition: border-color .15s, color .15s; }
.feature-index a:hover { color: var(--text); border-color: var(--line-strong); }
.feature-index a .n { font-family: var(--mono); font-size: 0.75rem; color: var(--accent-text); }
.spec { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 18px 0 0; border-top: 1px solid var(--line); }
.spec div { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; font-size: 0.875rem; }
.spec dt { font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); padding-top: 3px; font-weight: 600; }
.spec dd { margin: 0; color: var(--text-2); }
.calendar-demo .ev { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.calendar-demo .ev:last-child { border-bottom: 0; }

/* ==================================================================== auth */
.auth { min-height: calc(100vh - var(--header-h) - 220px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px var(--gutter) 48px; background: var(--bg); position: relative; }
.auth::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 320px at 50% -10%, var(--glow), transparent 70%); pointer-events: none; }
.auth-top { width: 100%; max-width: 440px; display: flex; justify-content: space-between; align-items: center; gap: 12px; position: relative; min-height: 40px; flex-wrap: nowrap; }
.auth-switch { width: 100%; max-width: 440px; text-align: center; margin-top: 18px; font-size: 0.9rem; color: var(--text-2); position: relative; }
.auth-switch a { font-weight: 600; color: var(--text); text-decoration: underline; text-underline-offset: 3px; padding: 10px 4px; display: inline-block; min-width: 44px; }
.auth-top .small a { font-weight: 600; color: var(--text); text-decoration: underline; text-underline-offset: 3px; padding: 11px 4px; display: inline-block; min-width: 44px; text-align: center; }
.auth-card { width: 100%; max-width: 440px; margin: auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 22px; box-shadow: var(--shadow); position: relative; }
@media (min-width: 480px) { .auth-card { padding: 36px 36px; } }
.auth-card h1 { font-size: 1.6rem; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.02em; }
.auth-card .sub { color: var(--text-2); margin-bottom: 24px; font-size: 0.95rem; }
.auth-card .alt { margin: 20px 0 0; font-size: 0.9rem; color: var(--text-2); text-align: center; }
.auth-card .alt a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 8px 0; display: inline-block; }
.auth-foot { margin-top: 24px; font-size: 0.875rem; color: var(--text-3); text-align: center; position: relative; display: flex; gap: 0 20px; flex-wrap: wrap; justify-content: center; align-items: center; }
.auth-foot a { padding: 8px 0; display: inline-block; }
.auth-foot a:hover { color: var(--text); }

/* ==================================================================== app shell (account + admin) */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.shell-top { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: var(--header-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.shell-top .inner { display: flex; align-items: center; height: 100%; gap: 12px; padding: 0 var(--gutter); max-width: 1600px; margin: 0 auto; }
.shell-top .brand { margin-right: 4px; min-width: 40px; justify-content: center; }
.shell-top .sect { font-size: 0.9rem; font-weight: 600; color: var(--text-2); display: none; align-items: center; gap: 10px; min-width: 0; flex: 0 1 auto; }
.shell-top .sect > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.shell-top .sect .sep { width: 1px; height: 20px; background: var(--line-strong); }
.shell-top .sect .area { color: var(--text-3); font-weight: 500; }
@media (min-width: 720px) { .shell-top .sect { display: inline-flex; } }
.shell-top .spacer { flex: 1; }
.shell-top .btn-sm { min-height: 40px; }
.shell-top .hide-tablet { display: none; }
@media (min-width: 1024px) { .shell-top .hide-tablet { display: inline-flex; } }
.user-menu { position: relative; }
.user-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 6px 0 4px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; cursor: pointer; max-width: 260px; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover { border-color: var(--line-strong); }
.user-menu .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--ink-btn); color: var(--ink-btn-text); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.8125rem; text-transform: uppercase; flex: none; }
.user-menu .who { font-size: 0.8125rem; font-weight: 500; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: none; }
@media (min-width: 720px) { .user-menu .who { display: block; } }
.user-menu summary svg { width: 16px; height: 16px; color: var(--text-3); flex: none; }
.user-menu .menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 6px; z-index: 60; }
.user-menu .menu .hd { padding: 10px 12px 8px; font-size: 0.8125rem; color: var(--text-3); border-bottom: 1px solid var(--line); margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu .menu .hd b { display: block; color: var(--text); font-weight: 600; font-size: 0.875rem; }
.user-menu .menu a, .user-menu .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0 12px; min-height: 40px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500; color: var(--text); background: transparent; border: 0; text-align: left; cursor: pointer; }
.user-menu .menu a:hover, .user-menu .menu button:hover { background: var(--surface-2); }
.user-menu .menu svg { width: 18px; height: 18px; color: var(--text-3); }
.user-menu .menu form { margin: 0; }
.user-menu .menu .danger { color: var(--red-text); }
.rail-toggle { width: 40px; height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; color: var(--text); }
.rail-toggle svg { width: 20px; height: 20px; }
@media (min-width: 720px) { .rail-toggle { display: none; } }

.shell-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); max-width: 1600px; width: 100%; margin: 0 auto; padding: 0 var(--gutter) 64px; gap: 0; }
@media (min-width: 1024px) { .shell-body { grid-template-columns: var(--rail-w) minmax(0, 1fr); gap: 32px; } }
.shell-rail { min-width: 0; }
.rail-nav { display: flex; flex-direction: column; gap: 2px; }
.rail-nav a { display: flex; align-items: center; gap: 10px; padding: 0 12px; min-height: 40px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500; color: var(--text-2); transition: background .15s, color .15s; white-space: nowrap; }
.rail-nav a svg { width: 18px; height: 18px; color: var(--text-3); flex: none; }
.rail-nav a:hover { background: var(--surface-2); color: var(--text); }
.rail-nav a.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.rail-nav a.active svg { color: var(--accent-text); }
.rail-nav .group { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); font-weight: 600; padding: 16px 12px 6px; }
.rail-nav .group:first-child { padding-top: 0; }
.rail-foot { margin-top: 20px; padding: 12px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--text-3); }
.rail-foot .theme-toggle { margin-top: 10px; }
/* desktop: sticky left rail */
@media (min-width: 1024px) {
  .shell-rail { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; padding-top: 28px; max-height: calc(100vh - var(--header-h) - 24px); overflow-y: auto; }
  .rail-close, .rail-backdrop { display: none; }
}
/* tablet: horizontal scrollable tab bar */
@media (min-width: 720px) and (max-width: 1023px) {
  .shell-rail { position: sticky; top: var(--header-h); z-index: 40; background: var(--bg); margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); border-bottom: 1px solid var(--line); }
  .rail-nav { flex-direction: row; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 6px 0; }
  .rail-nav::-webkit-scrollbar { display: none; }
  .rail-nav a { flex: none; min-height: 40px; }
  .rail-nav a.active { box-shadow: none; border-color: var(--line-strong); }
  .rail-nav .group { display: none; }
  .rail-foot, .rail-close, .rail-backdrop { display: none; }
}
/* phone: drawer */
@media (max-width: 719px) {
  .shell-rail { position: fixed; top: 0; left: 0; bottom: 0; width: min(300px, 86vw); background: var(--surface); border-right: 1px solid var(--line); z-index: 70; padding: 16px; overflow-y: auto; transform: translateX(-104%); transition: transform .25s var(--ease); box-shadow: var(--shadow-lg); }
  .rail-open .shell-rail { transform: none; }
  .rail-backdrop { position: fixed; inset: 0; background: rgba(11,14,17,0.5); z-index: 69; display: none; border: 0; padding: 0; }
  .rail-open .rail-backdrop { display: block; }
  .rail-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
  .rail-close { width: 40px; height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
  .rail-close svg { width: 18px; height: 18px; }
  .rail-nav a { min-height: 44px; }
  body.rail-open { overflow: hidden; }
}
@media (min-width: 720px) { .rail-head { display: none; } }
.shell-main { min-width: 0; padding-top: 24px; }
@media (min-width: 1024px) { .shell-main { padding-top: 28px; } }
.shell-main .page-head { padding-bottom: 18px; margin-bottom: 20px; align-items: center; }
.shell-main .page-head h1 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.shell-main .page-head h1 .muted { font-weight: 400; font-size: 0.9em; }
.shell-main .card { margin-bottom: 16px; }
.shell-main .grid-2 > .card, .shell-main .grid-3 > .card { margin-bottom: 0; }
.shell-main .grid-2, .shell-main .grid-3 { margin-bottom: 16px; }
.shell-main section + section { margin-top: 28px; }
.shell-main h2.sec { font-size: 1.05rem; font-weight: 600; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.shell-main h2.sec .tiny { font-weight: 400; }
.shell-main h2.sec form { margin: 0; }
.inline-form { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.inline-form .field { margin: 0; flex: 1 1 220px; }
.inline-form > label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 0.9rem; cursor: pointer; }
.preview-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 1024px) { .preview-grid { grid-template-columns: 1fr 1fr; } }
.preview-pane { min-height: 320px; max-height: 70vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--surface-2); font-size: 0.925rem; }
.preview-grid .textarea { min-height: 320px; font-size: 0.875rem; }
.pw-reveal { margin-top: 10px; padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: var(--radius); font-size: 0.9rem; background: var(--amber-dim); overflow-wrap: anywhere; }
.pw-reveal[hidden] { display: none; }
.kv { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.875rem; color: var(--text-2); margin-top: 6px; }
.kv b { color: var(--text); font-weight: 500; }
.kv a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .badge { white-space: normal; text-align: left; line-height: 1.4; padding: 4px 10px; }
.queue-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.queue-list li { font-family: var(--mono); font-size: 0.8125rem; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); }
.actions-cell { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
@media (min-width: 720px) { .td-wide { min-width: 260px; } }

/* account specifics */
.plan-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 720px) { .plan-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.plan-card .plan-name { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.plan-card .meta { display: flex; gap: 8px 20px; flex-wrap: wrap; margin-top: 10px; font-size: 0.875rem; color: var(--text-2); }
.plan-card .meta b { color: var(--text); font-weight: 600; }
.plan-card .row .btn { flex: 1; }
@media (min-width: 720px) { .plan-card .row .btn { flex: none; } }
.usage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 600px) { .usage { grid-template-columns: 1fr 1fr; } }
.usage .card { margin-bottom: 0; }
.usage .k { font-size: 0.8125rem; font-weight: 600; color: var(--text-2); }
.meter { height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; margin-top: 12px; }
.meter i { display: block; height: 100%; background: var(--green); width: var(--w, 0%); border-radius: 3px; transition: width .6s var(--ease); }
.meter.warn i { background: var(--red); }
.preparing { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.preparing li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); font-size: 0.9rem; align-items: center; }
.choose-plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 640px) { .choose-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1100px) { .choose-plans { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
.choose-plans .plan .coins { font-size: 1.6rem; font-weight: 700; line-height: 1; margin: 8px 0 4px; }
.choose-plans .plan { padding: 20px; margin: 0; }
.choose-plans .plan .name { font-size: 1.1rem; }
.choose-plans .plan .price .amt { font-size: 2rem; }
.quote { font-size: 0.875rem; display: grid; gap: 6px; padding: 12px 0 14px; border-top: 1px solid var(--line); margin-top: 4px; }
.quote div { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.quote .total { font-size: 1rem; font-weight: 600; color: var(--text); padding-top: 8px; border-top: 1px solid var(--line); }
.quote .ok { color: var(--green-text); } .quote .bad { color: var(--red-text); }
.copy-box { display: flex; gap: 8px; align-items: stretch; }
.copy-box .input { font-family: var(--mono); font-size: 0.875rem; min-width: 0; }
.sessions { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sessions li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px 14px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); font-size: 0.875rem; }
@media (min-width: 600px) { .sessions li { grid-template-columns: minmax(0, 1fr) auto; } .sessions li .when { text-align: right; } }
.sessions .ua { display: block; color: var(--text-3); font-size: 0.8125rem; overflow-wrap: anywhere; margin-top: 2px; }
.sessions .when { color: var(--text-3); font-size: 0.8125rem; font-family: var(--mono); line-height: 1.5; }

/* ==================================================================== knowledge base */
.kb { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 720px) { .kb { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; } }
@media (min-width: 1200px) { .kb { grid-template-columns: 250px minmax(0, 1fr) 200px; gap: 48px; } }
.kb-side { font-size: 0.875rem; min-width: 0; }
@media (min-width: 720px) { .kb-side { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; } }
.kb-tree > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px; min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-weight: 600; font-size: 0.9rem; box-shadow: var(--shadow-sm); }
.kb-tree > summary::-webkit-details-marker { display: none; }
.kb-tree > summary svg { width: 18px; height: 18px; color: var(--text-3); transition: transform .2s; }
.kb-tree[open] > summary svg { transform: rotate(180deg); }
.kb-tree .tree-body { padding-top: 16px; }
@media (min-width: 720px) { .kb-tree[open] > summary { display: none; } .kb-tree .tree-body { padding-top: 0; } }
.kb-side h4 { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin: 20px 0 6px; font-weight: 600; }
.kb-side h4:first-of-type { margin-top: 0; }
.kb-side ul { list-style: none; padding: 0; margin: 0; }
.kb-side li a { display: flex; align-items: center; min-height: 40px; padding: 6px 10px; border-radius: var(--radius-sm); color: var(--text-2); line-height: 1.35; transition: background .15s, color .15s; }
.kb-side li a:hover { color: var(--text); background: var(--surface-2); }
.kb-side li a.active { color: var(--text); background: var(--surface); font-weight: 600; box-shadow: inset 2px 0 0 var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.kb-toc { font-size: 0.8125rem; display: none; }
@media (min-width: 1200px) { .kb-toc { display: block; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.kb-toc h4 { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin: 0 0 8px; font-weight: 600; }
.kb-toc ul { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.kb-toc li a { display: block; padding: 5px 12px; color: var(--text-3); margin-left: -1px; border-left: 1px solid transparent; }
.kb-toc li.l3 a { padding-left: 24px; }
.kb-toc li a:hover { color: var(--text); border-left-color: var(--accent); }
.kb-search { display: flex; gap: 8px; margin-bottom: 20px; }
.kb-search .input { flex: 1; min-width: 0; }
.kb-cat { margin-bottom: 8px; }
.kb-cat h2 { font-size: 1.1rem; font-weight: 600; padding: 0 0 10px; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.kb-cat h2 .ico { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-dim); color: var(--accent-text); display: inline-flex; align-items: center; justify-content: center; }
.kb-cat h2 .ico svg { width: 16px; height: 16px; }
.kb-list { list-style: none; padding: 0; margin: 0; }
.kb-list li { border-top: 1px solid var(--line); }
.kb-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 12px 4px; align-items: baseline; border-radius: var(--radius-sm); transition: background .15s; }
.kb-list a:hover { background: var(--surface-2); }
.kb-list a:hover .t { color: var(--accent-text); }
.kb-list .t { font-weight: 600; font-size: 0.95rem; transition: color .15s; }
.kb-list .s { display: block; color: var(--text-3); font-size: 0.875rem; margin-top: 2px; }
.kb-list .d { font-family: var(--mono); font-size: 0.75rem; color: var(--text-4); white-space: nowrap; }
.kb-cats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px 40px; }
@media (min-width: 900px) { .kb-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kb-cats .card { padding: 18px 20px 8px; }
.article-head { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.crumbs { font-size: 0.875rem; color: var(--text-3); margin-bottom: 12px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--text-2); font-weight: 500; padding: 6px 0; display: inline-flex; align-items: center; min-height: 40px; }
.crumbs a:hover { color: var(--text); }
.crumbs svg { width: 14px; height: 14px; color: var(--text-4); }
.article-head h1 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 600; letter-spacing: -0.02em; }
.article-head .summary { color: var(--text-2); font-size: 1.05rem; margin: 10px 0 0; max-width: 64ch; }
.article-meta { font-size: 0.8125rem; color: var(--text-3); margin-top: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.prevnext { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (min-width: 600px) { .prevnext { grid-template-columns: 1fr 1fr; } }
.prevnext a { display: block; padding: 14px 16px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); font-size: 0.9rem; font-weight: 600; transition: border-color .15s, box-shadow .15s; min-height: 40px; }
.prevnext a:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.prevnext .k { font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); display: block; margin-bottom: 4px; font-weight: 600; }
.prevnext .next { text-align: right; }
.search-hit mark { background: var(--amber-dim); color: var(--amber-text); padding: 0 2px; border-radius: 2px; }

/* ==================================================================== misc pages */
.legal .prose { max-width: 72ch; }
.legal .updated { font-size: 0.8125rem; color: var(--text-3); margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.legal h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 600; letter-spacing: -0.02em; margin: 12px 0 10px; }
.error-page { min-height: 70vh; display: flex; align-items: center; }
.error-page .container { max-width: 640px; text-align: center; }
.error-page .code { font-family: var(--mono); color: var(--accent-text); letter-spacing: 0.12em; font-size: 0.8125rem; margin-bottom: 16px; display: inline-block; padding: 4px 10px; background: var(--accent-dim); border-radius: 4px; }
.error-page h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.error-page p { color: var(--text-2); max-width: 52ch; margin: 16px auto 24px; }
.error-page .row { justify-content: center; }
.mock-invoice { max-width: 440px; margin: 0 auto; }
.mock-invoice .amount { font-size: 2.6rem; font-weight: 600; letter-spacing: -0.03em; margin-top: 16px; font-variant-numeric: tabular-nums; }
.mock-invoice .qr { aspect-ratio: 1; max-width: 220px; margin: 20px auto; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; background: #fff; }
.mock-invoice .qr div { width: 100%; height: 100%; background: repeating-conic-gradient(#0B0E11 0 25%, #fff 0 50%) 50% / 20px 20px; opacity: .85; }
.mock-invoice .lines { display: grid; gap: 8px; font-size: 0.875rem; margin: 16px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mock-invoice .lines div { display: flex; justify-content: space-between; gap: 12px; }
.mock-invoice .lines .k { color: var(--text-3); }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  .card-hover:hover, .feature-card:hover, .plan:hover { transform: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* phones: body copy never under 14px */
@media (max-width: 719px) {
  .tiny, .table, .table .mono, .table .muted, .plan .price-note, .plan .blurb, .quote, .field .hint, .btn-sm, .field > label, .field .label, .site-footer h4, .kb-side h4, .steps .t, .kb-list .d, .prevnext .k { font-size: 0.875rem; }
  .pricing-toggle button { min-height: 40px; }
}

/* 26 Oct 2026: features page - models section, in-page anchors clear the sticky header */
.page [id], .section[id], .anchor { scroll-margin-top: calc(var(--header-h) + 16px); }
.anchor { display: block; height: 0; overflow: hidden; }
.models-section { padding: 40px 0 56px; }
@media (min-width: 900px) { .models-section { padding: 56px 0 72px; } }
.models-section .section-head { margin-bottom: 28px; }
@media (max-width: 719px) { .hero-shot { margin-top: 36px; } .hero-shot .shot-fade { height: 56px; } .hero-shot .frame { box-shadow: 0 30px 60px -24px rgba(11, 14, 17, .4), 0 0 0 5px color-mix(in srgb, var(--surface) 60%, transparent), 0 0 0 6px var(--line); } }
/* 7 specialist cards in a 3-column grid: the last one becomes a full-width strip instead of an orphan */
@media (min-width: 1024px) {
  .models > .feature-card:last-child { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 20px; }
  .models > .feature-card:last-child h3 { white-space: nowrap; }
  .models > .feature-card:last-child p { flex: 1; }
  .models > .feature-card:last-child .more { margin-top: 0; white-space: nowrap; }
}
@media (min-width: 720px) and (max-width: 1023px) { .models > .feature-card:last-child { grid-column: 1 / -1; } }

/* ------------------------------------------------------------ language switcher (26 Oct 2026) */
.lang-bar { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 0.8125rem; position: relative; z-index: 51; }
.lang-bar .container { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-height: 34px; }
.lang-hint { margin-inline-end: auto; color: var(--accent-text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lang-hint:hover { text-decoration: underline; }
.nav-open .lang-bar { display: none; }
.lang-menu { position: relative; flex: none; }
.lang-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; min-height: 32px; padding: 4px 8px;
  border-radius: var(--radius-sm); color: var(--text-2); font-weight: 500; user-select: none; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary:hover, .lang-menu[open] > summary { color: var(--text); background: var(--surface-2); }
.lang-menu > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.lang-globe { width: 16px; height: 16px; flex: none; }
.lang-caret { width: 14px; height: 14px; flex: none; transition: transform .15s; }
.lang-menu[open] .lang-caret { transform: rotate(180deg); }
.lang-list { position: absolute; inset-inline-end: 0; top: calc(100% + 4px); z-index: 60; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(2, max-content); gap: 2px 6px; width: max-content; max-width: calc(100vw - 2 * var(--gutter)); }
.lang-menu .lang-list a { display: flex; align-items: center; min-height: 36px; padding: 6px 12px; border-radius: var(--radius-sm); color: var(--text-2); white-space: nowrap; font-size: 0.875rem; }
.lang-list a:hover { background: var(--surface-2); color: var(--text); }
.lang-list a.current { color: var(--text); background: var(--surface-3); font-weight: 600; }
.lang-bottom .lang-list { top: auto; bottom: calc(100% + 4px); inset-inline-end: auto; inset-inline-start: 0; }
.footer-lang { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; }
.footer-lang .lang-menu > summary { padding-inline-start: 0; }
@media (max-width: 479px) { .lang-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .lang-menu .lang-list a { padding: 6px 10px; } }
/* right-to-left pages (Arabic) */
[dir="rtl"] .arrow, [dir="rtl"] .mobile-nav a.link svg { transform: scaleX(-1); display: inline-block; }
[dir="rtl"] .nav-right, [dir="rtl"] .mobile-actions-top { margin-left: 0; margin-right: auto; }

/* 26 Oct 2026: both pricing-period wordings are in the page (translatable); JS shows one */
[data-p][hidden] { display: none !important; }

/* 27 Oct 2026: plan finder */
.pf { display: grid; gap: 20px; }
.pf-opt { display: flex; gap: 8px; align-items: center; font-size: 0.9rem; margin: 6px 0; cursor: pointer; }
.pf-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--surface); }
.pf-card h3 { font-size: 1.1rem; margin: 6px 0 4px; }
.pf-warn { border-color: var(--accent); }
.pf-big { font-size: 1rem; margin: 12px 0; }
.pf-tbl { width: 100%; border-collapse: collapse; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.pf-tbl th, .pf-tbl td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: right; }
.pf-tbl th:first-child, .pf-tbl td:first-child { text-align: left; }
.pf-tbl th { font-weight: 600; color: var(--text-2); font-size: 0.78rem; }
.tbl-wrap { overflow-x: auto; }
.pf-notes { margin: 12px 0 0; padding-left: 18px; font-size: 0.875rem; line-height: 1.5; }
.pf-legal { margin: 12px 0 0; }
.pf-wrap { margin: 0 0 20px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.pf-wrap > summary { cursor: pointer; font-weight: 600; font-size: 0.9rem; }
.pf-wrap[open] > summary { margin-bottom: 14px; }
.plan .min-dep { font-size: 0.8125rem; color: var(--text-2); margin: 6px 0 0; }
@media (max-width: 640px) { .pf-tbl th, .pf-tbl td { padding: 5px 4px; font-size: 0.78rem; } }
.pf-compare h3, .pf-rules h3 { font-size: 1rem; margin: 18px 0 8px; }
.pf-tbl tr.pf-me td { background: var(--accent-dim); }
.pf-rules { margin-top: 20px; border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px 12px; background: var(--surface); }
.pf-rules ul { margin: 0; padding-left: 18px; font-size: 0.875rem; line-height: 1.55; }
.pf-rules li { margin: 6px 0; }
.pf-wrap-h { font-weight: 600; font-size: 0.95rem; margin: 0 0 12px; }
.pf > * { min-width: 0; }
