/* =========================================================
   DFW Stump Masters — design system
   Palette: bark + forest, safety-orange reserved for CTAs only
   Type: Anton (display) / Public Sans (body) / Spline Sans Mono (price)
   Signature: tree-ring stump cross-section
   ========================================================= */

:root {
  /* color */
  --bark:      #241a12;   /* deepest brown-black, primary dark bg */
  --bark-2:    #2f2318;   /* raised bark surface */
  --forest:    #16301f;   /* deep forest green */
  --forest-2:  #1f4a30;   /* mid forest, gradient stop */
  --cream:     #f4efe6;   /* warm off-white */
  --cream-2:   #e9e0d1;   /* muted cream, borders on light */
  --sawdust:   #d9b98c;   /* tan ring/divider accent */
  --sawdust-2: #b7935f;   /* deeper tan */
  --hi-vis:    #ff6a13;   /* safety orange — CTA ONLY */
  --hi-vis-2:  #ff8438;   /* orange hover */
  --ink:       #1b140d;   /* text on light */
  --ink-soft:  #5c4f40;   /* muted text on light */
  --paper-dim: #cdbfa9;   /* muted text on dark */

  /* type scale: 17 / 20 / 24 / 32 / 44 / 64 */
  --t-body: 1.0625rem;
  --t-lg:   1.25rem;
  --t-xl:   1.5rem;
  --t-2xl:  2rem;
  --t-3xl:  2.75rem;
  --t-4xl:  4rem;

  --f-display: "Anton", "Public Sans", sans-serif;
  --f-body: "Public Sans", system-ui, sans-serif;
  --f-mono: "Spline Sans Mono", ui-monospace, monospace;

  /* spacing (8px grid) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 16px; --s-4: 24px;
  --s-5: 32px; --s-6: 48px; --s-7: 64px; --s-8: 96px;

  --maxw: 1140px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 18px 50px -20px rgba(0,0,0,.55);
  --shadow-sm: 0 8px 24px -12px rgba(0,0,0,.35);
  --section-pad: 96px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.02; letter-spacing: .01em; text-transform: uppercase; margin: 0 0 var(--s-3); }
h1 { font-size: clamp(2.75rem, 7vw, var(--t-4xl)); }
h2 { font-size: clamp(2rem, 5vw, var(--t-3xl)); }
h3 { font-size: var(--t-xl); letter-spacing: .02em; }
p { margin: 0 0 var(--s-3); max-width: 68ch; }
a { color: inherit; }
img, svg { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-4); }
.section { padding: var(--section-pad) 0; }
@media (max-width: 640px){ :root { --section-pad: 64px; } }

.eyebrow {
  font-family: var(--f-mono);
  font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--sawdust-2); margin: 0 0 var(--s-3); font-weight: 600;
}
.on-dark .eyebrow { color: var(--sawdust); }

.lede { font-size: var(--t-lg); color: var(--ink-soft); }
.on-dark .lede { color: var(--paper-dim); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--f-body); font-weight: 700; font-size: 1.05rem;
  padding: 15px 26px; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  min-height: 52px; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:focus-visible { outline: 3px solid var(--hi-vis); outline-offset: 3px; }
.btn-primary { background: var(--hi-vis); color: #17110a; box-shadow: 0 10px 22px -10px rgba(255,106,19,.7); }
.btn-primary:hover { background: var(--hi-vis-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: rgba(0,0,0,.06); }
.on-dark .btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bark) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(217,185,140,.18);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); font-family: var(--f-display); font-size: 1.35rem; letter-spacing: .03em; text-transform: uppercase; }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav-links { display: flex; align-items: center; gap: var(--s-4); list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--paper-dim); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--cream); }
.nav-cta { margin-left: var(--s-2); }
.nav-toggle { display: none; background: none; border: 0; color: var(--cream); cursor: pointer; padding: 8px; }
@media (max-width: 900px){
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bark-2); padding: var(--s-3); gap: var(--s-2);
    border-bottom: 1px solid rgba(217,185,140,.2); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 8px; }
  .nav-cta { margin: 6px 0 0; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; color: var(--cream); overflow: hidden;
  background:
    radial-gradient(1100px 520px at 82% -8%, rgba(31,74,48,.85), transparent 60%),
    linear-gradient(160deg, var(--forest) 0%, var(--bark) 62%);
}
.hero .rings-bg {
  position: absolute; right: -140px; top: 50%; transform: translateY(-50%);
  width: 720px; height: 720px; opacity: .5; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s-7); align-items: center; padding: var(--s-8) 0; position: relative; z-index: 1; }
.hero h1 { margin-bottom: var(--s-4); }
.hero h1 .hi { color: var(--hi-vis); }
.hero .trust-row { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-5); font-family: var(--f-mono); font-size: .82rem; letter-spacing: .04em; color: var(--sawdust); }
.hero .trust-row span { display: inline-flex; align-items: center; gap: 7px; }
@media (max-width: 900px){ .hero-grid { grid-template-columns: 1fr; gap: var(--s-5); padding: var(--s-7) 0; } .hero .rings-bg { opacity: .18; right: -220px; } }

/* ---------- calculator card ---------- */
.calc {
  background: var(--cream); color: var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--cream-2); overflow: hidden;
}
.calc-head { background: var(--bark-2); color: var(--cream); padding: var(--s-4); display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.calc-head h3 { margin: 0; color: var(--cream); font-size: 1.2rem; }
.calc-head .tag { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--bark); background: var(--sawdust); padding: 4px 9px; border-radius: 999px; font-weight: 600; }
.calc-body { padding: var(--s-4); }
.field { margin-bottom: var(--s-4); }
.field > label, .field-label { display: block; font-weight: 700; margin-bottom: var(--s-2); font-size: .98rem; }
.field-hint { font-size: .85rem; color: var(--ink-soft); margin: 0 0 var(--s-2); }
.opt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-2); }
.opt {
  border: 2px solid var(--cream-2); background: #fff; border-radius: var(--radius-sm);
  padding: 12px 14px; cursor: pointer; text-align: left; font: inherit; transition: border-color .12s, background .12s;
  min-height: 48px; display: flex; flex-direction: column; gap: 2px;
}
.opt:hover { border-color: var(--sawdust-2); }
.opt[aria-pressed="true"], .opt.selected { border-color: var(--hi-vis); background: #fff6ef; }
.opt .opt-t { font-weight: 700; }
.opt .opt-s { font-size: .82rem; color: var(--ink-soft); }
.opt:focus-visible { outline: 3px solid var(--hi-vis); outline-offset: 2px; }

.stepper { display: flex; align-items: center; gap: var(--s-3); }
.stepper button { width: 44px; height: 44px; border-radius: var(--radius-sm); border: 2px solid var(--cream-2); background: #fff; font-size: 1.4rem; cursor: pointer; line-height: 1; }
.stepper button:hover { border-color: var(--sawdust-2); }
.stepper output { font-family: var(--f-mono); font-size: 1.3rem; min-width: 2ch; text-align: center; }

.toggle-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; }
.toggle-row input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--hi-vis); }
.toggle-row label { font-weight: 600; }
.toggle-row .sub { font-weight: 400; color: var(--ink-soft); font-size: .85rem; display: block; }

.price-readout {
  background: var(--forest); color: var(--cream); border-radius: var(--radius-sm);
  padding: var(--s-4); margin-top: var(--s-3); text-align: center;
}
.price-readout .plabel { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sawdust); }
.price-readout .pval { font-family: var(--f-mono); font-weight: 700; font-size: 3rem; line-height: 1; margin: 6px 0; letter-spacing: -.01em; }
.price-readout .pnote { font-size: .85rem; color: var(--paper-dim); margin: 0; }
.price-readout.quote .pval { font-size: 2rem; }

/* ---------- generic sections ---------- */
.on-dark { background: var(--bark); color: var(--cream); }
.on-forest { background: linear-gradient(165deg, var(--forest) 0%, var(--bark) 100%); color: var(--cream); }
.on-dark h2, .on-forest h2, .on-dark h3, .on-forest h3 { color: var(--cream); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); align-items: start; }
@media (max-width: 820px){ .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--cream-2); border-radius: var(--radius);
  padding: var(--s-5); box-shadow: var(--shadow-sm);
}
.on-dark .card, .on-forest .card { background: var(--bark-2); border-color: rgba(217,185,140,.16); color: var(--cream); }
.card .ico { color: var(--hi-vis); width: 34px; height: 34px; margin-bottom: var(--s-3); }
.card h3 { margin-bottom: var(--s-2); }
.card p:last-child { margin-bottom: 0; }

/* two-track chooser */
.track { display: flex; flex-direction: column; }
.track .track-price { font-family: var(--f-mono); color: var(--hi-vis); font-weight: 700; font-size: 1.1rem; margin: var(--s-2) 0 var(--s-3); }
.track ul { list-style: none; padding: 0; margin: 0 0 var(--s-4); }
.track li { padding: 6px 0 6px 26px; position: relative; }
.track li::before { content: ""; position: absolute; left: 0; top: 13px; width: 12px; height: 12px; border: 2px solid var(--sawdust-2); border-radius: 50%; }
.track .btn { margin-top: auto; }

/* GEO block */
.geo {
  border-left: 4px solid var(--hi-vis); background: color-mix(in srgb, var(--sawdust) 22%, transparent);
  padding: var(--s-4) var(--s-5); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: var(--s-5) 0;
}
.geo p { margin: 0; font-size: 1.1rem; }
.on-dark .geo, .on-forest .geo { background: rgba(217,185,140,.1); }

/* pricing table */
.ptable { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.ptable caption { text-align: left; font-family: var(--f-mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); padding-bottom: var(--s-3); }
.ptable th, .ptable td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--cream-2); }
.ptable thead th { background: var(--forest); color: var(--cream); font-family: var(--f-body); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.ptable tbody tr:last-child td { border-bottom: 0; }
.ptable .price { font-family: var(--f-mono); font-weight: 700; color: var(--forest-2); white-space: nowrap; }
.ptable tbody tr:nth-child(even) { background: #faf7f1; }

/* FAQ */
.faq details { border: 1px solid var(--cream-2); border-radius: var(--radius-sm); background: #fff; margin-bottom: var(--s-2); overflow: hidden; }
.on-dark .faq details, .on-forest .faq details { background: var(--bark-2); border-color: rgba(217,185,140,.16); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: var(--s-3); align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); color: var(--hi-vis); font-size: 1.5rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq .faq-a { padding: 0 20px 18px; color: var(--ink-soft); }
.on-dark .faq .faq-a, .on-forest .faq .faq-a { color: var(--paper-dim); }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* proof / photos */
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
@media (max-width: 820px){ .photo-strip { grid-template-columns: 1fr 1fr; } }
.photo-slot {
  aspect-ratio: 4/3; border-radius: var(--radius-sm); background: repeating-linear-gradient(45deg, #ece3d4, #ece3d4 12px, #e4d9c6 12px, #e4d9c6 24px);
  border: 1px dashed var(--sawdust-2); display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); font-family: var(--f-mono); font-size: .78rem; text-align: center; padding: 12px;
}
.review { background: #fff; border: 1px solid var(--cream-2); border-radius: var(--radius); padding: var(--s-5); box-shadow: var(--shadow-sm); }
.review .stars { color: var(--hi-vis); letter-spacing: 2px; margin-bottom: var(--s-2); }
.review blockquote { margin: 0 0 var(--s-3); font-size: 1.1rem; }
.review cite { font-style: normal; font-weight: 700; }
.review cite span { display: block; font-weight: 400; color: var(--ink-soft); font-size: .9rem; }

/* stat band */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); text-align: center; }
@media (max-width: 820px){ .stat-band { grid-template-columns: 1fr 1fr; } }
.stat .n { font-family: var(--f-display); font-size: 3rem; color: var(--hi-vis); line-height: 1; }
.stat .l { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-dim); margin-top: 6px; }

/* ---------- multi-step funnel ---------- */
.funnel { max-width: 640px; margin: 0 auto; }
.funnel-card { background: #fff; border: 1px solid var(--cream-2); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.funnel-progress { display: flex; align-items: center; gap: 10px; padding: var(--s-4) var(--s-4) 0; }
.ring-track { flex: 1; height: 10px; background: var(--cream-2); border-radius: 999px; overflow: hidden; }
.ring-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--sawdust-2), var(--hi-vis)); transition: width .35s ease; }
.ring-count { font-family: var(--f-mono); font-size: .8rem; color: var(--ink-soft); white-space: nowrap; }
.funnel-body { padding: var(--s-5); }
.step { display: none; }
.step.active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.step h3 { margin-bottom: var(--s-4); font-size: var(--t-xl); }
.step .opt-grid { grid-template-columns: 1fr; }
@media (min-width: 560px){ .step .opt-grid.two { grid-template-columns: 1fr 1fr; } }
.funnel-nav { display: flex; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-5); }
.funnel-nav .btn-back { visibility: hidden; }
.funnel-nav .btn-back.show { visibility: visible; }
.input, textarea.input { width: 100%; padding: 13px 14px; border: 2px solid var(--cream-2); border-radius: var(--radius-sm); font: inherit; background: #fff; }
.input:focus { outline: 3px solid var(--hi-vis); outline-offset: 1px; border-color: var(--hi-vis); }
.input.invalid { border-color: #c0392b; }
.err { color: #c0392b; font-size: .85rem; margin-top: 4px; }
.funnel .quote-box { background: var(--forest); color: var(--cream); border-radius: var(--radius-sm); padding: var(--s-4); text-align: center; margin-bottom: var(--s-4); }
.funnel .quote-box .q { font-family: var(--f-mono); font-size: 2rem; font-weight: 700; }
.success { text-align: center; padding: var(--s-4) 0; }
.success .check { width: 64px; height: 64px; margin: 0 auto var(--s-4); color: var(--hi-vis); }

/* ---------- footer ---------- */
.site-footer { background: var(--bark); color: var(--paper-dim); padding: var(--s-8) 0 var(--s-5); border-top: 1px solid rgba(217,185,140,.16); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-5); margin-bottom: var(--s-6); }
@media (max-width: 820px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sawdust); margin: 0 0 var(--s-3); }
.site-footer a { color: var(--paper-dim); text-decoration: none; display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--cream); }
.footer-brand { color: var(--cream); }
.footer-legal { border-top: 1px solid rgba(217,185,140,.16); padding-top: var(--s-4); font-size: .85rem; display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: space-between; }

/* breadcrumbs */
.crumbs { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .06em; color: var(--paper-dim); padding: var(--s-3) 0; }
.crumbs a { color: var(--sawdust); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* sticky mobile CTA */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; padding: 10px 14px; background: color-mix(in srgb, var(--bark) 94%, transparent); backdrop-filter: blur(8px); border-top: 1px solid rgba(217,185,140,.2); }
.sticky-cta .btn { width: 100%; }
@media (max-width: 720px){ .sticky-cta.show { display: block; } body.has-sticky { padding-bottom: 76px; } }

/* consent banner */
.consent { position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 60; max-width: 560px; margin: 0 auto; background: var(--bark-2); color: var(--cream); border: 1px solid rgba(217,185,140,.25); border-radius: var(--radius); padding: var(--s-4); box-shadow: var(--shadow); display: none; }
.consent.show { display: block; }
.consent p { font-size: .9rem; color: var(--paper-dim); }
.consent .row { display: flex; gap: var(--s-2); margin-top: var(--s-3); }
.consent .btn { padding: 10px 18px; min-height: 44px; font-size: .95rem; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--hi-vis); color: #17110a; padding: 10px 16px; border-radius: 6px; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 8px; }

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.updated { font-family: var(--f-mono); font-size: .8rem; color: var(--ink-soft); }
.on-dark .updated, .on-forest .updated { color: var(--paper-dim); }
