/* Prewebbed: white and Apple grey, near-black type, iOS blue only inside the phone. */
:root {
  --bg: #ffffff;
  --soft: #f5f5f7;
  --soft-2: #eeeef1;
  --ink: #1d1d1f;
  --muted: #6e6e73;      /* 5.1:1 on white */
  --line: #e3e3e8;
  --blue: #0066cc;       /* links, 5.6:1 on white */
  --imsg: #0a6ff0;       /* iMessage bubble, white text 4.6:1 */
  --radius: 22px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  padding-bottom: 76px; /* room for the mobile bar */
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0; font-weight: 700; color: var(--ink); }
h2 { font-size: clamp(2.2rem, 6.4vw, 4rem); line-height: 1.04; letter-spacing: -.045em; }
h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -.02em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }
section { padding: 96px 0; }
.kicker { font-size: .9rem; font-weight: 600; color: var(--muted); margin-bottom: 18px; letter-spacing: -.005em; }
.section-head { margin-bottom: 56px; max-width: 760px; }
.section-lede { color: var(--muted); font-size: 1.15rem; margin-top: 20px; max-width: 34em; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Logo */
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { display: block; height: 34px; width: auto; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .8); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.nav-links { display: none; gap: 34px; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: .92rem; opacity: .75; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 28px; border-radius: 999px; font: 600 1rem var(--sans); letter-spacing: -.01em; text-decoration: none; cursor: pointer; border: 0; transition: transform .25s var(--ease), background .2s, box-shadow .25s; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .9rem; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); }
.btn-ghost { background: var(--soft); color: var(--ink); }
.btn-ghost:hover { background: var(--soft-2); }
.btn-block { width: 100%; }
a:focus-visible, .btn:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Hero */
.hero { padding: 48px 0 88px; }
.hero-grid { display: grid; gap: 64px; align-items: center; }
h1 { font-size: clamp(3rem, 12.5vw, 6.4rem); line-height: .98; letter-spacing: -.055em; margin-bottom: 28px; }
.lede { font-size: clamp(1.1rem, 2.4vw, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 30em; }
.cta-row { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; }
.hero-facts { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: .95rem; }
.hero-facts strong { color: var(--ink); font-size: 1.15rem; letter-spacing: -.03em; }

/* iPhone */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: var(--soft); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.iphone { position: relative; margin: 0; width: 300px; aspect-ratio: 300 / 620; padding: 11px; border-radius: 56px; background: #1d1d1f; box-shadow: 0 0 0 2px #3a3a3c, 0 0 0 4px #d6d6db, 0 50px 90px -30px rgba(29, 29, 31, .45), 0 20px 40px -20px rgba(29, 29, 31, .25); }
.iphone::before, .iphone::after { content: ""; position: absolute; width: 4px; background: #c9c9ce; border-radius: 2px; }
.iphone::before { left: -6px; top: 120px; height: 56px; box-shadow: 0 70px 0 #c9c9ce; }
.iphone::after { right: -6px; top: 150px; height: 84px; }
.iphone-screen { position: relative; height: 100%; border-radius: 46px; background: #fff; overflow: hidden; display: flex; flex-direction: column; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; letter-spacing: -.01em; }
.island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 92px; height: 27px; border-radius: 20px; background: #000; z-index: 3; }
.status { display: flex; justify-content: space-between; align-items: center; padding: 15px 26px 0 32px; height: 46px; font-size: 14px; font-weight: 600; color: #000; }
.status-icons { display: flex; gap: 5px; align-items: center; color: #000; fill: currentColor; }
.convo-head { position: relative; display: flex; justify-content: center; padding: 6px 12px 10px; background: rgba(249, 249, 249, .94); border-bottom: .5px solid #d9d9de; }
.convo-head .back { position: absolute; left: 14px; top: 20px; color: var(--imsg); }
.contact { display: grid; justify-items: center; gap: 4px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; font-weight: 600; color: #fff; background: linear-gradient(180deg, #a5abb8, #858b98); }
.contact-name { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: #000; }
.contact-name svg { color: #9a9aa0; }
.convo { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; padding: 10px 12px 8px; overflow: hidden; }
.convo > * { flex-shrink: 0; }
.stamp { text-align: center; color: #8a8a8e; font-size: 10.5px; line-height: 1.35; margin: 2px 0 8px; }
.stamp strong { font-weight: 600; }
.bubble { position: relative; max-width: 76%; margin: 0; padding: 7px 12px; border-radius: 18px; font-size: 13.5px; line-height: 1.3; }
.bubble.out { align-self: flex-end; background: var(--imsg); color: #fff; }
.bubble.in { align-self: flex-start; background: #e9e9eb; color: #000; margin-top: 8px; }
.bubble.out + .bubble.out { margin-top: 1px; }
.bubble.out + .typing, .bubble.in + .bubble.out { margin-top: 8px; }
/* iOS tails on the last bubble of a group */
.bubble.tail::before, .bubble.tail::after { content: ""; position: absolute; bottom: 0; height: 17px; }
.bubble.out.tail::before { right: -7px; width: 20px; background: var(--imsg); border-bottom-left-radius: 16px 14px; }
.bubble.out.tail::after { right: -26px; width: 26px; background: #fff; border-bottom-left-radius: 10px; }
.bubble.in.tail::before { left: -7px; width: 20px; background: #e9e9eb; border-bottom-right-radius: 16px 14px; }
.bubble.in.tail::after { left: -26px; width: 26px; background: #fff; border-bottom-right-radius: 10px; }
.bubble.link { padding: 0; width: 76%; overflow: visible; background: #e9e9eb; color: #000; }
.bubble.link.tail::before { background: #e9e9eb; }
.link-shot { border-radius: 18px 18px 0 0; overflow: hidden; background: #f4efe7; height: 128px; display: flex; flex-direction: column; }
.ls-nav { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; font-size: 8px; font-weight: 700; color: #1b1b1b; }
.ls-call { background: #1b1b1b; color: #fff; padding: 3px 8px; border-radius: 99px; font-weight: 600; }
.ls-hero { flex: 1; margin: 0 8px 8px; border-radius: 8px; padding: 12px 10px; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; color: #fff; background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,.05)), repeating-linear-gradient(120deg, #6b5a47 0 10px, #7a6853 10px 20px); }
.ls-h { font-size: 15px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.ls-btn { align-self: flex-start; background: #fff; color: #1b1b1b; font-size: 8px; font-weight: 700; padding: 4px 9px; border-radius: 99px; }
.link-meta { display: grid; padding: 7px 12px 8px; font-size: 11px; line-height: 1.3; color: #8a8a8e; }
.link-meta strong { color: #000; font-size: 12.5px; font-weight: 600; }
.receipt { align-self: flex-end; margin: 2px 4px 0 0; font-size: 10px; color: #8a8a8e; font-weight: 500; }
.typing { align-self: flex-start; display: none; gap: 4px; padding: 11px 13px; background: #e9e9eb; border-radius: 18px; margin-top: 8px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: #9a9aa0; }
.compose { display: flex; align-items: center; gap: 8px; padding: 6px 12px 4px; }
.plus { width: 28px; height: 28px; border-radius: 50%; background: #e9e9eb; color: #7c7c80; display: grid; place-items: center; font-size: 19px; line-height: 1; }
.field { flex: 1; height: 30px; border: 1px solid #d9d9de; border-radius: 16px; padding: 0 12px; display: flex; align-items: center; font-size: 13px; color: #b0b0b5; }
.home-bar { width: 110px; height: 4.5px; border-radius: 3px; background: #000; margin: 9px auto 7px; }

/* Statement */
.statement { padding: 72px 0 104px; }
.statement-text { font-size: clamp(1.9rem, 5.6vw, 3.6rem); line-height: 1.12; font-weight: 700; letter-spacing: -.045em; max-width: 19em; margin: 0; }
.statement-text .w { transition: none; }

/* How it works */
.how { background: var(--soft); border-radius: 36px 36px 0 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.step { background: #fff; border-radius: var(--radius); padding: 32px 28px 30px; }
.step-num { display: block; font-size: .9rem; font-weight: 700; color: var(--muted); margin-bottom: 44px; letter-spacing: .02em; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); margin: 0; }
.steps-line { display: none; }

/* Pricing */
.pricing { background: var(--soft); }
.price-grid { display: grid; gap: 14px; }
.price { background: #fff; border-radius: var(--radius); padding: 36px 30px 30px; display: flex; flex-direction: column; }
.price-featured { background: var(--ink); color: #fff; }
.price.price-featured .price-label, .price.price-featured .price-amt small, .price.price-featured li { color: #d1d1d6; }
.price-featured .price-note { color: #fff; }
.price.price-featured li { border-color: #3a3a3c; }
.price-featured .btn-dark { background: #fff; color: var(--ink); }
.price-featured .btn-dark:hover { background: #e8e8ed; }
.price-label { font-size: .95rem; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.price-amt { font-size: clamp(3.6rem, 10vw, 5rem); font-weight: 700; letter-spacing: -.06em; line-height: 1; margin-bottom: 16px; display: flex; align-items: baseline; }
.price-amt small { font-size: 1rem; font-weight: 500; letter-spacing: -.01em; color: var(--muted); margin-left: 10px; }
.price-note { color: var(--blue); font-weight: 500; margin-bottom: 26px; }
.price ul { list-style: none; padding: 0; margin: 0 0 30px; flex: 1; }
.price li { padding: 13px 0; border-top: 1px solid var(--line); color: var(--ink); }

/* Who */
.who-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.who-list li { border-bottom: 1px solid var(--line); }
.who-list span { display: flex; justify-content: space-between; align-items: center; padding: 22px 4px; font-size: clamp(2rem, 7vw, 4.4rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; transition: transform .45s var(--ease), color .3s; }
.who-list span::after { content: "\2197"; font-size: .5em; color: var(--muted); font-weight: 400; transition: transform .45s var(--ease), color .3s; }
.who-list li:hover span { transform: translateX(10px); }
.who-list li:hover span::after { color: var(--blue); transform: translate(-10px, -4px); }

/* FAQ */
.faq { padding-top: 40px; }
.faq-grid { display: grid; gap: 8px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 24px 48px 24px 0; font-size: 1.12rem; font-weight: 600; letter-spacing: -.02em; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq-list details p { color: var(--muted); max-width: 40em; padding-bottom: 12px; margin-top: -6px; }

/* Contact */
.contact { background: var(--soft); border-radius: 36px 36px 0 0; }
.contact-grid { display: grid; gap: 48px; }
.contact-copy h2 { margin-bottom: 24px; }
.contact-copy > p { color: #3c3c43; font-size: 1.1rem; max-width: 28em; }
.contact-line { display: grid; gap: 2px; margin-top: 26px; }
.contact-line a { font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 700; letter-spacing: -.035em; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.contact-line a:hover { color: var(--blue); }
.contact-line span { color: var(--muted); font-size: .9rem; }
.form { background: #fff; border-radius: 28px; padding: 28px 22px; display: grid; gap: 18px; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .25); }
.form-row { display: grid; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: .9rem; font-weight: 600; }
.form input, .form textarea { width: 100%; min-height: 52px; padding: 14px 16px; font: 1rem var(--sans); color: var(--ink); background: var(--soft); border: 1.5px solid transparent; border-radius: 14px; transition: border-color .2s, background .2s; }
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.form ::placeholder { color: #8e8e93; }

/* Footer */
.foot { padding: 48px 0 40px; background: var(--soft); }
.foot-inner { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 32px; }
.foot p { margin: 0; color: var(--muted); font-size: .94rem; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .logo { color: var(--ink); margin-bottom: 8px; }

/* Mobile bar */
.mobile-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .25); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; font-weight: 600; text-decoration: none; color: var(--ink); }
.mobile-bar a.solid { background: var(--ink); color: #fff; }

/* Simple pages (thanks, 404) */
.simple { max-width: 34rem; margin: 0 auto; padding: 120px 22px; text-align: center; }
.simple .logo img { margin: 0 auto; }
.simple h1 { font-size: clamp(2.4rem, 8vw, 3.6rem); margin: 32px 0 16px; }
.simple p { color: var(--muted); }

/* Animation start states (only when JS runs and motion is OK) */
html.js.motion [data-hero], html.js.motion [data-reveal] { opacity: 0; }
html.js.motion .iphone { opacity: 0; }
html.js.motion [data-msg] { opacity: 0; }

/* Wider screens */
@media (min-width: 640px) {
  .cta-row { flex-direction: row; flex-wrap: wrap; }
  .form { padding: 36px; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .nav-links { display: flex; }
  section { padding: 140px 0; }
  .hero { padding: 72px 0 120px; }
  .hero-grid { grid-template-columns: 1.25fr 1fr; gap: 40px; }
  .iphone { width: 330px; }
  .statement { padding: 80px 0 150px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .step { padding: 40px 34px 40px; }
  .step-num { margin-bottom: 96px; }
  .how { padding-bottom: 60px; }
  .pricing { padding-top: 60px; }
  .faq-grid { grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
  .faq .section-head { position: sticky; top: 120px; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
  .foot-inner { grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: 28px; }
  .foot .logo { margin-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .who-list span, .who-list span::after { transition: none; }
}

/* Survey band (homepage, under the hero) */
.survey-band { padding: 0 0 24px; }
.survey-band-inner { display: grid; gap: 22px; align-items: center; background: var(--ink); color: #fff; border-radius: 28px; padding: 30px 26px; }
.survey-band h2 { color: #fff; font-size: clamp(1.6rem, 4.4vw, 2.3rem); letter-spacing: -.04em; margin-bottom: 8px; }
.survey-band p { color: #c7c7cc; margin: 0; max-width: 34em; }
.survey-band .kicker { color: #8e8e93; margin-bottom: 10px; }
.survey-band .btn { background: #fff; color: var(--ink); }
.survey-band .btn:hover { background: #e8e8ed; }

/* Survey page */
.survey-page { padding-bottom: 0; }
.survey { max-width: 760px; padding-top: 56px; padding-bottom: 96px; }
.survey-head h1 { font-size: clamp(2.6rem, 9vw, 4.4rem); margin-bottom: 18px; }
.survey-head .lede { margin-bottom: 40px; }
.survey-progress { position: sticky; top: 64px; z-index: 5; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 14px 0; margin-bottom: 8px; display: none; }
.survey-bar { height: 6px; border-radius: 3px; background: var(--soft-2); overflow: hidden; }
.survey-bar span { display: block; height: 100%; background: var(--ink); border-radius: 3px; transform-origin: left; transform: scaleX(.2); transition: transform .5s var(--ease); }
.survey-count { margin: 8px 0 0; font-size: .85rem; color: var(--muted); }
html.js .survey-progress { display: block; }
.survey-form { display: grid; gap: 28px; }
.step-panel { border: 0; margin: 0; padding: 30px 22px; background: var(--soft); border-radius: 28px; display: grid; gap: 20px; min-width: 0; }
.survey-form.is-stepped .step-panel { animation: stepIn .45s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.step-panel legend { float: left; width: 100%; padding: 0; font-size: clamp(1.6rem, 5vw, 2.1rem); font-weight: 700; letter-spacing: -.04em; margin-bottom: 4px; }
.step-panel label:not(.chip) { display: block; font-size: .93rem; font-weight: 600; }
.step-panel label:not(.chip) > input, .step-panel label:not(.chip) > textarea { display: block; margin-top: 8px; }
.q-group { display: grid; gap: 10px; font-size: .93rem; font-weight: 600; }
.field-label { margin: 0; }
.req { color: #c4320a; }
.opt { color: var(--muted); font-weight: 400; }
.step-panel input:not([type=radio]):not([type=checkbox]), .step-panel textarea { width: 100%; min-height: 52px; padding: 14px 16px; font: 1rem var(--sans); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 14px; transition: border-color .2s; }
.step-panel textarea { resize: vertical; }
.step-panel input:focus, .step-panel textarea:focus { outline: none; border-color: var(--blue); }
.step-panel [aria-invalid] { border-color: #c4320a !important; }
.step-panel ::placeholder { color: #8e8e93; font-weight: 400; }
.grid-2 { display: grid; gap: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex !important; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-weight: 500; transition: background .15s, color .15s, border-color .15s; }
.chip:hover span { border-color: #b8b8bf; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.survey-error { margin: 0; padding: 14px 18px; border-radius: 14px; background: #fdecea; color: #a12a0a; font-weight: 500; }
.survey-actions { display: flex; gap: 10px; justify-content: space-between; }
.survey-actions [data-next], .survey-actions [data-submit] { margin-left: auto; min-width: 160px; }
html:not(.js) .survey-actions [data-back], html:not(.js) .survey-actions [data-next] { display: none; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .step-panel { padding: 40px; }
  .survey-band-inner { grid-template-columns: 1fr auto; padding: 36px 44px; }
}
