/* ==========================================================================
   Landing page (home only). Loaded after style.css via `extraCss`.
   Everything here is scoped to landing-only classes so the blog and other
   pages keep the plain styles.
   ========================================================================== */

:root {
  --court: #2f6b4f;
  --court-line: rgba(255, 255, 255, 0.72);
  --ink: #0f1d16;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Shared bits ===== */
.eyebrow {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
}

.js-only { display: none; }
.js .js-only { display: block; }

.section-lead {
  text-align: center;
  color: var(--color-text-muted);
  margin: 0;
}

/* Only hide reveal targets when scripting is available to un-hide them. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.btn-shine {
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(21, 128, 61, 0.28);
}

.btn-shine::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg);
  animation: shine 4.5s ease-in-out infinite;
}

@keyframes shine {
  0%, 62% { left: -60%; }
  92%, 100% { left: 130%; }
}

/* ===== Hero ===== */
.hero-v2 {
  position: relative;
  overflow: hidden;
  padding: 84px 0 96px;
  text-align: left;
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(22, 163, 74, 0.16), transparent 62%),
    radial-gradient(760px 460px at 6% 8%, rgba(234, 179, 8, 0.14), transparent 60%),
    linear-gradient(180deg, #f7fbf6 0%, var(--color-bg) 100%);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 620px;
  height: 620px;
  top: -220px;
  right: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.22), transparent 68%);
  filter: blur(20px);
  animation: drift 16s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-70px, 60px, 0) scale(1.12); }
}

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--color-bg));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  margin-bottom: 22px;
  border: 1px solid rgba(22, 163, 74, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.hero-headline-static {
  display: block;
}

.hero-v2 h1 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

/* Word carousel — the phrases are stacked on top of each other and cross-faded,
   so nothing can ever spill onto the line above (an overflow-clipped sliding
   track proved unreliable across browsers). An invisible sizer holds height. */
.word-rotator {
  position: relative;
  display: block;
}

.word-sizer {
  display: block;
  visibility: hidden;
}

.word-rotator .word {
  position: absolute;
  inset: 0;
  display: block;
  color: var(--color-text-muted);
  opacity: 0;
  animation: swap-words 28s ease-in-out infinite;
}

.word-rotator .word:nth-of-type(2) { animation-delay: 0s; }
.word-rotator .word:nth-of-type(3) { animation-delay: 7s; }
.word-rotator .word:nth-of-type(4) { animation-delay: 14s; }
.word-rotator .word:nth-of-type(5) { animation-delay: 21s; color: var(--color-primary); }

/* One phrase holds for ~6s of each 7s slot; the remainder is the crossfade. */
@keyframes swap-words {
  0% { opacity: 0; transform: translateY(0.18em); }
  2%, 23% { opacity: 1; transform: none; }
  25%, 100% { opacity: 0; transform: translateY(-0.14em); }
}

/* No JS is fine here — this is pure CSS — but if animations are off, pin the
   final phrase so the headline still reads correctly. */
.no-anim .word-rotator .word { animation: none; }
.no-anim .word-rotator .word:nth-of-type(5) { opacity: 1; }

.hero-v2 .hero-subtitle {
  margin: 0 0 32px;
  max-width: 34em;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-stat {
  flex: 1 1 130px;
  padding: 14px 16px;
  border: 1px solid rgba(22, 163, 74, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(8px);
}

.hero-stat dd {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-primary-dark);
  line-height: 1.1;
}

/* Grows to absorb the height difference when one label wraps, so a wrapped
   label never leaves a ragged gap above the number in its neighbours. */
.hero-stat dt {
  order: 2;
  flex: 1;
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--color-text-muted);
}

.hero-stat {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
}

/* ===== Hero phone mock ===== */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-card {
  position: relative;
  width: min(320px, 100%);
  padding: 12px 12px 16px;
  border-radius: 30px;
  background: linear-gradient(160deg, #ffffff, #f2f8f0);
  border: 1px solid rgba(21, 128, 61, 0.16);
  box-shadow: 0 40px 80px rgba(21, 128, 61, 0.18), 0 4px 12px rgba(0, 0, 0, 0.05);
  animation: bob 7s ease-in-out infinite;
  transform-style: preserve-3d;
  transition: transform 0.25s var(--ease-out);
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}

.phone-notch {
  width: 92px;
  height: 5px;
  margin: 2px auto 12px;
  border-radius: 99px;
  background: rgba(15, 29, 22, 0.12);
}

.phone-screen {
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--color-border);
}

.phone-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--color-border);
  font-size: 0.8rem;
  font-weight: 700;
}

.phone-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  flex: none;
}

/* The roster is the tallest state, so it defines the body height; the lineup
   is layered on top of it rather than replacing it in flow. */
.phone-body {
  position: relative;
}

.phone-roster {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* visibility, not display — the box must keep reserving its height */
.phone-roster.hide { visibility: hidden; }

.p-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 10px;
  background: var(--color-surface-soft);
  font-size: 0.82rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), background 0.3s;
}

.p-row.in { opacity: 1; transform: none; }

.p-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 800;
  color: #fff;
  background: var(--color-primary);
  flex: none;
}

.p-name { flex: 1; font-weight: 600; }

.p-status {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--color-border);
  color: var(--color-text-muted);
  transition: background 0.3s, color 0.3s;
}

.p-status.yes { background: var(--color-primary-light); color: var(--color-primary-dark); }
.p-status.no { background: #fee2e2; color: #b91c1c; }
.p-status.maybe { background: #fef3c7; color: #a16207; }

.phone-lineup {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  gap: 7px;
  background: #fff;
}

.phone-lineup.show { display: flex; }

.l-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(22, 163, 74, 0.2);
  background: linear-gradient(135deg, rgba(220, 252, 231, 0.7), rgba(255, 255, 255, 0.7));
  font-size: 0.8rem;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.l-row.in { opacity: 1; transform: none; }
.l-row b { font-weight: 800; color: var(--color-primary-dark); }
.l-row span { color: var(--color-text-muted); }

/* Standby row + the moment a standby is promoted into a line. */
.l-standby {
  border-style: dashed;
  border-color: rgba(234, 179, 8, 0.5);
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.6), rgba(255, 255, 255, 0.7));
}

.l-standby b { color: #a16207; }

.l-row.swapping {
  border-color: rgba(220, 38, 38, 0.4);
  background: linear-gradient(135deg, rgba(254, 226, 226, 0.7), #fff);
}

.l-row.swapped {
  animation: swap-flash 0.9s var(--ease-out);
}

@keyframes swap-flash {
  0% { transform: scale(0.97); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.45); }
  100% { transform: none; box-shadow: 0 0 0 12px rgba(22, 163, 74, 0); }
}

.phone-foot .e { margin-right: 6px; }

.phone-foot {
  margin-top: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: center;
  min-height: 1.2em;
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  animation: float-chip 6s ease-in-out infinite;
}

.float-chip span {
  font-size: 0.95rem;
  line-height: 1;
}

.chip-1 { top: 8%; left: -4%; animation-delay: 0s; }
.chip-2 { top: 46%; right: -6%; animation-delay: 1.4s; }
.chip-3 { bottom: 6%; left: 2%; animation-delay: 2.8s; }

@keyframes float-chip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

/* ===== Demo ===== */
.demo {
  position: relative;
  padding: 90px 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.demo h2,
.features-v2 h2 {
  text-align: center;
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.demo-shell {
  margin-top: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff, #f8fbf7);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.demo-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
  border-bottom: 1px solid var(--color-border);
  background: rgba(247, 250, 245, 0.7);
}

.demo-tabs button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 16px 10px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.demo-tabs button:hover { background: rgba(22, 163, 74, 0.05); color: var(--color-text); }

.demo-tabs button span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  flex: none;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.demo-tabs button[aria-selected='true'] { color: var(--color-text); }

.demo-tabs button[aria-selected='true'] span {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.1);
}

.demo-panels {
  position: relative;
  padding: 34px;
  min-height: 320px;
}

/* Without JS the tabs can't switch, so every panel is simply stacked and shown.
   With JS, one panel is visible at a time. */
.demo-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: center;
  margin-bottom: 28px;
}

.demo-panel:last-child { margin-bottom: 0; }

.js .demo-panel {
  display: none;
  margin-bottom: 0;
  animation: panel-in 0.5s var(--ease-out) both;
}

.js .demo-panel.is-active { display: grid; }

html:not(.js) .demo-tabs { display: none; }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.demo-panel-copy h3 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.demo-panel-copy p {
  color: var(--color-text-muted);
}

.demo-panel-viz {
  border-radius: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 30px rgba(21, 128, 61, 0.07);
}

/* Sync panel */
.sync-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 4px;
  font-size: 0.9rem;
  border-bottom: 1px dashed var(--color-border);
  animation: row-in 0.5s var(--ease-out) both;
}

.sync-row:nth-child(2) { animation-delay: 0.1s; }
.sync-row:nth-child(3) { animation-delay: 0.2s; }
.sync-row:nth-child(4) { animation-delay: 0.3s; }
.sync-row:last-child { border-bottom: 0; }
.sync-row span { color: var(--color-text-muted); }
.sync-row b { font-weight: 700; color: var(--color-primary-dark); }

.sync-row-diff {
  margin-top: 8px;
  padding: 12px;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.sync-row-diff b { color: #a16207; }

/* TennisLink registration watch */
.reg-title {
  margin: 16px 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.reg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  margin-bottom: 7px;
  border-radius: 10px;
  border-left: 3px solid var(--color-border);
  background: var(--color-surface-soft);
  font-size: 0.84rem;
  animation: row-in 0.5s var(--ease-out) both;
}

.reg-row:last-child { margin-bottom: 0; }
.reg-row:nth-of-type(2) { animation-delay: 0.09s; }
.reg-row:nth-of-type(3) { animation-delay: 0.18s; }

.reg-name { font-weight: 700; }

.reg-row b {
  font-size: 0.76rem;
  font-weight: 700;
  text-align: right;
}

.reg-pending { border-left-color: var(--color-accent); background: #fffbeb; }
.reg-pending b { color: #a16207; }

.reg-cleared { border-left-color: var(--color-primary); background: #f0fdf4; }
.reg-cleared b { color: var(--color-primary-dark); }

.reg-unknown { border-left-color: #94a3b8; }
.reg-unknown b { color: var(--color-text-muted); }

@keyframes row-in {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: none; }
}

/* Poll panel */
.poll-viz {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.poll-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 11px;
  background: var(--color-surface-soft);
  font-size: 0.88rem;
}

.poll-row .p-name { font-weight: 600; }

.poll-bar {
  height: 8px;
  border-radius: 99px;
  background: var(--color-border);
  overflow: hidden;
  margin-top: 6px;
}

.poll-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--color-primary), #4ade80);
  transition: width 0.8s var(--ease-out);
}

.poll-summary {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

/* Lineup panel */
.lineup-viz {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lineup-hint {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.lineup-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1.5px dashed var(--color-border);
  font-size: 0.88rem;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease-out);
}

.lineup-slot.filled {
  border-style: solid;
  border-color: rgba(22, 163, 74, 0.35);
  background: linear-gradient(135deg, rgba(220, 252, 231, 0.65), #fff);
  transform: translateX(2px);
}

.lineup-slot b { font-weight: 800; min-width: 58px; }
.lineup-slot em { font-style: normal; color: var(--color-text-muted); }

.lineup-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 10px;
  border-top: 1px dashed var(--color-border);
}

.pool-chip {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  transition: opacity 0.3s, transform 0.3s;
}

.pool-chip.used { opacity: 0.32; transform: scale(0.92); }

.pool-chip.out {
  opacity: 1;
  background: #fee2e2;
  color: #b91c1c;
  text-decoration: line-through;
}

.lineup-standby {
  border-color: rgba(234, 179, 8, 0.55);
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.5), #fff);
}

.lineup-standby b { color: #a16207; }

.lineup-slot.promoted {
  animation: swap-flash 0.9s var(--ease-out);
  border-color: rgba(22, 163, 74, 0.5);
}

.lineup-note {
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  animation: row-in 0.45s var(--ease-out) both;
}

/* Send / score panel */
.send-viz {
  display: grid;
  gap: 14px;
}

.send-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 15px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0fdf4, #fff);
  border: 1px solid rgba(22, 163, 74, 0.2);
}

.send-card b { font-size: 0.95rem; }
.send-card > span { font-size: 0.82rem; color: var(--color-text-muted); }

.send-avatars { display: flex; margin-top: 4px; }

.send-avatars i {
  width: 27px;
  height: 27px;
  margin-right: -7px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 0.63rem;
  font-weight: 800;
  color: #fff;
  background: var(--color-primary);
  border: 2px solid #fff;
  animation: pop-in 0.4s var(--ease-out) both;
}

.send-avatars i:nth-child(2) { animation-delay: 0.08s; background: #0d9488; }
.send-avatars i:nth-child(3) { animation-delay: 0.16s; background: #0284c7; }
.send-avatars i:nth-child(4) { animation-delay: 0.24s; background: #7c3aed; }
.send-avatars i:nth-child(5) { animation-delay: 0.32s; background: #57534e; }

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: none; }
}

.send-status { font-size: 0.78rem; font-weight: 700; color: var(--color-primary-dark); }

.rsvp-list {
  display: grid;
  gap: 7px;
}

.rsvp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border-radius: 11px;
  background: var(--color-surface-soft);
  font-size: 0.85rem;
  animation: row-in 0.5s var(--ease-out) both;
}

.rsvp-row:nth-child(2) { animation-delay: 0.1s; }
.rsvp-row:nth-child(3) { animation-delay: 0.2s; }
.rsvp-row .p-name { font-weight: 600; }

/* Score collection → USTA submission, as a three-beat flow. */
.score-flow {
  list-style: none;
  display: grid;
  gap: 8px;
  position: relative;
}

.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--color-surface-soft);
  animation: row-in 0.5s var(--ease-out) both;
}

.flow-step:nth-child(2) { animation-delay: 0.12s; }
.flow-step:nth-child(3) { animation-delay: 0.24s; }

.flow-step b {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
}

.flow-step span:not(.flow-icon) {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.flow-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--color-border);
  font-size: 0.9rem;
  line-height: 1;
}

.flow-step-final {
  background: linear-gradient(135deg, rgba(220, 252, 231, 0.75), #fff);
  border: 1px solid rgba(22, 163, 74, 0.22);
}

.flow-step-final .flow-icon { border-color: rgba(22, 163, 74, 0.3); }

/* Animated step 5 (JS only) */
.sf-email {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0fdf4, #fff);
  border: 1px solid rgba(22, 163, 74, 0.2);
  animation: row-in 0.5s var(--ease-out) both;
}

.sf-email b { display: block; font-size: 0.88rem; }
.sf-email span:not(.flow-icon) { font-size: 0.78rem; color: var(--color-text-muted); }

.sf-lines { display: grid; gap: 8px; }

.sf-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-radius: 11px;
  border: 1px dashed var(--color-border);
  font-size: 0.85rem;
  transition: border-color 0.3s, background 0.3s;
}

.sf-line b { font-weight: 800; min-width: 54px; }

.sf-line em {
  flex: 1;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.sf-line i {
  font-style: normal;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sf-line.done {
  border-style: solid;
  border-color: rgba(22, 163, 74, 0.3);
  background: linear-gradient(135deg, rgba(220, 252, 231, 0.55), #fff);
  animation: pop-in 0.4s var(--ease-out);
}

.sf-line.done em { color: var(--color-primary-dark); font-weight: 600; }

.sf-usta {
  display: grid;
  gap: 9px;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  transition: border-color 0.3s, background 0.3s;
}

.sf-usta-head { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; }

.sf-bar {
  height: 7px;
  border-radius: 99px;
  background: var(--color-border);
  overflow: hidden;
}

.sf-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transition: width 1.3s var(--ease-out);
}

.sf-usta-note { font-size: 0.78rem; color: var(--color-text-muted); }
.sf-usta-note b { color: var(--color-primary-dark); font-weight: 800; }

.sf-usta.filed {
  border-color: rgba(22, 163, 74, 0.35);
  background: linear-gradient(135deg, rgba(220, 252, 231, 0.5), #fff);
  animation: swap-flash 0.9s var(--ease-out);
}

.score-card {
  display: grid;
  gap: 7px;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.score-card > div {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
}

.score-card span { color: var(--color-text-muted); }
.score-card b { font-variant-numeric: tabular-nums; font-weight: 700; }

.score-total {
  margin-top: 4px;
  padding-top: 9px;
  border-top: 1px dashed var(--color-border);
}

.score-total b { color: var(--color-primary-dark); }

/* ===== Features ===== */
.features-v2 {
  padding: 90px 0;
  background: linear-gradient(180deg, var(--color-bg) 0%, #f4f8f2 100%);
}

.features-v2 .features-grid { margin-top: 40px; }

.features-v2 .feature-card {
  position: relative;
  padding: 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(21, 128, 61, 0.1);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s;
}

/* Cursor-tracked spotlight; --mx/--my are set in landing.js */
.features-v2 .feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(22, 163, 74, 0.14), transparent 70%);
  transition: opacity 0.3s;
  pointer-events: none;
}

.features-v2 .feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(21, 128, 61, 0.24);
  box-shadow: 0 22px 48px rgba(21, 128, 61, 0.14);
}

.features-v2 .feature-card:hover::before { opacity: 1; }

.features-v2 .feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  font-size: 1.5rem;
  background: var(--color-primary-light);
  transition: transform 0.3s var(--ease-out);
}

.features-v2 .feature-card:hover .feature-icon { transform: rotate(-8deg) scale(1.08); }

/* ===== Waitlist ===== */
.waitlist-v2 {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 340px at 50% 0%, rgba(22, 163, 74, 0.1), transparent 65%),
    var(--color-surface);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-v2 { padding: 60px 0 72px; text-align: center; }
  .hero-v2 .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .word-rotator-track span { text-align: center; }
  .demo-panel { grid-template-columns: 1fr; gap: 24px; }
  .demo-tabs { grid-template-columns: repeat(2, 1fr); }
  .demo-tabs button { font-size: 0.82rem; padding: 13px 8px; }
}

@media (max-width: 600px) {
  .hero-v2 h1 { font-size: 1.95rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .demo-panels { padding: 22px; }
  .float-chip { display: none; }
  .hero-stat dd { font-size: 1.4rem; }
  .demo, .features-v2 { padding: 64px 0; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }

  .word-rotator .word { animation: none; opacity: 0; }
  .word-rotator .word:nth-of-type(5) { opacity: 1; }

  .hero-canvas,
  .hero-glow,
  .phone-card,
  .float-chip,
  .btn-shine::after,
  .pulse-dot,
  .sync-row,
  .send-avatars i,
  .demo-panel {
    animation: none !important;
  }

  .hero-canvas { display: none; }
  .features-v2 .feature-card:hover { transform: none; }
}
