/* The Millennial Profit — site styles
   Brand rules: cream/white ground, charcoal text, ember for actions. Orange and gold are shapes, never text on light grounds. */
:root {
  --ember: #B83232;
  --ember-deep: #952828;
  --flame: #E87532;
  --gold: #D6A64F;
  --gold-text: #8A6420;
  --charcoal: #252525;
  --charcoal-2: #2E2E2E;
  --charcoal-3: #3A3A3A;
  --cream: #F7F2EA;
  --cream-2: #EFE7DA;
  --white: #FFFFFF;
  --ink: #252525;
  --ink-soft: #5A5550;
  --ink-on-dark: #F7F2EA;
  --soft-on-dark: #BDB4A6;
  --link-on-dark: #F28B7D;
  --line: #E4DCCF;
  --line-strong: #CFC4B3;
  --gain: #1F6B3F;
  --sans: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --serif: "DM Serif Display", Georgia, serif;
  --read: "Literata", Georgia, "Times New Roman", serif;
  --wrap: 1200px;
  --narrow: 760px;
  --r: 6px;
  --r-lg: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--ember); text-underline-offset: .2em; text-decoration-thickness: 1px; transition: color .15s; }
a:hover { color: var(--ember-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--flame); outline-offset: 3px; border-radius: 3px; }
::selection { background: rgba(232, 117, 50, .25); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1.15em; height: 1.15em; flex: none; }

.wrap { width: min(var(--wrap), 100% - 3rem); margin-inline: auto; }
.wrap.narrow { width: min(var(--narrow), 100% - 3rem); }
.pad-bottom { padding-bottom: clamp(4rem, 8vw, 7rem); }

.skip { position: absolute; left: -999px; top: .5rem; background: var(--charcoal); color: var(--white); padding: .6rem 1rem; z-index: 100; border-radius: var(--r); }
.skip:focus { left: .75rem; }

.proto-banner { background: var(--charcoal); color: var(--soft-on-dark); font-size: .82rem; padding: .5rem 0; text-align: center; }
.proto-banner p { margin: 0; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--sans); color: var(--charcoal); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6.2vw, 5.1rem); font-weight: 800; line-height: .98; letter-spacing: -.04em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); font-weight: 750; line-height: 1.05; letter-spacing: -.03em; }
h3 { font-size: 1.2rem; font-weight: 680; line-height: 1.2; letter-spacing: -.012em; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 1.55; color: var(--ink-soft); max-width: 44ch; text-wrap: pretty; }
.text-link { font-weight: 600; color: var(--ember); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .25em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 650 1rem/1 var(--sans); letter-spacing: -.005em;
  padding: .9rem 1.3rem; border-radius: var(--r); border: 1.5px solid var(--ember);
  text-decoration: none; cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s, transform .18s var(--ease), box-shadow .18s;
}
.btn-primary { background: var(--ember); color: var(--white); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 1px 2px rgba(37,37,37,.18); }
.btn-primary:hover { background: var(--ember-deep); border-color: var(--ember-deep); color: var(--white); text-decoration: none; transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px -6px rgba(184,50,50,.55); }
.btn-primary:active { transform: translateY(0); }
.btn-quiet { background: transparent; color: var(--charcoal); border-color: var(--line-strong); }
.btn-quiet:hover { border-color: var(--charcoal); color: var(--charcoal); background: var(--white); text-decoration: none; }
.btn-lg { padding: 1.05rem 1.5rem; font-size: 1.05rem; }
.btn-sm { padding: .62rem .95rem; font-size: .92rem; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 242, 234, .88); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(37,37,37,.4); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.6rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--charcoal); text-decoration: none; }
.brand:hover { color: var(--charcoal); }
.brand-mark { width: 40px; height: 40px; }
.wordmark { display: flex; flex-direction: column; font-family: var(--serif); line-height: .95; }
.wordmark em { font-style: italic; font-size: .82rem; letter-spacing: .01em; }
.wordmark span { font-size: 1.42rem; letter-spacing: -.005em; }
.site-nav { display: flex; align-items: center; gap: 1.8rem; }
.site-nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--charcoal); text-decoration: none; font-weight: 550; font-size: .98rem; padding: .3rem 0; background: linear-gradient(var(--ember), var(--ember)) 0 100% / 0 2px no-repeat; transition: background-size .25s var(--ease), color .15s; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: var(--ember); background-size: 100% 2px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--white); color: var(--charcoal); cursor: pointer; padding: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6.5rem); overflow: hidden; }
.hero::before { /* ledger paper, fading out */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(to bottom, transparent 0 39px, rgba(37,37,37,.055) 39px 40px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%); mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.hero-copy h1 { max-width: 11ch; }
.hero-copy .lede { margin-top: 1.5rem; }
.assure { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; color: var(--ink-soft); font-size: .93rem; }
.assure li { display: inline-flex; align-items: center; gap: .45rem; }
.assure .ic { color: var(--charcoal); }
.assure-stack { flex-direction: column; gap: .7rem; margin-top: 1.4rem; }

/* ---------- Freedom cost calculator (the signature element) ---------- */
.calc { background: var(--charcoal); color: var(--ink-on-dark); border-radius: var(--r-lg); padding: clamp(1.3rem, 2.5vw, 2rem); box-shadow: 0 40px 80px -40px rgba(37,37,37,.55), 0 0 0 1px rgba(255,255,255,.04) inset; }
.calc-head h2 { color: var(--ink-on-dark); font-size: clamp(1.2rem, 1.9vw, 1.45rem); letter-spacing: -.02em; margin-bottom: .35rem; }
.calc-head p { color: var(--soft-on-dark); font-size: .9rem; margin: 0 0 1.25rem; max-width: 48ch; }
.calc-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.calc .f-wide { grid-column: 1 / -1; }
.calc label { display: block; font-size: .78rem; font-weight: 550; color: var(--soft-on-dark); margin-bottom: .35rem; }
.calc .field { display: flex; align-items: center; background: var(--charcoal-2); border: 1px solid var(--charcoal-3); border-radius: var(--r); padding: 0 .7rem; transition: border-color .15s; }
.calc .field:hover { border-color: #555; }
.calc .field:focus-within { border-color: var(--flame); box-shadow: 0 0 0 3px rgba(232,117,50,.25); }
.calc .field span { color: var(--soft-on-dark); font-variant-numeric: tabular-nums; }
.calc input, .calc select { width: 100%; min-width: 0; background: transparent; border: 0; color: var(--white); font: 600 1rem/1 var(--sans); padding: .72rem .35rem; font-variant-numeric: tabular-nums; }
.calc input:focus, .calc select:focus { outline: none; }
.calc .field-split select { flex: 1.4; padding-left: 0; cursor: pointer; appearance: none; -webkit-appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23BDB4A6' stroke-width='1.6'/%3E%3C/svg%3E") right .4rem center / 11px no-repeat; margin-right: .6rem; border-right: 1px solid var(--charcoal-3); }
.calc select option { color: var(--charcoal); }
.calc .field-split input { flex: 1; }
.calc-out { margin: 1.4rem 0 .2rem; min-height: 5.4rem; }
.calc-big { margin: 0; font: 800 clamp(1.9rem, 3.6vw, 2.75rem)/1.05 var(--sans); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.calc-big [data-out="cost"] { display: inline-block; border-bottom: 4px double var(--gold); padding-bottom: .12em; }
.calc-sub { margin: .55rem 0 0; color: var(--soft-on-dark); font-size: .95rem; }
.calc-sub strong { color: var(--ink-on-dark); font-weight: 650; }
.calc-chart { width: 100%; height: auto; margin-top: .9rem; overflow: visible; }
.calc-chart text { font-family: var(--sans); font-size: 12px; fill: var(--soft-on-dark); }
.calc-chart .lbl-fi { fill: var(--gold); font-weight: 600; }
.calc-chart .lbl-gap { fill: var(--ink-on-dark); font-weight: 700; font-size: 13px; }
.calc-key { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; padding: 0; margin: .7rem 0 0; font-size: .8rem; color: var(--soft-on-dark); }
.calc-key li { display: inline-flex; align-items: center; gap: .45rem; }
.calc-key li::before { content: ""; width: 18px; height: 0; border-top: 2.5px solid; }
.calc-key .k-plan::before { border-color: var(--ink-on-dark); }
.calc-key .k-alt::before { border-color: var(--flame); }
.calc-key .k-fi::before { border-top: 2px dashed var(--gold); }
.calc-note { font-size: .78rem; color: var(--soft-on-dark); margin: .9rem 0 0; line-height: 1.5; }
.calc-note a { color: var(--link-on-dark); }
@media (prefers-reduced-motion: no-preference) {
  .calc-chart .draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.1s var(--ease) .15s forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* ---------- Sections ---------- */
.band { padding: clamp(4rem, 8vw, 7rem) 0; }
.band-white { background: var(--white); border-block: 1px solid var(--line); }
.band-ink { background: var(--charcoal); color: var(--ink-on-dark); }
.band-ink h2 { color: var(--ink-on-dark); }
.band-ink p { color: var(--soft-on-dark); }
.band-ink a { color: var(--link-on-dark); }
.split-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.split-head h2 { margin: 0; max-width: 16ch; }
.split-head p { margin: 0; color: var(--ink-soft); font-size: 1.1rem; max-width: 46ch; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.section-head h2 { margin: 0; }

/* Monthly close steps (a real sequence) */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); margin: 0; padding: 0; }
.steps li { counter-increment: step; border-top: 2px solid var(--charcoal); padding-top: 1.4rem; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 800 .95rem/1 var(--sans); color: var(--ember); letter-spacing: .02em; margin-bottom: 1.1rem; font-variant-numeric: tabular-nums; }
.steps p { color: var(--ink-soft); margin: 0; }

/* ---------- Product mock (the Dashboard tab) ---------- */
.sheet { margin: 0; background: var(--white); border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(37,37,37,.06), 0 12px 24px -12px rgba(37,37,37,.18), 0 40px 70px -40px rgba(37,37,37,.35); font-variant-numeric: tabular-nums; }
.sheet-chrome { display: flex; align-items: center; gap: 6px; padding: .55rem .8rem; background: #F3F1EE; border-bottom: 1px solid var(--line); }
.sheet-chrome span { width: 10px; height: 10px; border-radius: 50%; background: #D9D3C9; }
.sheet-chrome b { margin-left: .6rem; font-size: .74rem; font-weight: 550; color: var(--ink-soft); }
.sheet-head { display: flex; align-items: center; gap: .55rem; background: var(--charcoal); color: var(--cream); padding: .6rem .9rem; }
.sheet-head svg { width: 20px; height: 20px; }
.sheet-head b { font-size: .9rem; font-weight: 650; }
.sheet-head i { margin-left: auto; font-style: normal; font-size: .72rem; color: var(--gold); }
.sheet-body { padding: .9rem; display: grid; gap: .75rem; background: #FCFAF7; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: .55rem .65rem; }
.kpi span, .cell-label { display: block; font-size: .66rem; font-weight: 600; color: var(--ink-soft); letter-spacing: .01em; }
.kpi strong { display: block; font-size: clamp(.95rem, 1.6vw, 1.22rem); font-weight: 800; letter-spacing: -.02em; margin: .15rem 0 .1rem; color: var(--charcoal); }
.kpi em { font-style: normal; font-size: .66rem; color: var(--ink-soft); }
.kpi em.gain { color: var(--gain); font-weight: 600; }
.kpi em.bar { display: block; height: 6px; margin-top: .4rem; border-radius: 3px; background: var(--cream-2); overflow: hidden; }
.kpi em.bar i { display: block; height: 100%; background: var(--ember); border-radius: 3px; }
.sheet-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: .75rem; }
.memo { background: var(--cream); border: 1px solid var(--line); border-radius: 6px; padding: .65rem .75rem; }
.memo p { margin: .35rem 0 0; font-family: var(--read); font-size: .8rem; line-height: 1.5; color: var(--charcoal); }
.chart { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: .6rem .65rem .4rem; }
.chart svg { margin-top: .3rem; width: 100%; height: auto; }
.chart text { font: 500 8px var(--sans); fill: var(--ink-soft); }
.fc { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: .6rem .7rem .3rem; }
.fc table { width: 100%; border-collapse: collapse; margin-top: .35rem; font-size: .76rem; }
.fc th { text-align: left; font-weight: 600; color: var(--ink-soft); font-size: .66rem; padding: .25rem 0; border-bottom: 1px solid var(--line); }
.fc td { padding: .38rem 0; border-bottom: 1px solid #F1ECE3; color: var(--charcoal); }
.fc tr:last-child td { border-bottom: 0; }
.fc td:nth-child(2), .fc th:nth-child(2) { text-align: right; padding-right: 1rem; }
.fc td:last-child { width: 48%; font-weight: 650; }
.fc td b { display: inline-block; vertical-align: middle; height: 7px; width: calc(var(--w) * .55); background: var(--flame); border-radius: 4px; margin-right: .5rem; }
.sheet-tabs { display: flex; gap: 2px; overflow: hidden; background: #ECE8E2; border-top: 1px solid var(--line); padding: 0 .5rem; white-space: nowrap; }
.sheet-tabs span { font-size: .66rem; color: var(--ink-soft); padding: .45rem .6rem; }
.sheet-tabs span.on { background: var(--white); color: var(--charcoal); font-weight: 650; box-shadow: inset 0 2px 0 var(--ember); }
.sheet figcaption { font-size: .78rem; color: var(--ink-soft); padding: .6rem .9rem; border-top: 1px solid var(--line); background: var(--white); }
.sheet-compact .sheet-grid { grid-template-columns: 1fr; }
.sheet-compact .memo { display: none; }

/* Showcase */
.showcase-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.callouts { list-style: none; margin: 0; padding: 0; }
.callouts li { padding: 1.3rem 0; border-top: 1px solid var(--line-strong); }
.callouts li:last-child { border-bottom: 1px solid var(--line-strong); }
.callouts h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: .35rem; }
.callouts h3::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--flame); box-shadow: 0 0 0 4px rgba(232,117,50,.18); flex: none; }
.callouts p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* Comparison table */
.table-scroll { overflow-x: auto; border-radius: var(--r-lg); }
.compare { width: 100%; min-width: 680px; border-collapse: separate; border-spacing: 0; font-size: .98rem; }
.compare th, .compare td { text-align: left; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare thead th { font-size: .9rem; font-weight: 650; color: var(--ink-soft); border-bottom: 2px solid var(--charcoal); }
.compare tbody th { font-weight: 600; color: var(--charcoal); width: 30%; }
.compare td { color: var(--ink-soft); }
.compare td .ic { display: inline-block; vertical-align: -.2em; margin-right: .35rem; }
.compare .us { background: var(--cream); color: var(--charcoal); font-weight: 600; }
.compare thead .us { color: var(--charcoal); background: var(--cream); border-top: 3px solid var(--ember); border-radius: 10px 10px 0 0; }
.compare td.us .ic { color: var(--charcoal); }

/* Founder */
.founder-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.founder h2 { max-width: 18ch; }
.founder .portrait { width: 100%; max-width: 360px; justify-self: center; }
.founder-grid { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
.portrait { aspect-ratio: 4 / 5; border-radius: var(--r-lg); background: var(--cream-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 8 C62 28 80 40 80 62 C80 80 66 92 50 92 C34 92 20 80 20 62 C20 48 30 40 34 30 C38 42 44 46 48 46 C44 34 44 20 50 8 Z' fill='%23E4DCCF'/%3E%3C/svg%3E") center 42% / 38% no-repeat; border: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: center; padding: 1.2rem; }
.portrait span { font-size: .82rem; color: var(--ink-soft); background: var(--white); padding: .35rem .7rem; border-radius: 999px; border: 1px solid var(--line); }

/* Opt-in */
.optin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.optin h2 { max-width: 15ch; }
.optin p { max-width: 46ch; margin: 0; }
.optin-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.optin-form input[type="email"] { flex: 1 1 16rem; font: 400 1.02rem/1 var(--sans); padding: 1rem 1.1rem; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: var(--white); color: var(--ink); }
.band-ink .optin-form input[type="email"] { border-color: var(--charcoal-3); background: var(--charcoal-2); color: var(--white); }
.band-ink .optin-form input::placeholder { color: var(--soft-on-dark); }
.optin-form input:focus { outline: none; border-color: var(--flame); box-shadow: 0 0 0 3px rgba(232,117,50,.25); }
.form-msg { flex-basis: 100%; margin: .2rem 0 0 !important; font-size: .88rem; }

/* Blog cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.card a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; border-top: 2px solid var(--charcoal); padding-top: 1.2rem; }
.card-meta { font-size: .85rem; color: var(--ink-soft); margin: 0 0 .8rem; font-variant-numeric: tabular-nums; }
.card h3 { font-size: 1.35rem; letter-spacing: -.02em; transition: color .15s; }
.card p { color: var(--ink-soft); margin: 0 0 1.2rem; }
.card .text-link { margin-top: auto; }
.card a:hover h3 { color: var(--ember); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 2rem clamp(2rem, 6vw, 5rem); align-items: start; }
.faq-grid > div:first-child p { color: var(--ink-soft); }
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 0; font: 650 1.1rem/1.35 var(--sans); letter-spacing: -.01em; color: var(--charcoal); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ember); }
.faq-ic { transition: transform .25s var(--ease); color: var(--ink-soft); }
.faq details[open] .faq-ic { transform: rotate(45deg); }
.faq-a { padding: 0 2.5rem 1.3rem 0; color: var(--ink-soft); }
.faq-a p:last-child { margin: 0; }

/* ---------- Inner pages ---------- */
.page-head { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3rem); }
.page-head h1 { max-width: 14ch; }
.crumbs { margin: 0 0 1.2rem; font-size: .9rem; }
.crumbs a { color: var(--ink-soft); text-decoration: none; font-weight: 550; }
.crumbs a::before { content: "‹ "; }
.crumbs a:hover { color: var(--ember); }

/* Shop */
.shop-feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2.5rem); text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s; }
.shop-feature:hover { border-color: var(--line-strong); box-shadow: 0 24px 50px -30px rgba(37,37,37,.35); color: inherit; }
.shop-feature:hover .btn-primary { background: var(--ember-deep); border-color: var(--ember-deep); }
.shop-copy h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.shop-copy p { color: var(--ink-soft); }
.shop-copy .btn { margin-top: 1.2rem; }
.shop-next { margin-top: 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem 3rem; flex-wrap: wrap; border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2.5rem); }
.shop-next h2 { font-size: 1.35rem; margin-bottom: .3rem; }
.shop-next p { margin: 0; color: var(--ink-soft); max-width: 62ch; }

/* Prices */
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem .7rem; margin: 1.2rem 0 0; font-variant-numeric: tabular-nums; }
.price-now { font: 800 2rem/1 var(--sans); letter-spacing: -.03em; color: var(--charcoal); }
.price-lg .price-now { font-size: 2.8rem; }
.price-was { color: var(--ink-soft); font-size: 1.15rem; text-decoration-thickness: 1.5px; }
.price-label { font-size: .78rem; font-weight: 650; color: var(--ember); background: rgba(184,50,50,.08); padding: .3rem .55rem; border-radius: 999px; }
.format { color: var(--ink-soft); font-size: .93rem; margin: .45rem 0 0; }

/* Product page */
.product-hero { padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(4rem, 7vw, 6rem); }
.product-grid { display: grid; grid-template-columns: minmax(0, 1fr) 23rem; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.product-main h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); max-width: 13ch; }
.product-main .lede { margin-bottom: 2.5rem; max-width: 52ch; }
.buybox { position: sticky; top: 6rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.75rem; box-shadow: 0 30px 60px -40px rgba(37,37,37,.35); }
.buybox .price { margin-top: 0; }
.buybox .btn { margin-top: 1.4rem; }
.buybox .assure { font-size: .9rem; }
.fine { font-size: .82rem; color: var(--ink-soft); margin: 1.2rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line); line-height: 1.5; }
.checkout-note { font-size: .85rem; color: var(--ember); margin: .6rem 0 0; min-height: 0; }
.checkout-note:empty { display: none; }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; }
.features li { display: flex; gap: .8rem; align-items: flex-start; padding: 1.05rem 0; border-top: 1px solid var(--line); font-size: 1.03rem; }
.features .ic { color: var(--ember); margin-top: .15em; }
.inside { list-style: none; counter-reset: tab; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.inside li { counter-increment: tab; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 1.2rem 1.2rem 1.3rem; }
.inside li::before { content: counter(tab); display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--charcoal); color: var(--cream); font: 700 .8rem/1 var(--sans); margin-bottom: .9rem; }
.inside h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.inside p { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.closer { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.closer h2 { margin: 0; max-width: 20ch; }
.btn-on-ink { box-shadow: none; }
.closer .checkout-note { color: var(--link-on-dark); flex-basis: 100%; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.portrait-lg { position: sticky; top: 6.5rem; }
.about-grid .prose { padding-bottom: 1rem; }
.facts { margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; border-block: 1px solid var(--line-strong); padding: 1.3rem 0; }
.facts dt { font-size: .8rem; font-weight: 650; color: var(--ink-soft); margin-bottom: .3rem; }
.facts dd { margin: 0; font-weight: 600; line-height: 1.35; }

/* Blog post */
.post-head { padding: clamp(3rem, 7vw, 5.5rem) 0 2.5rem; }
.post-head h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.post-dek { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); line-height: 1.55; margin: 1.2rem 0 0; text-wrap: pretty; }
.byline { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1.1rem; margin: 2rem 0 0; padding-top: 1.3rem; border-top: 1px solid var(--line-strong); font-size: .9rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.byline svg.avatar { width: 34px; height: 34px; border-radius: 50%; }
.byline span:first-of-type { color: var(--charcoal); font-weight: 650; }
.post-cta { margin: 1rem 0 clamp(4rem, 8vw, 6rem); display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.75rem 2rem; }
.post-cta h2 { font-size: 1.4rem; margin-bottom: .3rem; }
.post-cta p { margin: 0; color: var(--ink-soft); max-width: 44ch; }

/* Long-form reading */
.prose { font-family: var(--read); font-size: 1.14rem; line-height: 1.78; color: #2B2926; padding-bottom: 3rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-family: var(--sans); font-size: 1.65rem; margin: 2.2em 0 .6em; letter-spacing: -.025em; }
.prose h3 { font-family: var(--sans); margin: 1.8em 0 .5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.25em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; padding-left: .2em; }
.prose li::marker { color: var(--ember); }
.prose strong { font-weight: 650; color: var(--charcoal); }
.prose a { color: var(--ember); }
.prose blockquote { margin: 2em 0; padding: .2em 0 .2em 1.3em; border-left: 3px solid var(--gold); color: var(--ink-soft); }
.prose table { width: 100%; border-collapse: collapse; margin: .5em 0 1.8em; font-family: var(--sans); font-size: .98rem; font-variant-numeric: tabular-nums; background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.prose th, .prose td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
.prose th { background: var(--cream); font-weight: 650; border-bottom: 2px solid var(--charcoal); }
.prose td:last-child, .prose th:last-child { text-align: right; }
.prose code { font-size: .9em; background: var(--cream-2); padding: .1em .35em; border-radius: 4px; }
.prose hr { border: 0; border-top: 1px solid var(--line-strong); margin: 2.5em 0; }
.prose-product { padding-bottom: 0; }
.prose-product h2 { font-size: 1.45rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: var(--soft-on-dark); padding: clamp(3.5rem, 6vw, 5rem) 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .7fr) minmax(0, .8fr) minmax(0, .9fr); gap: 2.5rem; padding-bottom: 2.5rem; }
.site-footer h2 { font-size: .82rem; font-weight: 650; color: var(--cream); letter-spacing: .01em; margin: .4rem 0 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--link-on-dark); text-decoration: underline; }
.footer-brand p { max-width: 38ch; margin: 1.2rem 0 1.4rem; }
.brand-dark, .brand-dark:hover { color: var(--cream); }
.socials { display: flex; gap: .5rem; }
.social { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--charcoal-3); border-radius: 50%; color: var(--cream); transition: border-color .15s, background-color .15s; }
.social svg { width: 18px; height: 18px; }
.social:hover { border-color: var(--cream); background: var(--charcoal-2); }
.disclaimer { border-top: 1px solid var(--charcoal-3); padding-top: 1.5rem; margin: 0; font-size: .8rem; line-height: 1.6; max-width: 100ch; }

/* ---------- Preview routing ---------- */
[data-route] { display: none; }
[data-route].is-active { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .inside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase-grid { grid-template-columns: 1fr; }
  .callouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; }
  .callouts li:last-child { border-bottom: 0; }
}
@media (max-width: 920px) {
  .menu-btn { display: inline-grid; place-items: center; }
  .site-nav { position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch; gap: 1rem; background: var(--cream); border-bottom: 1px solid var(--line); padding: .5rem 1.5rem 1.5rem; box-shadow: 0 20px 30px -20px rgba(37,37,37,.3); display: none; }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); background: none; font-size: 1.05rem; }
  .site-nav .btn { width: 100%; padding: .95rem; }
  .hero-grid, .split-head, .optin, .faq-grid, .founder-grid, .product-grid, .shop-feature, .about-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: 14ch; }
  .buybox, .portrait-lg { position: static; }
  .portrait { max-width: 22rem; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .calc-chart text { font-size: 19px; }
  .calc-chart .lbl-gap { font-size: 20px; }
  .wrap, .wrap.narrow { width: min(var(--wrap), 100% - 2.25rem); }
  .calc-inputs { grid-template-columns: 1fr 1fr; }
  .calc .f:first-child { grid-column: 1 / -1; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet-grid { grid-template-columns: 1fr; }
  .callouts, .features, .inside { grid-template-columns: 1fr; }
  .callouts li:last-child { border-bottom: 1px solid var(--line-strong); }
  .facts { grid-template-columns: 1fr; }
  .faq-a { padding-right: 0; }
  .assure { flex-direction: column; gap: .55rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.sheet-compact .chart text { font-size: 5.5px; }

/* Illustrated author (Jules) */
.portrait { background: var(--cream); padding: 0; overflow: hidden; display: block; }
.portrait svg { display: block; width: 100%; height: 100%; }
.author-chip { display: flex; align-items: center; gap: .75rem; margin: .4rem 0 1.4rem; color: var(--ink-soft); }
.author-chip svg.avatar { width: 52px; height: 52px; border-radius: 50%; flex: none; }
.author-chip b { color: var(--charcoal); font-weight: 650; }

/* Jules lockup (About) */
.jules-lockup { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 1.6rem); }
.jules-lockup svg.avatar { width: clamp(76px, 9vw, 104px); height: clamp(76px, 9vw, 104px); border-radius: 50%; flex: none; }
.jules-lockup h1 { display: flex; flex-direction: column; margin: 0; max-width: none; line-height: .95; }
.jl-name { font-size: clamp(3rem, 7vw, 5.2rem); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--charcoal); }
.jl-role { font-size: clamp(.95rem, 1.6vw, 1.15rem); font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #B83232; margin-top: .55rem; }
.jl-tag { margin: 1.6rem 0 2rem; padding-left: 1rem; border-left: 3px solid #D6A64F; font-size: clamp(1.1rem, 1.8vw, 1.3rem); font-weight: 600; line-height: 1.45; color: var(--charcoal); }
.jl-tag span { color: var(--ink-soft); font-weight: 500; }
.founder-tag { margin-top: 1.2rem; font-weight: 650; color: #B83232; letter-spacing: .01em; }

/* Single-column About and founder (no illustration) */
.about-solo { max-width: 46rem; }
.founder-solo { max-width: 46rem; }
.founder-head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.3rem; }
.founder-head svg.avatar { width: 72px; height: 72px; border-radius: 50%; flex: none; }
.founder-head h2 { margin: 0; }

/* Post categories */
.cat { display: inline-block; font-size: .78rem; font-weight: 650; letter-spacing: .02em; color: #B83232; background: #F3E1DC; border-radius: 999px; padding: .15rem .6rem; margin-right: .6rem; }
.crumbs .cat { margin-left: .8rem; }
.legal-body { padding-bottom: clamp(3rem, 8vw, 6rem); }
