/* HookScan public pages (order H3). Brand tokens are the app's own (web/styles.css, unslopped 2026-11-02 with unslop by
   Damir Sokolovsky, @heydamir, CC BY 4.0): graphite neutrals, mono timecodes as the signature. Since order H5
   (2026-11-21) the accent is palette K: emerald → teal, a mint/aqua haze behind the page, the hook window 0:00–0:03 in
   mint. Decision: docs/decisions/2026-11-21-brand-refresh.md. */
:root {
  --page: #FAFAFA;
  --surface: #FFFFFF;
  --raised: #F4F4F5;
  --text: #171717;
  --text-2: #525252;
  --text-3: #6B6B6B;
  --sep: rgba(23, 23, 23, 0.08);
  --sep-2: rgba(23, 23, 23, 0.16);
  --accent: #10B981;
  --accent-text: #047857;
  --accent-tint: rgba(16, 185, 129, 0.10);
  --accent-tint-2: rgba(16, 185, 129, 0.20);
  --focus: #047857;
  /* primary button: bright green → teal "B" (Customer, 2026-11-21) with dark ink: 10.2:1 / 8.0:1.
     Hover = explicit deeper ends (ink stays), never a filter (a filter would dim the text too). */
  --btn-bg: #2BE38F;
  --btn-bg-2: #12C7AE;
  --btn-ink: #0B1F16;
  --btn-bg-h: #22D584;
  --btn-bg-2-h: #10B8A1;
  --haze-1: #D3F8E6;
  --haze-2: #D4F3F4;
  --tint-1: #E3FAEF;
  --tint-2: #E0F7F6;
  --tint-3: #E6F1FB;
  --wm-1: #10B981;
  --wm-2: #0D9488;
  --wm-line: #3DF5A8;
  --danger: #DC2626;
  --success: #16A34A;
  --hdr: rgba(255, 255, 255, 0.72);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 24px 48px -28px rgba(0, 0, 0, 0.14);
  --shadow-phone: 0 1px 2px rgba(0, 0, 0, 0.06), 0 32px 64px -24px rgba(0, 0, 0, 0.24);
  --term: #161617;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Ubuntu Sans", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #141415;
    --surface: #19191B;
    --raised: #232325;
    --text: #EDEDED;
    --text-2: #A1A1A6;
    --text-3: #8E8E94;
    --sep: rgba(237, 237, 237, 0.08);
    --sep-2: rgba(237, 237, 237, 0.18);
    --accent: #3DF5A8;
    --accent-text: #6CF8BD;
    --accent-tint: rgba(61, 245, 168, 0.10);
    --accent-tint-2: rgba(61, 245, 168, 0.20);
    --focus: #3DF5A8;
    --btn-bg: #3DF5A8;
    --btn-bg-2: #2DD4BF;
    --btn-ink: #0B1F16;
    --btn-bg-h: #5CF7B8;
    --btn-bg-2-h: #4FE0CC;
    --haze-1: rgba(61, 245, 168, 0.10);
    --haze-2: rgba(45, 212, 191, 0.10);
    --tint-1: #16241E;
    --tint-2: #14232A;
    --tint-3: #1A1F2A;
    --wm-1: #3DF5A8;
    --wm-2: #2DD4BF;
    --wm-line: #C9FFE6;
    --danger: #E5484D;
    --success: #4CC38A;
    --hdr: rgba(20, 20, 21, 0.72);
    --shadow-card: none;
    --shadow-phone: 0 32px 64px -24px rgba(0, 0, 0, 0.6);
    --term: #0F0F10;
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; color: var(--text);
  background:
    radial-gradient(60rem 40rem at 8% 0, var(--haze-1), transparent 72%) no-repeat,
    radial-gradient(56rem 44rem at 95% 6rem, var(--haze-2), transparent 72%) no-repeat,
    var(--page);
  font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--raised); padding: 2px 6px; border-radius: 6px; }
pre code { background: none; padding: 0; border-radius: 0; font-size: inherit; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 50; padding: 12px 16px; border-radius: 10px; background: var(--btn-bg); color: var(--btn-ink); text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.ic { flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border: 0; border-radius: 10px;
  font: 500 16px/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.15s var(--ease);
}
.btn-primary { background: var(--btn-bg) linear-gradient(100deg, var(--btn-bg), var(--btn-bg-2)); color: var(--btn-ink); }
.btn-primary:hover { background: var(--btn-bg-h) linear-gradient(100deg, var(--btn-bg-h), var(--btn-bg-2-h)); }
.btn:active { transform: scale(0.98); }
.btn-sm { height: 44px; padding: 0 16px; font-size: 15px; }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 20; background: var(--hdr);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--sep);
}
.hdr-in { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-height: 44px; }
/* logo 7b: the app icon tile + the outlined HOOKSCAN wordmark (brand/*.svg, inlined by tools/build_pages.mjs) */
.mark { flex: none; display: block; width: 36px; height: 36px; }
.wordmark { flex: none; display: block; width: 124px; height: 24px; }
.wm-a { stop-color: var(--wm-1); }
.wm-b { stop-color: var(--wm-2); }
.wm-line { fill: var(--wm-line); }
.nav { display: flex; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; font-size: 15px; color: var(--text-2); text-decoration: none; transition: color 0.15s var(--ease), background-color 0.15s var(--ease); }
.nav a:hover { color: var(--text); background: var(--raised); }
.nav a[aria-current="page"] { color: var(--text); }
.hdr-act { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.signin { display: inline-flex; align-items: center; height: 44px; padding: 0 12px; font-size: 15px; color: var(--text-2); text-decoration: none; border-radius: 8px; }
.signin:hover { color: var(--text); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; cursor: pointer; color: var(--text); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--raised); }
.menu-panel {
  position: fixed; left: 0; right: 0; top: 64px; padding: 8px 16px 16px; display: flex; flex-direction: column;
  background: var(--page); border-bottom: 1px solid var(--sep); box-shadow: 0 24px 32px -24px rgba(0, 0, 0, 0.2);
}
.menu-panel a { display: flex; align-items: center; min-height: 48px; padding: 0 8px; font-size: 17px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--sep); }
.menu-panel a:last-child { border-bottom: 0; }
/* six links (with Blog) fit from 1024 px: tighter gaps until the header reaches its 1200 px cap */
.nav a, .signin { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1199px) {
  .hdr-in { gap: 24px; }
  .nav { gap: 0; }
  .nav a { padding: 0 10px; }
}
@media (max-width: 1023px) {
  .nav, .signin { display: none; }
  .menu { display: block; }
  .hdr-in { gap: 16px; }
}
@media (max-width: 479px) {
  .hdr-in { padding: 0 16px; gap: 8px; }
  .hdr .logo { gap: 8px; }
  .hdr .mark { width: 32px; height: 32px; }
  .hdr .wordmark { width: 93px; height: 18px; }
  .hdr-act { gap: 4px; }
  .hdr .btn-sm { padding: 0 14px; }
}

/* ---------- hero ---------- */
.hero { padding: 80px 0 104px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero.no-visual .wrap { max-width: 760px; }
.hero.no-visual .hero-in { grid-template-columns: minmax(0, 1fr); }
.hero h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.04; letter-spacing: -0.032em; margin-bottom: 24px; }
.pg-home .hero h1 { font-size: clamp(44px, 6vw, 76px); }
.hero.legal { padding: 64px 0 24px; }
.hero.legal h1 { font-size: clamp(36px, 4.2vw, 52px); }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: var(--text-2); max-width: 36rem; margin-bottom: 32px; }
.hero.legal .lead { margin-bottom: 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; padding: 0; margin: 0 0 20px; font-size: 14px; color: var(--text-3); }
.crumbs li + li::before { content: "›"; margin: 0 8px; }
.crumbs a { color: var(--text-3); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

/* waitlist form */
.wl { max-width: 480px; }
.wl-row { display: flex; gap: 8px; }
.wl-input {
  flex: 1; min-width: 0; height: 48px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--sep-2); background: var(--surface); color: var(--text); font: 16px var(--sans);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.wl-input::placeholder { color: var(--text-3); }
.wl-input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--accent-tint-2); }
.wl-input[aria-invalid="true"] { border-color: var(--danger); }
.wl-msg { font-size: 15px; margin-top: 8px; min-height: 0; }
.wl-msg:empty { margin-top: 0; }
.wl-msg.err { color: var(--danger); }
.wl-note { margin-top: 12px; font-size: 15px; color: var(--text-3); }
.wl.done .wl-row, .wl.done .wl-note { display: none; }
.wl.done .wl-msg { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--sep); color: var(--text); text-align: left; }
.wl-ok { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--btn-bg) linear-gradient(100deg, var(--btn-bg), var(--btn-bg-2)); color: var(--btn-ink); }
.wl-ok-t { display: block; font-weight: 600; }
.wl-ok-s { display: block; color: var(--text-2); font-size: 15px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.center .wl { margin: 0 auto; }

/* product shots in phone frames */
.phone {
  width: 280px; padding: 9px; border-radius: 46px; background: #0D0D0E;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10), var(--shadow-phone);
}
.phone img { width: 100%; border-radius: 37px; }
.hero-visual { position: relative; }
.phones { height: 640px; max-width: 560px; margin-left: auto; width: 100%; }
.phones .phone { position: absolute; }
.phones .front { left: 16px; bottom: 0; z-index: 1; }
.phones .back { right: 16px; top: 0; width: 252px; }
.single .phone { margin: 0 auto; }

/* ---------- sections ---------- */
.sec { padding: 112px 0; }
.sec h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.022em; margin-bottom: 16px; }
.sec-lead { font-size: 19px; line-height: 1.55; color: var(--text-2); max-width: 40rem; }
.sec-head { max-width: 760px; }
.more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 16px; font-weight: 500; color: var(--text); text-decoration: none; }
.more .ic { transition: transform 0.15s var(--ease); }
.more:hover .ic { transform: translateX(2px); }

/* how it works */
.steps { padding-top: 96px; border-top: 1px solid var(--sep); }
.step-grid { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step { background: var(--surface); border: 1px solid var(--sep); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.step-shot { background: var(--raised); padding: 24px 24px 0; display: flex; justify-content: center; border-bottom: 1px solid var(--sep); }
.step:nth-child(1) .step-shot { background: var(--tint-1); }
.step:nth-child(2) .step-shot { background: var(--tint-2); }
.step:nth-child(3) .step-shot { background: var(--tint-3); }
.step-shot img { width: 260px; border-radius: 16px 16px 0 0; box-shadow: 0 0 0 1px var(--sep); }
.step-text { padding: 24px 24px 28px; }
.step-n { font-size: 13px; color: var(--text-3); }
.step h3 { font-size: 20px; line-height: 1.3; margin: 8px 0; }
.step p { font-size: 16px; line-height: 1.55; color: var(--text-2); }

/* the breakdown — the one rich moment */
.bd { margin: 48px 0 0; background: var(--surface); border: 1px solid var(--sep); border-radius: 20px; box-shadow: var(--shadow-card); overflow: hidden; }
.bd-head { padding: 28px 32px 0; }
.bd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 14px; color: var(--text-3); }
.bd-sample { padding: 2px 8px; border: 1px solid var(--sep-2); border-radius: 6px; font-size: 13px; }
.bd-title { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -0.015em; margin: 12px 0; }
.bd-lens { display: inline-block; padding: 4px 10px; border: 1px solid var(--sep-2); border-radius: 8px; font-size: 14px; color: var(--text-2); }
.cut { padding: 28px 32px 4px; }
.cut-track {
  position: relative; height: 44px; border-radius: 8px; overflow: hidden; background-color: var(--raised);
  background-image: repeating-linear-gradient(90deg, transparent 0 35px, var(--sep) 35px 36px);
}
.cut-hook { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--accent-tint), var(--accent-tint-2)); border-right: 2px solid var(--accent); }
.tick { position: absolute; top: 10px; bottom: 10px; width: 3px; margin-left: -1px; border-radius: 2px; background: var(--text-3); }
.tick.in-hook { background: var(--accent); margin-left: 6px; }
.cut-scale { position: relative; height: 28px; font-size: 12px; color: var(--text-3); }
.cut-scale span { position: absolute; top: 8px; }
.cut-scale span:first-child { left: 0; }
.cut-scale span:last-child { right: 0; }
.cut-hook-l { transform: translateX(-50%); color: var(--accent-text); }
.bd-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 20px; border-top: 1px solid var(--sep); }
.bd-col { padding: 8px 32px 24px; }
.bd-col + .bd-col { border-left: 1px solid var(--sep); }
.bd-field { padding: 20px 0; border-bottom: 1px solid var(--sep); }
.bd-field:last-child { border-bottom: 0; }
.bd-field h4 { font-size: 14px; font-weight: 500; color: var(--text-3); margin-bottom: 8px; }
.bd-field.hl h4 { color: var(--accent-text); }
.bd-field p { font-size: 16px; line-height: 1.55; }
.bd-field p + p { margin-top: 8px; }
.hook { margin: 0; }
.hook div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 6px 0; }
.hook dt { font-size: 14px; color: var(--text-3); padding-top: 2px; }
.hook dd { margin: 0; font-size: 16px; line-height: 1.5; }
.beats { list-style: none; margin: 0; padding: 0; }
.beats li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; padding: 6px 8px; margin: 0 -8px; font-size: 15px; line-height: 1.5; border-radius: 8px; }
.beats .mono { color: var(--text-3); font-size: 13px; padding-top: 2px; }
.beats li.in-hook { background: var(--accent-tint); }
.beats li.in-hook .mono { color: var(--accent-text); }
.bd-field.reuse { margin: 16px 0 0; padding: 20px; border: 0; border-radius: 12px; background: var(--raised); }

/* audience */
.aud-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; margin-top: 40px; }
.aud { border-top: 1px solid var(--text); padding-top: 24px; }
.aud h3 { font-size: 22px; line-height: 1.3; margin-bottom: 12px; }
.aud p { font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 32rem; }

/* AI agents + code */
.agents { border-top: 1px solid var(--sep); }
.agents-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.term { background: var(--term); border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), var(--shadow-card); color: #EDEDED; }
.term-bar { display: flex; gap: 6px; align-items: center; height: 36px; padding: 0 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.term-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.term pre, pre.code { margin: 0; padding: 20px 24px 24px; overflow-x: auto; font: 13.5px/1.7 var(--mono); }
pre.code { margin: 24px 0; background: var(--term); color: #EDEDED; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.c-mute { color: #9A9AA0; }
.c-hook { color: #6CF8BD; }

/* FAQ */
.faq { border-top: 1px solid var(--sep); }
.faq + .faq { border-top: 0; padding-top: 0; }
.qa { margin-top: 24px; border-top: 1px solid var(--sep); }
.qa details { border-bottom: 1px solid var(--sep); }
.qa summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 0; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font-size: 18px; line-height: 1.4; font-weight: 500; }
.qa-ic { position: relative; flex: none; width: 20px; height: 20px; color: var(--text-3); }
.qa-ic::before, .qa-ic::after { content: ""; position: absolute; left: 4px; right: 4px; top: 9px; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform 0.2s var(--ease); }
.qa-ic::after { transform: rotate(90deg); }
.qa details[open] .qa-ic::after { transform: rotate(0deg); }
.qa details p { padding: 0 40px 24px 0; font-size: 17px; line-height: 1.6; color: var(--text-2); }
.qa a { color: var(--text); text-underline-offset: 3px; }
.pg-faq .hero { padding-bottom: 32px; }
.pg-faq .faq { padding: 48px 0; border-top: 0; }

/* final CTA */
.cta .wrap { padding-top: 72px; padding-bottom: 72px; border-radius: 24px; background: var(--surface); border: 1px solid var(--sep); }
.cta .sec-lead { margin: 0 auto 32px; }
.cta { padding: 64px 24px 112px; }

/* prose pages */
.prose { padding: 32px 0; }
.hero + .prose { padding-top: 48px; }
.prose h2 { font-size: clamp(26px, 2.8vw, 34px); margin-bottom: 16px; }
.prose p, .prose li { font-size: 18px; line-height: 1.65; }
.prose p + p, .prose ul + p, .prose ol + p { margin-top: 16px; }
.prose ul, .prose ol { margin: 16px 0 0; padding-left: 22px; }
.prose li { margin-top: 8px; }
.prose li::marker { color: var(--text-3); }
.prose ul + p { margin-top: 16px; }
.prose a { text-decoration-color: var(--sep-2); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose + .sec:not(.prose) { margin-top: 64px; }
.howto { counter-reset: step; list-style: none; padding-left: 0 !important; }
.howto li { counter-increment: step; position: relative; padding-left: 48px; margin-top: 16px; }
.howto li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 2px; font: 14px/1.6 var(--mono); color: var(--accent-text); }
.tbl-wrap { overflow-x: auto; margin-top: 24px; border: 1px solid var(--sep); border-radius: 12px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--sep); }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th { font-size: 14px; font-weight: 500; color: var(--text-3); }
tbody th { font-weight: 500; white-space: nowrap; }
.legal-page .prose:last-of-type { padding-bottom: 96px; }

/* related */
.related { border-top: 1px solid var(--sep); padding: 80px 0; }
.related h2 { font-size: 24px; letter-spacing: -0.01em; margin-bottom: 24px; }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.rel { display: flex; flex-direction: column; gap: 4px; padding: 24px; border: 1px solid var(--sep); border-radius: 16px; background: var(--surface); color: var(--text); text-decoration: none; transition: border-color 0.15s var(--ease); }
.rel:hover { border-color: var(--sep-2); }
.rel-k { font-size: 14px; color: var(--text-3); }
.rel-t { font-size: 17px; line-height: 1.4; font-weight: 500; }
.rel .ic { margin-top: 12px; color: var(--text-3); }

/* footer */
.ftr { border-top: 1px solid var(--sep); padding: 64px 0 40px; }
.ftr-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; }
.ftr-brand p { margin-top: 12px; font-size: 15px; color: var(--text-2); max-width: 22rem; }
.ftr-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ftr-nav h2 { font-size: 14px; font-weight: 500; color: var(--text-3); margin-bottom: 4px; }
.ftr-nav a { display: block; padding: 10px 0; font-size: 15px; line-height: 24px; color: var(--text-2); text-decoration: none; }
.ftr-nav a:hover { color: var(--text); }
.ftr-upd { grid-column: 1 / -1; font-size: 13px; color: var(--text-3); padding-top: 24px; border-top: 1px solid var(--sep); }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .hero { padding: 56px 0 72px; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .phones { margin: 0 auto; }
  .step-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .agents-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 719px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 56px; }
  .lead { margin-bottom: 24px; }
  .wl-row { flex-direction: column; }
  .wl-row .btn { width: 100%; }
  .wl-input { flex: none; width: 100%; }
  .phones { height: auto; max-width: none; }
  .phones .back { display: none; }
  .phones .front, .single .phone { position: relative; left: auto; bottom: auto; margin: 0 auto; width: min(280px, 78vw); }
  .hero-visual { max-height: 520px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }
  .hero-visual:has(.term) { max-height: none; -webkit-mask-image: none; mask-image: none; }
  .sec { padding: 72px 0; }
  .steps { padding-top: 64px; }
  .step-shot img { width: 240px; }
  .bd-head { padding: 20px 20px 0; }
  .cut { padding: 20px 20px 4px; }
  .bd-body { grid-template-columns: minmax(0, 1fr); }
  .bd-col { padding: 4px 20px 20px; }
  .bd-col + .bd-col { border-left: 0; border-top: 1px solid var(--sep); }
  .hook div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .aud-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cta { padding: 32px 16px 72px; }
  .cta .wrap { padding: 48px 20px; }
  .qa details p { padding-right: 0; }
  .prose p, .prose li { font-size: 17px; }
  .ftr-in { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .term pre, pre.code { font-size: 12.5px; padding: 16px; }
}

/* ---------- blog (order H4): the /blog index and articles, same tokens as the pages above ---------- */
.art-col { max-width: 768px; }
.art-head { padding: 64px 0 8px; }
.art-head h1 { font-size: clamp(34px, 4.2vw, 50px); line-height: 1.08; letter-spacing: -0.028em; margin-bottom: 24px; }
.answer { padding: 20px 24px; border: 1px solid var(--sep); border-radius: 16px; background: var(--surface); }
.answer-k { margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--accent-text); }
.answer-t { font-size: 18px; line-height: 1.6; }
.answer-t a, .art-body a, .art-faq a { color: var(--text); text-decoration-color: var(--sep-2); text-underline-offset: 3px; }
.answer-t a:hover, .art-body a:hover { text-decoration-color: currentColor; }
.art-meta { margin-top: 16px; font-size: 14px; color: var(--text-3); }
.art-head .crumbs ol, .blog-hero .crumbs ol { flex-wrap: nowrap; }
.art-head .crumbs li { flex: none; white-space: nowrap; }
.art-head .crumbs li[aria-current] { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.toc { margin: 24px 0 8px; padding: 20px 0; border-top: 1px solid var(--sep); border-bottom: 1px solid var(--sep); }
.toc-h { margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--text-3); }
.toc ol { counter-reset: toc; list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.toc li { counter-increment: toc; break-inside: avoid; display: grid; grid-template-columns: 32px minmax(0, 1fr); }
.toc li::before { content: counter(toc, decimal-leading-zero); padding-top: 9px; font: 13px/1.5 var(--mono); color: var(--text-3); }
.toc a { display: block; padding: 6px 0; font-size: 15px; line-height: 1.5; color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--text); }

.art-body { padding-top: 16px; padding-bottom: 8px; }
.art-body > * + * { margin-top: 20px; }
.art-body h2, .art-facts h2, .art-faq h2 { font-size: clamp(26px, 2.8vw, 32px); line-height: 1.15; letter-spacing: -0.02em; }
.art-body > h2 { margin-top: 56px; }
.art-body > h3 { margin-top: 36px; font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; }
.art-body > h2 + *, .art-body > h3 + * { margin-top: 16px; }
.art-body > p, .art-body > ul > li, .art-body > ol > li, .art-body > blockquote p { font-size: 18px; line-height: 1.7; }
.art-body > ul, .art-body > ol { padding-left: 22px; margin-bottom: 0; }
.art-body > ul > li + li, .art-body > ol > li + li { margin-top: 8px; }
.art-body > ul > li::marker, .art-body > ol > li::marker { color: var(--text-3); }
.art-body blockquote { margin: 28px 0 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--sep-2); }
.art-body blockquote p { color: var(--text-2); }
.art-body blockquote p + p { margin-top: 12px; }
.art-body .tbl-wrap, .art-facts .tbl-wrap { margin-top: 24px; }
.art-body pre.code { margin: 24px 0 0; }
.art-body hr { border: 0; border-top: 1px solid var(--sep); margin: 48px 0; }
.art-body table, .art-facts table { font-size: 15px; }
.art-body tbody th, .art-facts tbody th { white-space: normal; min-width: 7rem; }
.art-body code { overflow-wrap: anywhere; }

.art-cta { margin: 48px 0; padding: 28px; border: 1px solid var(--sep); border-radius: 16px; background: var(--surface); }
.art-body > .art-cta + * { margin-top: 0; }
.art-cta-t { font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.art-cta-s { margin: 8px 0 20px; font-size: 16px; line-height: 1.55; color: var(--text-2); }
.art-cta .wl-note { font-size: 14px; line-height: 1.5; }
.art-facts { margin-top: 56px; }
.art-note { margin-top: 12px; font-size: 14px; color: var(--text-3); }
.sec.art-faq { padding: 64px 0 0; border-top: 0; }
.art-faq .qa { margin-top: 20px; }
.pg-article .related { margin-top: 72px; }

/* Breakdown card (order H6): a real HookScan note quoted in an article. Text only, the link goes to the original post.
   The hook window is the mint signature of the brand (accent tint), the rest reads like the app's note fields. */
.bdc { margin: 32px 0 0; border: 1px solid var(--sep); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-card); overflow: hidden; }
.art-body > .bdc + * { margin-top: 32px; }
.bdc-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 16px; padding: 18px 24px; border-bottom: 1px solid var(--sep); }
.bdc-k { grid-column: 1 / -1; font-size: 13px; font-weight: 500; color: var(--accent-text); }
.bdc-src { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; font-size: 15px; color: var(--text-2); }
.bdc-pf { font-weight: 600; color: var(--text); }
.bdc-h { min-width: 0; overflow-wrap: anywhere; }
.bdc-lens { padding: 2px 8px; border: 1px solid var(--sep-2); border-radius: 6px; font-size: 13px; color: var(--text-2); }
.art-body .bdc-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--sep-2); border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--text); text-decoration: none; white-space: nowrap; transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease); }
.art-body .bdc-link:hover { border-color: var(--accent); background: var(--accent-tint); }
.bdc-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bdc-hook { margin: 16px 24px 0; padding: 14px 16px; border-radius: 12px; background: var(--accent-tint); }
.bdc-hook-k { margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--accent-text); }
.bdc dl { margin: 0; }
.bdc dl > div + div { margin-top: 10px; }
.bdc dt { font-size: 13px; font-weight: 500; color: var(--text-3); }
.bdc dd { margin: 2px 0 0; font-size: 16px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.bdc-hook dt { color: var(--text-2); }
.bdc-f { padding: 16px 24px 20px; }
.bdc-hook + .bdc-f { padding-top: 16px; }
.bdc-hook:last-child { margin-bottom: 20px; }
.bdc dd ol, .bdc dd ul { margin: 4px 0 0; padding-left: 20px; }
.bdc dd li + li { margin-top: 4px; }
.bdc dd li::marker { color: var(--text-3); }

.blog-hero { padding-bottom: 40px; }
.hero.no-visual.blog-hero .wrap { max-width: 1200px; }
.blog-hero .hero-copy { max-width: 760px; }
.blog-group { padding: 56px 0; border-top: 1px solid var(--sep); }
.blog-group h2 { font-size: clamp(26px, 2.8vw, 32px); margin-bottom: 0; }
.post-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.post { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px; border: 1px solid var(--sep); border-radius: 16px; background: var(--surface); transition: border-color 0.15s var(--ease); }
.post:hover { border-color: var(--sep-2); }
.post:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.post h3 { font-size: 19px; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; }
.post h3 a { color: var(--text); text-decoration: none; }
.post h3 a:focus-visible { outline: 0; }
.post h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.post p { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.post .post-m { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--text-3); }
.pg-blog .cta { padding-top: 48px; }

@media (max-width: 1023px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
  .art-head { padding-top: 40px; }
  .art-head h1 { margin-bottom: 20px; }
  .answer { padding: 16px 18px; }
  .answer-t { font-size: 17px; }
  .toc ol { columns: 1; }
  .art-body > p, .art-body > ul > li, .art-body > ol > li, .art-body > blockquote p { font-size: 17px; }
  .art-body > h2 { margin-top: 48px; }
  .art-cta { margin: 40px 0; padding: 20px; }
  .bdc-head { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .bdc-hook { margin: 12px 12px 0; padding: 12px 14px; }
  .bdc-hook:last-child { margin-bottom: 12px; }
  .bdc-f { padding: 14px 16px 16px; }
  .bdc dd { font-size: 15px; }
  .art-body .bdc-link { justify-self: start; }
  .sec.art-faq { padding-top: 48px; }
  .pg-article .related { margin-top: 64px; padding: 56px 0; }
  .blog-group { padding: 40px 0; }
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .post { padding: 20px; }
  /* tables become one block per row, each cell under its column name */
  .art-body .tbl-wrap, .art-facts .tbl-wrap { overflow: visible; }
  .art-body thead, .art-facts thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .art-body tr, .art-facts tr { display: block; padding: 16px; border-bottom: 1px solid var(--sep); }
  .art-body tbody tr:last-child, .art-facts tbody tr:last-child { border-bottom: 0; }
  .art-body tbody th, .art-body td, .art-facts tbody th, .art-facts td { display: block; padding: 0; border: 0; min-width: 0; }
  .art-body tbody th, .art-facts tbody th { margin-bottom: 8px; font-weight: 600; }
  .art-body td + td, .art-facts td + td { margin-top: 8px; }
  .art-body td::before, .art-facts td::before { content: attr(data-label); display: block; font-size: 13px; color: var(--text-3); }
}
