:root {
  --close-ground: #E3D2B4;
  --close-ink: #1B2230;
  --close-link: #1E4A5F;
  --close-button: #1E4A5F;
  --close-button-ink: #F7F8FA;
  --feat-ground: #1E4A5F;
  --use-tile: #1E4A5F;
  --cross: 6rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --close-ground: #1B2230;
    --close-ink: #E9ECF1;
    --close-link: #E3D2B4;
    --close-button: #E3D2B4;
    --close-button-ink: #1B2230;
    --feat-ground: #27566C;
    --use-tile: #27566C;
  }
}

main { padding-block: 0; }

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section h2 { margin-top: 0; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.03; }
.kicker { font-family: var(--font-mono); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-ink); margin: 0 0 0.9rem; }
.kicker.with-tag { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.7rem; }
.tag { display: inline-block; font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-ink); border: 1.5px solid var(--brand-ink); border-radius: 999px; padding: 0.05rem 0.55rem; }
.intro { max-width: 40rem; font-size: 1.12rem; color: var(--ink-soft); }

.teal .kicker { color: var(--sand); }
.teal.section h2 { color: var(--paper); }

.hero .wrap { display: grid; gap: clamp(2.5rem, 6vw, 4rem); padding-block: clamp(1.5rem, 5vw, 3rem) 0; align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 7.4vw, 5.4rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.0; color: var(--paper); max-width: 13ch; margin-bottom: 0.5em; }
.hero .lede { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.55; color: var(--paper); max-width: 34rem; margin-bottom: 0.6rem; }
.hero .lede-more { font-size: 1.05rem; line-height: 1.6; color: var(--mist); max-width: 34rem; }
.teal .button { background: var(--sand); color: var(--graphite); }
.teal .button:hover { background: var(--paper); }
.teal .quiet { font-family: var(--font-head); font-weight: 600; color: var(--paper); }
.hero .small { font-size: 0.9rem; color: var(--mist); max-width: 34rem; margin: 0 0 2.5rem; }

.phone-fig { position: relative; z-index: 1; margin: 0; justify-self: center; width: min(100%, 17rem); display: flex; flex-direction: column; }
.phone-fig::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 3.5rem; width: 20rem; aspect-ratio: 1; border-radius: 50%;
  background: var(--sand); transform: translateX(-50%);
}
.phone-fig figcaption { order: -1; font-family: var(--font-head); font-size: 0.88rem; color: var(--mist); text-align: center; margin: 0 0 1rem; }
.phone-clip { max-height: 26rem; overflow: clip; }
@media (min-width: 60rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.95fr); padding-bottom: 2rem; }
  .phone-fig { width: min(100%, 23rem); align-self: end; margin-bottom: calc(-2rem - var(--cross)); }
  .phone-fig::before { top: 50%; width: clamp(26rem, 34vw, 32rem); transform: translate(-50%, -50%); }
  .phone-fig figcaption { order: 0; margin: 0.9rem 0 0; color: var(--ink-soft); }
  .phone-clip { max-height: none; overflow: visible; }
  .hero .small { margin-bottom: 0; }
  .story-section { padding-top: calc(clamp(3.5rem, 8vw, 6rem) + var(--cross)); }
}

.phone { background: var(--graphite); border-radius: 2.7rem; padding: 2.1rem 0.7rem 1.4rem; border: 2px solid var(--graphite); position: relative; }
.phone::before { content: ""; position: absolute; top: 0.9rem; left: 50%; width: 3.2rem; height: 0.35rem; margin-left: -1.6rem; border-radius: 1rem; background: #3A4356; }
.phone::after { content: ""; position: absolute; bottom: 0.55rem; left: 50%; width: 1.6rem; height: 0.3rem; margin-left: -0.8rem; border-radius: 1rem; background: #3A4356; }

.app {
  --a-ground: #F7F8FA; --a-surface: #FFFFFF; --a-ink: #1B2230; --a-strong: #1B2230;
  --a-accent: #1E4A5F; --a-on-accent: #F7F8FA; --a-control: #8A9099; --a-hairline: #DDE1E6;
  background: var(--a-ground); color: var(--a-ink); border-radius: 2rem;
  padding: 0.7rem 1.1rem 1.1rem; font-family: var(--font-head); display: flex; flex-direction: column; gap: 0.7rem;
}
@media (prefers-color-scheme: dark) {
  .app {
    --a-ground: #1E4A5F; --a-surface: #27566C; --a-ink: #E3D2B4; --a-strong: #F7F8FA;
    --a-accent: #E3D2B4; --a-on-accent: #1E4A5F; --a-control: #94ABB6; --a-hairline: #3A6A80;
  }
}
.app-top { display: flex; justify-content: space-between; align-items: center; min-height: 2rem; }
.app-top svg { width: 1.15rem; color: var(--a-accent); }
.app-caption { font-size: 0.78rem; font-weight: 600; color: var(--a-accent); }
.app-title { font-size: 1.45rem; font-weight: 700; color: var(--a-strong); line-height: 1.15; margin: 0; }
.app-ring { position: relative; width: 11rem; margin: 0.2rem auto 0; }
.app-ring svg { width: 100%; }
.app-ring .track { stroke: var(--a-hairline); }
.app-ring .arc { stroke: var(--a-accent); }
.app-ring-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.app-figure { font-family: var(--font-mono); font-weight: 500; font-size: 2.3rem; line-height: 1.05; color: var(--a-strong); }
.app-left { font-family: var(--font-body); font-size: 0.85rem; color: var(--a-ink); }
.app-headline { text-align: center; font-weight: 600; font-size: 1.08rem; color: var(--a-strong); margin: 0; }
.app-headline .d, .app-stakes .d { font-family: var(--font-mono); font-weight: 500; }
.app-hold { display: block; text-align: center; border-radius: 999px; padding: 0.8rem 1rem; font-weight: 600; font-size: 0.98rem; background: var(--a-accent); color: var(--a-on-accent); border: 2px solid var(--a-accent); }
.app-stakes { text-align: center; font-family: var(--font-body); font-size: 0.86rem; line-height: 1.45; color: var(--a-ink); margin: -0.2rem 0 0; }
.app-link { text-align: center; font-weight: 600; font-size: 0.92rem; color: var(--a-accent); margin: 0; }
.app-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; align-items: start; margin-top: 0.3rem; }
.app-pill { display: block; text-align: center; border-radius: 999px; padding: 0.6rem 0.4rem; font-weight: 600; font-size: 0.86rem; background: var(--a-surface); }
.app-help { color: var(--a-ink); border: 1.5px solid var(--a-ink); }
.app-end { color: var(--a-accent); border: 1.5px solid var(--a-control); }
.app-help-cap { display: block; text-align: center; font-family: var(--font-body); font-size: 0.72rem; line-height: 1.35; color: var(--a-ink); margin-top: 0.3rem; }

.story-grid { display: grid; gap: 2.5rem 3.5rem; margin-top: 2.5rem; }
@media (min-width: 64rem) {
  .story-grid { grid-template-columns: minmax(0, 44rem) 22rem; justify-content: space-between; align-items: start; }
  .thread-fig { position: sticky; top: 2rem; }
}
.story {
  --time-w: 5.5rem; --node: 2.75rem; --gap: 1rem;
  --rail-x: calc(var(--time-w) + var(--gap) + var(--node) / 2 - 1px);
  --body-x: calc(var(--time-w) + var(--gap) * 2 + var(--node));
  list-style: none; margin: 0; padding: 0; position: relative;
}
.story::before { content: ""; position: absolute; left: var(--rail-x); top: 1.4rem; bottom: 0; width: 2px; background: var(--rule-strong); transform-origin: top; }
.story ol { list-style: none; margin: 0; padding: 0; }
.ev { display: grid; grid-template-columns: var(--time-w) var(--node) 1fr; column-gap: var(--gap); padding-bottom: 1.7rem; position: relative; margin: 0; }
.ev .t { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-soft); text-align: right; padding-top: 0.75rem; white-space: nowrap; }
.ev .node { position: relative; z-index: 1; width: var(--node); height: var(--node); border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--brand-ink); border: 2px solid var(--brand-ink); }
.ev .node svg { width: 1.3rem; }
.ev .b { padding-top: 0.45rem; }
.ev h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 0.2rem; letter-spacing: -0.01em; }
.ev p { margin: 0; color: var(--ink-soft); max-width: 34rem; }
.ev.wait .node { background: var(--attn); border-color: var(--attn); color: var(--on-attn); }
.ev.done .node { background: var(--brand-ink); border-color: var(--brand-ink); color: var(--ground); }
.ev.last::after { content: ""; position: absolute; left: calc(var(--rail-x) - 2px); width: 6px; top: 1.4rem; bottom: 0; background: var(--ground); }

.told-band { --pad: 1rem; background: var(--teal); color: var(--paper); border-radius: 18px; margin: 0 calc(var(--pad) * -1) 1.7rem; padding: 1rem var(--pad) 0.1rem; position: relative; }
.told-band::before { content: ""; position: absolute; left: calc(var(--rail-x) + var(--pad)); top: 0; bottom: 0; width: 2px; background: var(--teal-tint); transform-origin: top; }
.band-label { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sand); margin: 0 0 0.9rem var(--body-x); }
.told-band .ev h3 { color: var(--paper); }
.told-band .ev p, .told-band .ev .t { color: var(--mist); }
.told-band .ev .node { background: var(--sand); border-color: var(--sand); color: var(--teal); }
.told-band .ev:last-child { padding-bottom: 1.2rem; }
.run-note { font-family: var(--font-head); font-size: 0.9rem; color: var(--ink-soft); margin: 0.4rem 0 0; }

@media (max-width: 40rem) {
  .story { --node: 2.5rem; --time-w: 0rem; --gap: 0.9rem; --rail-x: calc(var(--node) / 2 - 1px); --body-x: calc(var(--node) + var(--gap)); }
  .ev { grid-template-columns: var(--node) 1fr; }
  .ev .t { grid-column: 2; grid-row: 1; text-align: left; padding-top: 0; }
  .ev .node { grid-column: 1; grid-row: 1 / span 2; }
  .ev .b { grid-column: 2; padding-top: 0.1rem; }
  .told-band { --pad: 0.5rem; }
}

.thread-fig { margin: 0; width: min(100%, 20rem); justify-self: center; }
.thread-fig .phone { border-radius: 2.3rem; padding: 1.8rem 0.55rem 1.2rem; }
.thread { background: #FFFFFF; color: var(--graphite); border-radius: 1.8rem; padding: 0.9rem 0.75rem 1.2rem; font-family: var(--font-head); }
.thread-head { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding-bottom: 0.7rem; border-bottom: 1px solid #DDE1E8; }
.avatar { width: 2.3rem; height: 2.3rem; border-radius: 50%; background: #DDE1E8; position: relative; overflow: hidden; }
.avatar::before { content: ""; position: absolute; left: 50%; top: 0.5rem; width: 0.8rem; height: 0.8rem; margin-left: -0.4rem; border-radius: 50%; background: #A7B0C0; }
.avatar::after { content: ""; position: absolute; left: 50%; top: 1.4rem; width: 1.6rem; height: 1.4rem; margin-left: -0.8rem; border-radius: 50%; background: #A7B0C0; }
.thread-from { font-size: 0.75rem; font-weight: 500; color: #4A5263; }
.stamp { text-align: center; font-size: 0.7rem; font-weight: 500; color: #4A5263; margin: 0.8rem 0 0.55rem; }
.thread .bubble { font-family: var(--font-head); border: 0; max-width: none; background: #E6E9EE; color: var(--graphite); border-radius: 1.1rem 1.1rem 1.1rem 0.3rem; padding: 0.7rem 0.8rem; margin: 0 1rem 0 0; font-size: 0.82rem; line-height: 1.42; font-weight: 500; white-space: pre-line; overflow-wrap: anywhere; }
.thread .bubble a, .thread .bubble .sms-link { color: #1E4A5F; text-decoration: underline; text-underline-offset: 0.15em; }
.thread a:focus-visible { outline-color: var(--teal); }
.thread-fig figcaption { font-family: var(--font-head); font-size: 0.85rem; color: var(--ink-soft); text-align: center; margin-top: 0.8rem; }

.does-section { background: var(--ground-alt); }
.feats { display: grid; gap: 1.25rem; margin-top: 2rem; grid-template-columns: 1fr; }
@media (min-width: 50rem) { .feats { grid-template-columns: 1fr 1fr; } }
.feat {
  position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: auto 1fr; column-gap: 1.4rem; align-items: start;
  padding: clamp(1.4rem, 3vw, 2rem); background: var(--feat-ground); color: var(--mist); border-radius: 18px;
}
.feat .tile { width: 3.5rem; height: 3.5rem; border-radius: 0.95rem; background: var(--sand); color: var(--teal); display: grid; place-items: center; }
.feat .tile svg { width: 1.8rem; }
.feat h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); font-weight: 700; margin: 0.15rem 0 0; letter-spacing: -0.015em; color: var(--paper); }
.feat h3::after {
  content: ""; display: block; width: 3rem; height: 8px; margin: 0.75rem 0 0.8rem;
  background: linear-gradient(var(--sand), var(--sand)) left center / calc(100% - 6px) 2px no-repeat,
              radial-gradient(circle, var(--sand) 3.4px, transparent 4px) right center / 8px 8px no-repeat;
}
.feat p { margin: 0; max-width: 30rem; }
.feat .wm { position: absolute; z-index: -1; right: -2.5rem; bottom: -2.75rem; width: 9rem; color: var(--paper); opacity: 0.05; }
@media (min-width: 50rem) { .feat > div { padding-right: 3.5rem; } }
@media (max-width: 40rem) {
  .feat { grid-template-columns: 1fr; }
  .feat .tile { margin-bottom: 1rem; }
  .feat .wm { display: none; }
}

.uses { display: grid; gap: 1.25rem; margin-top: 2rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .uses { grid-template-columns: 1fr 1fr; } }
@media (min-width: 70rem) { .uses { grid-template-columns: repeat(4, 1fr); } }
.use-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--use-tile); border-radius: 14px; overflow: hidden; }
.use-card > img { order: -1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.use-card > img ~ .card-body .use-icon { display: none; }
.card-body { padding: 1.4rem 1.35rem 1.5rem; }
.use-icon { width: 3rem; height: 3rem; border-radius: 0.8rem; background: var(--use-tile); color: var(--sand); display: grid; place-items: center; margin-bottom: 1.1rem; }
.use-icon svg { width: 1.6rem; }
.use-card h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 0.45rem; }
.use-card p:last-child { margin-bottom: 0; }
@media (max-width: 40rem) { .use-card > img { aspect-ratio: 3 / 2; } }

.stats { display: grid; gap: 2.5rem; grid-template-columns: 1fr; padding-block: clamp(3.5rem, 8vw, 6rem); }
@media (min-width: 40rem) { .stats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 70rem) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { border-top: 2px solid var(--sand); padding-top: 1.1rem; margin: 0; }
.stat .figure { font-family: var(--font-head); font-weight: 700; font-size: clamp(3.25rem, 7vw, 5.75rem); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: lining-nums tabular-nums; color: var(--sand); margin: 0 0 0.8rem; }
.stat .caption { display: block; font-family: var(--font-head); font-size: 1.05rem; line-height: 1.45; color: var(--paper); max-width: 28ch; margin: 0 0 0.7rem; }
.stat .source { display: block; font-family: var(--font-head); font-size: 0.82rem; color: var(--mist); }

.pricing-grid { display: grid; gap: 2rem 3rem; margin-top: 2rem; }
@media (min-width: 64rem) { .pricing-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.price-wrap { border: 1px solid var(--rule-strong); border-radius: 16px; overflow: hidden; background: var(--surface); }
.price { width: 100%; border-collapse: collapse; font-family: var(--font-head); font-size: 1.0625rem; }
.price th, .price td { text-align: left; vertical-align: top; padding: 0.85rem 1.1rem; border-top: 1px solid var(--rule); border-bottom: 0; font-size: inherit; }
.price thead th { border-top: 0; padding-block: 1.1rem; }
.price thead .tier { display: block; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
.price thead .cost { display: block; font-weight: 500; font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.15rem; }
.price tbody th { font-weight: 500; color: var(--ink-soft); width: 40%; }
.price td { font-weight: 600; width: 30%; }
.price .plus { background: var(--teal); color: var(--paper); border-top-color: var(--teal-raised); }
.price thead .plus .cost { color: var(--mist); }
@media (prefers-color-scheme: dark) { .price .plus { box-shadow: inset 1px 0 0 var(--slate-tint); } }
.both h3 { font-size: 1.2rem; margin: 0 0 0.8rem; }
.both ul { list-style: none; margin: 0 0 1.75rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.both li { font-family: var(--font-head); font-weight: 500; font-size: 0.95rem; border: 1px solid var(--rule-strong); border-radius: 999px; padding: 0.3rem 0.85rem; margin: 0; background: var(--surface); }
.price-notes { color: var(--ink-soft); }
.price-notes p { margin: 0 0 0.6rem; }
@media (max-width: 40rem) {
  .price, .price thead, .price tbody, .price tr { display: block; }
  .price tr { display: grid; grid-template-columns: 1fr 1fr; }
  .price thead th:first-child { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .price tbody th { grid-column: 1 / -1; width: auto; padding-bottom: 0.4rem; }
  .price td { width: auto; }
  .price th, .price td { padding-inline: 0.9rem; }
}

.not-list { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; gap: 2rem 2.5rem; }
@media (min-width: 64rem) { .not-list { grid-template-columns: repeat(3, 1fr); } .not-list li.lead { grid-column: 1 / -1; } }
.not-list li { border-top: 2px solid var(--sand); padding-top: 1.1rem; color: var(--mist); margin: 0; }
.not-list strong { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; line-height: 1.25; color: var(--paper); margin-bottom: 0.45rem; letter-spacing: -0.01em; }
.not-list li.lead { font-size: 1.15rem; }
.not-list li.lead strong { font-size: clamp(1.8rem, 4vw, 2.75rem); line-height: 1.1; color: var(--sand); letter-spacing: -0.02em; }

.close { background: var(--close-ground); color: var(--close-ink); }
.close .wrap { display: grid; gap: 2.5rem 4rem; align-items: center; }
@media (min-width: 50rem) { .close .wrap { grid-template-columns: minmax(0, 1fr) auto; } }
.close h2 { color: var(--close-ink); }
.close p { max-width: 40rem; }
.close a { color: var(--close-link); }
.close .button { background: var(--close-button); color: var(--close-button-ink); margin-top: 0.8rem; }
.close .button:hover { background: var(--close-ink); color: var(--close-ground); }
.close a.button:focus-visible { outline-color: var(--close-ink); }
.close-icon img { width: 9rem; height: 9rem; border-radius: 22%; }
@media (prefers-color-scheme: dark) { .close { border-bottom: 1px solid #2A3242; } }

@media (prefers-reduced-motion: no-preference) {
  @keyframes sweep { from { stroke-dasharray: 0 552.9; } to { stroke-dasharray: 442.3 552.9; } }
  .app-ring .arc { animation: sweep 1.4s cubic-bezier(.2,.7,.2,1) 0.3s both; }

    @supports (animation-timeline: view()) {
    @keyframes draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
    .story { view-timeline-name: --story; }
    .story::before { animation: draw linear both; animation-timeline: --story; animation-range: cover 10% cover 55%; }
    .told-band { view-timeline-name: --band; }
    .told-band::before { animation: draw linear both; animation-timeline: --band; animation-range: entry 0% cover 50%; }
  }
}
