/* PulseFlow Automations
   Design language adapted from the Superhuman-inspired DESIGN.md (awesome-design-md):
   three canvases (night navy hero / warm white body / brand-blue closing band),
   warm grey ink, hairlines over boxes, one call to action per band.
   Type: Archivo at narrow widths for display (job-site signage, truck lettering),
   Schibsted Grotesk for text. Brand colors come from the PulseFlow logo.
   Fonts are self-hosted (SIL Open Font License). */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Mrs Saint Delafield";
  src: url("/assets/fonts/mrs-saint-delafield-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  interpolate-size: allow-keywords; /* lets <details> animate to its natural height where supported */
  --night: #08113F;
  --night-deep: #050B2C;
  --blue: #052CD2;
  --blue-press: #0322A6;
  --sky: #C9D5FF;
  --ink: #2A2826;
  --ink-mute: #6F6B66;
  --ink-faint: #74706B; /* 4.6:1 on --soft, 4.8:1 on white: passes WCAG AA */
  --canvas: #FFFFFF;
  --soft: #FAFAF8;
  --hairline: #E8E4DD;
  --field: #CFC9BF;
  --on-dark: #FFFFFF;
  --on-dark-mute: #C3CBEA;
  --on-dark-faint: #8F9BCB;
  --window: #FFC46B;
  --loss: #8A2B22;
  --error: #B42318;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", sans-serif;

  --gutter: 1rem;
  --max: 70rem;
  --r-btn: 8px;
  --r-field: 6px;
  --r-card: 12px;
  --r-panel: 16px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --header-h: 72px;
}
@media (min-width: 48rem) { :root { --gutter: 2rem; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 440;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 48rem) { body { font-size: 1.1875rem; } }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 540; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
/* Display tier: narrow, heavy, sign-like */
h1, h2, .statement, .amount { font-family: var(--display); font-stretch: 76%; font-weight: 760; letter-spacing: -0.012em; line-height: .96; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--blue); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-press); text-decoration-thickness: 2px; }
strong { font-weight: 650; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; 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: 1rem; top: -4rem; z-index: 100; background: var(--night); color: var(--on-dark); padding: .75rem 1rem; border-radius: var(--r-btn); }
.skip-link:focus { top: 1rem; color: var(--on-dark); }
mark.fill { background: #FFF1C7; color: var(--ink); padding: 0 .25em; border-radius: 4px; box-shadow: inset 0 0 0 1px #E6C766; }

/* ---------- Buttons: rounded rectangles in the body, a pill only in the hero ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: .8rem 1.4rem;
  border: 1px solid transparent; border-radius: var(--r-btn);
  font: inherit; font-size: 1.0625rem; font-weight: 650; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.985); }
.btn-primary { background: var(--blue); color: var(--on-dark); }
.btn-primary:hover { background: var(--blue-press); color: var(--on-dark); }
.btn-outline { background: var(--canvas); color: var(--ink); border-color: #3F3A35; }
.btn-outline:hover { background: var(--ink); color: var(--canvas); }
.btn-on-dark { background: var(--canvas); color: var(--night); }
.btn-on-dark:hover { background: var(--sky); color: var(--night); }
.btn-pill { background: var(--sky); color: var(--night); border-radius: 999px; padding-inline: 1.6rem; }
.btn-pill:hover { background: var(--canvas); color: var(--night); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .7; cursor: progress; }

/* ---------- Header: dark over the hero, light everywhere else ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--hairline);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color .25s ease, border-color .25s ease;
}
.header-row { display: flex; align-items: center; gap: 2rem; min-height: var(--header-h); }
.brand { display: block; }
.brand img { width: 160px; height: auto; }
.logo-light { display: none !important; }
.site-nav { display: none; margin-left: auto; gap: 2rem; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 560; font-size: 1rem; }
.site-nav a:hover { color: var(--blue); }
.btn-header { display: none; margin-left: auto; min-height: 44px; padding: .5rem 1.1rem; font-size: .975rem; background: var(--blue); color: var(--on-dark); }
.btn-header:hover { background: var(--blue-press); color: var(--on-dark); }

.site-header.over-hero { background: var(--night); border-bottom-color: transparent; }
.over-hero .logo-light { display: block !important; }
.over-hero .logo-color { display: none !important; }
.over-hero .site-nav a { color: var(--on-dark-mute); }
.over-hero .site-nav a:hover { color: var(--on-dark); }
.over-hero .btn-header { background: var(--sky); color: var(--night); border-radius: 999px; }
.over-hero .btn-header:hover { background: var(--canvas); }
.over-hero :focus-visible { outline-color: var(--sky); }

@media (min-width: 40rem) {
  .brand img { width: 180px; }
  .btn-header { display: inline-flex; }
}
@media (min-width: 60rem) {
  .site-nav { display: flex; }
  .btn-header { margin-left: 0; }
}

/* ---------- Hero: one line, one sentence, one phone ---------- */
.hero {
  position: relative; overflow: clip; /* clip, not hidden: hidden would stop the phone from pinning */ color: var(--on-dark);
  background:
    radial-gradient(50% 70% at 76% 70%, rgba(46, 86, 255, .42), rgba(46, 86, 255, 0) 75%),
    linear-gradient(180deg, var(--night) 0%, #0A1550 100%);
}
.hero::after {
  /* fine film grain, so the navy reads as a material rather than a flat fill */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero :focus-visible { outline-color: var(--sky); }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 2.5rem; padding-bottom: 3rem; }
.hero-copy { padding-top: clamp(3rem, 2rem + 5vw, 6.5rem); }
@media (min-width: 62rem) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; padding-bottom: 0; }
  /* Desktop: the headline stays pinned beside the phone while the conversation plays */
  .hero-copy {
    position: sticky; top: var(--header-h);
    height: calc(100svh - var(--header-h)); min-height: 34rem;
    display: flex; flex-direction: column; justify-content: center; padding-block: 0 3rem;
  }
  .hero-copy > * { align-self: flex-start; }
}

.hero h1 { font-size: clamp(3.5rem, 1.6rem + 7vw, 7.25rem); font-weight: 780; font-stretch: 72%; line-height: .9; letter-spacing: -0.01em; max-width: 9ch; }
.hero .lead { margin-top: 1.75rem; max-width: 27rem; color: var(--on-dark-mute); font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem); line-height: 1.45; }
.hero .btn-pill { margin-top: 2.25rem; }
.hero-note { margin-top: .9rem; color: var(--on-dark-faint); font-size: .95rem; }
@media (max-width: 30rem) { .hero .btn-pill { width: 100%; } }

/* Scroll track: tall box the phone pins inside. Its extra height is the scroll distance of the conversation. */
.hero-track { position: relative; }
.js .hero-track { height: 230svh; }
@media (min-width: 62rem) { .js .hero-track { height: 250svh; } }
.hero-visual {
  position: relative; margin: 0 auto;
  /* sized so the caption and the whole phone fit on screen while pinned */
  width: min(100%, 340px, calc((100svh - var(--header-h) - 6rem) * 0.466));
}
.js .hero-visual { position: sticky; top: calc(var(--header-h) + 1.25rem); }
@media (min-width: 62rem) { .js .hero-visual { top: calc(var(--header-h) + 2rem); } }
.demo-caption { margin-bottom: 1rem; text-align: center; font-size: .85rem; color: var(--on-dark-faint); }

.device {
  position: relative; width: 100%; aspect-ratio: 9 / 19.3;
  padding: 11px; border-radius: 56px;
  background: linear-gradient(150deg, #4A5068 0%, #1A1E33 30%, #0E1124 62%, #3B4159 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .22),
    inset 0 0 0 4px #090B18,
    0 60px 120px -40px rgba(0, 0, 0, .75),
    0 30px 80px -30px rgba(5, 44, 210, .65);
  animation: rise 1s var(--ease-out) .1s both;
}
.device::before, .device::after {
  /* side buttons */
  content: ""; position: absolute; width: 3px; border-radius: 2px; background: #2A2F45;
}
.device::before { left: -3px; top: 22%; height: 9%; box-shadow: 0 -60px 0 -0.5px #2A2F45; }
.device::after { right: -3px; top: 27%; height: 13%; }
.screen {
  height: 100%; border-radius: 46px; overflow: hidden; background: #FFFFFF; color: #000;
  display: flex; flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; letter-spacing: -0.01em;
}
.status { display: flex; align-items: center; justify-content: space-between; padding: 14px 26px 0 30px; height: 50px; font-weight: 600; font-size: 15px; }
.island { width: 98px; height: 29px; border-radius: 20px; background: #000; margin-top: -2px; }
.status-icons { display: flex; align-items: center; gap: 6px; }
.sig { width: 17px; height: 11px; background: linear-gradient(90deg, #000 0 3px, transparent 3px 4.6px, #000 4.6px 7.6px, transparent 7.6px 9.2px, #000 9.2px 12.2px, transparent 12.2px 13.8px, #000 13.8px 17px); clip-path: polygon(0 75%, 18% 75%, 18% 55%, 45% 55%, 45% 30%, 72% 30%, 72% 0, 100% 0, 100% 100%, 0 100%); }
.bat { width: 25px; height: 12px; border-radius: 4px; border: 1.5px solid rgba(0, 0, 0, .4); position: relative; }
.bat::after { content: ""; position: absolute; inset: 1.5px; right: 5px; border-radius: 2px; background: #000; }

.convo-head { position: relative; display: flex; justify-content: center; padding: 6px 0 10px; background: #F6F6F7; border-bottom: .5px solid #D6D6DA; }
.back { position: absolute; left: 18px; top: 20px; width: 11px; height: 11px; border-left: 2.5px solid #0A84FF; border-bottom: 2.5px solid #0A84FF; transform: rotate(45deg); border-radius: 1px; }
.contact { display: grid; justify-items: center; gap: 3px; }
.contact-avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(180deg, #A5A9B6, #858A99); color: #fff; font-weight: 600; font-size: 17px; }
.contact-name { font-size: 11.5px; color: #222; }

.convo { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; font-size: 15px; line-height: 1.3; }
.day { text-align: center; font-size: 11px; color: #8A8A8E; margin-bottom: 10px; font-weight: 500; }
.day span { font-weight: 400; }
.msg { max-width: 76%; padding: 8px 13px; border-radius: 19px; }
.msg.in { align-self: flex-start; background: #E9E9EB; color: #000; border-bottom-left-radius: 6px; }
.msg.out { align-self: flex-end; background: #34C759; color: #fff; border-bottom-right-radius: 6px; margin-top: 10px; }
.receipt { align-self: flex-end; font-size: 11px; color: #8A8A8E; margin: 2px 4px 8px 0; font-weight: 500; }
.slot { display: grid; }
.slot > * { grid-area: 1 / 1; }
.slot .typing { align-self: end; justify-self: start; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 19px; background: #E9E9EB; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9B9BA0; animation: dot 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
.compose { display: flex; align-items: center; gap: 10px; padding: 8px 14px 30px; }
.compose .plus { width: 32px; height: 32px; border-radius: 50%; background: #E9E9EB; flex: none; }
.compose .field { flex: 1; padding: 6px 14px; border: 1px solid #D6D6DA; border-radius: 18px; color: #B0B0B5; font-size: 15px; }

/* Owner alert, floating off the phone's left edge */
.alert {
  position: absolute; z-index: 2; left: -16%; right: 12%; top: 64%;
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .8rem .9rem; border-radius: 22px;
  background: rgba(248, 249, 255, .82); color: #0B0F24;
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .6);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}
.alert-icon { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.alert-text { flex: 1; min-width: 0; }
.alert-top { display: flex; justify-content: space-between; font-size: 12px; color: #5C6178; font-weight: 500; }
.alert-title { font-size: 14.5px; font-weight: 650; margin-top: 1px; }
.alert-body { font-size: 14px; line-height: 1.3; color: #2A2F45; }
@media (max-width: 40rem) { .alert { left: -4%; right: -4%; } }
@media (min-width: 62rem) { .alert { left: -30%; right: 22%; } }

/* The one orchestrated moment, driven by scrolling: missed call answered, customer replies, owner alerted.
   main.js adds .is-on to each [data-at] element as the scroll passes its point; scrolling back removes it.
   Every message keeps its space while hidden, so nothing below it ever jumps. Without JS, all messages show. */
.js .hero-visual [data-at] {
  opacity: 0;
  transition: opacity .28s ease, transform .5s cubic-bezier(.34, 1.45, .64, 1);
}
.js .hero-visual .msg[data-at] { transform: translateY(14px) scale(.9); }
.js .hero-visual .msg.in[data-at] { transform-origin: 0% 100%; }
.js .hero-visual .msg.out[data-at] { transform-origin: 100% 100%; }
.js .hero-visual .receipt[data-at] { transform: translateY(4px); }
.js .hero-visual .typing[data-at] { transform: scale(.7); transform-origin: 0% 100%; transition-duration: .2s, .3s; }
.js .hero-visual .alert[data-at] { transform: translateY(26px) scale(.96); transition-duration: .35s, .6s; }
.js .hero-visual [data-at].is-on { opacity: 1; transform: none; }
html:not(.js) .hero-visual .typing { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-2px); opacity: 1; } }
/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 3rem + 6vw, 7.5rem); }
.soft { background: var(--soft); border-block: 1px solid var(--hairline); }
.section-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head h2, .faq-grid h2 { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4rem); }
.section-head p { margin-top: 1rem; color: var(--ink-mute); font-size: 1.25rem; line-height: 1.5; }
.aside { margin-top: 2.5rem; max-width: 36rem; color: var(--ink-mute); font-size: 1.25rem; line-height: 1.5; }
.aside.small { font-size: 1rem; }

/* ---------- Problem: one statement, one ledger ---------- */
.statement { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.2rem); line-height: .98; max-width: 20ch; }
.ledger { width: 100%; margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); border-collapse: collapse; text-align: left; }
.ledger thead th { padding: 0 1.25rem .9rem 0; font-size: .95rem; font-weight: 600; color: var(--ink-mute); }
.ledger thead th:last-child { color: var(--blue); }
.ledger tbody th, .ledger td { padding: 1.25rem 1.5rem 1.25rem 0; border-top: 1px solid var(--hairline); vertical-align: top; }
.ledger tbody tr:last-child th, .ledger tbody tr:last-child td { border-bottom: 1px solid var(--hairline); }
.ledger tbody th { width: 7.5rem; font-weight: 600; color: var(--ink-mute); white-space: nowrap; }
.ledger td { width: 46%; }
.ledger .quiet { color: var(--ink-faint); }
.ledger .loss { color: var(--loss); font-weight: 560; }
.ledger .win { color: var(--blue); font-weight: 560; }

@media (max-width: 44rem) {
  .ledger, .ledger tbody, .ledger tr, .ledger th, .ledger td { display: block; width: auto; }
  .ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ledger tbody tr { padding: 1.25rem 0; border-top: 1px solid var(--hairline); }
  .ledger tbody tr:last-child { border-bottom: 1px solid var(--hairline); }
  .ledger tbody th, .ledger td, .ledger tbody tr:last-child th, .ledger tbody tr:last-child td { border: 0; padding: 0; }
  .ledger tbody th { margin-bottom: .6rem; }
  .ledger td + td { margin-top: .75rem; }
  .ledger td::before { content: attr(data-label); display: block; font-size: .85rem; font-weight: 600; color: var(--ink-mute); }
}

/* ---------- Features: rules, not boxes ---------- */
.feature-grid { display: grid; gap: 3rem; }
@media (min-width: 52rem) { .feature-grid { grid-template-columns: 1fr 1fr; gap: 4rem 4.5rem; } }
.feature { border-top: 1px solid var(--ink); padding-top: 1.5rem; }
.feature h3 { font-size: 1.6rem; letter-spacing: -0.015em; }
.feature > p { margin-top: .7rem; color: var(--ink-mute); max-width: 32rem; }
.included { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .6rem; }
.included li { position: relative; padding-left: 1.75rem; font-weight: 500; }
.included li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 1.05rem; height: 1.05rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23052CD2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Example texts: the same message bubbles as the hero phone */
.sample { margin: 1.5rem 0 0; display: grid; justify-items: start; gap: .4rem; }
.sample-call { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 600; color: var(--loss); }
.sample-call::before {
  content: ""; width: 1rem; height: 1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A2B22' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3Cpath d='m16 2 6 6M22 2l-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sample-bubble {
  max-width: 24rem; padding: .7rem 1rem; border-radius: 20px; border-bottom-left-radius: 6px;
  background: #E9E9EB; color: #111; font-size: 1.0625rem; line-height: 1.4;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--font);
}
.sample figcaption { font-size: .9rem; color: var(--ink-faint); padding-left: .25rem; }

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.5rem; counter-reset: step; }
@media (min-width: 40rem) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 62rem) { .steps { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; } }
.steps li { position: relative; counter-increment: step; padding-top: 1.25rem; }
.steps li::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--ink); transform-origin: 0 50%; }
.steps li::before { content: counter(step); display: block; margin-bottom: 1.25rem; font-size: 3.25rem; font-weight: 460; line-height: 1; letter-spacing: -0.03em; color: var(--blue); }
.steps h3 { font-size: 1.35rem; }
.steps p { margin-top: .5rem; color: var(--ink-mute); }

/* Steps reveal one by one as you scroll (main.js adds .is-in):
   the rule draws across, the number rises out from under it, then the title and text settle in. */
/* --d is an extra cascade delay main.js sets when several steps reveal in the same moment */
.js .steps li::after { transform: scaleX(0); transition: transform .9s cubic-bezier(.65, 0, .35, 1) var(--d, 0s); }
.js .steps li::before {
  transform: translateY(100%); clip-path: inset(0 0 100% 0);
  transition: transform .8s cubic-bezier(.2, .8, .2, 1) calc(var(--d, 0s) + .18s), clip-path .8s cubic-bezier(.2, .8, .2, 1) calc(var(--d, 0s) + .18s);
}
.js .steps li > * { opacity: 0; transform: translateY(12px); transition: opacity .6s ease calc(var(--d, 0s) + .38s), transform .8s cubic-bezier(.2, .8, .2, 1) calc(var(--d, 0s) + .38s); }
.js .steps li > p { transition-delay: calc(var(--d, 0s) + .5s); }
.js .steps li.is-in::after { transform: none; }
.js .steps li.is-in::before { transform: none; clip-path: inset(0 0 0 0); }
.js .steps li.is-in > * { opacity: 1; transform: none; }
/* Hiding again (scrolling back up) is quicker and has no stagger */
.js .steps li:not(.is-in)::after, .js .steps li:not(.is-in)::before, .js .steps li:not(.is-in) > * { transition-duration: .35s; transition-delay: 0s; }

/* Pinned section: the screen holds on "How it works" until all four steps have played in.
   The section is a tall track; .how-sticky stays on screen while you scroll through it. */
.how-progress { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .how { height: 250svh; padding-block: 0; }
  .js .how-sticky {
    position: sticky; top: var(--header-h);
    height: calc(100svh - var(--header-h)); min-height: 30rem;
    display: flex; align-items: center;
  }
  .js .how-sticky > .container { width: 100%; }

  /* Phones and tablets: the steps take turns in one spot, with the four rules as a progress bar */
  @media (max-width: 61.99rem) {
    .js .how { height: 260svh; }
    .js .how .section-head { margin-bottom: 2rem; }
    .js .how-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 1.75rem; }
    .js .how-progress span { position: relative; height: 3px; border-radius: 2px; background: var(--hairline); overflow: hidden; }
    .js .how-progress span::after {
      content: ""; position: absolute; inset: 0; background: var(--blue);
      transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s cubic-bezier(.65, 0, .35, 1);
    }
    .js .how-progress span.is-on::after { transform: none; }
    .js .steps { grid-template-columns: 1fr; gap: 0; }
    .js .steps li { grid-area: 1 / 1; padding-top: 0; }
    .js .steps li::after { display: none; }
    .js .steps li::before { font-size: 4.5rem; margin-bottom: 1rem; }
    .js .steps h3 { font-size: 1.6rem; }
    .js .steps p { font-size: 1.125rem; max-width: 30rem; }
    /* the step that's leaving slides up and out */
    .js .steps li.is-past::before { transform: translateY(-30%); clip-path: inset(0 0 0 0); opacity: 0; transition: transform .4s ease, opacity .3s ease; }
    .js .steps li.is-past > * { opacity: 0; transform: translateY(-12px); transition-duration: .3s; transition-delay: 0s; }
  }

  /* Coming back up from below (main.js adds .is-up): the mirror image.
     Steps arrive 4 to 1, lines draw right to left, numbers drop down out of the line, text settles downward. */
  .js .how.is-up .steps li:not(.is-in)::after { transform-origin: 100% 50%; }
  .js .how.is-up .steps li:not(.is-in)::before { transform: translateY(-100%); clip-path: inset(100% 0 0 0); }
  .js .how.is-up .steps li:not(.is-in) > * { transform: translateY(-12px); }
  .js .how.is-up .steps li.is-in::after { transform-origin: 100% 50%; }
  @media (max-width: 61.99rem) {
    .js .how.is-up .how-progress span::after { transform-origin: 100% 50%; }
    /* the step that's leaving slides down and out */
    .js .how.is-up .steps li.is-past::before { transform: translateY(30%); clip-path: inset(0 0 0 0); opacity: 0; }
    .js .how.is-up .steps li.is-past > * { transform: translateY(12px); }
  }
}

/* ---------- Pricing ---------- */
.founding { margin-bottom: 2.5rem; padding: 1rem 1.25rem; background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-card); max-width: 52rem; }
.plans { display: grid; gap: 1.5rem; }
@media (min-width: 62rem) { .plans { grid-template-columns: repeat(3, 1fr); margin-bottom: 3.5rem; } }
.plan-col { position: relative; display: flex; flex-direction: column; }
.plan {
  position: relative; flex: 1; display: flex; flex-direction: column;
  padding: 2rem; background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-card);
}
.plan h3 { font-size: 1.5rem; }
/* Reserve room for the longest plan name so all three prices line up */
@media (min-width: 62rem) { .plan-head { min-height: 7.6rem; } }
.plan-for { margin-top: .4rem; color: var(--ink-mute); }
.price { margin-top: 1.75rem; display: flex; align-items: baseline; gap: .5rem; }
.amount { font-size: 3.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.per { font-size: 1rem; color: var(--ink-mute); }
.setup { margin-top: .35rem; font-weight: 600; }
.checks { list-style: none; margin: 1.5rem 0 2rem; padding: 1.5rem 0 0; border-top: 1px solid var(--hairline); display: grid; gap: .65rem; flex: 1; align-content: start; }
.checks li { position: relative; padding-left: 1.75rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 1.05rem; height: 1.05rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23052CD2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plan-best { background: var(--night); border-color: var(--night); color: var(--on-dark); }
.plan-best .plan-for, .plan-best .per { color: var(--on-dark-mute); }
.plan-best .checks { border-top-color: rgba(255, 255, 255, .16); }
.plan-best .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9D5FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.plan-best :focus-visible { outline-color: var(--sky); }
.badge { position: absolute; top: -13px; left: 2rem; padding: .2rem .8rem; border-radius: 999px; background: var(--sky); color: var(--night); font-size: .875rem; font-weight: 650; line-height: 1.5; }
.plan-note { margin-top: .9rem; text-align: center; font-weight: 600; }
@media (min-width: 62rem) { .plan-note { position: absolute; top: 100%; left: 0; right: 0; } }

.fine-print { max-width: 48rem; margin-top: 2rem; color: var(--ink-mute); font-size: .975rem; line-height: 1.55; }
@media (min-width: 62rem) { .fine-print { margin-top: 0; max-width: calc(66.66% - 2rem); } }

/* Plan switcher (phones only, when JavaScript is running) */
.plan-switch {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  margin-bottom: 1.75rem; padding: 4px; border-radius: 12px; background: #ECE8E1;
}
.plan-switch button {
  position: relative; z-index: 1; min-height: 46px; padding: .4rem .5rem; border: 0; border-radius: 9px;
  background: none; color: #57534E; /* 5.4:1 on the switcher's grey */ font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: color .25s ease;
}
.plan-switch button[aria-pressed="true"] { color: var(--ink); }
.plan-switch-thumb {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3);
  border-radius: 9px; background: var(--canvas); box-shadow: 0 1px 3px rgba(42, 40, 38, .14), 0 0 0 .5px rgba(42, 40, 38, .08);
  transform: translateX(calc(var(--i, 2) * 100%)); transition: transform .35s var(--ease-out);
}
@media (max-width: 61.99rem) {
  .js .plan-switch { display: grid !important; }
  .js [data-plans-group] .plan-col:not(.is-shown) { display: none; }
  .js [data-plans-group] .plan-col.is-shown { animation: plan-in .3s var(--ease-out); }
}
@media (min-width: 62rem) { .plan-switch { display: none !important; } }
@keyframes plan-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Photo band: navy duotone, so any real photo sits inside the brand */
.photo-band { position: relative; margin: 0; background: var(--night); overflow: hidden; }
.photo-band img { width: 100%; height: clamp(320px, 45vw, 620px); object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(1.05); mix-blend-mode: luminosity; opacity: .9; }
.photo-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 17, 63, 0) 40%, rgba(8, 17, 63, .85) 100%), rgba(5, 44, 210, .28); mix-blend-mode: multiply; pointer-events: none; }
.photo-band figcaption { position: absolute; z-index: 1; left: 0; right: 0; bottom: clamp(1.5rem, 1rem + 2vw, 3rem); color: #fff; }
.photo-band figcaption .container { display: block; font-family: var(--display); font-stretch: 76%; font-weight: 760; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.4rem); line-height: 1; max-width: var(--max); }
.photo-band figcaption .container { text-wrap: balance; }
.pricing-cta { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.pricing-cta p { font-size: 1.6rem; font-weight: 540; letter-spacing: -0.015em; }
@media (max-width: 30rem) { .pricing-cta .btn { width: 100%; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 2rem; }
@media (min-width: 62rem) {
  .faq-grid { grid-template-columns: 1fr 2fr; gap: 4rem; align-items: start; }
  .faq-grid h2 { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.faq-list details { border-bottom: 1px solid var(--hairline); }
.faq-list details:first-child { border-top: 1px solid var(--hairline); }
.faq-list summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 1.3rem 3rem 1.3rem 0; font-size: 1.25rem; font-weight: 560; line-height: 1.3;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: .25rem; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23052CD2' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 4v16M4 12h16'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .25s var(--ease-out);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--blue); }
.faq-list .answer { padding-bottom: 1.5rem; max-width: 40rem; color: var(--ink-mute); }
/* Answers open and close smoothly to their natural height (Chromium 131+; others just open instantly) */
.faq-list details::details-content {
  height: 0; overflow: clip;
  transition: height .35s var(--ease-out), content-visibility .35s allow-discrete;
}
.faq-list details[open]::details-content { height: auto; }

/* ---------- Closing band: the form ---------- */
.closing { background: var(--blue); color: var(--on-dark); padding-block: clamp(5rem, 3.5rem + 6vw, 8rem); }
.signup-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 62rem) { .signup-grid { grid-template-columns: 1fr 1.05fr; gap: 4.5rem; } }
.closing h2 { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4rem); }
.signup-copy > p { margin-top: 1.25rem; max-width: 32rem; color: #DCE3FF; font-size: 1.2rem; line-height: 1.55; }
.signup-copy .try-it { color: var(--on-dark); padding-left: 1rem; border-left: 3px solid var(--sky); }
.signup-copy .signup-alt { font-size: 1.05rem; }
.closing a { color: var(--on-dark); }
.closing a:hover { color: var(--sky); }
.closing :focus-visible { outline-color: var(--canvas); }

.form-card { background: var(--canvas); color: var(--ink); border-radius: var(--r-panel); padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); box-shadow: 0 30px 60px -30px rgba(3, 10, 60, .55); }
.form-card a { color: var(--blue); }
.form-card a:hover { color: var(--blue-press); }
.form-card :focus-visible { outline-color: var(--blue); }
.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .4rem; }
.field > label { font-weight: 600; }
.optional { font-weight: 440; color: var(--ink-mute); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"] {
  width: 100%; min-height: 52px; padding: .75rem .9rem;
  font: inherit; font-size: max(16px, 1.0625rem); color: var(--ink);
  background: var(--canvas); border: 1px solid var(--field); border-radius: var(--r-field);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder { color: var(--ink-faint); }
.field input:hover { border-color: #A8A196; }
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(5, 44, 210, .2); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.hint { font-size: .95rem; color: var(--ink-mute); }
.error { font-size: .95rem; font-weight: 600; color: var(--error); }
.consent { display: grid; grid-template-columns: auto 1fr; gap: .75rem; margin-top: .5rem; padding: .9rem; background: var(--soft); border: 1px solid var(--hairline); border-radius: var(--r-btn); }
.consent input { width: 22px; height: 22px; margin: .15rem 0 0; accent-color: var(--blue); cursor: pointer; }
.consent label { font-size: .9rem; line-height: 1.5; color: var(--ink-mute); cursor: pointer; }
.consent label strong { color: var(--ink); font-size: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-weight: 600; }
.form-status.is-error { color: var(--error); }

.form-success { text-align: center; padding: 2rem 0; }
.form-success:focus { outline: none; }
.success-mark { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: #E6EBFF; animation: pop .45s var(--ease-out); }
.success-mark svg { width: 30px; height: 30px; fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.form-success h3 { font-size: 1.75rem; }
.form-success p { margin-top: .5rem; color: var(--ink-mute); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--canvas); color: var(--ink-mute); padding-block: 4rem 2rem; font-size: 1rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .footer-grid { grid-template-columns: 1.6fr 1fr auto; align-items: start; } }
.site-footer img { width: 170px; height: auto; }
.footer-line { margin-top: 1rem; max-width: 22rem; }
.footer-contact, .footer-links { display: grid; gap: .5rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--blue); text-decoration: underline; }
.footer-base { margin-top: 3rem; font-size: .9rem; }
.footer-base p { padding-top: 1.5rem; border-top: 1px solid var(--hairline); }

/* ---------- Mobile sticky call to action ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--hairline);
  transform: translateY(110%); transition: transform .3s var(--ease-out);
}
.mobile-cta.is-shown { transform: none; }
@media (min-width: 40rem) { .mobile-cta { display: none !important; } }


/* ---------- Client onboarding (/onboarding) ---------- */
.onboarding-page { background: var(--soft); }
.header-help { margin-left: auto; color: var(--ink); font-weight: 560; font-size: .975rem; text-decoration: none; white-space: nowrap; }
.header-help:hover { color: var(--blue); text-decoration: underline; }
@media (max-width: 30rem) { .header-help .help-label { display: none; } }
.onboard { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(4rem, 3rem + 4vw, 6rem); }
.onboard-wrap { max-width: 44rem; }
.onboard h1 { font-size: clamp(2.6rem, 1.8rem + 3vw, 3.9rem); }
.onboard-intro { margin-top: 1rem; color: var(--ink-mute); font-size: 1.2rem; line-height: 1.5; }

.progress { margin-top: 2rem; scroll-margin-top: calc(var(--header-h) + 16px); }
.progress-text { font-size: .95rem; font-weight: 600; color: var(--ink-mute); }
.progress-track { margin-top: .5rem; height: 6px; border-radius: 99px; background: var(--hairline); overflow: hidden; }
.progress-bar { display: block; height: 100%; width: 8%; border-radius: 99px; background: var(--blue); transition: width .4s var(--ease-out); }

.onboard-form { margin-top: 1.5rem; padding: clamp(1.5rem, 1rem + 2.5vw, 2.5rem); background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-panel); }
.step { display: grid; gap: 1.4rem; }
.step h2 { font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.5rem); }
.step h2:focus { outline: none; }
.step-intro { color: var(--ink-mute); }
.step-note { padding: .9rem 1rem; background: var(--soft); border: 1px solid var(--hairline); border-radius: var(--r-btn); }
.field-row { display: grid; gap: 1.4rem; }
@media (min-width: 36rem) { .field-row { grid-template-columns: 1fr 1fr; } }
.cond { display: grid; gap: 1.4rem; }

.field select, .field textarea {
  width: 100%; padding: .75rem .9rem;
  font: inherit; font-size: max(16px, 1.0625rem); color: var(--ink); line-height: 1.45;
  background: var(--canvas); border: 1px solid var(--field); border-radius: var(--r-field);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field select {
  min-height: 52px; appearance: none; -webkit-appearance: none; padding-right: 2.75rem; cursor: pointer;
  background: var(--canvas) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A2826' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right .9rem center / 18px no-repeat;
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.field textarea::placeholder { color: var(--ink-faint); }
.field select:hover, .field textarea:hover { border-color: #A8A196; }
.field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(5, 44, 210, .2); }
.field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }

fieldset.field { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: .6rem; font-weight: 600; }
fieldset.field .hint { margin: -.3rem 0 .6rem; }
.options { display: grid; gap: .6rem; }
@media (min-width: 36rem) {
  .options { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
  .options-2 { grid-template-columns: 1fr 1fr; }
  .options-3 { grid-template-columns: repeat(3, 1fr); }
}
.option { position: relative; display: flex; align-items: center; gap: .7rem; min-height: 52px; padding: .7rem .9rem; border: 1px solid var(--field); border-radius: var(--r-btn); cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.option:hover { border-color: #A8A196; }
.option input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--blue); cursor: pointer; }
.option:has(input:checked) { border-color: var(--blue); background: #F1F4FF; box-shadow: inset 0 0 0 1px var(--blue); }
.option:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.option span { font-weight: 520; line-height: 1.3; }
fieldset[data-invalid] .option { border-color: var(--error); }

.callout { padding: 1rem 1.1rem; background: #F1F4FF; border: 1px solid #CBD6FF; border-radius: var(--r-btn); overflow-wrap: anywhere; }
.onboard-form, .onboard-form .step, .step > *, .step .field, .cond > * { min-width: 0; }
.step-note, .site-footer a, .signup-alt { overflow-wrap: anywhere; }
.check-field { display: grid; gap: .4rem; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; cursor: pointer; font-weight: 520; }
.check input { width: 22px; height: 22px; margin: .15rem 0 0; accent-color: var(--blue); cursor: pointer; }
.check input[aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: 2px; }
.counter { font-size: .9rem; color: var(--ink-mute); text-align: right; font-variant-numeric: tabular-nums; }

.agreement-title { font-size: 1.25rem; margin-top: .5rem; }
.agreement {
  max-height: 22rem; overflow-y: auto; padding: 1.25rem 1.35rem;
  background: var(--soft); border: 1px solid var(--hairline); border-radius: var(--r-btn);
  font-size: .975rem; line-height: 1.55; overscroll-behavior: contain;
}
.agreement h4 { margin: 1.4rem 0 .4rem; font-size: 1rem; font-weight: 650; }
.agreement h4:first-child { margin-top: 0; }
.agreement p + p { margin-top: .6rem; }
.signature-preview { min-height: 3.6rem; margin-top: .25rem; padding: .2rem .25rem 0; border-bottom: 1px solid var(--ink); font-family: "Mrs Saint Delafield", cursive; font-size: 2.6rem; line-height: 1.3; color: var(--night); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.step-nav { display: flex; gap: .75rem; justify-content: space-between; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline); }
.step-nav [data-next], .step-nav [data-submit] { margin-left: auto; min-width: 9rem; }
@media (max-width: 30rem) { .step-nav .btn { flex: 1; min-width: 0; } }
.field-label { font-weight: 600; }
.dropzone {
  position: relative; display: grid; justify-items: center; gap: .35rem; text-align: center;
  padding: 1.75rem 1rem; border: 1.5px dashed #B9B2A6; border-radius: var(--r-card); background: var(--soft);
  cursor: pointer; transition: border-color .15s ease, background-color .15s ease;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--blue); background: #F1F4FF; }
.dropzone:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dropzone-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #E6EBFF; }
.dropzone-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dropzone-title { font-weight: 650; }
.dropzone-sub { font-size: .95rem; color: var(--ink-mute); }
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.file-list:empty { display: none; }
.file-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .5rem .6rem; border: 1px solid var(--hairline); border-radius: var(--r-btn); background: var(--canvas); }
.file-pending { display: block; padding: .8rem 1rem; color: var(--ink-mute); font-size: .95rem; }
.file-thumb { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 6px; overflow: hidden; background: var(--soft); border: 1px solid var(--hairline); font-size: .7rem; font-weight: 650; color: var(--ink-mute); }
.file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-meta { display: grid; min-width: 0; }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 520; }
.file-size { font-size: .875rem; color: var(--ink-mute); }
.file-remove { min-height: 44px; padding: 0 .75rem; border: 0; border-radius: 6px; background: none; color: var(--blue); font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; }
.file-remove:hover { background: #F1F4FF; }
.upload-note { margin-top: 1rem; padding: .9rem 1rem; border-radius: var(--r-btn); background: #FFF6E0; border: 1px solid #EBCB5C; color: var(--ink); text-align: left; }
.onboard .form-status { margin-top: 1rem; }
.onboard-success { margin-top: 2rem; padding: 3rem 1.5rem; background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-panel); }
.onboard-success h2 { font-size: 1.75rem; }

/* ---------- Welcome page (/welcome, after paying on Square) ---------- */
.welcome { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(4rem, 3rem + 4vw, 6rem); }
.welcome-wrap { max-width: 44rem; }
.welcome h1 { font-size: clamp(2.6rem, 1.7rem + 3.6vw, 4.2rem); max-width: 13ch; }
.welcome-sub { margin-top: 1rem; font-size: 1.25rem; line-height: 1.5; color: var(--ink-mute); }
.welcome-btn { margin-top: 1.75rem; }
@media (max-width: 30rem) { .welcome-btn { width: 100%; } }
.welcome-receipt { margin-top: .9rem; font-size: .95rem; color: var(--ink-faint); }
.welcome-block { margin-top: clamp(3rem, 2.5rem + 2vw, 4.5rem); }
.welcome-block h2 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); margin-bottom: 1.5rem; }

/* Numbered steps as a vertical timeline. The counter skips hidden steps, so numbers never have gaps. */
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: wstep; }
.timeline li { counter-increment: wstep; position: relative; display: grid; grid-template-columns: 3.25rem 1fr; column-gap: 1rem; padding-bottom: 1.75rem; }
.timeline li::before {
  content: counter(wstep); grid-row: 1 / span 2;
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: var(--canvas); border: 1px solid var(--hairline); color: var(--blue);
  font-family: var(--display); font-stretch: 76%; font-weight: 760; font-size: 1.6rem; line-height: 1;
}
.timeline li::after { content: ""; position: absolute; left: calc(1.625rem - .5px); top: 3.5rem; bottom: .25rem; width: 1px; background: var(--hairline); }
.timeline li:last-child::after, .timeline li.is-last::after { display: none; } /* no connector under the last visible step */
.timeline h3 { grid-column: 2; padding-top: .7rem; font-size: 1.3rem; }
.timeline p { grid-column: 2; margin-top: .35rem; color: var(--ink-mute); }

.welcome-checks { margin: 0; padding: 0; border: 0; gap: .8rem; }
.welcome-checks li { overflow-wrap: anywhere; }
.welcome-note { margin-top: 1.75rem; padding: 1rem 1.15rem; background: #FFF6E0; border: 1px solid #EBCB5C; border-radius: var(--r-btn); }
.welcome-start { margin-top: 2rem; }
.welcome-start .welcome-btn { margin-top: 0; }
.welcome-questions h2 { margin-bottom: .75rem; }
.welcome-questions p + p { margin-top: .35rem; }
.welcome-questions a { font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Legal pages ---------- */
.legal { padding-block: clamp(2.5rem, 2rem + 3vw, 5rem); }
.legal .container { max-width: 46rem; }
.legal h1 { font-size: clamp(2.6rem, 1.8rem + 3vw, 3.9rem); }
.legal .updated { margin-top: .9rem; color: var(--ink-mute); }
.legal h2 { margin: 2.75rem 0 .75rem; font-size: 1.5rem; }
.legal p + p { margin-top: 1rem; }
.legal ul { display: grid; gap: .5rem; margin: .75rem 0 0; padding-left: 1.25rem; }
.legal .back-home { margin-top: 2rem; }

/* ---------- Reduced motion: finished state, no movement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  /* No pinning, no pop-ins: the finished conversation, still and complete */
  .js .hero-track { height: auto; }
  .js .hero-visual { position: relative; top: auto; }
  .device, .hero-visual .msg, .hero-visual .receipt, .alert { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hero-visual .typing { display: none; }
  .js .steps li::after, .js .steps li::before, .js .steps li > * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
