/* Day Afoot website. The app's "Ligne" design on the web:
   cream paper, dark blue ink, one métro-style line that runs down the page. */

@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-Regular.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-Italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/Archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --paper: #F5EFE4;
  --paper-raised: #FBF7EE;
  --ticket: #FFF8E6;
  --rule: #E4DACA;
  --rule-strong: #D6CBB8;
  --rule-dashed: #A99E8A;
  --ticket-dash: #C9B48A;
  --ink: #1D2333;
  --ink-2: #4A4436;
  --ink-muted: #6A6152;
  --ink-faint: #8A8170;
  --visited: #C3B9A7;
  --line: #2F6B4F;
  --plaque-blue: #213C6B;
  --booking: #F0C04A;
  --terracotta: #B4553A;
  --on-dark: #F5EFE4;
  --on-dark-muted: #C9C2B4;
  --seine: #C5D5D6;
  --park: #DCE2CC;
  --day: var(--line);

  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --wide: 1240px;
  --rail-x: 15px;           /* centre of the page line inside .journey */
  --rail-pad: 56px;         /* text indent beside the line */
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.5;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* paper grain: two faint crossed gradients, no image needed */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background:
    repeating-linear-gradient(0deg, rgba(74,68,54,.022) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(74,68,54,.018) 0 1px, transparent 1px 4px);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--plaque-blue); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

h1, h2 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(3.4rem, 8.4vw, 7.2rem); line-height: .92; }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); line-height: 1; }
p { margin: 0; }

.label {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted);
}
.bignum { font-weight: 800; font-stretch: 80%; line-height: .9; }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 56px; padding: 0 22px; border: 0; border-radius: 4px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease;
}
.btn .arrow { transition: transform .2s ease; font-size: 20px; }
.btn:hover .arrow { transform: translateX(5px); }
.btn:active { transform: translateY(1px); }
.btn-line { background: var(--line); color: #fff; }
.btn-line:hover { background: #275c43; }
.btn-ink { background: var(--ink); color: var(--on-dark); }
.btn-cream { background: var(--paper); color: var(--ink); }
.btn-small { min-height: 42px; padding: 0 16px; font-size: 14px; }
.btn-wide { width: 100%; }
.btn-store {
  background: var(--ink); color: var(--on-dark); display: inline-grid; grid-template-columns: auto auto;
  column-gap: 26px; align-items: center; min-height: 64px; padding: 10px 22px;
}
.btn-store-small { grid-column: 1; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.btn-store-big { grid-column: 1; font-size: 22px; font-weight: 800; font-stretch: 85%; line-height: 1; }
.btn-store .arrow { grid-column: 2; grid-row: 1 / span 2; }

/* ───────── Top bar ───────── */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 24px;
  padding: 10px var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-stretch: 85%; font-size: 18px; letter-spacing: .01em; }
.brand img { border-radius: 8px; }
.top-nav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; font-weight: 600; }
.top-nav a { text-decoration: none; color: var(--ink-2); padding: 8px 0; border-bottom: 2px solid transparent; }
.top-nav a:hover { border-color: var(--line); color: var(--ink); }

main { position: relative; z-index: 1; }

/* ───────── Hero ───────── */
.hero {
  max-width: var(--wide); margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) var(--gutter) clamp(48px, 7vw, 96px);
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 64px); align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero h1 em { color: var(--line); }
.lede { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.4; color: var(--ink-2); max-width: 26em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.link-down { font-family: var(--serif); font-style: italic; font-size: 20px; text-decoration-color: var(--rule-dashed); text-underline-offset: 5px; }
.link-down:hover { text-decoration-color: var(--line); }
.facts { list-style: none; margin: 8px 0 0; padding: 18px 0 0; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--ink-muted); }
.facts b { font-weight: 800; font-stretch: 80%; font-size: 22px; color: var(--ink); margin-right: 6px; }

/* ───────── The plan (map card) ───────── */
.plan {
  margin: 0; background: var(--paper-raised); border: 1px solid var(--rule); border-radius: 6px;
  box-shadow: 0 1px 0 #fff inset, 0 24px 50px -30px rgba(29,35,51,.35);
  transform: rotate(.6deg); min-width: 0;
}
.plan-head, .plan-foot { display: flex; align-items: center; gap: 14px; padding: 12px 16px; flex-wrap: wrap; }
.plan-head { border-bottom: 1px solid var(--rule); justify-content: space-between; }
.plan-foot { border-top: 1px solid var(--rule); }
.plan-title { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.1; color: var(--day); transition: color .3s; }
.plan-hint { font-size: 13px; color: var(--ink-faint); flex-basis: 100%; }
.map { position: relative; aspect-ratio: 1000 / 700; background: var(--paper); }
.map svg { display: block; width: 100%; height: 100%; }
.map .seine { fill: none; stroke: var(--seine); stroke-linecap: round; stroke-linejoin: round; }
.map .isle { fill: var(--paper); stroke: var(--seine); stroke-width: 2; }
.map .park { fill: var(--park); }
.map .grid line { stroke: var(--rule); stroke-width: 1; opacity: .55; }
.map .hood { font-family: var(--serif); font-style: italic; fill: var(--ink-faint); opacity: .85; }
.map .river-name { fill: #7f999c; letter-spacing: .12em; }
.map .dayline { fill: none; stroke-linecap: round; stroke-linejoin: round; transition: opacity .35s; }
.map .daygroup { transition: opacity .35s; cursor: pointer; }
.map .daygroup.dim { opacity: .34; }
.map .stn { fill: var(--paper-raised); transition: r .2s; cursor: pointer; }
.map .stn.done { fill: var(--visited); stroke: var(--visited) !important; }
.map .pop { transform-box: fill-box; transform-origin: center; animation: pop .45s cubic-bezier(.3,1.6,.5,1) both; }
.map .pill rect { fill: var(--paper-raised); stroke: var(--rule-strong); }
.map .pill text { font-family: var(--sans); font-weight: 600; fill: var(--ink); }
.map .you { fill: var(--booking); stroke: var(--ink); }
@keyframes pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.map-tip {
  position: absolute; z-index: 3; transform: translate(-50%, calc(-100% - 16px)); pointer-events: none;
  background: var(--line); padding: 4px; border-radius: 10px; box-shadow: 0 10px 24px -10px rgba(29,35,51,.6);
  opacity: 0; transition: opacity .15s; width: max-content; max-width: 230px;
}
.map-tip.on { opacity: 1; }
.map-tip-in { background: var(--plaque-blue); border: 2px solid var(--paper); border-radius: 7px; padding: 6px 12px 8px; text-align: center; color: #fff; }
.map-tip small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .08em; opacity: .85; }
.map-tip strong { display: block; font-weight: 800; font-stretch: 78%; text-transform: uppercase; font-size: 17px; line-height: 1.05; letter-spacing: .02em; }

/* day badges */
.daybadges { display: flex; flex-wrap: wrap; gap: 8px; }
.daybadge {
  width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--c); color: #fff;
  font-weight: 800; font-size: 16px; display: grid; place-items: center; padding: 0;
  box-shadow: 0 0 0 0 var(--c); transition: box-shadow .2s, transform .2s, opacity .2s; opacity: .45;
}
.daybadge:hover { opacity: .8; }
.daybadge[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 3px var(--paper-raised), 0 0 0 5px var(--c); }
.daybadges.small .daybadge { width: 30px; height: 30px; font-size: 13px; }

/* ───────── Journey: the page line ───────── */
.journey { position: relative; max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.rail { position: absolute; top: 0; bottom: 0; left: calc(var(--gutter) + var(--rail-x) - 3px); width: 6px; background: var(--rule); border-radius: 3px 3px 0 0; }
.rail-fill { width: 100%; height: 0; background: var(--line); border-radius: 3px; }
.stop, .pass { scroll-margin-top: 84px; }
.stop { position: relative; padding: 0 0 clamp(72px, 10vw, 130px) var(--rail-pad); }
.stop > .label { padding-top: 5px; margin-bottom: 18px; }
.stop-dot {
  position: absolute; left: calc(var(--rail-x) - 15px); top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--paper); border: 6px solid var(--rule-strong); box-shadow: 0 0 0 4px var(--paper);
  transition: border-color .4s, transform .4s cubic-bezier(.3,1.6,.5,1);
}
.stop.arrived .stop-dot { border-color: var(--line); transform: scale(1.08); }
.stop .sub { max-width: 44em; color: var(--ink-2); margin-top: 18px; }
.stop h2 em { color: var(--line); }

/* ───────── Atelier (the playable demo) ───────── */
.atelier {
  margin-top: 40px; display: grid; gap: 28px;
  grid-template-columns: minmax(0, 300px) 372px minmax(0, 1fr); align-items: start;
}
.answers { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.answers fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.answers legend { padding: 0; margin-bottom: 10px; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.q-n { width: 22px; height: 22px; border-radius: 50%; border: 4px solid var(--line); background: var(--paper); font-size: 0; flex: none; }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper .bignum { font-size: 64px; min-width: 1.1ch; text-align: center; }
.stepper-note { font-size: 14px; color: var(--ink-muted); }
.round { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; font-size: 22px; line-height: 1; display: grid; place-items: center; padding: 0 0 2px; }
.round:hover { background: var(--ink); color: var(--paper); }
.round:disabled { opacity: .3; pointer-events: none; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { text-align: left; padding: 10px 12px; border: 1.5px solid var(--rule-strong); background: var(--paper-raised); border-radius: 4px; font-weight: 600; font-size: 15px; line-height: 1.2; }
.tile small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-muted); }
.tile[aria-checked="true"] { background: var(--line); border-color: var(--line); color: #fff; }
.tile[aria-checked="true"] small { color: #d6e6dc; }

.paces { display: grid; gap: 8px; }
.pace { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 12px; text-align: left; padding: 10px 12px; border: 1.5px solid var(--rule-strong); background: var(--paper-raised); border-radius: 4px; font-weight: 700; font-size: 15px; }
.pace small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-muted); }
.pace[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.miniline { position: relative; display: flex; justify-content: space-between; align-items: center; height: 14px; }
.miniline::before { content: ""; position: absolute; left: 4px; right: 4px; top: 5px; height: 4px; background: var(--visited); border-radius: 2px; }
.pace[aria-checked="true"] .miniline::before { background: var(--line); }
.miniline i { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--paper-raised); border: 3px solid var(--visited); }
.pace[aria-checked="true"] .miniline i { border-color: var(--line); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 99px; border: 1.5px solid var(--rule-strong); background: transparent; font-weight: 600; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* phone */
.phone-wrap { min-width: 0; }
.phone { background: var(--ink); border-radius: 46px; padding: 9px; box-shadow: 0 40px 70px -40px rgba(29,35,51,.7), 0 0 0 1px #0d1019; }
.phone-screen { position: relative; background: var(--paper); border-radius: 38px; overflow: hidden; height: 708px; display: flex; flex-direction: column; }
.phone-note { font-size: 13px; color: var(--ink-muted); text-align: center; margin-top: 14px; padding: 0 12px; }

.mood { padding: 30px 20px 16px; background: var(--band, #EADFC8); color: var(--band-fg, var(--ink)); transition: background-color .8s, color .8s; flex: none; }
.mood-top { display: flex; align-items: center; gap: 10px; }
.mood-badge { width: 30px; height: 30px; border-radius: 50%; background: var(--day); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; flex: none; }
.mood-label { font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; opacity: .85; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orb { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--orb, #FFF1D2); box-shadow: 0 0 0 5px color-mix(in srgb, var(--orb, #FFF1D2) 35%, transparent); flex: none; transition: background-color .8s, box-shadow .8s; }
.mood-hello { font-family: var(--serif); font-style: italic; font-size: 42px; line-height: 1; margin-top: 12px; }
.mood-line { font-size: 14px; color: var(--band-sub, #5A5244); margin-top: 6px; transition: color .8s; }
.segments { display: flex; gap: 4px; margin-top: 14px; }
.segments i { flex: 1; height: 4px; border-radius: 2px; background: currentColor; opacity: .22; transition: opacity .4s; }
.segments i.on { opacity: 1; }

.yourdays { display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--rule); flex: none; }
.yourdays .label { font-size: 10px; }

.stations { position: relative; list-style: none; margin: 0; padding: 18px 18px 18px 14px; overflow-y: auto; flex: 1; overscroll-behavior: contain; scrollbar-width: thin; }
.st { position: relative; padding-left: 46px; padding-bottom: 6px; }
.st::before { content: ""; position: absolute; left: 17px; top: 20px; bottom: -20px; width: 6px; background: var(--day); transition: background-color .4s; }
.st.is-visited::before { background: var(--visited); }
.st:last-child::before { display: none; }
.st-dot { position: absolute; left: 10px; top: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 5px solid var(--day); z-index: 1; transition: all .35s cubic-bezier(.3,1.5,.5,1); }
.is-visited .st-dot { left: 12px; top: 12px; width: 16px; height: 16px; background: var(--visited); border-color: var(--visited); }
.is-current .st-dot { left: 5px; top: 5px; width: 30px; height: 30px; border-width: 6px; box-shadow: 0 0 0 4px var(--paper); }
.st-row { display: flex; align-items: baseline; gap: 10px; width: 100%; min-height: 40px; padding: 8px 0 0; background: none; border: 0; text-align: left; }
.st-name { flex: 1; font-weight: 600; font-size: 16.5px; line-height: 1.2; min-width: 0; }
.st-time { font-size: 13px; color: var(--ink-muted); }
.is-visited .st-name { color: var(--ink-faint); text-decoration: line-through; font-size: 15.5px; }
.is-current .st-name { font-family: var(--serif); font-weight: 400; font-size: 29px; line-height: 1; }
.st-meta { font-size: 13px; color: var(--ink-muted); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.is-visited .st-meta { display: none; }
.badge { background: var(--booking); color: var(--ink); font-size: 9.5px; font-weight: 700; letter-spacing: .1em; padding: 3px 6px; }
.st-more { margin-top: 10px; display: grid; gap: 10px; animation: rise .3s ease both; }
.note { background: var(--paper-raised); border: 1px solid var(--rule); padding: 10px 12px; }
.note .label { font-size: 9.5px; color: var(--day); display: block; margin-bottom: 4px; }
.note p { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.25; }
.why { font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.st-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--ink-muted); }
.btn-swap { border: 2px solid var(--ink); background: transparent; border-radius: 4px; padding: 6px 12px; font-weight: 700; font-size: 13px; flex: none; }
.btn-swap:hover { background: var(--ink); color: var(--paper); }
.leg { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-muted); padding: 12px 0 8px; min-height: 28px; }
.tag { font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 2px 6px; border-radius: 3px; border: 1.5px solid var(--ink); color: var(--ink); flex: none; }
.tag.fill { background: var(--ink); color: var(--paper); }
.st.reveal { animation: rise .45s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.actionbar { position: relative; display: flex; gap: 8px; padding: 10px 14px 16px; border-top: 1px solid var(--rule); background: var(--paper); flex: none; }
.btn-go { flex: 1; min-width: 0; background: var(--day); color: #fff; transition: background-color .4s; }
.btn-go span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-check { width: 56px; height: 56px; flex: none; border: 2px solid var(--ink); border-radius: 4px; background: transparent; font-size: 22px; font-weight: 700; }
.btn-check:hover { background: var(--ink); color: var(--paper); }
.endcard { flex: 1; background: var(--ink); color: var(--on-dark); border-radius: 4px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.endcard em { font-size: 24px; line-height: 1; display: block; }
.endcard small { color: var(--on-dark-muted); font-size: 12px; }
.endcard button { background: transparent; border: 1.5px solid var(--on-dark-muted); color: var(--on-dark); border-radius: 4px; padding: 8px 12px; font-weight: 700; font-size: 13px; flex: none; }

.punch {
  position: absolute; left: 50%; bottom: calc(100% - 6px); width: 250px; margin-left: -125px; z-index: 5;
  background: var(--ticket); border: 2px dashed var(--ticket-dash); border-radius: 7px; padding: 12px 16px;
  box-shadow: 0 16px 30px -14px rgba(29,35,51,.5); transform: rotate(-3deg); pointer-events: none;
  animation: punch 2.6s cubic-bezier(.3,1.4,.5,1) both;
}
.punch-top { display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--day); }
.punch-top span:last-child { letter-spacing: 0; color: var(--ink-2); font-weight: 600; }
.punch em { display: block; font-size: 24px; line-height: 1.05; margin: 4px 0 2px; }
.punch small { font-size: 12px; color: var(--ink-muted); }
@keyframes punch {
  0% { opacity: 0; transform: translateY(30px) rotate(4deg) scale(.85); }
  12% { opacity: 1; transform: translateY(0) rotate(-3deg) scale(1); }
  82% { opacity: 1; transform: translateY(0) rotate(-3deg); }
  100% { opacity: 0; transform: translateY(46px) rotate(-7deg); }
}

.drawing { position: absolute; inset: 0; z-index: 8; background: var(--paper); display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 28px; }
.drawing-title { font-size: 40px; line-height: 1; }
.drawing-status { color: var(--ink-muted); font-size: 15px; min-height: 1.5em; }
.dots { display: flex; align-items: center; gap: 0; margin-top: 12px; }
.dots i { width: 16px; height: 16px; border-radius: 50%; border: 4px solid var(--line); background: var(--paper); animation: blink 1.2s infinite both; }
.dots i + i { margin-left: 30px; position: relative; }
.dots i + i::before { content: ""; position: absolute; right: 100%; top: 2px; width: 30px; height: 4px; margin-right: 4px; background: var(--line); }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 100% { background: var(--paper); } 50% { background: var(--line); } }

.plan-side { transform: rotate(-.5deg); position: sticky; top: 84px; }
.plan-side .map { aspect-ratio: 1000 / 700; }

/* ───────── Features ───────── */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.feature.flip .feature-copy { order: 2; }
.feature-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.feature-copy p { color: var(--ink-2); max-width: 24em; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.4; }
.feature-art { min-width: 0; display: flex; justify-content: center; }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; font-size: 15.5px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .35em; width: 12px; height: 12px; border-radius: 50%; border: 3.5px solid var(--line); }
.ticks li:not(:last-child)::after { content: ""; position: absolute; left: 6.5px; top: calc(.35em + 12px); bottom: calc(-10px - .35em); width: 3px; background: var(--line); }

.board { width: min(100%, 420px); background: var(--paper-raised); border: 1px solid var(--rule); border-radius: 6px; transform: rotate(1.2deg); box-shadow: 0 24px 50px -32px rgba(29,35,51,.4); }
.board-head { display: flex; align-items: baseline; gap: 14px; padding: 18px 20px 12px; border-bottom: 1px solid var(--rule); }
.board-head .bignum { font-size: 72px; color: var(--line); }
.board-window { height: 300px; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); }
.board-list { list-style: none; margin: 0; padding: 0 20px; animation: roll 60s linear infinite; }
.board:hover .board-list { animation-play-state: paused; }
.board-list li { position: relative; padding: 9px 0 9px 30px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.board-list li::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 4px; background: var(--c); }
.board-list li::after { content: ""; position: absolute; left: 1px; top: 13px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper-raised); border: 4px solid var(--c); box-sizing: border-box; }
.board-list b { font-weight: 600; font-size: 15.5px; }
.board-list span { font-size: 12px; color: var(--ink-muted); white-space: nowrap; }
@keyframes roll { to { transform: translateY(-50%); } }

.sheet { width: min(100%, 400px); background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 16px 16px 6px 6px; padding: 10px 20px 20px; box-shadow: 0 30px 60px -34px rgba(29,35,51,.55); transform: rotate(-1deg); }
.sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--rule-strong); margin: 0 auto 16px; }
.sheet h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; margin: 6px 0 14px; }
.alt { display: block; width: 100%; text-align: left; background: var(--paper-raised); border: 1.5px solid var(--rule); border-radius: 4px; padding: 12px 14px; margin-bottom: 8px; transition: border-color .15s, transform .15s; }
.alt:hover { border-color: var(--line); transform: translateX(3px); }
.alt b { display: block; font-size: 16.5px; font-weight: 600; }
.alt small { display: block; font-size: 12px; color: var(--ink-muted); margin: 2px 0 6px; }
.alt span { font-size: 13.5px; color: var(--ink-2); line-height: 1.35; display: block; }
.keep { width: 100%; min-height: 48px; border: 2px solid var(--ink); background: transparent; border-radius: 4px; font-weight: 700; font-size: 15px; margin-top: 4px; }

.widgets { display: grid; gap: 16px; width: min(100%, 380px); }
.w-lock { background: var(--ink); color: var(--on-dark); border-radius: 26px; padding: 22px 20px 18px; transform: rotate(1deg); box-shadow: 0 30px 60px -34px rgba(29,35,51,.7); }
.w-clock { font-weight: 800; font-stretch: 80%; font-size: 64px; line-height: 1; text-align: center; }
.w-date { text-align: center; font-size: 13px; color: var(--on-dark-muted); margin-bottom: 16px; }
.w-rect { border: 1.5px solid rgba(245,239,228,.35); border-radius: 14px; padding: 10px 14px; }
.w-rect .label { color: var(--on-dark-muted); font-size: 9.5px; }
.w-rect b { display: block; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.1; }
.w-rect small { font-size: 12px; color: var(--on-dark-muted); }
.w-row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: stretch; }
.sign { background: var(--line); border-radius: 22px; padding: 6px; aspect-ratio: 1; transform: rotate(-2deg); box-shadow: 0 20px 40px -24px rgba(29,35,51,.6); }
.sign-in { height: 100%; background: var(--plaque-blue); border: 2px solid var(--paper); border-radius: 16px; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8px; gap: 4px; }
.sign-in small { font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.sign-in b { font-weight: 800; font-stretch: 76%; text-transform: uppercase; font-size: 21px; line-height: 1; letter-spacing: .02em; overflow-wrap: anywhere; }
.sign-in span { font-size: 11px; opacity: .9; }
.w-med { background: var(--paper-raised); border: 1px solid var(--rule); border-radius: 22px; padding: 14px 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-width: 0; }
.w-med .label { font-size: 9.5px; }
.w-med b { font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.05; }
.w-med small { font-size: 12px; color: var(--ink-muted); }
.w-railrow { display: flex; align-items: center; }
.w-railrow i { width: 10px; height: 10px; border-radius: 50%; border: 3px solid var(--day); background: var(--paper-raised); flex: none; }
.w-railrow i.done { background: var(--visited); border-color: var(--visited); }
.w-railrow u { flex: 1; height: 3px; background: var(--day); }
.w-railrow u.done { background: var(--visited); }

.stop-quiet { padding-bottom: clamp(64px, 9vw, 120px); }
.quiet { font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.15; max-width: 22em; color: var(--ink-2); }
.quiet em { color: var(--ink); }

/* ───────── The pass ───────── */
.pass { position: relative; background: var(--ink); color: var(--on-dark); }
.pass-inner { max-width: var(--wide); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.terminus-dot { position: absolute; top: -21px; left: calc(max(0px, (100% - var(--wide)) / 2) + var(--gutter) + var(--rail-x) - 21px); width: 42px; height: 42px; border-radius: 50%; background: var(--paper); border: 8px solid var(--line); box-shadow: 0 0 0 5px var(--ink); }
.pass .label { color: var(--on-dark-muted); }
.pass-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; min-width: 0; }
.pass h2 { font-size: clamp(2.8rem, 6vw, 5rem); }
.pass h2 em { color: var(--booking); }
.pass-sub { color: var(--on-dark-muted); max-width: 30em; font-size: 1.1rem; }
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 17px; }
.benefits li { padding-left: 32px; position: relative; }
.benefits li::before { content: "✓"; position: absolute; left: 0; color: var(--booking); font-weight: 800; }
.fineprint { font-size: 13px; color: var(--on-dark-muted); max-width: 36em; }

.ticket-wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; min-width: 0; }
.ticket {
  position: relative; display: block; width: min(100%, 440px); padding: 0; border: 0; text-align: left;
  background: var(--ticket); color: var(--ink); border-radius: 8px; overflow: hidden;
  transform: rotate(-2deg); box-shadow: 0 40px 70px -30px #000; transition: transform .4s cubic-bezier(.3,1.5,.5,1);
}
.ticket:hover { transform: rotate(-1deg) translateY(-4px); }
.ticket.punched { transform: rotate(-2deg); animation: thunk .45s ease; }
@keyframes thunk { 20% { transform: rotate(-2deg) scale(.965) translateY(5px); } 60% { transform: rotate(-2.6deg) scale(1.01); } }
.ticket span { display: block; }
.ticket-head { display: flex !important; justify-content: space-between; background: var(--line); color: #fff; padding: 12px 22px; font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.ticket-body { padding: 20px 22px 22px; }
.ticket-row { display: flex !important; justify-content: space-between; align-items: flex-start; gap: 16px; }
.ticket-title { font-family: var(--serif); font-style: italic; font-size: 34px; line-height: 1; }
.ticket-trip { font-size: 13px; color: var(--ink-muted); text-align: right; padding-top: 6px; flex: none; }
.ticket-rail { display: flex !important; align-items: center; margin: 22px 0 20px; }
.ticket-rail i { width: var(--b, 32px); height: var(--b, 32px); border-radius: 50%; background: var(--c); color: #fff; font-style: normal; font-weight: 800; font-size: calc(var(--b, 32px) * .45); display: grid; place-items: center; flex: none; }
.ticket-rail u { flex: 1; height: 4px; background: var(--rule); }
.ticket-tear { border-top: 2px dashed var(--ticket-dash); margin: 0 -22px 18px; }
.ticket-bottom { align-items: flex-end; }
.ticket-price { font-weight: 800; font-stretch: 80%; font-size: 46px; line-height: 1; }
.ticket-terms { font-size: 13px; color: var(--ink-muted); margin-top: 4px; }
.stamp { position: relative; border: 3px solid var(--terracotta); color: var(--terracotta); padding: 7px 12px; font-size: 13px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; transform: rotate(-6deg); border-radius: 3px; transition: color .2s, border-color .2s; flex: none; }
.stamp-yes { display: none !important; }
.punched .stamp { border-color: var(--line); color: var(--line); animation: stamp .5s cubic-bezier(.3,1.6,.5,1); }
.punched .stamp-no { display: none; }
.punched .stamp-yes { display: block !important; }
@keyframes stamp { from { transform: rotate(8deg) scale(1.9); opacity: 0; } to { transform: rotate(-6deg) scale(1); opacity: 1; } }
.ticket-hole { position: absolute; left: 50%; margin-left: -9px; top: 11px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .25s cubic-bezier(.3,1.8,.5,1) .1s; box-shadow: inset 0 2px 3px #000; }
.punched .ticket-hole { transform: scale(1); }
.ticket-hint { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--on-dark-muted); }

/* ───────── Footer ───────── */
.foot { position: relative; z-index: 1; background: var(--ink); color: var(--on-dark); border-top: 1px solid rgba(245,239,228,.14); padding: 44px var(--gutter) 32px; }
.foot-inner { max-width: var(--wide); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-end; }
.foot-word { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; }
.foot-sub { color: var(--on-dark-muted); margin-top: 8px; font-size: 15px; }
.foot-links { display: grid; gap: 8px; font-size: 15px; }
.foot-links a { text-decoration-color: rgba(245,239,228,.35); text-underline-offset: 4px; overflow-wrap: anywhere; }
.foot-links a:hover { text-decoration-color: var(--booking); }
.foot-legal { max-width: var(--wide); margin: 36px auto 0; font-size: 12px; color: var(--ink-faint); }

.toast { position: fixed; left: 50%; bottom: 26px; z-index: 50; transform: translate(-50%, 30px); opacity: 0; background: var(--ink); color: var(--on-dark); padding: 12px 18px; border-radius: 4px; font-size: 14px; font-weight: 600; transition: transform .3s, opacity .3s; pointer-events: none; max-width: calc(100vw - 32px); border: 1px solid rgba(245,239,228,.28); box-shadow: 0 16px 30px -14px rgba(0,0,0,.6); }
.toast.on { transform: translate(-50%, 0); opacity: 1; }

/* ───────── Responsive ───────── */
@media (max-width: 1100px) {
  .atelier { grid-template-columns: minmax(0, 1fr) 372px; }
  .plan-side { grid-column: 1; grid-row: 2; position: static; }
  .answers { grid-column: 1; grid-row: 1; }
  .phone-wrap { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 860px) {
  .top-nav { display: none; }
  .top .btn { margin-left: auto; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .feature, .pass-inner { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .feature-copy { order: 0; }
  .atelier { grid-template-columns: minmax(0, 1fr); }
  .answers, .plan-side, .phone-wrap { grid-column: 1; grid-row: auto; }
  .phone-wrap { max-width: 400px; width: 100%; justify-self: center; }
  .plan, .plan-side { transform: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  :root { --rail-x: 9px; --rail-pad: 34px; --gutter: max(16px, env(safe-area-inset-left, 0px)); }
  .stop-dot { left: calc(var(--rail-x) - 11px); width: 22px; height: 22px; border-width: 5px; }
  .stop > .label { padding-top: 2px; }
  .atelier { margin-left: calc(var(--rail-pad) * -1 + 22px); }
  .phone { border-radius: 40px; padding: 7px; }
  .phone-screen { border-radius: 33px; height: 660px; }
  .w-row { grid-template-columns: 128px 1fr; gap: 12px; }
  .ticket-title { font-size: 28px; }
  .ticket-price { font-size: 38px; }
  .stamp { font-size: 11px; padding: 6px 8px; letter-spacing: .14em; }
  .plan-title { font-size: 18px; }
  .btn-store { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .board-list { animation: none; }
}
