/* Fascoria landing — tokens mirror systemDesign.md and the Paper "Landing page" artboards. */
:root {
  --color-bg: #fbfbfb;
  --color-surface: #ffffff;
  --color-ink: #141414;
  --color-muted: #707070;
  --color-subtle: #9b9b9b;
  --color-dashed: #d0d0d0;
  --color-hairline: #e6e6e6;
  --color-track: #eeeeee;
  --color-primary: #2f5bff;
  --color-primary-light: #8caaff;

  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-ui: 'Roboto', system-ui, -apple-system, sans-serif;

  --radius-card: 22px;
  --radius-hero: 28px;
  --gutter: 64px;
  --max: 1312px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */
.wordmark,
.hero-title,
.title-xl,
.title-card,
.title-level,
.title-cta,
.title-sheet {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  padding-right: 0.08em; /* keeps the slanted last letter from clipping */
}

/* Section, card and CTA headings are upright (design system v2: italics only for named content). */
.title-xl,
.title-card,
.title-cta {
  font-style: normal;
  padding-right: 0;
}

.title-xl {
  font-size: 72px;
  line-height: 76px;
}

.title-card {
  font-size: 44px;
  line-height: 46px;
}

.lede {
  font-family: var(--font-ui);
  font-size: 20px;
  line-height: 30px;
  color: var(--color-muted);
}

.overline {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ---------- Pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 15px;
  line-height: 20px;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.pill:active {
  transform: scale(0.98);
}

.pill-dark {
  background: var(--color-ink);
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Hover: the pill lifts a little and picks up a soft cobalt glow underneath. */
@media (hover: hover) {
  .pill-dark:hover {
    background: #262626;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -10px rgba(47, 91, 255, 0.55), 0 4px 10px -4px rgba(20, 20, 20, 0.3);
  }

  .pill-dark:hover:active {
    transform: translateY(0) scale(0.98);
  }

  .acc-row:not(.is-active):hover .acc-icon {
    border-color: var(--color-ink);
  }
}

.pill-lg {
  height: 56px;
  padding: 0 28px 0 24px;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  line-height: 22px;
  letter-spacing: -0.01em;
}

.pill-block {
  width: 100%;
}

.pill svg {
  flex-shrink: 0;
  fill: currentColor;
}

.apple {
  width: 17px;
  height: 20px;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter);
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.wordmark {
  font-size: 30px;
  line-height: 36px;
}

.nav-links {
  display: flex;
  gap: 36px;
  font-size: 15px;
  line-height: 20px;
}

.nav-links a:hover,
.footer-col a:hover,
.footer-col button:hover {
  color: var(--color-muted);
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 72px var(--gutter) 56px;
  text-align: center;
}

.overline-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--color-hairline);
  font-weight: 500;
  font-size: 13px;
  line-height: 16px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--color-primary);
}

.hero-title {
  max-width: 1000px;
  font-size: 104px;
  line-height: 104px;
  letter-spacing: -0.02em;
}

.hero-sub {
  max-width: 620px;
  font-family: var(--font-ui);
  font-size: 20px;
  line-height: 32px;
  color: var(--color-muted);
}

.cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 10px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 16px;
  color: var(--color-muted);
}

.stars {
  display: flex;
  gap: 2px;
}

.stars svg {
  width: 14px;
  height: 14px;
  fill: var(--color-ink);
}

/* Silver stage (design system v2): grey gradient, faint white fascia lines, soft navy lift. */
.stage-card,
.thumb,
.step {
  background: linear-gradient(180deg, #dddddd 0%, #a4a4a4 100%);
}

/* Hero stage: silver card with two mirrored figures and the phone overlapping its top edge. */
.hero-stage {
  position: relative;
  height: 880px;
}

.stage-card {
  position: absolute;
  inset: 200px 0 0;
  border-radius: var(--radius-hero);
  box-shadow: 0 20px 38px -14px rgba(18, 26, 74, 0.24), 0 6px 12px -6px rgba(18, 26, 74, 0.13);
  overflow: hidden;
}

.stage-card::before,
.step::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 358 300' preserveAspectRatio='none'><defs><linearGradient id='g' x1='0' x2='358' y1='0' y2='0' gradientUnits='userSpaceOnUse'><stop offset='0' stop-color='%23fff' stop-opacity='0'/><stop offset='.25' stop-color='%23fff' stop-opacity='.55'/><stop offset='.7' stop-color='%23fff' stop-opacity='.35'/><stop offset='1' stop-color='%23fff' stop-opacity='0'/></linearGradient></defs><g fill='none' stroke='url(%23g)' vector-effect='non-scaling-stroke'><path d='M-20 70 C 80 150, 200 10, 380 90'/><path d='M-20 84 C 80 164, 200 24, 380 104'/><path d='M-20 98 C 80 178, 200 38, 380 118'/><path d='M-20 112 C 80 192, 200 52, 380 132'/><path d='M-20 126 C 80 206, 200 66, 380 146'/><path d='M-20 140 C 80 220, 200 80, 380 160'/><path d='M-20 154 C 80 234, 200 94, 380 174'/><path d='M-20 168 C 80 248, 200 108, 380 188'/></g></svg>") center / 100% 100% no-repeat;
}

.figure {
  position: absolute;
  top: 40px;
  width: 400px;
  height: 600px;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
}

.figure-left {
  left: 40px;
}

.figure-right {
  right: 40px;
}

/* Apple iPhone 18 Pro product bezel (Apple Design Resources) with the app screen in its cutout.
   Bezel PNG is 1350 × 2760; the screen cutout is x 72–1278, y 69–2691. */
.phone {
  position: relative;
  aspect-ratio: 1350 / 2760;
  filter: drop-shadow(0 40px 40px rgba(18, 26, 74, 0.28));
}

.phone .screen {
  position: absolute;
  left: 5.15%;
  top: 2.35%;
  width: 89.7%;
  height: 95.3%;
  border-radius: 13% / 6%;
  overflow: hidden;
  background: #000;
}

.phone .screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.phone .bezel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.phone-hero {
  position: absolute;
  left: 50%;
  top: 0;
  width: 420px;
  transform: translateX(-50%);
}

/* ---------- Sections ---------- */
.section {
  padding-top: 180px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-head.split {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.lede-side {
  max-width: 400px;
  font-size: 17px;
}

/* Two reasons */
.paths {
  padding-top: 160px;
}

.path-cards {
  display: flex;
  gap: 24px;
  margin-top: 48px;
}

.path-card {
  flex: 1;
  display: flex;
  gap: 28px;
  padding: 16px;
  border-radius: var(--radius-hero);
  background: var(--color-surface);
  border: 1px solid var(--color-hairline);
}

.thumb {
  width: 260px;
  height: 340px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  border-radius: var(--radius-card);
  overflow: hidden;
}

/* Figure is taller than the panel and anchored to the top, so the bottom is cropped. */
.thumb img {
  width: 260px;
  height: 390px;
  max-width: none;
  flex-shrink: 0;
  object-fit: cover;
}

.path-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 12px 10px 0;
}

.path-body .overline {
  margin-bottom: 12px;
}

.outcomes {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  line-height: 24px;
}

/* Features */
.features {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
  padding-right: calc(var(--gutter) * 2);
}

.features-text {
  width: 640px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.acc-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 0;
  border-top: 1px solid var(--color-hairline);
  text-align: left;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.acc-row:first-child,
.acc-row.is-active,
.acc-row.is-active + .acc-row {
  border-top-color: transparent;
}

.acc-row.is-active {
  align-items: flex-start;
  padding: 22px 22px 24px;
  border-radius: var(--radius-card);
  background: var(--color-surface);
  border: 1px solid var(--color-hairline);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.acc-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.acc-title {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 30px;
}

.acc-row.is-active .acc-title {
  font-size: 28px;
  line-height: 32px;
}

.acc-row.is-active .acc-text {
  gap: 8px;
}

.acc-detail {
  font-size: 15px;
  line-height: 22px;
  color: var(--color-muted);
}

.acc-row.is-active .acc-detail {
  line-height: 24px;
}

.acc-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--color-hairline);
}

.acc-icon svg {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.acc-icon .arrow {
  width: 14px;
  height: 14px;
  stroke: var(--color-muted);
  stroke-width: 2.5;
}

.acc-icon .ring {
  display: none;
  width: 36px;
  height: 36px;
  stroke-width: 3;
}

/* Active row marker: solid cobalt dot with a light-blue ring. */
.acc-icon .ring circle {
  fill: var(--color-primary);
  stroke: var(--color-primary-light);
}

.acc-row.is-active .acc-icon {
  border-color: transparent;
}

.acc-row.is-active .ring {
  display: block;
}

.acc-row.is-active .arrow {
  display: none;
}

.phone-features {
  width: 420px;
  flex-shrink: 0;
}

/* Feature screens stack in the phone; the active row's screen fades in. */
.phone .screens img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.phone .screens img.is-active {
  opacity: 1;
  transform: none;
}

/* Program: header like "Two reasons", then three equal silver step cards. */
.program {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.program-title {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.overline-primary {
  color: var(--color-primary);
}

.steps {
  display: flex;
  gap: 20px;
}

.step {
  position: relative;
  flex: 1;
  height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border-radius: var(--radius-hero);
  box-shadow: 0 20px 38px -14px rgba(18, 26, 74, 0.24), 0 6px 12px -6px rgba(18, 26, 74, 0.13);
  overflow: hidden;
}

.step-figure {
  position: absolute;
  inset: -24px 0 auto;
  height: 500px;
  display: flex;
  justify-content: center;
}

.step-figure img {
  width: 333px;
  height: 500px;
  max-width: none;
  flex-shrink: 0;
  object-fit: cover;
}

/* The figure sinks into the card bottom so the copy sits on plain grey. */
.step-fade {
  position: absolute;
  inset: auto 0 0;
  height: 200px;
  background: linear-gradient(180deg, rgba(164, 164, 164, 0) 0%, rgba(164, 164, 164, 0.9) 55%, #a4a4a4 100%);
}

.step-top,
.step-copy {
  position: relative;
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step-time {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 13px;
  line-height: 16px;
  letter-spacing: -0.01em;
  color: #fff;
}

/* Week pips fill up to the last week of the level. */
.pips {
  display: flex;
  gap: 4px;
}

.pips i {
  width: 14px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.pips i.on {
  background: var(--color-primary);
}

.step-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-label {
  color: rgba(255, 255, 255, 0.8);
}

.title-level {
  color: #fff;
  font-size: 36px;
  line-height: 40px;
}

.level-detail {
  max-width: 300px;
  font-size: 15px;
  line-height: 22px;
  color: rgba(255, 255, 255, 0.8);
}

/* Closing CTA */
.cta-band {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 120px 80px;
  border-radius: var(--radius-hero);
  overflow: hidden;
  text-align: center;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/fascia-lines.webp') center / cover no-repeat;
  opacity: 0.9;
}

.cta-band > * {
  position: relative;
}

.title-cta {
  max-width: 660px;
  font-size: 88px;
  line-height: 90px;
}

.cta-sub {
  max-width: 520px;
}

.cta-band .pill {
  margin-top: 12px;
}

/* Footer */
.footer {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-top: 120px;
  padding-bottom: 48px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
}

.footer-brand p {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 24px;
  color: var(--color-muted);
}

.footer-cols {
  display: flex;
  gap: 96px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  line-height: 20px;
}

.footer-col p {
  font-size: 13px;
  line-height: 16px;
  color: var(--color-muted);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-hairline);
  font-size: 13px;
  line-height: 18px;
  color: var(--color-subtle);
}

/* ---------- Message us sheet ---------- */
.sheet {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100% - 48px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-hero);
  background: var(--color-surface);
  color: var(--color-ink);
  box-shadow: 0 40px 80px -20px rgba(18, 26, 74, 0.35);
  overflow-y: auto;
}

.sheet::backdrop {
  background: rgba(20, 20, 20, 0.45);
}

.sheet[open] {
  animation: sheet-in 0.22s ease-out;
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

.sheet-form,
.sheet-done {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 32px 32px 28px;
}

.grabber {
  display: none;
  width: 40px;
  height: 5px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--color-track);
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.sheet-head > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.title-sheet {
  font-size: 44px;
  line-height: 46px;
}

.sheet-sub {
  max-width: 400px;
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 25px;
  color: var(--color-muted);
}

.close {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--color-hairline);
}

.close svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--color-ink);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

fieldset.field {
  gap: 10px;
}

.label {
  padding: 0;
  font-weight: 500;
  font-size: 13px;
  line-height: 16px;
  color: var(--color-muted);
}

.label-row {
  display: flex;
  justify-content: space-between;
}

.counter {
  color: var(--color-subtle);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
  cursor: pointer;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--color-hairline);
  background: var(--color-surface);
  font-size: 14px;
  line-height: 18px;
  transition: background 0.15s ease, color 0.15s ease;
}

.chip input:checked + span {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: #fff;
}

.chip input:focus-visible + span {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.field-row {
  display: flex;
  gap: 12px;
}

.field-row .field {
  flex: 1;
}

.input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid var(--color-hairline);
  background: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 20px;
  outline: none;
  transition: border-color 0.15s ease;
}

.input::placeholder {
  color: var(--color-subtle);
}

.input:focus {
  border: 1.5px solid var(--color-ink);
}

.input.is-invalid {
  border-color: #d93025;
}

.textarea {
  height: 150px;
  padding: 14px 16px;
  line-height: 22px;
  resize: none;
}

.attach {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  margin-top: -20px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px dashed var(--color-dashed);
  font-size: 14px;
  line-height: 18px;
  color: var(--color-muted);
  cursor: pointer;
}

.attach svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--color-muted);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.attach.has-file {
  border-style: solid;
  color: var(--color-ink);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.sheet-foot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}

.sheet-foot .pill svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pill[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.form-error {
  font-size: 14px;
  line-height: 20px;
  color: #d93025;
  text-align: center;
}

.fine {
  font-size: 12px;
  line-height: 17px;
  color: var(--color-subtle);
  text-align: center;
}

[hidden] {
  display: none !important;
}

.sheet-sent {
  width: min(440px, calc(100% - 32px));
}

.sheet-done {
  align-items: center;
  gap: 12px;
  text-align: center;
}

.sent-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--color-ink);
}

.sent-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sheet-done .pill {
  margin-top: 16px;
}

/* ---------- Tablet ---------- */
@media (max-width: 1240px) {
  :root {
    --gutter: 40px;
  }

  .path-cards {
    flex-direction: column;
  }

  .features {
    padding-right: var(--gutter);
  }

  .features-text {
    width: auto;
    flex: 1;
  }

  .hero-title {
    font-size: 88px;
    line-height: 90px;
  }

  .figure {
    width: 320px;
    height: 480px;
  }

  .figure-left {
    left: 0;
  }

  .figure-right {
    right: 0;
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .section-head.split {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .features {
    flex-direction: column;
    align-items: stretch;
  }

  .phone-features {
    align-self: center;
    order: -1;
  }

  .features-text {
    display: contents;
  }

  .features .section-head {
    order: -2;
  }

  .steps {
    flex-direction: column;
  }

  .footer-top {
    flex-direction: column;
  }
}

/* ---------- Mobile (Paper "Landing · Mobile v1", 390 wide) ---------- */
@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  .nav {
    padding: 14px var(--gutter);
  }

  .brand {
    gap: 8px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .wordmark {
    font-size: 24px;
    line-height: 30px;
  }

  .nav-cta {
    height: 36px;
    padding: 0 14px;
    font-size: 14px;
  }

  .hero {
    gap: 16px;
    padding: 40px var(--gutter) 36px;
  }

  .overline-pill {
    height: 30px;
    padding: 0 12px;
    font-size: 12px;
  }

  .hero-title {
    font-size: 54px;
    line-height: 56px;
  }

  .hero-sub {
    max-width: 330px;
    font-size: 15px;
    line-height: 25px;
  }

  .cta-group {
    width: 100%;
    gap: 12px;
    padding-top: 8px;
  }

  .cta-group .pill {
    width: 100%;
  }

  .hero-stage {
    height: 600px;
    max-width: 358px;
    margin: 0 auto;
  }

  .stage-card {
    inset: 130px 0 0;
  }

  .figure {
    top: 120px;
    width: 220px;
    height: 330px;
  }

  .figure-left {
    left: -60px;
  }

  .figure-right {
    right: -60px;
  }

  .phone-hero {
    width: 236px;
  }

  .section {
    padding-top: 110px;
  }

  .paths {
    padding-top: 96px;
  }

  .title-xl {
    font-size: 40px;
    line-height: 46px;
  }

  .lede,
  .lede-side {
    font-size: 15px;
    line-height: 25px;
  }

  .section-head {
    gap: 12px;
  }

  .path-cards {
    gap: 24px;
    margin-top: 24px;
  }

  .path-card {
    flex-direction: column;
    gap: 18px;
    padding: 12px 12px 20px;
  }

  .thumb {
    width: 100%;
    height: 300px;
  }

  .thumb img {
    width: 334px;
    height: 500px;
  }

  .path-body {
    padding: 0 8px;
    gap: 16px;
  }

  .path-body .overline {
    margin-bottom: 10px;
  }

  .title-card {
    font-size: 34px;
    line-height: 37px;
  }

  .outcomes {
    gap: 8px;
    font-size: 13px;
    line-height: 23px;
  }

  .features {
    gap: 28px;
  }

  .phone-features {
    width: 250px;
  }

  .acc-row,
  .acc-row.is-active {
    padding: 16px 18px;
  }

  .acc-row.is-active {
    padding: 18px 22px;
  }

  .acc-detail {
    line-height: 21px;
  }

  .acc-row.is-active .acc-detail {
    line-height: 22px;
  }

  .acc-title {
    font-size: 22px;
    line-height: 26px;
  }

  .acc-row.is-active .acc-title {
    font-size: 24px;
    line-height: 28px;
  }

  .program {
    gap: 24px;
  }

  .program-title {
    gap: 12px;
  }

  .steps {
    gap: 14px;
  }

  /* Mobile steps grow a little each level (Paper "Landing · Mobile v1"). */
  .step:nth-child(1) {
    height: 340px;
  }

  .step:nth-child(2) {
    height: 380px;
  }

  .step:nth-child(3) {
    height: 420px;
  }

  .step:nth-child(1) .step-figure,
  .step:nth-child(1) .step-figure img {
    width: 240px;
    height: 360px;
  }

  .step:nth-child(2) .step-figure,
  .step:nth-child(2) .step-figure img {
    width: 267px;
    height: 400px;
  }

  .step:nth-child(3) .step-figure,
  .step:nth-child(3) .step-figure img {
    width: 293px;
    height: 440px;
  }

  .step-figure {
    margin: 0 auto;
  }

  .title-level {
    font-size: 32px;
    line-height: 36px;
  }

  .cta-band {
    gap: 18px;
    padding: 72px 20px;
  }

  .title-cta {
    max-width: 290px;
    font-size: 40px;
    line-height: 44px;
  }

  .cta-sub {
    max-width: 300px;
    font-size: 15px;
    line-height: 24px;
  }

  .cta-band .pill {
    width: 100%;
    margin-top: 8px;
  }

  .footer {
    gap: 36px;
    padding-top: 80px;
    padding-bottom: 36px;
  }

  .footer-top {
    gap: 36px;
  }

  .footer-brand p {
    font-size: 17px;
    line-height: 23px;
  }

  .footer-cols {
    flex-wrap: wrap;
    gap: 36px 32px;
  }

  .footer-col {
    flex: 1 1 140px;
    gap: 12px;
  }

  /* Legal: label on top, the two links side by side. */
  .footer-col:last-child {
    flex-basis: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 24px;
  }

  .footer-col:last-child p {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    gap: 8px;
    padding-top: 20px;
    font-size: 12px;
    line-height: 17px;
  }

  /* Ticket becomes a bottom sheet. */
  .sheet {
    width: 100%;
    max-width: 100%;
    max-height: calc(100% - 56px);
    margin: auto 0 0;
    border-radius: var(--radius-hero) var(--radius-hero) 0 0;
    box-shadow: none;
  }

  .sheet[open] {
    animation: sheet-up 0.26s ease-out;
  }

  @keyframes sheet-up {
    from {
      transform: translateY(40px);
      opacity: 0;
    }
  }

  .sheet-form,
  .sheet-done {
    gap: 18px;
    padding: 10px 16px calc(22px + env(safe-area-inset-bottom));
  }

  .grabber {
    display: block;
  }

  .sheet-head > div {
    gap: 6px;
  }

  .title-sheet {
    font-size: 36px;
    line-height: 38px;
  }

  .sheet-sub {
    max-width: 290px;
    font-size: 17px;
    line-height: 22px;
  }

  .close {
    width: 36px;
    height: 36px;
  }

  .close svg {
    width: 12px;
    height: 12px;
  }

  .field-row {
    gap: 10px;
  }

  .field-row .input {
    padding: 0 12px;
    font-size: 16px; /* 16px stops iOS from zooming the page on focus */
  }

  .input,
  .textarea {
    font-size: 16px;
  }

  .textarea {
    height: 92px;
  }

  .attach {
    margin-top: -10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .sheet[open] {
    animation: none;
  }
}
