/* ============================================================
   TextGopher marketing site - one stylesheet, mobile-first.
   Brand: warm earth. Terracotta clay, cream paper, deep brown ink.
   No frameworks, no external assets; system font stack.
   ============================================================ */

:root {
  /* palette */
  --clay: #b3591e;
  --clay-dark: #964a15;
  --clay-deep: #7c3c10;
  --clay-tint: #f3e0d1;
  --cream: #f7f4ef;
  --paper: #fffdf9;
  --sand: #efe8dc;
  --ink: #2b2620;
  --ink-soft: #6b6257;
  --line: #e4dccd;
  --fur: #8a6844;
  --fur-light: #dcc7a8;
  --moss: #567a46;

  /* type + rhythm */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 6px rgba(43, 38, 32, 0.05), 0 14px 34px rgba(43, 38, 32, 0.08);
  --shadow-lift: 0 4px 10px rgba(43, 38, 32, 0.07), 0 24px 54px rgba(43, 38, 32, 0.13);
  --wrap: 72rem;
  --wrap-narrow: 46rem;
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--clay-dark); }
a:hover { color: var(--clay); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap-narrow { max-width: var(--wrap-narrow); }

/* ---------- type ---------- */
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.022em; margin: 0 0 1rem; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 1.25rem + 2vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 0.75rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease,
              border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--clay); color: #fff; box-shadow: 0 3px 10px rgba(179, 89, 30, 0.32); }
.btn-primary:hover { background: var(--clay-dark); color: #fff; }
.btn-outline { border-color: var(--clay); color: var(--clay-dark); background: transparent; }
.btn-outline:hover { background: var(--clay-tint); color: var(--clay-deep); }
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { color: var(--clay-dark); }
.btn-cream { background: var(--cream); color: var(--clay-deep); }
.btn-cream:hover { background: #fff; color: var(--clay-deep); }
.btn-lg { padding: 0.9rem 2rem; font-size: 1.1rem; }
.btn-sm { padding: 0.45rem 1.1rem; font-size: 0.9375rem; }
.btn-block { display: block; width: 100%; }

/* ---------- cross-promo ribbon (link to the real-estate site) ---------- */
.crosspromo {
  background: var(--clay-tint);
  color: var(--clay-deep);
  font-size: 0.92rem;
  text-align: center;
  padding: 0.5rem 1rem;
}
.crosspromo a { color: var(--clay-dark); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.crosspromo a:hover { color: var(--clay); }

/* ---------- nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 239, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem 1.25rem;
  min-height: 4.25rem;
  flex-wrap: wrap;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.wordmark-mascot { width: 2.2rem; flex: none; }
.wordmark-mascot svg { width: 100%; height: auto; }
.wordmark-text { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.wordmark-text em { font-style: normal; color: var(--clay); }
.wordmark-tm {
  font-size: 0.5em;
  font-weight: 600;
  vertical-align: super;
  line-height: 0;
  margin-left: 0.08em;
}
.nav-links { display: none; gap: 1.75rem; margin-left: auto; }
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9875rem;
}
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 0.85rem; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.nav-login {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
  display: inline;
}
.nav-login:hover { color: var(--ink); }
.nav-actions .btn { white-space: nowrap; }
@media (max-width: 30rem) {
  .wordmark-text { font-size: 1.05rem; }
  .wordmark-mascot { width: 1.85rem; }
  .nav-actions { gap: 0.6rem; }
}
@media (min-width: 48rem) {
  .nav-links { display: flex; }
  .nav-actions { margin-left: 0; }
}

/* ---------- sections ---------- */
main section { padding: 4.5rem 0; }
@media (min-width: 48rem) { main section { padding: 6.5rem 0; } }
section > .wrap > h2 { max-width: 38rem; }

/* anchor offset under sticky nav */
#how, #pricing, #faq, #demo, #plans, #control, #revenue { scroll-margin-top: 5.5rem; }

/* ---------- hero ---------- */
.hero { padding-top: 3.5rem; }
.hero-inner {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}
.hero-copy .hero-sub {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}
.hero-sub strong { color: var(--clay-deep); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }
.hero-fineprint { margin-top: 1rem; font-size: 0.9rem; color: var(--ink-soft); }
@media (min-width: 56rem) {
  .hero { padding-top: 4.5rem; }
  .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 3rem; }
}

/* the phone demo */
.hero-demo {
  position: relative;
  max-width: 24rem;
  margin: 0 auto;
  padding-top: 4.3rem;      /* room for the mascot peeking over the top */
  padding-bottom: 3.2rem;   /* room for the lead card overlapping the bottom */
}
.hero-mascot {
  position: absolute;
  top: 0;
  left: 9%;
  width: 7rem;
  transform: rotate(-8deg);
  z-index: 0;
}
.phone {
  position: relative;
  z-index: 1;
  background: var(--ink);
  border-radius: 2.6rem;
  padding: 0.55rem;
  box-shadow: var(--shadow-lift);
}
.phone-notch {
  position: absolute;
  top: 0.55rem;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 1.4rem;
  background: var(--ink);
  border-radius: 0 0 1rem 1rem;
  z-index: 2;
}
.phone-header {
  background: #fff;
  border-radius: 2.1rem 2.1rem 0 0;
  padding: 1.9rem 1rem 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  border-bottom: 1px solid #efe9df;
}
.phone-avatar {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--clay);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.phone-contact { font-size: 0.8rem; font-weight: 600; color: var(--ink); }
.phone-thread {
  background: #fff;
  border-radius: 0 0 2.1rem 2.1rem;
  padding: 1rem 0.85rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.sms {
  margin: 0;
  max-width: 82%;
  padding: 0.55rem 0.8rem;
  border-radius: 1.15rem;
  font-size: 0.8125rem;
  line-height: 1.45;
}
.sms.in {
  align-self: flex-start;
  background: var(--sand);
  color: var(--ink);
  border-bottom-left-radius: 0.35rem;
}
.sms.out {
  align-self: flex-end;
  background: var(--clay);
  color: #fff;
  border-bottom-right-radius: 0.35rem;
}

/* Staggered arrival of the conversation: the no-JS fallback. With JS the
   thread types itself out (see marketing.js), so the stagger only applies
   when the html element never received the .js class. */
@media (prefers-reduced-motion: no-preference) {
  html:not(.js) .hero .phone-thread .sms {
    opacity: 0;
    transform: translateY(8px);
    animation: sms-in 0.45s ease forwards;
  }
  html:not(.js) .hero .phone-thread .sms:nth-child(1) { animation-delay: 0.25s; }
  html:not(.js) .hero .phone-thread .sms:nth-child(2) { animation-delay: 0.85s; }
  html:not(.js) .hero .phone-thread .sms:nth-child(3) { animation-delay: 1.45s; }
  html:not(.js) .hero .phone-thread .sms:nth-child(4) { animation-delay: 2.05s; }
  html:not(.js) .hero .phone-thread .sms:nth-child(5) { animation-delay: 2.65s; }
  html:not(.js) .hero .phone-thread .sms:nth-child(6) { animation-delay: 3.25s; }
  html:not(.js) .hero .phone-thread .sms:nth-child(7) { animation-delay: 3.85s; }
  html:not(.js) .lead-card { opacity: 0; animation: sms-in 0.5s ease 4.5s forwards; }
}
@keyframes sms-in {
  to { opacity: 1; transform: translateY(0); }
}

/* the contractor's side: lead alert card */
.lead-card {
  position: relative;
  z-index: 2;
  margin: -2.1rem 0 0 auto;
  width: min(16.5rem, 88%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--clay);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift);
  padding: 0.8rem 1rem;
}
.lead-card p { margin: 0; }
.lead-card-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}
.lead-tag {
  background: var(--clay);
  color: #fff;
  font-size: 0.66rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  letter-spacing: 0.08em;
}
.lead-card-line { font-size: 0.9rem; font-weight: 600; }
.lead-card-meta { font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.25rem; }
@media (min-width: 56rem) {
  .lead-card { margin-right: -2.5rem; }
}

/* ---------- problem stats ---------- */
.problem { background: var(--paper); border-block: 1px solid var(--line); }
.stat-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.stat-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
}
.stat-figure {
  font-size: clamp(2.4rem, 2rem + 2vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--clay);
  line-height: 1;
  margin: 0 0 0.6rem;
  font-variant-numeric: tabular-nums;
}
.stat-text { margin: 0; color: var(--ink-soft); }
@media (min-width: 48rem) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

/* ---------- how it works ---------- */
.steps {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  gap: 2.5rem;
  counter-reset: step;
}
.step { position: relative; padding-left: 4.25rem; }
.step-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--clay);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 10px rgba(179, 89, 30, 0.3);
}
.step h3 { margin-bottom: 0.4rem; }
.step p { margin: 0; color: var(--ink-soft); max-width: 30rem; }
/* The gopher tunnel: a dashed line connecting the steps. Drawn with a
   repeating gradient so the dashes can crawl along the tunnel; the crawl
   only runs when motion is welcome. */
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 1.4375rem;
  top: 3.4rem;
  bottom: -2.3rem;
  width: 3px;
  background-image: repeating-linear-gradient(
    180deg, var(--fur-light) 0 0.5rem, transparent 0.5rem 1rem);
}
@media (min-width: 56rem) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .step { padding-left: 0; padding-top: 4.25rem; }
  .step:not(:last-child)::before {
    left: 3.4rem;
    right: -1.6rem;
    top: 1.4375rem;
    bottom: auto;
    width: auto;
    height: 3px;
    background-image: repeating-linear-gradient(
      90deg, var(--fur-light) 0 0.5rem, transparent 0.5rem 1rem);
  }
}

/* ---------- pricing ---------- */
.founding-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  margin: 2.25rem 0 2rem;
}
.founding-strip p { margin: 0; font-size: 0.95rem; }
.founding-strip strong { color: #f0b489; }
.founding-badge {
  flex: none;
  background: var(--clay);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.promo-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(255, 255, 255, 0.14);
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  letter-spacing: 0.06em;
}

.billing-toggle {
  display: inline-flex;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem;
  margin-bottom: 2rem;
}
.billing-toggle button {
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 1.2rem;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.billing-toggle button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(43, 38, 32, 0.14);
}
.toggle-note { font-size: 0.75rem; font-weight: 700; color: var(--moss); margin-left: 0.25rem; }

.plan-grid {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}
.plan-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
}
.plan-highlight {
  border: 2px solid var(--clay);
  box-shadow: var(--shadow-lift);
}
.plan-flag {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--clay);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-name { margin-bottom: 0.15rem; }
.plan-blurb { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1.25rem; }
.plan-price { margin-bottom: 1.25rem; min-height: 4.6rem; }
.price-figure {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.price-per { font-size: 1.05rem; font-weight: 600; color: var(--ink-soft); }
.price-note { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.15rem; }
/* the toggle: server renders both prices; a data attribute picks one */
.plan-grid .price-annual { display: none; }
.plan-grid[data-billing="annual"] .price-annual { display: block; }
.plan-grid[data-billing="annual"] .price-monthly { display: none; }

.plan-features {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  flex-grow: 1;
}
.plan-features li {
  position: relative;
  padding: 0.32rem 0 0.32rem 1.7rem;
  font-size: 0.9675rem;
}
.plan-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0.32rem;
  color: var(--moss);
  font-weight: 800;
}
.plan-fineprint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 0.85rem 0 0;
}
.pricing-more { margin-top: 2.25rem; font-weight: 600; }
@media (min-width: 56rem) {
  .plan-grid { grid-template-columns: repeat(3, 1fr); }
  .plan-highlight { transform: scale(1.03); }
}

/* ---------- comparison table (pricing page) ---------- */
.page-head { padding-bottom: 3.5rem; }
.page-head .page-sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 42rem; margin-bottom: 0.5rem; }
.page-head h1 { max-width: 46rem; }

.compare { background: var(--paper); border-block: 1px solid var(--line); }
.table-scroll { overflow-x: auto; margin-top: 2rem; -webkit-overflow-scrolling: touch; }
.compare-table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.compare-table th, .compare-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.compare-table thead th {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  border-bottom: 2px solid var(--ink);
}
.compare-table tbody th[scope="row"] { font-weight: 600; color: var(--ink-soft); width: 34%; }
.compare-table td { font-weight: 600; font-variant-numeric: tabular-nums; }
.compare-table .col-highlight { background: var(--clay-tint); }
.th-flag {
  display: inline-block;
  background: var(--clay);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 0.35rem;
}
.row-note { font-size: 0.8rem; font-weight: 500; color: var(--ink-soft); }
.check { color: var(--moss); font-weight: 800; font-size: 1.05rem; }
.dash { color: var(--line); }

/* ---------- FAQ accordion ---------- */
.faq-list { margin-top: 2rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q { margin: 0; font-size: inherit; }
.faq-q button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: left;
  color: var(--ink);
  background: transparent;
  border: 0;
  padding: 1.15rem 0.25rem;
  cursor: pointer;
}
.faq-q button:hover { color: var(--clay-dark); }
.faq-chevron {
  flex: none;
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2.5px solid var(--clay);
  border-bottom: 2.5px solid var(--clay);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-right: 0.25rem;
}
.faq-item.open .faq-chevron { transform: rotate(225deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-inner p {
  margin: 0;
  padding: 0 2.5rem 1.25rem 0.25rem;
  color: var(--ink-soft);
}

/* ---------- final CTA ---------- */
.cta-final {
  background: var(--clay);
  background: linear-gradient(160deg, var(--clay) 0%, var(--clay-deep) 100%);
  color: var(--cream);
}
.cta-final-inner { text-align: center; }
.cta-final h2 { color: #fff; }
.cta-final p { color: rgba(247, 244, 239, 0.85); font-size: 1.15rem; margin-bottom: 1.75rem; }
.cta-mascot { width: 5.5rem; margin: 0 auto 1.25rem; }
/* the hat blends into the terracotta band - swap it to cream there */
.cta-mascot .hat { fill: var(--cream); }
.cta-mascot .hat-brim { fill: #e2d5bd; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding: 3.5rem 0 2rem; }
.footer-inner {
  display: grid;
  gap: 2.25rem;
  padding-bottom: 2.5rem;
}
.footer-brand .wordmark-text { color: var(--cream); }
.footer-brand p { color: rgba(247, 244, 239, 0.6); margin: 0.5rem 0 0; font-size: 0.95rem; }
.footer-col h4 {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.5);
}
.footer-col a {
  display: block;
  color: rgba(247, 244, 239, 0.85);
  text-decoration: none;
  padding: 0.22rem 0;
  font-size: 0.95rem;
}
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-legal {
  border-top: 1px solid rgba(247, 244, 239, 0.15);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
}
.footer-legal p { margin: 0; font-size: 0.82rem; color: rgba(247, 244, 239, 0.5); }
@media (min-width: 48rem) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1.2fr; }
}

/* ---------- legal pages ---------- */
.legal { padding: 4rem 0 5.5rem; }
.legal h1 { margin-bottom: 0.35rem; }
.legal-date { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.35rem; margin: 2.5rem 0 0.75rem; }
.legal p, .legal li { color: #474037; }
.legal ul { padding-left: 1.35rem; margin: 0 0 1rem; }
.legal li { margin-bottom: 0.6rem; }

/* ============================================================
   Enhancements: self-typing threads, reveals, live demo tabs,
   testimonials + marquee, and the signup page. Same brand, same
   tokens; every animation collapses under prefers-reduced-motion.
   ============================================================ */

/* ---------- self-typing SMS threads ---------- */
.sms.typing {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 1.9rem;
  padding: 0.55rem 0.85rem;
}
.typing-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--ink-soft);
}
.sms.out .typing-dot { background: rgba(255, 255, 255, 0.85); }
@media (prefers-reduced-motion: no-preference) {
  .typing-dot { animation: typing-bounce 1s ease-in-out infinite; }
  .typing-dot:nth-child(2) { animation-delay: 0.15s; }
  .typing-dot:nth-child(3) { animation-delay: 0.3s; }
}
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-3px); opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .phone-thread .sms { transition: opacity 0.3s ease, transform 0.3s ease; }
  .js .sms-enter { opacity: 0; transform: translateY(8px); }
  .js .lead-card { transition: opacity 0.5s ease, transform 0.5s ease; }
  .js .lead-card.is-waiting { opacity: 0; transform: translateY(8px); }
}

.thread-controls { margin: 0.9rem 0 0; text-align: center; }
.hero-demo .thread-controls { margin-top: 0.75rem; }
.thread-replay {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.thread-replay:hover { color: var(--clay-dark); border-color: var(--clay); }

/* ---------- scroll reveals ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s ease-out, transform 0.45s ease-out;
  }
  .js .reveal:nth-child(2) { transition-delay: 0.08s; }
  .js .reveal:nth-child(3) { transition-delay: 0.16s; }
  .js .reveal:nth-child(4) { transition-delay: 0.24s; }
  .js .reveal.revealed { opacity: 1; transform: translateY(0); }
}

/* ---------- live demo ---------- */
.demo { background: var(--paper); border-block: 1px solid var(--line); }
.section-sub { color: var(--ink-soft); font-size: 1.05rem; max-width: 40rem; margin: 0 0 1.5rem; }
.demo-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.75rem 0 2rem; }
.demo-tabs button {
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.demo-tabs button:hover { color: var(--clay-dark); border-color: var(--clay); }
.demo-tabs button[aria-selected="true"] {
  background: var(--clay);
  border-color: var(--clay);
  color: #fff;
  box-shadow: 0 3px 10px rgba(179, 89, 30, 0.3);
}
.demo-stage { display: flex; flex-direction: column; align-items: center; }
.demo-thread {
  height: 24rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* ---------- testimonials + trade marquee ---------- */
.quote-grid { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.quote-card {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
}
/* placeholder cards stay visually honest until real quotes land */
.quote-card[data-placeholder] { border-style: dashed; box-shadow: none; background: transparent; }
.quote-card blockquote {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  font-size: 0.975rem;
  flex-grow: 1;
}
.quote-card blockquote::before {
  content: "\201C";
  display: block;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--clay-tint);
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.quote-card figcaption strong { display: block; }
.quote-card figcaption span { color: var(--ink-soft); font-size: 0.85rem; }
@media (min-width: 48rem) {
  .quote-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

.trade-marquee {
  position: relative;
  overflow: hidden;
  margin-top: 3.25rem;
  border-block: 1px solid var(--line);
  padding: 0.9rem 0;
}
.marquee-track { display: flex; width: max-content; }
.marquee-run {
  flex: none;
  white-space: nowrap;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.marquee-run i { font-style: normal; color: var(--clay); padding: 0 0.7rem; }
@media (prefers-reduced-motion: no-preference) {
  .js .marquee-track { animation: marquee-scroll 30s linear infinite; }
}
.trade-marquee.paused .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll { to { transform: translateX(-50%); } }
.marquee-toggle {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
}
.marquee-toggle:hover { color: var(--clay-dark); border-color: var(--clay); }

/* ---------- founding strip link ---------- */
.founding-link {
  margin-left: auto;
  color: #f0b489;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}
.founding-link:hover { color: #fff; text-decoration: underline; }

/* ---------- signup ---------- */
.signup-grid { display: grid; gap: 2rem; margin-top: 2.5rem; align-items: start; }
@media (min-width: 56rem) {
  .signup-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 2.5rem; }
}
.signup-card, .summary-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.75rem;
}
.summary-card { padding: 1.75rem 1.5rem; }
.signup-heading { font-size: 1.05rem; margin: 0 0 1rem; }
.signup-card .signup-heading:not(:first-child) { margin-top: 2rem; }
.signup-card .billing-toggle { margin-bottom: 1rem; }

.plan-picker { display: grid; gap: 0.6rem; }
.plan-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.plan-option:hover { border-color: var(--clay); }
.plan-option.selected, .plan-option:has(input:checked) {
  border-color: var(--clay);
  box-shadow: 0 0 0 1px var(--clay);
  background: #fff;
}
.plan-option input { accent-color: var(--clay); flex: none; width: 1.05rem; height: 1.05rem; }
.plan-option-body { flex: 1; min-width: 0; }
.plan-option-name { display: block; font-weight: 700; }
.plan-option-meta { display: block; color: var(--ink-soft); font-size: 0.85rem; }
.plan-option-price { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-picker .price-annual { display: none; }
.plan-picker[data-billing="annual"] .price-annual { display: inline; }
.plan-picker[data-billing="annual"] .price-monthly { display: none; }
.summary-card .price-annual { display: none; }
.summary-card[data-billing="annual"] .price-annual { display: block; }
.summary-card[data-billing="annual"] .price-monthly { display: none; }
.summary-plan-name { font-weight: 800; font-size: 1.15rem; margin: 0 0 0.35rem; }
.summary-price { margin-bottom: 1rem; }
.summary-price .price-figure { font-size: 2.2rem; }
.summary-card .plan-features { margin-bottom: 0; }

.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 700; font-size: 0.9375rem; margin-bottom: 0.35rem; }
.field-optional { font-weight: 500; color: var(--ink-soft); font-size: 0.8rem; }
.field input, .field select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.8rem;
}
.field select { appearance: auto; }
.field input:focus-visible, .field select:focus-visible {
  outline: 3px solid rgba(179, 89, 30, 0.4);
  outline-offset: 0;
  border-color: var(--clay);
}
.field-hint { font-size: 0.8rem; color: var(--ink-soft); margin: 0.35rem 0 0; }
.field-error { font-size: 0.85rem; font-weight: 600; color: #a13022; margin: 0.35rem 0 0; }
.field.invalid input, .field.invalid select { border-color: #a13022; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 32rem) { .field-row { grid-template-columns: 1fr 1fr; } }

.form-alert {
  background: #f7e5df;
  border: 1px solid #dfb3a4;
  color: #7c2d1d;
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
}
.signup-card .btn[disabled] { opacity: 0.65; cursor: default; }
.signup-summary .founding-strip { margin: 1.25rem 0 0; }
.signup-trust { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.signup-trust li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.7rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.signup-trust li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0.3rem;
  color: var(--moss);
  font-weight: 800;
}

/* ============================================================
   v2 copy restructure: pain, opportunity summary, distinction,
   control cards, custom plan card, founding promo badge, and the
   plain-language pricing facts. Same palette, type, and card
   language as v1; no existing component styles changed.
   ============================================================ */

/* ---------- pain (replaces the stat grid) ---------- */
.pain-copy { max-width: 38rem; margin-top: 1.75rem; }
.pain-copy p { color: var(--ink-soft); font-size: 1.1rem; margin: 0 0 1rem; }
.pain-question {
  font-size: clamp(1.6rem, 1.3rem + 1.6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--clay);
  margin: 1.75rem 0 0;
}

/* ---------- demo: opportunity summary card ---------- */
.demo-stage { gap: 2rem; }
.demo-phone-col { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 24rem; }
.opportunity-card {
  width: min(24rem, 100%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--clay);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift);
  padding: 1.25rem 1.4rem;
}
.opportunity-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}
.opportunity-fields { margin: 0; }
.opportunity-fields > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}
.opportunity-fields dt { font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); }
.opportunity-fields dd { margin: 0; font-size: 0.9rem; font-weight: 600; }
.opportunity-action {
  margin: 0.9rem 0 0;
  font-weight: 800;
  color: var(--clay-deep);
}
.opportunity-note { margin: 0.6rem 0 0; font-size: 0.8rem; color: var(--ink-soft); }
@media (min-width: 56rem) {
  .demo-stage { flex-direction: row; justify-content: center; align-items: flex-start; gap: 3rem; }
  .opportunity-card { margin-top: 2.5rem; }
}

/* ---------- competitive distinction ---------- */
.distinct-copy { max-width: 38rem; margin-top: 1.75rem; }
.distinct-copy p { color: var(--ink-soft); font-size: 1.1rem; margin: 0 0 1rem; }
.distinct-copy p:last-child { margin-bottom: 0; }

/* ---------- control and safety ---------- */
.control { background: var(--paper); border-block: 1px solid var(--line); }
.control-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.control-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
}
.control-card h3 { margin-bottom: 0.5rem; }
.control-card p { margin: 0; color: var(--ink-soft); }
@media (min-width: 48rem) {
  .control-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

/* ---------- founding promo badge on the Solo card ---------- */
.plan-promo {
  display: block;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  line-height: 1.55;
}
.plan-promo .founding-badge { display: inline-block; margin: 0 0.35rem 0.3rem 0; }
.plan-promo strong { color: #f0b489; }

/* ---------- custom plan card (no public price) ---------- */
.price-figure-custom {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-soft);
}

/* ---------- plain-language pricing facts ---------- */
.pricing-facts { margin-top: 2.5rem; }
.pricing-facts-title { font-size: 1.15rem; margin: 0 0 1.25rem; }
.facts-grid {
  display: grid;
  gap: 1rem;
  margin: 0;
}
.fact {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
}
.fact dt { font-weight: 800; font-size: 0.9375rem; margin-bottom: 0.3rem; }
.fact dd { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
@media (min-width: 40rem) { .facts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .facts-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- test-before-trust: /demo live page + homepage promo ---------- */
.live-steps {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}
.live-step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.4rem;
}
.live-step[hidden] { display: none; }
.live-step h2 {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.1rem;
}
.live-step-num {
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--clay);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 10px rgba(179, 89, 30, 0.3);
}
.live-step form { max-width: 26rem; }
/* Honeypot: parked far off-canvas, never display:none (some bots skip
   hidden inputs). Humans never see or tab into it. */
.hp-field {
  position: absolute;
  left: -6000px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.live-number { margin: 0 0 0.75rem; }
.live-number a {
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--clay-deep);
}
.live-number a:hover { color: var(--clay); }
.live-instructions { margin: 0 0 0.9rem; color: var(--ink-soft); max-width: 34rem; }
.live-session-meta { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }
.live-session-meta code {
  font-weight: 700;
  color: var(--ink);
  background: var(--sand);
  border-radius: 6px;
  padding: 0.1rem 0.4rem;
}
.live-reset {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.85rem;
  color: var(--clay-dark);
  text-decoration: underline;
  cursor: pointer;
}
.live-reset:hover { color: var(--clay); }
.live-status {
  font-weight: 700;
  margin: 0 0 1.25rem;
  padding-left: 1.3rem;
  position: relative;
}
.live-status::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--fur-light);
}
.live-status[data-status="waiting"]::before { background: var(--fur-light); }
.live-status[data-status="engaged"]::before { background: var(--moss); }
.live-status[data-status="finished"]::before { background: var(--moss); }
.live-status[data-status="expired"]::before { background: #a13022; }
@media (prefers-reduced-motion: no-preference) {
  .live-status[data-status="waiting"]::before,
  .live-status[data-status="engaged"]::before { animation: live-pulse 1.6s ease-in-out infinite; }
}
@keyframes live-pulse { 50% { opacity: 0.35; } }
.live-stage { display: flex; flex-direction: column; align-items: center; }
.live-stage .demo-thread { min-height: 12rem; max-height: 24rem; overflow-y: auto; }
.live-thread-empty {
  margin: auto 0;
  padding: 1.5rem 0.75rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}
.live-card .live-pending { color: var(--ink-soft); font-weight: 500; font-style: italic; }
.live-cta {
  margin-top: 3rem;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem 1.5rem;
}
.live-cta[hidden] { display: none; }
.live-cta h2 { margin-bottom: 0.5rem; }
.live-cta p { color: var(--ink-soft); margin: 0 0 1.5rem; }
.live-cta .plan-fineprint { margin-top: 1rem; }
@media (min-width: 56rem) {
  .live-stage { flex-direction: row; justify-content: center; align-items: flex-start; gap: 2.5rem; }
  .live-stage .opportunity-card { margin-top: 1.5rem; }
}

/* homepage promo section (renders only when DEMO_ENABLED) */
.try-live { background: var(--paper); border-block: 1px solid var(--line); }
.try-live-inner { text-align: center; }
.try-live-copy {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 38rem;
  margin: 0 auto 1.75rem;
}

/* ============================================================
   v3 product proof + capability bands: dashboard-mirroring
   mockups (.appshot), the timestamped live-test receipt, the
   four-up control/revenue card grids, and the recovery snapshot.
   The mockups borrow the dashboard's own palette (dashboard.css)
   so the homepage shows what the product actually looks like.
   ============================================================ */

/* ---------- appshot: a framed product-screen mockup ---------- */
.appshot, .cap-chips {
  /* the dashboard palette, scoped to the mockup components */
  --tg-sand: #f5efe4;
  --tg-paper: #fffcf6;
  --tg-line: #e6dcc9;
  --tg-bark: #7a6a55;
  --tg-clay: #b0622d;
  --tg-clay-dark: #8a4a1f;
  --tg-clay-soft: #f3e2d2;
  --tg-sage: #5f7a52;
  --tg-sage-soft: #e4ecdf;
  --tg-brick: #b3402e;
  --tg-brick-soft: #f6e2de;
}
.appshot {
  width: min(26rem, 100%);
  background: var(--tg-sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 1.1rem 1.2rem 1.2rem;
}
.appshot-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}
.appshot-tag {
  background: var(--tg-paper);
  border: 1px solid var(--tg-line);
  color: var(--tg-bark);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
}
.appshot-sub { margin: -0.35rem 0 0.85rem; font-size: 0.82rem; color: var(--ink-soft); }
.appshot-note { margin: 0.8rem 0 0; font-size: 0.8rem; color: var(--ink-soft); }
@media (min-width: 56rem) {
  .demo-stage .appshot { margin-top: 2.5rem; }
}

/* the opportunity card, exactly as the dashboard renders it */
.tg-lead-card {
  background: var(--tg-paper);
  border: 1px solid var(--tg-line);
  border-left: 4px solid var(--tg-clay);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(43, 38, 32, 0.06);
  padding: 0.8rem 0.9rem;
}
.tg-lead-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; }
.tg-lead-name { font-weight: 700; font-size: 0.95rem; }
.tg-lead-time { color: var(--tg-bark); font-size: 0.8rem; white-space: nowrap; }
.tg-lead-problem { margin-top: 0.3rem; font-size: 0.92rem; }
.tg-lead-sub { color: var(--tg-bark); font-size: 0.85rem; margin-top: 0.15rem; }
.tg-next-row { margin-top: 0.5rem; }
.tg-next-chip {
  display: inline-block;
  background: var(--tg-clay-soft);
  color: var(--tg-clay-dark);
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
}
.tg-next-chip.urgent { background: var(--tg-brick); color: #fff; }
.tg-lead-badges { display: flex; gap: 0.35rem; margin-top: 0.55rem; flex-wrap: wrap; }
.tg-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  background: var(--tg-sand);
  color: var(--tg-bark);
}
.tg-badge-qualified { background: var(--tg-sage-soft); color: var(--tg-sage); }
.tg-badge-urgent { background: var(--tg-brick-soft); color: var(--tg-brick); }
.tg-badge-dim { background: var(--tg-sand); color: var(--tg-bark); }
.tg-badge-outcome { background: var(--tg-clay-soft); color: var(--tg-clay-dark); }

/* ---------- live product test: the timestamped receipt ---------- */
.receipt {
  max-width: 34rem;
  margin-top: 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.4rem;
  display: grid;
  gap: 0.85rem;
}
.receipt-row {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 0.9rem;
  align-items: start;
}
.receipt-time {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-top: 0.4rem;
}
.receipt-event {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
  padding-top: 0.25rem;
}
.receipt-msg {
  margin: 0;
  width: fit-content;
  max-width: 94%;
  padding: 0.55rem 0.85rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
}
.receipt-msg.in { background: var(--sand); border-bottom-left-radius: 0.3rem; }
.receipt-msg.out {
  background: var(--clay);
  color: #fff;
  justify-self: end;
  border-bottom-right-radius: 0.3rem;
}
.receipt-caption { margin: 1rem 0 0; font-size: 0.85rem; color: var(--ink-soft); max-width: 34rem; }

/* ---------- four-up capability grids ---------- */
@media (min-width: 48rem) {
  .control-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64rem) {
  .control-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.cap-grid { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.cap-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem 1.5rem;
}
.cap-card h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.cap-card p { margin: 0; color: var(--ink-soft); font-size: 0.975rem; }
.cap-card .cap-chips { margin-top: 0.75rem; display: flex; gap: 0.4rem; flex-wrap: wrap; }
@media (min-width: 48rem) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (min-width: 64rem) {
  .cap-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- revenue band: recovery snapshot + team line ---------- */
.recovery-shot { width: 100%; max-width: 46rem; margin-top: 2rem; }
.tg-stat-grid {
  display: grid;
  gap: 1rem 1.25rem;
  background: var(--tg-paper);
  border: 1px solid var(--tg-line);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}
.tg-stat { display: grid; gap: 0.15rem; align-content: start; }
.tg-stat-label {
  color: var(--tg-bark);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tg-stat-value { font-size: 1.45rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.tg-stat-sub { color: var(--tg-bark); font-size: 0.78rem; }
@media (min-width: 40rem) {
  .tg-stat-grid { grid-template-columns: repeat(2, 1fr); }
}
.revenue-team {
  margin: 2rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-soft);
  max-width: 38rem;
}

/* ============================================================
   v4 landing refinement - one governed opportunity, shown once.
   Three visual layers:
     marketing (cream, warm)  ·  product (white panels, crisp
     borders, neutral labels)  ·  action (rust: primary buttons,
     one next action, urgency, selected + active state only).
   No autoplay, no marquee, no decorative loops; every value is
   backed by the real product (fields, statuses, provenance).
   ============================================================ */

:root {
  --pp-surface: #ffffff;
  --pp-line: #e2d8c6;
  --pp-line-strong: #d3c7b1;
  --pp-label: #7a6f60;
  --radius-lg: 20px;
  --urgent: #b3402e;
  --urgent-soft: #f6e2de;
  --ok: #567a46;
  --ok-soft: #e7efe1;
}

/* ---------- section rhythm: alternate cream / warm paper ---------- */
.problem, .demo, .control, .outcome { background: var(--paper); border-block: 1px solid var(--line); }
.compare-band, .product, .livetest { background: var(--cream); }
#product { scroll-margin-top: 5.5rem; }

/* ============================================================
   Opportunity card - the product artifact, one visual system for
   urgency, status, owner, source, missing details, next action.
   ============================================================ */
.opp-card {
  background: var(--pp-surface);
  border: 1px solid var(--pp-line-strong);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(43, 38, 32, 0.05), 0 18px 40px rgba(43, 38, 32, 0.10);
  padding: 1.25rem 1.35rem 1.35rem;
}
.opp-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.opp-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pp-label);
}
.opp-status {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--pp-line);
  background: var(--sand);
  color: var(--ink-soft);
  white-space: nowrap;
}
.opp-status-follow { background: var(--clay-tint); color: var(--clay-deep); border-color: transparent; }
.opp-headline {
  margin: 0.7rem 0 0.6rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.opp-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.85rem; padding: 0; list-style: none; }
.opp-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: var(--sand);
  color: var(--ink-soft);
}
.opp-tag-urgent { background: var(--urgent-soft); color: var(--urgent); }
.opp-fields { margin: 0 0 0.85rem; padding: 0; }
.opp-fields > div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}
.opp-fields dt { margin: 0; font-size: 0.8rem; font-weight: 700; color: var(--pp-label); }
.opp-fields dd { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.opp-block { margin: 0 0 0.85rem; }
.opp-block-h {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pp-label);
}
.opp-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.28rem; }
.opp-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--ink);
}
.opp-list li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--ok);
}
.opp-list-missing li { color: var(--ink-soft); }
.opp-list-missing li::before { background: transparent; border: 1.5px solid var(--fur-light); top: 0.5em; }
.opp-source {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  color: var(--pp-label);
  padding-top: 0.4rem;
  border-top: 1px dashed var(--pp-line);
}
.opp-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--clay);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
}
.opp-next-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.opp-next-value { font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; }
.opp-safety {
  margin: 0.7rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink-soft);
  padding-left: 1.1rem;
  position: relative;
}
.opp-safety::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ok);
  font-weight: 800;
}

/* ---------- hero: opportunity dominant, conversation secondary ---------- */
.hero-demo {
  position: relative;
  max-width: 26rem;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.hero-opp { position: relative; z-index: 2; }
.hero-phone { margin: 0; }
.mini-phone {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.95rem 1rem;
}
.mini-phone-h {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.mini-thread { display: flex; flex-direction: column; gap: 0.4rem; }
.mini-thread .sms { max-width: 85%; font-size: 0.8rem; }
.hero-phone-note { margin: 0.7rem 0 0; font-size: 0.82rem; color: var(--ink-soft); }
@media (min-width: 56rem) {
  .hero-demo { max-width: none; margin: 0; }
}

/* ---------- static trade demo: opportunity first, phone second ---------- */
.demo-stage { display: grid; gap: 1.25rem; align-items: start; }
.demo-opp { order: -1; }
.demo-phone { align-self: start; }
.demo-phone .mini-thread { max-height: none; }
@media (min-width: 56rem) {
  .demo-stage { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 2rem; }
}
.demo-tabs button[aria-selected="true"] {
  background: var(--clay);
  border-color: var(--clay);
  color: #fff;
}

/* ============================================================
   Sharp comparison - two columns, TextGopher visibly the answer.
   ============================================================ */
.vs-grid { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.vs-col {
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.35rem;
  border: 1px solid var(--line);
}
.vs-basic { background: transparent; }
.vs-tg { background: var(--pp-surface); border-color: var(--clay); box-shadow: var(--shadow); }
.vs-col h3 {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.vs-basic h3 { color: var(--ink-soft); }
.vs-tg h3 { color: var(--clay-deep); }
.vs-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.vs-col li { position: relative; padding-left: 1.6rem; font-size: 0.975rem; }
.vs-basic li { color: var(--ink-soft); }
.vs-basic li::before {
  content: "\2013";
  position: absolute; left: 0; top: -0.05em;
  color: var(--fur-light); font-weight: 800; font-size: 1.1rem;
}
.vs-tg li { font-weight: 600; }
.vs-tg li::before {
  content: "\2713";
  position: absolute; left: 0; top: 0;
  color: var(--ok); font-weight: 800;
}
.vs-note {
  margin: 1.75rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  max-width: 44rem;
}
@media (min-width: 48rem) {
  .vs-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

/* ============================================================
   Control panel - you decide what TextGopher can do.
   ============================================================ */
.panel-grid { display: grid; gap: 1.25rem; margin-top: 2.25rem; }
.panel-col {
  background: var(--pp-surface);
  border: 1px solid var(--pp-line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.25rem;
}
.panel-ask { border-top: 3px solid var(--clay); }
.panel-h {
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pp-label);
}
.panel-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.panel-list li { position: relative; padding-left: 1.5rem; font-size: 0.95rem; font-weight: 600; }
.panel-may li::before, .panel-controls li::before {
  content: "\2713";
  position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 800;
}
.panel-ask li::before {
  content: "";
  position: absolute; left: 0.1rem; top: 0.42em;
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
  border: 2px solid var(--clay);
}
.control-note {
  margin: 1.75rem 0 0;
  max-width: 44rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}
@media (min-width: 48rem) {
  .panel-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

/* ============================================================
   Flagship product proof - one cohesive interface.
   ============================================================ */
.product-shell {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.25rem;
}
.product-main, .product-side { display: grid; gap: 1.1rem; align-content: start; }
.pp-block {
  background: var(--pp-surface);
  border: 1px solid var(--pp-line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.pp-label {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pp-label);
}
.pp-label.pp-ok { color: var(--ok); }
.pp-label.pp-no { color: var(--urgent); }
.pp-msg .sms { max-width: 100%; font-size: 0.9rem; }
.pp-headline { margin: 0 0 0.6rem; font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; }
.pp-fields { margin: 0; padding: 0; }
.pp-fields > div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.6rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
}
.pp-fields > div:last-child { border-bottom: 0; }
.pp-fields dt { margin: 0; font-size: 0.8rem; font-weight: 700; color: var(--pp-label); }
.pp-fields dd { margin: 0; font-size: 0.9rem; font-weight: 600; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.35rem 0.5rem; }
.pp-src { font-size: 0.72rem; font-weight: 600; color: var(--pp-label); font-style: italic; }
.pp-missing { color: var(--ink-soft); }
.pill {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.5rem;
  border-radius: 5px;
  background: var(--sand);
  color: var(--ink-soft);
}
.pill-urgent { background: var(--urgent-soft); color: var(--urgent); }
.pp-two { display: grid; gap: 1.1rem; }
.pp-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.4rem; }
.pp-list li { position: relative; padding-left: 1.4rem; font-size: 0.9rem; }
.pp-list-ok li::before {
  content: "\2713"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 800;
}
.pp-list-no li { color: var(--ink-soft); }
.pp-list-no li::before {
  content: "\00d7"; position: absolute; left: 0.1rem; top: -0.05em; color: var(--urgent); font-weight: 800; font-size: 1.05rem;
}
.pp-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.pp-chip {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--clay-deep);
  background: var(--clay-tint);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}
.pp-fine { margin: 0.75rem 0 0; font-size: 0.8rem; color: var(--pp-label); }
@media (min-width: 34rem) {
  .pp-two { grid-template-columns: 1fr 1fr; }
}

/* the dominant one-next-action card */
.pp-next-card {
  background: var(--clay);
  background: linear-gradient(160deg, var(--clay) 0%, var(--clay-deep) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.3rem;
  box-shadow: var(--shadow-lift);
}
.pp-next-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}
.pp-next-big { margin: 0 0 0.4rem; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.pp-next-sub { margin: 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.85); }
.pp-side-block {
  background: var(--pp-surface);
  border: 1px solid var(--pp-line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.pp-status-track { margin: 0 0 0.6rem; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pp-status-track li {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink-soft);
  border: 1px solid transparent;
}
.pp-status-track li.on { background: var(--clay-tint); color: var(--clay-deep); }
.pp-status-note { margin: 0; font-size: 0.82rem; color: var(--ink-soft); }
.pp-timeline { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.pp-timeline li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.88rem;
  color: var(--ink);
}
.pp-timeline li::before {
  content: "";
  position: absolute; left: 0.15rem; top: 0.45em;
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--ok);
}
.pp-timeline li:not(:last-child)::after {
  content: "";
  position: absolute; left: 0.37rem; top: 1.1em; bottom: -0.5rem;
  width: 1.5px; background: var(--line);
}
.pp-timeline li.pending { color: var(--ink-soft); }
.pp-timeline li.pending::before { background: transparent; border: 1.5px solid var(--fur-light); }
@media (min-width: 60rem) {
  .product-shell { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr); gap: 1.5rem; }
}

/* ============================================================
   Outcome flow + recovery snapshot (four figures kept apart).
   ============================================================ */
.recovery-shot {
  width: 100%;
  max-width: 48rem;
  margin: 2.25rem 0 0;
  background: var(--pp-surface);
  border: 1px solid var(--pp-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.4rem;
}
.recovery-title {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pp-label);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.recovery-tag {
  background: var(--sand);
  color: var(--ink-soft);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
}
.recovery-shot .stat-grid {
  display: grid;
  gap: 1rem 1.25rem;
  margin: 0;
}
.recovery-shot .stat { display: grid; gap: 0.15rem; align-content: start; padding: 0; background: none; border: 0; }
.stat-label {
  color: var(--pp-label);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stat-value { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-sub { color: var(--ink-soft); font-size: 0.78rem; }
.stat-strong .stat-value { color: var(--clay-deep); }
.stat-strong .stat-label { color: var(--clay-deep); }
.outcome-team {
  margin: 2rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  max-width: 42rem;
}
@media (min-width: 40rem) {
  .recovery-shot .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 62rem) {
  .recovery-shot .stat-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- founding note (single, near pricing) ---------- */
.founding-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 1.75rem 0 0;
  padding: 0.85rem 1.1rem;
  background: var(--pp-surface);
  border: 1px solid var(--pp-line);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.founding-note strong { color: var(--clay-deep); }
.founding-note .promo-code { background: var(--sand); color: var(--ink); }

/* ---------- livetest receipt tone ---------- */
.livetest .receipt { margin-top: 2rem; }
