/* ============================================================
   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%; }

/* ---------- 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: 1.5rem;
  min-height: 4.25rem;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
}
.wordmark-mascot { width: 2.2rem; flex: none; }
.wordmark-mascot svg { width: 100%; height: auto; }
.wordmark-text { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.wordmark-text em { font-style: normal; color: var(--clay); }
.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: 1rem; margin-left: auto; }
.nav-login {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9875rem;
  display: none;
}
.nav-login:hover { color: var(--ink); }
@media (min-width: 48rem) {
  .nav-links { display: flex; }
  .nav-actions { margin-left: 0; }
  .nav-login { display: inline; }
}

/* ---------- 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 { 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 (prefers-reduced-motion: no-preference) {
  .step:not(:last-child)::before { animation: tunnel-crawl-y 1.2s linear infinite; }
}
@keyframes tunnel-crawl-y { to { background-position: 0 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);
  }
  @media (prefers-reduced-motion: no-preference) {
    .step:not(:last-child)::before { animation-name: tunnel-crawl-x; }
  }
}
@keyframes tunnel-crawl-x { to { background-position: 1rem 0; } }

/* ---------- 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.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;
}
