/* ============================================================
   Local Business Growth Stack — taste-skill funnel stylesheet
   Design read: direct-response funnel for local service owners
   (trust-first audience). Restrained editorial language:
   warm stone neutrals, one deep-green accent, Space Grotesk
   display + Instrument Sans body + IBM Plex Mono labels.
   Zero em-dashes, zero emoji, zero slop badges.
   Dials: VARIANCE 5 / MOTION 3 / DENSITY 3
   ============================================================ */

:root {
  --paper: #faf9f7;
  --paper-2: #f4f3f0;
  --ink: #1c1917;
  --ink-2: #57534e;
  --muted: #78716c;
  --line: #e7e5e4;
  --accent: #166534;
  --accent-strong: #14532d;
  --on-accent: #ffffff;
  --danger: #b91c1c;
  --success: #166534;
  --radius: 10px;
  --display: 'Space Grotesk', 'Archivo', Arial, sans-serif;
  --body: 'Instrument Sans', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141312;
    --paper-2: #1c1a19;
    --ink: #f5f5f4;
    --ink-2: #d6d3d1;
    --muted: #a8a29e;
    --line: #292524;
    --accent: #15803d;
    --accent-strong: #16a34a;
    --on-accent: #ffffff;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ===== Funnel chrome: slim progress strip ===== */
.funnel-top {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 10px 20px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
}
.funnel-top .brand {
  font-family: var(--display); font-weight: 700; font-size: 13px;
  letter-spacing: 0.01em; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.funnel-top .step-label {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
.funnel-top .steps { display: flex; gap: 3px; flex-shrink: 0; }
.funnel-top .dot {
  width: 26px; height: 3px; border-radius: 2px; background: var(--line);
  transition: background 0.2s ease;
}
.funnel-top .dot.on { background: var(--accent); }

/* ===== Layout ===== */
.funnel {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}
.funnel.narrow { max-width: 540px; }

.center { text-align: center; }
.muted { color: var(--muted); }

/* ===== Typography ===== */
h1, h2, h3 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 700;
}
h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.6rem);
  line-height: 1.08;
  margin: 14px 0 16px;
}
h2 {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  margin: 0 0 12px;
}
h3 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

p { margin-bottom: 14px; }
strong { font-weight: 600; color: var(--ink); }

.subhead {
  font-size: 1.05rem;
  color: var(--ink-2);
  max-width: 56ch;
  line-height: 1.6;
  margin-bottom: 20px;
}

mark {
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  padding: 0;
}

.lede {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
}

/* Section label: used at most once per 3 sections (eyebrow restraint) */
.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: inline-block;
  margin-bottom: 10px;
}

/* ===== Hero (asymmetric split on desktop) ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 36px;
}
.hero h1 { margin-top: 8px; }
.hero .subhead { margin-bottom: 24px; }
.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
@media (min-width: 760px) {
  .hero.split { grid-template-columns: 1.05fr 0.95fr; }
  .hero-media img { aspect-ratio: 3 / 4; max-height: 560px; }
}

/* ===== Video slot (honest placeholder) ===== */
.video-slot {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 28px 20px;
  text-align: center;
  margin: 24px 0;
}
.video-slot .play {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.video-slot .play::after {
  content: "";
  width: 0; height: 0;
  border-left: 10px solid var(--on-accent);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin-left: 3px;
}
.video-slot .cap {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ===== Lists ===== */
.bullets {
  list-style: none;
  margin: 18px 0 24px;
}
.bullets li {
  padding: 9px 0 9px 26px;
  position: relative;
  color: var(--ink-2);
  font-size: 0.98rem;
  border-top: 1px solid var(--line);
}
.bullets li:last-child { border-bottom: 1px solid var(--line); }
.bullets li::before {
  content: "";
  position: absolute; left: 2px; top: 17px;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--accent);
  opacity: 0.85;
}
.bullets li strong { color: var(--ink); }

/* ===== Stack rows (playbooks, gift items) ===== */
.stack-row {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.stack-row:last-of-type { border-bottom: 1px solid var(--line); }
.stack-row .head {
  display: flex; gap: 14px; align-items: baseline;
  margin-bottom: 6px;
}
.stack-row .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.stack-row h3 { margin: 0; font-size: 1.02rem; }
.stack-row p { margin: 0; font-size: 0.95rem; color: var(--ink-2); }

/* ===== Bonus row ===== */
.bonus-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  padding: 16px 18px;
  margin-bottom: 12px;
  display: flex; gap: 12px; justify-content: space-between;
  align-items: flex-start;
}
.bonus-row .b-title { font-family: var(--display); font-weight: 600; font-size: 0.98rem; }
.bonus-row .b-desc { font-size: 0.92rem; color: var(--ink-2); margin-top: 3px; }
.bonus-row .b-val {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  white-space: nowrap; padding-top: 2px;
}

/* ===== Story ===== */
.story p {
  font-size: 1.02rem;
  color: var(--ink-2);
  margin-bottom: 16px;
  max-width: 60ch;
}
.story p strong { color: var(--ink); }

/* ===== Capture / forms ===== */
.capture {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  padding: 26px 24px;
  margin: 20px 0;
}
.capture h3 { margin-bottom: 4px; }
.capture > p { font-size: 0.95rem; color: var(--ink-2); margin-bottom: 16px; }

.form-row { margin-bottom: 14px; }
.form-row label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-row input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.form-row input::placeholder { color: var(--muted); }
.form-row .hint { font-size: 0.85rem; color: var(--muted); margin-top: 5px; }

.form-error {
  display: none;
  font-size: 0.88rem;
  color: var(--danger);
  margin: 4px 0 10px;
}
.form-ok {
  display: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--success);
  padding: 8px 0;
}

.fine {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.5;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.005em;
  color: var(--on-accent);
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  padding: 15px 30px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn:hover { background: var(--accent-strong); }
.btn:active { transform: scale(0.98); }
.btn.small { padding: 11px 20px; font-size: 0.92rem; }
.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn.ghost:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.btn-wrap { margin: 22px 0 8px; }
.btn-guarantee {
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}

/* ===== Price anchor ===== */
.price-anchor {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px;
  margin: 22px 0;
  background: var(--paper-2);
}
.price-anchor .was {
  font-size: 1rem;
  color: var(--muted);
  text-decoration: line-through;
}
.price-anchor .now {
  font-family: var(--display);
  font-weight: 700;
  font-size: 3.2rem;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.price-anchor .meta {
  font-size: 0.9rem;
  color: var(--ink-2);
  margin-top: 6px;
}

/* Price rows (honest math) */
.price-rows {
  max-width: 420px;
  margin: 0 auto;
  font-size: 0.95rem;
}
.price-rows .pr {
  display: flex; justify-content: space-between;
  padding: 7px 0;
  color: var(--ink-2);
}
.price-rows .pr.total {
  border-top: 1.5px solid var(--ink);
  margin-top: 6px; padding-top: 10px;
  font-weight: 600; color: var(--ink);
}

/* ===== Guarantee ===== */
.guarantee {
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 22px;
  margin: 22px 0;
  background: color-mix(in srgb, var(--accent) 4%, var(--paper));
}
.guarantee h3 { margin-bottom: 6px; color: var(--ink); }
.guarantee p { font-size: 0.95rem; color: var(--ink-2); margin-bottom: 0; }
.guarantee .seal {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

/* ===== FAQ ===== */
.faq { margin: 14px 0 10px; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 14px 2px;
}
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  color: var(--ink);
  list-style: none;
  display: flex; justify-content: space-between; gap: 12px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  font-size: 0.93rem;
  color: var(--ink-2);
  margin: 10px 0 0;
  max-width: 55ch;
}

/* ===== Testimonial slot (honest reserved) ===== */
.testimonial-slot {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  color: var(--ink-2);
  font-size: 0.95rem;
  margin: 14px 0 20px;
}
.testimonial-slot strong { color: var(--ink); }

/* ===== P.S. ===== */
.ps {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 16px;
  margin: 24px 0 0;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.ps p { margin-bottom: 8px; }

/* ===== Footer ===== */
.funnel-footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 28px 20px 44px;
  border-top: 1px solid var(--line);
}
.disclosure {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 10px;
  max-width: 60ch;
}
.funnel-footer > div:last-child {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ===== Order summary ===== */
.order-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 18px 0;
  background: var(--paper-2);
}
.order-summary .os-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  margin-bottom: 4px;
}
.order-summary .os-name { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.order-summary .os-sub { font-size: 0.85rem; color: var(--muted); margin-bottom: 12px; }
.order-summary .os-price { font-family: var(--display); font-weight: 700; font-size: 1.4rem; color: var(--ink); }
.order-summary .os-row {
  display: flex; justify-content: space-between;
  font-size: 0.92rem;
  color: var(--ink-2);
  padding: 6px 0;
  border-top: 1px solid var(--line);
}
.order-summary .os-row.total { font-weight: 700; color: var(--ink); }
.order-summary .os-row .up { color: var(--accent); font-weight: 600; }
.order-summary .os-row .down { color: var(--danger); }

/* Order bump */
.order-bump {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 16px 0;
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--paper-2);
}
.order-bump .bump-copy { flex: 1; min-width: 0; }
.order-bump .bump-title { font-family: var(--display); font-weight: 600; font-size: 0.98rem; }
.order-bump .bump-desc { font-size: 0.9rem; color: var(--ink-2); margin-top: 3px; }
.order-bump .bump-check {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer;
}
.order-bump .bump-check .bump-price {
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--accent);
}
.order-bump input[type="checkbox"] {
  width: 22px; height: 22px;
  accent-color: var(--accent);
  cursor: pointer;
}

.total-line {
  text-align: center;
  font-family: var(--display);
  font-size: 1rem;
  margin: 14px 0 2px;
  color: var(--ink-2);
}
.total-line strong { font-size: 1.6rem; color: var(--ink); display: inline-block; margin-left: 4px; }

.no-thanks {
  display: block;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: underline;
  margin-top: 18px;
}
.no-thanks:hover { color: var(--ink-2); }

/* ===== Confirmation ===== */
.confirm-check {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.confirm-check::after {
  content: "";
  width: 20px; height: 11px;
  border-left: 3px solid var(--on-accent);
  border-bottom: 3px solid var(--on-accent);
  transform: rotate(-45deg) translate(1px, -2px);
}

.next-steps { margin: 8px 0 0; }
.next-steps li {
  padding: 10px 0 10px 26px;
  position: relative;
  color: var(--ink-2);
  font-size: 0.96rem;
  border-top: 1px solid var(--line);
  list-style: none;
}
.next-steps li:last-child { border-bottom: 1px solid var(--line); }
.next-steps li::before {
  content: "";
  position: absolute; left: 2px; top: 18px;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--accent);
  opacity: 0.85;
}

/* ===== Misc ===== */
.spacer { height: 28px; }
.gap-12 { margin-top: 12px; }
.gap-24 { margin-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
