/* ==========================================================================
   Scoped SEO website. Tokens and rules follow DESIGN.md.
   Fonts are self-hosted (no request to Google Fonts).
   ========================================================================== */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/plus-jakarta-sans.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/instrument-serif-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas: #F7F8FC;
  --surface: #FFFFFF;
  --surface-2: #EEF1FB;
  --ink: #0C1030;
  --ink-2: #4A5068;
  --ink-3: #6B7088;
  --line: #E3E6F2;
  --blue: #2B4EFF;
  --blue-deep: #1A2FCC;
  --blue-tint: #E8ECFF;
  --orange: #FF6B1A;
  --orange-tint: #FFF0E6;
  --green: #12803F;
  --green-tint: #E6F6EC;
  --amber: #B45309;
  --amber-tint: #FDF1DC;
  --red: #C62828;
  --red-tint: #FCE8E8;
  --stage: #1A2FCC;
  --on-blue: #FFFFFF;
  --link: #2B4EFF;

  --font-ui: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-float: 0 12px 40px rgba(12, 16, 48, .10);
  --shadow-frame: 0 24px 60px -12px rgba(12, 16, 48, .22), 0 2px 6px rgba(12, 16, 48, .06);
  --logo-filter: none;
  --container: 1160px;
  --gutter: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0A0C14;
    --surface: #11141F;
    --surface-2: #171B2B;
    --ink: #F1F3FA;
    --ink-2: #B4BAD0;
    --ink-3: #8A91AB;
    --line: #232842;
    --blue: #6F89FF;
    --blue-deep: #2B4EFF;
    --blue-tint: #1A2147;
    --orange: #FF8847;
    --orange-tint: #2B1B10;
    --green: #3DD17A;
    --green-tint: #0F2418;
    --amber: #F5A524;
    --amber-tint: #2A200C;
    --red: #FF6B6B;
    --red-tint: #2C1416;
    --stage: #1B2A9E;
    --logo-filter: invert(1);
    --link: #8DA2FF;
    --shadow-float: 0 12px 40px rgba(0, 0, 0, .45);
    --shadow-frame: 0 24px 60px -12px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .3);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--blue-tint); color: var(--ink); }
code, kbd, pre { font-family: var(--font-mono); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
section { padding: 96px 0; }
@media (max-width: 900px) { section { padding: 64px 0; } }
@media (max-width: 560px) { section { padding: 48px 0; } :root { --gutter: 16px; } }

.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.hl { background-image: linear-gradient(transparent 64%, color-mix(in srgb, var(--orange) 42%, transparent) 64%, color-mix(in srgb, var(--orange) 42%, transparent) 92%, transparent 92%); padding: 0 .06em; }

/* ---------- type scale ---------- */
.display { font-size: clamp(2.75rem, 6vw, 4.5rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; }
.display .serif { font-size: 1.08em; }
h1.page-title { font-size: clamp(2.25rem, 4.5vw, 3.25rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; }
h1.page-title .serif { font-size: 1.08em; }
.h2, section h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }
section h2 .serif { font-size: 1.1em; }
h3 { font-size: 1.25rem; line-height: 1.3; }
.lead { font-size: 1.1875rem; line-height: 1.6; color: var(--ink-2); }
.small { font-size: .875rem; line-height: 1.55; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; line-height: 1; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 16px; font-size: 1.125rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font: 600 .9375rem/1 var(--font-ui); text-decoration: none; cursor: pointer;
  transition: background-color .18s ease-out, border-color .18s ease-out, color .18s ease-out, transform .18s ease-out;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .06s; }
.btn .bi { width: 20px; height: 20px; flex: none; border-radius: 4px; }
/* the multicolour Chrome mark has little contrast on the blue button: give it a white badge and a soft white glow */
.btn-primary .bi[src*="chrome"] { box-sizing: content-box; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .95), 0 0 0 5px rgba(255, 255, 255, .28), 0 0 16px 3px rgba(255, 255, 255, .7); margin-right: 3px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-primary { background: #4A64FF; } .btn-primary:hover { background: #2B4EFF; } }
.btn-secondary, .btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover, .btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-quiet { background: transparent; color: var(--ink); padding: 0 8px; }
.btn-quiet:hover { color: var(--blue); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1rem; border-radius: 14px; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .875rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-white { background: #fff; color: #0C1030; }
.btn-white:hover { background: #F1F3FF; color: #0C1030; }
.btn-line-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-line-white:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- header (floating pill) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 12px 16px 0; pointer-events: none; height: 0; overflow: visible; }
.nav-pill {
  pointer-events: auto; position: relative; max-width: 1120px; margin: 0 auto; height: 60px;
  display: flex; align-items: center; gap: 12px; padding: 0 10px 0 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-float);
}
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.0625rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.nav-links > a, .nav-item > a { padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: .9375rem; text-decoration: none; transition: background-color .15s, color .15s; }
.nav-links > a:hover, .nav-item > a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav-links > a[aria-current="page"], .nav-item > a[aria-current="page"] { color: var(--blue); background: var(--blue-tint); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-links + .nav-actions { margin-left: 0; }
.nav-profile-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; padding: 0;
  transition: border-color .15s, color .15s;
}
.nav-profile-btn:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.nav-profile-avatar { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; font-weight: 800; font-size: 13.5px; line-height: 1; }
.nav-profile-btn.is-signed-in { border-color: transparent; color: #fff; background: var(--blue-deep); }
.nav-profile-btn.is-signed-in.is-pro { background: var(--orange); color: #1B0E03; }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-sheet-extra { display: none; }
@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .nav-actions, .nav-links + .nav-actions { margin-left: auto; }
  .nav-actions .btn-nav { display: none; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0; margin: 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-float);
    max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  }
  .nav-links.open { display: flex; }
  .nav-links > a, .nav-item > a { padding: 12px 16px; border-radius: 12px; }
  .nav-sheet-extra { display: flex; flex-direction: column; gap: 8px; padding: 10px 6px 4px; border-top: 1px solid var(--line); margin-top: 6px; }
  .nav-sheet-extra .btn { width: 100%; }
}
@media (min-width: 1041px) { .nav-sheet-extra { display: none !important; } }
main { padding-top: 84px; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 560px; margin-bottom: 30px; }
.hero-meta { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: .875rem; color: var(--ink-3); }
.stars { display: inline-flex; gap: 2px; color: #F5A524; }
.stars svg { width: 16px; height: 16px; fill: currentColor; }
.rating-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.rating-link:hover { color: var(--blue); }
.hero-visual { position: relative; padding: 8px 0 24px 24px; }
.hero-visual .shot.back { position: absolute; width: 64%; right: -4%; top: -22px; transform: rotate(3.5deg); opacity: .95; z-index: 0; }
.hero-visual .shot.main { position: relative; z-index: 1; margin-top: 40px; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { padding-left: 0; }
  .hero-visual .shot.back { display: none; }
  .hero-visual .shot.main { margin-top: 0; }
}

/* product screenshot frame */
.shot { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-frame); overflow: hidden; }
.shot img { width: 100%; height: auto; display: block; }
.shot-cap { margin: 10px 4px 0; font-size: .8125rem; line-height: 1.5; color: var(--ink-3); }
figure.fig { margin: 28px 0 32px; }
figure.fig .shot { max-width: 640px; }

/* ---------- trust strip + logo placeholders ---------- */
.strip { padding: 8px 0 56px; }
.strip-label { text-align: center; font-size: .8125rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-3); margin-bottom: 22px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.marquee-run { display: flex; width: max-content; animation: logos-left 36s linear infinite; will-change: transform; }
.marquee:hover .marquee-run, .marquee:focus-within .marquee-run { animation-play-state: paused; }
.logos { list-style: none; margin: 0; padding: 0; display: flex; flex: none; align-items: center; }
.logo-slot { height: 64px; display: flex; align-items: center; justify-content: center; padding: 0 clamp(24px, 4vw, 48px); flex: none; }
.logo-slot img { width: auto; height: auto; max-width: 150px; max-height: 34px; opacity: .88; filter: var(--logo-filter, none); transition: opacity .18s ease-out; }
.logo-slot.tall img { max-height: 48px; max-width: 130px; }
.logo-slot:hover img { opacity: 1; }
@keyframes logos-left { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-run { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee-run .logos[aria-hidden="true"] { display: none; }
  .marquee-run .logos { flex-wrap: wrap; justify-content: center; }
}

/* ---------- tabbed product demo ---------- */
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 12px; box-shadow: var(--shadow-float); }
.tablist { display: flex; gap: 4px; overflow-x: auto; padding: 4px; scrollbar-width: none; border-bottom: 1px solid var(--line); margin: -4px -4px 0; padding-bottom: 12px; }
.tablist::-webkit-scrollbar { display: none; }
.tab { flex: none; border: 0; background: transparent; color: var(--ink-2); font: 600 .9375rem/1 var(--font-ui); padding: 12px 18px; border-radius: 999px; cursor: pointer; transition: background-color .15s, color .15s; }
.tab:hover { background: var(--surface-2); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--blue-tint); color: var(--blue); }
.tabpanel { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; align-items: center; padding: 36px 28px 28px; }
.tabpanel[hidden] { display: none; }
.tabpanel h3 { font-size: 1.625rem; letter-spacing: -0.015em; margin-bottom: 12px; }
.tabpanel p { margin-bottom: 18px; }
.ticks { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: .9375rem; line-height: 1.55; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B4EFF' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat; }
.no-js .tabpanel[hidden] { display: grid; }
.no-js .tablist { display: none; }
.no-js .tabpanel { border-top: 1px solid var(--line); }
@media (max-width: 860px) { .tabpanel { grid-template-columns: 1fr; gap: 28px; padding: 28px 12px 12px; } }

/* ---------- blue stage ---------- */
.stage-wrap { padding: 0 16px; }
.stage { max-width: 1280px; margin: 0 auto; background: var(--stage); color: var(--on-blue); border-radius: var(--r-xl); padding: 96px 0 104px; position: relative; overflow: hidden; }
.stage::after { content: ''; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 0 0 60px rgba(255,255,255,.03), 0 0 0 120px rgba(255,255,255,.02); pointer-events: none; }
.stage h2, .stage h3 { color: #fff; }
.stage .eyebrow { color: #fff; }
.stage .section-head p { color: rgba(255,255,255,.82); }
.stage-cards { display: grid; gap: 24px; position: relative; z-index: 1; }
.stage-card { background: var(--surface); color: var(--ink-2); border-radius: var(--r-lg); padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.stage-card:nth-child(even) .stage-copy { order: 2; }
.stage-card h3 { color: var(--ink); font-size: 1.625rem; letter-spacing: -0.015em; margin-bottom: 12px; }
.stage-card .shot { box-shadow: 0 10px 30px -8px rgba(12,16,48,.25); }
@media (max-width: 860px) {
  .stage { padding: 64px 0; border-radius: var(--r-lg); }
  .stage-card { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
  .stage-card:nth-child(even) .stage-copy { order: 0; }
}

/* ---------- AI readiness ---------- */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.crawl { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.crawl-group { padding: 18px 22px 6px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); background: var(--surface-2); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; padding-top: 12px; }
.crawl-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.crawl-row:last-child { border-bottom: 0; }
.crawl-row code { font-size: .875rem; color: var(--ink); font-weight: 500; }
.crawl-row span { font-size: .875rem; color: var(--ink-3); text-align: right; }
.tag { display: inline-flex; align-items: center; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.tag.ok { background: var(--green-tint); color: var(--green); }
.tag.warn { background: var(--amber-tint); color: var(--amber); }
.tag.blue { background: var(--blue-tint); color: var(--blue); }
.code-block { margin: 20px 0 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; font-size: .8125rem; line-height: 1.7; color: var(--ink); overflow-x: auto; }

/* ---------- three facts ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.fact { padding: 32px 30px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-tint); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.fact .ic svg { width: 22px; height: 22px; }
.fact h3 { margin-bottom: 8px; }
.fact p { margin: 0; font-size: .9375rem; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr; } .fact { border-right: 0; border-bottom: 1px solid var(--line); } .fact:last-child { border-bottom: 0; } }

/* ---------- reviews ---------- */
.reviews { columns: 3 320px; column-gap: 20px; }
.review { break-inside: avoid; margin: 0 0 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.review p { font-size: .9375rem; margin: 14px 0 18px; color: var(--ink); line-height: 1.65; }
.review footer { display: flex; justify-content: space-between; gap: 12px; font-size: .8125rem; color: var(--ink-3); }
.review footer b { color: var(--ink); font-weight: 700; }
.rating-big { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; font-weight: 700; color: var(--ink); }
.rating-big .stars svg { width: 20px; height: 20px; }

/* ---------- plans (compact, home) ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 880px; margin: 0 auto; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; position: relative; }
.plan.featured { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 14%, transparent); }
.plan .badge { position: absolute; top: -13px; left: 28px; background: var(--orange); color: #1B0E03; font-size: .75rem; font-weight: 800; padding: 5px 12px; border-radius: 999px; letter-spacing: .02em; }
.plan h3 { font-size: 1.125rem; }
.plan .desc { margin: 6px 0 20px; font-size: .9375rem; }
.amount { display: flex; align-items: baseline; gap: 6px; color: var(--ink); }
.amount .num { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.amount .period { color: var(--ink-3); font-weight: 500; }
.sub-price { margin: 8px 0 22px; font-size: .875rem; color: var(--ink-3); min-height: 1.4em; }
.plan ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.plan li { position: relative; padding-left: 26px; font-size: .9375rem; line-height: 1.5; }
.plan li::before { content: ''; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B4EFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 880px; margin: 0 auto; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; position: relative; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 14%, transparent); }
.price-card .badge { position: absolute; top: -13px; left: 28px; background: var(--orange); color: #1B0E03; font-size: .75rem; font-weight: 800; padding: 5px 12px; border-radius: 999px; }
.price-card h3 { font-size: 1.125rem; }
.price-card .desc { margin: 6px 0 20px; font-size: .9375rem; }
.price-card ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; flex: 1; }
.price-card li { position: relative; padding-left: 26px; font-size: .9375rem; line-height: 1.5; }
.price-card li svg { display: none; }
.price-card li::before { content: ''; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B4EFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat; }
.pricing-toggle { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 auto 36px; font-weight: 600; color: var(--ink-3); }
.pricing-toggle .active { color: var(--ink); }
.switch { width: 52px; height: 30px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); position: relative; cursor: pointer; padding: 0; transition: background-color .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(12,16,48,.3); transition: transform .2s ease-out; }
.switch.on { background: var(--blue); border-color: var(--blue); }
.switch.on::after { transform: translateX(22px); }
.save-tag { display: inline-block; margin-left: 6px; background: var(--orange-tint); color: var(--amber); font-size: .75rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
@media (max-width: 760px) { .plans, .pricing-grid { grid-template-columns: 1fr; } }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); color: var(--ink); font-size: .8125rem; font-weight: 700; letter-spacing: .02em; }
tr:last-child td { border-bottom: 0; }
td.center, th.center { text-align: center; }
td.yes { color: var(--green); font-weight: 700; }
td.no { color: var(--ink-3); }
.compare td:first-child { color: var(--ink); font-weight: 500; }

/* ---------- FAQ (details) ---------- */
.faq-list { display: grid; gap: 10px; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color .15s; }
.faq[open] { border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 700; color: var(--ink); font-size: 1rem; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7088' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(180deg); }
.faq summary:hover { color: var(--blue); }
.faq .faq-body { padding: 0 22px 20px; font-size: .9688rem; }
.faq .faq-body p:last-child { margin-bottom: 0; }
.faq-group { margin-bottom: 44px; }
.faq-group h2 { font-size: 1.375rem; margin-bottom: 16px; }

/* ---------- closing CTA ---------- */
.closer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 72px 40px; text-align: center; position: relative; overflow: hidden; }
.closer h2 { max-width: 720px; margin: 0 auto 16px; }
.closer p { max-width: 560px; margin: 0 auto 30px; font-size: 1.125rem; }
.closer .cta-row { justify-content: center; }
.closer .fine { margin: 18px auto 0; font-size: .875rem; color: var(--ink-3); }

/* ---------- inner page hero ---------- */
.page-hero { padding: 56px 0 24px; }
.page-hero .lead { max-width: 640px; margin-top: 18px; }
.breadcrumb { font-size: .875rem; color: var(--ink-3); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-3); }
.updated { color: var(--ink-3); font-size: .875rem; margin-top: 12px; }
.page-body { padding-top: 24px; }

/* ---------- prose (legal + docs) ---------- */
.prose { max-width: 720px; font-size: 1rem; line-height: 1.75; }
.prose h2 { font-size: 1.5rem; margin: 2.2em 0 .6em; letter-spacing: -0.015em; scroll-margin-top: 96px; }
.prose h3 { font-size: 1.1875rem; margin: 1.8em 0 .5em; scroll-margin-top: 96px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--ink-3); }
.prose strong { color: var(--ink); }
.prose code { background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: .86em; color: var(--ink); }
.prose pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; overflow-x: auto; font-size: .8125rem; line-height: 1.7; margin: 0 0 1.4em; color: var(--ink); position: relative; }
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.prose table { margin: 0; }
.prose .table-wrap { margin: 0 0 1.6em; }
.prose img { border-radius: var(--r-md); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
kbd { background: var(--surface); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; font-size: .8em; color: var(--ink); }
.callout, .note, .tip, .caution { margin: 1.6em 0; padding: 16px 20px; border-radius: var(--r-md); border: 1px solid var(--line); border-left-width: 4px; background: var(--surface); font-size: .9688rem; }
.callout { border-left-color: var(--blue); background: var(--blue-tint); color: var(--ink-2); }
.note { border-left-color: var(--blue); }
.tip { border-left-color: var(--green); }
.caution { border-left-color: var(--amber); }
.callout strong, .note strong, .tip strong, .caution strong { color: var(--ink); }
.callout > :last-child, .note > :last-child, .tip > :last-child, .caution > :last-child { margin-bottom: 0; }
.steps-list { list-style: none; counter-reset: step; padding: 0 !important; margin: 0 0 1.6em; display: grid; gap: 18px; }
.steps-list li { counter-increment: step; position: relative; padding-left: 52px; margin: 0; }
.steps-list li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--blue-tint); color: var(--blue); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .9375rem; }
.copy-btn { position: absolute; top: 8px; right: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 600 .75rem/1 var(--font-ui); padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.copy-btn:hover { color: var(--blue); border-color: var(--blue); }

/* ---------- feature / info cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; color: var(--ink-2); text-decoration: none; transition: border-color .18s ease-out, transform .18s ease-out; }
a.card:hover { border-color: var(--blue); text-decoration: none; transform: translateY(-2px); }
.card .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--blue-tint); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card .ic svg { width: 20px; height: 20px; }
.card h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.card p { margin: 0; font-size: .9375rem; line-height: 1.6; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards, .cards.two { grid-template-columns: 1fr; } }

/* ---------- contact + forms ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info-card { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); margin-bottom: 14px; }
.info-card .ic { flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--blue-tint); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.info-card .ic svg { width: 20px; height: 20px; }
.info-card h2 { font-size: 1.0625rem; margin: 0 0 4px; }
.info-card p { margin: 0; font-size: .9375rem; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .875rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea, .account-field {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: 500 .9375rem/1.4 var(--font-ui);
  background: var(--canvas); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus, .account-field:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: .875rem; color: var(--ink-3); margin: 14px 0 0; min-height: 1.4em; }

/* ---------- about ---------- */
.founder { display: flex; align-items: center; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); max-width: 720px; margin: 36px 0 0; }
.founder .avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--blue-deep); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; letter-spacing: .02em; }
.founder h2 { font-size: 1.125rem; margin: 0; }
.founder p { margin: 0; font-size: .9375rem; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 72px 0 96px; }
.error-page .code { font-family: var(--font-serif); font-style: italic; font-size: clamp(6rem, 18vw, 11rem); line-height: 1; color: var(--blue); }
.error-page h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 8px 0 14px; }
.error-page .cta-row { justify-content: center; margin-top: 28px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 24px; border-top: 1px solid var(--line); background: var(--surface); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 28px; }
.footer-brand p { margin: 14px 0 18px; font-size: .9375rem; max-width: 300px; }
.footer-col h2 { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--ink-2); text-decoration: none; font-size: .9375rem; }
.footer-col a:hover { color: var(--blue); text-decoration: underline; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; font-size: .875rem; color: var(--ink-3); }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--ink-3); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }

/* ---------- docs ---------- */
.docs-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr) 210px; gap: 48px; max-width: 1280px; margin: 0 auto; padding: 36px var(--gutter) 24px; align-items: start; }
.docs-nav { position: sticky; top: 92px; max-height: calc(100vh - 108px); overflow-y: auto; padding-right: 8px; font-size: .9375rem; scrollbar-width: thin; }
.docs-search { position: relative; margin-bottom: 20px; }
.docs-search input { width: 100%; padding: 11px 38px 11px 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: 500 .9375rem/1 var(--font-ui); }
.docs-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); }
.docs-search .s-ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--ink-3); pointer-events: none; }
.docs-search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: .7rem; padding: 0 6px; }
.docs-results { list-style: none; margin: 0 0 20px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); display: none; box-shadow: var(--shadow-float); }
.docs-results.show { display: block; }
.docs-results a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.docs-results a small { display: block; font-weight: 400; color: var(--ink-3); font-size: .8rem; margin-top: 2px; }
.docs-results a:hover, .docs-results a:focus-visible { background: var(--surface-2); }
.docs-results .none { padding: 10px 12px; color: var(--ink-3); font-size: .875rem; }
.docs-group { margin-bottom: 22px; }
.docs-group .gh { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin: 0 0 8px; padding-left: 12px; }
.docs-group ul { list-style: none; margin: 0; padding: 0; }
.docs-group a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 500; border-left: 2px solid transparent; }
.docs-group a:hover { background: var(--surface-2); color: var(--ink); }
.docs-group a[aria-current="page"] { background: var(--blue-tint); color: var(--blue); font-weight: 700; }
.docs-main { min-width: 0; }
.docs-main .prose { max-width: 740px; }
.docs-main h1 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; letter-spacing: -0.025em; font-weight: 800; margin-bottom: 14px; }
.docs-main .doc-lead { font-size: 1.1875rem; line-height: 1.6; max-width: 700px; margin-bottom: 8px; }
.doc-meta { font-size: .8125rem; color: var(--ink-3); margin-bottom: 28px; }
.docs-toc { position: sticky; top: 92px; font-size: .875rem; }
.docs-toc .gh { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin: 0 0 10px; }
.docs-toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.docs-toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-3); text-decoration: none; line-height: 1.4; }
.docs-toc a:hover { color: var(--ink); }
.docs-toc a.active { color: var(--blue); border-left-color: var(--blue); font-weight: 600; }
.docs-toc li.l3 a { padding-left: 28px; font-size: .8125rem; }
.docs-menu-toggle { display: none; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; max-width: 740px; }
.pager a { display: block; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 700; }
.pager a small { display: block; color: var(--ink-3); font-weight: 500; font-size: .8125rem; margin-bottom: 2px; }
.pager a:hover { border-color: var(--blue); }
.pager a.next { text-align: right; grid-column: 2; }
.pager a.prev { grid-column: 1; }
.docs-foot { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 740px; font-size: .9375rem; color: var(--ink-3); }
.docs-hero { padding: 56px 0 8px; text-align: left; }
.docs-hero .docs-search { max-width: 520px; margin: 26px 0 0; }
.docs-hero .docs-results { max-width: 520px; position: absolute; left: 0; right: 0; top: 100%; z-index: 5; margin-top: 8px; }
@media (max-width: 1180px) { .docs-shell { grid-template-columns: 240px minmax(0, 1fr); } .docs-toc { display: none; } }
@media (max-width: 860px) {
  .docs-shell { grid-template-columns: 1fr; gap: 20px; padding-top: 20px; }
  .docs-nav { position: static; max-height: none; overflow: visible; padding: 0; }
  .docs-menu-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: 700 .9375rem/1 var(--font-ui); cursor: pointer; }
  .docs-nav-body { display: none; margin-top: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
  .docs-nav.open .docs-nav-body { display: block; }
  .pager { grid-template-columns: 1fr; }
  .pager a.next, .pager a.prev { grid-column: 1; text-align: left; }
}

/* ---------- account page (markup comes from account.js) ---------- */
.account-section { padding: 24px 0 96px; }
.account-wrap { max-width: 440px; margin: 0 auto; }
.account-card { max-width: 400px; margin: 0 auto 20px; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-float); padding: 36px 34px; background: var(--surface); }
.account-loading { text-align: center; color: var(--ink-3); padding: 40px 0; }
.auth-badge { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px; background: var(--blue-tint); display: flex; align-items: center; justify-content: center; }
.auth-badge img { width: 28px; height: 28px; border-radius: 6px; }
.auth-badge svg { width: 26px; height: 26px; color: var(--blue); }
.auth-heading { text-align: center; font-size: 1.3125rem; margin-bottom: 6px; }
.auth-subtext { text-align: center; font-size: .875rem; color: var(--ink-3); margin: 0 0 24px; }
.auth-subtext b { color: var(--ink-2); }
.field-group { position: relative; margin-bottom: 12px; }
.field-group .field-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); display: flex; pointer-events: none; }
.field-group .account-field { padding-left: 42px; margin-bottom: 0; }
.field-group .field-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--ink-3); cursor: pointer; padding: 6px; border-radius: 8px; display: flex; }
.field-group .field-toggle:hover { color: var(--ink); background: var(--surface-2); }
.field-group .account-field.has-toggle { padding-right: 38px; }
.field-forgot-row { display: flex; justify-content: flex-end; margin: -2px 0 14px; }
.field-forgot-row button { background: none; border: none; color: var(--link); font-weight: 600; font-size: .8125rem; cursor: pointer; font-family: var(--font-ui); padding: 0; }
.field-forgot-row button:hover { text-decoration: underline; }
.field-hint { font-size: .75rem; color: var(--ink-3); margin: -2px 0 14px; }
.account-header { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.account-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--blue-deep); color: #fff; font-weight: 800; font-size: 1.25rem; display: flex; align-items: center; justify-content: center; flex: none; }
.account-avatar.is-pro { background: var(--orange); color: #1B0E03; }
.account-name { font-size: 1.0625rem; font-weight: 800; color: var(--ink); word-break: break-word; }
.account-email { font-size: .84rem; color: var(--ink-3); margin-top: 2px; word-break: break-all; }
.account-plan-row { margin-top: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.account-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .75rem; font-weight: 800; }
.account-badge.pro { background: var(--orange-tint); color: var(--amber); }
.account-badge.free { background: var(--surface-2); color: var(--ink-3); }
.account-meta { font-size: .78rem; color: var(--ink-3); font-weight: 600; }
.account-meta b { color: var(--ink-2); }
.account-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.account-actions .btn { flex: 1; min-width: 160px; }
.account-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.account-divider::before, .account-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.account-divider span { font-size: .6875rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.account-google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: 600 .9375rem/1 var(--font-ui); cursor: pointer; }
.account-google-btn:hover { background: var(--surface-2); }
.account-google-btn:disabled { opacity: .6; cursor: default; }
.account-toggle { display: flex; background: var(--surface-2); border-radius: 999px; padding: 4px; margin-bottom: 22px; }
.account-toggle button { flex: 1; padding: 10px; border: none; background: none; border-radius: 999px; font-weight: 700; font-size: .84rem; color: var(--ink-3); cursor: pointer; font-family: var(--font-ui); transition: background .15s, color .15s; }
.account-toggle button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(12,16,48,.12); }
.account-field { margin-bottom: 10px; }
.account-foot-row { display: flex; align-items: center; justify-content: flex-end; margin-top: 6px; }
.account-foot-row button { background: none; border: none; color: var(--link); font-weight: 600; font-size: .8125rem; cursor: pointer; font-family: var(--font-ui); padding: 0; }
.account-msg { font-size: .8125rem; font-weight: 600; margin-top: 14px; padding: 10px 14px; border-radius: 9px; display: none; }
.account-msg.show { display: block; }
.account-msg.err { background: var(--red-tint); color: var(--red); }
.account-msg.ok { background: var(--green-tint); color: var(--green); }
.account-linkbox { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.account-linkbox .lbl { font-size: .8125rem; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.account-key-row { display: flex; gap: 10px; }
.account-key-row input { flex: 1; margin-bottom: 0; }
.account-key-row .btn { padding: 0 18px; min-height: 44px; font-size: .84rem; }
.account-note { font-size: .75rem; color: var(--ink-3); margin-top: 10px; line-height: 1.5; }
.link-btn { background: none; border: none; color: var(--link); font-weight: 600; font-size: .8125rem; cursor: pointer; font-family: var(--font-ui); padding: 0; }
.link-btn:hover { text-decoration: underline; }
.sessions-card { padding: 26px 28px; }
.sessions-title { font-size: 1rem; margin-bottom: 6px; }
.session-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.session-row:last-child { border-bottom: none; }
.session-info { min-width: 0; }
.session-device { font-size: .875rem; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.session-badge { font-size: .65rem; font-weight: 800; color: var(--blue); background: var(--blue-tint); padding: 2px 8px; border-radius: 999px; }
.session-meta { font-size: .78rem; color: var(--ink-3); margin-top: 2px; }
.session-signout-btn { background: none; border: none; color: var(--red); font-weight: 700; font-size: .78rem; cursor: pointer; font-family: var(--font-ui); padding: 6px 4px; flex-shrink: 0; }
.session-signout-btn:hover { text-decoration: underline; }
.session-signout-btn:disabled { opacity: .6; cursor: default; text-decoration: none; }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .4s ease-out, transform .4s ease-out; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print { .site-header, .site-footer, .docs-nav, .docs-toc, .closer { display: none; } main { padding-top: 0; } }

/* ---------- docs index ---------- */
.docs-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.docs-index-group h2 { font-size: 1.125rem; margin: 0 0 4px; }
.docs-index-group > p { margin: 0 0 14px; color: var(--ink-3); font-size: .9375rem; }
.docs-index-group ul { list-style: none; margin: 0; padding: 0; }
.docs-index-group li a { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none; }
.docs-index-group li a svg { width: 18px; height: 18px; color: var(--blue); flex: none; }
.docs-index-group li a:hover { color: var(--blue); }
@media (max-width: 900px) { .docs-index { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .docs-index { grid-template-columns: 1fr; margin-top: 40px; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.docs-index-group.wide { grid-column: 1 / -1; }
.docs-index-group.wide ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; }
@media (max-width: 900px) { .docs-index-group.wide ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .docs-index-group.wide ul { grid-template-columns: 1fr; } }
h1, h2 { text-wrap: balance; }
.docs-hero .lead { margin-top: 14px; }
.eyebrow { line-height: 1.45; }
.table-wrap table { min-width: 520px; }
.nav-links .nav-sheet-extra a.btn-primary, .nav-links .nav-sheet-extra a.btn-primary:hover { color: #fff; }

/* footer love */
.heart { display: inline-block; vertical-align: -2px; margin: 0 1px; color: #E5484D; }


/* ---------- mega menus ---------- */
.nav-item { display: flex; align-items: center; position: static; border-radius: 999px; transition: background-color .15s; }
.nav-item:hover, .nav-item.open { background: var(--surface-2); }
.nav-item > a.nav-link { padding-right: 4px; background: transparent !important; }
.nav-item > a[aria-current="page"] { background: transparent; }
.nav-item:has(> a[aria-current="page"]) { background: var(--blue-tint); }
.nav-item:has(> a[aria-current="page"]) > a, .nav-item:has(> a[aria-current="page"]) .mega-toggle { color: var(--blue); }
.mega-toggle { appearance: none; border: 0; background: transparent; color: var(--ink-3); width: 26px; height: 32px; margin-right: 6px; padding: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.mega-toggle svg { width: 14px; height: 14px; transition: transform .18s; }
.nav-item.open .mega-toggle svg { transform: rotate(180deg); }
.mega-toggle:hover { color: var(--ink); }
.mega-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }

.mega { display: none; position: absolute; left: 0; right: 0; top: 100%; padding-top: 12px; z-index: 60; }
.nav-item.open > .mega { display: block; animation: mega-in .16s ease-out; }
@keyframes mega-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nav-item.open > .mega { animation: none; } .mega-toggle svg { transition: none; } }
.mega-inner { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 24px 60px -18px rgba(12,16,48,.28), 0 4px 14px rgba(12,16,48,.08); padding: 22px; max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain; }
@media (prefers-color-scheme: dark) { .mega-inner { box-shadow: 0 24px 60px -18px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04); } }

.mega ul { list-style: none; margin: 0; padding: 0; }
.mega .mh3 { margin: 0; letter-spacing: -0.005em; }
.mi { flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--blue-tint); color: var(--blue); display: inline-grid; place-items: center; }
.mi svg { width: 17px; height: 17px; }
.mega-link, .mega-card { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; color: var(--ink-2); text-decoration: none; transition: background-color .12s, color .12s; }
.mega-link:hover, .mega-card:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.mega-link:focus-visible, .mega-card:focus-visible, .mega-more:focus-visible, .side-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.mt { display: flex; flex-direction: column; min-width: 0; }
.mn { font-weight: 650; font-size: .9375rem; line-height: 1.3; color: var(--ink); }
.ms { font-size: .8125rem; line-height: 1.4; color: var(--ink-3); font-weight: 500; }
.mega-col .mh3 { display: flex; align-items: center; gap: 10px; font-size: .9375rem; font-weight: 800; color: var(--ink); }
.mega-col .mb { margin: 6px 0 8px; font-size: .8125rem; line-height: 1.45; color: var(--ink-3); }
.mega-col .mh3 + ul { margin-top: 10px; }
.mega-col .mega-link { padding: 6px 8px; }
.mega-col .mega-link .mn { font-weight: 600; font-size: .9063rem; }
.mega-more { display: inline-flex; align-items: center; gap: 6px; margin: 6px 8px 0; font-size: .8125rem; font-weight: 700; color: var(--blue); text-decoration: none; }
.mega-more svg, .side-link svg, .mega-foot .btn svg, .mega-side .btn svg { width: 15px; height: 15px; transition: transform .15s; }
.mega-more:hover { text-decoration: none; color: var(--blue-deep); }
.mega-more:hover svg, .side-link:hover svg { transform: translateX(3px); }
.mega-h { font-size: .75rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px 10px; }
.mega-h:not(:first-child) { margin-top: 16px; }
.mega-grid { display: grid; gap: 22px 28px; align-items: start; }
.mega-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mega-grid.cols-feat { grid-template-columns: minmax(0, 1fr) 300px; }
.mega-grid.cols-docs { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.mega-grid.cols-blog { grid-template-columns: minmax(0, 1fr) 320px; }
.mega ul.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
.mega ul.mega-cards { display: grid; gap: 8px; }
.mega-card { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--canvas); align-items: flex-start; }
.mega-card:hover { border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); }
.mega-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.mega-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.mega-foot p { margin: 0; font-size: .875rem; color: var(--ink-2); }
.mega-foot .btn, .mega-side .btn { gap: 6px; flex: none; }
.mega-side { padding: 22px; border-radius: 20px; background: var(--stage); color: #fff; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.mega-side .mh3 { font-weight: 800; color: #fff; font-size: 1.1875rem; line-height: 1.25; }
.mega-side p { margin: 0; font-size: .9063rem; color: rgba(255,255,255,.82); }
.eyebrow-sm { font-size: .6875rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.side-link { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 700; color: #fff; text-decoration: none; opacity: .92; }
.side-link:hover { color: #fff; text-decoration: none; opacity: 1; }
.mega-side .btn-white { margin-top: 4px; }
.mega-side.light { background: var(--blue-tint); color: var(--ink); }
.mega-side.light .mh3 { color: var(--ink); }
.mega-side.light .eyebrow-sm { color: var(--blue); }
.mega-side.light .side-link { color: var(--blue); }
.mega-side.light .btn-primary, .mega-side.light .btn-primary:hover { color: #fff; }
.mega .btn-primary, .mega .btn-primary:hover { color: #fff; }

/* mid-size laptops: keep four columns readable */
@media (min-width: 1041px) and (max-width: 1180px) {
  .mega-grid.cols-feat, .mega-grid.cols-blog { grid-template-columns: minmax(0, 1fr) 250px; }
  .mega-grid { gap: 18px 18px; }
  .mega-inner { padding: 18px; }
  .nav-item > a.nav-link { padding-left: 10px; }
  .nav-links > a { padding: 8px 10px; }
}

/* phones and tablets: panels become accordions inside the menu sheet */
@media (max-width: 1040px) {
  .nav-item { display: grid; grid-template-columns: 1fr 48px; border-radius: 12px; }
  .nav-item:hover { background: transparent; }
  .nav-item.open { background: var(--surface-2); }
  .nav-item > a.nav-link { padding: 12px 16px; }
  .nav-item > a.nav-link:hover { background: transparent; }
  .mega-toggle { width: 44px; height: 44px; margin: 2px 2px 2px 0; justify-self: end; border-radius: 12px; color: var(--ink-2); }
  .mega-toggle svg { width: 18px; height: 18px; }
  .mega { position: static; grid-column: 1 / -1; padding: 0; }
  .nav-item.open > .mega { animation: none; }
  .mega-inner { border: 0; box-shadow: none !important; border-radius: 0 0 12px 12px; padding: 4px 10px 14px; max-height: none; overflow: visible; background: transparent; }
  .mega-grid, .mega-grid.cols-4, .mega-grid.cols-feat, .mega-grid.cols-docs, .mega-grid.cols-blog { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .mega-stack { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .mega ul.two { grid-template-columns: minmax(0, 1fr); }
  .mega-link, .mega-col .mega-link { padding: 10px 8px; min-height: 44px; }
  .mega-col .mb { display: none; }
  .mega-h { margin-left: 8px; }
  .mega-foot { flex-direction: column; align-items: stretch; margin-top: 14px; }
  .mega-foot p { display: none; }
  .mega-foot .btn { width: 100%; justify-content: center; }
  .mega-side { display: none; }
  .mega-grid.cols-4 .mega-col li:nth-child(n+5) { display: none; }
  .mega-card { padding: 12px; }
}

/* ==========================================================================
   Free tools: homepage section and the sitewide band above the footer
   ========================================================================== */
.hub-home { padding-top: 0; }
.hub-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.hub-head > div { max-width: 700px; }
.hub-head p { margin-top: 16px; font-size: 1.125rem; }
.hub-head .btn { flex: none; }
.hub-head .btn svg, .tools-band .btn svg { width: 17px; height: 17px; margin-left: 2px; }
.hub-grid { columns: 3; column-gap: 20px; }
.hub-card { break-inside: avoid; margin-bottom: 20px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .15s, box-shadow .15s; }
.hub-card:hover { border-color: color-mix(in srgb, var(--blue) 35%, var(--line)); box-shadow: var(--shadow-float); }
.hub-card header { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.hub-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; }
.hub-ic svg { width: 21px; height: 21px; }
.hub-card h3 { font-size: 1.0625rem; line-height: 1.3; margin: 0 0 4px; }
.hub-card h3 a { color: var(--ink); text-decoration: none; }
.hub-card h3 a:hover { color: var(--blue); }
.hub-card header p { margin: 0; font-size: .875rem; line-height: 1.5; color: var(--ink-3); }
.hub-chips, .tb-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hub-chips a, .tb-chips a { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--canvas); color: var(--ink-2); font-size: .8125rem; font-weight: 600; line-height: 1.2; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.hub-chips a:hover, .tb-chips a:hover { background: var(--blue-tint); border-color: var(--blue); color: var(--blue); }
.hub-chips a:focus-visible, .tb-chips a:focus-visible, .hub-all:focus-visible, .hub-card h3 a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.hub-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: .8125rem; font-weight: 700; color: var(--blue); text-decoration: none; }
.hub-all svg { width: 15px; height: 15px; transition: transform .15s; }
.hub-all:hover { color: var(--blue-deep); text-decoration: none; }
.hub-all:hover svg { transform: translateX(3px); }
@media (max-width: 1040px) { .hub-grid { columns: 2; } .hub-head { flex-direction: column; align-items: flex-start; gap: 24px; } }
@media (max-width: 640px) { .hub-grid { columns: 1; } .hub-card { padding: 20px; } .hub-head .btn { width: 100%; justify-content: center; } }

.tools-band { padding: 8px 0 56px; }
.tools-band-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: center; padding: 36px 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); }
.tb-copy .eyebrow { margin-bottom: 14px; }
.tb-copy h2 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: 1.2; margin: 0 0 10px; }
.tb-copy p { margin: 0 0 20px; font-size: .9375rem; }
.tb-chips { justify-content: flex-start; }
@media (max-width: 900px) { .tools-band-in { grid-template-columns: 1fr; gap: 24px; padding: 28px 24px; } }
@media (max-width: 480px) { .tools-band-in { padding: 24px 20px; } .tb-copy .btn { width: 100%; justify-content: center; } }
.footer-col h2 a { color: inherit; text-decoration: none; }
.footer-col h2 a:hover { color: var(--blue); }
@media print { .tools-band { display: none; } }
