/* ================================================================
   TOOLBOX — Marketing homepage styles
   Built on the Toolbox design tokens in colors_and_type.css.
   ================================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--tb-font-sans);
  color: var(--tb-text);
  background: var(--tb-bg-warm);
  font-size: var(--tb-fs-body);
  line-height: var(--tb-lh-relaxed);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Serif italic accent (matches the frames) ---------- */
.serif-italic {
  font-family: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--tb-orange);
  letter-spacing: -0.005em;
  /* Instrument Serif ships single-weight; thicken it slightly so it holds its
     own next to the bold sans display type. */
  -webkit-text-stroke: 0.6px currentColor;
  text-stroke: 0.6px currentColor;
  paint-order: stroke fill;
}

/* ---------- Eyebrow / type helpers ---------- */
.eyebrow {
  margin: 0 0 16px;
  font-size: var(--tb-fs-eyebrow);
  font-weight: var(--tb-fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tb-tr-wide);
  color: var(--tb-orange);
}

.display {
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0;
  color: var(--tb-text);
  text-wrap: balance;
}
.display .serif-italic { font-size: 1.08em; line-height: 0.95; }

.h1 {
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
  color: var(--tb-text);
  text-wrap: balance;
}
.h1 .serif-italic { font-size: 1.05em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  border-radius: var(--tb-r-pill);
  font-weight: var(--tb-fw-semibold);
  font-size: var(--tb-fs-lg);
  letter-spacing: -0.005em;
  transition: transform var(--tb-dur-fast) var(--tb-ease),
              background var(--tb-dur-base) var(--tb-ease),
              box-shadow var(--tb-dur-base) var(--tb-ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--tb-orange);
  color: var(--tb-text-on-brand);
  box-shadow: var(--tb-shadow-brand);
}
.btn-primary:hover { background: var(--tb-orange-600); }
.btn-primary:active { transform: scale(0.98); }
.btn-sm { height: 40px; padding: 0 18px; font-size: var(--tb-fs-sm); }
.btn-ghost { color: var(--tb-orange); padding: 0 12px; height: 52px; }
.btn-ghost:hover { color: var(--tb-orange-600); }
.btn-fill { width: 100%; }

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(45, 55, 72, 0.06);
}
.header-inner {
  display: flex; align-items: center; gap: 32px;
  height: 76px;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 44px; width: auto; }

.primary-nav {
  display: flex; align-items: center; gap: 28px;
  margin-left: 16px;
  flex: 1;
}
.primary-nav a {
  font-size: var(--tb-fs-body);
  font-weight: var(--tb-fw-medium);
  color: var(--tb-text);
  transition: opacity var(--tb-dur-fast) var(--tb-ease);
}
.primary-nav a:hover { opacity: 0.7; }
.header-cta { height: 44px; padding: 0 22px; font-size: var(--tb-fs-body); }

.menu-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--tb-r-md);
  color: var(--tb-text);
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.display-stack {
  display: block;
  margin-top: 24px;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.15;
}
.display-stack > span { display: block; }
.hero-sub {
  margin: 28px 0 32px;
  font-size: var(--tb-fs-lg);
  color: var(--tb-text-muted);
  max-width: 36ch;
}

/* peach blob behind hero phone */
.peach-blob {
  position: absolute; pointer-events: none; z-index: 0;
  background: var(--tb-orange-100);
  border-radius: 50%;
}
.peach-blob--hero {
  width: 640px; height: 640px;
  right: -160px; top: -120px;
}
.peach-blob--aichat {
  width: 540px; height: 540px;
  right: -120px; top: -80px;
}
.peach-blob--cta {
  width: 760px; height: 760px;
  right: -200px; top: -260px;
  opacity: 0.9;
}

/* Store badges */
.store-badges {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.store-badges--center { justify-content: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--tb-text-strong);
  color: #fff;
  padding: 10px 18px 10px 14px;
  border-radius: 14px;
  transition: transform var(--tb-dur-fast) var(--tb-ease), opacity var(--tb-dur-base) var(--tb-ease);
}
.store-badge:hover { transform: translateY(-1px); }
.store-badge:active { transform: scale(0.98); }
.store-badge-glyph { display: inline-flex; }
.store-badge-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.store-badge-pre { font-size: 10px; opacity: 0.7; letter-spacing: 0.04em; text-transform: uppercase; }
.store-badge-name { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.store-badge--sm { padding: 8px 14px 8px 12px; }
.store-badge--sm .store-badge-name { font-size: 14px; }

/* ================================================================
   HERO VISUAL — photo card + floating diagnosis result (matches frame 1)
   ================================================================ */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}
.hero-photo-card {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--tb-shadow-lg);
  background: #efe7df;
}
.hero-photo-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero-photo-badge {
  position: absolute;
  top: 18px; left: 18px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  border-radius: var(--tb-r-pill);
}
.hero-photo-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--tb-orange);
  box-shadow: 0 0 0 4px rgba(255, 107, 74, 0.25);
  animation: rec-pulse 1.6s ease-in-out infinite;
}
@keyframes rec-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 74, 0.45); }
  50%      { box-shadow: 0 0 0 6px rgba(255, 107, 74, 0); }
}

/* ================================================================
   HERO PHONE — abbreviated low-risk diagnosis page in a phone frame
   ================================================================ */
.hero-phone {
  position: absolute;
  right: -28px;
  bottom: -88px;
  width: 248px;
  aspect-ratio: 248 / 510;
  background: #0c0d10;
  border-radius: 38px;
  padding: 8px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.12) inset,
    0 0 0 1.5px #1a1c20,
    0 30px 50px -20px rgba(20, 18, 16, 0.45),
    0 12px 24px -8px rgba(20, 18, 16, 0.18);
  z-index: 3;
  transform: rotate(-3deg);
  transform-origin: bottom right;
}
.hero-phone-island {
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 22px;
  background: #050608;
  border-radius: 12px;
  z-index: 4;
}
.hero-phone-screen {
  position: relative;
  width: 100%; height: 100%;
  background: var(--tb-bg-warm);
  border-radius: 30px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.hero-phone-status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 22px 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--tb-text-strong);
  letter-spacing: -0.01em;
}
.hero-phone-status-icons {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--tb-text-strong);
}
.hero-phone-status-icons svg { display: block; }

.hero-phone-navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 14px 10px;
}
.hero-phone-nav-back,
.hero-phone-nav-more {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--tb-text-strong);
}
.hero-phone-nav-more {
  gap: 2px;
}
.hero-phone-nav-more span {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--tb-text-strong);
}
.hero-phone-nav-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--tb-orange);
  padding: 6px 14px;
  border-radius: var(--tb-r-pill);
  box-shadow: 0 2px 6px rgba(255, 107, 74, 0.35);
}

.hero-phone-body {
  flex: 1;
  display: flex; flex-direction: column;
  padding: 4px 14px 12px;
  gap: 8px;
}

.diag-risk {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  padding: 4px 10px 4px 4px;
  background: var(--tb-safe-bg);
  border-radius: var(--tb-r-pill);
}
.diag-risk-icon {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--tb-safe);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.diag-risk-tag {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1F7A2E;
}
.diag-risk-label {
  font-size: 11px;
  font-weight: 700;
  color: #1F7A2E;
}

.diag-meta {
  margin: 4px 0 -2px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tb-text-muted);
}
.diag-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.15;
  color: var(--tb-text-strong);
}
.diag-summary {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--tb-text-muted);
}

.diag-paths {
  margin-top: 4px;
  display: flex; flex-direction: column; gap: 6px;
}
.diag-path {
  background: var(--tb-bg);
  border-radius: 12px;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 2px;
  align-items: center;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
  border: 1px solid var(--tb-divider);
}
.diag-path--primary {
  border-color: var(--tb-orange-200);
  background: linear-gradient(180deg, #FFF5F0 0%, var(--tb-bg) 60%);
}
.diag-path-icon {
  grid-row: 1 / 3;
  width: 22px; height: 22px;
  border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
}
.diag-path-icon--diy { background: var(--tb-orange-100); color: var(--tb-orange); }
.diag-path-icon--pro { background: var(--tb-pro-bg); color: var(--tb-pro); }
.diag-path-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--tb-text-strong);
  letter-spacing: -0.01em;
}
.diag-path-cost {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--tb-text-strong);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.diag-path-meta {
  font-size: 10px;
  color: var(--tb-text-muted);
  grid-column: 2 / 3;
}
.diag-path-cta,
.diag-path-link {
  font-size: 10px;
  font-weight: 700;
  text-align: right;
  grid-column: 3 / 4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.diag-path-cta { color: var(--tb-orange); }
.diag-path-link { color: var(--tb-text-muted); }

.diag-refine {
  margin-top: auto;
  display: grid;
  grid-template-columns: 24px 1fr 10px;
  gap: 8px;
  align-items: center;
  padding: 9px 11px;
  background: var(--tb-bg);
  border-radius: 10px;
  border: 1px dashed var(--tb-orange-200);
}
.diag-refine-icon {
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tb-orange-100);
  color: var(--tb-orange);
  border-radius: 7px;
}
.diag-refine-text { display: flex; flex-direction: column; line-height: 1.2; }
.diag-refine-title { font-size: 11px; font-weight: 700; color: var(--tb-text-strong); }
.diag-refine-sub { font-size: 10px; color: var(--tb-text-muted); margin-top: 1px; }
.diag-refine-chev {
  font-size: 14px; color: var(--tb-text-subtle); line-height: 1;
  font-weight: 600;
}

.hero-phone-home {
  position: absolute;
  left: 50%; bottom: 6px;
  transform: translateX(-50%);
  width: 88px; height: 4px;
  border-radius: 4px;
  background: var(--tb-text-strong);
  opacity: 0.85;
}

/* Legacy floating card classes (unused now, kept as no-ops) */
.hero-result, .hero-result-head, .hero-result-title,
.hero-result-summary, .hero-result-paths, .hero-result-path,
.hero-result-path-icon, .hero-result-path-icon--diy,
.hero-result-path-icon--pro, .hero-result-path-label,
.hero-result-path-meta, .hero-result-path-cost {
  /* no-op */
}

/* Risk + tier pieces (kept for the floating diagnosis card) */
.diag-eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--tb-orange);
  text-transform: uppercase;
}
.risk-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--tb-r-pill);
}
.risk-pill--amber { background: var(--tb-heat-bg); color: var(--tb-heat); }
.risk-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tier-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tier {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: var(--tb-r-sm);
  background: var(--tb-bg);
  border: 1px solid var(--tb-border);
  font-size: 10px;
  font-weight: 600;
  color: var(--tb-text-muted);
  text-align: center;
}
.tier-dot { width: 8px; height: 8px; border-radius: 50%; }
.tier--safe .tier-dot { background: var(--tb-safe); }
.tier--amber .tier-dot { background: var(--tb-heat); }
.tier--danger .tier-dot { background: var(--tb-danger); }
.tier--active {
  background: var(--tb-heat-bg);
  border-color: var(--tb-heat-border);
  color: var(--tb-heat);
}

/* ================================================================
   AI CHAT + PROS visuals (App Store frame crops)
   ================================================================ */
.aichat-visual, .pros-visual {
  position: relative; z-index: 2;
  display: flex; justify-content: center;
}
.pros-visual img {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
}

/* ================================================================
   AI CHAT — hand-built phone frames (replaces frame-aichat.png)
   ================================================================ */
.ai-phones {
  position: relative;
  width: 100%;
  max-width: 520px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 36px 6px;
}
.ai-phone {
  position: relative;
  width: 220px;
  flex-shrink: 0;
  background: #1d1d1f;
  border-radius: 36px;
  padding: 8px;
  box-shadow:
    0 22px 48px -22px rgba(45, 55, 72, 0.42),
    0 2px 6px rgba(45, 55, 72, 0.08);
}
.ai-phone--left  { transform: rotate(-3deg) translateY(-14px); margin-right: -18px; z-index: 2; }
.ai-phone--right { transform: rotate(3deg)  translateY(14px);  margin-left:  -18px; z-index: 1; }

/* Dynamic Island */
.ai-phone-notch {
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 72px; height: 20px;
  background: #000;
  border-radius: 999px;
  z-index: 4;
}

/* Status bar */
.ai-phone-status {
  position: absolute;
  top: 19px;
  left: 28px; right: 28px;
  z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
  color: #1d1d1f;
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
}
.ai-phone-time { font-variant-numeric: tabular-nums; }
.ai-phone-status-icons { display: inline-flex; align-items: center; gap: 4px; color: #1d1d1f; }
.ai-phone-battery {
  position: relative;
  display: inline-block;
  width: 22px; height: 10px;
  border: 1px solid rgba(29, 29, 31, 0.45);
  border-radius: 3px;
  padding: 1px;
  margin-left: 1px;
}
.ai-phone-battery::after {
  content: '';
  position: absolute;
  right: -3px; top: 50%;
  transform: translateY(-50%);
  width: 1.5px; height: 4px;
  background: rgba(29, 29, 31, 0.45);
  border-radius: 0 1px 1px 0;
}
.ai-phone-battery-fill {
  display: block;
  width: 70%; height: 100%;
  background: #1d1d1f;
  border-radius: 1px;
}
.ai-phone-battery-fill--low { width: 22%; background: #DC2626; }

/* Screen */
.ai-phone-screen {
  position: relative;
  background: #F5F5F7;
  border-radius: 28px;
  height: 440px;
  overflow: hidden;
  padding-top: 42px;
}

/* Header (back arrow + title pill) */
.ai-phone-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  padding: 8px 12px 10px;
  background: #fff;
}
.ai-phone-back {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--tb-orange);
  flex-shrink: 0;
}
.ai-phone-back--ghost { visibility: hidden; }
.ai-phone-pill {
  background: var(--tb-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Body — cards */
.ai-phone-body {
  padding: 10px 10px 76px;
  display: flex; flex-direction: column; gap: 6px;
  height: calc(100% - 50px);
  overflow: hidden;
}
.ai-card {
  position: relative;
  background: #fff;
  border-radius: 10px;
  padding: 10px 11px;
  overflow: hidden;
  flex-shrink: 0;
}
.ai-card-top-accent {
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--tb-orange);
}
.ai-card--accent { padding-top: 12px; }
.ai-card-eyebrow,
.ai-card-section {
  margin: 0 0 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tb-orange);
}
.ai-card-title {
  margin: 2px 0 6px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--tb-text-strong);
}
.ai-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9.5px; font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}
.ai-chip--safe {
  background: var(--tb-safe-bg);
  color: #1A7A3A;
  border: 1px solid var(--tb-safe-border);
}
.ai-chip-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--tb-safe);
}
.ai-card-text {
  margin: 6px 0 0;
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--tb-text);
}
.ai-card-text--muted { color: var(--tb-text-muted); }
.ai-link {
  color: var(--tb-orange);
  text-decoration: underline;
  text-underline-offset: 1.5px;
}

/* Pinned AI-chat affordance at bottom of diagnosis screen */
.ai-phone-affordance {
  position: absolute;
  left: 10px; right: 10px;
  bottom: 12px;
  display: flex; align-items: center; gap: 11px;
  padding: 8px 12px 8px 8px;
  background: var(--tb-orange-100);
  border-radius: 14px;
  z-index: 5;
}
.ai-affordance-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--tb-orange);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ai-affordance-icon svg { width: 17px; height: 17px; }
.ai-affordance-text { flex: 1; min-width: 0; }
.ai-affordance-title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--tb-text-strong);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.ai-affordance-sub {
  margin: 1px 0 0;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--tb-text-muted);
  line-height: 1.25;
}
.ai-affordance-arrow { color: var(--tb-orange); flex-shrink: 0; }

.ai-phone-affordance--highlight {
  box-shadow:
    0 0 0 2px var(--tb-orange),
    0 0 0 6px rgba(255, 107, 74, 0.18);
  animation: ai-pulse 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
@keyframes ai-pulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--tb-orange), 0 0 0 6px rgba(255, 107, 74, 0.18); }
  50%      { box-shadow: 0 0 0 2px var(--tb-orange), 0 0 0 11px rgba(255, 107, 74, 0.06); }
}

/* DIY Guide screen */
.ai-phone-body--diy {
  padding: 10px 11px 14px;
  display: block;
  gap: 0;
  overflow: hidden;
}
.ai-diy-crumb {
  margin: 0;
  font-size: 10px;
  color: var(--tb-text-muted);
}
.ai-diy-title {
  margin: 2px 0 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--tb-text-strong);
  line-height: 1.2;
}
.ai-step {
  background: #fff;
  border-radius: 10px;
  padding: 9px 11px;
  margin-bottom: 5px;
  border: 1.5px solid transparent;
}
.ai-step--open {
  border-color: var(--tb-orange);
  background: #FFFBFA;
  padding: 10px 11px 11px;
}
.ai-step-head {
  display: flex; align-items: center; gap: 8px;
}
.ai-step-check {
  width: 14px; height: 14px;
  border: 1.5px solid #D1D5DB;
  border-radius: 4px;
  flex-shrink: 0;
  background: #fff;
}
.ai-step-label {
  flex: 1;
  font-size: 11px;
  font-weight: 700;
  color: var(--tb-text-strong);
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.ai-step-label b { font-weight: 800; margin-right: 1px; }
.ai-step-caret { color: var(--tb-text-muted); flex-shrink: 0; }
.ai-step-body {
  margin: 7px 0 8px;
  padding-left: 22px;
  font-size: 10px;
  line-height: 1.4;
  color: var(--tb-text);
}
.ai-step-ask {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%;
  background: var(--tb-orange-100);
  color: var(--tb-orange);
  font-size: 11px;
  font-weight: 800;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow:
    0 0 0 2px var(--tb-orange),
    0 0 0 6px rgba(255, 107, 74, 0.18);
  animation: ai-pulse 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

/* Floating callouts pulling focus to the chat features */
.ai-callout {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tb-text-strong);
  background: #fff;
  padding: 7px 12px 7px 7px;
  border-radius: 999px;
  box-shadow: var(--tb-shadow-md);
  z-index: 6;
  white-space: nowrap;
}
.ai-callout-tag {
  display: inline-block;
  background: var(--tb-orange);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
}
.ai-callout--diag { top: 6%;   left: -12px; }
.ai-callout--diy  { bottom: 8%; right: -8px; }

/* ============ Find-a-Pro phone (single, centered) ============ */
.ai-phones--solo {
  justify-content: center;
  padding: 24px 0;
  max-width: 360px;
}
.ai-phone--solo {
  transform: none;
  margin: 0;
  z-index: 1;
}
.ai-phone-imgscreen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
}
.ai-phone-screen--pros {
  height: 540px;
  background: #fff;
}

.pro-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 8px;
  background: #fff;
}
.pro-back {
  width: 24px;
  display: inline-flex; align-items: center;
  color: var(--tb-text-strong);
}
.pro-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--tb-text-strong);
  letter-spacing: -0.005em;
}
.pro-step {
  font-size: 11px;
  font-weight: 600;
  color: var(--tb-text-muted);
  white-space: nowrap;
}
.pro-progress {
  height: 3px;
  background: #ECECEF;
  position: relative;
}
.pro-progress-fill {
  position: absolute;
  inset: 0 66% 0 0;
  background: var(--tb-orange);
}

.pro-body {
  padding: 10px 12px 14px;
  display: flex; flex-direction: column; gap: 9px;
  height: calc(100% - 53px);
  overflow: hidden;
}

/* Job summary card */
.pro-job {
  display: flex; align-items: flex-start; gap: 8px;
  background: #F2F3F5;
  border-radius: 10px;
  padding: 9px 11px;
}
.pro-job-icon {
  color: var(--tb-orange);
  flex-shrink: 0;
  padding-top: 2px;
}
.pro-job-text { flex: 1; min-width: 0; }
.pro-job-title {
  margin: 0;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--tb-text-strong);
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.pro-job-loc {
  margin: 2px 0 1px;
  font-size: 10.5px;
  color: var(--tb-text);
  font-weight: 600;
}
.pro-job-desc {
  margin: 0;
  font-size: 10px;
  color: var(--tb-text-muted);
  line-height: 1.35;
}
.pro-job-edit {
  color: var(--tb-orange);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  padding-top: 2px;
}

/* Price banner */
.pro-price-banner {
  display: flex; align-items: center; gap: 8px;
  background: #EBF3FB;
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--tb-text-strong);
}
.pro-price-icon {
  flex-shrink: 0;
  color: var(--tb-orange);
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
}
.pro-price-text b { font-weight: 800; }

/* Meta row */
.pro-meta-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 2px 0;
}
.pro-meta-count {
  font-size: 12px;
  font-weight: 800;
  color: var(--tb-text-strong);
  white-space: nowrap;
}
.pro-meta-sort {
  font-size: 11px;
  color: var(--tb-text-muted);
  font-weight: 600;
  white-space: nowrap;
}

/* Pro card */
.pro-card {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 1px solid #ECECEF;
  border-radius: 10px;
  padding: 9px 10px;
}
.pro-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.pro-avatar--a { background: linear-gradient(135deg, #FFB66B, #E85F42); }
.pro-avatar--b { background: linear-gradient(135deg, #6B7280, #2D3748); }
.pro-avatar--c { background: linear-gradient(135deg, #5B8DEF, #3559C9); }
.pro-info { min-width: 0; }
.pro-badge {
  display: inline-block;
  background: var(--tb-safe-bg);
  color: #1A7A3A;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 3px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.pro-name {
  margin: 0;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--tb-text-strong);
  line-height: 1.2;
  letter-spacing: -0.005em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pro-rating {
  margin: 2px 0 1px;
  font-size: 9.5px;
  color: var(--tb-text-muted);
  font-weight: 600;
}
.pro-star { color: #F5B400; }
.pro-meta-line {
  margin: 0;
  font-size: 9.5px;
  color: var(--tb-text-muted);
}
.pro-price-line {
  margin: 3px 0 0;
  font-size: 10px;
  font-weight: 700;
  color: #1A7A3A;
}
.pro-select {
  background: var(--tb-orange);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

/* ================================================================
   SECTION HEADS
   ================================================================ */
.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head--narrow { max-width: 640px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-lede {
  margin: 20px 0 0;
  font-size: var(--tb-fs-lg);
  color: var(--tb-text-muted);
  max-width: 56ch;
  line-height: 1.55;
}

/* ================================================================
   HOW IT WORKS
   ================================================================ */
.how { padding: 96px 0; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.how-card {
  background: var(--tb-bg);
  border-radius: var(--tb-r-xl);
  padding: 0 0 32px;
  box-shadow: var(--tb-shadow-md);
  position: relative;
  overflow: hidden;
  transition: transform var(--tb-dur-base) var(--tb-ease), box-shadow var(--tb-dur-base) var(--tb-ease);
  display: flex; flex-direction: column;
}
.how-card:hover { transform: translateY(-2px); box-shadow: var(--tb-shadow-lg); }

/* Body */
.how-body-wrap {
  padding: 24px 28px 0;
  position: relative;
}
.how-num {
  display: inline-block;
  font-family: var(--tb-font-sans);
  font-weight: 500;
  font-size: 28px;
  line-height: 1;
  color: var(--tb-orange);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.how-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--tb-text);
  letter-spacing: -0.015em;
}
.how-body { margin: 0; color: var(--tb-text-muted); font-size: 15px; line-height: 1.55; }

/* Visual top surface */
.how-visual {
  position: relative;
  height: 200px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

/* ---- Step 1: REC ---- */
.how-visual--record {
  background:
    radial-gradient(circle at 50% 45%, #FFF6DE 0%, #FFE9B5 100%);
}
.rec-button {
  width: 91px; height: 91px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--tb-orange);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow:
    0 0 0 6px rgba(255,255,255,0.9),
    var(--tb-shadow-brand);
  position: relative; z-index: 3;
}
.rec-wave {
  position: absolute;
  left: 50%; top: 44%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(255, 107, 74, 0.35);
  animation: rec-wave 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
.rec-wave--1 { width: 110px; height: 110px; animation-delay: 0s; }
.rec-wave--2 { width: 150px; height: 150px; animation-delay: 0.4s; }
.rec-wave--3 { width: 200px; height: 200px; animation-delay: 0.8s; opacity: 0.5; }
@keyframes rec-wave {
  0%   { opacity: 0.75; transform: translate(-50%, -50%) scale(0.6); }
  80%  { opacity: 0;    transform: translate(-50%, -50%) scale(1.15); }
  100% { opacity: 0;    transform: translate(-50%, -50%) scale(1.15); }
}
.rec-timer {
  position: absolute;
  bottom: 18px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--tb-orange);
  background: rgba(255, 255, 255, 0.85);
  padding: 5px 12px;
  border-radius: var(--tb-r-pill);
  z-index: 4;
}

/* ---- Step 2: Diagnose — AI vision scan ---- */
.how-visual--diagnose {
  background:
    radial-gradient(120% 100% at 50% 100%, #FFE4DC 0%, #FFF1EC 55%, #FFF7F3 100%);
  position: relative;
  overflow: hidden;
  padding: 0;
  display: block;
}

/* Diagnosis result card — product surface inside step 2 */

.diag-card {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 260px;
  background: var(--tb-bg);
  border-radius: 12px;
  padding: 11px 12px 11px;
  box-shadow:
    0 1px 0 rgba(45, 55, 72, 0.04),
    0 10px 28px -10px rgba(45, 55, 72, 0.18);
  overflow: hidden;
}
.diag-accent-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--tb-orange);
}
.diag-eyebrow {
  margin: 2px 0 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tb-orange);
}
.diag-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--tb-text-strong);
}
.diag-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700;
  padding: 2px 8px 2px 6px;
  border-radius: var(--tb-r-pill);
  white-space: nowrap;
}
.diag-chip--safe {
  background: var(--tb-safe-bg);
  color: #1A7A3A;
  border: 1px solid var(--tb-safe-border);
}
.diag-chip-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--tb-safe);
}
.diag-sub {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--tb-text);
}
.diag-jargon {
  color: var(--tb-orange);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
  font-weight: 600;
}
.diag-jargon--active {
  background: var(--tb-orange-100);
  padding: 0 4px;
  border-radius: 4px;
  text-decoration: none;
}

/* Floating glossary tooltip pointing at the active jargon term */
.diag-tip {
  position: absolute;
  z-index: 5;
  bottom: 10px;
  right: 18px;
  width: 160px;
  background: var(--tb-water-bg-soft);
  color: var(--tb-text-strong);
  border-radius: 9px;
  padding: 8px 10px;
  border: 1px solid var(--tb-water-border);
  box-shadow: 0 8px 22px -10px rgba(59, 130, 246, 0.28);
}
.diag-tip::before {
  content: '';
  position: absolute;
  top: -5px;
  right: 22px;
  width: 8px; height: 8px;
  background: var(--tb-water-bg-soft);
  border-top: 1px solid var(--tb-water-border);
  border-left: 1px solid var(--tb-water-border);
  transform: rotate(45deg);
  border-top-left-radius: 1px;
}
.diag-tip-label {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tb-water);
  margin-bottom: 1px;
}
.diag-tip-text {
  display: block;
  font-size: 10px;
  line-height: 1.3;
  color: var(--tb-text);
}

/* Faint card peeking behind for depth */
.diag-stack-card {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 18px;
  transform: translateX(-50%) translateX(14px) rotate(3deg);
  width: 78%;
  max-width: 240px;
  height: 92px;
  background: var(--tb-bg);
  border-radius: 12px;
  box-shadow: 0 6px 18px -8px rgba(45, 55, 72, 0.18);
  opacity: 0.55;
  padding: 14px;
  overflow: hidden;
}
.diag-stack-bar {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--tb-border);
}
.diag-stack-bar--a { width: 35%; margin-bottom: 8px; background: var(--tb-orange-200); }
.diag-stack-bar--b { width: 65%; }

/* ---- Step 3: Route ---- */
.how-visual--route {
  background:
    radial-gradient(circle at 50% 50%, #F5F5F7 0%, #ECECEF 100%);
}
.how-visual--route { padding: 0 14px; }
.route-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  max-width: 320px;
}
.route-card {
  border-radius: 14px;
  padding: 12px;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.route-card--diy {
  background: var(--tb-orange-100);
}
.route-card--pro {
  background: var(--tb-bg);
  box-shadow: var(--tb-shadow-sm);
}
.route-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.route-icon--diy { background: var(--tb-safe-bg); color: var(--tb-safe); }
.route-icon--pro { background: var(--tb-orange-100); color: var(--tb-orange); }
.route-title {
  margin: 0;
  font-size: 13px; font-weight: 700;
  color: var(--tb-text-strong);
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.route-meta {
  margin: 0;
  font-size: 11px;
  color: var(--tb-text-muted);
  line-height: 1.3;
}
.route-price {
  margin: 2px 0 6px;
  font-size: 15px; font-weight: 700;
  color: var(--tb-text-strong);
  letter-spacing: -0.01em;
}
.route-btn {
  width: 100%;
  text-align: center;
  font-size: 11px; font-weight: 600;
  padding: 7px 6px;
  border-radius: var(--tb-r-pill);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.route-btn--solid {
  background: var(--tb-orange);
  color: var(--tb-text-on-brand);
}
.route-btn--outline {
  background: transparent;
  color: var(--tb-orange);
  border: 1.5px solid var(--tb-orange);
  padding: 5.5px 6px;
}

/* Connecting arrow between cards (desktop only) */
.how-card + .how-card::before {
  content: "";
  position: absolute;
  left: -22px; top: 90px;
  width: 18px; height: 2px;
  background: var(--tb-orange-300);
  z-index: 5;
}
.how-card + .how-card::after {
  content: "";
  position: absolute;
  left: -10px; top: 84px;
  width: 0; height: 0;
  border-left: 8px solid var(--tb-orange-300);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  z-index: 5;
}

/* ================================================================
   SAFETY
   ================================================================ */
.safety {
  padding: 96px 0;
  background: var(--tb-bg);
  border-top: 1px solid rgba(45, 55, 72, 0.04);
  border-bottom: 1px solid rgba(45, 55, 72, 0.04);
}
.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}
.safety-card {
  border-radius: var(--tb-r-xl);
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 320px;
}
.safety-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.safety-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.safety-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.safety-num { font-size: 13px; font-weight: 700; opacity: 0.55; letter-spacing: 0.04em; }
.safety-title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.safety-body { margin: 0; font-size: 16px; line-height: 1.5; opacity: 0.85; }
.safety-list {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 16px;
  border-top: 1px solid currentColor;
  opacity: 0.9;
}
.safety-list li {
  font-size: 14px; font-weight: 500;
  padding-left: 0;
  position: relative;
  display: flex; align-items: center; gap: 8px;
}
.safety-list li::before {
  content: "";
  width: 14px; height: 14px;
  flex: 0 0 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M20 6 9 17l-5-5'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M20 6 9 17l-5-5'/></svg>") center/contain no-repeat;
}
.safety-list li::before { opacity: 0.7; }

/* Tinted card variants — pull both border and text from the semantic palette */
.safety-card--safe {
  background: var(--tb-safe-bg);
  color: #1F4E2A;
}
.safety-card--safe .safety-list { border-color: rgba(31, 78, 42, 0.18); }
.safety-card--amber {
  background: var(--tb-heat-bg);
  color: #5B3A0A;
}
.safety-card--amber .safety-list { border-color: rgba(91, 58, 10, 0.18); }
.safety-card--danger {
  background: var(--tb-danger-bg);
  color: #6B1414;
}
.safety-card--danger .safety-list { border-color: rgba(107, 20, 20, 0.18); }

.pullquote {
  margin: 0 auto;
  max-width: 900px;
  position: relative;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--tb-text);
  padding: 16px 0;
  text-wrap: balance;
}
.pullquote-mark {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 1.8em;
  line-height: 0;
  color: var(--tb-orange);
  vertical-align: -0.25em;
  margin-right: 0.05em;
}

/* ================================================================
   AI CHAT
   ================================================================ */
.aichat {
  position: relative;
  padding: 112px 0;
  overflow: hidden;
}
.aichat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.aichat-copy { position: relative; z-index: 2; }
.check-list {
  margin-top: 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.check-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: var(--tb-fs-lg);
  color: var(--tb-text);
}
.check-list li svg {
  color: var(--tb-orange);
  flex: 0 0 22px;
  background: var(--tb-orange-100);
  border-radius: 50%;
  padding: 3px;
  width: 22px; height: 22px;
}

/* Guide-with-chat phone (legacy — replaced by frame-aichat.png) */

/* ================================================================
   PROS
   ================================================================ */
.pros {
  padding: 112px 0;
  background: var(--tb-bg-warm);
}
.pros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.pros-copy { position: relative; }
.pros-facts {
  margin-top: 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.fact {
  display: flex; align-items: center; gap: 12px;
  font-size: var(--tb-fs-lg); color: var(--tb-text);
  font-weight: 600;
}
.fact-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  background: var(--tb-orange-100);
  color: var(--tb-orange);
  border-radius: 50%;
  font-weight: 700;
  font-size: 13px;
}
.pill-note {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 32px;
  padding: 10px 18px;
  background: var(--tb-bg);
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-r-pill);
  font-size: 14px;
  color: var(--tb-text);
  box-shadow: var(--tb-shadow-xs);
}
.pill-note svg { color: var(--tb-orange); }
.emph { font-style: italic; }
.attribution {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--tb-text-subtle);
  font-weight: 500;
  letter-spacing: 0;
}

/* Pro card stack (legacy — replaced by frame-pros.png) */

/* ================================================================
   CATEGORIES
   ================================================================ */
.categories {
  padding: 96px 0;
  background: var(--tb-bg);
}
.cat-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.cat-card {
  background: var(--tb-bg);
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-r-xl);
  padding: 24px;
  text-align: left;
  transition: transform var(--tb-dur-base) var(--tb-ease), border-color var(--tb-dur-base) var(--tb-ease);
}
.cat-card:hover {
  transform: translateY(-2px);
  border-color: var(--tb-orange-200);
}
.cat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.cat-icon--water { background: var(--tb-water-bg-soft); color: var(--tb-water); }
.cat-icon--heat { background: var(--tb-heat-bg); color: var(--tb-heat); }
.cat-icon--neutral { background: var(--tb-bg-cool); color: var(--tb-text); }
.cat-icon--orange { background: var(--tb-orange-100); color: var(--tb-orange); }
.cat-icon--pro { background: var(--tb-pro-bg); color: var(--tb-pro); }
.cat-name { margin: 0; font-weight: 700; font-size: 16px; color: var(--tb-text); }
.cat-eg { margin: 4px 0 0; font-size: 13px; color: var(--tb-text-muted); }

/* ================================================================
   PRICING
   ================================================================ */
.pricing { padding: 96px 0; }
.pricing-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.pricing-headline {
  margin: 16px 0 20px;
  font-size: clamp(40px, 5vw, 64px);
}
.pricing-sub {
  font-size: var(--tb-fs-lg);
  color: var(--tb-text-muted);
  max-width: 52ch;
  margin: 0 auto 32px;
}
.pricing-cta {
  display: inline-flex; gap: 12px; align-items: center; flex-wrap: wrap;
  justify-content: center;
}

/* ================================================================
   FINAL CTA
   ================================================================ */
.final-cta {
  position: relative;
  padding: 112px 0;
  background: var(--tb-bg-warm);
  overflow: hidden;
}
.final-cta-inner {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.final-cta-headline {
  margin: 0 0 16px;
  font-size: clamp(48px, 6.5vw, 88px);
  line-height: 1;
}
.final-cta-sub {
  font-size: var(--tb-fs-lg);
  color: var(--tb-text-muted);
  margin: 0 0 36px;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  padding: 64px 0 32px;
  background: var(--tb-bg);
  border-top: 1px solid var(--tb-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--tb-divider);
}
.footer-logo { height: 28px; width: auto; }
.footer-tag { margin: 14px 0 24px; color: var(--tb-text-muted); font-size: 14px; }
.footer-socials { display: flex; gap: 14px; }
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--tb-bg-cool);
  color: var(--tb-text);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--tb-dur-base) var(--tb-ease);
}
.footer-socials a:hover { background: var(--tb-orange-100); color: var(--tb-orange); }
.footer-h {
  margin: 0 0 16px;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--tb-text);
  text-transform: uppercase;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li a { color: var(--tb-text-muted); font-size: 14px; }
.footer-col li a:hover { color: var(--tb-text); }
.footer-col--download { display: flex; flex-direction: column; gap: 10px; }
.footer-col--download .store-badge { align-self: flex-start; }
.footer-base {
  margin-top: 24px;
  display: flex; justify-content: center; align-items: center;
  font-size: 13px;
  color: var(--tb-text-subtle);
}

/* ================================================================
   STICKY MOBILE DOWNLOAD
   ================================================================ */
.sticky-dl {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(45, 55, 72, 0.10);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: none;
}
.sticky-dl-inner {
  display: flex; align-items: center; gap: 12px;
  max-width: 720px; margin: 0 auto;
}
.sticky-dl-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
}
.sticky-dl-text { flex: 1; min-width: 0; }
.sticky-dl-name { margin: 0; font-weight: 700; font-size: 15px; color: var(--tb-text); }
.sticky-dl-sub { margin: 0; font-size: 12px; color: var(--tb-text-muted); }

/* ================================================================
   RESPONSIVE — tablet
   ================================================================ */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .aichat-grid { grid-template-columns: 1fr; gap: 56px; }
  .pros-grid { grid-template-columns: 1fr; gap: 56px; }
  .pros-visual { order: -1; }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .how-card + .how-card::before,
  .how-card + .how-card::after { display: none; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-col--download { grid-column: span 3; flex-direction: row; align-items: center; flex-wrap: wrap; }
  .footer-brand { grid-column: span 3; }
}

/* ================================================================
   RESPONSIVE — mobile (target 390px)
   ================================================================ */
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  body { overflow-x: hidden; }

  /* Header */
  .header-inner { height: 64px; gap: 12px; }
  .brand img { height: 26px; }
  .primary-nav { display: none; }
  .header-cta { display: none; }
  .menu-toggle { display: inline-flex; margin-left: auto; }

  /* Hero */
  .hero { padding: 32px 0 56px; }
  .peach-blob--hero { width: 380px; height: 380px; right: -120px; top: -100px; }
  .display { font-size: 40px; }
  .display-stack { font-size: 28px; margin-top: 18px; }
  .hero-sub { font-size: 16px; margin: 20px 0 24px; }
  .hero-visual { transform: scale(0.92); transform-origin: top center; }

  /* Hero photo card + floating phone */
  .hero-photo-card { max-width: 320px; border-radius: 22px; }
  .hero-phone { width: 200px; right: -8px; bottom: -56px; border-radius: 30px; padding: 6px; }
  .hero-phone-screen { border-radius: 24px; }
  .hero-phone-island { width: 60px; height: 16px; top: 10px; }
  .diag-title { font-size: 14px; }
  .diag-summary { font-size: 10.5px; }

  /* Frame visuals get tighter */
  .ai-phones { max-width: none; zoom: 0.66; padding: 24px 6px; }
  .pros-visual img { max-width: 320px; }

  /* Sections */
  .how, .safety, .aichat, .pros, .categories, .pricing, .final-cta { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .h1 { font-size: 32px; }

  /* How */
  .how-grid { grid-template-columns: 1fr; gap: 16px; }
  .how-card { padding: 0 0 24px; }
  .how-body-wrap { padding: 20px 22px 0; }
  .how-visual { height: 170px; }
  .how-visual--diagnose { height: 220px; }  /* taller so the P-trap tooltip clears the card text on mobile */
  .how-num { font-size: 24px; }
  .how-title { font-size: 20px; }
  .how-card + .how-card::before,
  .how-card + .how-card::after { display: none; }

  /* Safety */
  .safety-grid { grid-template-columns: 1fr; gap: 12px; margin-bottom: 40px; }
  .safety-card { min-height: 0; padding: 24px; }
  .safety-title { font-size: 28px; }
  .pullquote { font-size: 24px; padding: 8px 0; }

  /* AI chat */
  .aichat-copy { order: 1; }
  .aichat-visual { order: 2; }
  .check-list li { font-size: 15px; }

  /* Pros */
  .pros-visual img { max-width: 100%; }

  /* Categories */
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .cat-card { padding: 18px; }

  /* Pricing */
  .pricing-headline { font-size: 40px; }
  .pricing-cta { flex-direction: column; gap: 8px; }
  .pricing-cta .btn { width: 100%; }

  /* Final CTA */
  .final-cta-headline { font-size: 56px; }
  .peach-blob--cta { width: 500px; height: 500px; right: -180px; top: -200px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; padding-bottom: 36px; }
  .footer-brand { grid-column: span 2; }
  .footer-col--download { grid-column: span 2; flex-direction: column; align-items: stretch; gap: 8px; }
  .footer-col--download .store-badge { align-self: stretch; justify-content: flex-start; }
  .footer-base { flex-direction: column; gap: 8px; padding-top: 24px; text-align: center; }

  /* Sticky download bar — disabled pre-launch (no app to download yet); re-enable at launch */
  /* .sticky-dl { display: block; } */
  /* body { padding-bottom: 76px; } */
}

/* Hero-specific layout polish so peach blob sits behind phone, not behind text */
@media (min-width: 1025px) {
  .peach-blob--hero {
    width: 720px; height: 720px;
    right: -200px; top: -160px;
  }
}

/* ================================================================
   MOBILE MENU — toggle open state (push-down menu ≤720px)
   ================================================================ */
.menu-toggle { background: transparent; border: 0; cursor: pointer; }
@media (max-width: 720px) {
  .site-header.nav-open .header-inner { flex-wrap: wrap; height: auto; padding-bottom: 12px; }
  .site-header.nav-open .brand { order: 1; }
  .site-header.nav-open .menu-toggle { order: 2; }
  .site-header.nav-open .primary-nav {
    order: 3; display: flex; flex-direction: column; align-items: flex-start;
    width: 100%; gap: 14px; margin: 8px 0 0; padding-top: 14px;
    border-top: 1px solid var(--tb-border);
  }
  .site-header.nav-open .header-cta {
    order: 4; display: inline-flex; width: 100%; justify-content: center; margin-top: 12px;
  }
}
