/* ══════════════════════════════════════════════════════════════════
   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;

  /* 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; }

/* ── Hero ─────────────────────────────────────────────────────────── */

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

.hero-grid {
  display: grid;
  gap: var(--s7);
  align-items: center;
}

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

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

.hero-visual { position: relative; }

.hero-shot {
  position: relative;
  width: 92%;
  margin: calc(-1 * var(--s7)) 0 0 auto;
}

.hero-shot .win { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 18px 44px rgba(0, 0, 0, 0.16); }

/* ── Pain ─────────────────────────────────────────────────────────── */

.pain-list { margin: 0; }

.pain-lede {
  max-width: var(--narrow);
  margin: calc(-1 * var(--s5)) auto var(--s6);
  text-align: center;
  font-size: var(--fs-lg);
  color: var(--ink-2);
}

.pain-list li {
  display: flex;
  gap: var(--s4);
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-lg);
  color: var(--ink-2);
}

.pain-list li:first-child { border-top: 1px solid var(--line); }
.pain-list .icon { margin-top: 3px; color: var(--warn); width: 20px; height: 20px; }

.pain-close {
  margin: var(--s5) 0 0;
  font-size: var(--fs-lg);
  font-weight: 600;
}

/* ── Shift ────────────────────────────────────────────────────────── */

.shift p { margin-top: var(--s4); font-size: var(--fs-lg); color: var(--ink-2); }

/* ── Mechanism ────────────────────────────────────────────────────── */

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

.trio .item { padding-top: var(--s5); border-top: 1px solid var(--line); }
.trio .icon { color: var(--accent-deep); width: 28px; height: 28px; margin-bottom: var(--s3); }
.trio h3 { margin-bottom: var(--s2); }
.trio p { color: var(--ink-2); }

/* ── Photos and split layouts ─────────────────────────────────────── */

.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); }

.split { display: grid; gap: var(--s6); align-items: center; }

/* ── Four-step flow (Draft, Check, Send, Remember) ────────────────── */

.flow { display: grid; gap: var(--s5); max-width: var(--narrow); margin: 0 auto; }

.flow li {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  column-gap: var(--s4);
  align-items: start;
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
}

.flow .icon-img { grid-row: 1 / span 3; }
.flow h3 { margin-bottom: var(--s1); }
.flow p { color: var(--ink-2); }

.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: 56px; height: 56px; border-radius: var(--r1); }

.tag {
  justify-self: start;
  margin-top: var(--s2);
  padding: 1px var(--s2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

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

.remind-note {
  display: flex;
  align-items: center;
  gap: var(--s4);
  max-width: var(--narrow);
  margin: var(--s6) auto 0;
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: var(--fs-lg);
}

/* ── Steps ────────────────────────────────────────────────────────── */

.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) ────────────────────────────── */

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

.feat-banner { aspect-ratio: 16 / 9; margin-bottom: var(--s5); }

.feat-head {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding-bottom: var(--s3);
  border-bottom: 2px solid var(--ink);
}

.feat-head .icon { color: var(--accent-deep); }
.feat-head h3 { font-size: 22px; }
.feat-head p { color: var(--muted); font-size: var(--fs-sm); margin-left: auto; text-align: right; }

.feat-list { display: grid; column-gap: var(--s7); }

.feat-list li {
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--line);
}

.feat-list strong { display: block; font-size: var(--fs-md); font-weight: 650; }
.feat-list span { display: block; margin-top: var(--s1); font-size: 15px; color: var(--ink-2); }

/* ── 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 ───────────────────────────────────────────────────── */

.compare { width: 100%; border-collapse: collapse; }

.compare th, .compare td {
  padding: var(--s4);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.compare thead th { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--ink); }
.compare thead th:last-child { color: var(--accent-deep); }
.compare tbody th { font-weight: 600; }
.compare td:last-child { font-weight: 550; }
.compare tbody th { width: 28%; }

@media (max-width: 719px) {
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tbody th { width: 100%; }
  .compare tr { padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
  .compare th, .compare td { padding: var(--s1) 0; border: 0; }
  .compare td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
  }
  .compare td:last-child::before { color: var(--accent-deep); }
}

/* ── FAQ ──────────────────────────────────────────────────────────── */

.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;
}

.faq summary::-webkit-details-marker { display: none; }

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

.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }

.faq .answer { padding: 0 var(--s7) var(--s5) 0; color: var(--ink-2); }
.faq .answer p + p { margin-top: var(--s3); }

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

.industries {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s4);
  margin: 0 auto var(--s8);
  max-width: 820px;
}

.industries figcaption {
  margin-top: var(--s2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-2);
}

.fit { display: grid; gap: var(--s7); }
.fit h3 { padding-bottom: var(--s3); border-bottom: 2px solid var(--ink); }

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

.fit .icon { width: 20px; height: 20px; margin-top: 3px; }
.fit .yes .icon { color: var(--accent-deep); }
.fit .no .icon { color: var(--muted); }

/* ── Closing ──────────────────────────────────────────────────────── */

.closing { text-align: center; }
.closing-photo { max-width: 640px; margin: 0 auto var(--s6); }
.closing p { margin: var(--s4) auto var(--s6); max-width: 36em; font-size: var(--fs-lg); color: var(--ink-2); }

/* ── 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); }
}

@media (min-width: 720px) {
  .container { padding: 0 var(--s5); }
  .industries { grid-template-columns: repeat(4, 1fr); }
  .feat-banner { aspect-ratio: 21 / 8; }
  section { padding: var(--s9) 0; }
  .trio { grid-template-columns: repeat(3, 1fr); gap: var(--s6); }
  .feat-list { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; gap: var(--s5); }
  .fit { grid-template-columns: 1fr 1fr; gap: var(--s7); }
  .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) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--s8); }
  .split.rev > :first-child { order: 0; }
  .flow { max-width: none; grid-template-columns: repeat(4, 1fr); gap: var(--s6); }
  .flow li { display: block; }
  .flow .icon-img { width: 96px; height: 96px; margin-bottom: var(--s4); }
  .flow li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: calc(var(--s5) + 41px);
    right: calc(-1 * var(--s6) / 2 - 5px);
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--muted);
    border-right: 2px solid var(--muted);
    transform: rotate(45deg);
  }
  .tag { display: inline-block; }
}

@media (min-width: 960px) {
  .hero { padding: var(--s8) 0 var(--s9); }
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: var(--s8); }
  .scene-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
}

@media (max-width: 719px) {
  .feat-head { flex-wrap: wrap; }
  .feat-head p { width: 100%; margin-left: 0; text-align: left; }
}

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

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