/* The Damn Land Calculator — First Class Cowgirl
   Beth Dutton Era pack (FCG retro poster): cream ground, forest ink,
   neon rodeo pink accent, burnt orange rare second pop. Flat type.
   Display = Ultra (OFL stand-in for West West). Body/captions = Poppins. */

@font-face { font-family: "Ultra"; src: url("assets/ultra.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Poppins"; font-weight: 400; src: url("assets/poppins-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Poppins"; font-weight: 600; src: url("assets/poppins-600.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Poppins"; font-weight: 900; src: url("assets/poppins-900.woff2") format("woff2"); font-display: swap; }

:root {
  --cream: #FAF7F2;
  --cream-2: #F1EBE0;
  --forest: #1C2920;
  --forest-2: #2E5339;
  --ink: #12100F;
  --ink-soft: #4A4642;
  --pink: #FF2E8B;        /* neon rodeo — poster cards, buttons */
  --rodeo: #D6156E;       /* pink as type on cream */
  --orange: #C55A2B;      /* burnt orange — rare second pop, RED verdict */
  --gold: #C9962B;        /* warm gold — YELLOW verdict */
  --green: #2E5339;       /* GREEN verdict */
  --line: rgba(28,41,32,.18);
  --radius: 14px;
  --display: "Ultra", "Rockwell Extra Bold", "Arial Black", Impact, serif;
  --sans: "Poppins", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --gutter: 16px;
  --maxw: 560px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
button { font: inherit; }
a { color: var(--rodeo); }
em { font-style: italic; }
strong { font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* ---------- Top bar + fence-post progress ---------- */
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 12px;
  padding: 10px var(--gutter);
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.logo { width: 36px; height: 52px; flex: 0 0 auto; }
.fence { flex: 1; display: flex; align-items: center; gap: 3px; height: 20px; position: relative; }
.fence::before { /* the rail */
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1px;
  background: var(--line); border-radius: 2px;
}
.fence .post {
  position: relative; flex: 1; height: 14px; border-radius: 2px;
  background: var(--cream-2); border: 1px solid var(--line);
  transition: background .25s, border-color .25s;
}
.fence .post.done { background: var(--forest); border-color: var(--forest); }
.fence .post.now { background: var(--pink); border-color: var(--pink); }
.back {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--forest); background: transparent; color: var(--forest);
  font-size: 22px; line-height: 1; cursor: pointer;
}
.back:active { background: var(--cream-2); }

/* ---------- Screens ---------- */
#app { max-width: var(--maxw); margin: 0 auto; padding: 24px var(--gutter) 40px; }
.screen { display: none; animation: rise .28s ease-out both; }
.screen.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--rodeo); margin: 0 0 10px;
}
.pill {
  display: inline-block; background: var(--cream-2); color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px; padding: 6px 12px;
}
.display {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  line-height: .98; letter-spacing: .005em; color: var(--forest); margin: 0 0 16px;
  font-size: clamp(32px, 11vw, 52px);
}
.q {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(24px, 7.5vw, 34px); line-height: 1.05; color: var(--forest); margin: 0 0 12px;
}
.lede { font-size: 17px; margin: 0 0 20px; }
.helper { color: var(--ink-soft); margin: 0 0 18px; }
.helper.small { font-size: 14px; margin-top: 14px; }
.rules { background: #fff; border: 2px solid var(--forest); border-radius: var(--radius); padding: 14px 16px 10px; margin: 0 0 22px; box-shadow: 4px 4px 0 var(--forest); }
.rules-title { font-family: var(--display); text-transform: uppercase; margin: 0 0 6px; color: var(--rodeo); font-size: 18px; }
.rules ol { margin: 0; padding-left: 22px; }
.rules li { margin: 0 0 8px; }
.fineprint { font-size: 13px; color: var(--ink-soft); margin: 16px 0 0; }
.nudge { color: var(--rodeo); font-weight: 600; font-size: 15px; margin: -8px 0 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: block; width: 100%; min-height: 56px; padding: 14px 18px;
  border-radius: var(--radius); border: 2px solid var(--forest);
  font-weight: 600; font-size: 18px; cursor: pointer; text-align: center; text-decoration: none;
  transition: transform .08s;
}
.btn:active { transform: translate(2px, 2px); box-shadow: none !important; }
.btn-primary { background: var(--rodeo); color: #fff; border-color: var(--forest); border-radius: 999px; box-shadow: 4px 4px 0 var(--forest); }
.btn-primary:hover { background: #E8237C; }
.btn-ghost { background: transparent; color: var(--forest); border-radius: 999px; margin-top: 12px; }
.btn + .btn { margin-top: 12px; }

/* ---------- Inputs ---------- */
.field { display: block; margin: 0 0 18px; }
input[type="text"], input[type="email"], select {
  width: 100%; min-height: 56px; padding: 12px 14px; font-size: 18px; font-family: var(--sans);
  color: var(--ink); background: #fff; border: 2px solid var(--forest); border-radius: var(--radius);
  outline: none; -webkit-appearance: none; appearance: none;
}
input:focus, select:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,46,139,.25); }
.select { position: relative; }
.select::after { content: "▾"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--forest); font-size: 20px; }
.money { display: flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--forest); border-radius: var(--radius); padding: 0 14px; margin: 0 0 14px; min-height: 64px; }
.money:focus-within { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,46,139,.25); }
.money-sign { font-family: var(--display); font-size: 26px; color: var(--rodeo); }
.money-unit { color: var(--ink-soft); font-size: 15px; }
.money input { border: 0; padding: 8px 0; font-size: 30px; font-weight: 600; font-family: var(--sans); background: transparent; min-width: 0; flex: 1; }
.money input:focus { box-shadow: none; }
input[type="range"] { width: 100%; margin: 6px 0 2px; accent-color: var(--pink); height: 40px; }
.range-labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-soft); margin: 0 0 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 20px; font-size: 15px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--pink); flex: 0 0 auto; }

/* Month line items */
.lines { display: grid; gap: 8px; margin: 0 0 12px; }
.line { display: grid; grid-template-columns: 1fr 128px; align-items: center; gap: 10px; }
.line .lbl { font-weight: 600; font-size: 15px; line-height: 1.2; }
.line .lbl small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 12px; }
.line .lbl .kind { display: inline-block; margin-left: 6px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--rodeo); font-weight: 600; }
.line .money { margin: 0; min-height: 48px; padding: 0 10px; }
.line .money input { font-size: 20px; padding: 6px 0; }
.line .money-sign { font-size: 18px; }
.month-total { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 2px solid var(--forest); padding: 12px 0 6px; font-weight: 600; }
.month-total b { font-family: var(--display); font-size: 26px; color: var(--rodeo); }

/* Single-select choices */
.choices { display: grid; gap: 10px; margin: 0 0 8px; }
.choice {
  min-height: 56px; width: 100%; text-align: left; padding: 12px 16px;
  background: #fff; border: 2px solid var(--forest); border-radius: var(--radius);
  font-size: 17px; font-weight: 600; color: var(--ink); cursor: pointer;
}
.choice:hover { background: var(--cream-2); }
.choice.selected, .choice:active { background: var(--rodeo); color: #fff; box-shadow: 4px 4px 0 var(--forest); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.chip {
  min-height: 48px; padding: 10px 16px; border-radius: 24px; border: 2px solid var(--forest);
  background: #fff; font-weight: 600; font-size: 15px; cursor: pointer; color: var(--ink);
}
.chip[aria-pressed="true"] { background: var(--forest); color: var(--cream); }

/* ---------- Calculating ---------- */
.calculating { text-align: center; padding-top: 60px; }
.calc-text { font-size: clamp(26px, 8vw, 40px); }
.star { width: 56px; height: 56px; margin: 0 auto 20px; background: var(--pink); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: spin 1.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Results ---------- */
.card { position: relative; border-radius: var(--radius); padding: 20px 18px; margin: 0 0 18px; background: #fff; border: 2px solid var(--forest); }
.card h3 { font-family: var(--display); text-transform: uppercase; font-weight: 400; font-size: 22px; line-height: 1.05; margin: 0 0 10px; color: var(--forest); }
.results p { margin: 0 0 10px; }
.results p:last-child { margin-bottom: 0; }

/* The verdict poster card — the screenshot card (9:16-friendly) */
.verdict {
  color: var(--cream); padding: 26px 20px 22px; border: 0; overflow: hidden; border-radius: 0;
  box-shadow: 5px 5px 0 var(--forest);
}
.verdict::before { /* double cream keyline */
  content: ""; position: absolute; inset: 8px; border: 2px solid rgba(250,247,242,.9); border-radius: 0; pointer-events: none;
  box-shadow: inset 0 0 0 3px transparent, 0 0 0 3px transparent;
  outline: 1px solid rgba(250,247,242,.55); outline-offset: 3px;
}
.verdict::after { /* light grain, poster frames only */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.verdict.green { background: var(--green); }
.verdict.yellow { background: var(--gold); }
.verdict.red { background: var(--orange); }
.verdict .label {
  display: inline-block; background: var(--cream); color: var(--ink); border-radius: 14px;
  padding: 5px 12px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 14px; position: relative; z-index: 1;
}
.verdict .vstar { position: absolute; right: 18px; top: 16px; width: 26px; height: 26px; background: var(--cream); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); z-index: 1; }
.verdict h2 {
  position: relative; z-index: 1;
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(28px, 9vw, 44px); line-height: .98; margin: 0 0 14px; color: var(--cream);
  text-shadow: 3px 3px 0 var(--forest);
}
.verdict p { position: relative; z-index: 1; font-size: 16px; }
.verdict .vnums { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; position: relative; z-index: 1; }
.verdict .vnum { flex: 1 1 96px; min-width: 0; background: rgba(250,247,242,.14); border: 1px solid rgba(250,247,242,.5); border-radius: 10px; padding: 10px 6px 8px; text-align: center; }
.verdict .vnum b { display: block; font-family: var(--display); font-size: clamp(17px, 5.5vw, 24px); font-weight: 400; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.verdict .vnum span { font-size: 10px; letter-spacing: .04em; text-transform: uppercase; opacity: .9; white-space: nowrap; }
.verdict .vfoot { margin-top: 16px; font-size: 12px; opacity: .9; display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.verdict .vfoot .tag { font-weight: 600; }
.verdict .nosh { font-weight: 600; }

/* Budget today */
.budget .big { font-family: var(--display); font-size: clamp(30px, 10vw, 46px); color: var(--rodeo); line-height: 1; margin: 0 0 8px; }
.budget .acres { font-size: 18px; }
.budget .acres b { color: var(--forest); font-weight: 600; }

/* The picture — where the money goes */
.picture .bar { display: flex; gap: 2px; height: 34px; border-radius: 6px; overflow: hidden; background: var(--cream-2); margin: 12px 0 8px; }
.picture .seg { height: 100%; min-width: 0; border-radius: 0; }
.picture .seg:first-child { border-radius: 4px 0 0 4px; }
.picture .seg:last-child { border-radius: 0 4px 4px 0; }
.picture .seg.tax { background: #8A8F8B; }
.picture .seg.exp { background: var(--forest); }
.picture .seg.debt { background: var(--orange); }
.picture .seg.room { background: var(--pink); }
.picture .seg.short { background: repeating-linear-gradient(135deg, var(--rodeo) 0 6px, #fff 6px 10px); }
.picture .legend { display: grid; gap: 6px; font-size: 15px; margin: 10px 0 0; }
.picture .legend li { display: flex; align-items: center; gap: 10px; list-style: none; }
.picture .legend ul { margin: 0; padding: 0; }
.picture .sw { width: 14px; height: 14px; border-radius: 3px; flex: 0 0 auto; }
.picture .sw.tax { background: #8A8F8B; }
.picture .sw.exp { background: var(--forest); }
.picture .sw.debt { background: var(--orange); }
.picture .sw.room { background: var(--pink); }
.picture .sw.short { background: repeating-linear-gradient(135deg, var(--rodeo) 0 4px, #fff 4px 7px); }
.picture .legend b { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.picture .honest { background: var(--cream-2); border-left: 4px solid var(--orange); padding: 10px 12px; border-radius: 0 10px 10px 0; margin-top: 12px; }

/* Dream gap */
.gap .big { font-family: var(--display); font-size: clamp(26px, 8vw, 36px); color: var(--forest); line-height: 1; margin: 6px 0 10px; }
.gap .row { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding: 8px 0; font-size: 15px; }
.gap .row b { font-variant-numeric: tabular-nums; }

.gap .timelines { list-style: none; padding: 0; margin: 4px 0 10px; }
.gap .timelines li { padding: 6px 0; border-top: 1px solid var(--line); font-size: 15px; }

/* First step */
.step { background: var(--forest); color: var(--cream); border-color: var(--forest); box-shadow: 5px 5px 0 var(--pink); }
.step h3 { color: var(--pink) !important; }
.step .stepnum { display: inline-block; background: var(--cream); color: var(--ink); border-radius: 14px; padding: 4px 12px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.step .big { font-family: var(--display); text-transform: uppercase; font-size: clamp(26px, 8.5vw, 40px); line-height: 1; margin: 0 0 12px; color: var(--cream); }
.step ul { padding-left: 0; list-style: none; margin: 8px 0 12px; }
.step li { margin-bottom: 6px; }
.step .loanfact { background: rgba(250,247,242,.1); border: 1px solid rgba(250,247,242,.35); border-radius: 10px; padding: 10px 12px; margin: 12px 0; font-size: 15px; }
.step .loanfact b { color: var(--pink); }
.step .one { font-weight: 600; margin-top: 12px; }
.step .va { font-size: 13px; opacity: .85; margin-top: 10px; }

/* Hero step (red/yellow): right under the verdict, big */
.step.hero { box-shadow: 6px 6px 0 var(--pink); border: 3px solid var(--pink); }
.step.hero .stepnum { background: var(--pink); color: #fff; }
.step.hero h3 { font-size: clamp(28px, 9vw, 44px) !important; }
.step.hero .big { font-size: clamp(34px, 11vw, 56px); }
.gap .twothings { list-style: none; padding: 0; margin: 6px 0 12px; }
.gap .twothings li { padding: 10px 12px; margin: 0 0 8px; background: var(--cream-2); border-radius: 10px; font-size: 16px; }
.share .btn { margin: 10px auto 6px; }

/* Fear */
.fear { border-left: 6px solid var(--pink); }
.fear .quote { font-family: var(--display); text-transform: uppercase; color: var(--rodeo); font-size: 15px; letter-spacing: .02em; }

/* CTA */
.cta { background: var(--pink); color: var(--ink); border-color: var(--forest); border-radius: 0; box-shadow: 5px 5px 0 var(--forest); }
.cta h3 { color: var(--ink) !important; font-size: clamp(26px, 8vw, 34px) !important; }
.cta .btn { background: var(--cream); color: var(--ink); border-color: var(--forest); border-radius: 999px; box-shadow: 4px 4px 0 var(--forest); margin-top: 14px; }

/* Share + fine print */
.share { text-align: center; }
.share .tagline { font-family: var(--display); text-transform: uppercase; color: var(--forest); font-size: 20px; margin: 0 0 6px; }
.share .hash { color: var(--rodeo); font-weight: 600; }
.fine { font-size: 13px; color: var(--ink-soft); border: 0; background: transparent; padding: 0 4px; }
.sent { font-size: 13px; color: var(--ink-soft); text-align: center; margin: 0 0 14px; }

/* ---------- Footer ---------- */
.sitefoot { max-width: var(--maxw); margin: 0 auto; padding: 10px var(--gutter) 40px; font-size: 12px; color: var(--ink-soft); border-top: 1px solid var(--line); }
.sitefoot p { margin: 8px 0; }

/* ---------- Larger screens ---------- */
@media (min-width: 600px) {
  #app { padding-top: 40px; }
  .btn { width: auto; min-width: 240px; }
  .btn-primary { display: inline-block; }
  .choices { grid-template-columns: 1fr 1fr; }
  .choices.wide { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .screen { animation: none; }
  .star { animation: none; }
  .fence .post, .btn { transition: none; }
}
