/* My NY Trip — brand: "Subway Map". Light, high-contrast, friendly for every age.
   White paper, subway red (main), subway green (accent), black type.
   NYC vernacular: subway-line bullets for sequences, black signage for labels.
   The book itself keeps each theme's own look (the 16-bit theme lives in /demo/, /play/). */

:root {
  --paper: #ffffff;
  --paper-2: #f5f5f2;          /* quiet band, warm-neutral */
  --ink: #141414;
  --muted: #545454;
  --line: #e2e2dd;
  --red: #ee352e;              /* brand red: big shapes, bullets */
  --red-strong: #d0281f;       /* buttons + small text: AA contrast on white */
  --green: #00933c;            /* brand green */
  --green-strong: #007a32;     /* small text on white */
  --focus: #1f6feb;

  --display: "Bricolage Grotesque", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --text: "Figtree", "Avenir Next", "Helvetica Neue", Arial, system-ui, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--red-strong); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Brand marks -------------------------------------------------------- */

/* Subway-line bullet: a coloured circle with a letter or number */
.bullet {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.9em;
  height: 1.9em;
  border-radius: 50%;
  font: 800 1em/1 var(--display);
  color: #fff;
  background: var(--red);
}
.bullet--green { background: var(--green); }
.bullet--ink { background: var(--ink); }

/* Black station sign used for section labels */
.kicker {
  display: inline-block;
  margin: 0 0 18px;
  padding: 7px 12px 6px;
  font: 700 13px/1 var(--text);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink);
  border-radius: 4px;
}

/* ---------- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 24px;
  font: 700 17px/1 var(--text);
  color: #fff;
  background: var(--red-strong);
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: #b8221a; }
.btn:active { transform: translateY(1px); }
.btn--ghost { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.btn--ghost:hover { background: var(--paper-2); }
.btn--small { min-height: 42px; padding: 10px 18px; font-size: 15px; white-space: nowrap; }
.btn--wide { width: 100%; }
.btn__arrow { width: 8px; height: 14px; fill: currentColor; }

/* ---------- Header ------------------------------------------------------------------ */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--gutter);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 21px/1 var(--display);
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.logo__img { display: block; height: 38px; width: auto; }
@media (max-width: 400px) { .logo__img { height: 32px; } }
.top__nav { display: flex; align-items: center; gap: 24px; }
.top__nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.top__nav a:not(.btn):hover { color: var(--red-strong); }
@media (max-width: 760px) { .top__nav a:not(.btn) { display: none; } }
@media (max-width: 400px) { .logo { font-size: 18px; } .btn--small { padding: 10px 14px; font-size: 14px; } }

/* ---------- Sections ------------------------------------------------------------------ */

.section, .hero, .foot {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 104px) var(--gutter);
}
.section--alt {
  max-width: none;
  padding-left: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  padding-right: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  background: var(--paper-2);
}

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.06; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 68px); }
h1 em { font-style: normal; box-shadow: inset 0 -.32em 0 rgba(238,53,46,.9); padding: 0 .05em; }
h2 { font-size: clamp(32px, 4.2vw, 48px); margin-bottom: clamp(28px, 4vw, 44px); max-width: 18em; }
h3 { font-size: 24px; letter-spacing: -.005em; }
p { color: var(--muted); }
b, strong { color: var(--ink); }

/* ---------- Hero ----------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  padding-top: clamp(36px, 6vw, 80px);
}
.lede { font-size: clamp(19px, 1.7vw, 22px); margin: 24px 0 32px; max-width: 32em; color: #3c3c3c; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; }
.hero__form input {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 54px;
  padding: 14px 20px;
  font: 18px var(--text);
  color: var(--ink);
  background: var(--paper);
  border: 2px solid #bdbdb6;
  border-radius: 999px;
  outline: none;
}
.hero__form input:focus { border-color: var(--ink); }
.hero__form .btn { flex: 0 0 auto; }
.hero__form .waitlist__msg { flex-basis: 100%; margin: 4px 0 0 !important; }
.hero__form .waitlist__msg:empty { display: none; }
.hero__note { margin: 22px 0 0; font-size: 16px; }
.hero__note strong { color: var(--green-strong); }

.hero__device { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ipad {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 820 / 1180;
  padding: 16px;
  background: #1b1d22;
  border-radius: 34px;
  box-shadow: 0 0 0 1px #3a3d44, 0 30px 60px rgba(20,20,20,.22), 0 0 0 10px var(--paper-2);
  box-sizing: content-box;
}
.ipad__screen { display: block; width: 100%; height: 100%; border: 0; border-radius: 14px; background: #071629; }
.ipad.phone-frame { width: min(100%, 320px); aspect-ratio: 393 / 852; padding: 12px; border-radius: 48px; }
.phone-frame .ipad__screen { border-radius: 37px; }
.device-hint { margin: 0; max-width: 360px; font-size: 15px; text-align: center; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .ipad.phone-frame { width: min(100% - 40px, 310px); }
}
@media (max-width: 520px) { .btn--hide-sm { display: none; } }

/* ---------- Pages strip ---------------------------------------------------------------- */

.strip { padding: 8px 0 34px; background: linear-gradient(var(--paper) 50%, var(--paper-2) 50%); }
.strip__track {
  display: flex;
  gap: 18px;
  padding: 0 var(--gutter) 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.strip__track::-webkit-scrollbar { display: none; }
.strip__track img {
  flex: none;
  width: clamp(150px, 17vw, 200px);
  aspect-ratio: 820 / 1180;
  object-fit: cover;
  scroll-snap-align: start;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(20,20,20,.16);
}

/* ---------- Steps (a real sequence: subway bullets) ---------------------------------------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.step { display: flex; flex-direction: column; gap: 12px; }
.step__num { font-size: 22px; }
.step:nth-child(2) .step__num { background: var(--green); }
.step:nth-child(3) .step__num { background: var(--ink); }
.step p { margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Features ----------------------------------------------------------------------- */

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.feature { display: flex; flex-direction: column; gap: 10px; }
.feature__shot {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 62%;
  margin-bottom: 10px;
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(20,20,20,.14);
}
.feature p { margin: 0; }
.perks { list-style: none; margin: 52px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 40px; }
.perks li { position: relative; padding-left: 36px; color: var(--muted); }
.perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6 9.6 3.6' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (max-width: 860px) { .features, .perks { grid-template-columns: 1fr; } }

/* ---------- Themes ---------------------------------------------------------------------------- */

.themes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.theme { margin: 0; min-width: 0; }
.theme img, .theme__soon { width: 100%; aspect-ratio: 820 / 1180; object-fit: cover; border-radius: 12px; }
.theme img { box-shadow: 0 10px 26px rgba(20,20,20,.16); }
.theme__soon {
  display: grid;
  place-items: center;
  font: 800 44px/1 var(--display);
  color: #c9c9c3;
  background: var(--paper-2);
  border: 2px dashed #cfcfc8;
}
.theme figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-top: 14px; font: 700 18px/1.2 var(--display); }
.tag { font: 700 12px/1 var(--text); letter-spacing: .03em; color: var(--muted); padding: 6px 9px; border-radius: 999px; background: var(--paper-2); white-space: nowrap; }
.tag--on { color: #fff; background: var(--green-strong); }
@media (max-width: 860px) { .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; } }

/* ---------- Art styles + story -------------------------------------------------------- */

.themes-intro { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: clamp(28px, 6vw, 72px); align-items: center; }
.themes-intro h2 { margin-bottom: 18px; }
.themes-intro p { margin: 0 0 12px; max-width: 34em; }
@media (max-width: 700px) { .themes-intro { grid-template-columns: minmax(0, 220px); } }

.story blockquote { margin: 0 auto; max-width: 760px; }
.story blockquote p { margin: 0; font: 700 clamp(24px, 3vw, 32px)/1.3 var(--display); letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.story blockquote p::before { content: "“"; color: var(--red); }
.story blockquote p::after { content: "”"; color: var(--red); }
.story footer { margin-top: 18px; font-weight: 600; color: var(--muted); }
.story footer::before { content: ""; display: inline-block; width: 28px; height: 4px; margin-right: 10px; vertical-align: middle; border-radius: 2px; background: linear-gradient(90deg, var(--red) 0 33%, var(--green) 33% 66%, var(--ink) 66%); }

/* ---------- Pricing ---------------------------------------------------------------------------- */

.price-card {
  max-width: 440px;
  margin: 0 auto;
  padding: 0 0 30px;
  text-align: center;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--line), 0 20px 40px rgba(20,20,20,.1);
  overflow: hidden;
}
.price-card__label { margin: 0; padding: 12px; font: 700 14px/1 var(--text); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--red); }
.price-card__price { margin: 26px 0 4px; font: 800 72px/1 var(--display); letter-spacing: -.03em; color: var(--ink); }
.price-card__price span { font-size: 34px; vertical-align: 26px; margin-right: 2px; }
.price-card__per { margin: 0 0 24px; }
.price-card ul { list-style: none; margin: 0 30px 28px; padding: 0; text-align: left; }
.price-card li { padding: 10px 0 10px 34px; position: relative; border-top: 1px solid var(--line); color: var(--ink); }
.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6 9.6 3.6' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.price-card .btn { width: calc(100% - 60px); }

/* ---------- Waitlist ------------------------------------------------------------------------------ */

.waitlist { display: flex; justify-content: center; }
.window {
  width: min(100%, 640px);
  padding: 40px clamp(20px, 5vw, 48px) 36px;
  text-align: center;
  background: var(--paper);
  border-radius: 20px;
  box-shadow: 0 0 0 2px var(--ink);
}
.window__title { margin: 0 0 12px; max-width: none; font-size: clamp(28px, 4vw, 38px); }
.window p { margin: 0 0 26px; }
.waitlist__form { display: flex; gap: 12px; }
.waitlist__form input {
  flex: 1;
  min-width: 0;
  min-height: 54px;
  padding: 14px 18px;
  font: 18px var(--text);
  color: var(--ink);
  background: var(--paper);
  border: 2px solid #bdbdb6;
  border-radius: 999px;
  outline: none;
}
.waitlist__form input:focus { border-color: var(--ink); }
.waitlist__msg { min-height: 1.6em; margin: 16px 0 0 !important; font-weight: 600; }
.waitlist__msg.is-ok { color: var(--green-strong); }
.waitlist__msg.is-err { color: var(--red-strong); }
@media (max-width: 520px) { .waitlist__form { flex-direction: column; } }

/* ---------- FAQ ---------------------------------------------------------------------------------- */

.faq details { max-width: 780px; border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 22px 48px 22px 0;
  font: 700 21px/1.3 var(--display);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font: 700 20px/1 var(--text);
  color: #fff;
  background: var(--ink);
}
.faq details[open] summary::after { content: "–"; background: var(--red); }
.faq details p { margin: -4px 0 24px; max-width: 40em; }

/* ---------- Footer ------------------------------------------------------------------------------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 32px;
  padding-bottom: 44px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.foot p { margin: 0; }

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