/* CrewButton landing page — Cluely-style system, CrewButton brand.
   Tokens first; sections follow in page order; responsive rules last. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/inter-700.woff2") format("woff2");
}

:root {
  --bg: #f5f7fc;
  --surface: #ffffff;
  --ink: #0c1b33;
  --ink-soft: #4a5a73;
  --muted: #52647b;
  --chip: #e7effa;
  --line: #e3e9f2;
  /* The app's shipping green (crew.color.green). The brief's #0E9F6E fails AA
     for white-on-green badges and small green prices; this is the real value. */
  --money: #12855f;
  --money-ink: #0f7a57;
  --money-tint: #eaf6f0;
  --accent: #e8590c;
  --accent-ink: #c2410c; /* AA-safe spelling of the orange for small text */
  --blue: #2568b4;
  --blue-tint: #eef4fc;
  --danger: #b42318;

  --maxw: 1100px;
  --gutter: 24px;
  --section-y: 120px;
  --radius-card: 18px;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-soft: 0 1px 2px rgba(12, 27, 51, 0.04), 0 10px 30px -14px rgba(12, 27, 51, 0.14);

  color-scheme: light;
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 600;
}
img,
svg {
  display: block;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
::selection {
  background: #cfe0f7;
  color: var(--ink);
}
:focus-visible {
  outline: 2.5px solid var(--ink);
  outline-offset: 3px;
  border-radius: 10px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: var(--section-y) 0;
}
.section-head {
  max-width: 720px;
}
.section-head h2,
.h2 {
  font-size: clamp(1.9rem, 1.2rem + 2vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.section-lead {
  margin-top: 16px;
  font-size: 18px;
  max-width: 60ch;
}
.eyebrow {
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-ink);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn:focus-visible {
  border-radius: 999px;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  background: #1c2e4d;
}
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover {
  border-color: #c9d3e2;
}
.btn-sm {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 247, 252, 0.74);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(12, 27, 51, 0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 32px;
  height: 32px;
  flex: none;
}
.brand-word {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.nav-badge img {
  height: 40px;
}

/* ---------- app store CTA row (hero + final) ---------- */
.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 34px;
}
.badge-link {
  display: inline-block;
  border-radius: 11px;
}
.badge-link img {
  width: auto;
  height: 54px;
}
.qr-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 18px 8px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: left;
}
.qr-card img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
}
.qr-label {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.qr-label span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 104px;
  text-align: center;
}
.hero-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("assets/map-texture.svg") 50% 78% / 1500px auto no-repeat;
  opacity: 0.6;
  -webkit-mask-image: radial-gradient(55% 48% at 50% 76%, #000 25%, transparent 100%);
  mask-image: radial-gradient(55% 48% at 50% 76%, #000 25%, transparent 100%);
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero h1 {
  max-width: 17ch;
  margin: 0 auto;
  font-size: clamp(2.35rem, 1.25rem + 3.9vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hero-sub {
  max-width: 660px;
  margin: 24px auto 0;
  font-size: clamp(17px, 0.95rem + 0.3vw, 19px);
  line-height: 1.6;
}
.hero-micro {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}
.hero-micro span + span::before {
  content: "·";
  margin: 0 8px;
}
.hero-phone {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-top: 64px;
}
.phone-map {
  --s: 0.66;
  z-index: 0;
  transform: translateY(34px);
}
.phone-quotes {
  --s: 0.74;
  z-index: 1;
  margin-left: -44px;
}

/* ---------- phone mockups ----------
   Each screen is authored at the app's 390x844 reference frame and scaled
   into a CSS device frame with --s, so every size below is an app size. */
.phone {
  --s: 0.78;
  position: relative;
  flex: none;
  width: calc(412px * var(--s));
  height: calc(866px * var(--s));
  padding: calc(11px * var(--s));
  border-radius: calc(64px * var(--s));
  background: #0e1626;
  box-shadow: inset 0 0 0 calc(2px * var(--s)) #2b3548, 0 40px 80px -44px rgba(12, 27, 51, 0.5),
    0 18px 36px -20px rgba(12, 27, 51, 0.22);
  text-align: left;
}
.phone-screen {
  position: relative;
  width: calc(390px * var(--s));
  height: calc(844px * var(--s));
  overflow: hidden;
  border-radius: calc(53px * var(--s));
  background: #e9eef5;
}
.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 390px;
  height: 844px;
  transform: scale(var(--s));
  transform-origin: 0 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: 0;
}
.s-map {
  position: absolute;
  inset: 0;
  background: #e9eef5 url("assets/map-texture.svg") 40% 30% / 1100px auto;
}
.s-island {
  position: absolute;
  top: 11px;
  left: 50%;
  z-index: 6;
  width: 124px;
  height: 36px;
  margin-left: -62px;
  border-radius: 20px;
  background: #000;
}
.s-status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 4px 30px 0 46px;
  font-size: 16px;
  font-weight: 600;
}
.s-status svg {
  width: 66px;
  height: 13px;
}
.sheet {
  position: absolute;
  top: 64px;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 30px 21px 0;
  border-radius: 26px 26px 0 0;
  background: #fff;
  box-shadow: 0 -1px 0 rgba(12, 27, 51, 0.06);
}
.sheet::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 36px;
  height: 5px;
  margin-left: -18px;
  border-radius: 3px;
  background: #c6cfd8;
}
.s-muted {
  color: var(--muted);
}

/* quotes screen */
.q-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.q-title {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.q-sent {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.q-meter {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.q-dots {
  display: flex;
  gap: 5px;
}
.q-dots i {
  width: 13px;
  height: 13px;
  border-radius: 3.5px;
  background: var(--money);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.q-dots i.v {
  background: #2e7cd6;
}
.q-dots i.w,
.q-dots i.off {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px #a9b6c3;
}
.q-note {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  margin-top: 14px;
  padding: 0 14px;
  border: 1px solid #c6cfd8;
  border-radius: 13px;
  font-size: 14.5px;
  font-weight: 600;
}
.q-note svg:last-child {
  margin-left: auto;
}
.q-label {
  margin-top: 22px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.q-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 0;
  list-style: none;
}
.q-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  align-items: center;
  height: 66px;
  padding: 0 14px 0 16px;
  border: 1px solid #e3e9ef;
  border-radius: 14px;
  background: #fff;
  transition: background-color 0.35s, border-color 0.35s, opacity 0.45s var(--ease-out),
    transform 0.45s var(--ease-out);
}
.q-card.is-lowest {
  border-color: rgba(18, 133, 95, 0.5);
  background: #eef7f2;
}
.q-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--money-ink);
  font-variant-numeric: tabular-nums;
}
.q-card > span {
  min-width: 0;
}
.q-name,
.q-meta {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.q-name {
  font-size: 16px;
  font-weight: 700;
}
.q-meta {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--muted);
}
.q-card.is-lowest .q-meta {
  padding-right: 0;
  font-size: 12px;
}
.q-chev {
  color: #8a99ab;
}
.q-badge {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--money);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.42s var(--pop);
}
.q-visit {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  margin-top: 8px;
  padding: 13px 12px;
  border: 1px solid #bfd4ee;
  border-radius: 14px;
  background: var(--blue-tint);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.q-visit svg {
  margin-top: 2px;
  color: var(--blue);
}
.q-visit > span {
  min-width: 0;
}
.q-visit-name {
  display: block;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.q-visit-time {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  text-align: right;
  white-space: nowrap;
}
.q-visit-actions {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  text-align: right;
  white-space: nowrap;
}
.q-visit-actions span + span {
  margin-left: 10px;
  color: var(--danger);
}
.q-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.q-foot-wait {
  display: flex;
  align-items: center;
  gap: 8px;
}
.q-foot-wait::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--ink-soft);
}
.q-nudge {
  padding: 10px 20px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

/* hero phone: the "quotes roll in" sequence (states driven by main.js) */
.motion .hero-phone .q-card,
.motion .hero-phone .q-visit-wrap {
  opacity: 0;
  transform: translateY(10px);
}
.motion .hero-phone .mq-pin {
  opacity: 0;
  transform: translateY(6px) scale(0.94);
}
.hero-phone .mq-pin.in {
  opacity: 1;
  transform: none;
}
.motion .hero-phone .q-card.in,
.motion .hero-phone .q-visit-wrap.in {
  opacity: 1;
  transform: none;
}
.q-visit-wrap {
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.motion .hero-phone .q-card:not(.is-lowest) .q-badge {
  transform: scale(0);
}
/* Failsafe: if main.js never arms the sequence, show the finished screen. */
.motion .hero-phone .phone:not(.armed) .q-card,
.motion .hero-phone .phone:not(.armed) .q-visit-wrap,
.motion .hero-phone .phone:not(.armed) .mq-pin,
.motion .hero-phone .phone:not(.armed) .q-badge {
  animation: failsafe 0s 3.5s forwards;
}
@keyframes failsafe {
  to {
    opacity: 1;
    transform: none;
  }
}

/* search / reach screen (step 1) */
.srch-pill {
  position: absolute;
  top: 58px;
  right: 14px;
  left: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 10px 0 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 18px -8px rgba(12, 27, 51, 0.3), 0 0 0 1px rgba(12, 27, 51, 0.05);
  font-size: 17px;
  font-weight: 600;
}
.srch-pill .brand-mark {
  width: 32px;
  height: 32px;
}
.srch-go {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}
.srch-chips {
  position: absolute;
  top: 126px;
  left: 14px;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.srch-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 0 1px rgba(12, 27, 51, 0.08);
  font-size: 13px;
  font-weight: 700;
}
.srch-chip.dark {
  background: var(--ink);
  color: #fff;
}
.srch-chip.dark::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.srch-beams {
  position: absolute;
  top: 150px;
  left: 0;
  width: 390px;
  height: 290px;
}
.srch-tag {
  position: absolute;
  z-index: 2;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 0 1px rgba(12, 27, 51, 0.06);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.srch-tag.home {
  font-size: 11.5px;
  letter-spacing: 0.02em;
}
.srch-sheet {
  top: 440px;
  padding-top: 26px;
}
.srch-found {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.srch-rows {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}
.srch-rows li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: center;
}
.srch-av {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eef2f6;
  box-shadow: inset 0 0 0 1px #d5dde6;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}
.srch-n {
  font-size: 15px;
  font-weight: 700;
}
.srch-m {
  font-size: 12.5px;
  color: var(--muted);
}
.srch-ask {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: var(--ink-soft);
}
.srch-pay {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  margin-top: 9px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.srch-fine {
  margin-top: 10px;
  font-size: 12px;
  text-align: center;
  color: var(--muted);
}

/* map-with-quotes screen (hero money shot) */
.mq-beams {
  position: absolute;
  top: 0;
  left: 0;
  width: 390px;
  height: 844px;
}
.mq-pin {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(12, 27, 51, 0.08), 0 6px 14px -8px rgba(12, 27, 51, 0.45);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--pop);
}
.mq-price {
  color: var(--money-ink);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.mq-lowest,
.mq-visit {
  padding-left: 4px;
}
.mq-lowest {
  box-shadow: 0 0 0 1.5px var(--money), 0 8px 18px -8px rgba(18, 133, 95, 0.55);
}
.mq-visit {
  box-shadow: 0 0 0 1.5px var(--accent), 0 8px 18px -8px rgba(232, 89, 12, 0.4);
}
.mq-tag {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--money);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.05em;
}
.mq-visit .mq-tag {
  background: var(--accent-ink);
}
.mq-wait {
  position: absolute;
  z-index: 1;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(12, 27, 51, 0.06);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.mq-sheet {
  position: absolute;
  top: 700px;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 20px 20px 0;
  border-radius: 26px 26px 0 0;
  background: #fff;
  box-shadow: 0 -10px 30px -20px rgba(12, 27, 51, 0.5);
}
.mq-sheet::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 36px;
  height: 5px;
  margin-left: -18px;
  border-radius: 3px;
  background: #c6cfd8;
}
.mq-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.mq-line b {
  color: var(--money-ink);
}
.mq-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.mq-tab {
  display: grid;
  flex: 1;
  place-items: center;
  height: 48px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
}
.mq-tab.on {
  background: var(--ink);
  color: #fff;
}
.mq-av {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

/* chat screen (step 3) */
.chat-head {
  display: grid;
  grid-template-columns: 14px 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  margin: 0 -21px;
  padding: 0 21px 12px 18px;
  border-bottom: 1px solid #e3e9ef;
}
.chat-back {
  margin-top: 13px;
}
.chat-av {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f5f7f9;
  box-shadow: inset 0 0 0 1px #c6cfd8;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
}
.chat-name {
  font-size: 17px;
  font-weight: 700;
}
.chat-sub {
  margin-top: 2px;
  font-size: 13px;
  color: var(--ink-soft);
}
.chat-meta {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
}
.chat-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--money-ink);
}
.chat-review {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.chat-log {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.bubble {
  max-width: 272px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.45;
}
.bubble.them {
  justify-self: start;
  border: 1px solid #e3e9ef;
  background: #f3f5f8;
}
.bubble.me {
  justify-self: end;
  background: var(--ink);
  color: #fff;
}
.chat-photos {
  display: flex;
  gap: 6px;
  justify-self: end;
}
.chat-photos span {
  width: 104px;
  height: 78px;
  border-radius: 13px;
  background: linear-gradient(180deg, #f1e9dc 0%, #e7dccb 60%, #c3b39a 60%, #ab9a80 100%);
  box-shadow: inset 0 0 0 1px rgba(12, 27, 51, 0.08), inset 24px 0 34px -24px rgba(255, 255, 255, 0.9);
}
.chat-photos span + span {
  background: linear-gradient(180deg, #e4ecea 0%, #d3ded9 58%, #b0bfb9 58%, #98a9a2 100%);
}
.chat-compose {
  position: absolute;
  right: 14px;
  bottom: 94px;
  left: 14px;
  display: flex;
  gap: 8px;
}
.chat-input {
  flex: 1;
  height: 46px;
  padding: 0 16px;
  border: 1px solid #c6cfd8;
  border-radius: 999px;
  font-size: 16px;
  line-height: 44px;
  color: var(--muted);
}
.chat-round {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px #c6cfd8;
  color: var(--ink-soft);
}
.chat-round.send {
  background: var(--ink);
  box-shadow: none;
  color: #fff;
}
.chat-hire {
  position: absolute;
  right: 14px;
  bottom: 26px;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--money);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

/* scheduler card (step 3, floats beside the chat phone) */
.sched {
  width: 236px;
  padding: 14px 12px 12px;
  border: 1.5px solid var(--accent);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft), 0 24px 48px -28px rgba(12, 27, 51, 0.35);
  color: var(--ink);
  text-align: left;
}
.sched-turn {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.sched-title {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.sched-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 10px;
}
.sched-day,
.sched-cell {
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.sched-day {
  height: 36px;
  border: 1px solid #5e8fc7;
  background: #e9f2fc;
  font-size: 9.5px;
  line-height: 1.15;
  text-align: center;
}
.sched-day b {
  display: block;
  font-size: 13px;
}
.sched-day.on {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.sched-cell {
  height: 26px;
  border: 1px solid #c6daf0;
  background: #fff;
  font-size: 10.5px;
  color: #22344c;
}
.sched-cell.pm {
  border-color: #8fbae4;
  background: #d6e8fa;
}
.sched-cell.on {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

/* ---------- pain strip ---------- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
  padding: 0;
  list-style: none;
}
.pain-card {
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  font-size: 21px;
  line-height: 1.4;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.pain-kicker {
  max-width: 24ch;
  margin-top: 56px;
  font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ---------- how it works ---------- */
.how {
  padding-bottom: 72px;
}
.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 64px;
  margin-top: 8px;
}
.step {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 78vh;
}
.step:nth-of-type(1) {
  grid-row: 1;
}
.step:nth-of-type(2) {
  grid-row: 2;
}
.step:nth-of-type(3) {
  grid-row: 3;
}
.step-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--chip);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.35s, color 0.35s;
}
.step h3 {
  font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.step p {
  max-width: 44ch;
  margin-top: 14px;
  font-size: 18px;
}
.step-visual {
  position: sticky;
  top: max(84px, calc(50vh - 290px));
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: start;
  display: flex;
  justify-content: center;
  transition: opacity 0.45s var(--ease-out);
}
.step-visual .phone {
  --s: 0.7;
}
.js .step.is-active .step-num {
  background: var(--ink);
  color: #fff;
}
.js .step-visual {
  opacity: 0;
}
.js .step-visual.is-active {
  opacity: 1;
}
html:not(.js) .step-visual:not(:first-of-type) {
  visibility: hidden;
}
.step-visual[data-visual="3"] {
  justify-content: flex-end;
}
.step-visual .sched {
  position: absolute;
  bottom: 44px;
  left: max(-54px, calc(50% - 312px));
  width: 222px;
}

/* ---------- bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}
.tile {
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  min-height: 250px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.tile h3 {
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.tile p {
  max-width: 46ch;
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.55;
}
.tile-wide {
  grid-column: span 4;
}
.tile-full {
  grid-column: span 6;
}
.tile-blue {
  background: linear-gradient(180deg, #f3f7fd 0%, #e9f0fa 100%);
}
.tile-green {
  background: linear-gradient(180deg, #f2faf6 0%, #e6f4ed 100%);
}
.viz {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 26px;
  color: var(--ink);
}
.viz-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  max-width: 440px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
}
.viz-row b {
  color: var(--money-ink);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.viz-row strong {
  font-weight: 600;
}
.viz-row small {
  font-size: 12.5px;
  color: var(--muted);
}
.viz-g {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--chip);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}
.viz-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.viz-pill.dark {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.viz-pill.green {
  border-color: var(--money);
  background: var(--money);
  color: #fff;
}
.viz-pill.blue {
  border-color: #bfd4ee;
  background: var(--blue-tint);
  color: var(--blue);
}
.viz-pill.faded {
  color: var(--muted);
}
.viz-stack {
  display: grid;
  width: 100%;
}
.viz-stack span {
  grid-area: 1 / 1;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
}
.viz-stack span:nth-child(1) {
  transform: translate(16px, -16px);
  background: #fbfcfe;
  opacity: 0.5;
}
.viz-stack span:nth-child(2) {
  transform: translate(8px, -8px);
  background: #fdfdff;
  opacity: 0.75;
}
/* the transformed siblings above would otherwise paint over the real card */
.viz-stack span:nth-child(3) {
  position: relative;
  z-index: 1;
}
.viz-stack small {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
}
.viz-big {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
}
.viz-big div {
  font-size: 15px;
  color: var(--ink-soft);
}
.viz-big b {
  display: block;
  font-size: 44px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 44px 32px 44px 0;
}
.stat + .stat {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}
.stat-num {
  font-size: clamp(3.5rem, 2rem + 4.2vw, 6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-pre {
  margin-right: 0.18em;
  font-size: 0.3em;
  letter-spacing: -0.01em;
}
.stat-label {
  max-width: 22ch;
  margin-top: 14px;
  font-size: 17px;
}

/* ---------- comparison ---------- */
.compare-wrap {
  margin-top: 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.5;
}
.compare th,
.compare td {
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.compare thead th {
  border-top: 0;
  background: #fafbfe;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.compare thead .col-cb {
  background: #eef4fc;
}
.compare-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.compare-brand svg {
  width: 22px;
  height: 22px;
}
.compare tbody th {
  width: 22%;
  font-weight: 600;
  color: var(--ink);
}
.compare td.col-cb {
  background: #f5f8fe;
  color: var(--ink);
}
.compare-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 900px;
  margin-top: 44px;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}
.plan-featured {
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-soft);
}
.plan-tag {
  position: absolute;
  top: 28px;
  right: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--chip);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.plan h3 {
  font-size: 20px;
  letter-spacing: -0.01em;
}
.plan-price {
  margin-top: 18px;
  font-size: 56px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.plan-per {
  margin-left: 4px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-soft);
}
.plan-desc {
  margin-top: 14px;
  font-size: 16px;
}
.plan-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 30px;
  padding: 0;
  list-style: none;
  font-size: 15.5px;
}
.plan-list li {
  display: flex;
  gap: 10px;
  color: var(--ink);
}
.plan-list svg {
  flex: none;
  margin-top: 5px;
  color: var(--money);
}
.plan .btn {
  width: 100%;
  margin-top: auto;
}
.pricing-note {
  max-width: 70ch;
  margin-top: 24px;
  font-size: 15px;
}
.pricing-note strong {
  font-weight: 600;
  color: var(--ink);
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: 64px;
}
.faq-list {
  border-top: 1px solid var(--line);
}
.faq {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:focus-visible {
  border-radius: 6px;
}
.faq-icon {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease-out);
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: var(--ink);
}
.faq-icon::after {
  transform: rotate(90deg);
}
.faq[open] .faq-icon {
  transform: rotate(45deg);
}
.faq-body {
  overflow: hidden;
}
.faq-body > div {
  max-width: 62ch;
  padding-bottom: 24px;
}
.cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}
.cats li {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* ---------- final CTA ---------- */
.final {
  padding-top: 0;
}
.final-card {
  position: relative;
  overflow: hidden;
  padding: 104px 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, #eaf1fb 0%, #f8fafe 100%);
  text-align: center;
}
.final-card .hero-map {
  opacity: 0.45;
  background-position: 50% 30%;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 45%, #000 20%, transparent 100%);
  mask-image: radial-gradient(60% 70% at 50% 45%, #000 20%, transparent 100%);
}
.final-card > :not(.hero-map) {
  position: relative;
}
.final-card h2 {
  font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.final-card p {
  max-width: 44ch;
  margin: 18px auto 0;
  font-size: 18px;
}

/* ---------- footer ---------- */
.footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.footer-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 0;
  list-style: none;
}
.footer a {
  color: var(--ink-soft);
  text-decoration: none;
}
.footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.legal-note {
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- hero load sequence (CSS half; the cascade lives in main.js) ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.motion .hero h1 {
  animation: rise 0.7s var(--ease-out) both;
}
.motion .hero-sub {
  animation: rise 0.7s var(--ease-out) 0.1s both;
}
.motion .hero .cta-row {
  animation: rise 0.7s var(--ease-out) 0.18s both;
}
.motion .hero-micro {
  animation: rise 0.7s var(--ease-out) 0.24s both;
}
.motion .hero-phone {
  animation: rise 0.9s var(--ease-out) 0.4s both;
}

/* ---------- responsive ---------- */
@media (min-width: 1024px) {
  body {
    font-size: 18px;
  }
  :root {
    --gutter: 32px;
  }
}

@media (max-width: 1023px) {
  .how-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .step,
  .step:nth-of-type(n),
  .step-visual {
    grid-column: 1;
    grid-row: auto;
  }
  .step {
    min-height: 0;
    padding-top: 56px;
  }
  .js .step-visual {
    opacity: 1;
  }
  .step-visual {
    position: relative;
    top: auto;
    margin-top: 32px;
  }
  html:not(.js) .step-visual:not(:first-of-type) {
    visibility: visible;
  }
  .step-visual .sched {
    bottom: 40px;
    left: max(0px, calc(50% - 360px));
  }
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tile {
    grid-column: span 1;
  }
  .tile-wide,
  .tile-full {
    grid-column: span 2;
  }
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 767px) {
  :root {
    --section-y: 64px;
    --gutter: 20px;
  }
  .hero {
    padding: 44px 0 64px;
  }
  .hero-phone {
    margin-top: 44px;
  }
  .hero-stage .phone {
    --s: 0.72;
  }
  .phone-quotes {
    display: none;
  }
  .phone-map {
    transform: none;
  }
  .qr-card {
    display: none;
  }
  .cta-row {
    margin-top: 28px;
  }
  .pain-grid,
  .pricing-grid,
  .stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .pain-card {
    font-size: 19px;
    padding: 24px;
  }
  .pain-kicker {
    margin-top: 40px;
  }
  .stat,
  .stat + .stat {
    padding: 32px 0;
    border-left: 0;
  }
  .stat + .stat {
    border-top: 1px solid var(--line);
  }
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }
  .tile,
  .tile-wide,
  .tile-full {
    grid-column: 1;
    min-height: 0;
    padding: 24px;
  }
  .step-visual {
    flex-direction: column;
    align-items: center;
  }
  .step-visual .sched {
    position: relative;
    inset: auto;
    z-index: 1;
    width: min(300px, 100%);
    margin-top: -14px;
  }
  .plan {
    padding: 26px;
  }
  .plan-tag {
    top: 24px;
    right: 22px;
  }
  .final-card {
    padding: 64px 20px;
    border-radius: 22px;
  }

  /* comparison table becomes stacked rows */
  .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 tr + tr {
    border-top: 1px solid var(--line);
  }
  .compare tbody th {
    width: 100%;
    padding: 18px 20px 6px;
    border-top: 0;
  }
  .compare td {
    padding: 8px 20px;
    border-top: 0;
  }
  .compare td:last-child {
    padding-bottom: 18px;
  }
  .compare td.col-cb {
    background: transparent;
  }
  .compare td::before {
    content: attr(data-label);
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
  }
  .compare td.col-cb::before {
    color: var(--money-ink);
  }
}

@media (max-width: 440px) {
  .brand-word {
    font-size: 17px;
  }
  .nav-badge img {
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}
