/* guide.css — the editorial "day" page for the money guide.
   Builds ON brand.css tokens. Same world as landing.css, one morning later:
   the page opens at first light (a short golden-hour banner) and settles
   onto paper for the reading. Brass + oxblood + mono labels carry through. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-display);
  overflow-x: hidden;
}

/* ───────────────────────── top bar (same chassis as the landing) ───────── */
.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 56px);
}
.topbar .wordmark { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.topbar .wordmark .label { color: var(--brass-hi); font-size: 13px; }
.topbar .wordmark .tag { font-family: var(--font-editorial); font-style: italic; font-size: 13px; color: color-mix(in srgb, var(--paper) 75%, transparent); }
.topnav { display: flex; gap: clamp(14px, 2.5vw, 30px); }
.topnav a { text-decoration: none; }
.topnav .label { color: color-mix(in srgb, var(--paper) 82%, transparent); font-size: 11px; transition: color .2s ease; }
.topnav a:hover .label { color: var(--brass-hi); }
.topnav a.on .label { color: var(--brass-hi); border-bottom: 1px solid color-mix(in srgb, var(--brass-hi) 60%, transparent); padding-bottom: 3px; }

/* ───────────────────────── FIRST LIGHT — the short golden-hour hero ─────
   The landing ends the night at golden hour; the guide picks up the same sun
   one beat later. Shorter than the landing hero on purpose — this page is
   for reading, so the sky hands off to paper fast. */
.ghero {
  position: relative; min-height: clamp(430px, 62svh, 620px);
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; isolation: isolate;
  padding: 0 clamp(20px, 5vw, 72px) clamp(44px, 7vh, 72px);
}
.gh-bg { position: absolute; inset: 0; z-index: -6; }
.gh-bg img {
  width: 100%; height: 118%; object-fit: cover; object-position: 50% 84%;
  filter: sepia(.44) saturate(1.3) brightness(1.42) contrast(.98) hue-rotate(-9deg);
  transform: scale(1.02);
}
.gh-grade {
  position: absolute; inset: 0; z-index: -5; mix-blend-mode: hard-light;
  background: linear-gradient(196deg,
    rgba(255, 196, 110, .58) 0%,
    rgba(246, 168, 84, .38) 34%,
    rgba(138, 47, 44, .22) 66%,
    rgba(40, 26, 12, .40) 100%);
}
.gh-sun {
  position: absolute; inset: 0; z-index: -4; mix-blend-mode: screen;
  background:
    radial-gradient(ellipse 60% 44% at 72% 2%, rgba(255, 224, 156, .95), rgba(255, 178, 92, .32) 46%, transparent 70%),
    radial-gradient(ellipse 120% 55% at 50% -10%, rgba(255, 168, 76, .30), transparent 65%);
}
/* readability + the fade down into paper — the actual sunrise moment */
.gh-vig {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(24, 15, 7, .38) 0%, transparent 30%),
    linear-gradient(180deg, transparent 42%, rgba(58, 38, 16, .34) 68%, rgba(210, 178, 122, .72) 88%, var(--bg) 100%);
}
.gh-content { position: relative; z-index: 2; max-width: 880px; }
.gh-content::before {
  content: ""; position: absolute; z-index: -1;
  inset: -50px -110px -40px -80px; pointer-events: none;
  background: radial-gradient(ellipse 80% 84% at 30% 55%, rgba(30, 18, 8, .42), rgba(30, 18, 8, .14) 62%, transparent 78%);
  filter: blur(6px);
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px; font-size: 12px; color: var(--brass-hi);
  text-shadow: 0 1px 12px rgba(20, 12, 4, .7);
  padding: 6px 13px; border-radius: 10px;
  background: rgba(24, 15, 7, .46); backdrop-filter: blur(4px);
  border: 1px solid color-mix(in srgb, var(--brass) 32%, transparent);
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--brass-hi); opacity: .9; }
.gh-title {
  margin: 16px 0 0; font-family: var(--font-editorial); font-weight: 330;
  font-size: clamp(44px, 6.6vw, 92px); line-height: .98; letter-spacing: -0.01em;
  color: var(--cream); text-wrap: balance; text-shadow: 0 2px 30px rgba(24, 14, 5, .55);
}
.gh-title em { font-style: italic; color: var(--brass-hi); }
.gh-dek {
  margin: 18px 0 0; max-width: 620px;
  font-family: var(--font-editorial); font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.5; color: color-mix(in srgb, var(--cream) 94%, transparent);
  text-shadow: 0 1px 16px rgba(24, 14, 5, .6);
}
.gh-dek em { color: var(--brass-hi); }

/* ───────────────────────── the reading column ───────────────────────── */
.page {
  position: relative;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-3) 30%, var(--bg) 100%);
}
.col { max-width: 780px; margin: 0 auto; padding: clamp(30px, 5vh, 54px) 24px 30px; }

/* the ethos — the promise at the door */
.ethos {
  font-family: var(--font-editorial); font-size: 17px; line-height: 1.55; color: var(--fg);
  border-left: 3px solid var(--brass);
  background: color-mix(in srgb, var(--brass) 8%, transparent);
  border-radius: var(--r-callout); padding: 14px 18px; margin: 0 0 26px;
}
.ethos b { font-weight: 700; }

/* level heads */
.level-head { margin: clamp(44px, 7vh, 72px) 0 8px; }
.level-head .badge .pips { display: inline-flex; gap: 4px; margin-right: 2px; }
.level-head .badge .pip { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid #12100d; display: inline-block; }
.level-head .badge .pip.on { background: #12100d; }
.level-head h2 {
  margin: 14px 0 6px; font-family: var(--font-editorial); font-weight: 340;
  font-size: clamp(34px, 5vw, 54px); line-height: 1.02; color: var(--fg);
}
.level-head h2 em { font-style: italic; color: var(--ox); }
.level-head .lp { margin: 0; font-family: var(--font-editorial); font-size: 17px; line-height: 1.55; color: var(--fg-muted); max-width: 58ch; }

/* lessons */
.lesson { margin: clamp(40px, 6vh, 60px) 0 0; }
.lesson > .label { display: block; font-size: 11px; color: var(--brass-lo); margin-bottom: 10px; }
.lesson h3 {
  margin: 0 0 6px; font-family: var(--font-editorial); font-weight: 340;
  font-size: clamp(26px, 3.6vw, 38px); line-height: 1.08; color: var(--fg); text-wrap: balance;
}
.lesson h3 em { font-style: italic; color: var(--ox); }
.lesson p.body { font-family: var(--font-display); font-size: 16.5px; line-height: 1.62; color: #33291a; margin: 14px 0; }
.lesson p.body b, .lesson p.body strong { font-weight: 700; }

/* the one-liner tldr */
.tldr { display: flex; gap: 12px; align-items: baseline; margin: 14px 0; --accent: var(--brass); }
.tldr .k { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-lo); white-space: nowrap; }
.tldr .x { font-family: var(--font-editorial); font-size: 16.5px; line-height: 1.45; color: var(--fg); }
.tldr .x em { font-style: italic; color: var(--ox); }

/* the money flow — an example, not a formula */
.flow-cap { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); margin: 20px 0 10px; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.flow .fc {
  position: relative;
  background: color-mix(in srgb, var(--bg-2) 92%, transparent);
  border: 1px solid var(--hair); border-radius: 12px; padding: 13px 12px 12px;
}
.flow .fc .fn { font-family: var(--font-mono); font-weight: 700; font-size: clamp(17px, 1.8vw, 22px); color: var(--fg); }
.flow .fc .fl { font-family: var(--font-display); font-size: 11.5px; line-height: 1.4; color: var(--fg-muted); margin-top: 5px; }
.flow .fc .ar {
  position: absolute; right: -12px; top: 50%; transform: translateY(-50%); z-index: 2;
  font-family: var(--font-mono); color: var(--brass); font-weight: 700; font-size: 14px;
}
.flow .fc.last { border-color: color-mix(in srgb, var(--ox) 45%, transparent); background: color-mix(in srgb, var(--ox) 7%, transparent); }
.flow .fc.last .fn { color: var(--ox); }

/* slip / win callouts — the guide's recurring margin voices */
.mn { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0; }
.mn .k { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; display: block; margin-bottom: 4px; }
.mn .x { font-family: var(--font-display); font-size: 14.5px; line-height: 1.55; color: #3d3222; }
.mn .x b, .mn .x strong { font-weight: 700; }
.mn.slip { --accent: var(--ox); }
.mn.slip .k { color: var(--ox); }
.mn.win { --accent: var(--brass); }
.mn.win .k { color: var(--brass-lo); }

/* ONE LEVEL UP — the upgrade beat: basic move first, then the sharper one */
.levelup {
  --accent: var(--brass);
  border: 1px solid color-mix(in srgb, var(--brass) 38%, transparent);
  background: color-mix(in srgb, var(--brass) 7%, transparent);
  border-radius: var(--r-card); padding: 16px 18px 15px; margin: 20px 0;
  position: relative;
}
.levelup .lu-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: #12100d;
  background: var(--brass); border-radius: 7px; padding: 4px 9px; margin-bottom: 9px;
}
.levelup p { margin: 0; font-family: var(--font-display); font-size: 15px; line-height: 1.6; color: #33291a; }
.levelup p b { font-weight: 700; }

/* the set-aside calculator */
.calc { --accent: var(--brass); margin: 22px 0; }
.calc .ct { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-lo); }
.calc .cs { font-family: var(--font-editorial); font-style: italic; font-size: 14.5px; color: var(--fg-muted); margin: 5px 0 14px; }
.calc label { display: block; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 7px; }
.calc .ig {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid color-mix(in srgb, var(--brass) 40%, transparent);
  background: var(--cream); border-radius: 12px; padding: 11px 14px;
}
.calc .ig span { font-family: var(--font-mono); font-weight: 700; color: var(--brass-lo); }
.calc .ig input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-family: var(--font-mono); font-weight: 700; font-size: 18px; color: var(--fg);
}
.calc .ig input::placeholder { color: color-mix(in srgb, var(--fg-muted) 60%, transparent); font-weight: 400; font-size: 14px; }
.calc .out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.calc .oc { border: 1px solid var(--hair); border-radius: 12px; padding: 12px 14px; background: color-mix(in srgb, var(--bg-2) 90%, transparent); }
.calc .ol { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted); }
.calc .ov { font-family: var(--font-mono); font-weight: 700; font-size: clamp(19px, 2.2vw, 24px); color: var(--fg); margin-top: 5px; }
.calc .ov.hit { color: var(--ox); }
.calc .note { font-family: var(--font-display); font-size: 12.5px; line-height: 1.5; color: var(--fg-muted); margin-top: 11px; }

/* the "new in 2026" flag */
.changed { --accent: var(--ox-hi); margin: 22px 0; border-color: color-mix(in srgb, var(--ox) 35%, transparent); }
.changed .tag {
  display: inline-flex; font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--cream);
  background: var(--ox); border-radius: 7px; padding: 4px 9px; margin-bottom: 10px;
}
.changed h4 { margin: 0 0 8px; font-family: var(--font-editorial); font-weight: 380; font-size: clamp(19px, 2.4vw, 24px); line-height: 1.15; color: var(--fg); }
.changed h4 em { font-style: italic; color: var(--ox); }
.changed p { margin: 8px 0 0; font-family: var(--font-display); font-size: 14.5px; line-height: 1.6; color: #3d3222; }
.changed .flag { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--ox); }

/* write-off tiers */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.tier { border-radius: var(--r-card); border: 1px solid var(--hair); padding: 15px 16px; background: color-mix(in srgb, var(--bg-2) 90%, transparent); }
.tier h4 { margin: 0 0 10px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.tier ul { margin: 0; padding: 0 0 0 2px; list-style: none; }
.tier li { font-family: var(--font-display); font-size: 13px; line-height: 1.45; color: #3d3222; padding: 6px 0 6px 16px; position: relative; border-top: 1px solid color-mix(in srgb, var(--hair) 60%, transparent); }
.tier li:first-child { border-top: 0; padding-top: 0; }
.tier li::before { content: "·"; position: absolute; left: 2px; font-weight: 700; }
.tier li em { font-style: italic; color: var(--ox); }
.tier.ok { border-top: 3px solid var(--green); }
.tier.ok h4 { color: #5c7a42; }
.tier.ok li::before { color: var(--green); }
.tier.gray { border-top: 3px solid var(--brass); }
.tier.gray h4 { color: var(--brass-lo); }
.tier.gray li::before { color: var(--brass); }
.tier.no { border-top: 3px solid var(--ox); }
.tier.no h4 { color: var(--ox); }
.tier.no li::before { color: var(--ox); }

/* V · FILE IT — filing-option cards (the practical capstone of Level 1) */
.tiers.file .tier { display: flex; flex-direction: column; }
.tier.deep { border-top: 3px solid var(--fg); }
.tier.deep h4 { color: var(--fg); }
.tier .ttag { align-self: flex-start; font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); border: 1px solid color-mix(in srgb, var(--green) 45%, transparent); border-radius: 999px; padding: 2px 8px; margin-bottom: 8px; }
.tier .tcost { font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--fg); margin: 2px 0 8px; }
.tier .tbody { font-family: var(--font-display); font-size: 13px; line-height: 1.5; color: #3d3222; margin: 0 0 10px; }
.tier .tbody a { color: var(--brass-lo); text-decoration: underline; text-underline-offset: 2px; }
.tier .tbody a:hover { color: var(--brass); }
.tier .tfor { margin-top: auto; font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; color: var(--brass-lo); border-top: 1px solid color-mix(in srgb, var(--hair) 60%, transparent); padding-top: 8px; }

/* go deeper */
details.exa { margin: 16px 0; border: 1px solid var(--hair); border-radius: 12px; background: color-mix(in srgb, var(--bg-2) 80%, transparent); }
details.exa summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px;
  padding: 12px 15px; font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brass-lo);
}
details.exa summary::-webkit-details-marker { display: none; }
details.exa summary .cur { width: 8px; height: 8px; border-right: 2px solid var(--brass); border-bottom: 2px solid var(--brass); transform: rotate(-45deg); transition: transform .2s ease; flex: none; }
details.exa[open] summary .cur { transform: rotate(45deg); }
details.exa .inner { padding: 2px 16px 14px; }
details.exa .inner p { font-family: var(--font-display); font-size: 14.5px; line-height: 1.6; color: #3d3222; margin: 8px 0; }

/* from-the-floor placeholder variant — LOUDLY not-real-yet */
.from-floor.ph { border-left-style: dashed; border-left-color: color-mix(in srgb, var(--fg-muted) 55%, transparent); background: color-mix(in srgb, var(--fg-muted) 6%, transparent); }
.from-floor.ph .ff-label { color: var(--fg-muted); }
.from-floor.ph .ff-quote { color: var(--fg-muted); }

/* the level gate */
.gate {
  text-align: center; margin: clamp(52px, 8vh, 84px) 0 0;
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  padding: clamp(32px, 5vh, 48px) 10px;
}
.gate .gk { display: inline-flex; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #12100d; background: var(--brass); border-radius: 8px; padding: 5px 12px; }
.gate h3 { margin: 16px auto 8px; max-width: 26ch; font-family: var(--font-editorial); font-weight: 340; font-size: clamp(25px, 3.6vw, 36px); line-height: 1.12; color: var(--fg); text-wrap: balance; }
.gate h3 em { font-style: italic; color: var(--ox); }
.gate p { margin: 8px auto 0; max-width: 54ch; font-family: var(--font-editorial); font-size: 15.5px; line-height: 1.55; color: var(--fg-muted); }
.gate .skip { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-lo); margin-top: 14px; }

/* LLC rows */
.rows { display: grid; gap: 10px; margin: 18px 0; }
.row { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--hair); border-radius: 12px; padding: 13px 15px; background: color-mix(in srgb, var(--bg-2) 88%, transparent); }
.row .n { flex: none; width: 30px; height: 30px; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: 12px; color: var(--brass-lo); border: 1px solid color-mix(in srgb, var(--brass) 45%, transparent); border-radius: 9px; }
.row .t { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--fg); }
.row .x { font-family: var(--font-display); font-size: 13.5px; line-height: 1.5; color: var(--fg-muted); margin-top: 3px; }

/* pull quote */
.pull {
  margin: 26px 0; padding-left: 18px; border-left: 3px solid var(--brass);
  font-family: var(--font-editorial); font-size: clamp(19px, 2.4vw, 24px); line-height: 1.35; color: var(--fg);
}
.pull span { font-style: italic; color: var(--ox); }

/* real talk */
.realtalk {
  font-family: var(--font-display); font-size: 13.5px; line-height: 1.6; color: var(--fg-muted);
  border: 1px dashed color-mix(in srgb, var(--fg-muted) 45%, transparent);
  border-radius: 12px; padding: 13px 16px; margin: 22px 0 0;
}
.realtalk b { color: var(--fg); }

/* keep-going CTA row */
.next {
  margin: clamp(52px, 8vh, 80px) 0 0; text-align: center;
  padding-top: clamp(32px, 5vh, 46px); border-top: 1px solid var(--hair);
}
.next .label { color: var(--brass-lo); }
.next h3 { margin: 12px auto 18px; font-family: var(--font-editorial); font-weight: 340; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.1; color: var(--fg); max-width: 24ch; }
.next h3 em { font-style: italic; color: var(--ox); }
.next .ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.next .btn.ox { background: var(--ox); color: var(--cream); box-shadow: 0 6px 26px color-mix(in srgb, var(--ox) 40%, transparent); }
.next .btn.ghost { color: var(--fg); }
.next .btn .arrow { display: inline-block; transition: transform .25s ease; }
.next .btn:hover .arrow { transform: translateX(4px); }

/* ───────────────────────── footer ───────────────────────── */
.foot {
  margin-top: clamp(48px, 7vh, 72px);
  padding: 34px clamp(20px, 4.5vw, 64px) 44px;
  background: var(--bg-2); border-top: 1px solid var(--hair);
}
.foot-inner { max-width: 780px; margin: 0 auto; }
.foot .dis { font-family: var(--font-display); font-size: 11.5px; line-height: 1.65; color: var(--fg-muted); margin-bottom: 18px; }
.foot-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot .sig { font-family: var(--font-editorial); font-style: italic; font-size: 13px; color: #6b5f49; margin-top: 6px; }
.foot nav { display: flex; gap: 22px; }
.foot nav a { text-decoration: none; }
.foot nav .label { font-size: 10px; color: var(--brass-lo); transition: color .2s ease; }
.foot nav a:hover .label { color: var(--brass); }
.foot .credit { margin-top: 10px; }

/* ───────────────────────── responsive ───────────────────────── */
@media (max-width: 700px) {
  .topbar { padding: 16px 18px; }
  .topbar .wordmark .tag { display: none; }
  .topnav { gap: 14px; }
  .topnav .label { font-size: 10px; }
  .ghero { min-height: clamp(400px, 58svh, 520px); padding-bottom: 38px; }
  .gh-bg img { object-position: 50% 84%; }
  .kicker { font-size: 10px; letter-spacing: .13em; line-height: 1.7; }
  .kicker::before { display: none; }
  .col { padding: 26px 18px 20px; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow .fc:nth-child(2) .ar { display: none; }
  .tiers { grid-template-columns: 1fr; }
  .calc .out { grid-template-columns: 1fr; }
  .tldr { flex-direction: column; gap: 4px; }
  .origin-note .on-face { width: 52px; height: 68px; }
  .from-floor { padding: 13px 14px; gap: 11px; }
  .foot-row { flex-direction: column; align-items: flex-start; }
}
