/* Fork Compass website. "Candy pop": the app's own look. */

@font-face {
  font-family: "Fredoka";
  src: url("assets/fonts/fredoka-latin-wght.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/nunito-latin-wght.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --yellow: #FFD84D;
  --ink: #1F1235;
  --muted: #4B3F63;
  --white: #FFFFFF;
  --green: #3DDC84;
  --mint: #D6F8E4;
  --pink: #FF8FC7;
  --pink-tint: #FFE1F0;
  --lilac: #C9B8FF;
  --lilac-tint: #EFE9FF;
  --sky: #8AD8FF;
  --sky-tint: #DDF3FF;
  --cream: #FFF3C2;
  --cream-soft: #FFF9DD;
  --plum: #2A2140;
  --cloud: #DAD5E3;

  --ring: var(--ink);
  --sh: var(--ink);
  --head: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(56px, 9vw, 112px);
  --lap: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}
img, video { max-width: 100%; }
img { display: block; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 2px; }

:focus-visible {
  outline: 4px solid var(--ring);
  outline-offset: 3px;
}
.on-dark { --ring: var(--white); --sh: var(--yellow); }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}

h1, h2, h3, .btn, .brand, .pill, summary, .place, .demo-prompt, .film-title, .punch {
  font-family: var(--head);
}
h2 {
  font-size: clamp(2.1rem, 6.4vw, 3.9rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h3 {
  font-size: clamp(1.5rem, 3.4vw, 1.9rem);
  font-weight: 600;
  line-height: 1.12;
  text-wrap: balance;
}
.big-p {
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  line-height: 1.5;
  font-weight: 600;
  max-width: 34em;
}

/* ---------- skip link and top bar ---------- */
.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 50;
  background: var(--green);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 10px 18px;
  min-height: 44px;
  font-family: var(--head);
  font-weight: 600;
}
.skip:focus { top: 12px; }

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--yellow);
  border-bottom: 3px solid var(--ink);
}
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.brand img {
  width: 40px;
  height: 40px;
  border: 3px solid var(--ink);
  border-radius: 12px;
}
.top-nav { display: none; }
.top-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 14px;
}
.top-nav a:hover { background: var(--cream); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 26px;
  background: var(--green);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 0 6px 0 var(--ink);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.btn:active:not(:disabled) {
  transform: translateY(6px);
  box-shadow: 0 0 0 var(--ink);
}
.btn:disabled { cursor: progress; opacity: .85; }
.btn-small {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 16px;
  font-size: .98rem;
  line-height: 1.05;
  box-shadow: 0 4px 0 var(--ink);
}
.btn-small:active:not(:disabled) { transform: translateY(4px); }
.top .btn-small[data-invite] { white-space: nowrap; }

/* ---------- bands: sections that overlap with a round top ---------- */
.band {
  position: relative;
  margin-top: calc(var(--lap) * -1);
  padding: var(--pad) 0 calc(var(--pad) + var(--lap));
  border-radius: 48px 48px 0 0;
}

/* ---------- 1. hero ---------- */
.hero {
  padding: clamp(28px, 6vw, 64px) 0 calc(var(--pad) * .8 + var(--lap));
  background-color: var(--yellow);
}
.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
h1 {
  font-size: clamp(3rem, 12.5vw, 5.9rem);
  font-weight: 700;
  line-height: .96;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 .w { display: inline-block; }
.lede {
  margin-top: 20px;
  max-width: 30em;
  font-size: clamp(1.15rem, 2.6vw, 1.35rem);
  font-weight: 600;
  line-height: 1.5;
}

/* email form */
.join { margin-top: 28px; max-width: 560px; display: grid; gap: 8px; }
.join label { font-family: var(--head); font-weight: 600; font-size: 1.1rem; }
.join-row { display: grid; gap: 14px; }
.join input[type="email"] {
  width: 100%;
  min-height: 60px;
  padding: 0 20px;
  background: var(--white);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 0 6px 0 var(--ink);
  font: 700 1.1rem var(--body);
}
.join input::placeholder { color: var(--muted); opacity: 1; font-weight: 600; }
.join .btn { width: 100%; margin-bottom: 6px; }
.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.join-msg {
  margin-top: 6px;
  padding: 12px 16px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  font-weight: 800;
  line-height: 1.35;
}
.join-msg:empty { display: none; }
.join-msg.is-ok { background: var(--mint); }
.join-msg.is-error { background: var(--pink-tint); }
.join-msg.is-sending { background: var(--white); }
.join-note { margin-top: 6px; color: var(--muted); font-weight: 700; font-size: .98rem; }
.link-x { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; }

/* the demo */
.demo {
  display: grid;
  gap: 22px;
  justify-items: center;
}
.demo-controls { width: 100%; max-width: 440px; order: 2; }
.demo-stage { order: 1; }
.demo-note { order: 3; }
.demo-prompt {
  margin-bottom: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}
.places { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.place {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 6px 12px;
  background: var(--white);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 0 5px 0 var(--ink);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.place:active { transform: translateY(5px); box-shadow: 0 0 0 var(--ink); }
.place[aria-pressed="true"] { background: var(--green); transform: translateY(5px); box-shadow: 0 0 0 var(--ink); }
@media (hover: hover) {
  .btn:hover:not(:disabled):not(:active) { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink); }
  .btn-small:hover:not(:disabled):not(:active) { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
  .place:not([aria-pressed="true"]):hover:not(:active) { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
}

.demo-stage {
  position: relative;
  width: 100%;
  display: grid;
  justify-items: center;
}

/* a phone drawn in CSS */
.phone {
  --pw: 250px;
  position: relative;
  width: var(--pw);
  overflow: hidden;
  background: var(--yellow);
  border: 9px solid var(--ink);
  border-radius: 46px;
  box-shadow: 8px 8px 0 var(--ink);
}
.phone img { width: 100%; height: auto; }
.phone-hero { --pw: min(74vw, 290px); }
.phone-step { --pw: min(66vw, 260px); }
.phone-stop { --pw: min(58vw, 230px); }
.cut-a, .cut-b, .cut-c, .cut-d {
  border-bottom-width: 0;
  border-radius: 46px 46px 0 0;
  box-shadow: none;
  -webkit-mask-image: linear-gradient(#000 62%, transparent 100%);
  mask-image: linear-gradient(#000 62%, transparent 100%);
}
.cut-a, .cut-b, .cut-c, .cut-d { max-height: calc(var(--pw) * 1); }
.cut-c { max-height: calc(var(--pw) * 1.2); }
.tilt-l { transform: rotate(-2deg); }
.tilt-r { transform: rotate(2deg); }

.scan {
  position: absolute;
  inset: 0;
  display: none;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  background: rgba(31, 18, 53, .55);
  text-align: center;
}
.phone.is-reading .scan { display: grid; }
.scan p {
  white-space: nowrap;
  padding: 8px 16px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 999px;
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.05rem;
}
.scan-track {
  width: 78%;
  height: 22px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
}
.scan-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--green);
  transform-origin: left center;
  transform: scaleX(0);
}
.phone.is-reading .scan-fill { animation: fill .9s linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }

.say {
  position: relative;
  z-index: 2;
  width: min(100%, 340px);
  margin-top: -30px;
  padding: 12px 16px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: 6px 6px 0 var(--ink);
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.35;
  min-height: calc(3 * 1.35em + 30px);
  display: flex;
  align-items: center;
  transform: rotate(-1.5deg);
}
.say.is-new { animation: say-pop .35s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes say-pop {
  from { transform: rotate(-1.5deg) scale(.9); }
  to { transform: rotate(-1.5deg) scale(1); }
}
.demo-note { max-width: 30em; color: var(--muted); font-weight: 700; font-size: .95rem; text-align: center; }

/* ---------- 2. the feeling ---------- */
.feeling {
  background: var(--plum);
  color: var(--white);
  overflow: hidden;
}
.feeling h2 { max-width: 15em; }
.line-white, .line-yellow { display: block; }
.line-yellow { color: var(--yellow); }
.feeling .big-p { margin-top: 22px; color: var(--cloud); }

.fact-source { margin-top: 14px; font-size: 1rem; font-weight: 700; color: var(--cloud); }

.chain {
  display: grid;
  gap: 22px;
  margin: 44px 0 26px;
  padding: 0;
  list-style: none;
  counter-reset: link;
}
.link {
  --level: 1;
  counter-increment: link;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 20px 22px 24px;
  background: var(--white);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 26px;
  box-shadow: 6px 6px 0 var(--sh);
}
.link:nth-child(1) { --from: 1; --level: .95; }
.link:nth-child(2) { --from: .95; --level: .85; }
.link:nth-child(3) { --from: .85; --level: .5; }
.link:nth-child(4) { --from: .5; --level: .15; }
.link h3 { display: flex; align-items: center; gap: 12px; }
.link h3::before {
  content: counter(link);
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--lilac);
  font-size: 1.1rem;
  line-height: 1;
}
.link p { font-weight: 600; line-height: 1.5; color: var(--muted); }
.meter {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--head);
  font-size: .95rem;
  font-weight: 600;
}
.meter-track {
  flex: 1;
  height: 18px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--lilac-tint);
  overflow: hidden;
}
.meter-fill {
  width: calc(var(--level) * 100%);
  height: 100%;
  background: var(--green);
  border-right: 3px solid var(--ink);
}
.link:nth-child(4) .meter-fill { background: var(--pink); }
.sources { margin-top: 28px; }
.feeling .punch { margin-top: 56px; }
.sources .fold-body a { font-weight: 800; }
.link p strong { display: block; margin-top: 10px; color: var(--ink); font-weight: 800; }
.relief {
  margin-top: 28px;
  display: grid;
  gap: 14px;
  max-width: 44em;
  padding: 22px 22px 26px;
  background: var(--white);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 26px;
  box-shadow: 6px 6px 0 var(--green);
}
.relief .meter-fill { width: 100%; }
.relief-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.relief-list li {
  position: relative;
  padding-left: 42px;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.45;
}
.relief-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--green);
  border: 3px solid var(--ink);
  border-radius: 50%;
}
.relief-list li::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 6px;
  width: 6px;
  height: 11px;
  border: solid var(--ink);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.punch {
  font-size: clamp(2.1rem, 7vw, 4rem);
  font-weight: 700;
  line-height: 1.02;
  color: var(--yellow);
  text-wrap: balance;
}
.punch + .big-p { margin-top: 14px; color: var(--white); }

.film { margin-top: 36px; display: grid; gap: 14px; max-width: 640px; }
.film-title { font-size: clamp(1.4rem, 3.6vw, 1.75rem); font-weight: 600; line-height: 1.15; text-wrap: balance; }
.film-note { margin-top: -8px; margin-bottom: 4px; color: var(--muted); font-weight: 700; font-size: .98rem; }
.film-frame {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 28px;
  box-shadow: 8px 8px 0 var(--sh);
}
.film-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--ink); }
.film-play {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  padding: 0;
  place-items: center;
  background: var(--green);
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 6px 0 var(--ink);
  cursor: pointer;
  transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.js .film-play { display: grid; }
.film-play:active { transform: translateY(6px); box-shadow: 0 0 0 var(--ink); }
.film-play span {
  width: 0;
  height: 0;
  margin-left: 8px;
  border-style: solid;
  border-width: 18px 0 18px 30px;
  border-color: transparent transparent transparent var(--ink);
}
.film-frame.is-playing .film-play { display: none; }
.film-play { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.film-play:focus-visible { outline: 4px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 3px var(--white), 0 6px 0 var(--ink); }
.film-frame video:focus-visible { outline-offset: -7px; }

.fold summary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 20px;
  background: var(--white);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 0 5px 0 var(--sh);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.fold summary { text-wrap: balance; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after, .faq summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 3px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 3px 12px no-repeat,
    var(--lilac);
}
.fold[open] summary::after, .faq details[open] summary::after {
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 3px no-repeat,
    var(--lilac);
}
.on-dark .fold-body { --ring: var(--ink); }
.fold-body {
  margin-top: 18px;
  padding: 22px 24px;
  display: grid;
  gap: 14px;
  background: var(--cream-soft);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: 6px 6px 0 var(--sh);
  font-weight: 600;
  max-width: 44em;
}

/* arrival and pop-in motion (only when motion is welcome) */
@media (prefers-reduced-motion: no-preference) {
  h1 .w { animation: word-in .6s cubic-bezier(.2, 1.4, .4, 1) both; }
  h1 .w:nth-child(1) { animation-delay: .05s; }
  h1 .w:nth-child(2) { animation-delay: .13s; }
  h1 .w:nth-child(3) { animation-delay: .21s; }
  h1 .w:nth-child(4) { animation-delay: .29s; }
  h1 .w:nth-child(5) { animation-delay: .37s; }
  h1 .w:nth-child(6) { animation-delay: .45s; }
  h1 .w:nth-child(7) { animation-delay: .53s; }
  h1 .w:nth-child(8) { animation-delay: .61s; }
  h1 .w:nth-child(9) { animation-delay: .69s; }
  .lede { animation: rise .5s ease-out .78s both; }
  .hero .join { animation: rise .5s ease-out .85s both; }
  .hero .film { animation: rise .5s ease-out .95s both; }
  .demo-controls { animation: rise .5s ease-out .9s both; }
  .demo-stage { animation: phone-in .7s cubic-bezier(.2, 1.3, .4, 1) .45s both; }
  .reveal .link:not(.in) { opacity: 0; }
  .reveal .link.in { animation: rise .5s ease-out both; }
  .reveal .link:not(.in) .meter-fill { width: calc(var(--from, 1) * 100%); }
  .reveal .link .meter-fill { transition: width 1s cubic-bezier(.3, .8, .3, 1) .3s; }
  .reveal .relief:not(.in) { opacity: 0; }
  .reveal .relief.in { animation: rise .5s ease-out both; }
  .reveal .relief:not(.in) .meter-fill { width: 15%; }
  .reveal .relief .meter-fill { transition: width 1.4s cubic-bezier(.3, .8, .3, 1) .4s; }
}
@keyframes word-in {
  from { opacity: 0; transform: translateY(.45em) rotate(-4deg) scale(.8); }
  to { opacity: 1; transform: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes phone-in {
  from { opacity: 0; transform: translateY(60px) rotate(3deg); }
  to { opacity: 1; transform: none; }
}

/* ---------- 3. how it works ---------- */
.how { background: var(--cream-soft); padding-bottom: 0; }
.steps {
  margin-top: 40px;
  display: grid;
  gap: 32px;
  counter-reset: step;
}
.step {
  counter-increment: step;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}
.step-text { width: 100%; max-width: 440px; }
.step-text::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  background: var(--green);
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 5px 0 var(--ink);
  font-family: var(--head);
  font-size: 1.8rem;
  font-weight: 700;
  transform: rotate(-6deg);
}
.step-text p { margin-top: 10px; font-weight: 600; color: var(--muted); }
.step-text p strong, .stop-text p strong { display: block; margin-top: 8px; color: var(--ink); font-weight: 800; }
.diff-sub { margin-top: 20px; }
.trip-sub { margin-top: 18px; color: var(--muted); }
.step-2 .step-text::before { background: var(--pink); transform: rotate(4deg); }
.step-3 .step-text::before { background: var(--sky); transform: rotate(-3deg); }

/* ---------- 4. different ---------- */
.different { background: var(--yellow); }
.different h2 { max-width: 16em; }
.different h2 span { display: block; }
.line-muted { color: var(--muted); }
.compare {
  width: 100%;
  max-width: 980px;
  margin-top: 40px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--ink);
}
.compare th:first-child, .compare td:first-child { width: 42%; }
.compare th, .compare td {
  padding: 16px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.35;
}
.compare thead th {
  font-family: var(--head);
  font-size: 1.15rem;
  font-weight: 700;
  border-bottom: 3px solid var(--ink);
}
.compare thead th:first-child { background: var(--cloud); color: var(--ink); }
.compare thead th:last-child { background: var(--green); }
.compare td { border-top: 2px solid var(--ink); font-size: .98rem; }
.compare tbody tr:first-child td { border-top: 0; }
.compare td:first-child {
  color: var(--muted);
  font-weight: 700;
  background: var(--white);
  border-right: 3px solid var(--ink);
}
.compare td:last-child {
  position: relative;
  padding-left: 46px;
  background: var(--mint);
  font-weight: 800;
}
.compare td:last-child::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 16px;
  width: 24px;
  height: 24px;
  background: var(--green);
  border: 3px solid var(--ink);
  border-radius: 50%;
}
.compare td:last-child::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 21px;
  width: 6px;
  height: 11px;
  border: solid var(--ink);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

/* ---------- 5. the whole trip: a route with stops ---------- */
.trip { background: var(--white); }
.route {
  position: relative;
  margin-top: 56px;
  display: grid;
  gap: 28px;
  padding-left: 54px;
}
.stop:not(:last-child)::before {
  content: "";
  position: absolute;
  left: -39px;
  top: 19px;
  bottom: -55px;
  border-left: 5px dashed var(--ink);
}
.stop { position: relative; display: grid; gap: 24px; }
.stop-dot {
  position: absolute;
  left: -54px;
  top: 2px;
  width: 34px;
  height: 34px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 4px 0 var(--ink);
}
.stop-2 .stop-dot { background: var(--sky); }
.stop-3 .stop-dot { background: var(--pink); }
.stop-4 .stop-dot { background: var(--green); }
.stop-end { background: var(--lilac); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.stop-text { max-width: 30em; }
.stop-text h3 { margin-top: 12px; }
.stop-text p:last-child { margin-top: 10px; color: var(--muted); font-weight: 600; }
.stop-media { padding: 4px 12px 12px 4px; }
.pill {
  display: inline-block;
  padding: 5px 16px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  transform: rotate(-1.5deg);
}
.pill-lilac { background: var(--lilac); }
.pill-sky { background: var(--sky); }
.pill-pink { background: var(--pink); }
.pill-mint { background: var(--mint); }
.pill-cream { background: var(--cream); }

/* ---------- 6. made by ---------- */
.made { background: var(--lilac-tint); }
.made-grid { display: grid; gap: 32px; align-items: center; }
.made-icon {
  width: 120px;
  height: 120px;
  border: 3px solid var(--ink);
  border-radius: 32px;
  box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(-6deg);
}
.made .big-p { margin-top: 22px; max-width: 30em; }

/* ---------- 7. questions ---------- */
.questions { background: var(--cream-soft); }
.questions-grid { display: grid; gap: 32px; }
.faq { display: grid; gap: 16px; max-width: 820px; }
.faq details {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: 0 6px 0 var(--ink);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 12px 20px;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
  border-radius: 20px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline-offset: -8px; }
.faq details p { padding: 0 20px 20px; max-width: 38em; font-weight: 600; color: var(--muted); }
.faq details p a { color: var(--ink); font-weight: 800; display: inline-block; padding-block: 10px; margin-block: -10px; }

/* ---------- 8. last call ---------- */
.last { background: var(--yellow); }
.last-wrap { display: grid; justify-items: center; text-align: center; }
.last h2 { max-width: 15em; }
.last h2 span { display: block; }
.last .big-p { margin-top: 18px; }
.last .join { width: 100%; margin-top: 32px; text-align: left; }
.last .join-note { text-align: center; }
.last .link-x { justify-self: center; }

/* ---------- footer ---------- */
.foot {
  background: var(--plum);
  color: var(--white);
  padding: 56px 0 48px;
}
.foot-grid { display: grid; gap: 22px; }
.foot-brand p { margin-top: 6px; color: var(--cloud); font-weight: 700; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; }
.foot-copy { color: var(--cloud); font-weight: 700; }
.foot-small { max-width: 38em; color: var(--cloud); font-size: .95rem; }

/* confetti */
.confetti {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  pointer-events: none;
}
.confetti i {
  position: absolute;
  width: 10px;
  height: 16px;
  border: 2px solid var(--ink);
  border-radius: 3px;
}

/* ---------- reading pages (privacy, 404) ---------- */
.page { padding: 48px 0 96px; }
.prose {
  max-width: 760px;
  margin-inline: auto;
  padding: 28px 22px 32px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 32px;
  box-shadow: 8px 8px 0 var(--ink);
}
.prose h1 { font-size: clamp(2.6rem, 9vw, 4rem); }
.prose h2 { margin-top: 36px; font-size: clamp(1.7rem, 5vw, 2.3rem); }
.prose .updated { margin-top: 10px; color: var(--muted); font-weight: 700; }
.prose ul { margin-top: 14px; display: grid; gap: 12px; padding-left: 24px; list-style: disc; }
.prose li::marker { color: var(--green); }
.prose p { margin-top: 14px; }
.prose li, .prose p { font-weight: 600; }
.prose a { font-weight: 800; }
.lost { min-height: 70vh; display: grid; align-content: center; justify-items: start; gap: 24px; padding-block: 48px; }
.lost h1 { max-width: 10em; }

/* ---------- wider screens ---------- */
@media (max-width: 374px) {
  .last h2 { font-size: 1.9rem; }
  .top .btn-small:not([data-invite]) { font-size: .82rem; padding: 0 8px; white-space: nowrap; }
}
@media (max-width: 419px) {
  .top-row { gap: 8px; }
  .brand { gap: 8px; font-size: 1.05rem; }
  .brand img { width: 34px; height: 34px; border-radius: 10px; }
  .btn-small { padding: 0 10px; font-size: .9rem; }
}
@media (min-width: 420px) {
  .btn-small { padding: 0 20px; font-size: 1.02rem; }
}
@media (min-width: 420px) and (max-width: 479px) {
  .top .btn-small:not([data-invite]) { padding: 0 10px; font-size: .9rem; white-space: nowrap; }
}
@media (min-width: 520px) {
  .compare th, .compare td { padding: 18px 22px; }
  .compare td { font-size: 1.05rem; }
  .compare td:last-child { padding-left: 58px; }
  .compare td:last-child::before { left: 20px; top: 19px; }
  .compare td:last-child::after { left: 28px; top: 24px; }
  .compare thead th { font-size: 1.35rem; }
}
@media (min-width: 540px) {
  .join-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
  .join-row input[type="email"] { flex: 1 1 260px; min-width: 0; width: auto; }
  .join .btn { flex: 0 0 auto; width: auto; margin-bottom: 0; }
}
@media (min-width: 640px) {
  .places { gap: 14px; }
  .demo {
    grid-template-columns: auto auto;
    grid-template-areas: "controls stage" "note note";
    gap: 28px 32px;
    align-items: center;
    justify-content: center;
  }
  .demo-controls { grid-area: controls; width: 220px; order: 0; }
  .demo-stage { grid-area: stage; width: 270px; order: 0; }
  .demo-note { grid-area: note; order: 0; }
  .demo-prompt { text-align: left; }
  .places { grid-template-columns: 1fr; }
  .phone-hero { --pw: 262px; }
  .say { width: 300px; margin-left: -80px; }
}
@media (min-width: 840px) {
  .top-nav { display: flex; gap: 4px; }
}
@media (min-width: 760px) {
  .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  .link { padding: 24px 26px 28px; }
  .made-grid { grid-template-columns: auto 1fr; gap: 56px; }
  .made-icon { width: 180px; height: 180px; border-radius: 44px; box-shadow: 8px 8px 0 var(--ink); }
  .questions-grid { grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
  .questions h2 { position: sticky; top: 100px; }
  .prose { padding: 44px 48px 52px; }
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: end; }
  .step { height: 100%; justify-content: space-between; }
  .step-text { align-self: stretch; max-width: none; }
  .phone-step { width: min(100%, 290px); }
  .cut-a { max-height: calc(290px * 1.08); }
  .cut-b { max-height: calc(290px * 1.38); }
  .cut-c { max-height: calc(290px * 1.68); }
  .step { align-items: flex-start; }
  .step .phone { align-self: center; }

  .route { padding-left: 0; gap: 24px; }
  .stop:not(:last-child)::before { left: 50%; margin-left: -2px; top: 0; bottom: -24px; }
  .stop:first-child:not(:last-child)::before { top: 50%; }
  .stop:last-child::before { content: ""; position: absolute; left: 50%; margin-left: -2px; top: 0; bottom: 50%; border-left: 5px dashed var(--ink); }
  .stop {
    grid-template-columns: 1fr 56px 1fr;
    gap: 0;
    align-items: center;
    padding-block: 12px;
  }
  .stop-dot { position: relative; left: auto; top: auto; grid-column: 2; grid-row: 1; justify-self: center; z-index: 1; }
  .stop-text { grid-column: 1; grid-row: 1; padding-right: 40px; justify-self: end; }
  .stop-media { grid-column: 3; grid-row: 1; padding-left: 40px; display: flex; justify-content: flex-start; }
  .stop:nth-child(even) .stop-text { grid-column: 3; padding-right: 0; padding-left: 40px; justify-self: start; }
  .stop:nth-child(even) .stop-media { grid-column: 1; padding-left: 0; padding-right: 40px; justify-content: flex-end; }
  .stop-5 .stop-text { grid-column: 1; }
  .phone-stop { --pw: 260px; }
  .cut-d { max-height: calc(260px * 1.3); }

  .foot-grid {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand links" "small copy";
    align-items: start;
    gap: 28px 24px;
  }
  .foot-brand { grid-area: brand; }
  .foot-links { grid-area: links; justify-content: flex-end; }
  .foot-copy { grid-area: copy; text-align: right; }
  .foot-small { grid-area: small; }
}
@media (min-width: 1200px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 560px; gap: 48px; align-items: start; }
  .hero-copy { padding-top: 16px; }
  .hero h1 { font-size: 4.4rem; }
  .demo { grid-template-columns: 220px 270px; justify-content: end; }
  .phone-hero { --pw: 270px; }
}

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

.back-row { margin-top: 36px; }
.prose .btn { font-weight: 600; }
