/*
 * ASOWeb marketing site.
 *
 * Same tokens as the product, so the site and the app are visibly one thing.
 * Written as plain CSS with no build step: the whole point of this site is that
 * it is fast and crawlable, and a framework would buy nothing here.
 */

:root {
  color-scheme: light;

  --brand-50:  #f2f1fe;
  --brand-100: #e6e3fd;
  --brand-200: #cfcafb;
  --brand-300: #b0a6f7;
  --brand-400: #8b7bf0;
  --brand-500: #6d5de6;
  --brand-600: #5b47d4;
  --brand-700: #4d3ab8;
  --brand-800: #403195;
  --brand-900: #372c76;

  --accent: var(--brand-600);
  --accent-hover: var(--brand-700);
  --accent-subtle: var(--brand-50);
  --accent-border: var(--brand-200);
  --accent-contrast: #ffffff;

  --surface-page: #f7f7f5;
  --surface-1: #fcfcfb;
  --surface-2: #f2f2ef;
  --surface-3: #e8e8e4;
  --text-primary: #0b0b0b;
  --text-secondary: #52514e;
  --text-muted: #898781;
  --border: #e4e3dd;
  --border-strong: #cfcec6;

  --status-good: #0ca30c;
  --status-warning: #fab219;
  --status-critical: #d03b3b;
  --delta-up: #006300;
  --delta-down: #c22c2c;

  --font-ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 12px;
  --radius-sm: 7px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(11, 11, 11, 0.05);
  --shadow-md: 0 4px 14px rgba(11, 11, 11, 0.08);
  --shadow-lg: 0 18px 50px rgba(11, 11, 11, 0.11);
  --wrap: 1140px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --accent: var(--brand-400);
    --accent-hover: var(--brand-300);
    --accent-subtle: #1c1a34;
    --accent-border: #322c5c;
    --accent-contrast: #14121f;
    --surface-page: #0d0d0c;
    --surface-1: #1a1a19;
    --surface-2: #232322;
    --surface-3: #2c2c2a;
    --text-primary: #ffffff;
    --text-secondary: #c3c2b7;
    --text-muted: #898781;
    --border: #2c2c2a;
    --border-strong: #3d3d3a;
    --delta-up: #0ca30c;
    --delta-down: #e66767;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-ui);
  background: var(--surface-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -0.028em; text-wrap: balance; font-weight: 680; }
h1 { font-size: clamp(2rem, 1.35rem + 2.7vw, 3.35rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.35vw, 2.1rem); }
h3 { font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem); letter-spacing: -0.02em; }
h4 { font-size: 0.95rem; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: 760px; }
.muted { color: var(--text-secondary); }
.small { font-size: 0.82rem; }
.tabular { font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-contrast);
  padding: 9px 14px; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 600;
  transition: top 140ms ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface-1) 86%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: var(--surface-1); }
}
.site-header .wrap {
  display: flex; align-items: center; gap: 26px;
  min-height: 62px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; flex: none; }
.brand:hover { text-decoration: none; }
.brand span { font-weight: 650; font-size: 1rem; letter-spacing: -0.015em; color: var(--text-primary); }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
/*
 * `:not(.btn)` matters: without it this rule outranks .btn-primary on
 * specificity and paints the header's call to action grey on indigo, which
 * measured about 2.3:1 — the button looked broken and failed contrast.
 */
.nav a:not(.btn) { color: var(--text-secondary); font-size: 0.88rem; font-weight: 520; }
.nav a:not(.btn):hover,
.nav a:not(.btn)[aria-current="page"] { color: var(--text-primary); text-decoration: none; }
.nav .btn { padding: 8px 15px; font-size: 0.85rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600; border: 1px solid transparent;
  cursor: pointer; transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--surface-1); color: var(--text-primary); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--text-muted); }
.btn-lg { padding: 13px 24px; font-size: 0.96rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---- Sections ---- */
section { padding-block: clamp(56px, 7vw, 96px); }
.section-head { max-width: 660px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head.center { margin-inline: auto; }
.eyebrow {
  display: block; font-size: 0.71rem; font-weight: 680; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 11px;
}
.lede { color: var(--text-secondary); font-size: clamp(1rem, 0.95rem + 0.25vw, 1.12rem); margin-top: 14px; }

/* ---- Hero ---- */
.hero { padding-block: clamp(48px, 6vw, 84px) clamp(40px, 5vw, 70px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 70%;
  background: radial-gradient(60% 60% at 50% 0%, color-mix(in srgb, var(--brand-400) 20%, transparent), transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lede { font-size: clamp(1.02rem, 0.96rem + 0.4vw, 1.18rem); max-width: 52ch; }
.hero-points { list-style: none; padding: 0; margin: 24px 0 28px; display: flex; flex-direction: column; gap: 10px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--text-secondary); }
.tick {
  flex: none; width: 19px; height: 19px; border-radius: 50%; margin-top: 2px;
  background: var(--accent-subtle); border: 1px solid var(--accent-border);
  display: grid; place-items: center;
}
.tick svg { width: 10px; height: 10px; stroke: var(--accent); }
.trust { margin-top: 22px; font-size: 0.8rem; color: var(--text-muted); }

/* ---- Product mock ---- */
.mock {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 13px; border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.mock-title { margin-left: 8px; font-size: 0.74rem; color: var(--text-muted); font-weight: 550; }
.mock-body { padding: 16px; }
.mock-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--border);
}
.mock-row:last-child { border-bottom: none; }
.mock-kw { font-size: 0.84rem; font-weight: 560; }
.mock-sf { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.rank { font-size: 0.86rem; font-weight: 700; }
.delta { font-size: 0.76rem; font-weight: 650; }
.up { color: var(--delta-up); }
.down { color: var(--delta-down); }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.mock-stat { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; }
.mock-stat b { display: block; font-size: 1.15rem; letter-spacing: -0.02em; }
.mock-stat span { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }

/* ---- Cards ---- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-secondary); font-size: 0.9rem; }
.card-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm); margin-bottom: 14px;
  background: var(--accent-subtle); border: 1px solid var(--accent-border);
  display: grid; place-items: center;
}
.card-icon svg { width: 17px; height: 17px; stroke: var(--accent); }

/* ---- Steps ---- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.step-n {
  counter-increment: step; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--accent-contrast);
  display: grid; place-items: center; font-weight: 700; font-size: 0.85rem;
}
.step-n::before { content: counter(step); }
.step h3 { margin-bottom: 5px; }
.step p { color: var(--text-secondary); font-size: 0.92rem; }

/* ---- Tables ---- */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-1); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.88rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); }
th { font-weight: 640; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); background: var(--surface-2); }
tbody tr:last-child td { border-bottom: none; }
td.yes { color: var(--delta-up); font-weight: 620; }
td.no { color: var(--text-muted); }

/* ---- FAQ ---- */
.faq { display: grid; gap: 10px; }
details.qa {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0 18px;
}
details.qa[open] { border-color: var(--accent-border); }
details.qa summary {
  cursor: pointer; list-style: none; padding: 16px 0;
  font-weight: 620; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after {
  content: ""; flex: none; width: 9px; height: 9px;
  border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg); transition: transform 160ms ease; margin-right: 3px;
}
details.qa[open] summary::after { transform: rotate(-135deg); }
details.qa .answer { padding-bottom: 17px; color: var(--text-secondary); font-size: 0.91rem; }
details.qa .answer p + p { margin-top: 10px; }

/* ---- Pricing ---- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.plan { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan-name { font-size: 1rem; font-weight: 660; }
.plan-tag { font-size: 0.68rem; font-weight: 680; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-contrast); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.price { font-size: 2.1rem; font-weight: 730; letter-spacing: -0.035em; }
.price small { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.price-note { font-size: 0.78rem; color: var(--text-muted); min-height: 20px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.plan li { display: flex; gap: 9px; align-items: flex-start; font-size: 0.87rem; color: var(--text-secondary); }
.plan li svg { flex: none; width: 13px; height: 13px; margin-top: 4px; stroke: var(--status-good); }
.plan li.off { color: var(--text-muted); }
.plan li.off svg { stroke: var(--text-muted); }

/* ---- Callout ---- */
.callout {
  background: var(--accent-subtle); border: 1px solid var(--accent-border);
  border-radius: var(--radius); padding: 18px 20px;
}
.callout h3 { margin-bottom: 6px; font-size: 1rem; }
.callout p { color: var(--text-secondary); font-size: 0.9rem; }

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(155deg, var(--brand-700), var(--brand-900));
  color: #fff; border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 52px); text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: auto -20% -50% -20%; height: 70%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.13), transparent 70%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.82); margin: 12px auto 24px; max-width: 52ch; }
.cta-band .btn-primary { background: #fff; color: var(--brand-700); }
.cta-band .btn-primary:hover { background: rgba(255, 255, 255, 0.9); }
.cta-band .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.cta-band .btn-ghost:hover { border-color: #fff; }

/* ---- Article ---- */
.article { padding-block: clamp(36px, 5vw, 56px); }
.article h2 { margin: 38px 0 14px; }
.article h3 { margin: 26px 0 10px; }
.article p, .article li { color: var(--text-secondary); font-size: 1rem; }
.article p + p { margin-top: 14px; }
.article ul, .article ol { margin: 14px 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.article strong { color: var(--text-primary); font-weight: 640; }
.article .lede { font-size: 1.1rem; }
.breadcrumb { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--text-secondary); }
.toc { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin: 26px 0; }
.toc h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 18px; gap: 6px; }
.toc a { font-size: 0.92rem; }
.meta-line { font-size: 0.82rem; color: var(--text-muted); margin-top: 10px; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface-1); padding-block: 44px 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer-grid h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-grid a { color: var(--text-secondary); font-size: 0.88rem; }
.footer-grid a:hover { color: var(--text-primary); }
.footer-about p { color: var(--text-secondary); font-size: 0.87rem; margin-top: 12px; max-width: 38ch; }
.footer-bottom {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 0.8rem; color: var(--text-muted);
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav { gap: 14px; }
  .nav .nav-hide { display: none; }
}
/*
 * The header is the one row that cannot wrap without looking broken, so it
 * sheds links as the viewport narrows. The call to action is never dropped —
 * everything shed here is still reachable from the footer.
 */
@media (max-width: 620px) {
  .nav .nav-sm { display: none; }
}
@media (max-width: 430px) {
  .nav { gap: 12px; }
  .nav .nav-xs { display: none; }
  .brand span { font-size: 0.94rem; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .mock-stats { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
}


/* ==================================================================
 * Home page — richer sections
 * ================================================================== */

/* ---- Stat band ---- */
.stat-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stat-band div { background: var(--surface-1); padding: 22px 20px; }
.stat-band b { display: block; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 730; letter-spacing: -0.035em; color: var(--accent); }
.stat-band span { display: block; font-size: 0.82rem; color: var(--text-secondary); margin-top: 6px; line-height: 1.5; }
.stat-band cite { display: block; font-size: 0.7rem; color: var(--text-muted); font-style: normal; margin-top: 8px; }

/* ---- Feature split ---- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split h3 { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem); margin-bottom: 12px; }
.split p { color: var(--text-secondary); }
.split-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 11px; }
.split-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--text-secondary); }
.split + .split { margin-top: clamp(48px, 6vw, 84px); }

/* ---- Persona cards ---- */
.persona { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.persona h3 { font-size: 1.02rem; margin-bottom: 8px; }
.persona p { font-size: 0.89rem; color: var(--text-secondary); }
.persona ul { list-style: none; padding: 0; margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.persona li { font-size: 0.85rem; color: var(--text-secondary); display: flex; gap: 8px; align-items: flex-start; }
.persona li svg { flex: none; width: 13px; height: 13px; margin-top: 4px; stroke: var(--accent); }

/* ---- Mock variants ---- */
.mock-tabs { display: flex; gap: 4px; padding: 10px 13px 0; }
.mock-tab { font-size: 0.73rem; font-weight: 600; padding: 6px 11px; border-radius: var(--radius-sm) var(--radius-sm) 0 0; color: var(--text-muted); background: transparent; }
.mock-tab.on { background: var(--surface-1); color: var(--text-primary); border: 1px solid var(--border); border-bottom-color: var(--surface-1); }
.mock-bars { display: flex; align-items: flex-end; gap: 7px; height: 92px; padding: 4px 0 0; }
.mock-bars i { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; opacity: 0.85; display: block; }
.mock-legend { display: flex; gap: 14px; margin-top: 10px; font-size: 0.7rem; color: var(--text-muted); }
.mock-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 0.68rem; font-weight: 620; padding: 2px 8px; border-radius: 999px; background: var(--accent-subtle); color: var(--accent); border: 1px solid var(--accent-border); }
.mock-note { font-size: 0.72rem; color: var(--text-muted); margin-top: 10px; }
.mock-funnel { display: flex; flex-direction: column; gap: 8px; }
.mock-funnel div { background: var(--accent); color: var(--accent-contrast); border-radius: var(--radius-sm); padding: 7px 11px; font-size: 0.76rem; font-weight: 600; display: flex; justify-content: space-between; }
.mock-funnel div:nth-child(2) { width: 74%; opacity: 0.86; }
.mock-funnel div:nth-child(3) { width: 46%; opacity: 0.72; }
.mock-funnel div:nth-child(4) { width: 28%; opacity: 0.58; }

/* ---- Quote / principle ---- */
.principle { border-left: 3px solid var(--accent); padding-left: 20px; }
.principle p { font-size: clamp(1.05rem, 0.98rem + 0.5vw, 1.3rem); line-height: 1.5; letter-spacing: -0.015em; color: var(--text-primary); }
.principle cite { display: block; margin-top: 12px; font-style: normal; font-size: 0.85rem; color: var(--text-muted); }

/* ---- Guide list rows ---- */
.guide-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); }
.guide-row:hover { border-color: var(--accent-border); text-decoration: none; }
.guide-row h3 { font-size: 1rem; margin-bottom: 5px; }
.guide-row p { font-size: 0.87rem; color: var(--text-secondary); }
.guide-row .arrow { color: var(--accent); font-weight: 700; }
.guide-meta { font-size: 0.74rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 7px; display: block; }

@media (max-width: 980px) {
  .stat-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}
@media (max-width: 560px) {
  .stat-band { grid-template-columns: 1fr; }
  .guide-row { grid-template-columns: 1fr; }
  .guide-row .arrow { display: none; }
}

/* ==================================================================
 * Product shots
 *
 * Full recreations of the app's own screens — sidebar, header, stats and
 * table — built from the same tokens the product uses. Rendered rather than
 * photographed so they stay crisp at any pixel density, reflow on a phone,
 * follow the reader's colour scheme, and cannot go stale when the UI moves.
 * ================================================================== */

.shot {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface-1); box-shadow: var(--shadow-lg);
  overflow: hidden; margin: 0;
}
.shot-chrome {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 13px; background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.shot-chrome .mock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.shot-url {
  margin-left: 8px; flex: 1; font-size: 0.7rem; color: var(--text-muted);
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: 999px; padding: 3px 11px; text-align: center;
}
.shot-body { display: grid; grid-template-columns: 172px minmax(0, 1fr); }

.shot-side { border-right: 1px solid var(--border); padding: 12px 9px; background: var(--surface-1); }
.shot-side .grp {
  font-size: 0.56rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--text-muted); padding: 9px 8px 5px;
}
.shot-side .it {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 8px; border-radius: var(--radius-sm);
  font-size: 0.72rem; color: var(--text-secondary);
}
.shot-side .it.on { background: var(--accent-subtle); color: var(--accent); font-weight: 620; }
.shot-side .sq { width: 13px; height: 13px; border-radius: 3.5px; background: var(--surface-3); flex: none; }
.shot-side .it.on .sq { background: var(--accent); }

.shot-main { padding: 14px 16px 18px; min-width: 0; }
.shot-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.shot-head h4 { font-size: 0.98rem; letter-spacing: -0.02em; }
.shot-head .sub { font-size: 0.68rem; color: var(--text-muted); }
.shot-actions { display: flex; gap: 6px; }
.shot-btn {
  font-size: 0.64rem; font-weight: 620; padding: 3px 9px; border-radius: 5px;
  border: 1px solid var(--border-strong); color: var(--text-secondary);
}
.shot-btn.pri { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }

.shot-stats { display: flex; gap: 20px; flex-wrap: wrap; margin: 12px 0 14px; }
.shot-stats div b { display: block; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.03em; }
.shot-stats div span { font-size: 0.56rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }

.shot-rec {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  padding: 8px 11px; border-radius: var(--radius-sm);
  background: var(--accent-subtle); border: 1px solid var(--accent-border);
  font-size: 0.72rem; color: var(--text-secondary);
}
.shot-rec b { color: var(--text-primary); font-weight: 620; }
.shot-rec .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

.shot-tabs { display: flex; gap: 4px; margin-bottom: 10px; flex-wrap: wrap; }
.shot-tabs span {
  font-size: 0.66rem; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  color: var(--text-secondary); border: 1px solid var(--border);
}
.shot-tabs span.on { background: var(--text-primary); color: var(--surface-1); border-color: var(--text-primary); }

.shot-table { width: 100%; border-collapse: collapse; min-width: 0; font-size: 0.72rem; }
.shot-table th {
  text-align: left; font-size: 0.58rem; font-weight: 650; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted); background: transparent;
  padding: 6px 8px; border-bottom: 1px solid var(--border);
}
.shot-table td { padding: 7px 8px; border-bottom: 1px solid var(--gridline); color: var(--text-secondary); }
.shot-table tr:last-child td { border-bottom: none; }
.shot-table .kw { color: var(--text-primary); font-weight: 560; }
.shot-table .r { font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.shot-table .num { font-variant-numeric: tabular-nums; }

.pill-win { font-size: 0.6rem; font-weight: 650; padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--status-good) 14%, transparent); color: var(--delta-up); white-space: nowrap; }
.pill-high { font-size: 0.6rem; font-weight: 650; padding: 2px 7px; border-radius: 999px; background: var(--accent-subtle); color: var(--accent); white-space: nowrap; }
.pill-warn { font-size: 0.6rem; font-weight: 650; padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--status-warning) 20%, transparent); color: var(--text-primary); white-space: nowrap; }

.meter { height: 4px; border-radius: 999px; background: var(--surface-3); overflow: hidden; min-width: 44px; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

.spark { display: block; width: 54px; height: 16px; }
.spark path { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.shot-cards { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; }
.shot-card { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 13px; background: var(--surface-1); }
.shot-card h5 { font-size: 0.7rem; margin-bottom: 9px; letter-spacing: -0.005em; }
.shot-field { display: grid; grid-template-columns: 78px 1fr auto; gap: 9px; align-items: baseline; padding: 5px 0; border-bottom: 1px solid var(--gridline); font-size: 0.7rem; }
.shot-field:last-child { border-bottom: none; }
.shot-field .lbl { color: var(--text-muted); font-size: 0.66rem; }
.shot-field .val { color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot-field .cnt { color: var(--text-muted); font-size: 0.63rem; font-variant-numeric: tabular-nums; }
.tag-off { font-size: 0.54rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); border: 1px solid var(--border); border-radius: 3px; padding: 0 4px; }
.tag-sug { font-size: 0.54rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent-border); border-radius: 3px; padding: 0 4px; }

.health-score { font-size: 2.1rem; font-weight: 740; letter-spacing: -0.04em; }
.health-score small { font-size: 0.72rem; font-weight: 500; color: var(--text-muted); }
.health-row { display: grid; grid-template-columns: 58px 1fr 26px; gap: 8px; align-items: center; font-size: 0.66rem; color: var(--text-secondary); margin-top: 7px; }

.shot-ops { margin-top: 12px; }
.shot-op { display: flex; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--gridline); font-size: 0.71rem; color: var(--text-secondary); }
.shot-op:last-child { border-bottom: none; }
.shot-op b { display: block; color: var(--text-primary); font-weight: 620; margin-bottom: 2px; }

/* On a phone the sidebar is noise; the content is the point. */
@media (max-width: 720px) {
  .shot-body { grid-template-columns: 1fr; }
  .shot-side { display: none; }
  .shot-table .hide-sm { display: none; }
  .shot-cards { grid-template-columns: 1fr; }
  .shot-stats { gap: 14px; }
}


/* ---- Full-width product shots ----
 * A real app screenshot is landscape. Squeezed into half a two-column split the
 * frame ends up taller than it is wide, which reads as a phone rather than the
 * desktop tool it is — so the shots get the full measure and the copy sits above.
 */
.shot-lead { max-width: 720px; margin-bottom: clamp(22px, 3vw, 34px); }
.shot-lead h2 { margin-bottom: 12px; }
.shot-lead p { color: var(--text-secondary); }
.shot-lead .split-list { margin-top: 16px; }
.shot-full { max-width: 1000px; margin-inline: auto; }
.shot-full .shot-main { padding: 16px 20px 20px; }
.shot-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }

/* The hero shot leads the page, so it is allowed to be the widest thing on it. */
.hero-stack { text-align: left; }
.hero-stack .hero-copy { max-width: 760px; }
.hero-shot { margin-top: clamp(34px, 4.5vw, 56px); }

@media (max-width: 860px) {
  .shot-two { grid-template-columns: 1fr; gap: 14px; }
}

/* ---- Consent ---- */
#consent-bar {
  position: fixed; z-index: 200; left: 16px; bottom: 16px; max-width: 400px;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 12px;
}
#consent-bar p { font-size: 0.8rem; line-height: 1.6; color: var(--text-secondary); }
/* Equal weight on both choices — a decline styled as an afterthought is the
   pattern regulators object to, and it is not worth the sessions it buys. */
.consent-actions { display: flex; gap: 8px; justify-content: flex-end; }
.consent-actions .btn { padding: 7px 14px; font-size: 0.82rem; }
@media (max-width: 520px) {
  #consent-bar { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .consent-actions .btn { flex: 1; }
}

/* ---- Currency switcher ---- */
.currency-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 22px; }
.currency-row label { font-size: 0.82rem; color: var(--text-secondary); }
#currency-select {
  font: inherit; font-size: 0.85rem; font-weight: 550;
  padding: 7px 30px 7px 11px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface-1); color: var(--text-primary);
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23898781' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 10px;
}
#currency-select:hover { border-color: var(--text-muted); }

/* ---- Related guides ---- */
.related { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border); }
.related h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin: 0 0 12px; }
.related ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.related a { font-size: 0.94rem; font-weight: 550; }
