/* ==========================================================================
   FreeMe.travel
   Design system in one place.

   Color:   white paper, black ink, ONE accent (FreeMe red) for every action.
            Other colors appear only inside the Me dot and the illustrations.
   Type:    Montserrat (headings), Open Sans (body), Barlow Condensed (the
            wordmark face, reused for prices so tickets feel like the logo).
   Corners: buttons, inputs and tags are pills. Cards are 20px. Art is round.
   Line:    2.5px black outline + a hard offset shadow, matching the cartoon
            outline of the illustrations.
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #000000;
  --paper: #ffffff;
  --text: #262626;
  --muted: #5c5c5c;
  --red: #c01010;
  --red-deep: #990b0b;
  --sky: #e6f4fb;
  --hair: #d9d9d9;

  --line: 2.5px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --r-card: 20px;
  --r-pill: 999px;

  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Open Sans", "Segoe UI", Arial, sans-serif;
  --font-ticket: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
  color: var(--ink);
  text-wrap: balance;
}
ul { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
.nowrap { white-space: nowrap; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  /* the side gutter also clears a phone's rounded corners and side bars */
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.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;
}

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-dark :focus-visible, .on-red :focus-visible { outline-color: #fff; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-pill);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- type scale ---------- */
.h2 {
  font-size: clamp(32px, 4.3vw, 56px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.h3 {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.lede {
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.55;
  max-width: 58ch;
  text-wrap: pretty;
}
.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  padding: 6px 14px;
  border: var(--line);
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink);
}
.fine { font-size: 14px; color: var(--muted); }

/* ---------- the Me dot ---------- */
.me { display: inline-block; width: 1em; height: 1em; flex: none; }
.me.is-pop { animation: me-pop 420ms cubic-bezier(.3, 1.5, .5, 1); }
@keyframes me-pop {
  0% { transform: scale(.82) rotate(-10deg); }
  100% { transform: scale(1) rotate(0); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px;
  font-family: var(--font-head); font-weight: 800; font-size: 17px; line-height: 1;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  color: #fff; background: var(--red);
  border: var(--line); border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}
.btn:hover { background: var(--red-deep); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px) scale(.99); box-shadow: 0 0 0 var(--ink); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: #f1f1f1; }
.btn--ghost {
  background: transparent; color: var(--ink); box-shadow: none; border-color: transparent;
  text-decoration: underline; text-underline-offset: 4px; padding: 0 12px;
}
.btn--ghost:hover { background: transparent; box-shadow: none; transform: none; color: var(--red); }
.btn--ghost:active { transform: scale(.98); box-shadow: none; }
.btn svg { width: 20px; height: 20px; }

/* ---------- announcement + header ---------- */
.bar {
  background: var(--ink); color: #fff; text-align: center;
  font-family: var(--font-head); font-weight: 600; font-size: 14.5px; line-height: 1.35;
  padding-block: 10px;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.bar strong { font-weight: 800; }

.head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--paper);
  border-bottom: 2.5px solid transparent;
  transition: border-color 160ms ease;
}
.head.is-stuck { border-bottom-color: var(--ink); }
/* on phones with a status bar over the page, keep that strip the page color */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 49; background: var(--paper); }
.head__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo { display: inline-flex; color: var(--ink); text-decoration: none; border-radius: 8px; }
.logo svg { height: 54px; width: auto; }
.nav { display: none; gap: 30px; font-family: var(--font-head); font-weight: 700; font-size: 15.5px; }
.nav a { text-decoration: none; color: var(--ink); padding: 8px 0; border-bottom: 2.5px solid transparent; }
.nav a:hover { border-bottom-color: var(--red); }
@media (min-width: 900px) { .nav { display: flex; } }

/* ---------- S01 hero ---------- */
.hero { padding: clamp(26px, 3.6vw, 52px) 0 clamp(48px, 6vw, 84px); }
.hero__grid { display: grid; gap: 44px; align-items: center; }
.hero__copy { min-width: 0; }
.hero h1 {
  margin-top: 20px;
  font-size: clamp(42px, 6.3vw, 86px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
/* The Me sits centred on the capital letters, as it does in the logo. The negative
   margins stop the big circle from pushing the lines apart; vertical-align is measured
   from that margin box, so 0.045em puts the circle's centre on the centre of the caps
   (checked by build/test-me-position.js: offset 0 at desktop, tablet and phone). */
.hero h1 .me {
  width: 1.22em; height: 1.22em;
  margin: -0.3em 0.02em -0.3em 0.05em;
  vertical-align: 0.045em;
}
.hero .lede { margin-top: 22px; }
.hero .signup { margin-top: 30px; }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); gap: 56px; }
}

/* the fanned stack of sample alerts */
.stack { position: relative; display: grid; gap: 16px; }
.stack .tix { width: 100%; max-width: 440px; }
.stack__path { display: none; }
@media (min-width: 1024px) {
  .stack { display: block; height: 470px; }
  .stack .tix { position: absolute; width: 452px; max-width: none; }
  .stack .tix:nth-of-type(1) { top: 8px; right: 0; transform: rotate(4deg); z-index: 1; }
  .stack .tix:nth-of-type(2) { top: 168px; right: 44px; transform: rotate(-4deg); z-index: 2; }
  .stack .tix:nth-of-type(3) { top: 326px; right: 4px; transform: rotate(2.5deg); z-index: 3; }
  .stack__path { display: block; position: absolute; top: -52px; right: 372px; width: 190px; height: 124px; color: var(--ink); }
  .stack .tix { transition: opacity 480ms ease, translate 620ms cubic-bezier(.2, .9, .3, 1.15), rotate 620ms cubic-bezier(.2, .9, .3, 1.15); }
  .stack .tix:nth-of-type(2) { transition-delay: 140ms; }
  .stack .tix:nth-of-type(3) { transition-delay: 280ms; }
  .js .stack:not(.is-dealt) .tix { opacity: 0; translate: 90px -40px; rotate: 14deg; }
  .stack.is-dealt .tix:hover { translate: -4px -6px; z-index: 5; transition-delay: 0ms; transition-duration: 180ms; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .stack { transform: scale(.8); transform-origin: right center; }
}

/* ---------- ticket (horizontal sample alert) ---------- */
.tix {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  background: var(--paper); border: var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow); padding: 14px 0 14px 14px;
}
.tix__art { width: 76px; height: 76px; }
.tix__tag {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 12px;
  border: 2px solid var(--ink); border-radius: var(--r-pill); padding: 1px 9px; color: var(--ink);
}
.tix__route { margin-top: 5px; font-family: var(--font-head); font-weight: 800; font-size: 25px; line-height: 1.1; color: var(--ink); letter-spacing: -0.025em; }
.tix__meta { font-size: 14px; color: var(--muted); line-height: 1.35; margin-top: 3px; white-space: nowrap; }
.tix__stub {
  align-self: stretch; display: grid; align-content: center; justify-items: center;
  padding: 0 18px 0 16px; border-left: 2.5px dashed var(--ink); min-width: 104px; text-align: center;
}
.price { font-family: var(--font-ticket); font-weight: 700; font-size: 44px; line-height: .95; color: var(--red); letter-spacing: -0.01em; }
.was { font-size: 13.5px; color: var(--muted); line-height: 1.3; margin-top: 4px; }
.was s { text-decoration-thickness: 2px; }
@media (max-width: 420px) {
  .tix__meta { white-space: normal; }
  .tix { grid-template-columns: auto minmax(0, 1fr); padding: 12px; }
  .tix__art { width: 64px; height: 64px; }
  .tix__stub { grid-column: 1 / -1; border-left: 0; border-top: 2.5px dashed var(--ink); padding: 10px 0 0; grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 12px; }
  .price { font-size: 38px; }
}

/* ---------- sign up form ---------- */
.signup {
  background: var(--paper); border: var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow); padding: 20px; max-width: 760px; color: var(--text);
}
.signup__fields { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; position: relative; }
.field label { font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--ink); }
.field input {
  width: 100%; min-height: 54px; padding: 0 18px;
  background: var(--paper); border: var(--line); border-radius: var(--r-pill);
  font-size: 17px; color: var(--ink);
}
.field input::placeholder { color: #6f6f6f; }
.field input:focus { outline: 3px solid var(--ink); outline-offset: 2px; }
.field input[aria-invalid="true"] { border-color: var(--red); background: #fff5f5; }
.field__err { min-height: 0; font-size: 14px; font-weight: 600; color: var(--red-deep); }
.field__err:empty { display: none; }
.signup__go { align-self: end; }
.signup__go .btn { width: 100%; }
.signup__note { margin-top: 14px; font-size: 14.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.signup__note span { display: inline-flex; align-items: center; gap: 6px; }
.signup__note svg { width: 17px; height: 17px; color: var(--ink); flex: none; }
.signup__status { margin-top: 10px; font-size: 14.5px; font-weight: 600; color: var(--red-deep); }
.signup__status:empty { display: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
@media (min-width: 700px) {
  .signup--row .signup__fields { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto; align-items: start; }
  .signup--row .signup__go { align-self: start; padding-top: 29px; }
  .signup--row .signup__go .btn { width: auto; }
}

/* airport suggestions */
.combo__list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--paper); border: var(--line); border-radius: 16px; box-shadow: var(--shadow-sm);
  max-height: 290px; overflow: auto; padding: 6px;
}
.combo__list[hidden] { display: none; }
.combo__opt { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 16px; color: var(--ink); line-height: 1.3; }
.combo__opt b { font-family: var(--font-head); font-weight: 800; }
.combo__opt small { font-size: 13px; color: var(--muted); display: block; }
.combo__opt[aria-selected="true"], .combo__opt:hover { background: var(--sky); }

/* after the form: plan choice and confirmation */
.signup__step h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.signup__step p { margin-top: 8px; }
.signup__choices { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 8px; margin-top: 18px; }
.signup__done { display: flex; gap: 16px; align-items: center; }
.signup__done .me { width: 72px; height: 72px; }

.signup__share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; padding-top: 16px; border-top: 2.5px dashed var(--ink); }
.signup__share p { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--ink); }
.signup__shared { font-size: 14.5px; font-weight: 600; color: var(--ink); flex-basis: 100%; }
.signup__shared:empty { display: none; }

/* ---------- S02 trust strip ---------- */
.facts { border-block: var(--line); }
.facts ul { display: grid; grid-template-columns: 1fr 1fr; }
.facts li {
  display: flex; align-items: center; gap: 12px; padding: 18px 14px;
  font-family: var(--font-head); font-weight: 700; font-size: 15.5px; line-height: 1.25; color: var(--ink);
  text-wrap: balance;
}
.facts li:nth-child(odd) { border-right: var(--line); }
.facts li:nth-child(-n+2) { border-bottom: var(--line); }
.facts svg { width: 26px; height: 26px; flex: none; color: var(--red); }
@media (min-width: 900px) {
  .facts ul { grid-template-columns: repeat(4, 1fr); }
  .facts li { border-right: var(--line); border-bottom: 0 !important; padding: 22px 22px; justify-content: center; }
  .facts li:last-child { border-right: 0; }
  .facts li:first-child { border-left: 0; }
}

/* ---------- sections ---------- */
.sec { padding-block: var(--section); }
.sec--sky { background: var(--sky); border-block: var(--line); }
.sec__head { display: grid; gap: 16px; margin-bottom: clamp(32px, 4vw, 52px); }

/* ---------- S03 sample alerts ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 46px; padding: 0 20px; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: 15.5px; color: var(--ink);
  background: var(--paper); border: var(--line); border-radius: var(--r-pill);
  transition: transform 120ms ease, background-color 120ms ease;
}
.chip:hover { background: #f1f1f1; }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.alerts { display: grid; gap: 26px; margin-top: 34px; }
@media (min-width: 760px) { .alerts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.alert {
  background: var(--paper); border: var(--line); border-radius: var(--r-card); box-shadow: var(--shadow);
  display: grid; grid-template-rows: auto 1fr auto; overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.alert:hover { transform: translate(-2px, -3px); box-shadow: 8px 9px 0 var(--ink); }
.alert__top { display: flex; align-items: center; gap: 16px; padding: 20px 20px 0; }
.alert__art { width: 124px; height: 124px; flex: none; }
.alert__body { padding: 14px 20px 18px; }
.alert__route { font-family: var(--font-head); font-weight: 800; font-size: 23px; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
.alert__meta { margin-top: 6px; font-size: 15px; color: var(--muted); }
.alert__foot { display: flex; align-items: baseline; gap: 14px; padding: 14px 20px 16px; border-top: 2.5px dashed var(--ink); }
.alert__foot .price { font-size: 52px; }
.alert__foot .was { margin: 0; font-size: 14.5px; }
.alerts.is-swap .alert { animation: swap 360ms ease backwards; }
.alerts.is-swap .alert:nth-child(2) { animation-delay: 70ms; }
.alerts.is-swap .alert:nth-child(3) { animation-delay: 140ms; }
@keyframes swap { 0% { opacity: 0; transform: translateY(14px) rotate(-1.5deg); } 100% { opacity: 1; transform: none; } }
.alerts__fine { margin-top: 26px; max-width: 70ch; }

/* ---------- S04 how it works: three stops on one flight path ---------- */
.route { position: relative; display: grid; gap: 44px; }
.route__line, .route__plane { display: none; }
.stop { position: relative; display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 6px 18px; align-items: start; align-content: start; }
.stop__num {
  grid-row: span 3; width: 62px; height: 62px; border-radius: 50%; border: var(--line);
  display: grid; place-items: center; background: var(--ink); color: #fff;
  font-family: var(--font-ticket); font-weight: 700; font-size: 34px; line-height: 1;
}
.stop p { max-width: 40ch; }
.stop__demo { margin-top: 16px; }
.route::before { content: ""; position: absolute; left: 30px; top: 30px; bottom: 60px; border-left: 2.5px dashed var(--ink); }
@media (min-width: 900px) {
  .route { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-top: 8px; }
  .route::before { display: none; }
  .route__line { display: block; position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 210px; color: var(--ink); pointer-events: none; }
  .route__plane { display: block; position: absolute; right: -30px; top: -12px; width: 44px; height: 44px; color: var(--ink); }
  .route__plane svg { width: 100%; height: 100%; }
  .stop { grid-template-columns: 1fr; gap: 10px; }
  .stop__num { grid-row: auto; margin-bottom: 8px; }
  .stop:nth-child(3) { margin-top: 96px; }
  .stop:nth-child(4) { margin-top: 26px; }
}

/* little product vignettes used in the three stops */
.demo {
  border: var(--line); border-radius: var(--r-card); background: var(--paper); box-shadow: var(--shadow-sm);
  padding: 16px; max-width: 330px; font-size: 14.5px; color: var(--ink);
}
.demo__label { font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--muted); }
.demo__input { margin-top: 6px; display: flex; align-items: center; gap: 8px; border: 2px solid var(--ink); border-radius: var(--r-pill); padding: 8px 14px; font-weight: 600; }
.demo__input svg { width: 18px; height: 18px; color: var(--red); flex: none; }
.demo__caret { display: inline-block; width: 2px; height: 18px; background: var(--ink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo__chart { display: block; width: 100%; height: auto; margin-top: 4px; color: var(--ink); }
.demo__mail { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.demo__mail .me { width: 44px; height: 44px; }
.demo__mail b { font-family: var(--font-head); font-weight: 800; display: block; line-height: 1.25; }
.demo__mail span { color: var(--muted); font-size: 13.5px; }
.demo__cta { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--ink); border-radius: var(--r-pill); padding: 6px 14px; font-family: var(--font-head); font-weight: 700; font-size: 13.5px; }
.demo__cta svg { width: 16px; height: 16px; }

/* ---------- S05 guarantee ---------- */
.promise { background: var(--red); color: #fff; border-block: var(--line); padding-block: clamp(56px, 7vw, 96px); }
.promise__grid { display: grid; gap: 34px; align-items: center; }
.promise h2 { color: #fff; }
.promise .lede { color: #fff; margin-top: 18px; }
.promise .btn { margin-top: 28px; }
.stamp {
  width: clamp(190px, 24vw, 290px); aspect-ratio: 1; border-radius: 50%;
  background: var(--paper); color: var(--ink); border: var(--line); box-shadow: 7px 7px 0 var(--ink);
  display: grid; place-content: center; text-align: center; transform: rotate(-8deg);
}
.stamp b { font-family: var(--font-ticket); font-weight: 700; font-size: clamp(92px, 12vw, 150px); line-height: .8; letter-spacing: -0.03em; color: var(--red); }
.stamp span { font-family: var(--font-head); font-weight: 800; font-size: clamp(13px, 1.4vw, 17px); line-height: 1.2; margin-top: 12px; }
@media (min-width: 860px) { .promise__grid { grid-template-columns: auto minmax(0, 1fr); gap: 72px; } }

/* ---------- S06 comparison ---------- */
.vs { width: 100%; border-collapse: separate; border-spacing: 0; border: var(--line); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); background: var(--paper); }
.vs th, .vs td { padding: 18px 22px; text-align: left; vertical-align: top; border-bottom: 2px solid var(--ink); font-size: 16.5px; line-height: 1.45; }
.vs tr:last-child th, .vs tr:last-child td { border-bottom: 0; }
.vs thead th { font-family: var(--font-head); font-weight: 800; font-size: 17px; color: var(--ink); background: #f3f3f3; }
.vs thead th:last-child { background: var(--red); color: #fff; }
.vs tbody th { font-family: var(--font-head); font-weight: 800; color: var(--ink); width: 24%; }
.vs td { border-left: 2px solid var(--ink); width: 38%; }
.vs td:last-child { background: #fff6f6; color: var(--ink); font-weight: 600; }
.vs .ic { display: inline-flex; gap: 10px; align-items: flex-start; }
.vs .ic svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.vs td:last-child svg { color: var(--red); }
.vs td:not(:last-child) svg { color: #777; }
@media (max-width: 719px) {
  .vs thead { display: none; }
  .vs, .vs tbody, .vs tr, .vs th, .vs td { display: block; width: 100% !important; }
  .vs tbody th { background: var(--ink); color: #fff; border-bottom: 0; padding: 12px 18px; }
  .vs td { border-left: 0; padding: 14px 18px; }
  .vs td::before { content: attr(data-col); display: block; font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--muted); margin-bottom: 2px; }
  .vs tr:last-child td:not(:last-child) { border-bottom: 2px solid var(--ink); }
}

/* ---------- S07 pricing ---------- */
.plans { display: grid; gap: 28px; align-items: end; }
.plan { background: var(--paper); border: var(--line); border-radius: var(--r-card); padding: 28px; }
.plan--main { box-shadow: var(--shadow); padding: 0; overflow: hidden; }
.plan__flag { background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 14.5px; padding: 10px 28px; }
.plan__in { padding: 26px 28px 30px; }
.plan__name { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--ink); letter-spacing: -0.02em; }
.plan__price { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; color: var(--ink); }
.plan__price b { font-family: var(--font-ticket); font-weight: 700; font-size: 84px; line-height: .9; letter-spacing: -0.02em; }
.plan--main .plan__price b { color: var(--red); font-size: 108px; }
.plan__price span { font-family: var(--font-head); font-weight: 700; font-size: 16px; line-height: 1.3; }
.plan__for { margin-top: 12px; }
.plan ul { display: grid; gap: 12px; margin-top: 22px; }
.plan li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; line-height: 1.45; }
.plan li svg { width: 22px; height: 22px; margin-top: 2px; color: var(--red); }
.plan .btn { margin-top: 26px; }
.plan__note { margin-top: 14px; }
@media (min-width: 860px) { .plans { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 36px; } }

/* ---------- S08 the changing Me ---------- */
.story { display: grid; gap: 40px; align-items: center; }
.wall { position: relative; width: min(100%, 470px); aspect-ratio: 1 / .9; margin-inline: auto; }
.wall button { position: absolute; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; transition: transform 200ms cubic-bezier(.3, 1.5, .5, 1); line-height: 0; }
.wall button:hover { transform: scale(1.07) rotate(-5deg); }
.wall button:active { transform: scale(.95); }
.wall .me { width: 100%; height: 100%; }
.wall button:nth-child(1) { width: 40%; left: 28%; top: 24%; }
.wall button:nth-child(2) { width: 25%; left: 2%; top: 6%; }
.wall button:nth-child(3) { width: 21%; left: 70%; top: 2%; }
.wall button:nth-child(4) { width: 28%; left: 70%; top: 34%; }
.wall button:nth-child(5) { width: 23%; left: 4%; top: 46%; }
.wall button:nth-child(6) { width: 20%; left: 32%; top: 0; }
.wall button:nth-child(7) { width: 24%; left: 22%; top: 72%; }
.wall button:nth-child(8) { width: 19%; left: 56%; top: 74%; }
.story .lede { margin-top: 18px; }
.story .h2 { margin-top: 16px; }
.story__hint { margin-top: 18px; font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--ink); }
@media (min-width: 900px) { .story { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; } }

/* the logo band: every look of the logo drifting past, as on the 1998 plan cover */
.sec--story { padding-top: 0; }
.band { overflow: hidden; border-bottom: var(--line); padding: 20px 0; margin-bottom: var(--section); background: var(--paper); }
.band__track { display: flex; align-items: center; width: max-content; gap: 60px; padding-right: 60px; animation: band 52s linear infinite; }
.band__logo { height: 46px; width: auto; flex: none; color: var(--ink); }
.band__logo:nth-child(odd) { rotate: -2deg; }
.band__logo:nth-child(even) { rotate: 2deg; }
.band:hover .band__track { animation-play-state: paused; }
@keyframes band { to { transform: translateX(-50%); } }
@media (min-width: 900px) { .band { padding: 26px 0; } .band__logo { height: 60px; } .band__track { gap: 84px; padding-right: 84px; } }

/* ---------- S09 FAQ ---------- */
.faq { display: grid; gap: 34px; }
.faq__list { display: grid; gap: 14px; }
.faq details { border: var(--line); border-radius: var(--r-card); background: var(--paper); transition: box-shadow 160ms ease; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; font-family: var(--font-head); font-weight: 800; font-size: 18px; line-height: 1.3; color: var(--ink);
  border-radius: var(--r-card);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; transition: transform 200ms ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq summary:active { transform: scale(.995); }
.faq details p { padding: 0 22px 20px; max-width: 68ch; }
@media (min-width: 900px) {
  .faq { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
  .faq__head { position: sticky; top: 120px; }
}

/* ---------- S10 final call ---------- */
.last { background: var(--ink); color: #fff; padding-block: var(--section); position: relative; overflow: hidden; }
.last__in { position: relative; display: grid; gap: 30px; justify-items: center; text-align: center; }
.last__in > h2 { color: #fff; font-size: clamp(44px, 7vw, 96px); font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.last__in > h2 .me { width: 1.22em; height: 1.22em; margin: -0.3em 0.02em -0.3em 0.05em; vertical-align: 0.045em; }
.last .lede { color: #fff; }
.last .signup { text-align: left; width: 100%; box-shadow: 5px 5px 0 var(--red); }
.last__dot { display: none; position: absolute; border-radius: 50%; border: 2.5px solid #fff; }
@media (min-width: 1100px) { .last__dot { display: block; } }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #fff; padding: 0 0 46px; }
.foot__in { border-top: 2px solid #3a3a3a; padding-top: 38px; display: grid; gap: 26px; }
.foot .logo { color: #fff; }
.foot .logo svg { height: 46px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 26px; font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.foot nav a { text-decoration: none; color: #fff; padding: 11px 0; display: inline-flex; align-items: center; min-height: 44px; }
.foot nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot p { font-size: 14px; color: #c9c9c9; max-width: 78ch; }
@media (min-width: 860px) { .foot__top { display: flex; justify-content: space-between; align-items: center; gap: 30px; } }
.foot__top { display: grid; gap: 20px; }

/* ---------- sticky phone call to action ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
  background: var(--paper); border-top: var(--line); transform: translateY(110%); transition: transform 220ms ease;
}
.dock.is-on { transform: none; }
.dock .btn { width: 100%; }
@media (min-width: 900px) { .dock { display: none; } }

/* ---------- sign up dialog ---------- */
.dlg { border: var(--line); border-radius: var(--r-card); padding: 0; width: min(520px, calc(100vw - 32px)); box-shadow: 8px 8px 0 var(--ink); color: var(--text); background: var(--paper); overflow: visible; }
.dlg::backdrop { background: rgba(0, 0, 0, .62); }
.dlg__in { padding: 26px; }
.dlg__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.dlg__top h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.dlg__x { width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: var(--paper); border: var(--line); border-radius: 50%; cursor: pointer; }
.dlg__x:hover { background: #f1f1f1; }
.dlg__x:active { transform: scale(.94); }
.dlg__x svg { width: 20px; height: 20px; }
.dlg .signup { border: 0; box-shadow: none; padding: 0; }

/* ---------- preview pill (only while the form is not connected) ---------- */
.demo-pill {
  position: fixed; left: calc(14px + env(safe-area-inset-left, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 70; max-width: min(360px, calc(100vw - 28px));
  background: #fff8d6; color: var(--ink); border: 2px solid var(--ink); border-radius: 14px; padding: 8px 14px;
  font-size: 13px; line-height: 1.35; font-weight: 600;
}
@media (max-width: 899px) { .demo-pill { left: calc(8px + env(safe-area-inset-left, 0px)); bottom: calc(8px + env(safe-area-inset-bottom, 0px)); font-size: 11.5px; padding: 5px 10px; border-radius: 10px; }
  .dock.is-on ~ .demo-pill { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- legal pages ---------- */
.doc { padding-block: clamp(40px, 6vw, 80px); }
.doc__in { max-width: 760px; }
.doc h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 900; letter-spacing: -0.035em; line-height: 1.05; }
.doc h2 { font-size: 22px; font-weight: 800; margin-top: 36px; letter-spacing: -0.015em; }
.doc p, .doc li { margin-top: 12px; }
.doc ul { list-style: disc; padding-left: 22px; }
.doc__note { margin-top: 18px; border: var(--line); border-radius: var(--r-card); padding: 14px 18px; background: var(--sky); font-size: 15.5px; }

/* ---------- page not found ---------- */
.lost { padding-block: clamp(48px, 8vw, 110px); }
.lost__in { display: grid; gap: 22px; justify-items: start; }
.lost__art { width: clamp(150px, 22vw, 220px); height: auto; }
.lost h1 { font-size: clamp(38px, 6vw, 72px); font-weight: 900; letter-spacing: -0.04em; line-height: 1.02; }

/* ---------- gentle reveal on scroll ----------
   Sections rise into place as they arrive. They are never hidden, so the page is
   complete even if the scroll watcher never runs. */
.js .reveal { transform: translateY(24px); transition: transform 620ms cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { transform: none; }
  .js .stack:not(.is-dealt) .tix { opacity: 1; translate: none; rotate: none; }
}

/* Legal drafts: placeholders and attorney notes (remove once the pages are final) */
.doc .fill { background: #fff3a8; color: inherit; padding: 0 .2em; border-radius: 3px; }
.doc__review { margin-top: 18px; border: 2px dashed currentColor; border-radius: var(--r-card); padding: 14px 18px 18px; font-size: 15.5px; }
.doc__review h2 { margin-top: 0; font-size: 17px; }
.doc__review li { margin-top: 8px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15.5px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border: var(--line); }
.doc ol { padding-left: 22px; }


/* ---------- 2026-11-14: hero call to action, trust row, shared form ---------- */
.btn--lg { min-height: 62px; padding: 0 32px; font-size: 19px; }
.cta { margin-top: 30px; max-width: 620px; }
.cta__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.cta__price { font-family: var(--font-head); font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--ink); }
.cta__price b { font-family: var(--font-ticket); font-size: 34px; line-height: 1; color: var(--red); letter-spacing: -0.01em; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 22px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: var(--line); border-radius: var(--r-pill); background: var(--paper); font-size: 15px; color: var(--ink); line-height: 1.2; }
.trust li:first-child { background: var(--ink); color: #fff; }
.trust li:first-child svg { color: #fff; }
.trust svg { width: 20px; height: 20px; flex: none; color: var(--red); }
.cta__alt { margin-top: 18px; font-size: 15.5px; color: var(--muted); }
.cta__alt a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cta--center { margin-inline: auto; text-align: center; }
.cta--center .cta__row, .cta--center .trust { justify-content: center; }
.on-dark .cta__price, .on-dark .cta__alt { color: #fff; }
.on-dark .cta__alt a { color: #fff; }
.on-dark .cta__price b { color: #fff; }
.on-dark .trust li { color: var(--ink); }
.on-dark .trust li:first-child { background: var(--red); border-color: #fff; color: #fff; }
.promise__fine { margin-top: 12px; color: inherit; opacity: .92; }
.promise__fine a { color: inherit; text-decoration: underline; }

.signup__fields--full { grid-template-columns: 1fr 1fr; }
.field--wide { grid-column: 1 / -1; }
.field select {
  width: 100%; min-height: 54px; padding: 0 16px; background: var(--paper); border: var(--line);
  border-radius: var(--r-pill); font-size: 17px; color: var(--ink); appearance: auto;
}
.field select:focus { outline: 3px solid var(--ink); outline-offset: 2px; }
.field select[aria-invalid="true"] { border-color: var(--red); background: #fff5f5; }
.check { display: flex !important; gap: 12px; align-items: flex-start; font-family: var(--font-body) !important; font-weight: 600 !important; font-size: 15.5px !important; cursor: pointer; }
.check input { width: 22px; height: 22px; min-height: 0; margin-top: 1px; flex: none; accent-color: var(--red); }
.signup__legal { margin-top: 10px; }
.signup__legal a { color: var(--ink); text-decoration: underline; }
@media (max-width: 520px) { .signup__fields--full { grid-template-columns: 1fr; } }

/* pricing, three plans */
.plan__when { font-family: var(--font-head); font-weight: 700; font-size: 13.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.plan__later { margin-top: 26px; font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--muted); border-top: 2.5px dashed var(--hair); padding-top: 14px; }
.plans__alt { margin-top: 30px; text-align: center; font-size: 16px; color: var(--muted); }
.plans__alt a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 980px) {
  .plans--3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr) minmax(0, 1fr); gap: 26px; align-items: center; }
  .plans--3 .plan:not(.plan--main) .plan__price b { font-size: 72px; }
}
.signup__note[hidden], .signup [data-note-drawing][hidden] { display: none !important; }
.plans--3 .plan:not(.plan--main) { display: flex; flex-direction: column; }
.plans--3 .plan:not(.plan--main) .plan__later { margin-top: auto; }
.plans--3 .plan:not(.plan--main) ul { margin-bottom: 26px; }
@media (min-width: 980px) { .plans--3 { align-items: stretch; } .plans--3 .plan:not(.plan--main) { margin-block: 40px; } }
@media (max-width: 560px) { .cta .btn--lg { width: 100%; padding: 0 18px; } }

/* Hero CTA, Rick's layout 2026-11-14: full-width button, two equal badges, centred drawing line */
.cta--hero { max-width: 792px; }
.btn--hero { width: 100%; min-height: 78px; padding: 12px 28px; font-size: 22px; line-height: 1.2; white-space: normal; text-align: center; }
.trust--hero { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 28px; }
.trust--hero li { justify-content: center; min-height: 50px; padding: 8px 16px; font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.trust--hero svg { width: 24px; height: 24px; }
.cta--hero .cta__alt { margin-top: 30px; text-align: center; }
@media (max-width: 1100px) { .btn--hero { font-size: 20px; } .trust--hero li { font-size: 14px; } }
@media (max-width: 560px) {
  .btn--hero { font-size: 19px; min-height: 64px; padding: 12px 18px; }
  .trust--hero { grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }
}

