/* Deskless Books website — one stylesheet, no build step.
   Colors mirror lib/core/theme/app_colors.dart in the Flutter app (teal / pastel gold / warm grey).
   Redesigned 2026-10-19: SaaS-style marketing layout (dark-teal hero, "All in one place" tabs,
   plan cards + comparison table, big footer). Older class names used by account/index.html are kept. */

:root {
  --bg: #F5F7F6;
  --surface: #FFFFFF;
  --text: #1F2A2E;
  --muted: #5E6B70;          /* AppColors.slate: passes 4.5:1 on bg and white */
  --border: #E3E8E6;
  --border-strong: #C9D2D0;
  --teal: #0D9488;
  --teal-dark: #0F766E;      /* used for text/buttons: 5.4:1 with white */
  --teal-deep: #115E59;
  --teal-ink: #0B3F3B;       /* hero / dark bands */
  --teal-light: #14B8A6;
  --teal-tint: #E8F6F3;
  --on-dark: #FFFFFF;
  --on-dark-muted: #DCEFEB;  /* >= 4.5:1 on --teal-ink and --teal-deep */
  --gold: #D4A537;
  --gold-dark: #8A6A12;
  --gold-soft: #F3DF9E;
  --gold-tint: #FCF6E3;
  --slate: #5E6B70;
  --slate-tint: #EEF1F2;
  --amber: #B45309;
  --amber-tint: #FFFBEB;
  --amber-border: #FDE8B8;
  --danger: #B91C1C;
  --danger-tint: #FEF2F2;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-soft: 0 1px 2px rgba(31, 42, 46, .04), 0 2px 8px rgba(31, 42, 46, .04);
  --shadow: 0 1px 2px rgba(31, 42, 46, .05), 0 8px 24px rgba(31, 42, 46, .07);
  --shadow-lg: 0 2px 6px rgba(11, 63, 59, .10), 0 24px 60px rgba(11, 63, 59, .22);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --max: 1200px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1rem; line-height: 1.6; overflow-x: hidden; }
img, svg { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.8vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
small, .muted { color: var(--muted); }
code { background: var(--slate-tint); padding: .1em .35em; border-radius: 6px; font-size: .92em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .container { padding: 0 24px; } }
.narrow { max-width: 800px; }
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 88px 0; } }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: .75rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--text); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }
.section-head { margin-bottom: 36px; }
.section-head.center { max-width: 760px; margin-left: auto; margin-right: auto; }

/* =========================================================== Header */
.site-header { background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(31, 42, 46, .07); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); text-decoration: none; font-size: 1.1rem; letter-spacing: -.01em; flex: none; }
.brand:hover { color: var(--text); }
.brand svg { width: 34px; height: 34px; flex: none; }
.site-menu { display: flex; align-items: center; gap: 16px; flex: 1; justify-content: space-between; margin-left: 28px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .96rem; white-space: nowrap; }
.site-nav a:hover { background: var(--teal-tint); color: var(--teal-deep); }
.site-nav a[aria-current="page"] { color: var(--teal-dark); box-shadow: inset 0 -2px 0 var(--teal); border-radius: 8px 8px 0 0; }
.header-cta { display: flex; gap: 8px; align-items: center; }
.header-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; font-weight: 600; text-decoration: none; padding: 6px 8px; border-radius: 8px; white-space: nowrap; }
.header-link svg { width: 16px; height: 16px; }
.header-link:hover, .header-link[aria-current="page"] { color: var(--teal-deep); background: var(--teal-tint); }
.nav-toggle { display: none; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-weight: 650; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline; }

@media (max-width: 1023px) {
  .header-row { flex-wrap: wrap; }
  /* Without JavaScript the menu simply shows as a panel under the logo. */
  .site-menu { order: 3; flex: 1 1 100%; width: 100%; margin: 0; flex-direction: column; align-items: stretch; gap: 8px; padding: 4px 0 14px; }
  .site-nav ul { flex-wrap: wrap; }
  .header-cta { flex-wrap: wrap; }
  /* With JavaScript (site.js adds .js-nav) it collapses behind the Menu button. */
  .js-nav .nav-toggle:not([hidden]) { display: inline-flex; }
  .js-nav .site-menu { display: none; }
  .js-nav.is-open .site-menu { display: flex; border-top: 1px solid var(--border); padding-top: 12px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .js-nav .site-nav ul { flex-direction: column; gap: 0; }
  .js-nav .site-nav a { padding: 12px 8px; font-size: 1.05rem; border-radius: 8px; }
  .js-nav .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--teal); border-radius: 0 8px 8px 0; background: var(--teal-tint); }
  .js-nav .header-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 8px; border-top: 1px solid var(--border); }
  .js-nav .header-cta .header-link { grid-column: 1 / -1; padding: 10px 8px; }
  .js-nav .header-cta .btn { min-height: 46px; }
  /* Older header markup (account page) — links scroll in a second row. */
  .header-row > .site-nav { order: 3; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 4px 16px 8px; width: calc(100% + 32px); }
  .header-row > .site-nav ul { flex-wrap: nowrap; }
  .header-row > .header-cta .btn-ghost { display: none; }
}

/* =========================================================== Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border-radius: 999px; border: 1.5px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s; line-height: 1.2; text-align: center; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--teal-dark); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); color: #fff; }
.btn-gold { background: var(--gold-soft); color: var(--text); border-color: var(--gold-soft); }
.btn-gold:hover { background: var(--gold); border-color: var(--gold); color: var(--text); }
.btn-ghost { background: transparent; color: var(--teal-dark); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--teal-tint); border-color: var(--teal); }
.btn-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-light:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.btn-small { min-height: 38px; padding: 6px 16px; font-size: .92rem; }
.btn-large { min-height: 54px; padding: 14px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: underline; }
.text-link svg { width: 16px; height: 16px; }

/* =========================================================== Home hero (dark teal) */
.hero-dark { background: radial-gradient(1200px 500px at 85% 0%, rgba(20, 184, 166, .35), transparent 60%), linear-gradient(160deg, var(--teal-ink) 0%, var(--teal-deep) 70%, #0E6C65 100%); color: var(--on-dark); padding: 48px 0 32px; overflow: hidden; }
@media (min-width: 900px) { .hero-dark { padding: 80px 0 40px; } }
.hero-dark h1 { color: #fff; max-width: 24ch; }
.hero-grid h1 { max-width: 15ch; }
.hero-dark .eyebrow { color: var(--gold-soft); }
.hero-dark h1 .accent { color: var(--gold-soft); }
.hero-dark .lead { color: var(--on-dark-muted); font-size: 1.2rem; }
.hero-dark :focus-visible { outline-color: var(--gold-soft); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 48px; } }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); color: #fff; border-radius: 999px; padding: 5px 14px; font-size: .86rem; font-weight: 650; margin-bottom: 18px; }
.hero-kicker svg { width: 16px; height: 16px; color: var(--gold-soft); }
.hero-proof { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .92rem; color: var(--on-dark-muted); }
.hero-proof li { display: inline-flex; align-items: center; gap: 6px; }
.hero-proof svg { width: 16px; height: 16px; color: var(--gold-soft); }
.hero-visual { position: relative; padding: 0 0 24px; }
.hero-visual .device-laptop { width: 100%; max-width: 640px; margin-left: auto; }
.hero-visual .device-phone { position: absolute; left: 0; bottom: 0; width: 30%; max-width: 190px; box-shadow: var(--shadow-lg); }
.float-card { position: absolute; right: 4%; bottom: 8%; background: rgba(255, 255, 255, .97); color: var(--text); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-lg); min-width: 180px; max-width: 240px; font-size: .88rem; }
.float-card .float-title { display: flex; align-items: center; gap: 6px; font-weight: 750; color: var(--teal-deep); margin-bottom: 4px; }
.float-card .float-title svg { width: 16px; height: 16px; color: var(--gold-dark); }
.float-card .float-row { display: flex; justify-content: space-between; gap: 8px; }
.float-card .float-amt { font-weight: 800; }
.float-card .float-meta { color: var(--muted); font-size: .8rem; }
@media (max-width: 520px) { .float-card { display: none; } }

/* Benefit chips row (sits at the bottom of the dark hero) */
.chip-row { position: relative; list-style: none; margin: 40px 0 0; padding: 0; display: flex; gap: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; padding-bottom: 8px; }
@media (min-width: 900px) { .chip-row { display: grid; grid-template-columns: repeat(6, 1fr); overflow: visible; } }
.chip-row a { display: flex; align-items: center; gap: 10px; white-space: nowrap; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #fff; text-decoration: none; padding: 10px 14px; border-radius: 12px; font-weight: 650; font-size: .95rem; min-height: 52px; transition: background .15s, border-color .15s; }
.chip-row a:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); color: #fff; }
.chip-dot { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--gold-soft); color: var(--teal-ink); flex: none; }
.chip-dot svg { width: 15px; height: 15px; }
.chip-dot.teal { background: var(--teal-light); color: var(--teal-ink); }
.chip-dot.grey { background: #D5DCDD; color: var(--teal-ink); }

/* Generic page hero (inner pages) */
.page-hero { padding: 48px 0 40px; background: linear-gradient(180deg, var(--teal-tint), var(--bg)); border-bottom: 1px solid var(--border); }
@media (min-width: 900px) { .page-hero { padding: 72px 0 56px; } }
.page-hero h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); max-width: 22ch; }
.page-hero.center h1, .page-hero .center h1 { margin-left: auto; margin-right: auto; }
.page-hero .btn-row { margin-top: 8px; }
.page-head { padding: 40px 0 24px; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }

/* Legacy hero (kept for older markup) */
.hero { padding: 48px 0 56px; background: linear-gradient(180deg, var(--teal-tint), var(--bg) 85%); }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--gold-tint); color: var(--gold-dark); border: 1px solid var(--gold-soft); border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-weight: 650; margin-bottom: 16px; }

/* =========================================================== Device frames (screenshots) */
.device { position: relative; }
.device-screen { overflow: hidden; background: var(--slate-tint); }
.device-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.device-phone { background: #16211F; border-radius: 34px; padding: 9px; box-shadow: var(--shadow); max-width: 300px; }
.device-phone .device-screen { border-radius: 26px; aspect-ratio: 1170 / 2532; }
.device-laptop .device-screen { aspect-ratio: 16 / 10; border: 10px solid #16211F; border-bottom-width: 14px; border-radius: 14px 14px 4px 4px; }
.device-laptop .device-base { height: 12px; margin: 0 -3%; background: linear-gradient(180deg, #C9D2D0, #9AA6A8); border-radius: 0 0 12px 12px; }
.device-laptop { filter: drop-shadow(0 18px 30px rgba(11, 63, 59, .18)); }

/* =========================================================== "All in one place" area tabs */
.areas { display: grid; gap: 24px; }
@media (min-width: 960px) { .areas { grid-template-columns: 300px 1fr; gap: 32px; align-items: start; } }
.area-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.area-tab { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 650; font-size: 1.02rem; border: 1px solid transparent; border-left: 3px solid transparent; min-height: 52px; }
.area-tab:hover { background: var(--surface); color: var(--teal-deep); border-color: var(--border); }
.area-tab[aria-selected="true"] { background: var(--surface); border-color: var(--border); border-left-color: var(--teal); color: var(--teal-deep); box-shadow: var(--shadow-soft); }
.area-ico { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--teal-tint); color: var(--teal-dark); }
.area-ico svg { width: 18px; height: 18px; }
.area-ico.gold { background: var(--gold-tint); color: var(--gold-dark); }
.area-ico.slate { background: var(--slate-tint); color: var(--slate); }
.area-panels { display: grid; gap: 20px; }
.area-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-soft); display: grid; gap: 24px; align-items: center; }
@media (min-width: 760px) { .area-panel { grid-template-columns: 1.1fr .9fr; padding: 36px; } .area-panel.wide-shot { grid-template-columns: 1fr; } }
.area-panel h3 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.area-panel .checklist { margin: 16px 0 20px; }
.area-panel .area-shot { display: flex; justify-content: center; }
.area-panel .device-phone { width: 62%; max-width: 250px; }
.area-panel .device-laptop { width: 100%; }
.area-plan { display: inline-block; font-size: .82rem; color: var(--muted); margin-left: 4px; }
/* When site.js has turned the list into tabs */
@media (max-width: 959px) {
  .areas.is-tabs .area-list { position: relative; flex-direction: row; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; gap: 8px; }
  .areas.is-tabs .area-tab { white-space: nowrap; border-left-width: 1px; border-radius: 999px; padding: 8px 14px 8px 8px; min-height: 48px; background: var(--surface); border-color: var(--border); }
  .areas.is-tabs .area-tab[aria-selected="true"] { border-color: var(--teal); background: var(--teal-tint); }
  .areas.is-tabs .area-ico { width: 30px; height: 30px; }
}
@media (min-width: 960px) { .areas.is-tabs .area-list { position: sticky; top: calc(var(--header-h) + 24px); } }

/* =========================================================== Cards & grids */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-soft); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card-link { text-decoration: none; color: inherit; display: block; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card-link:hover { border-color: var(--teal); box-shadow: var(--shadow); color: inherit; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--teal-tint); color: var(--teal-dark); margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; }
.icon.gold { background: var(--gold-tint); color: var(--gold-dark); }
.icon.slate { background: var(--slate-tint); color: var(--muted); }

/* Split section: text + screenshot */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split.reverse > :first-child { order: 2; } }
.split .device-phone { width: 60%; max-width: 280px; margin: 0 auto; }

/* Steps (How it works) */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-soft); }
.steps li::before { counter-increment: step; content: counter(step); display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: var(--teal-dark); color: #fff; font-weight: 800; margin-bottom: 14px; }
.steps .step-shot { margin-top: 16px; }
.steps .device-phone { width: 55%; max-width: 200px; margin: 0 auto; }

/* Checklists */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg); }

/* Notices */
.notice { border-radius: var(--radius-sm); padding: 14px 16px; border: 1px solid var(--amber-border); background: var(--amber-tint); color: var(--text); }
.notice strong { color: var(--amber); }
.notice-teal { border-color: #BFE6DF; background: var(--teal-tint); }
.notice-teal strong { color: var(--teal-deep); }
.notice-danger { border-color: #F5C2C2; background: var(--danger-tint); }
.notice-danger strong { color: var(--danger); }
.notice p:last-child { margin-bottom: 0; }

/* =========================================================== Pricing */
.plan-steps { list-style: none; margin: 0 auto 36px; padding: 0; display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; counter-reset: pstep; }
.plan-steps li { display: inline-flex; align-items: center; gap: 10px; font-size: .98rem; color: var(--muted); }
.plan-steps li + li::before { content: ""; width: 40px; height: 1px; background: var(--border-strong); margin-right: 6px; }
.plan-steps a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; padding: 4px; border-radius: 8px; }
.plan-steps a:hover { color: var(--teal-deep); }
.plan-steps .num { counter-increment: pstep; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--border-strong); background: var(--surface); font-weight: 750; color: var(--text); }
.plan-steps .is-current { color: var(--text); font-weight: 750; }
.plan-steps .is-current .num { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
@media (max-width: 560px) { .plan-steps li + li::before { width: 14px; } .plan-steps li { font-size: .88rem; } }

.plans { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 700px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; box-shadow: var(--shadow-soft); overflow: hidden; }
.plan.featured { border: 2px solid var(--teal-dark); box-shadow: var(--shadow); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.plan.featured .plan-top { background: var(--teal-dark); color: #fff; border-bottom-color: var(--teal-dark); }
.plan-name { font-weight: 800; font-size: .88rem; letter-spacing: .12em; text-transform: uppercase; margin: 0; }
.plan-badge { font-size: .72rem; font-weight: 800; background: var(--gold-soft); color: var(--text); padding: 3px 10px; border-radius: 999px; letter-spacing: .02em; white-space: nowrap; }
.plan-tag { margin: 0; padding: 12px 20px; font-weight: 650; font-size: .95rem; border-left: 4px solid var(--teal-light); background: var(--bg); }
.plan.featured .plan-tag { border-left-color: var(--gold); }
.plan-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.plan-price { font-size: 2.4rem; font-weight: 800; margin: 0 0 2px; letter-spacing: -.03em; line-height: 1.1; }
.plan-price span { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan-for { color: var(--muted); font-size: .93rem; margin: 4px 0 16px; min-height: 2.8em; }
.plan-users { margin: 16px 0 0; font-weight: 700; font-size: .95rem; }
.plan-users span { display: block; font-weight: 500; color: var(--muted); font-size: .86rem; }
.plan-plus { font-weight: 750; font-size: .92rem; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--border); }
.plan .checklist { margin: 10px 0 0; flex: 1; font-size: .94rem; }
.plan .checklist li { margin-bottom: 6px; }
.addons { display: grid; gap: 16px; }
@media (min-width: 760px) { .addons { grid-template-columns: repeat(3, 1fr); } }
.price-tag { font-weight: 800; color: var(--gold-dark); font-size: 1.1rem; }

/* Plan teaser (home) */
.plan-teasers { display: grid; gap: 16px; }
@media (min-width: 640px) { .plan-teasers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .plan-teasers { grid-template-columns: repeat(4, 1fr); } }
.teaser { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-soft); position: relative; }
.teaser.featured { border: 2px solid var(--teal-dark); }
.teaser .plan-badge { position: absolute; top: -12px; right: 16px; }
.teaser h3 { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0; }
.teaser .plan-price { font-size: 2rem; }
.teaser p { margin: 0 0 8px; color: var(--muted); font-size: .94rem; flex: 1; }

/* Comparison table */
.compare-wrap { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; -webkit-overflow-scrolling: touch; box-shadow: var(--shadow-soft); }
.compare { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 760px; font-size: .95rem; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: center; vertical-align: middle; background: var(--surface); }
.compare thead th { position: sticky; top: 0; z-index: 3; background: var(--surface); border-bottom: 2px solid var(--border-strong); font-weight: 800; }
.compare thead th:first-child { text-align: left; z-index: 4; }
.compare thead .col-plan { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.compare thead .col-price { display: block; font-weight: 600; color: var(--muted); font-size: .88rem; }
.compare thead th.is-featured { box-shadow: inset 0 3px 0 var(--teal-dark); }
.compare thead th.is-featured .col-plan { color: var(--teal-dark); }
.compare tbody th[scope="row"] { text-align: left; font-weight: 600; position: sticky; left: 0; z-index: 1; min-width: 210px; }
.compare tbody th[scope="row"] small { display: block; font-weight: 400; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.compare .group-head th { background: var(--slate-tint); text-align: left; padding: 0; position: sticky; left: 0; }
.compare .group-head .group-label, .compare .group-toggle { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; font: inherit; font-weight: 800; font-size: 1rem; color: var(--text); background: none; border: 0; text-align: left; }
.compare .group-toggle { cursor: pointer; }
.compare .group-toggle:hover { color: var(--teal-deep); }
.compare .group-toggle .chev { width: 18px; height: 18px; margin-left: auto; transition: transform .15s; }
.compare .group-toggle[aria-expanded="false"] .chev { transform: rotate(-90deg); }
.compare .group-head .area-ico { width: 28px; height: 28px; }
.compare .group-head .area-ico svg { width: 15px; height: 15px; }
.compare td .yes { width: 22px; height: 22px; color: var(--teal); vertical-align: middle; }
.compare td .no { width: 18px; height: 18px; color: #A9B4B6; vertical-align: middle; }
.compare td .lim { font-weight: 650; font-size: .9rem; }
.compare tbody tr:last-child td, .compare tbody tr:last-child th { border-bottom: 1px solid var(--border); }
.compare tfoot td, .compare tfoot th { border-bottom: 0; padding: 16px 14px; }
.compare tfoot .btn { white-space: nowrap; }
@media (min-width: 1024px) {
  .compare-wrap { overflow: visible; }
  .compare thead th { top: var(--header-h); }
  .compare thead th:first-child { border-top-left-radius: var(--radius); }
  .compare thead th:last-child { border-top-right-radius: var(--radius); }
}
@media (max-width: 600px) {
  .compare { font-size: .88rem; min-width: 600px; }
  .compare th, .compare td { padding: 10px 8px; }
  .compare tbody th[scope="row"] { min-width: 140px; max-width: 160px; }
  .compare thead th:first-child { left: 0; }
}
.scroll-hint { display: none; font-size: .88rem; color: var(--muted); margin: 0 0 8px; }
@media (max-width: 1023px) { .scroll-hint { display: block; } }

/* Tables (general) */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--slate-tint); font-weight: 650; }
tbody th[scope="row"] { background: var(--surface); }
tr:last-child td, tr:last-child th { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }

/* =========================================================== Video */
.video-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .video-grid { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.video-frame { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--teal-ink); box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; }
.video-frame img, .video-frame iframe { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; background: var(--gold-soft); color: var(--teal-ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 30px rgba(0, 0, 0, .3); }
.video-play svg { width: 30px; height: 30px; margin-left: 4px; fill: currentColor; }
.video-frame figcaption { position: absolute; left: 16px; bottom: 14px; background: rgba(11, 63, 59, .85); color: #fff; font-size: .85rem; font-weight: 650; padding: 4px 12px; border-radius: 999px; }

/* =========================================================== Prose (guides, legal) */
.prose { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow-soft); }
@media (min-width: 700px) { .prose { padding: 40px 48px; } }
.prose h2 { margin-top: 1.8em; font-size: 1.45rem; }
.prose h3 { margin-top: 1.4em; }
.prose h2:first-child, .prose h1 + p { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose table { margin: 1em 0 1.4em; display: block; overflow-x: auto; }
.prose .table-wrap table { display: table; margin: 0; }
.guide-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* =========================================================== FAQ accordion */
.faq { border-top: 1px solid var(--border-strong); }
.faq details { border-bottom: 1px solid var(--border-strong); }
.faq summary { cursor: pointer; padding: 20px 48px 20px 4px; font-weight: 700; font-size: 1.05rem; list-style: none; position: relative; border-radius: 6px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 12px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--teal-dark); border-bottom: 2.5px solid var(--teal-dark); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--teal-deep); }
.faq details > div { padding: 0 4px 20px; color: var(--text); max-width: 760px; }
.faq details > div p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { background: radial-gradient(800px 300px at 90% 0%, rgba(20, 184, 166, .35), transparent 60%), linear-gradient(150deg, var(--teal-ink), var(--teal-deep)); color: #fff; border-radius: var(--radius-lg); padding: 44px 24px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--on-dark-muted); max-width: 620px; margin-left: auto; margin-right: auto; }
.cta-band .btn-primary { background: #fff; color: var(--teal-deep); }
.cta-band .btn-primary:hover { background: var(--gold-soft); color: var(--text); }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.cta-band .btn-row { justify-content: center; }
.cta-band :focus-visible { outline-color: var(--gold-soft); }

/* =========================================================== Footer */
.site-footer { margin-top: 56px; background: #172124; color: #CBD5D7; padding: 0 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--gold-soft); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-contact { margin: 0; }
.footer-contact a { text-decoration: underline; }
.social-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.social { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .22); color: #fff; }
.social svg { width: 18px; height: 18px; }
.social.is-soon { opacity: .55; }
.footer-grid { display: grid; gap: 28px; padding: 36px 0 8px; grid-template-columns: repeat(2, 1fr); }
.footer-about { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; } .footer-about { grid-column: auto; } }
.footer-about p { max-width: 340px; }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-soft); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer nav li { margin-bottom: 8px; }
.footer-brand { color: #fff; font-weight: 800; display: inline-flex; gap: 10px; align-items: center; margin-bottom: 12px; font-size: 1.1rem; }
.footer-brand svg { width: 30px; height: 30px; }
.site-footer .btn-gold { color: var(--text); }
.site-footer .btn-gold:hover { color: var(--text); text-decoration: none; }
.footer-note { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 28px; padding-top: 18px; font-size: .88rem; color: #B9C3C6; }
.footer-note p { margin-bottom: .6em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; align-items: center; }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 0; }
.footer-legal li + li::before { content: "|"; margin: 0 10px; color: #6F7C80; }
/* Older footer markup (account page) */
.site-footer > .container > .footer-grid:first-child { padding-top: 40px; }

/* =========================================================== Forms & account area (used by account/index.html) */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; max-width: 440px; margin: 0 auto; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label, .label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field .hint { font-size: .86rem; color: var(--muted); margin-top: 4px; }
input[type="email"], input[type="password"], input[type="text"], input[type="number"], select {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
}
input:focus-visible, select:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--teal); }
input.code-input { letter-spacing: .4em; font-size: 1.4rem; text-align: center; font-variant-numeric: tabular-nums; }
.form-error { color: var(--danger); font-size: .93rem; margin: 10px 0 0; min-height: 1px; }
.form-info { color: var(--teal-deep); font-size: .93rem; margin: 10px 0 0; }
.form-links { margin-top: 18px; font-size: .93rem; display: grid; gap: 6px; }
.link-button { background: none; border: 0; padding: 4px 0; font: inherit; color: var(--teal-dark); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.link-button[disabled] { color: var(--muted); cursor: default; text-decoration: none; }

.account-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .account-grid { grid-template-columns: 1fr 1fr; } }
.stat-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.stat-list dt { color: var(--muted); }
.stat-list dd { margin: 0; font-weight: 600; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; background: var(--teal-tint); color: var(--teal-deep); white-space: nowrap; }
.chip.gold { background: var(--gold-tint); color: var(--gold-dark); border: 1px solid var(--gold-soft); }
.chip.grey { background: var(--slate-tint); color: var(--muted); }
fieldset { border: 0; padding: 0; margin: 0 0 14px; }
legend { font-weight: 650; margin-bottom: 8px; padding: 0; }
.choice { display: flex; gap: 10px; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
.choice:hover { border-color: var(--teal); }
.choice input { width: 18px; height: 18px; accent-color: var(--teal-dark); }
.choice .choice-price { margin-left: auto; font-weight: 650; color: var(--muted); }
.inline-fields { display: grid; gap: 12px; }
@media (min-width: 560px) { .inline-fields { grid-template-columns: 1fr 1fr; } }
.account-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.stack > * + * { margin-top: 14px; }

dialog { border: 0; border-radius: var(--radius); padding: 0; max-width: 460px; width: calc(100% - 32px); box-shadow: 0 20px 60px rgba(0,0,0,.25); color: var(--text); }
dialog::backdrop { background: rgba(31, 42, 46, .45); }
.dialog-body { padding: 24px; }
.dialog-body h2 { font-size: 1.25rem; }

/* 404 */
.big-code { font-size: 4.5rem; font-weight: 800; color: var(--gold); margin: 0; line-height: 1; }

/* Utilities */
[hidden] { display: none !important; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.small { font-size: .9rem; }
.center .btn-row { justify-content: center; }
.h3 { font-size: 1.15rem; font-weight: 700; }
