/* ============================================================
   FurScore — landing page styles
   Brand: emerald primary #00C9A7, coral #FF6B6B, amber #FFB347
   ============================================================ */

/* Dark = default. Light theme is opt-in via [data-theme="light"]. */
:root {
  --bg: #0d1117;
  --bg-soft: #161b22;
  --bg-card: #1a1f29;
  --ink: #f0f6fc;
  --ink-2: #c9d1d9;
  --muted: #8b949e;
  --muted-2: #6e7681;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.12);
  --primary: #00c9a7;
  --primary-dark: #00e0bd;
  --primary-soft: rgba(0, 201, 167, 0.15);
  --coral: #ff6b6b;
  --gold: #ffb347;
  --indigo: #6366f1;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.40);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.50);
  --hero-bg-1: rgba(0, 201, 167, 0.20);
  --hero-bg-2: rgba(255, 179, 71, 0.16);
  --hero-bg-base: linear-gradient(180deg, #0d1117 0%, #0d1117 70%);
  --topnav-bg: rgba(13, 17, 23, 0.78);
  --topnav-border: rgba(255, 255, 255, 0.06);
  --footer-bg: #06080b;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1180px;
}

:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-soft: #f7fafa;
  --bg-card: #ffffff;
  --ink: #0d1117;
  --ink-2: #2f3a46;
  --muted: #5e6b7a;
  --muted-2: #8a96a3;
  --line: #e6ecef;
  --line-strong: #d4dce0;
  --primary-dark: #00a386;
  --primary-soft: #e0f7f2;
  --shadow-sm: 0 2px 8px rgba(13, 17, 23, 0.06);
  --shadow-md: 0 12px 32px rgba(13, 17, 23, 0.10);
  --shadow-lg: 0 24px 60px rgba(13, 17, 23, 0.18);
  --hero-bg-1: rgba(0,201,167,0.18);
  --hero-bg-2: rgba(255,179,71,0.18);
  --hero-bg-base: linear-gradient(180deg, #f7fafa 0%, #ffffff 70%);
  --topnav-bg: rgba(255, 255, 255, 0.85);
  --topnav-border: rgba(13, 17, 23, 0.06);
  --footer-bg: #0d1117;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a { color: var(--primary-dark); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--primary); }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Top nav ===== */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--topnav-bg);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--topnav-border);
}
.topnav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 8px;
  color: var(--ink); font-weight: 700;
}
.brand:hover { color: var(--ink); }
.brand-mark { font-size: 22px; }
.brand-name { font-size: 18px; letter-spacing: -0.01em; }
.topnav-links { display: flex; gap: 28px; align-items: center; }
.topnav-links a {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 15px;
}
.topnav-links a:hover { color: var(--primary-dark); }

/* Theme toggle — premium pill with both icons visible, slider behind
   the active one. Same language as Linear / Vercel / Stripe site nav. */
.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 64px;
  height: 32px;
  padding: 0 6px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 100%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
:root[data-theme="light"] .theme-toggle {
  background:
    linear-gradient(180deg, rgba(13,17,23,0.04) 0%, rgba(13,17,23,0) 100%),
    rgba(13, 17, 23, 0.03);
  box-shadow: inset 0 1px 0 rgba(13,17,23,0.04);
}
.theme-toggle:hover {
  border-color: rgba(0, 201, 167, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 16px rgba(0, 201, 167, 0.18);
}

/* Sliding pill behind the active icon */
.theme-toggle::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #00c9a7 0%, #00a386 100%);
  box-shadow:
    0 4px 10px rgba(0, 201, 167, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
:root[data-theme="light"] .theme-toggle::before {
  transform: translateX(32px);
}

.theme-toggle svg {
  width: 14px;
  height: 14px;
  position: relative;
  z-index: 1;
  transition: color 0.2s ease;
}
.theme-toggle .icon-moon { color: #fff; margin-left: 2px; }
.theme-toggle .icon-sun { color: var(--muted); margin-right: 2px; }
:root[data-theme="light"] .theme-toggle .icon-moon { color: var(--muted); }
:root[data-theme="light"] .theme-toggle .icon-sun { color: #fff; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 20% 0%, var(--hero-bg-1), transparent 60%),
    radial-gradient(700px 500px at 90% 20%, var(--hero-bg-2), transparent 60%),
    var(--hero-bg-base);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow-light {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  color: var(--ink);
}
.grad-text {
  background: linear-gradient(135deg, #00c9a7 0%, #00a386 60%, #ffb347 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 540px;
  margin: 0 0 32px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, #00c9a7, #00a386);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-lg { padding: 18px 28px; font-size: 16px; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}
.trust-item { white-space: nowrap; }

/* ===== Phone frame ===== */
.hero-phone {
  display: flex;
  justify-content: center;
}
.phone-frame {
  width: 320px;
  border-radius: 44px;
  padding: 6px;
  /* Lighter bezel gradient at top so the phone reads as a physical
     object against a near-black page. The previous #1a1f29 → #0d1117
     blended into the dark background. */
  background: linear-gradient(160deg, #3a4150 0%, #1f242e 60%, #15191f 100%);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(0, 201, 167, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: rotate(-2deg);
}
:root[data-theme="light"] .phone-frame {
  background: linear-gradient(160deg, #1a1f29 0%, #0d1117 100%);
  box-shadow:
    0 30px 80px rgba(13, 17, 23, 0.28),
    0 0 60px rgba(0, 201, 167, 0.18),
    0 0 0 1px rgba(13, 17, 23, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
.phone-frame img {
  border-radius: 38px;
  display: block;
  width: 100%;
}
/* phone-frame-sm: base dimensions used in showcase (fluid override applied in .showcase-item context) */
.phone-frame-sm { width: 200px; transform: rotate(0); }

/* ===== Sections ===== */
section { padding: 96px 0; }

.section-header { text-align: center; margin: 0 auto 64px; max-width: 760px; }
.section-header h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.section-lede {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
  text-wrap: pretty;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Features grid ===== */
.features {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
/* Glass card — semi-transparent bg, subtle inner highlight along the top
   edge, soft outer glow. Matches the app's `.pawGlassCard` modifier. */
.feature-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line-strong);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
  will-change: transform;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 35%);
  opacity: 1;
}
:root[data-theme="light"] .feature-card::before {
  background: linear-gradient(180deg, rgba(0,201,167,0.04) 0%, transparent 40%);
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 201, 167, 0.35);
}
.feature-icon { /* legacy alias */ }

/* ===== Reusable icon tile ===== */
.icon-tile {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--tint, #00C9A7), color-mix(in srgb, var(--tint, #00C9A7) 78%, black));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--tint, #00C9A7) 35%, transparent);
}
.icon-tile svg { width: 26px; height: 26px; display: block; }
.icon-tile-sm { width: 48px; height: 48px; border-radius: 12px; }
.icon-tile-sm svg { width: 24px; height: 24px; }
.icon-tile-lg { width: 60px; height: 60px; border-radius: 16px; margin: 0 auto 18px; }
.icon-tile-lg svg { width: 30px; height: 30px; }

/* Hero trust dots — small color tokens beside each item */
.trust-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: middle;
  /* Use a transparent background-based ring so the ring color matches the dot */
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* ===== Showcase strip ===== */
.showcase {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 112px 0;
}
.showcase-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  /* Align all rows from the top so phones share the same baseline */
  align-items: start;
}
.showcase-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* No gap — we control spacing precisely below */
}
/* Phone wrapper: fixed aspect ratio locks height regardless of image load state */
.showcase-item .phone-frame-sm {
  width: 100%;
  max-width: 200px;
  /* iPhone aspect ratio 1284:2778 ≈ 9:19.47 */
  aspect-ratio: 1284 / 2778;
  transform: none;
  /* Subtle elevation so phones read as objects */
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
:root[data-theme="light"] .showcase-item .phone-frame-sm {
  box-shadow:
    0 16px 48px rgba(13, 17, 23, 0.20),
    0 0 0 1px rgba(13, 17, 23, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);
}
.showcase-item .phone-frame-sm:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(0, 201, 167, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
:root[data-theme="light"] .showcase-item .phone-frame-sm:hover {
  box-shadow:
    0 28px 64px rgba(13, 17, 23, 0.26),
    0 0 40px rgba(0, 201, 167, 0.14),
    0 0 0 1px rgba(13, 17, 23, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.showcase-item figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* Fixed height so caption variation never pushes phones up/down.
     Two-line caption at 13px/1.4 = ~36px + title line ~21px + gap 4px + margin 16px = ~77px.
     We give it enough room for 2 caption lines without affecting phone position. */
  min-height: 72px;
  margin-top: 16px;
  padding: 0 4px;
}
.showcase-item strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: block;
}
.showcase-item span {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
  text-wrap: balance;
  display: block;
}

/* ===== Designed with Care ===== */
.craft-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.craft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
}
.craft-item {
  text-align: center;
}
.craft-item .icon-tile { margin: 0 auto 14px; }
.craft-item h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.craft-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ===== FAQ ===== */
.faq-section {
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.faq-item[open] {
  box-shadow: var(--shadow-sm);
  border-color: rgba(0, 201, 167, 0.35);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  padding-right: 56px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
  line-height: 1;
}
.faq-item[open] summary::after {
  content: "−";
  color: var(--primary-dark);
}
.faq-item p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.faq-item p a { color: var(--primary-dark); text-decoration: underline; }

/* ===== Trust ===== */
.trust-section { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.trust-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
  text-align: center;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}
.trust-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 35%);
}
:root[data-theme="light"] .trust-card::before {
  background: linear-gradient(180deg, rgba(0,201,167,0.04) 0%, transparent 40%);
}
.trust-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 201, 167, 0.28);
}
.trust-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}
.trust-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ===== Waitlist ===== */
.waitlist { background: var(--bg); }
.waitlist-card {
  background:
    radial-gradient(800px 400px at 0% 0%, rgba(255,255,255,0.16), transparent 60%),
    linear-gradient(135deg, #00c9a7 0%, #00a386 100%);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  color: #fff;
  box-shadow: 0 30px 60px rgba(0, 201, 167, 0.25);
}
.waitlist-card h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.waitlist-card p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto 28px;
}
.waitlist-card .btn-primary {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: var(--shadow-lg);
}
.waitlist-card .btn-primary:hover { color: var(--primary-dark); background: #fff; }
.muted-tiny {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 14px;
}
.waitlist-card .muted-tiny a { color: #fff; text-decoration: underline; }

/* ===== Footer ===== */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.72);
  padding: 56px 0 24px;
}
.site-footer .brand-name { color: #fff; }
.site-footer .brand { color: #fff; }
.site-footer .muted-tiny {
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  margin-top: 10px;
}
.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-links {
  display: flex;
  gap: 28px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 500;
}
.footer-links a:hover { color: #fff; }
.copyline {
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .trust-row { justify-content: center; }
  section { padding: 72px 0; }
  .showcase { padding: 88px 0; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  /* Tablet: show 3 phones per row so each is still legible */
  .showcase-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  /* Hide the 4th and 5th showcase items on tablet to keep 3-up clean */
  .showcase-item:nth-child(4),
  .showcase-item:nth-child(5) {
    display: none;
  }
  .trust-grid { grid-template-columns: 1fr; }
  .craft-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { flex-direction: column; gap: 20px; }
}

@media (max-width: 560px) {
  .topnav-links { gap: 16px; }
  .topnav-links a { font-size: 14px; }
  .feature-grid { grid-template-columns: 1fr; }
  /* Mobile: 2-column phone grid — shows all 5 with last one centered */
  .showcase-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  /* Restore all items on mobile */
  .showcase-item:nth-child(4),
  .showcase-item:nth-child(5) {
    display: flex;
  }
  /* Center the lone 5th item */
  .showcase-item:nth-child(5) {
    grid-column: 1 / -1;
    max-width: 200px;
    margin: 0 auto;
  }
  .showcase-item figcaption { min-height: 60px; }
  .craft-grid { grid-template-columns: 1fr; gap: 24px; }
  .faq-item summary { padding: 18px 20px; font-size: 15px; padding-right: 48px; }
  .faq-item summary::after { right: 18px; }
  .faq-item p { padding: 0 20px 20px; font-size: 14.5px; }
  .waitlist-card { padding: 48px 24px; }
  .phone-frame { width: 280px; }
  .showcase { padding: 72px 0; }
}

/* ============================================================
   Methodology page — long-form documentation styles
   ============================================================ */

.doc {
  background: var(--bg);
  padding: 72px 24px 96px;
}
.doc-inner {
  max-width: 760px;
  margin: 0 auto;
}
.doc-header {
  text-align: left;
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-strong);
}
.doc-header h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 14px 0 18px;
  text-wrap: balance;
}
.doc-header .lede {
  margin: 0 0 14px;
  max-width: none;
}
.doc-header .muted-tiny {
  font-size: 13px;
  color: var(--muted-2);
  margin-top: 0;
}

.doc-section {
  margin-bottom: 56px;
}
.doc-section h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}
.doc-section h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.doc-section p {
  font-size: 16px;
  line-height: 1.72;
  color: var(--ink-2);
  margin: 0 0 14px;
  text-wrap: pretty;
}
.doc-section ul,
.doc-section ol {
  font-size: 16px;
  line-height: 1.72;
  color: var(--ink-2);
  padding-left: 22px;
  margin: 0 0 14px;
}
.doc-section li { margin-bottom: 8px; }
.doc-section .muted { color: var(--muted); font-size: 14px; }

.weight-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: 3px 10px;
  border-radius: 999px;
  vertical-align: middle;
}

/* Formula table for the 5-input breakdown */
.formula-block {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 8px 0;
  margin: 24px 0;
  overflow: hidden;
  position: relative;
}
.formula-block::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 35%);
}
:root[data-theme="light"] .formula-block::before {
  background: linear-gradient(180deg, rgba(0,201,167,0.04) 0%, transparent 40%);
}
.formula-row {
  display: grid;
  grid-template-columns: 1fr auto 1.6fr;
  gap: 16px;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.formula-row:last-child { border-bottom: none; }
.formula-label {
  font-weight: 600;
  color: var(--ink);
  font-size: 16px;
}
.formula-weight {
  display: flex;
  align-items: center;
  justify-content: center;
}
.formula-weight span {
  font-family: 'Inter', sans-serif;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 18px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: 4px 12px;
  border-radius: 8px;
  min-width: 60px;
  text-align: center;
}
.formula-meta {
  font-size: 14px;
  color: var(--muted);
}
.formula-row.formula-penalty .formula-weight span {
  color: var(--coral);
  background: rgba(255, 107, 107, 0.12);
}

/* Score band reference */
.band-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 20px 0 12px;
}
.band-row {
  display: grid;
  grid-template-columns: 110px 140px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
}
.band-num {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  font-size: 16px;
}
.band-name {
  font-weight: 600;
  font-size: 15px;
}
.band-meta {
  color: var(--muted);
  font-size: 14px;
}
.band-excellent { border-left: 3px solid #00C9A7; }
.band-excellent .band-num { color: #00C9A7; }
.band-good { border-left: 3px solid #6cd994; }
.band-good .band-num { color: #6cd994; }
.band-fair { border-left: 3px solid #FFB347; }
.band-fair .band-num { color: #FFB347; }
.band-poor { border-left: 3px solid #FF6B6B; }
.band-poor .band-num { color: #FF6B6B; }

/* Caveat list — visually distinct from generic ul */
.caveat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.caveat-list li {
  padding: 14px 0 14px 32px;
  border-top: 1px solid var(--line);
  position: relative;
}
.caveat-list li:first-child { border-top: none; padding-top: 0; }
.caveat-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 2px solid var(--primary);
  box-sizing: border-box;
}
.caveat-list li:first-child::before { top: 8px; }

/* Citations */
.cite {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 2px;
  vertical-align: super;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.cite:hover { color: var(--primary); background: var(--primary-soft); }

.references {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  padding-left: 22px;
}
.references li {
  margin-bottom: 12px;
  scroll-margin-top: 80px;
}
.references li:target {
  background: var(--primary-soft);
  border-radius: 6px;
  padding: 6px 10px;
  margin-left: -10px;
  margin-right: -10px;
}
.references strong { color: var(--ink); font-weight: 600; }
.references em { color: var(--ink-2); }
.references a { color: var(--primary-dark); }

/* Doc CTA */
.doc-cta {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  margin-top: 48px;
}
.doc-cta p {
  margin: 0 0 18px;
  font-size: 17px;
  color: var(--ink-2);
}

/* Responsive */
@media (max-width: 720px) {
  .doc { padding: 56px 20px 80px; }
  .doc-header h1 { font-size: 30px; }
  .formula-row {
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
  }
  .formula-meta { grid-column: 1 / -1; padding-top: 4px; }
  .band-row {
    grid-template-columns: 90px 1fr;
    gap: 4px 14px;
  }
  .band-meta { grid-column: 1 / -1; padding-top: 2px; }
}

/* ===== Methodology callout (landing page) ===== */
.methodology-callout {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 80px 0;
}
.callout-card {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 40px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.callout-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(600px 220px at 50% 0%, rgba(0,201,167,0.16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 35%);
}
:root[data-theme="light"] .callout-card::before {
  background:
    radial-gradient(600px 220px at 50% 0%, rgba(0,201,167,0.10), transparent 60%),
    linear-gradient(180deg, rgba(0,201,167,0.04) 0%, transparent 40%);
}
.callout-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  position: relative;
}
.callout-card h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  text-wrap: balance;
  position: relative;
}
.callout-card p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 24px;
  position: relative;
}
.btn-callout {
  position: relative;
  margin-bottom: 28px;
}
.callout-citations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  position: relative;
}
.callout-citations span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--muted-2);
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}

@media (max-width: 720px) {
  .methodology-callout { padding: 64px 0; }
  .callout-card { padding: 36px 24px; }
  .callout-citations { gap: 8px; }
  .callout-citations span { font-size: 11px; padding: 3px 8px; }
}
