/* ============================================================
   yourflow.tax — lane skin: "The Fee Sheet"
   Layers ON TOP of /_shared/style.css (frozen — never edit it).
   Direction (docs/marketing/research/yourflow-lane.md §Design):
   document-as-artifact. Ledger rules, dot leaders, tabular
   numerals, a signature line, a gold founding stamp. Harbor-blue
   ink (#0E5A8A) on the shared warm paper — operator-grade
   document, not a corporate deck and never a hype page.
   ============================================================ */

:root {
  --accent: #0E5A8A;
  --gold-ink: #7A5A16;
  --gold-tint: #FAF3E1;
  --gold-line: #E5D3A6;
  --sheet: #FFFDF8;
}

/* letterhead rule at the very top + a whisper of print grain */
body { border-top: 4px solid var(--accent); }
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- brand lockup (mark + wordmark) ---------- */

.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; }
.brand img { width: 30px; height: 30px; display: block; }

/* documents get corners, not pills */
.btn { border-radius: 10px; }

/* every section head signs off with a short double ledger rule */
.section-head h2::after {
  content: "";
  display: block;
  width: 72px;
  border-top: 3px double var(--accent-line);
  margin-top: 0.85rem;
}
.center .section-head h2::after,
.center h2::after { margin-inline: auto; }

/* ---------- the sheet: the lane's central artifact ---------- */

.sheet {
  position: relative;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.25rem 1.35rem 1.35rem;
  box-shadow: 0 1px 2px rgba(38, 34, 26, 0.07), 0 22px 44px -28px rgba(38, 34, 26, 0.45);
  font-size: 0.93rem;
  font-variant-numeric: tabular-nums lining-nums;
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 0.35rem;
}
.sheet-head span:last-child { color: var(--accent-ink); text-align: right; }

.sheet-row { display: flex; align-items: baseline; gap: 0.55rem; padding: 0.52rem 0; }
.sheet-row .leader,
.sheet-total .leader {
  flex: 1 1 1.5rem;
  min-width: 1.25rem;
  border-bottom: 2px dotted var(--accent-line);
  transform: translateY(-0.28em);
}
.sheet-row .val { font-weight: 700; white-space: nowrap; color: var(--ink); }
.sheet-row .val.yours { color: var(--accent-ink); }

.sheet-total {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-top: 0.4rem;
  padding-top: 0.7rem;
  border-top: 3px double var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
}
.sheet-total .val { white-space: nowrap; color: var(--accent-ink); }

.sheet-sig { margin-top: 1.15rem; }
.sig-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 0.1rem;
}
.sig-script {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--accent-ink);
}
.sig-x { color: var(--muted); font-size: 0.85rem; }
.sig-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* gold founding stamp, slightly askew like a real one */
.stamp {
  position: absolute;
  top: -0.75rem;
  right: 1.1rem;
  transform: rotate(4deg);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-ink);
  background: var(--gold-tint);
  border: 2px solid var(--gold-line);
  border-radius: 3px;
  padding: 0.3rem 0.6rem 0.26rem;
  box-shadow: 0 6px 14px -8px rgba(122, 90, 22, 0.5);
}

/* ---------- hero: copy beside the artifact ---------- */

.hero-grid { display: grid; gap: 2.4rem; align-items: center; }
@media (min-width: 56em) {
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 3rem; }
}

.hero-art { position: relative; padding: 1rem 0.4rem 0.6rem; }
.hero-sheet { max-width: 23.5rem; margin-inline: auto; transform: rotate(1.4deg); }
.hero-sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 6px;
  transform: rotate(-2.4deg) translate(-6px, 6px);
}

/* migration proof bar — four claims the field won't match */
.proof-bar {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.55rem;
  margin: 2.4rem 0 0;
  padding: 0;
}
.proof-bar li {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--card);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 0.34rem 0.85rem;
}
.proof-bar li::before { content: "\2713"; color: var(--gold-ink); margin-right: 0.45rem; }

/* ---------- calculator: their side of the ledger ---------- */

.calc-sheet { margin-top: 1.4rem; }
.calc-sheet .sheet-total { font-size: clamp(1.35rem, 5vw, 1.8rem); align-items: baseline; }
.calc-sub { color: var(--muted); font-size: 0.88rem; margin: 0.65rem 0 0; }

/* the email gate now earns the fee sheet — never the arithmetic */
.fee-gate {
  margin-top: 1.2rem;
  background: var(--card);
  border: 1.5px solid var(--accent-line);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.2rem;
}
.fee-gate h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }
.fee-gate p { font-size: 0.93rem; color: var(--muted); margin-bottom: 0.7rem; }
.fee-gate .gate-row { display: grid; gap: 0.6rem; }
@media (min-width: 34em) {
  .fee-gate .gate-row { grid-template-columns: 1fr auto; align-items: center; }
}

.fee-done {
  margin-top: 1.2rem;
  text-align: center;
  background: var(--accent-tint);
  border: 1.5px solid var(--accent-line);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.2rem 1.3rem;
}
.fee-done .btn { margin-top: 0.5rem; }

/* ---------- renewal posture ---------- */

.posture { margin-top: 1.5rem; padding-top: 1.5rem; }
.posture-line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 3.6vw, 1.45rem);
  line-height: 1.35;
  margin: 0.35rem 0 0.4rem;
  text-wrap: balance;
}

/* ---------- comparison-page teaser ---------- */

.teaser {
  position: relative;
  background: var(--card);
  border: 1.5px dashed var(--accent-line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.teaser .overline { color: var(--gold-ink); margin-bottom: 0.45rem; }
.teaser h2 { font-size: clamp(1.4rem, 4.5vw, 1.8rem); }
.teaser p { color: var(--muted); max-width: 38rem; }

/* ---------- small-screen manners ---------- */

@media (max-width: 24.5em) {
  .sheet { padding: 1.05rem 1rem 1.15rem; font-size: 0.88rem; }
  .stamp { right: 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-sheet { transform: none; }
  .hero-sheet::before { transform: translate(-4px, 5px); }
}

/* ---------- header: five links need the wide column ---------- */

.site-header .wrap { max-width: 64rem; }
.site-nav a { white-space: nowrap; }
.site-header .btn-sm { white-space: nowrap; }
/* mid-band (nav visible but row is tight): let the nav breathe,
   the calculator CTA returns on wide desks */
@media (min-width: 44em) and (max-width: 61.99em) {
  .site-header .btn-sm { display: none; }
}
