/* ==========================================================================
   The Funnel Files: main stylesheet
   Layout concept: warm editorial pages built from "files". Cards carry a
   folder tab that names their stage (Audit, Build, Automate, Grow).
   ========================================================================== */

/* ---------- Fonts (self-hosted, variable weight) ---------- */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("/assets/fonts/bricolage-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("/assets/fonts/bricolage-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url("/assets/fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url("/assets/fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: italic; font-display: swap; font-weight: 300 900;
  src: url("/assets/fonts/figtree-latin-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F; }

/* ---------- Tokens ---------- */
:root {
  /* Brand palette */
  --plum: #2A1C22;
  --plum-2: #3A2830;
  --rose: #D97095;
  --rose-deep: #B03F6A;
  --mauve: #8C6E7A;
  --mauve-deep: #6E5260;
  --blush: #FEF0F4;
  --paper: #FFF8FA;

  /* Roles (light) */
  --bg: var(--paper);
  --surface: #FFFFFF;
  --surface-2: var(--blush);
  --ink: var(--plum);
  --muted: var(--mauve-deep);
  --line: #EAD6DE;
  --link: var(--rose-deep);
  --accent: var(--rose);
  --on-accent: var(--plum);
  --band: var(--plum);
  --on-band: var(--blush);
  --band-muted: #D8C2CC;
  --band-line: #4A3540;
  --btn-dark: var(--plum);
  --btn-dark-hover: var(--plum-2);
  --focus: var(--rose-deep);
  --success: #2E7D5B;
  --error: #B3261E;

  /* Type */
  --font-display: "Bricolage Grotesque", "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  --step-4: clamp(2.1rem, 1.55rem + 2.4vw, 3.2rem);
  --step-5: clamp(2.5rem, 1.7rem + 3.8vw, 4.4rem);

  /* Space & shape */
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --max: 1160px;
  --measure: 66ch;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(42, 28, 34, .06), 0 8px 24px rgba(42, 28, 34, .06);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1D1317; --surface: #2A1C22; --surface-2: #33232A; --ink: #FEF0F4; --muted: #CDB6C0;
    --line: #46323B; --link: #EC9AB8; --band: #140D10; --band-line: #3A2830; --focus: #EC9AB8; --btn-dark: #4A3540; --btn-dark-hover: #5A4250;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1D1317; --surface: #2A1C22; --surface-2: #33232A; --ink: #FEF0F4; --muted: #CDB6C0;
  --line: #46323B; --link: #EC9AB8; --band: #140D10; --band-line: #3A2830; --focus: #EC9AB8; --btn-dark: #4A3540; --btn-dark-hover: #5A4250;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; font-weight: 700; }
h1 { font-size: var(--step-5); font-weight: 750; letter-spacing: -0.03em; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); letter-spacing: -0.01em; }
h4 { font-size: var(--step-1); letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--rose); color: var(--plum); }
.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: -60px; z-index: 100; background: var(--plum); color: var(--blush); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * 16px); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap--narrow { max-width: calc(760px + 32px); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--alt { background: var(--surface-2); }
.section--band { background: var(--band); color: var(--on-band); }
.section--band a:not(.btn) { color: var(--rose); }
.stack > * + * { margin-top: var(--stack, 1rem); }

.eyebrow { font-family: var(--font-body); font-size: var(--step--1); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--link); }
.section--band .eyebrow { color: var(--rose); }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 60ch; line-height: 1.55; }
.section--band .lede { color: var(--band-muted); }
.muted { color: var(--muted); }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 2px solid transparent; font: 650 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn--primary { background: var(--rose); color: var(--plum); }
.btn--primary:hover { background: #E386A7; }
.btn--dark { background: var(--btn-dark); color: var(--blush); }
.btn--dark:hover { background: var(--btn-dark-hover); }
.btn--ghost { background: transparent; color: var(--ink); border-color: currentColor; }
.section--band .btn--ghost { color: var(--blush); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.arrow::after { content: "→"; transition: transform .15s ease; }
a:hover .arrow::after, .btn:hover.arrow::after { transform: translateX(3px); }
.text-link { font-weight: 650; text-decoration: none; color: var(--link); }
.text-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 750; font-size: 1.15rem; letter-spacing: -0.02em; margin-right: auto; }
.brand img { width: 34px; height: 34px; }
.nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 550; }
.nav-list a:hover { background: var(--surface-2); }
.nav-list a[aria-current="page"], .nav-list a[data-section="true"] { background: var(--surface-2); color: var(--link); }
.nav-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); font: 600 .95rem var(--font-body); cursor: pointer; }
.nav-toggle svg { width: 18px; height: 18px; }
.mobile-nav { display: none; }

@media (max-width: 900px) {
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav { display: block; border-top: 1px solid var(--line); background: var(--bg); }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav ul { list-style: none; margin: 0; padding: 8px 0 20px; display: grid; gap: 2px; }
  .mobile-nav a:not(.btn) { display: block; padding: 12px 4px; font-size: 1.15rem; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
  .mobile-nav a[aria-current="page"] { color: var(--link); }
  .mobile-nav .btn { margin-top: 16px; width: 100%; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 7vw, 96px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 em { font-style: normal; color: var(--link); background: linear-gradient(transparent 72%, color-mix(in srgb, var(--rose) 38%, transparent) 72%, color-mix(in srgb, var(--rose) 38%, transparent) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero__copy { display: grid; gap: 22px; min-width: 0; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: var(--step--1); color: var(--muted); list-style: none; padding: 0; margin: 0; }
.hero__proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero__proof li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rose); }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; } }

/* Funnel diagram (hero) */
.funnel-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 22px 18px; box-shadow: var(--shadow); min-width: 0; }
.funnel-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.funnel-card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.funnel-card__tag { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.funnel li { --w: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; width: var(--w); margin-inline: auto;
  padding: 11px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; font-size: .95rem; }
.funnel li span:last-child { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; font-size: .9rem; }
.funnel li.is-leak { border-style: dashed; border-color: var(--rose-deep); }
.funnel li:nth-child(1) { --w: 100%; } .funnel li:nth-child(2) { --w: 92%; } .funnel li:nth-child(3) { --w: 84%; }
.funnel li:nth-child(4) { --w: 68%; } .funnel li:nth-child(5) { --w: 60%; background: var(--rose); color: var(--plum); border-color: var(--rose); }
.funnel li:nth-child(5) span:last-child { color: var(--plum); }
.funnel-card__note { margin-top: 14px; font-size: .85rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.leak-dot { flex: none; width: 14px; height: 14px; margin-top: 3px; border: 2px dashed var(--rose-deep); border-radius: 4px; }
@media (max-width: 480px) { .funnel li { --w: 100% !important; } }

/* ---------- Pain points ---------- */
.pains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.pains li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 58px; position: relative; }
.pains li::before { content: ""; position: absolute; left: 22px; top: 25px; width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at center, var(--rose-deep) 0 3px, transparent 3.5px), var(--surface-2); border: 2px solid var(--rose); }
.pains strong { display: block; font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 4px; }
.pains p { color: var(--muted); }
@media (max-width: 700px) { .pains { grid-template-columns: 1fr; } }

/* ---------- File cards (tabbed) ---------- */
.files { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.files--3 { --cols: 3; }
@media (max-width: 1020px) { .files { --cols: 2; } }
@media (max-width: 620px) { .files { --cols: 1; } }
.file { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px 22px 22px; margin-top: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 0 var(--radius) var(--radius) var(--radius); min-width: 0; }
.file__tab { position: absolute; z-index: 1; left: -1px; top: -27px; height: 28px; padding: 5px 14px 0 12px; border: 1px solid var(--line); border-bottom: 0;
  border-radius: 10px 10px 0 0; background: var(--surface); font-size: .76rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--link); }
.file__tab b { color: var(--muted); font-weight: 700; margin-right: 6px; }
.file h3 { font-size: 1.35rem; }
.file p { color: var(--muted); }
.file__foot { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.price-from { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; }
.price-from small { font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: .8rem; margin-right: 4px; }
.file a.stretched::after { content: ""; position: absolute; inset: -28px 0 0 0; }
.file:has(a.stretched:hover) { border-color: var(--rose); }
.file:has(a.stretched:hover) .file__tab { border-color: var(--rose); }

/* ---------- Steps (real sequence) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 0; counter-reset: step; }
.steps li { counter-increment: step; padding: 0 22px 0 0; position: relative; display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--rose); color: var(--plum); font: 750 1rem var(--font-display); margin-bottom: 8px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 19px; left: 52px; right: 12px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.section--band .steps li:not(:last-child)::after { background-image: repeating-linear-gradient(90deg, var(--rose) 0 8px, transparent 8px 14px); opacity: .55; }
.steps h3 { font-size: 1.2rem; }
.steps p { color: var(--muted); font-size: .98rem; }
.section--band .steps p { color: var(--band-muted); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .steps li { padding: 0 0 0 56px; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .steps li:not(:last-child)::after { top: 48px; bottom: -20px; left: 19px; right: auto; height: auto; width: 2px; background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px); }
  .section--band .steps li:not(:last-child)::after { background-image: repeating-linear-gradient(180deg, var(--rose) 0 8px, transparent 8px 14px); }
}

/* ---------- Work / case studies ---------- */
.cases { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.cases--2 { --cols: 2; }
@media (max-width: 960px) { .cases { --cols: 2; } }
@media (max-width: 640px) { .cases { --cols: 1; } }
.case { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.case:hover { border-color: var(--rose); }
.case__meta { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.case h3 { font-size: 1.3rem; }
.case h3 a { color: inherit; text-decoration: none; }
.case h3 a::after { content: ""; position: absolute; inset: 0; }
.case p { color: var(--muted); }
.case__stat { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; gap: 12px; align-items: baseline; }
.case__stat b { font-family: var(--font-display); font-size: 1.6rem; color: var(--link); font-variant-numeric: tabular-nums; line-height: 1; }
.case__stat span { font-size: .9rem; color: var(--muted); }
.chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .78rem; font-weight: 650; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.stats li { padding: 18px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.stats b { display: block; font-family: var(--font-display); font-size: var(--step-3); line-height: 1.05; color: var(--link); font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: .95rem; }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.founder__photo { aspect-ratio: 4 / 5; max-width: 100%; border-radius: 0 20px 20px 20px; overflow: hidden; background: var(--plum-2); position: relative; margin-top: 22px; }
.founder__photo::before { content: "Founder"; position: absolute; left: 0; top: -24px; height: 24px; padding: 4px 12px 0; border-radius: 10px 10px 0 0; background: var(--plum); color: var(--rose); font-size: .74rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.founder__photo { overflow: visible; }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 20px 20px 20px; }
.founder__initials { width: 100%; height: 100%; display: grid; place-items: center; font: 750 5rem var(--font-display); color: var(--rose); border-radius: 0 20px 20px 20px; background: radial-gradient(circle at 30% 20%, #4A3540, var(--plum-2) 70%); }
.founder blockquote { margin: 0; font-family: var(--font-display); font-size: var(--step-3); line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; }
@media (max-width: 760px) { .founder { grid-template-columns: 1fr; } .founder__photo { max-width: 240px; } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
.quote { margin: 0; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; }
.quote p { font-size: 1.1rem; }
.quote footer { color: var(--muted); font-size: .92rem; }
.quote footer b { color: var(--ink); }

/* ---------- Pricing ---------- */
.prices { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; align-items: stretch; }
.prices--2 { --cols: 2; }
@media (max-width: 1000px) { .prices { --cols: 2; } }
@media (max-width: 660px) { .prices { --cols: 1; } }
.price { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 24px 24px; margin-top: 20px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 0 var(--radius) var(--radius) var(--radius); min-width: 0; }
.price.is-featured { border: 2px solid var(--rose); }
.price.is-featured .file__tab { border: 2px solid var(--rose); border-bottom: 0; top: -28px; left: -2px; height: 30px; z-index: 1; }
.price__amount { font-family: var(--font-display); font-size: var(--step-3); font-weight: 750; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price__amount small { display: block; font: 600 .8rem var(--font-body); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.price__unit { font: 500 .95rem var(--font-body); color: var(--muted); letter-spacing: 0; }
.price__summary { color: var(--muted); }
.price ul.ticks { margin-top: 4px; }
.price__meta { font-size: .88rem; color: var(--muted); display: flex; gap: 6px 16px; flex-wrap: wrap; }
.price__meta b { color: var(--ink); font-weight: 650; }
.price__note { font-size: .88rem; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.price .btn { margin-top: auto; }
.badge { position: absolute; right: 16px; top: -13px; background: var(--rose); color: var(--plum); font-size: .75rem; font-weight: 750; padding: 4px 10px; border-radius: 999px; letter-spacing: .03em; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--surface-2); border: 1.5px solid var(--rose); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: calc(.3em + 4px); width: 5px; height: 9px; border: solid var(--rose-deep); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative; font-family: var(--font-display); font-weight: 650; font-size: 1.12rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--link); font: 600 1.2rem/1 var(--font-body); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 20px 20px; color: var(--muted); }
.faq details > div > * + * { margin-top: .75em; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field legend { font-weight: 650; font-size: .97rem; }
.field .hint { font-size: .86rem; color: var(--muted); }
.req { color: var(--link); }
input[type="text"], input[type="search"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; font: 400 1rem var(--font-body); color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; }
textarea { min-height: 140px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: var(--error); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--rose-deep); flex: none; }
.check--tips { background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 4px 0 2px; line-height: 1.45; }
.check--tips b { display: block; font-weight: 700; margin-bottom: 2px; }
.tips-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(20px, 4vw, 40px); align-items: center; margin: 40px 0 8px; padding: clamp(20px, 4vw, 32px); background: var(--surface-2); border: 1px solid var(--line); border-radius: 20px; }
.tips-card p { margin: 6px 0 0; }
@media (max-width: 860px) { .tips-card { grid-template-columns: 1fr; } }
.form-small { font-size: .86rem; color: var(--muted); }
.form-small--agree { margin: 4px 0 14px; line-height: 1.5; }
.form-small--agree a { color: inherit; text-decoration: underline; }
.honey { position: absolute; left: -9999px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.section--band .panel { color: var(--ink); }

/* Lead magnet band */
.magnet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .magnet { grid-template-columns: 1fr; } }
.magnet__cover { display: none; }

/* ---------- Contact layout ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.aside-card { display: grid; gap: 14px; padding: 24px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.aside-card h2 { font-size: 1.3rem; }

/* ---------- Page header ---------- */
.page-head { padding-block: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 48px); }
.page-head .wrap { display: grid; gap: 18px; }
.page-head h1 { font-size: var(--step-5); max-width: 18ch; }
.crumbs { font-size: .88rem; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); }

/* ---------- Two column content ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Prose (blog, legal, case studies) ---------- */
.prose { max-width: var(--measure); font-size: 1.1rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--step-3); margin-top: 1.8em; }
.prose h3 { font-size: var(--step-2); margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--rose-deep); }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--rose); font-family: var(--font-display); font-size: 1.25rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface-2); font-weight: 700; }
.table-scroll { overflow-x: auto; }
.prose hr { border: 0; border-top: 1px dashed var(--line); margin-block: 2em; }
.prose code { font-size: .92em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .95rem; }
.callout { padding: 20px 22px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }

/* ---------- Blog list ---------- */
.posts { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 960px) { .posts { --cols: 2; } }
@media (max-width: 640px) { .posts { --cols: 1; } }
.post-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.post-card:hover { border-color: var(--rose); }
.post-card h3 { font-size: 1.25rem; }
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card p { color: var(--muted); }
.post-card .post-meta { margin-top: auto; font-size: .86rem; }

/* ---------- CTA band ---------- */
.cta-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--band); color: var(--band-muted); padding-block: 64px 32px; font-size: .97rem; }
.site-footer a { color: var(--on-band); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--rose); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-about { display: grid; gap: 14px; align-content: start; max-width: 360px; }
.footer-about .brand { color: var(--on-band); }
.site-footer h2 { font-family: var(--font-body); font-size: .8rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--rose); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--band-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; }

/* WhatsApp floating button (only rendered if a number is set) */
.wa-float { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 999px; background: #1F7A4D; color: #fff; font-weight: 650; text-decoration: none; box-shadow: var(--shadow); }
.wa-float svg { width: 20px; height: 20px; }

/* ---------- Utilities ---------- */
.h3 { font-size: var(--step-2); }
.h4 { font-size: 1rem; font-family: var(--font-body); font-weight: 750; letter-spacing: .02em; }
.prices--1 { --cols: 1; }
.aside-card hr { border: 0; border-top: 1px dashed var(--line); margin: 4px 0; width: 100%; }
ul[role="list"] { list-style: none; padding: 0; margin: 0; }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-l { margin-top: clamp(28px, 4vw, 44px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }
.card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 10px; align-content: start; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); }

/* ---------- Illustrations (Fili the folder + spot art) ---------- */
:root { --illo-fg: var(--plum); --illo-glow: var(--blush); --cheek: #F6B3CA; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --illo-fg: #FEF0F4; --illo-glow: #33232A; } }
:root[data-theme="dark"] { --illo-fg: #FEF0F4; --illo-glow: #33232A; }
.i-rose { fill: var(--rose); } .i-rosedeep { fill: var(--rose-deep); } .i-mauve { fill: var(--mauve); }
.i-ink { fill: var(--plum); } .i-fg { fill: var(--illo-fg); } .i-paper { fill: var(--surface); } .i-blush { fill: var(--illo-glow); }
.i-white { fill: #fff; } .i-cheek { fill: var(--cheek); } .i-line-fill { fill: var(--line); }
.i-stroke-ink { stroke: var(--plum); } .i-stroke-fg { stroke: var(--illo-fg); } .i-stroke-rosedeep { stroke: var(--rose-deep); stroke-width: 1.5px; }
.i-stroke-line { stroke: var(--line); stroke-width: 1.5px; }
.i-text { fill: var(--ink); font: 650 13px var(--font-body); }
.i-qmark { fill: var(--rose-deep); font: 750 30px var(--font-display); }
.illo { width: 100%; height: auto; overflow: visible; }
.illo--hero { max-width: 460px; margin-inline: auto; }
.illo--lost, .illo--yay { max-width: 240px; }
.illo--clipboard { max-width: 220px; }
.fili-pose { display: block; width: 100%; height: auto; overflow: visible; }
.fili-pose__bob { transform-box: fill-box; transform-origin: center; }
.aside-art { width: 170px; margin: -8px auto 0; }
.head-art { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 48px); }
.head-art .section-head { margin-bottom: 0; }
.head-art__img { flex: 0 0 auto; width: clamp(120px, 22vw, 200px); }
@media (max-width: 560px) { .head-art { flex-direction: column-reverse; align-items: flex-start; } .head-art__img { width: 150px; } }
.spot { width: 56px; height: 56px; overflow: visible; }
.spot * , .illo * { transform-box: fill-box; }
.fili__body, .fili__paper, .fili__eyes, .spot__lens, .spot__top, .gear-a, .gear-b, .spot__sprout, .spark, .drop, .c, .i-qmark, .fili-jump { transform-origin: center; }
.spot__sprout { transform-origin: 50% 100%; }
.file .spot, .card .spot { margin-bottom: 2px; }
.file .spot *, .card .spot * { transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.brand img { transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }

@media (prefers-reduced-motion: no-preference) {
  .fili__body, .fili-pose__bob { animation: fili-bob 3.2s ease-in-out infinite; }
  .fili__eyes { animation: fili-blink 4.6s infinite; }
  .fili__eyes--look { animation: fili-look 3.4s ease-in-out infinite; }
  .fili__paper { animation: fili-peek 2.6s ease-in-out infinite alternate; }
  .spark { animation: twinkle 2.4s ease-in-out infinite alternate; }
  .spark.s2 { animation-delay: .8s; } .spark.s3 { animation-delay: 1.6s; }
  .drop { opacity: 0; animation: drop-fall 4s cubic-bezier(.55, 0, .7, .4) infinite; }
  .drop.d2 { animation-delay: .8s; } .drop.d3 { animation-delay: 1.6s; } .drop.d4 { animation-delay: 2.4s; }
  .drop.leak { animation: drop-leak 4s ease-in infinite 3.2s; }
  .leak-trail { animation: march 1.2s linear infinite; }
  .tick { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tick-draw 6s ease-out infinite; }
  .tick.t2 { animation-delay: .5s; } .tick.t3 { animation-delay: 1s; }
  .i-qmark { animation: float-q 2.8s ease-in-out infinite; } .q2 { animation-delay: .6s; } .q3 { animation-delay: 1.2s; }
  .c { animation: confetti 2.6s ease-in infinite; } .c2 { animation-delay: .3s; } .c3 { animation-delay: .7s; } .c4 { animation-delay: .2s; } .c5 { animation-delay: .9s; } .c6 { animation-delay: 1.2s; } .c7 { animation-delay: .5s; }
  .fili-jump > .fili { animation: fili-jump 1.3s cubic-bezier(.34, 1.56, .64, 1) infinite; transform-box: fill-box; }
  .file:hover .spot__lens, .card:hover .spot__lens { transform: translate(-6px, -5px) rotate(-12deg); }
  .file:hover .spot__top, .card:hover .spot__top { transform: translateY(-5px) rotate(-4deg); }
  .file:hover .gear-a, .card:hover .gear-a { transform: rotate(90deg); }
  .file:hover .gear-b, .card:hover .gear-b { transform: rotate(-120deg); }
  .file:hover .spot__sprout, .card:hover .spot__sprout { transform: rotate(-8deg) scale(1.08); }
  .brand:hover img { transform: rotate(-8deg) scale(1.06); }
  .file { transition: transform .25s ease, border-color .2s ease; }
  .file:hover { transform: translateY(-3px); }
  .steps li:not(:last-child)::after { animation: march-x 1.6s linear infinite; }
}
@keyframes fili-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes fili-blink { 0%, 90%, 100% { transform: scaleY(1); } 93% { transform: scaleY(.1); } 96% { transform: scaleY(1); } }
@keyframes fili-look { 0%, 100% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }
@keyframes fili-peek { from { transform: translateY(2px); } to { transform: translateY(-5px); } }
@keyframes twinkle { from { transform: scale(.75) rotate(0); opacity: .6; } to { transform: scale(1.15) rotate(20deg); opacity: 1; } }
@keyframes drop-fall { 0% { transform: translateY(0); opacity: 0; } 8% { opacity: 1; } 78% { transform: translateY(262px); opacity: 1; } 90% { transform: translateY(282px) scale(.6); opacity: 0; } 100% { opacity: 0; } }
@keyframes drop-leak { 0% { transform: translate(0, 0); opacity: 0; } 8% { opacity: 1; } 42% { transform: translate(0, 160px); } 70% { transform: translate(96px, 206px); opacity: 1; } 84% { transform: translate(100px, 214px); opacity: 0; } 100% { opacity: 0; } }
@keyframes march { to { stroke-dashoffset: -20; } }
@keyframes tick-draw { 0%, 8% { stroke-dashoffset: 1; } 22%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@keyframes float-q { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-8px) rotate(6deg); } }
@keyframes confetti { 0% { transform: translateY(-10px) rotate(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(120px) rotate(260deg); opacity: 0; } }
@keyframes fili-jump { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-14px); } }
@keyframes march-x { to { background-position: 28px 0; } }

/* Gentle reveal as sections scroll in (only where the browser supports scroll-driven animation) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise both linear; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}
@keyframes rise { from { transform: translateY(32px); } to { transform: none; } }

/* Hero layout with illustration */
.hero__art { position: relative; min-width: 0; }
.funnel-card--inline { box-shadow: none; }
.pains-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.pains-wrap .pains { grid-template-columns: 1fr; }
@media (max-width: 900px) { .pains-wrap { grid-template-columns: 1fr; } }
.illo-center { display: grid; justify-items: center; gap: 8px; }

/* ---------- Checklist (web + PDF) ---------- */
.checklist-brand { display: flex; align-items: center; gap: 10px; font: 750 1.1rem var(--font-display); }
.checklist-doc h1 { font-size: var(--step-4); }
.checklist { display: grid; gap: 18px; }
.checklist__stage { border: 1px solid var(--line); border-radius: 0 var(--radius) var(--radius) var(--radius); padding: 18px 20px; margin: 0; background: var(--surface); break-inside: avoid; }
.checklist__stage legend { font: 700 1.3rem var(--font-display); padding: 0 8px; display: flex; align-items: center; gap: 10px; }
.checklist__num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--rose); color: var(--plum); font-size: .95rem; }
.checklist__stage ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.checklist__stage label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.checklist__stage input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--rose-deep); }
.checklist__score { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-weight: 650; font-variant-numeric: tabular-nums; }
.checklist__score span { color: var(--muted); font-weight: 500; }
.checklist__total { font: 750 var(--step-2) var(--font-display); font-variant-numeric: tabular-nums; }
.checklist__key { padding-left: 1.2em; }
.checklist-page .wa-float { display: none; }
@media print {
  @page { size: A4; margin: 14mm; }
  .checklist-doc { padding: 0 !important; }
  .checklist__stage { padding: 10px 14px; }
  .checklist__stage ul { gap: 4px; }
  .checklist__stage input { appearance: none; -webkit-appearance: none; border: 1.5px solid #2A1C22; border-radius: 4px; width: 15px; height: 15px; }
  .checklist__score output, .checklist__score span, .checklist__total output { color: transparent; border-bottom: 1px solid #2A1C22; display: inline-block; min-width: 26px; }
  .checklist__score span { display: none; }
  .callout { break-inside: avoid; }
  .lede { font-size: 1rem; }
  .skip-link { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .btn:hover { transform: none; }
}
@media print {
  .site-header, .site-footer, .wa-float, .mobile-nav { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Illustration placement */
.thanks-art { padding-top: clamp(32px, 5vw, 56px); justify-items: start; }
.thanks-art .illo { max-width: 180px; }
.magnet__art .illo { max-width: 140px; margin: 0; }
.illo--lost { margin: 0 0 8px -12px; }
.funnel-card .funnel-card__note { margin-top: 14px; }

/* Cookie choice banner */
.consent { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-inline: auto;
  display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; padding: 18px 20px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(42, 28, 34, .18); }
.consent[hidden] { display: none; }
.consent__fili { width: 64px; height: auto; grid-row: span 2; align-self: start; overflow: visible; }
.consent__text p { margin: 0; font-size: .95rem; line-height: 1.5; }
.consent__text .consent__title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
@media (max-width: 480px) { .consent { grid-template-columns: 1fr; } .consent__fili { width: 52px; grid-row: auto; } .consent__actions .btn { flex: 1; } }
@media print { .consent { display: none !important; } }

/* Pop-up forms */
.popup { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 28px 28px 24px;
  border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px rgba(42, 28, 34, .28); }
.popup::backdrop { background: rgba(42, 28, 34, .5); }
.popup h2 { font-size: 1.6rem; line-height: 1.15; margin: 4px 0 8px; }
.popup .eyebrow { margin: 0; }
.popup__lede { margin: 0 0 16px; color: var(--muted); }
.popup__art { width: 110px; margin: -4px 0 6px; }
.popup__close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.popup__close:hover { background: var(--surface-2); }
.popup .form { gap: 14px; }
.popup .form-grid { gap: 14px; }
.popup textarea { min-height: 84px; }
@media (max-width: 560px) {
  .popup { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 20px 20px 0 0; padding: 22px 18px 18px; max-height: 88dvh; }
  .popup__art { width: 80px; }
  .popup h2 { font-size: 1.35rem; }
  .popup .form-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .popup[open] { animation: popup-in .35s cubic-bezier(.34, 1.56, .64, 1); }
}
@keyframes popup-in { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@media print { .popup { display: none !important; } }

/* Free tools for sellers */
.magnet-art { width: min(260px, 70%); margin: 0 auto 8px; }
.hero--quiz .magnet-art { width: min(320px, 80%); }

/* Leaky shop quiz */
.quiz { display: grid; gap: 22px; }
.quiz__progress { position: sticky; top: 0; z-index: 5; height: 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.quiz__bar { display: block; height: 100%; width: 0; background: var(--rose); transition: width .3s ease; }
.quiz__count { margin: -12px 0 0; font-size: .9rem; color: var(--muted); }
.quiz__stage { display: grid; gap: 14px; }
.quiz__stage-name { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; font: 700 1.25rem var(--font-display); }
.quiz__q { margin: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.quiz__q.is-missing { border-color: var(--error); box-shadow: 0 0 0 2px color-mix(in srgb, var(--error) 25%, transparent); }
.quiz__q legend { float: left; width: 100%; padding: 0; margin-bottom: 12px; font-weight: 650; line-height: 1.45; }
.quiz__opts { clear: both; display: flex; flex-wrap: wrap; gap: 10px; }
.quiz__opt { position: relative; }
.quiz__opt input { position: absolute; opacity: 0; inset: 0; }
.quiz__opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface-2); font-weight: 600; cursor: pointer; }
.quiz__opt input:checked + span { background: var(--rose); border-color: var(--rose); color: var(--plum); }
.quiz__opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.quiz__error { margin: 0; color: var(--error); font-weight: 600; }
.quiz-result { display: grid; gap: 14px; outline: none; }
.quiz-result__head { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 24px; border-radius: 20px; background: var(--band); color: var(--on-band); }
.quiz-result__head .eyebrow { color: var(--rose); margin: 0; }
.quiz-result__head h2 { margin: 4px 0 6px; color: var(--on-band); }
.quiz-result__head p { margin: 0; color: var(--band-muted); }
.quiz-result__score { display: grid; place-items: center; width: 132px; height: 132px; flex: 0 0 132px; border-radius: 50%; background: var(--rose); color: var(--plum); text-align: center; }
.quiz-result__score b { font: 800 3rem/1 var(--font-display); }
.quiz-result__score span { font-weight: 700; margin-top: -26px; }
.quiz-stages { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.quiz-stage { display: grid; grid-template-columns: 140px 1fr 48px; align-items: center; gap: 12px; }
.quiz-stage__name { font-weight: 650; }
.quiz-stage__meter { height: 12px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.quiz-stage__fill { display: block; height: 100%; border-radius: 99px; background: var(--rose); }
.quiz-stage.is-low .quiz-stage__fill { background: var(--error); }
.quiz-stage.is-good .quiz-stage__fill { background: var(--success); }
.quiz-stage__pct { text-align: right; font-weight: 700; }
.quiz-fixes { display: grid; gap: 10px; padding-left: 1.3em; margin: 0; }
.quiz-result__capture { margin-top: 10px; }
@media (max-width: 520px) { .quiz-stage { grid-template-columns: 1fr 44px; } .quiz-stage__meter { grid-column: 1 / -1; grid-row: 2; } .quiz-result__score { width: 108px; height: 108px; flex-basis: 108px; } }
button.text-link { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 650; color: var(--link); }
.byline { display: inline-flex; align-items: center; gap: 8px; }
.byline img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.inline-cta { margin: 28px 0; padding: 20px 22px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.inline-cta p { margin: 0 0 12px; } .inline-cta p:last-child { margin: 0; }
.more-detail { border: 1px dashed var(--line); border-radius: var(--radius); padding: 12px 16px; }
.more-detail summary { cursor: pointer; font-weight: 650; color: var(--link); }
.more-detail__body { display: grid; gap: 18px; margin-top: 16px; }
.mb-l { margin-bottom: 24px; }
.quiz[hidden], .quiz-result[hidden] { display: none; }

/* ---------- Ask Fili (guided assistant) ---------- */
.fili { position: fixed; z-index: 45; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); font-family: var(--font-body); }
.fili-launch { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 6px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--plum); color: #fff; font: 650 1rem/1 var(--font-body); box-shadow: 0 10px 28px rgba(42, 28, 34, .28); transition: transform .15s ease; }
.fili-launch:hover { transform: translateY(-2px); }
.fili-launch:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }
.fili-launch__face { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blush); }
.fili-launch__face svg { width: 34px; height: 28px; }
.fili.is-open .fili-launch__label::after { content: " ×"; }
.fili-panel { position: absolute; right: 0; bottom: calc(100% + 12px); width: min(380px, calc(100vw - 32px)); max-height: min(600px, calc(100dvh - 110px));
  display: flex; flex-direction: column; overflow: hidden; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 18px 48px rgba(42, 28, 34, .25); animation: fili-in .18s ease-out; }
.fili-panel[hidden] { display: none; }
@keyframes fili-in { from { opacity: 0; transform: translateY(8px); } }
.fili-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--plum); color: #fff; }
.fili-head__face { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--blush); flex: none; }
.fili-head__face svg { width: 32px; height: 26px; }
.fili-head__name { margin: 0; font: 700 1.05rem/1.2 var(--font-display); }
.fili-head__sub { margin: 2px 0 0; font-size: .8rem; color: #E9D3DC; }
.fili-close { margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.fili-close:hover, .fili-close:focus-visible { background: rgba(255, 255, 255, .12); }
.fili-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); overscroll-behavior: contain; }
.fili-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: .95rem; line-height: 1.45; }
.fili-msg--bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.fili-msg--me { align-self: flex-end; background: var(--rose-deep); color: #fff; border-bottom-right-radius: 4px; }
.fili-msg.is-typing { display: inline-flex; gap: 4px; padding: 14px; }
.fili-msg.is-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--mauve); animation: fili-dot 1s infinite ease-in-out; }
.fili-msg.is-typing span:nth-child(2) { animation-delay: .15s; }
.fili-msg.is-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes fili-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.fili-choices { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.fili-choices.is-done { display: none; }
.fili-chip { display: inline-block; padding: 8px 12px; border: 1.5px solid var(--rose); border-radius: 999px; background: var(--surface); color: var(--ink);
  font: 600 .88rem/1.25 var(--font-body); text-align: left; text-decoration: none; cursor: pointer; }
.fili-chip:hover, .fili-chip:focus-visible { background: var(--blush); outline: none; border-color: var(--rose-deep); }
.fili-chip.is-primary { background: var(--plum); border-color: var(--plum); color: #fff; }
.fili-chip.is-primary:hover, .fili-chip.is-primary:focus-visible { background: var(--plum-2); }
.fili-chip--link::after { content: " →"; }
.fili-chip--ghost { border-style: dashed; border-color: var(--line); color: var(--muted); }
.fili-form { display: grid; gap: 6px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.fili-form label { font-size: .85rem; font-weight: 650; }
.fili-form input, .fili-form textarea { width: 100%; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: .95rem; background: var(--bg); color: var(--ink); }
.fili-form input:focus, .fili-form textarea:focus { outline: 2px solid var(--rose-deep); outline-offset: 1px; }
.fili-trap { position: absolute; left: -9999px; }
.fili-err { margin: 0; color: var(--error); font-size: .85rem; }
.fili-err[hidden] { display: none; }
.fili-small { margin: 2px 0; font-size: .78rem; color: var(--muted); }
.fili-send { margin-top: 4px; padding: 11px; border: 0; border-radius: 999px; background: var(--rose); color: var(--plum); font: 700 .95rem var(--font-body); cursor: pointer; }
.fili-send:disabled { opacity: .7; cursor: progress; }
.fili-foot { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.fili-restart { border: 0; background: none; color: var(--link); font: 600 .85rem var(--font-body); cursor: pointer; padding: 6px 0; }
.fili-foot__link { font-size: .85rem; color: var(--muted); }
@media (max-width: 700px) {
  .fili.is-raised { bottom: 190px; }
  .fili-launch__label { display: none; }
  .fili-launch { padding: 6px; }
}
@media print { .fili { display: none; } }
@media (prefers-reduced-motion: reduce) { .fili-panel, .fili-msg.is-typing span { animation: none; } }

/* Homepage "How we work" card (brand art in place of a founder photo) */
.founder__photo--fili { display: grid; place-items: center; padding: 12%; background: var(--blush); border: 1px solid var(--line); }
.founder__photo--fili::before { content: "Our files"; }
.founder__photo--fili svg { width: 100%; height: auto; }

/* ---------- Free tool previews (device frame + tab strip) ---------- */
.laptop { max-width: 980px; margin: 0 auto clamp(28px, 5vw, 48px); }
.laptop__screen { padding: 2% 2% 2.4%; background: var(--plum); border-radius: 18px 18px 0 0; box-shadow: 0 18px 40px rgba(42, 28, 34, .18); }
.laptop__screen img { display: block; width: 100%; height: auto; border-radius: 4px; }
.laptop__base { position: relative; height: clamp(10px, 1.6vw, 16px); margin: 0 -5%; border-radius: 0 0 16px 16px; background: linear-gradient(#E3CFD7, #C9B1BB); }
.laptop__base::after { content: ""; position: absolute; left: 50%; top: 0; width: 14%; height: 45%; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #B9A0AB; }
.laptop figcaption { margin-top: 14px; text-align: center; color: var(--muted); font-size: var(--step--1); }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 28px); padding: 0; margin: 0 0 clamp(24px, 4vw, 40px); list-style: none; }
.shots figure { margin: 0; height: 100%; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.shots img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: left top; border-bottom: 1px solid var(--line); }
.shots figcaption { padding: 14px 18px 18px; color: var(--muted); font-size: var(--step--1); }
.shots figcaption strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: var(--step-0); }
@media (max-width: 640px) { .shots { grid-template-columns: 1fr; } .laptop__base { margin: 0 -3%; } }
.shots + p { margin-top: clamp(24px, 4vw, 40px); }
.shots__zoom { display: block; cursor: zoom-in; }
.laptop--narrow { max-width: 760px; }
.shots.shots--wide { grid-template-columns: 1fr; max-width: 980px; margin-inline: auto; }
.shots--wide img { aspect-ratio: auto; object-fit: initial; }
.footer-social { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; margin: 0; list-style: none; font-weight: 600; }

/* ---------- Free tools hub ---------- */
.tools-head { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 32px; align-items: center; }
.tools-head__art svg { width: 100%; height: auto; }
@media (max-width: 760px) { .tools-head { grid-template-columns: 1fr; } .tools-head__art { display: none; } }
.tool-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.tool-filter__btn { padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 650 .95rem var(--font-body); cursor: pointer; }
.tool-filter__btn:hover { border-color: var(--rose); }
.tool-filter__btn[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
.tool-filter__btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.tools { --cols: 4; }
@media (max-width: 1100px) { .tools { --cols: 2; } }
@media (max-width: 560px) { .tools { --cols: 1; } }
.tool[hidden] { display: none; }
.tool__art { width: 120px; height: 96px; }
.tool__art svg { width: 100%; height: 100%; }
.tool__for { font-size: var(--step--1); font-weight: 650; color: var(--rose-deep) !important; }
.dfy { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.dfy__row { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 2fr) auto auto; gap: 8px 18px; align-items: center; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.dfy__from { font-weight: 650; color: var(--muted); }
.dfy__arrow { color: var(--rose); font-weight: 700; }
.dfy__to b { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.dfy__to span { color: var(--muted); font-size: var(--step--1); }
.dfy__price { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.dfy__price small { display: block; font: 600 .72rem var(--font-body); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 820px) { .dfy__row { grid-template-columns: 1fr auto; } .dfy__arrow { display: none; } .dfy__from { grid-column: 1 / -1; font-size: var(--step--1); } .dfy__to { grid-column: 1 / -1; } }

/* Cross-sell on tool pages */
.tool-cross { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 32px); align-items: start; }
@media (max-width: 760px) { .tool-cross { grid-template-columns: 1fr; } }
.tool-cross__dfy { display: grid; gap: 10px; padding: 26px; border-radius: var(--radius); background: var(--plum); color: var(--blush); }
.tool-cross__dfy h2 { color: #fff; font-size: var(--step-2); }
.tool-cross__dfy p { color: var(--band-muted); }
.tool-cross__dfy .price-line { font-family: var(--font-display); font-weight: 700; color: var(--rose); font-size: 1.15rem; }
.tool-cross__more h2 { font-size: var(--step-2); margin-bottom: 12px; }
.tool-mini { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.tool-mini a { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; }
.tool-mini a:hover { border-color: var(--rose); }
.tool-mini svg { width: 56px; height: 46px; }
.tool-mini b { display: block; }
.tool-mini span span { color: var(--muted); font-size: var(--step--1); }
.quiz-rec { display: grid; gap: 6px; margin-top: 28px; padding: 22px 24px; border: 1.5px solid var(--rose); border-radius: var(--radius); background: var(--surface-2); }
.quiz-rec[hidden] { display: none; }
.quiz-rec__price { font-family: var(--font-display); font-weight: 700; color: var(--rose-deep) !important; }

/* ---- Blog folders and files ---- */
.folders { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 14px 0 0; }
@media (max-width: 960px) { .folders { --cols: 2; } }
@media (max-width: 560px) { .folders { --cols: 1; } }
.folder-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.folder-card:hover { border-color: var(--rose); }
.folder-card .folder-ico { color: var(--rose-deep); }
.folder-card h3 { font-size: 1.2rem; }
.folder-card h3 a { color: inherit; text-decoration: none; }
.folder-card h3 a::after { content: ""; position: absolute; inset: 0; }
.folder-card p { color: var(--muted); }
.folder-path { font: 600 .95rem ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--muted); margin-bottom: 18px; }
.folder-path span { margin-left: 10px; font-weight: 400; }
.blog-tools { display: grid; gap: 16px; margin: 14px 0 22px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.blog-tools[hidden] { display: none; }
.blog-tools__row { display: grid; grid-template-columns: minmax(0, 2fr) repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
@media (max-width: 640px) { .blog-tools__row { grid-template-columns: 1fr; } }
.blog-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.blog-tags__label { font-weight: 650; font-size: .95rem; margin-right: 4px; }
.blog-tag { padding: 6px 12px; font-size: .88rem; text-transform: capitalize; }
.blog-tag__n { opacity: .7; font-weight: 500; }
.blog-status { color: var(--muted); font-size: .95rem; margin: 0; }
.blog-reset { background: none; border: 0; padding: 0 0 0 8px; color: var(--link); font: 650 .95rem var(--font-body); text-decoration: underline; cursor: pointer; }
.blog-empty { padding: 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.file-list { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
.file-list > li[hidden] { display: none; }
.file-row { position: relative; display: flex; gap: 16px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.file-row:hover { border-color: var(--rose); }
.file-row .file-ico { flex: none; margin-top: 4px; color: var(--mauve-deep); }
.file-row__body { display: grid; gap: 6px; min-width: 0; }
.file-row h2 { font-size: 1.2rem; }
.file-row h2 a { color: inherit; text-decoration: none; }
.file-row h2 a::after { content: ""; position: absolute; inset: 0; }
.file-row p { color: var(--muted); margin: 0; }
.file-row__name { font: 500 .82rem ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.chip--folder { position: relative; z-index: 1; text-decoration: none; }
.chip--folder:hover { border-color: var(--rose); }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 10px 0 0; }
.post-tags a { position: relative; z-index: 1; text-decoration: none; text-transform: capitalize; }
.post-tags a:hover { border-color: var(--rose); }

/* ---- Blog: folder look (tabbed cards, Fili art, paper rows) ---- */
.page-head--art > .wrap { grid-template-columns: minmax(0, 1fr) minmax(200px, 300px); align-items: center; gap: clamp(24px, 5vw, 64px); }
.page-head--art .stack { display: grid; gap: 18px; }
@media (max-width: 760px) { .page-head--art > .wrap { grid-template-columns: 1fr; } .page-head--art .folder-art { max-width: 240px; } }
.folder-art { position: relative; display: grid; place-items: center; aspect-ratio: 5 / 4; padding: 10%; margin-top: 24px; background: var(--blush); border: 1px solid var(--line); border-radius: 0 20px 20px 20px; }
.folder-art::before { content: attr(data-tab); position: absolute; left: -1px; top: -25px; height: 25px; padding: 4px 12px 0; border-radius: 10px 10px 0 0; background: var(--plum); color: var(--rose); font-size: .74rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.folder-art svg { width: 100%; height: auto; }
.folders .folder { padding-top: 22px; }
.folder__art { position: relative; display: grid; place-items: center; height: 132px; margin-bottom: 4px; border-radius: 10px; background: var(--blush); overflow: hidden; }
.folder__art svg { width: auto; height: 112px; position: relative; z-index: 1; }
.arrow-link { font-weight: 650; font-size: .95rem; color: var(--link); }
.arrow-link::after { content: " \2192"; display: inline-block; }
.folder:has(a.stretched:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.file-row { border-radius: 0 var(--radius) var(--radius) var(--radius); overflow: hidden; }
.file-row::after { content: ""; position: absolute; top: 0; right: 0; width: 26px; height: 26px; background: linear-gradient(225deg, var(--bg) 50%, var(--line) 50%); border-bottom-left-radius: 8px; }
.blog-empty { display: grid; justify-items: center; gap: 6px; }
.blog-empty[hidden] { display: none; }
.blog-empty__fili { width: 120px; }
@media (prefers-reduced-motion: no-preference) {
  .folder:hover .folder__art svg { transform: translateY(-4px) scale(1.06); }
  .folder__art svg { transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
  .file-row { transition: transform .25s ease, border-color .2s ease; }
  .file-row:hover { transform: translateX(4px); }
  .folder-art { animation: rise-in .6s ease both; }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.folder h3 a { color: inherit; text-decoration: none; }
.folder:hover h3 a { color: var(--link); }

/* Paper stack: one sheet per post (up to five), fanning out on hover */
.folder__papers { position: absolute; inset: 0; }
.fp { position: absolute; left: 50%; bottom: 6px; width: 54px; height: 76px; margin-left: -27px; border-radius: 5px; background: var(--surface); border: 1px solid var(--line); transform-origin: 50% 100%; box-shadow: 0 1px 2px rgba(42, 28, 34, .08); }
.fp::before, .fp::after { content: ""; position: absolute; left: 9px; height: 3px; border-radius: 2px; background: var(--line); }
.fp::before { top: 14px; width: 34px; }
.fp::after { top: 24px; width: 26px; }
.folder__papers--n1 .fp:nth-child(1) { transform: translateX(0.0px) rotate(0.0deg); }
.folder__papers--n2 .fp:nth-child(1) { transform: translateX(-6.5px) rotate(-4.0deg); }
.folder__papers--n2 .fp:nth-child(2) { transform: translateX(6.5px) rotate(4.0deg); }
.folder__papers--n3 .fp:nth-child(1) { transform: translateX(-13.0px) rotate(-8.0deg); }
.folder__papers--n3 .fp:nth-child(2) { transform: translateX(0.0px) rotate(0.0deg); }
.folder__papers--n3 .fp:nth-child(3) { transform: translateX(13.0px) rotate(8.0deg); }
.folder__papers--n4 .fp:nth-child(1) { transform: translateX(-19.5px) rotate(-12.0deg); }
.folder__papers--n4 .fp:nth-child(2) { transform: translateX(-6.5px) rotate(-4.0deg); }
.folder__papers--n4 .fp:nth-child(3) { transform: translateX(6.5px) rotate(4.0deg); }
.folder__papers--n4 .fp:nth-child(4) { transform: translateX(19.5px) rotate(12.0deg); }
.folder__papers--n5 .fp:nth-child(1) { transform: translateX(-26.0px) rotate(-16.0deg); }
.folder__papers--n5 .fp:nth-child(2) { transform: translateX(-13.0px) rotate(-8.0deg); }
.folder__papers--n5 .fp:nth-child(3) { transform: translateX(0.0px) rotate(0.0deg); }
.folder__papers--n5 .fp:nth-child(4) { transform: translateX(13.0px) rotate(8.0deg); }
.folder__papers--n5 .fp:nth-child(5) { transform: translateX(26.0px) rotate(16.0deg); }
@media (prefers-reduced-motion: no-preference) {
  .fp { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
  .folder:hover .folder__papers--n1 .fp:nth-child(1) { transform: translateX(0.0px) translateY(-8px) rotate(0.0deg); }
  .folder:hover .folder__papers--n2 .fp:nth-child(1) { transform: translateX(-13.0px) translateY(-8px) rotate(-8.5deg); }
  .folder:hover .folder__papers--n2 .fp:nth-child(2) { transform: translateX(13.0px) translateY(-8px) rotate(8.5deg); }
  .folder:hover .folder__papers--n3 .fp:nth-child(1) { transform: translateX(-26.0px) translateY(-8px) rotate(-17.0deg); }
  .folder:hover .folder__papers--n3 .fp:nth-child(2) { transform: translateX(0.0px) translateY(-8px) rotate(0.0deg); }
  .folder:hover .folder__papers--n3 .fp:nth-child(3) { transform: translateX(26.0px) translateY(-8px) rotate(17.0deg); }
  .folder:hover .folder__papers--n4 .fp:nth-child(1) { transform: translateX(-39.0px) translateY(-8px) rotate(-25.5deg); }
  .folder:hover .folder__papers--n4 .fp:nth-child(2) { transform: translateX(-13.0px) translateY(-8px) rotate(-8.5deg); }
  .folder:hover .folder__papers--n4 .fp:nth-child(3) { transform: translateX(13.0px) translateY(-8px) rotate(8.5deg); }
  .folder:hover .folder__papers--n4 .fp:nth-child(4) { transform: translateX(39.0px) translateY(-8px) rotate(25.5deg); }
  .folder:hover .folder__papers--n5 .fp:nth-child(1) { transform: translateX(-52.0px) translateY(-8px) rotate(-34.0deg); }
  .folder:hover .folder__papers--n5 .fp:nth-child(2) { transform: translateX(-26.0px) translateY(-8px) rotate(-17.0deg); }
  .folder:hover .folder__papers--n5 .fp:nth-child(3) { transform: translateX(0.0px) translateY(-8px) rotate(0.0deg); }
  .folder:hover .folder__papers--n5 .fp:nth-child(4) { transform: translateX(26.0px) translateY(-8px) rotate(17.0deg); }
  .folder:hover .folder__papers--n5 .fp:nth-child(5) { transform: translateX(52.0px) translateY(-8px) rotate(34.0deg); }
}
/* Post illustrations */
.file-row__art { flex: none; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 12px; background: var(--blush); }
.file-row__art svg { width: 70%; height: auto; }
.file-row__art .fili-pose { width: 78%; }
@media (max-width: 560px) { .file-row { gap: 12px; padding: 16px; } .file-row__art { width: 60px; height: 60px; border-radius: 10px; } }
@media (prefers-reduced-motion: no-preference) {
  .file-row__art svg { transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
  .file-row:hover .file-row__art svg { transform: scale(1.1) rotate(-3deg); }
  .post-illo .pi-a { transform-box: fill-box; transform-origin: center; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
  .file-row:hover .post-illo .pi-a { transform: translateY(-3px) rotate(12deg) scale(1.08); }
}

/* ---- Back to top ---- */
.to-top { position: fixed; z-index: 44; left: max(16px, env(safe-area-inset-left, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--plum); color: var(--rose); box-shadow: var(--shadow); cursor: pointer; opacity: 0; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease, background .2s ease; }
.to-top[hidden] { display: none; }
.to-top.is-on { opacity: 1; transform: none; }
.to-top:hover { background: var(--rose-deep); color: #fff; }
.to-top:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { .to-top:hover svg { animation: nudge-up .6s ease infinite alternate; } html { scroll-behavior: auto; } }
@keyframes nudge-up { to { transform: translateY(-3px); } }
@media print { .to-top { display: none; } }

/* ---- Share this post ---- */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 36px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.share__label { margin: 0; font-weight: 700; }
.share__list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.share__list li[hidden] { display: none; }
.share__btn { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 650 .92rem var(--font-body); text-decoration: none; cursor: pointer; }
.share__btn:hover { border-color: var(--rose); color: var(--link); }
.share__btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media print { .share { display: none; } }
.post-faq { margin-top: 40px; }
.post-faq h2 { margin-bottom: 14px; }
.tool-updated { margin-top: 18px; font-size: .9rem; }
.credit { margin-top: 22px; }
.credit__label { display: block; margin-bottom: 8px; font-weight: 700; }
.credit__row { display: flex; flex-wrap: wrap; gap: 10px; }
.credit__box { flex: 1 1 280px; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: .88rem ui-monospace, SFMono-Regular, Menlo, monospace; }
@media print { .credit { display: none; } }
.footer-base { padding-bottom: 64px; }
.to-top { box-shadow: 0 0 0 2px var(--rose), var(--shadow); }

.quiz__profile { margin-bottom: 8px; }
.quiz__opts--select { gap: 16px; }
.quiz__opts--select .field { flex: 1 1 220px; margin: 0; }
.quiz__opts--select .field span { display: block; margin-bottom: 6px; font-weight: 600; font-size: .95rem; }
.quiz__opts--select select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper, #fff); font: inherit; color: inherit; }
.quiz-read { margin: 20px 0; padding: 14px 18px; border-left: 4px solid var(--rose); background: var(--blush); border-radius: 0 10px 10px 0; }
.quiz-read a { font-weight: 650; }

/* Free ebook landing page */
.book-cover { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 18px 40px -12px rgba(42, 28, 34, .35), 0 2px 6px rgba(42, 28, 34, .12); transform: rotate(-2deg); }
.magnet-art:has(.book-cover) { width: min(300px, 72%); }
.book-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 28px); padding: 0; margin: 0 0 clamp(24px, 4vw, 40px); list-style: none; }
.book-shots figure { margin: 0; height: 100%; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.book-shots img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.book-shots figcaption { padding: 14px 18px 18px; color: var(--muted); font-size: var(--step--1); }
.book-shots figcaption strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: var(--step-0); }
@media (max-width: 720px) { .book-shots { grid-template-columns: 1fr; } }

/* ---------- Homepage motion upgrade ---------- */
/* Live funnel (hero) */
.live { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px 24px 20px; box-shadow: var(--shadow); max-width: 480px; margin-inline: auto; margin-top: 44px; }
.live__fili { position: absolute; top: -52px; right: 22px; width: 92px; height: auto; overflow: visible; pointer-events: none; }
.live__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.live__title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.live__dot { width: 10px; height: 10px; border-radius: 50%; background: #2E9B6B; box-shadow: 0 0 0 0 rgba(46, 155, 107, .5); }
.live__switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 18px; }
.live__switch button { font: inherit; font-weight: 700; font-size: .9rem; color: var(--muted); background: transparent; border: 0; border-radius: 999px; padding: 9px 10px; cursor: pointer; min-height: 40px; transition: background .25s, color .25s, box-shadow .25s; }
.live__switch button.is-on { background: var(--plum); color: var(--blush); box-shadow: 0 2px 8px rgba(42, 28, 34, .25); }
.live__switch button:not(.is-on):hover { color: var(--ink); }
.live__stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.live__stages li { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 11px 14px; border-radius: 14px; background: var(--surface-2); overflow: hidden; isolation: isolate; font-weight: 600; font-size: .95rem; }
.live__stages li i { position: absolute; inset: 0 auto 0 0; width: var(--w, 100%); background: rgba(217, 112, 149, .28); border-radius: 14px; z-index: -1; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.live__stages li b { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-size: 1.2rem; }
.live__stages li.is-win { background: var(--rose); color: var(--plum); }
.live__stages li.is-win i { background: rgba(255, 255, 255, .35); }
.live__lost { display: flex; align-items: baseline; justify-content: space-between; margin: 16px 2px 0; padding-top: 14px; border-top: 1px dashed var(--rose-deep); color: var(--rose-deep); font-weight: 700; }
.live__lost b { font-family: var(--font-display); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.live__note { margin: 10px 0 0; font-size: .82rem; color: var(--muted); }
.live[data-mode="plugged"] .live__lost { color: var(--success); border-top-color: var(--success); }
@media (prefers-reduced-motion: no-preference) {
  .live__dot { animation: live-ping 1.8s ease-out infinite; }
  .live__stages li.is-win.is-pulse { animation: win-pop .5s ease; }
  .live__lost b { animation: lost-nudge 1.6s ease-in-out infinite; }
}
@keyframes live-ping { 0% { box-shadow: 0 0 0 0 rgba(46, 155, 107, .55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(46, 155, 107, 0); } }
@keyframes win-pop { 40% { transform: scale(1.03); } }
@keyframes lost-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(2px); } }

/* Rose band + reply-time calculator */
.section--rose { background: var(--rose); color: var(--plum); }
.section--rose .eyebrow { color: var(--plum); opacity: .75; }
.section--rose .lede { color: var(--plum); opacity: .85; }
.section--rose a { color: var(--plum); text-decoration: underline; text-underline-offset: 3px; }
.calc { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.calc__intro { display: grid; gap: 16px; }
.calc__intro h2 { font-size: clamp(2.2rem, 1.5rem + 3.4vw, 4rem); line-height: 1.04; }
.calc__card { background: var(--surface); color: var(--ink); border-radius: 24px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 22px; box-shadow: 0 24px 50px -24px rgba(42, 28, 34, .55); }
.calc__card a { color: var(--link); }
.calc__row { display: grid; gap: 10px; }
.calc__row label { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }
.calc__row output { font-family: var(--font-display); color: var(--rose-deep); font-variant-numeric: tabular-nums; }
.calc input[type="range"] { width: 100%; height: 28px; accent-color: var(--rose-deep); cursor: pointer; }
.calc select { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); min-height: 48px; }
.calc__result { background: var(--surface-2); border-radius: 16px; padding: 18px 20px; display: grid; gap: 8px; }
.calc__result p { margin: 0; }
.calc__result b { font-family: var(--font-display); font-size: 1.25em; font-variant-numeric: tabular-nums; }
.calc__gain { color: var(--rose-deep); }
.calc__gain[hidden] { display: none; }
.calc__fine { margin: 0; font-size: .82rem; color: var(--muted); }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }

/* Pinned steps */
.flow-pin__bar { display: none; }
.flow-pin.is-pinned { height: 340vh; padding-block: 0; }
.flow-pin.is-pinned .flow-pin__stick { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding-top: 72px; box-sizing: border-box; }
.flow-pin.is-pinned .flow-pin__stick > .wrap { width: 100%; }
.flow-pin.is-pinned .steps li { opacity: .28; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease; }
.flow-pin.is-pinned .steps li.is-on { opacity: 1; transform: none; }
.flow-pin.is-pinned .steps li.is-on::before { background: var(--rose); color: var(--plum); border-color: var(--rose); }
.flow-pin.is-pinned .steps li.is-now h3 { color: var(--rose); }
.flow-pin.is-pinned .steps li:not(:last-child)::after { opacity: .25; transition: opacity .45s; }
.flow-pin.is-pinned .steps li.is-on:not(:last-child)::after { opacity: .8; }
.flow-pin.is-pinned .flow-pin__bar { display: block; height: 4px; margin-top: clamp(28px, 6vh, 56px); background: var(--band-line); border-radius: 4px; overflow: hidden; }
.flow-pin__bar i { display: block; height: 100%; width: var(--p, 0%); background: var(--rose); border-radius: 4px; }

/* Small touches */
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary { isolation: isolate; overflow: hidden; }
.btn--primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .5) 50%, transparent 62%); transform: translateX(-130%); }
@media (prefers-reduced-motion: no-preference) {
  .btn--primary:hover::before { transform: translateX(130%); transition: transform .7s ease; }
  .file, .case, .post-card { transition: transform .25s ease, box-shadow .25s ease, border-color .2s; }
  .file:hover, .case:hover, .post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
}
.file:hover, .case:hover, .post-card:hover { background-image: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(217, 112, 149, .16), transparent 70%); }
.read-progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--rose); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); z-index: 70; pointer-events: none; }
.founder--big blockquote { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.7rem); line-height: 1.15; }

/* ---------- Journey: stage routing, doors ---------- */
.next-panel { display: grid; gap: 12px; }
.next-panel__lead { margin: 0; font-weight: 600; }
.next-step { display: grid; gap: 8px; }
.next-step h3 { margin: 0; }
.next-step p { margin: 0; }
.next-step__row { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.next-step__price { font-weight: 500; opacity: .85; margin-left: 6px; }
.next-step__also { font-size: .95rem; }
.stage-routes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stage-routes li { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr) auto; gap: 6px 16px; align-items: baseline; padding: 14px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stage-routes li > span { color: var(--muted); }
@media (max-width: 720px) { .stage-routes li { grid-template-columns: minmax(0, 1fr); } }
.door { display: grid; gap: 12px; align-content: start; }
.door .btn-row { margin: 0; align-items: center; }

.price__min { margin: -4px 0 8px; font-size: .9rem; color: var(--muted); }
.price__meta { display: grid; gap: 4px; }

/* ---------- Comparison tables (which-one guide, pricing credits) ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare { border-collapse: collapse; width: 100%; min-width: 620px; font-size: .97rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.compare tbody th { font-weight: 650; }
.compare tr:last-child > * { border-bottom: 0; }
.compare .yes { font-weight: 650; }
.compare .no { color: var(--muted); }
.tool__start { margin: 4px 0 0; font-size: .88rem; color: var(--deep); }

/* ---------- Homepage layout variety ---------- */
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 48px); }
.head-row .section-head { margin-bottom: 0; }
.split-faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.split-faq .section-head { position: sticky; top: 110px; margin-bottom: 0; }
@media (max-width: 900px) { .split-faq { grid-template-columns: minmax(0, 1fr); } .split-faq .section-head { position: static; } }

/* ---------- Blog deck ---------- */
.blog-deck { overflow-x: clip; }
.blog-deck .eyebrow { font-weight: 800; font-size: 1rem; letter-spacing: .16em; }
.blog-deck .section-head { margin-bottom: clamp(20px, 3vw, 32px); }
.deck__hint { text-align: center; color: var(--muted); margin: 28px 0 0; }
.deck__more { text-align: center; margin: 12px 0 0; }
.deck--on { --gap: 28px; --cw: clamp(240px, calc((100vw - 120px) / 3), 360px); display: grid; grid-template-columns: var(--cw); justify-content: center; padding: 28px 0 44px; margin: 0; }
.deck--on > .post-card { grid-area: 1 / 1; z-index: var(--z, 1); cursor: pointer; box-shadow: 0 6px 18px rgba(42, 28, 34, .12); transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 0deg)); transition: transform .6s cubic-bezier(.2, .9, .25, 1.15), box-shadow .3s ease, border-color .2s; background-image: none; }
.deck--on > .post-card:nth-child(1) { --z: 3; --r: -2deg; }
.deck--on > .post-card:nth-child(2) { --z: 2; --y: 12px; --r: 2.5deg; }
.deck--on > .post-card:nth-child(3) { --z: 1; --y: 24px; --r: -1deg; }
.deck--on[data-state="stacked"]:focus-within > .post-card:nth-child(1) { --x: -62%; --y: 10px; --r: -9deg; }
.deck--on[data-state="stacked"]:focus-within > .post-card:nth-child(2) { --x: 0; --y: -6px; --r: 0deg; }
.deck--on[data-state="stacked"]:focus-within > .post-card:nth-child(3) { --x: 62%; --y: 10px; --r: 9deg; }
@media (hover: hover) {
  .deck--on[data-state="stacked"]:hover > .post-card:nth-child(1) { --x: -62%; --y: 10px; --r: -9deg; }
  .deck--on[data-state="stacked"]:hover > .post-card:nth-child(2) { --x: 0; --y: -6px; --r: 0deg; }
  .deck--on[data-state="stacked"]:hover > .post-card:nth-child(3) { --x: 62%; --y: 10px; --r: 9deg; }
  .deck--on[data-state="stacked"]:hover > .post-card:hover { --y: -18px; z-index: 5; }
}
.deck--on[data-state="scatter"] > .post-card { transform: translate(var(--sx, 0), var(--sy, 0)) rotate(var(--sr, 0deg)); transition-duration: .36s; transition-timing-function: ease-out; }
.deck--on[data-state="spread"] > .post-card:nth-child(1) { --x: calc(-100% - var(--gap)); --y: 0px; --r: 0deg; }
.deck--on[data-state="spread"] > .post-card:nth-child(2) { --x: 0px; --y: 0px; --r: 0deg; }
.deck--on[data-state="spread"] > .post-card:nth-child(3) { --x: calc(100% + var(--gap)); --y: 0px; --r: 0deg; }
.deck--on[data-state="spread"] > .post-card:hover { --y: -8px; box-shadow: 0 14px 30px rgba(42, 28, 34, .18); }
@media (max-width: 900px) {
  .deck--on { --cw: min(360px, 100%); }
  .deck--on[data-state="spread"] { row-gap: 18px; }
  .deck--on[data-state="spread"] > .post-card { grid-area: auto; transform: none; }
  .deck--on[data-state="spread"] > .post-card:hover { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) { .deck--on > .post-card { transition: none; } }
