/* ============================================================
   TalkStories Design System v3
   Tokens extracted directly from talkstories.ai (2026-03-11)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  /* — Backgrounds — */
  --bg-hero:          #015A51;   /* forest green — hero + closing CTA */
  --bg-dark:          #121315;   /* near-black — benefits/dark sections */
  --bg-card-dark:     rgba(255,255,255,0.04);   /* subtle but visible on dark */
  --bg-mint:          #B3DBD3;   /* light mint — testimonials section */
  --bg-footer:        #003F3A;   /* dark green — footer */
  --bg-card-light:    rgba(255,255,255,0.04);
  --bg-card-hover:    rgba(255,255,255,0.07);

  /* — Borders — */
  --border:           rgba(255,255,255,0.08);
  --border-strong:    rgba(255,255,255,0.14);
  --border-dark:      rgba(0,0,0,0.08);     /* for light sections */

  /* — Palette — */
  --teal:             #00D9CC;   /* accent: h1 spans, footer h2, brand only */
  --teal-dark:        #00b5a9;
  --purple:           #A584F9;   /* section pills background */
  --purple-text:      #1C1D20;   /* dark text on purple pill */
  --amber:            #F3B165;   /* h2 callout accent spans */
  --benefit-accent:   #AC7FE1;   /* benefit card h3 + icons */
  --mark-bg:          #E4DAFD;   /* testimonial highlight bg */
  --mark-text:        #542BBB;   /* testimonial highlight text */

  /* — Text — */
  --text-white:       #ffffff;
  --text-warm-gray:   #D5CBC5;   /* section descriptions on dark bg */
  --text-muted-dark:  #9ca3af;   /* secondary on dark */
  --text-dark:        #131313;   /* primary text on light sections */
  --text-dark-muted:  #555555;   /* secondary on light sections */
  --text-fineprint:   #CCE1DD;   /* fine print on green bg */

  /* — Typography — */
  --font-heading:     'Poppins', system-ui, sans-serif;
  --font-body:        'Inter', system-ui, sans-serif;

  /* — Scale (matches talkstories.ai exactly) — */
  --text-h1:          66px;
  --text-h1-lh:       75.9px;
  --text-h1-ls:       -0.75px;
  --text-h2:          46px;
  --text-h2-lh:       59.8px;
  --text-h2-ls:       -1px;
  --text-h3:          36px;
  --text-h3-lh:       50.4px;
  --text-body:        18px;
  --text-body-lh:     27px;
  --text-desc:        20px;
  --text-desc-lh:     40px;

  /* — Spacing — */
  --space-xs:   8px;    /* 0.5rem */
  --space-sm:   16px;   /* 1rem */
  --space-md:   24px;   /* 1.5rem */
  --space-lg:   32px;   /* 2rem - tightened from 40px */
  --space-xl:   48px;   /* 3rem - tightened from 64px */
  --space-2xl:  64px;   /* 4rem */
  --section-pad: 64px;  /* reduced from 100px - Hiten wants less space */

  /* — Radius — */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;   /* cards, testimonials — matches site exactly */
  --radius-pill: 20px;   /* nav links, section pills */
  --radius-full: 9999px;

  /* — Nav — */
  --nav-h: 64px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--text-body-lh);
  background: var(--bg-dark);
  color: var(--text-white);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; }

/* ── Nav ────────────────────────────────────────────────────── */
.ts-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(1, 90, 81, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
}
.ts-nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}
.ts-nav-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-white);
  letter-spacing: -0.01em;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ts-nav-logo-dot {
  width: 8px; height: 8px;
  background: var(--teal);
  border-radius: 50%;
  display: inline-block;
}
.ts-nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}
.ts-nav-links a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  line-height: 38px;
  padding: 0 var(--space-md);
  border-radius: var(--radius-pill);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  display: block;
}
.ts-nav-links a:hover { color: var(--text-white); background: rgba(255,255,255,0.08); }
.ts-nav-links a.active { color: var(--text-white); }
.ts-nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}
.ts-nav-demo {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  padding: 0 var(--space-md);
  line-height: 38px;
  border-radius: var(--radius-pill);
  transition: color 0.15s, background 0.15s;
}
.ts-nav-demo:hover { color: var(--text-white); background: rgba(255,255,255,0.08); }
.ts-btn-nav {
  padding: 0 var(--space-md);
  height: 38px;
  background: var(--teal);
  color: #000;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.ts-btn-nav:hover { background: var(--teal-dark); }

/* Hamburger */
.ts-nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.ts-nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: all 0.25s;
}
.ts-nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ts-nav-hamburger.open span:nth-child(2) { opacity: 0; }
.ts-nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.ts-nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: rgba(1, 90, 81, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  padding: var(--space-lg);
  gap: var(--space-sm);
  overflow-y: auto;
}
.ts-nav-mobile.open { display: flex; }
.ts-nav-mobile a {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: color 0.15s;
}
.ts-nav-mobile a:hover { color: var(--text-white); }

.ts-nav-mobile a.active {
  color: var(--teal);
  background: rgba(0,217,204,0.08);
  border-radius: 6px;
}

.ts-nav-mobile .ts-btn-primary { text-align: center; margin-top: var(--space-sm); }

/* ── Buttons ─────────────────────────────────────────────────── */

/* Primary: dark button — pops on any bg, teal only for accents/text (Refactoring UI #18) */
.ts-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-md);
  height: 44px;
  background: #1C1D20;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.ts-btn-primary:hover {
  background: #2d2f34;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* Secondary: ghost with visible border */
.ts-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-md);
  height: 44px;
  background: rgba(255,255,255,0.08);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.35);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.ts-btn-secondary:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.6);
}

/* Ghost: text link */
.ts-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--teal);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  transition: gap 0.15s;
}
.ts-btn-ghost:hover { gap: 0.6rem; }

/* ── Layout ──────────────────────────────────────────────────── */
.ts-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.ts-section {
  padding: var(--section-pad) 0;
}

/* Section backgrounds — rhythm: GREEN → DARK → MINT → GREEN → DARK GREEN */
.ts-section-dark  { background: var(--bg-dark); }
.ts-section-alt   { background: var(--bg-dark); }   /* alias */
.ts-section-mint  { background: var(--bg-mint); }   /* light — testimonials */
.ts-section-green { background: var(--bg-hero); }   /* closing CTA */

/* ── Typography ──────────────────────────────────────────────── */

/* Section pill — purple, above every h2 */
.ts-section-pill {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--purple-text);
  background: var(--purple);
  padding: 4px var(--space-sm);
  border-radius: var(--radius-pill);
  letter-spacing: 0.35px;
  margin-bottom: 20px;
}

/* Legacy eyebrow (still teal for direct use cases) */
.ts-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.35px;
  color: var(--purple-text);
  background: var(--purple);
  padding: 4px var(--space-sm);
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

/* H1 — 66px Poppins, tight lh (Refactoring UI: headlines ~1.1) */
.ts-h1 {
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: var(--text-h1-ls);
  color: var(--text-white);
  margin-bottom: 20px;
}
.ts-h1 .ts-teal,
.ts-h1 span.accent { color: var(--teal); }

/* H2 — 46px Poppins, tight lh */
.ts-h2 {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: var(--text-h2-ls);
  color: var(--text-white);
  margin-bottom: 0;
}
.ts-h2 .ts-callout { color: var(--amber); }   /* amber accent spans in h2 */
.ts-h2 .ts-teal    { color: var(--teal); }    /* teal accent spans in h2 */

/* H2 on mint/light sections */
.ts-section-mint .ts-h2 { color: var(--text-dark); }

/* H3 — 36px Poppins for benefit cards */
.ts-h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

/* Benefit card h3 gets purple accent */
.ts-benefit-card .ts-h3 { color: var(--benefit-accent); }

/* Lead / description text */
.ts-lead {
  font-family: var(--font-body);
  font-size: var(--text-desc);
  line-height: var(--text-desc-lh);
  color: var(--text-warm-gray);
}
.ts-section-mint .ts-lead { color: var(--text-dark-muted); }

/* Body text — 65ch max-width (Refactoring UI #8) */
.ts-body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--text-warm-gray);
  max-width: 65ch;
}
.ts-section-mint .ts-body { color: var(--text-dark-muted); }

/* Section description hgroup */
.ts-section-hgroup {
  margin-bottom: 50px;
}
.ts-section-hgroup .ts-h2 { margin-bottom: 16px; }
.ts-section-hgroup .ts-lead { max-width: 600px; }
.ts-section-hgroup.ts-center .ts-lead { margin: 0 auto; }

/* Utilities */
.ts-teal   { color: var(--teal); }
.ts-amber  { color: var(--amber); }
.ts-purple { color: var(--purple); }
.ts-center { text-align: center; }
.ts-center .ts-lead  { margin: 0 auto; }

/* ── Hero ────────────────────────────────────────────────────── */
.ts-hero {
  background: var(--bg-hero);
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 56px;
}
.ts-hero-inner {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.ts-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}
.ts-hero-note {
  font-size: 13px;
  color: var(--text-fineprint);
  margin-top: var(--space-sm);
}
.ts-hero .ts-h1 {
  font-size: 52px;
  line-height: 1.18;
}
.ts-hero .ts-lead {
  margin-top: 20px;
  color: rgba(255,255,255,0.85);
}

/* Trust strip */
.ts-trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-lg) 0 0;
}
.ts-trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-fineprint);
  font-size: 14px;
  font-weight: 500;
}
.ts-trust-item::before { content: '✓'; color: var(--teal); font-weight: 700; }

/* ── Pills ───────────────────────────────────────────────────── */
.ts-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 4px var(--space-sm);
  background: var(--purple);
  border-radius: var(--radius-pill);
  color: var(--purple-text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.35px;
}
.ts-pill-teal {
  background: var(--teal);
  color: #000;
}
.ts-pill-outline {
  background: rgba(165,132,249,0.12);
  border: 1px solid rgba(165,132,249,0.3);
  color: var(--purple);
}

/* ── Feature / Benefit Cards ─────────────────────────────────── */

/* Benefit card grid layout */
.ts-benefit-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 769px) {
  .ts-benefit-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
  }
}

.ts-benefit-card {
  background: var(--bg-card-dark);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 60px 80px 60px 60px;
  position: relative;
}
.ts-benefit-icon {
  width: 52px; height: 52px;
  background: var(--benefit-accent);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
}
.ts-benefit-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.ts-benefit-point {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-white);
}
.ts-benefit-point::before { content: '→'; color: var(--benefit-accent); font-size: 14px; }

/* General dark card — shadow over borders (Refactoring UI #16) */
.ts-card {
  background: rgba(255,255,255,0.05);
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.06);
  transition: box-shadow 0.15s, background 0.15s;
}
.ts-card:hover {
  background: rgba(255,255,255,0.07);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
}

/* Card on mint section */
.ts-section-mint .ts-card {
  background: var(--text-white);
  border-color: rgba(0,0,0,0.08);
}

/* ── Card Grids ──────────────────────────────────────────────── */
.ts-card-grid   { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-md); }
.ts-card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.ts-card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }

/* ── Testimonial Cards ───────────────────────────────────────── */
.ts-quote-card {
  background: var(--text-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
}

.ts-quote-card p {
  color: #1a1a1a;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.ts-quote-card p:last-child {
  margin-bottom: 0;
}
.ts-quote-author {
  color: #666;
  font-size: 14px;
  font-weight: 600;
}


/* Quote grid for testimonials */
.ts-quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: var(--space-lg);
}

.ts-quote-mark {
  font-size: 4rem;
  line-height: 1;
  color: var(--benefit-accent);
  font-family: Georgia, serif;
  display: block;
  margin-bottom: 12px;
  opacity: 0.6;
}
.ts-quote-text {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-dark);
  margin-bottom: 20px;
}
.ts-quote-text mark {
  background: var(--mark-bg);
  color: var(--mark-text);
  padding: 4px 7px;
  border-radius: 3px;
}
.ts-quote-attr {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark-muted);
}
.ts-star-row {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
  color: #f59e0b;
  font-size: 16px;
}

/* ── Section hgroup pattern ──────────────────────────────────── */
/* Usage: <div class="ts-shgroup ts-center">
     <span class="ts-section-pill">Label</span>
     <h2 class="ts-h2">Heading <span class="ts-callout">Accent</span></h2>
     <p class="ts-lead">Description</p>
   </div> */
.ts-shgroup { margin-bottom: 50px; }
.ts-shgroup .ts-h2 { margin-top: 0; margin-bottom: 16px; }
.ts-shgroup.ts-center .ts-lead { margin: 0 auto; }

/* ── Steps ───────────────────────────────────────────────────── */
.ts-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 700px;
  margin: 0 auto;
}
.ts-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: var(--space-md);
  align-items: start;
}
.ts-step-num {
  width: 56px; height: 56px;
  background: rgba(0, 217, 204, 0.1);
  border: 1px solid rgba(0, 217, 204, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--teal);
  flex-shrink: 0;
  grid-column: 1;
  grid-row: 1 / -1;
}
.ts-step > *:not(.ts-step-num) { grid-column: 2; }
.ts-step-note {
  font-size: 13px;
  color: var(--teal);
  margin-top: 6px;
  font-style: italic;
}

/* ── Comparison grid ─────────────────────────────────────────── */
.ts-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  max-width: 800px;
  margin: 0 auto;
}
.ts-compare-col-bad {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.ts-compare-col-good {
  background: rgba(0, 217, 204, 0.04);
  border: 1px solid rgba(0, 217, 204, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.ts-compare-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  display: block;
}
.ts-compare-col-bad  .ts-compare-label { color: var(--text-muted-dark); }
.ts-compare-col-good .ts-compare-label { color: var(--teal); }
.ts-compare-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  font-size: 16px;
  color: var(--text-warm-gray);
  margin-bottom: 10px;
  line-height: 1.5;
}
.ts-compare-col-bad  .ts-compare-item::before { content: '✗'; color: #f87171; flex-shrink: 0; margin-top: 2px; }
.ts-compare-col-good .ts-compare-item::before { content: '✓'; color: var(--teal); flex-shrink: 0; margin-top: 2px; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.ts-faq {
  display: flex;
  flex-direction: column;
  max-width: 720px;
  margin: 0 auto;
}
.ts-faq-item {
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) 0;
}
.ts-faq-q {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  color: var(--text-white);
  margin-bottom: 8px;
}
.ts-faq-a {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-warm-gray);
  line-height: 1.7;
}

/* ── Pricing ─────────────────────────────────────────────────── */
.ts-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  align-items: start;
}
.ts-pricing-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
}
.ts-pricing-card.featured {
  background: rgba(0, 217, 204, 0.06);
  border-color: var(--teal);
  border-width: 1.5px;
  box-shadow: 0 0 0 1px rgba(0,217,204,0.15), 0 8px 40px rgba(0,217,204,0.06);
}
.ts-pricing-card .featured-label {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.ts-stat-num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 8px;
}
.ts-price-period {
  font-size: 14px;
  color: var(--text-muted-dark);
  margin-top: 4px;
}
.ts-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: var(--space-md) 0;
}
.ts-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 15px;
  color: var(--text-warm-gray);
  line-height: 1.5;
}
.ts-feature-list li::before { content: '✓'; color: var(--teal); font-weight: 700; flex-shrink: 0; margin-top: 2px; }

/* ── Table (for engineers/security pages) ────────────────────── */
.ts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.ts-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text-muted-dark);
  border-bottom: 1px solid var(--border-strong);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ts-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-warm-gray);
  vertical-align: top;
  line-height: 1.5;
}
.ts-table tr:last-child td { border-bottom: none; }
.ts-table td:first-child { font-family: 'SF Mono', 'Fira Code', monospace; color: var(--teal); font-size: 14px; }

/* ── Footer ──────────────────────────────────────────────────── */
.ts-footer {
  background: var(--bg-footer);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 100px 0 30px;
}
.ts-footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: 140px;
}
.ts-footer-brand {
  font-family: var(--font-body);
}
.ts-footer-brand p {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  margin-top: 12px;
  line-height: 1.6;
  max-width: 28ch;
}
.ts-footer-col h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-sm);
}
.ts-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ts-footer-col a {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  transition: color 0.15s;
}
.ts-footer-col a:hover { color: var(--text-white); }
.ts-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ── Checklist (security page) ───────────────────────────────── */
.ts-checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.ts-check-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0 var(--space-sm);
  align-items: start;
  padding: var(--space-md);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
/* Number spans full height in col 1 */
.ts-check-num {
  grid-column: 1;
  grid-row: 1 / -1;
  width: 32px; height: 32px;
  background: rgba(0,217,204,0.1);
  border: 1px solid rgba(0,217,204,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 2px;
}
/* All siblings after check-num go in col 2 */
.ts-check-item > *:not(.ts-check-num) {
  grid-column: 2;
}
.ts-check-item > strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 4px;
  display: block;
}
.ts-check-item > p {
  font-size: 15px;
  color: var(--text-warm-gray);
  line-height: 1.6;
  margin: 0;
}

/* ── Slack mockup ────────────────────────────────────────────── */
.ts-slack-window {
  background: #1a1d21;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 15px;
}
.ts-slack-header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted-dark);
  font-weight: 500;
}
.ts-slack-channel { color: var(--text-white); }
.ts-slack-body { padding: var(--space-sm); display: flex; flex-direction: column; gap: 12px; }
.ts-slack-msg { display: flex; gap: 12px; align-items: flex-start; }
.ts-slack-avatar {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--purple), var(--teal));
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #000;
}
.ts-slack-msg-inner { flex: 1; }
.ts-slack-msg-name { font-weight: 600; font-size: 14px; color: var(--text-white); }
.ts-slack-msg-time { font-size: 11px; color: var(--text-muted-dark); margin-left: 8px; }
.ts-slack-msg-body { color: var(--text-warm-gray); margin-top: 2px; line-height: 1.5; font-size: 15px; }
.ts-bot-msg .ts-slack-avatar { background: linear-gradient(135deg, var(--teal), #00b5a9); }

/* ── Modal (for CTA forms) ───────────────────────────────────── */
.ts-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
}
.ts-modal-overlay.open { display: flex; }
.ts-modal {
  background: var(--bg-dark);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  max-width: 480px;
  width: 100%;
}
.ts-form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-sm); }
.ts-form-field label { font-size: 14px; font-weight: 500; color: var(--text-muted-dark); }
.ts-form-field input, .ts-form-field select {
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s;
}
.ts-form-field input:focus, .ts-form-field select:focus { border-color: var(--teal); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --text-h1: 52px; --text-h2: 38px; }
  .ts-hero .ts-h1 { font-size: 44px; }
}
@media (max-width: 900px) {
  .ts-card-grid-3, .ts-pricing-grid { grid-template-columns: 1fr 1fr; }
  .ts-footer-inner { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
  .ts-benefit-card { padding: 40px; }
}

/* ── Mobile: 768px and below ─────────────────────────────────── */
@media (max-width: 768px) {
  :root { --section-pad: 48px; --text-h2: 32px; }
  .ts-hero .ts-h1 { font-size: 40px; line-height: 1.15; margin-bottom: 32px; }
  
  /* Tighter typography across the board */
  .ts-h2 { font-size: 32px; line-height: 1.2; }
  .ts-h3 { font-size: 24px; line-height: 1.3; }
  .ts-lead { font-size: 18px; line-height: 1.6; }
  .ts-body { font-size: 16px; line-height: 1.6; }
  
  /* Tighter section spacing */
  .ts-section { padding: 48px 0; }
  .ts-container { max-width: 100%; }
  
  /* Button touch targets */
  .ts-btn-primary, .ts-btn-secondary, .ts-btn-ghost {
    min-height: 48px;
    padding: 12px 24px;
    font-size: 16px;
  }

  /* Nav */
  .ts-nav-links, .ts-nav-demo, .ts-btn-nav { display: none; }
  .ts-nav-hamburger { display: flex; }

  /* Left-align centered content on mobile — LukeW principle:
     centered body text requires finding a new start on every line.
     Only pills/CTAs stay centered. */
  .ts-center { text-align: left; }
  .ts-shgroup.ts-center { text-align: left; }
  .ts-shgroup.ts-center .ts-lead { margin: 0; }

  /* Pills stay centered only when truly standalone */
  .ts-shgroup.ts-center .ts-section-pill { display: inline-block; }

  /* Hero stays centered — it's short, intentional centering */
  .ts-hero-inner { text-align: center; }
  .ts-hero-inner .ts-lead { margin: 0 auto; }

  /* Section headings: left-align on mobile */
  .ts-section .ts-h2 { text-align: left; }
  .ts-section .ts-lead { text-align: left; max-width: 100%; }
  .ts-section .ts-body { max-width: 100%; }

  /* Keep CTA sections centered */
  .ts-section-green .ts-h2,
  .ts-section-green .ts-lead { text-align: center; }

  /* Grids → single column */
  .ts-card-grid-3, .ts-pricing-grid { grid-template-columns: 1fr; }
  .ts-card-grid-2 { grid-template-columns: 1fr; }
  .ts-card-grid { grid-template-columns: 1fr; }
  .ts-compare-grid { grid-template-columns: 1fr; }

  /* Cards */
  .ts-card { padding: var(--space-md); }
  .ts-benefit-card { padding: var(--space-md) var(--space-lg); }
  .ts-quote-card { padding: var(--space-md); }

  /* Pricing featured card — override absolute positioned label */
  .ts-pricing-card.featured { margin-top: 20px; }

  /* Steps: narrower number circle on mobile */
  .ts-steps { max-width: 100%; }
  .ts-step { column-gap: var(--space-sm); }
  .ts-step-num { width: 44px; height: 44px; font-size: 1rem; }

  /* Trust strip: stack on mobile */
  .ts-trust-strip { flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
  .ts-hero .ts-trust-strip { align-items: center; }

  /* FAQ */
  .ts-faq-q { font-size: 16px; }
  .ts-faq-a { font-size: 15px; }

  /* Footer */
  .ts-footer-inner { grid-template-columns: 1fr; margin-bottom: 40px; }
  .ts-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Hero */
  .ts-hero { padding-top: calc(var(--nav-h) + 40px) !important; padding-bottom: 48px !important; }

  /* Table: make scrollable */
  .ts-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ts-table { min-width: 480px; }
  /* Comparison grid - force single column */
  .ts-compare-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-md) !important;
  }
  
  /* Hero proof quote - more breathing room */
  .ts-hero-proof {
    margin-top: var(--space-lg) !important;
  }
  
  /* Trust strip - more vertical space */
  .ts-trust-strip {
    gap: 12px !important;
  }
  
  /* Cards grids - consistent spacing */
  .ts-card-grid,
  .ts-card-grid-2,
  .ts-card-grid-3,
  .ts-quote-grid {
    gap: var(--space-md) !important; /* 24px */
  }
  
  /* Pricing grid - more space between cards */
  .ts-pricing-grid {
    gap: var(--space-lg) !important; /* 32px */
  }
  
  /* Section headings - more space after */
  .ts-shgroup {
    margin-bottom: 40px !important;
  }
  
  /* FAQ items - more breathing room */
  .ts-faq-item {
    padding: var(--space-md) 0 !important;
  }
  

  /* Steps - more breathing room on mobile */
  .ts-steps {
    gap: 40px !important;
  }
  
  .ts-step {
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  
  .ts-step:last-child {
    border-bottom: none;
  }


}

/* ── Small mobile: 480px and below ──────────────────────────── */
@media (max-width: 480px) {
  :root { --section-pad: 40px; }
  .ts-hero .ts-h1 { font-size: 36px; }
  .ts-h2 { font-size: 28px; }
  .ts-h3 { font-size: 22px; }
  .ts-lead { font-size: 17px; }
  
  /* Even tighter section spacing on tiny screens */
  .ts-section { padding: 40px 0; }
  .ts-container { padding: 0 var(--space-sm); }
  .ts-nav-inner { padding: 0 var(--space-sm); }

  /* Hero CTA: full-width stack */
  .ts-hero-actions { flex-direction: column; width: 100%; }
  .ts-hero-actions .ts-btn-primary,
  .ts-hero-actions .ts-btn-secondary,
  .ts-hero-actions .ts-btn-ghost { width: 100%; justify-content: center; text-align: center; }

  /* Pricing */
  .ts-stat-num { font-size: 2.25rem; }

  /* Benefit cards */
  .ts-benefit-card { padding: 24px 20px; }
  .ts-benefit-icon { width: 44px; height: 44px; font-size: 1.2rem; }

  /* Checklist */
  .ts-check-item { padding: var(--space-sm); }

  /* Slack mockup */
  .ts-slack-window { font-size: 13px; }
  .ts-slack-avatar { width: 28px; height: 28px; font-size: 11px; }
}

/* ── Touch targets: minimum 44px on all interactive elements ── */
@media (hover: none) and (pointer: coarse) {
  .ts-btn-primary, .ts-btn-secondary, .ts-btn-ghost, .ts-btn-nav { min-height: 44px; }
  .ts-nav-links a, .ts-nav-mobile a { min-height: 44px; display: flex; align-items: center; }
  .ts-faq-q { min-height: 44px; display: flex; align-items: center; }
  .ts-nav-hamburger { min-height: 44px; min-width: 44px; justify-content: center; }
}


/* ═══════════════════════════════════════════
   R2: Refactoring UI polish pass
   ═══════════════════════════════════════════ */

/* Technique #5: letter-spacing for all-caps labels */
.ts-section-pill,
.ts-eyebrow {
  letter-spacing: 0.4px;
}

/* Technique #14: accent border on featured pricing card */
.ts-pricing-card.featured {
  box-shadow: 0 0 0 2px var(--teal), 0 8px 40px rgba(0,217,204,0.08);
}

/* Technique #9: deeper shadow on quote cards */
.ts-quote-card {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  transition: box-shadow 0.2s, transform 0.2s;
}
.ts-quote-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  transform: translateY(-2px);
}

/* Technique #11: overlap the proof pill above the stat-num */
.ts-pricing-card .featured-label {
  top: -13px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Benefit card hover lift */
.ts-benefit-card {
  transition: box-shadow 0.2s, transform 0.2s;
}
.ts-benefit-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transform: translateY(-3px);
}

/* Technique #1: visual hierarchy via color weight on section pills */
.ts-section-pill {
  box-shadow: 0 2px 8px rgba(165,132,249,0.25);
}

/* Step number improved contrast */
.ts-step-num {
  background: rgba(0,217,204,0.08);
  border: 1.5px solid rgba(0,217,204,0.35);
  font-size: 1.1rem;
  font-weight: 800;
}

/* Smoother FAQ interaction */
.ts-faq-item {
  transition: border-color 0.15s;
  cursor: default;
}
.ts-faq-item:hover {
  border-bottom-color: rgba(255,255,255,0.18);
}
.ts-faq-q {
  cursor: default;
}

/* Hero proof quote box */
.ts-hero-proof {
  margin: 1.5rem auto 0;
  padding: 1rem 1.5rem;
  background: rgba(0,217,204,0.06);
  border: 1px solid rgba(0,217,204,0.2);
  border-left: 3px solid var(--teal);
  border-radius: 10px;
  max-width: 520px;
  text-align: left;
}
.ts-hero-proof p { font-size: 15px; color: rgba(255,255,255,0.85); line-height: 1.55; }
.ts-hero-proof cite { font-size: 13px; color: var(--teal); font-weight: 600; font-style: normal; display: block; margin-top: 6px; }

/* Section dividers — subtle gradient lines between alternating sections */
.ts-section + .ts-section-dark::before,
.ts-section-dark + .ts-section::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  margin-bottom: var(--section-pad);
  margin-top: calc(-1 * var(--section-pad));
}

/* Compare grid polish */
.ts-compare-col-good {
  position: relative;
}
.ts-compare-col-good::before {
  content: '✓ Recommended';
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

/* Stat numbers with gradient */
.ts-stat-num {
  background: linear-gradient(135deg, var(--teal), #a8f0ec);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Trust strip items polish */
.ts-trust-item {
  padding: 4px 12px;
  background: rgba(0,217,204,0.06);
  border: 1px solid rgba(0,217,204,0.15);
  border-radius: 999px;
  font-size: 13px;
}

/* Checklist item hover */
.ts-check-item {
  transition: background 0.15s, border-color 0.15s;
}
.ts-check-item:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(0,217,204,0.2);
}

/* Better nav active state */
.ts-nav-links a.active {
  color: var(--teal);
  background: rgba(0,217,204,0.08);
}
