/* ══════════════════════════════════════════════════════════════════
   CloseChat AI — marketing site (LANDING-1)
   Principles (project CLAUDE.md): Apple-like, neutral white/gray base,
   colour only for meaning (green = primary action / key accent),
   hairlines instead of boxes, no card-in-card, consistent scale,
   no emoji, motion 140-180ms and reduced-motion respected.
   ══════════════════════════════════════════════════════════════════ */

:root {
  /* colour */
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: #e5e5ea;
  --accent: #25d366;          /* primary button / key accents only */
  --accent-deep: #128c7e;     /* accent as text / border */
  --on-accent: #062f21;
  --tint: rgba(18, 140, 126, 0.07);
  --warn: #c2410c;
  --navy: #0B1F2A;
  --green: #22C55E;
  --r4: 20px;
  --r5: 24px;

  /* spacing scale */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 72px;
  --s9: 88px;

  /* radius scale */
  --r1: 8px;
  --r2: 12px;
  --r3: 16px;

  /* type */
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --fs-sm: 14px;
  --fs-md: 16px;
  --fs-lg: 18px;

  --max: 1080px;
  --narrow: 680px;
  --ease: 160ms ease;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 72px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-deep); }

h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--s4);
}

.narrow { max-width: var(--narrow); margin-left: auto; margin-right: auto; }

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── Header ───────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 48px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
  font-size: var(--fs-lg);
  letter-spacing: -0.01em;
}

.brand img { width: 28px; height: 28px; border-radius: 7px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 var(--s5);
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: var(--fs-md);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--ease), border-color var(--ease), transform var(--ease);
}

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #20bd5a; }
.btn-primary:active { transform: scale(0.985); }

.btn-outline { background: transparent; color: var(--ink); border-color: #c7c7cc; }
.btn-outline:hover { background: var(--bg-soft); }

.btn-sm { min-height: 40px; padding: 0 var(--s4); font-size: var(--fs-sm); }
.site-header .btn-sm { min-height: 48px; padding: 0 var(--s4); }

.btn-block { display: flex; width: 100%; }

.btn:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 2px;
}

.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.micro {
  margin-top: var(--s3);
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* ── Sections ─────────────────────────────────────────────────────── */

section { padding: var(--s8) 0; }

section + section { border-top: 1px solid var(--line); }

.soft { background: var(--bg-soft); }

h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
}

h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 650; }

.eyebrow {
  display: block;
  margin-bottom: var(--s3);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-deep);
}

.section-head { margin-bottom: var(--s7); }
.section-head p { margin-top: var(--s3); color: var(--muted); font-size: var(--fs-lg); }
.section-head.center { text-align: center; max-width: var(--narrow); margin-left: auto; margin-right: auto; }

/* ── Shared: trust pills, big button, dark sections ──────────────── */

.btn-lg { min-height: 56px; padding: 0 var(--s6); font-size: 17px; }

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s2);
  margin-top: var(--s5);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
}

.pill .icon { width: 16px; height: 16px; color: var(--accent-deep); }
.pill.strong { background: var(--navy); color: #fff; }
.pill.strong .icon { color: var(--green); }

.pills.on-dark .pill { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.86); }
.pills.on-dark .pill .icon { color: rgba(255, 255, 255, 0.7); }
.pills.on-dark .pill.strong { background: rgba(34, 197, 94, 0.18); color: #fff; box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.5); }
.pills.on-dark .pill.strong .icon { color: var(--green); }

.dark { background: var(--navy); color: #fff; border-top: 0; }
.dark + section { border-top: 0; }
.dark h2 { color: #fff; }

/* ── Hero: one stage, product floating over the photo ─────────────── */

.hero { padding: var(--s7) 0 var(--s8); border-top: 0; }

.hero-copy { max-width: 900px; margin: 0 auto; text-align: center; }

.hero h1 {
  font-size: clamp(34px, 6.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero .subtitle {
  margin: var(--s4) auto 0;
  max-width: 38em;
  font-size: var(--fs-lg);
  color: var(--ink-2);
}

.hero .cta { margin-top: var(--s6); }

.hero-stage { display: grid; margin-top: var(--s7); }

.stage-photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--r5);
  object-position: 66% 30%;
}

.hero-stage .hero-shot {
  position: relative;
  z-index: 1;
  width: calc(100% - var(--s5));
  max-width: 540px;
  margin: calc(-1 * var(--s8)) auto 0;
}

.hero-shot .win {
  border-color: transparent;
  box-shadow: 0 2px 4px rgba(11, 31, 42, 0.08), 0 28px 64px rgba(11, 31, 42, 0.3);
}

.hero-shot figcaption { margin-top: var(--s2); text-align: center; }

/* ── Pain: dark section ───────────────────────────────────────────── */

.pain-top { display: grid; gap: var(--s6); }

.pain h2 {
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.pain-quote {
  margin-top: var(--s5);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
}

.pain-quote strong { color: #fff; font-weight: 650; }

.pain-photo {
  aspect-ratio: 16 / 10;
  border-radius: var(--r5);
  background: #12303f;
  object-position: 32% center;
}

.pain-grid { display: grid; gap: var(--s3); margin-top: var(--s6); }

.pain-grid li {
  display: flex;
  align-items: flex-start;
  gap: var(--s4);
  padding: var(--s5);
  border-radius: var(--r4);
  background: rgba(255, 255, 255, 0.06);
  font-size: 17px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}

.pain-x {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(248, 113, 113, 0.14);
  color: #f87171;
}

.pain-x .icon { width: 16px; height: 16px; stroke-width: 2.25; }

.pain-close {
  max-width: 18em;
  margin: var(--s7) auto 0;
  text-align: center;
  font-size: clamp(24px, 3.6vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.pain-close::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  margin: 0 auto var(--s5);
  border-radius: 2px;
  background: var(--green);
}

/* ── Shift: statement band ────────────────────────────────────────── */

.shift-title {
  max-width: 12em;
  font-size: clamp(36px, 6.2vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.shift-grid { display: grid; gap: var(--s5); align-items: center; margin-top: var(--s6); }

.shift-photo { aspect-ratio: 4 / 3; border-radius: var(--r5); }

.shift-body > p { font-size: var(--fs-lg); color: var(--ink-2); }

.vs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: var(--s5); }

.vs li {
  display: flex;
  flex-direction: column;
  padding: var(--s4);
  border-radius: var(--r4);
}

.vs strong { font-size: 17px; line-height: 1.3; font-weight: 650; letter-spacing: -0.01em; }
.vs li > span:last-child { margin-top: 2px; font-size: 15px; line-height: 1.4; }

.vs-ico {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin-bottom: var(--s3);
  border-radius: 50%;
}

.vs-ico .icon { width: 14px; height: 14px; stroke-width: 2.25; }

.vs-bot { background: #fff; }
.vs-bot strong { color: var(--ink-2); }
.vs-bot > span:last-child { color: var(--muted); }
.vs-bot .vs-ico { background: rgba(0, 0, 0, 0.06); color: var(--muted); }

.vs-us {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.4), 0 16px 36px rgba(11, 31, 42, 0.22);
}

.vs-us > span:last-child { color: rgba(255, 255, 255, 0.72); }
.vs-us .vs-ico { background: rgba(34, 197, 94, 0.2); color: var(--green); }

/* ── Photos ───────────────────────────────────────────────────────── */

.photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r3);
  background: var(--bg-soft);
}

.photo.sq { aspect-ratio: 1 / 1; border-radius: var(--r2); }

/* ── How every reply happens: connected timeline ──────────────────── */

.flow {
  counter-reset: flow;
  display: grid;
  gap: var(--s4);
  padding-left: 44px;
}

.flow li {
  counter-increment: flow;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--s5);
  border-radius: var(--r5);
  background: var(--bg-soft);
}

/* numbered node on the connector line */
.flow li::before {
  content: counter(flow);
  position: absolute;
  z-index: 1;
  left: -44px;
  top: var(--s5);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 2px #d2d2d7;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.flow li.is-you::before { background: var(--navy); box-shadow: inset 0 0 0 2px var(--green); color: #fff; }

/* connector to the next node */
.flow li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: -29px;
  top: calc(var(--s5) + 16px);
  width: 2px;
  height: calc(100% + var(--s4));
  background: #d2d2d7;
}

.flow .icon-img {
  width: 96px;
  height: 96px;
  border-radius: var(--r4);
  mix-blend-mode: multiply;
}

.flow h3 { margin-top: var(--s4); font-size: 22px; letter-spacing: -0.015em; }
.flow p { flex: 1; margin-top: var(--s1); color: var(--ink-2); }

.flow li.is-you { background: var(--navy); color: #fff; }
.flow li.is-you .icon-img { mix-blend-mode: normal; }
.flow li.is-you p { color: rgba(255, 255, 255, 0.74); }

.icon-img {
  width: 72px;
  height: 72px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--r2);
  background: var(--bg-soft);
}

.icon-img.sm { width: 64px; height: 64px; border-radius: var(--r3); }

.tag {
  margin-top: var(--s4);
  padding: 4px var(--s3);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}

.is-you .tag { background: var(--green); color: var(--on-accent); }

.remind-note {
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin-top: var(--s4);
  padding: var(--s4) var(--s5);
  border-radius: var(--r5);
  background: rgba(34, 197, 94, 0.09);
}

.remind-note p {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ── Start in four steps ──────────────────────────────────────────── */

.steps-banner { aspect-ratio: 16 / 10; border-radius: var(--r5); object-position: center 28%; }

.how-steps {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--s3);
  margin-top: var(--s3);
}

.how-steps li {
  display: flex;
  flex-direction: column;
  padding: var(--s5);
  border-radius: var(--r5);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 14px 36px rgba(0, 0, 0, 0.08);
}

.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s5); }

.step-num {
  font-size: 48px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent-deep);
}

.how-steps h3 { margin-bottom: var(--s2); font-size: 19px; }
.how-steps p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }

.steps-cta { margin-top: var(--s6); text-align: center; }

/* ── Plain numbered list (sign-up success panel) ──────────────────── */

.steps { counter-reset: step; }

.steps li {
  counter-increment: step;
  position: relative;
  padding: var(--s5) 0 var(--s5) 52px;
  border-bottom: 1px solid var(--line);
}

.steps li:first-child { border-top: 1px solid var(--line); }

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: var(--s5);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--accent-deep);
  border-radius: 50%;
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--accent-deep);
}

.steps strong { display: block; font-size: var(--fs-lg); margin-bottom: var(--s1); }
.steps span { color: var(--ink-2); }

/* ── Features (all 25, always visible; bento tiles) ──────────────── */

.feat-group + .feat-group { margin-top: var(--s9); }

/* Group header: title on one side, a short photo strip on the other —
   the photo marks the start of each group without breaking the page
   like a full-width banner did (Elvis 2026-10-19: "放一张图片上去，感觉有点突兀"). */
.feat-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "img" "head" "tiles";
}
.feat-banner {
  grid-area: img;
  width: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
  margin-bottom: var(--s4);
  border-radius: var(--r5);
}
.feat-head { grid-area: head; margin-bottom: var(--s5); }
.feat-group > .tiles { grid-area: tiles; }

.feat-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s2);
  font-size: var(--fs-sm);
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--accent-deep);
}

.feat-eyebrow .icon { width: 18px; height: 18px; }
.feat-head h3 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.02em; }
.feat-head p { margin-top: var(--s1); color: var(--muted); font-size: var(--fs-lg); }

.tiles { display: grid; grid-template-columns: 1fr; gap: var(--s3); }

.tile {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  padding: var(--s5);
  border-radius: var(--r4);
  background: var(--bg-soft);
}

.tile-ico {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tint);
  color: var(--accent-deep);
}

.tile-ico .icon { width: 22px; height: 22px; }
.tile-body strong { display: block; font-size: 17px; line-height: 1.3; font-weight: 650; letter-spacing: -0.01em; }
.tile-body span { display: block; margin-top: var(--s1); font-size: 15px; line-height: 1.5; color: var(--ink-2); }

.tile.lead { justify-content: space-between; }
.tile.lead .tile-ico { width: 52px; height: 52px; }
.tile.lead .tile-ico .icon { width: 26px; height: 26px; }
.tile.lead .tile-body strong { font-size: 22px; letter-spacing: -0.015em; }
.tile.lead .tile-body span { font-size: var(--fs-md); }

/* The core promise: dark navy tiles, white text, green icons. */
.tiles-dark .tile { background: var(--navy); color: #fff; }
.tiles-dark .tile.lead {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(34, 197, 94, 0.26), rgba(34, 197, 94, 0) 58%),
    var(--navy);
}
.tiles-dark .tile-ico { background: rgba(34, 197, 94, 0.16); color: var(--green); }
.tiles-dark .tile-body span { color: rgba(255, 255, 255, 0.72); }

@media (prefers-reduced-motion: no-preference) {
  .tile { transition: transform 160ms ease, box-shadow 160ms ease; }
  .tile:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09); }
  .tiles-dark .tile:hover { box-shadow: 0 14px 32px rgba(11, 31, 42, 0.35); }
}

/* ── Product illustrations ────────────────────────────────────────── */

.shot { margin: 0; }

.shot figcaption {
  margin-top: var(--s3);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.win {
  border: 1px solid var(--line);
  border-radius: var(--r3);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
}

.app { display: grid; }

.chat {
  background: var(--bg-soft);
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.chat-top {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding-bottom: var(--s3);
  margin-bottom: var(--s1);
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.avatar {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #d9dde3;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 650;
  flex: none;
}

.bubble {
  max-width: 85%;
  padding: var(--s2) var(--s3);
  border-radius: var(--r2);
  background: #fff;
  border: 1px solid var(--line);
}

.bubble.out { align-self: flex-end; background: #e6f6e9; border-color: #cfeBd4; }
.bubble time { display: block; margin-top: 2px; font-size: 10px; color: var(--muted); text-align: right; }

.chat-input {
  margin-top: auto;
  padding: var(--s2) var(--s3);
  border: 1px dashed #c7c7cc;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.panel { padding: var(--s4); display: flex; flex-direction: column; gap: var(--s3); border-top: 1px solid var(--line); background: #fff; }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  font-weight: 650;
}

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 6px; }

.chip {
  display: inline-block;
  padding: 1px var(--s2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}

.chip.accent { border-color: var(--accent-deep); color: var(--accent-deep); }

.cap { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: 0.02em; }

.draft {
  padding: var(--s3);
  border-radius: var(--r1);
  background: var(--tint);
}

.cc-actions { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }

.cc-btn {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 var(--s4);
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 650;
}

.cc-link { font-size: 12px; color: var(--accent-deep); font-weight: 600; }

.kv { display: grid; }

.kv > div {
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--line);
}

.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); flex: none; }
.kv dd { text-align: right; font-weight: 550; }

.pending {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s3);
  border-radius: var(--r1);
  background: var(--tint);
}

.rows li {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--line);
}

.rows li:last-child { border-bottom: 0; }
.rows .who { flex: 1; min-width: 0; }
.rows .who b { display: block; font-weight: 600; }
.rows .who small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.scene-grid { display: grid; gap: var(--s7); }
.scene-grid .shot { display: flex; flex-direction: column; }
.scene-grid .win { flex: 1; }
.scene-grid h3 { margin: var(--s2) 0 0; font-size: var(--fs-lg); }


/* ── Pricing ──────────────────────────────────────────────────────── */

.plan-intro { text-align: center; max-width: var(--narrow); margin: 0 auto var(--s6); font-size: var(--fs-lg); color: var(--ink-2); }

.plans {
  display: grid;
  gap: var(--s4);
  max-width: 820px;
  margin: 0 auto;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--s6) var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--r3);
  background: #fff;
}

.plan.best { border: 2px solid var(--accent-deep); padding: calc(var(--s6) - 1px) calc(var(--s5) - 1px); }

.badge {
  position: absolute;
  top: calc(-1 * var(--s3));
  left: var(--s5);
  padding: 2px var(--s3);
  border-radius: 999px;
  background: var(--accent-deep);
  color: #fff;
  font-size: 12px;
  font-weight: 650;
}

.plan h3 { font-size: var(--fs-lg); color: var(--ink-2); font-weight: 600; }
.plan .price { margin-top: var(--s2); font-size: 44px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.plan .price span { font-size: var(--fs-md); font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .billed { margin-top: var(--s1); color: var(--muted); font-size: var(--fs-sm); }
.plan ul { margin: var(--s4) 0 var(--s5); }
.plan li { padding: var(--s2) 0 var(--s2) 28px; position: relative; color: var(--ink-2); font-size: 15px; }
.plan li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 14px;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--accent-deep);
  border-bottom: 2px solid var(--accent-deep);
  transform: rotate(-45deg);
}
.plan .btn { margin-top: auto; }

.plan-foot { text-align: center; margin-top: var(--s5); color: var(--muted); font-size: var(--fs-sm); }

/* ── Comparison (three cards, CloseChat is the hero) ──────────────── */

.cmp { display: grid; gap: var(--s5); padding: var(--s3) 0; }

.cmp-card {
  position: relative;
  padding: var(--s6) var(--s5) var(--s4);
  border-radius: var(--r5);
  background: var(--bg-soft);
}

.cmp-card h3 { margin-bottom: var(--s2); font-size: var(--fs-lg); font-weight: 650; color: var(--ink-2); }

.cmp-card li {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s3) 0;
  border-top: 1px solid var(--line);
}

.cmp-label { display: block; font-size: 13px; line-height: 1.4; color: var(--muted); }
.cmp-val { display: block; margin-top: 2px; font-size: var(--fs-md); line-height: 1.35; font-weight: 600; }

.cmp-mark {
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: var(--muted);
}

.cmp-mark .icon { width: 14px; height: 14px; stroke-width: 2.25; }
.cmp-bot .cmp-mark.no { background: rgba(194, 65, 12, 0.10); color: var(--warn); }

.cmp-hero {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.4), 0 24px 56px rgba(11, 31, 42, 0.28);
}

.cmp-hero h3 { color: #fff; font-size: 24px; letter-spacing: -0.015em; }
.cmp-hero li { border-top-color: rgba(255, 255, 255, 0.14); padding: var(--s4) 0; }
.cmp-hero .cmp-label { color: rgba(255, 255, 255, 0.64); }
.cmp-hero .cmp-val { font-size: 18px; font-weight: 650; }
.cmp-hero .cmp-mark { background: rgba(34, 197, 94, 0.2); color: var(--green); }

.cmp-pill {
  position: absolute;
  top: -13px;
  left: var(--s5);
  padding: 4px var(--s3);
  border-radius: 999px;
  background: var(--green);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Mobile: CloseChat first. */
@media (max-width: 859px) {
  .cmp-hero { order: -1; margin-top: var(--s3); }
}

/* ── FAQ (exclusive accordion; JS animates the height) ───────────── */

.faq { max-width: var(--narrow); margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  position: relative;
  display: block;
  min-height: 56px;
  padding: var(--s4) var(--s7) var(--s4) 0;
  font-size: var(--fs-lg);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color var(--ease);
}

.faq summary:hover { color: var(--accent-deep); }
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '';
  position: absolute;
  right: var(--s2);
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 220ms ease;
}

.faq details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq details.is-closing summary::after { transform: translateY(-2px) rotate(45deg); }

.faq .answer { overflow: hidden; color: var(--ink-2); }
.faq .answer p { padding-right: var(--s7); }
.faq .answer p:last-child { padding-bottom: var(--s5); }
.faq .answer p + p { margin-top: var(--s3); }

/* ── For / not for ────────────────────────────────────────────────── */

.industries {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s3);
  margin: 0 auto var(--s7);
}

.industries figure { position: relative; overflow: hidden; border-radius: var(--r5); background: var(--bg-soft); }

.industries .photo.sq {
  aspect-ratio: 4 / 5;
  border-radius: 0;
  object-position: center 30%;
}

.industries figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: var(--s8) var(--s4) var(--s4);
  background: linear-gradient(to top, rgba(11, 31, 42, 0.82), rgba(11, 31, 42, 0));
  color: #fff;
  font-size: var(--fs-md);
  font-weight: 650;
  letter-spacing: -0.005em;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .industries .photo { transition: transform 240ms ease-out; }
  .industries figure:hover .photo { transform: scale(1.05); }
}

.fit { display: grid; gap: var(--s4); }

.fit > div { padding: var(--s6) var(--s6) var(--s4); border-radius: var(--r5); }
.fit .yes { background: rgba(34, 197, 94, 0.09); }
.fit .no { background: var(--bg-soft); }
.fit h3 { padding-bottom: var(--s2); font-size: 22px; letter-spacing: -0.015em; }

.fit li {
  display: flex;
  gap: var(--s3);
  padding: var(--s4) 0;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  color: var(--ink-2);
}

.fit .icon { width: 22px; height: 22px; margin-top: 2px; }
.fit .yes .icon { color: var(--accent-deep); }
.fit .no .icon { color: #8e8e93; }

/* ── Closing: full-width banner ───────────────────────────────────── */

.closing-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--r5);
  background: var(--navy);
  color: #fff;
}

.closing-media { position: relative; }

.closing-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 30% 40%;
}

.closing-media::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 55%;
  background: linear-gradient(to top, var(--navy), rgba(11, 31, 42, 0));
}

.closing-body { position: relative; padding: var(--s2) var(--s5) var(--s6); }
.closing h2 { color: #fff; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.03em; }
.closing-body > p { margin: var(--s4) 0 var(--s5); font-size: var(--fs-lg); color: rgba(255, 255, 255, 0.78); }
.closing .pills { justify-content: flex-start; }

/* ── Footer ───────────────────────────────────────────────────────── */

.site-footer { padding: var(--s7) 0; border-top: 1px solid var(--line); background: var(--bg-soft); }

.footer-links { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s5); }

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: var(--fs-sm);
}

.footer-links a:hover { color: var(--ink); text-decoration: underline; }

.site-footer .disclaimer { margin-top: var(--s3); max-width: 46em; font-size: 12px; color: var(--muted); line-height: 1.6; }
.site-footer .copy { margin-top: var(--s3); font-size: 12px; color: var(--muted); }
.site-footer .contact { font-size: 12px; color: var(--muted); }
.site-footer .contact a { color: var(--muted); }

/* ── Mobile sticky CTA ────────────────────────────────────────────── */

.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--line);
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 160ms ease-out, opacity 160ms ease-out;
}

/* Shown only once the hero's own button has scrolled out of view, so the
   first screen never shows the same button three times. */
.sticky-cta.is-visible { transform: none; opacity: 1; pointer-events: auto; }

@media (prefers-reduced-motion: reduce) {
  .sticky-cta { transition: none; }
}

.has-sticky { padding-bottom: 84px; }

/* ── Document pages (privacy / terms) ─────────────────────────────── */

.doc { max-width: 760px; margin: var(--s7) auto var(--s8); padding: 0 var(--s4); }
.doc h1 { font-size: clamp(28px, 4.5vw, 40px); }
.doc h2 { font-size: 22px; margin-top: var(--s7); }
.doc h3 { font-size: var(--fs-lg); margin-top: var(--s5); }
.doc p, .doc li { color: var(--ink-2); font-size: 15px; }
.doc p { margin-top: var(--s3); }
.doc ul { margin-top: var(--s3); padding-left: var(--s5); list-style: disc; }
.doc li { margin-top: var(--s2); }
.doc .updated { color: var(--muted); }
.doc code { font-size: 13px; background: var(--bg-soft); padding: 1px 6px; border-radius: 6px; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: var(--s7) 0 0; }

/* ── Sign-up ──────────────────────────────────────────────────────── */

.signup-wrap { max-width: 460px; margin: var(--s7) auto var(--s8); padding: 0 var(--s4); }
.signup-wrap h1 { font-size: clamp(28px, 6vw, 36px); }
.signup-wrap .lede { margin-top: var(--s3); color: var(--ink-2); }

.plan-note {
  display: inline-block;
  margin-bottom: var(--s4);
  padding: var(--s1) var(--s3);
  border: 1px solid var(--accent-deep);
  border-radius: 999px;
  color: var(--accent-deep);
  font-size: var(--fs-sm);
  font-weight: 600;
}

form { margin-top: var(--s5); }

.field { margin-bottom: var(--s4); }
.field label { display: block; margin-bottom: var(--s2); font-size: var(--fs-sm); font-weight: 600; }

.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 var(--s4);
  border: 1px solid #c7c7cc;
  border-radius: var(--r2);
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color var(--ease);
}

.field input:focus { border-color: var(--accent-deep); outline: none; box-shadow: 0 0 0 3px var(--tint); }

.password-wrap { position: relative; }
.password-wrap input { padding-right: 72px; }

.toggle-visibility {
  position: absolute;
  right: var(--s1);
  top: 2px;
  min-height: 48px;
  padding: 0 var(--s3);
  border: 0;
  background: transparent;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent-deep);
  cursor: pointer;
}

.field-hint { margin-top: var(--s2); font-size: 13px; color: var(--muted); }
.field-error { display: none; margin-top: var(--s2); font-size: 13px; color: var(--warn); }
.field.has-error input { border-color: var(--warn); }
.field.has-error .field-error { display: block; }

.alert {
  display: none;
  margin-top: var(--s4);
  padding: var(--s3) var(--s4);
  border-left: 3px solid var(--warn);
  background: #fff7ed;
  color: #7c2d12;
  font-size: var(--fs-sm);
}

.alert.show { display: block; }

.success-panel { display: none; }
.success-panel.show { display: block; }
.success-panel .steps { margin: var(--s5) 0; }
.success-panel .steps li { padding-top: var(--s4); padding-bottom: var(--s4); }
.success-panel .steps li::before { top: var(--s4); }
.success-panel .steps li.done::before { background: var(--accent-deep); color: #fff; content: '\2713'; }
.success-panel .btn + .btn { margin-top: var(--s3); }

/* ── Responsive ───────────────────────────────────────────────────── */

@media (min-width: 540px) {
  .hero .app { grid-template-columns: 1.1fr 1fr; }
  .hero .panel { border-top: 0; border-left: 1px solid var(--line); }
  .stage-photo { aspect-ratio: 16 / 10; }
}

@media (min-width: 720px) {
  .container { padding: 0 var(--s5); }
  .industries { grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
  .feat-group {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "head img" "tiles tiles";
    column-gap: var(--s6);
    align-items: center;
  }
  .feat-banner { aspect-ratio: 3 / 1; object-position: center 35%; margin-bottom: var(--s5); }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
  .tile.lead, .tile.wide { grid-column: span 2; }
  section { padding: var(--s9) 0; }
  .pain-grid { grid-template-columns: 1fr 1fr; gap: var(--s4); }
  .how-steps { grid-template-columns: 1fr 1fr; gap: var(--s4); margin: calc(-1 * var(--s7)) var(--s5) 0; }
  .steps-banner { aspect-ratio: 21 / 9; }
  .remind-note { gap: var(--s5); padding: var(--s5) var(--s6); }
  .closing-body { padding: 0 var(--s7) var(--s7); }
  .plans { grid-template-columns: 1fr 1fr; gap: var(--s5); }
  .fit { grid-template-columns: 1fr 1fr; gap: var(--s5); }
  .plan { padding: var(--s7) var(--s6); }
  .plan.best { padding: calc(var(--s7) - 1px) calc(var(--s6) - 1px); }
  .sticky-cta { display: none; }
  .has-sticky { padding-bottom: 0; }
  .doc, .signup-wrap { padding-left: var(--s5); padding-right: var(--s5); }
}

@media (min-width: 860px) {
  .flow { grid-template-columns: repeat(4, 1fr); gap: var(--s4); padding: 44px 0 0; }
  .flow li::before { left: 50%; top: -44px; transform: translateX(-50%); }
  .flow li:not(:last-child)::after { left: 50%; top: -29px; width: calc(100% + var(--s4)); height: 2px; }
}

@media (min-width: 860px) {
  .cmp { grid-template-columns: repeat(3, 1fr); align-items: stretch; padding: var(--s6) 0; gap: var(--s4); }
  .cmp-hero { margin: calc(-1 * var(--s5)) 0; padding-top: calc(var(--s6) + var(--s5)); padding-bottom: calc(var(--s4) + var(--s5)); }
}

@media (min-width: 960px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile.full { grid-column: span 3; flex-direction: row; align-items: center; gap: var(--s5); }
  .hero { padding: var(--s8) 0 var(--s8); }
  .hero-stage { margin-bottom: var(--s7); }
  .stage-photo { grid-area: 1 / 1; aspect-ratio: 2 / 1; object-position: center 30%; }
  .hero-stage .hero-shot {
    grid-area: 1 / 1;
    align-self: end;
    justify-self: start;
    width: min(520px, 48%);
    max-width: none;
    margin: 0 0 calc(-1 * var(--s7)) var(--s5);
  }
  .hero-stage .hero-shot figcaption { position: absolute; left: 0; top: 100%; text-align: left; }
  .pain-top { grid-template-columns: 1.05fr 1fr; gap: var(--s8); align-items: stretch; }
  .pain-photo { aspect-ratio: auto; height: 100%; min-height: 360px; }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .shift-grid { grid-template-columns: 1.1fr 1fr; gap: var(--s8); }
  .shift-photo { aspect-ratio: 5 / 4; }
  .how-steps { grid-template-columns: repeat(4, 1fr); }
  .steps-banner { aspect-ratio: 21 / 8; }
  .closing-banner { display: flex; align-items: center; min-height: 480px; }
  .closing-media { position: absolute; inset: 0; }
  .closing-media img { height: 100%; aspect-ratio: auto; object-position: left 35%; }
  .closing-media::after { height: auto; top: 0; background: linear-gradient(270deg, var(--navy) 0%, rgba(11, 31, 42, 0.96) 42%, rgba(11, 31, 42, 0) 78%); }
  .closing-body { width: 52%; margin-left: auto; padding: var(--s8) var(--s8) var(--s8) var(--s6); }
  .scene-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

.panel.flat { border-top: 0; }
