/* ==========================================================================
   FoundIreland: the student companion for Ireland
   Light, warm and Dublin-specific: a cream ground with the colours of
   Dublin's Georgian doors (red, green, yellow, blue) as accents.
   Layout: one scroll-told story on the landing page, calm tools elsewhere.
   ========================================================================== */

:root {
  --bg: #fbf6ee;
  --paper: #fffdf9;
  --oat: #f4ead9;
  --peach: #fbe4d2;
  --sky: #e3eef6;
  --ink: #2a1f18;
  --ink-2: rgba(42, 31, 24, 0.72);
  --ink-3: rgba(42, 31, 24, 0.5);
  --line: rgba(42, 31, 24, 0.12);

  /* Irish greens: flag green for actions, deeper and paler tints for surfaces */
  --emerald: #169b62;
  --emerald-deep: #0e7a4b;
  --mint: #e8f4ec;
  --mint-2: #d4ebdc;
  --hill: #7fbf7a;
  --hill-2: #5aa65f;

  --red: #d9472b;
  --red-deep: #b5391f;
  --green: #2e7d6b;
  --yellow: #f4b63f;
  --blue: #3d6fb0;

  --risk-high: #d9472b;
  --risk-med: #dd9416;
  --risk-low: #2e7d6b;

  --display: "Bricolage Grotesque", "Arial Rounded MT Bold", "Helvetica Neue", Arial, sans-serif;
  --sans: "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, Consolas, monospace;

  --pad: clamp(16px, 3vw, 40px);
  --max: 1240px;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(42, 31, 24, 0.06), 0 8px 28px rgba(42, 31, 24, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
::selection { background: var(--mint-2); color: var(--emerald-deep); }
:focus-visible { outline: 3px solid var(--emerald); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 500; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }

/* ---------- Type ---------- */

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
}
.display-xl { font-size: clamp(46px, 7vw, 108px); }
h1, .h1 { font-size: clamp(42px, 6.4vw, 96px); }
h2, .h2 { font-size: clamp(36px, 5vw, 72px); }
h3, .h3 { font-size: clamp(21px, 1.9vw, 27px); line-height: 1.1; letter-spacing: -0.02em; }
h4 { font-size: 16px; font-weight: 700; margin: 0 0 6px; }

.hl { color: var(--red); }
.hl-green { color: var(--emerald); }
.hl-emerald { color: var(--emerald); }
.hl-blue { color: var(--blue); }
.dim { color: var(--ink-3); }

.label, .mono {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}
.label { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.label .sq { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); flex: none; }

.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; max-width: 36ch; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 14.5px; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--sans); font-size: 16px; font-weight: 700;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-green, .btn-ink { background: var(--emerald); color: #fff; }
.btn-green:hover, .btn-ink:hover { background: var(--emerald-deep); }
.btn-white { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-white:hover { border-color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-wa { background: #1f9e5a; color: #fff; }
.btn-wa:hover { background: #17824a; }
.btn-wa svg { width: 20px; height: 20px; flex: none; }
.session .book { margin-top: auto; align-self: flex-start; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn .arr { display: inline-block; transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

.link-btn {
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  font-weight: 600; font-size: 15px; color: var(--ink-2);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px;
}
.link-btn:hover { color: var(--emerald); }

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

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
body.scrolled .site-header { border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 68px; }
.nav-actions { flex: none; }
@media (max-width: 359px) { .nav .wordmark svg { width: 22px; height: 26px; } .nav .wordmark { gap: 7px; } }
.wordmark { display: inline-flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: clamp(16px, 4.8vw, 20px); letter-spacing: -0.03em; white-space: nowrap; }
.wordmark svg { width: 26px; height: 30px; flex: none; }
.wm-found { color: var(--emerald); }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav-links a { display: block; padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: 15.5px; text-decoration: none; color: var(--ink-2); transition: background 0.2s, color 0.2s; }
.nav-links a:hover { background: var(--mint); color: var(--emerald-deep); }
.nav-links a[aria-current="page"] { background: var(--mint-2); color: var(--emerald-deep); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions .btn-plan { display: none; }
.menu-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper);
  display: grid; place-items: center; cursor: pointer;
}
.menu-btn span, .menu-btn span::before { display: block; width: 16px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform 0.3s var(--ease); }
.menu-btn span { transform: translateY(-3px); }
.menu-btn span::before { content: ""; position: absolute; top: 6px; }
body.menu-open .menu-btn span { transform: rotate(45deg); }
body.menu-open .menu-btn span::before { transform: translateY(-6px) rotate(-90deg); }
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-actions .btn-plan { display: inline-flex; }
  .menu-btn { display: none; }
}

.mobile-menu {
  position: fixed; inset: 68px 0 0; z-index: 99;
  background: var(--bg);
  padding: 20px var(--pad) 40px;
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  overflow-y: auto;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
body.menu-open { overflow: hidden; }
.mobile-menu a:not(.btn) { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -0.03em; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 20px; }
@media (min-width: 960px) { .mobile-menu { display: none; } }

.scroll-bar { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 130; background: var(--emerald); transform-origin: left; transform: scaleX(0); pointer-events: none; }

/* Help: one tap from every screen */
.help-fab {
  position: fixed; right: var(--pad); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 120;
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 50px; padding: 0 20px 0 16px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-weight: 700; font-size: 15.5px; text-decoration: none;
  box-shadow: 0 8px 24px rgba(42, 31, 24, 0.25);
  transition: background 0.3s, transform 0.3s var(--ease);
}
.help-fab:hover { background: var(--emerald-deep); transform: translateY(-2px); }
.help-fab i { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 0 rgba(244, 182, 63, 0.7); animation: ping 2.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(244, 182, 63, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(244, 182, 63, 0); } 100% { box-shadow: 0 0 0 0 rgba(244, 182, 63, 0); } }

/* ---------- Generic sections ---------- */

.section { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.section-sm { padding-block: clamp(44px, 6vw, 84px); position: relative; }
.on-oat { background: var(--oat); }
.on-peach { background: var(--peach); }
.on-sky { background: var(--sky); }
.on-grey { background: var(--oat); }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2.2vw, 26px); }

.tag {
  display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 3px 11px; border-radius: 999px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--oat); color: var(--ink-2); white-space: nowrap;
}
.tag-live { background: var(--mint-2); color: var(--emerald-deep); }
.tag-soon { background: var(--oat); color: var(--ink-2); }

.px { display: block; }
.px rect { fill: currentColor; }

/* ==========================================================================
   Landing: scroll story
   ========================================================================== */

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--sky) 0%, #eef6f0 60%, var(--mint) 100%); }
.hero-inner { position: relative; z-index: 2; padding-top: clamp(36px, 5vw, 72px); }
.hero h1 { margin: 18px 0 20px; max-width: 13ch; }
.hero .lede { margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-scene { position: relative; z-index: 1; margin-top: 8px; width: 100%; }
.hero-scene { overflow: hidden; }
.hero-scene svg { width: 100%; height: auto; overflow: hidden; }
.scroll-cue { display: none; align-items: center; gap: 10px; margin-top: 28px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.scroll-cue i { width: 22px; height: 34px; border: 2px solid var(--ink-3); border-radius: 12px; position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--ink-3); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

/* Pinned scene shell */
.scene { position: relative; overflow-x: clip; }
.scene-pin {
  min-height: 100svh;
  display: grid; align-content: center; gap: clamp(20px, 4vw, 48px);
  padding-block: clamp(84px, 9vh, 120px) clamp(24px, 5vh, 56px);
}
@media (min-width: 960px) {
  .scene-pin { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; }
  .scene.flip .scene-copy { order: 2; }
}
.scene-copy { display: grid; gap: 16px; align-content: center; max-width: 520px; }
.scene-copy h2 { position: relative; }
.scene-copy .lede { margin: 0; }
.swap { display: grid; }
.swap > * { grid-area: 1 / 1; }
.stage { position: relative; min-width: 0; }

/* Scene 1: admin, sorted */
.s-plan { background: var(--mint); }
.plan-stage { display: grid; gap: 8px; max-width: 460px; width: 100%; justify-self: center; position: relative; }
.chip-card {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 11px 14px; box-shadow: var(--shadow);
  font-weight: 600; font-size: 16px;
  will-change: transform;
}
.chip-card .n { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.chip-card .tick { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.chip-card .tick svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 3; fill: none; opacity: 0; }
.chip-card.done .tick { background: var(--emerald); border-color: var(--emerald); }
.chip-card.done .tick svg { opacity: 1; }
.chip-card .badge { font-family: var(--mono); font-size: 11px; font-weight: 500; padding: 3px 8px; border-radius: 999px; background: #fde6df; color: var(--red-deep); margin-left: 8px; white-space: nowrap; }
.chip-card .t { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; min-width: 0; }
.noise {
  position: absolute; z-index: 0; pointer-events: none;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--oat); color: var(--ink-2); padding: 6px 10px; border-radius: 8px; white-space: nowrap;
  opacity: 0;
}
.plan-progress { height: 6px; border-radius: 6px; background: var(--oat); overflow: hidden; margin-top: 6px; }
.plan-progress i { display: block; height: 100%; width: 100%; background: var(--emerald); border-radius: 6px; transform-origin: left; }

/* Scene 2: scam check */
.s-scam { background: var(--peach); }
.phone {
  position: relative; width: min(330px, 86vw); justify-self: center;
  background: var(--paper); border-radius: 34px; padding: 14px; border: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(42, 31, 24, 0.16);
}
.phone-screen { border-radius: 22px; overflow: hidden; background: var(--bg); }
.listing-img { aspect-ratio: 4 / 3; background: var(--sky); position: relative; }
.listing-img svg { width: 100%; height: 100%; }
.listing-body { padding: 14px 16px 18px; display: grid; gap: 8px; }
.listing-body .price { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; }
.listing-body .price small { font-family: var(--sans); font-weight: 500; font-size: 14px; color: var(--ink-3); }
.listing-body .row-l { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 8px; }
.listing-body .row-l b { color: var(--ink); }
.fake-pay { margin-top: 6px; background: var(--ink); color: var(--paper); border-radius: 12px; text-align: center; padding: 12px; font-weight: 700; font-size: 15px; }
.flag {
  position: absolute; z-index: 3;
  background: var(--yellow); color: var(--ink);
  font-weight: 700; font-size: 14px; line-height: 1.2;
  padding: 9px 12px 10px; border-radius: 10px;
  box-shadow: 0 10px 24px rgba(42, 31, 24, 0.18);
  max-width: 190px;
}
.flag::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 7px; border-radius: 50%; background: var(--ink); color: var(--yellow); font-size: 12px; vertical-align: 1px; }
.stamp {
  position: absolute; z-index: 4; left: 50%; top: 42%;
  transform: translate(-50%, -50%) rotate(-12deg);
  border: 4px solid var(--red); color: var(--red); background: rgba(255, 253, 249, 0.9);
  font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.02em; line-height: 1;
  padding: 10px 18px 12px; border-radius: 12px; text-align: center; white-space: nowrap;
}
.stamp small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; font-weight: 500; margin-top: 4px; }
.stat-line { display: flex; align-items: baseline; gap: 12px; }
.stat-line b { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 4vw, 56px); letter-spacing: -0.03em; color: var(--red); line-height: 1; }

/* Scene 3: your people */
.s-people { background: var(--sky); }
.people-stage { position: relative; width: 100%; aspect-ratio: 16 / 10; max-width: 100%; }
@media (max-width: 959px) { .people-stage { aspect-ratio: 4 / 3.4; } }
.people-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.group-bubble {
  position: absolute; z-index: 2;
  background: var(--paper); border-radius: 999px; padding: 7px 14px 8px 8px;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px; white-space: nowrap;
  box-shadow: var(--shadow);
}
.group-bubble i { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.verified { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--green); }
.verified svg { width: 20px; height: 20px; }


/* Scene 3b: shop like a local (illustrated Dublin map with pins) */
.s-shop { background: #eaf2e3; }
.map-stage { position: relative; width: 100%; aspect-ratio: 4 / 3.3; border-radius: 26px; overflow: hidden; background: #f6efe2; box-shadow: var(--shadow); border: 1px solid var(--line); }
@media (max-width: 959px) { .map-stage { aspect-ratio: 1 / 1.02; } }
.map-svg, .map-svg svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-svg .pin { cursor: pointer; }
.map-svg .pin:focus-visible { outline: none; }
.map-svg .pin:focus-visible .pin-body { stroke: var(--blue); stroke-width: 3; }
.map-svg .pin.dim { opacity: 0.18; }
.map-svg .pin-inner { transition: transform 0.35s var(--ease); transform-box: fill-box; transform-origin: 50% 100%; }
.map-svg .pin.is-active .pin-inner { transform: scale(1.3); }
.shop-card {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 3;
  background: var(--paper); border-radius: 18px; padding: 14px 16px;
  box-shadow: 0 12px 30px rgba(42, 31, 24, 0.16);
  display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center;
  max-width: 440px;
}
.shop-card:empty { display: none; }
.shop-card .dot { grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.shop-card .dot svg { width: 20px; height: 20px; }
.shop-card .name { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; line-height: 1.1; }
.shop-card .area { font-size: 13.5px; color: var(--ink-3); }
.shop-card .buy { grid-column: 1 / -1; margin: 6px 0 0; font-size: 15px; color: var(--ink-2); }
.shop-card .go { grid-column: 3; grid-row: 1 / span 2; font-weight: 700; font-size: 14px; color: var(--blue); text-decoration: none; white-space: nowrap; }
.shop-card .go:hover { text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 999px;
  border: 2px solid var(--line); background: var(--paper); font-weight: 700; font-size: 14.5px; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.chip i { width: 10px; height: 10px; border-radius: 50%; }
.chip:hover { border-color: var(--ink-3); }
.chip.is-on { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.map-note { position: absolute; top: 12px; right: 14px; z-index: 3; font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); background: rgba(255,253,249,.8); padding: 4px 8px; border-radius: 6px; }
.shop-fallback { margin: 0; padding: 20px 20px 20px 36px; display: grid; gap: 6px; }
@media (max-width: 959px) {
  .s-shop .scene-copy .small { display: none; }
  .shop-card { padding: 10px 12px; }
  .shop-card .buy { font-size: 13.5px; }
  .shop-card .dot { width: 34px; height: 34px; }
}

/* Scene 4: all year (horizontal) */
.s-year { background: var(--bg); overflow: hidden; }
.year-pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 4vh, 48px); padding-block: 90px 40px; }
.year-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.year-track { display: flex; gap: clamp(14px, 2vw, 24px); padding-inline: var(--pad); width: max-content; will-change: transform; }
.year-card {
  width: clamp(250px, 30vw, 380px); min-height: clamp(280px, 44vh, 400px);
  border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 12px;
  color: var(--ink);
}
.year-card .when { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.year-card h3 { font-size: clamp(26px, 2.6vw, 36px); margin-top: auto; }
.year-card p { margin: 0; color: var(--ink-2); font-size: 16px; }
.year-card .px { width: 52px; height: 52px; }
.year-card.c1 { background: #fde6df; } .year-card.c1 .px { color: var(--red); }
.year-card.c2 { background: #fdf0d3; } .year-card.c2 .px { color: #c98a10; }
.year-card.c3 { background: #dcefe8; } .year-card.c3 .px { color: var(--green); }
.year-card.c4 { background: #dfe8f5; } .year-card.c4 .px { color: var(--blue); }
.year-card.c5 { background: var(--oat); } .year-card.c5 .px { color: var(--red); }
.year-line { position: relative; height: 4px; border-radius: 4px; background: var(--oat); margin-inline: var(--pad); max-width: calc(var(--max) - 2 * var(--pad)); }
@media (min-width: 1240px) { .year-line { margin-inline: auto; width: calc(var(--max) - 2 * var(--pad)); } }
.year-line i { position: absolute; inset: 0; border-radius: 4px; background: var(--emerald); transform-origin: left; transform: scaleX(0); }
.year-line b { position: absolute; top: 50%; left: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--emerald); border: 4px solid var(--paper); box-shadow: var(--shadow); }
.year-months { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-top: 10px; }

/* Scene 5: the door */
.s-home { background: linear-gradient(180deg, var(--oat) 0%, var(--mint) 100%); overflow: hidden; }
.home-pin { min-height: 100svh; display: grid; place-items: center; position: relative; padding-block: 90px 40px; }
.home-light { position: absolute; left: 50%; top: 56%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: radial-gradient(circle, #ffe8b0 0%, #f9d27a 45%, rgba(249, 210, 122, 0) 70%); transform: scale(0); z-index: 1; }
.door-wrap { position: relative; z-index: 2; width: min(300px, 62vw); }
.door-wrap svg { width: 100%; height: auto; overflow: visible; }
.home-copy { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; text-align: center; padding: 90px var(--pad) 40px; pointer-events: none; }
.home-copy > div { display: grid; gap: 18px; justify-items: center; pointer-events: auto; }
.home-copy h2 { font-size: clamp(48px, 8vw, 120px); }
.home-copy .lede { max-width: 30ch; }
.home-pre { position: absolute; z-index: 3; top: 96px; left: 0; right: 0; text-align: center; padding-inline: var(--pad); }

/* Footer */
.site-footer { position: relative; background: var(--mint); padding-block: 72px 96px; margin-top: 70px; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -69px; height: 70px; background:
  radial-gradient(120% 140px at 20% 100%, var(--hill) 60%, transparent 61%),
  radial-gradient(90% 120px at 75% 100%, var(--hill-2) 60%, transparent 61%),
  radial-gradient(70% 90px at 50% 100%, var(--mint) 70%, transparent 71%); pointer-events: none; }
.f-grid a:hover { color: var(--emerald-deep) !important; }
.f-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .f-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.f-grid h4 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.f-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.f-grid a { text-decoration: none; font-weight: 500; }

.f-emergency { font-family: var(--display); font-weight: 800; font-size: 40px; letter-spacing: -0.03em; line-height: 1; margin: 0 0 8px; }
.f-doors { display: flex; gap: 10px; margin-top: 40px; }
.f-doors svg { width: 26px; height: 40px; }
.f-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 13.5px; color: var(--ink-3); }

/* Reveal: visible by default, animates in only once JS has set it up */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   App pages
   ========================================================================== */

.page-hero { background: linear-gradient(180deg, var(--mint-2), var(--bg)); padding-block: clamp(36px, 6vw, 80px) clamp(32px, 5vw, 56px); position: relative; overflow: hidden; }
.page-hero.terra { background: linear-gradient(180deg, var(--peach), var(--bg)); }
.page-hero .inner { position: relative; z-index: 2; }
.page-hero h1 { margin: 14px 0 18px; max-width: 14ch; }
.page-hero .lede { max-width: 48ch; }
.page-hero .doors-deco { position: absolute; right: var(--pad); bottom: 0; z-index: 1; display: none; gap: 12px; align-items: flex-end; }
.page-hero .doors-deco svg { width: 54px; height: 86px; }
@media (min-width: 900px) { .page-hero .doors-deco { display: flex; } }
.breadcrumb { font-size: 14px; color: var(--ink-3); }
.breadcrumb a { text-decoration: none; color: var(--ink-2); }
.breadcrumb a:hover { text-decoration: underline; }

/* Quiz */
.quiz { max-width: 820px; }
.quiz-progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 32px; }
.quiz-progress i { height: 6px; border-radius: 6px; background: var(--oat); transition: background 0.4s; }
.quiz-progress i.done { background: var(--emerald); }
.quiz-step { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.quiz-step.is-current { display: block; animation: fadeUp 0.5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.quiz-step legend { padding: 0; }
.quiz-step h2 { font-size: clamp(32px, 4.2vw, 56px); margin: 12px 0 28px; }

.options { display: grid; gap: 10px; }
@media (min-width: 640px) { .options.two { grid-template-columns: 1fr 1fr; } }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .box {
  display: flex; flex-direction: column; gap: 3px; height: 100%;
  padding: 16px 18px 16px 50px; position: relative;
  border: 2px solid var(--line); border-radius: 14px; background: var(--paper);
  transition: border-color 0.2s, background 0.2s;
}
.option .box::before { content: ""; position: absolute; left: 18px; top: 19px; width: 18px; height: 18px; border: 2px solid var(--ink-3); border-radius: 6px; background: var(--paper); transition: background 0.2s, border-color 0.2s; }
.option input[type="radio"] + .box::before { border-radius: 50%; }
.option .box strong { font-weight: 700; }
.option .box span { font-size: 14.5px; color: var(--ink-2); }
.option:hover .box { border-color: var(--ink-3); }
.option input:checked + .box { border-color: var(--emerald); background: var(--mint); }
.option input:checked + .box::before { background: var(--emerald); border-color: var(--emerald); box-shadow: inset 0 0 0 3px var(--paper); }
.option input:focus-visible + .box { outline: 3px solid var(--blue); outline-offset: 2px; }

.field { display: grid; gap: 8px; }
.field label { font-weight: 700; font-size: 15px; }
.input { width: 100%; min-height: 56px; padding: 0 16px; border: 2px solid var(--line); border-radius: 14px; background: var(--paper); font-size: 17px; }
.input:focus { outline: 3px solid var(--blue); outline-offset: 0; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

/* Plan */
.plan-layout { display: grid; gap: 32px; }
@media (min-width: 1000px) { .plan-layout { grid-template-columns: 320px minmax(0, 1fr); gap: 44px; } }
.plan-side { display: grid; gap: 12px; align-content: start; }
@media (min-width: 1000px) { .plan-side { position: sticky; top: 92px; } }
@media (max-width: 999px) { .plan-side .profile-summary, .plan-side .reminders-card, .plan-side #reset-plan { order: 5; } }
.profile-summary dl { margin: 0; display: grid; gap: 12px; }
.profile-summary dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); }
.profile-summary dd { margin: 0; font-weight: 600; }

.progress-ring { display: flex; align-items: center; gap: 16px; }
.progress-ring svg { width: 68px; height: 68px; transform: rotate(-90deg); }
.progress-ring circle { fill: none; stroke-width: 6; }
.progress-ring .track { stroke: var(--oat); }
.progress-ring .bar { stroke: var(--emerald); stroke-linecap: round; transition: stroke-dashoffset 0.8s var(--ease); }
.progress-ring .pct { font-family: var(--display); font-weight: 800; font-size: 40px; letter-spacing: -0.03em; line-height: 1; }

.countdown { background: var(--sky); border-radius: var(--radius); padding: 22px; }
.countdown .days { font-family: var(--display); font-weight: 800; font-size: 72px; letter-spacing: -0.04em; line-height: 0.9; color: var(--blue); }
.countdown .days small { font-size: 0.32em; letter-spacing: -0.01em; }
.countdown.is-soon { background: #fdf0d3; }
.countdown.is-soon .days { color: #b67a07; }
.countdown.is-overdue { background: #fde6df; }
.countdown.is-overdue .days { color: var(--red); }
.countdown a { color: inherit; font-weight: 600; }

.next-three { display: grid; gap: 10px; counter-reset: next; }
@media (min-width: 760px) { .next-three { grid-template-columns: repeat(3, 1fr); } }
.next-card {
  counter-increment: next;
  border-radius: var(--radius); padding: 20px; min-height: 180px;
  display: flex; flex-direction: column; gap: 8px; text-decoration: none;
  transition: transform 0.3s var(--ease);
}
.next-card:nth-child(1) { background: #fde6df; }
.next-card:nth-child(2) { background: #fdf0d3; }
.next-card:nth-child(3) { background: #dcefe8; }
.next-card:hover { transform: translateY(-3px); }
.next-card::before { content: "Next · 0" counter(next); font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); }
.next-card h3 { margin-top: auto; }
.next-card .why { font-size: 14.5px; color: var(--ink-2); }
.next-card.is-overdue { background: var(--red); color: #fff; }
.next-card.is-overdue::before, .next-card.is-overdue .why { color: rgba(255, 255, 255, 0.85); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.step {
  display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: start;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px;
  transition: opacity 0.3s, border-color 0.3s;
}
@media (min-width: 700px) { .step { grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; } }
.step-index { font-family: var(--mono); font-size: 13px; color: var(--ink-3); padding-top: 4px; }
@media (min-width: 700px) { .step-index { padding-top: 0; } }
.step h3 { font-size: clamp(19px, 1.7vw, 23px); margin-bottom: 6px; }
.step h3 a { text-decoration: none; }
.step h3 a:hover { color: var(--red); }
.step-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 14.5px; color: var(--ink-2); align-items: center; }
.step-meta .dep a { color: var(--ink); font-weight: 600; }
.step-actions { grid-column: 2; display: flex; gap: 8px; }
@media (min-width: 700px) { .step-actions { grid-column: 3; } }
.step.is-done { opacity: 0.55; }
.step.is-done h3 a { text-decoration: line-through; text-decoration-thickness: 2px; }
.step.is-progress { border-color: var(--blue); }
.step.is-overdue { border-color: var(--red); }

.status-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 2px solid var(--line); background: var(--paper); color: var(--ink);
  font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.status-btn::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; }
.status-btn:hover { border-color: var(--ink-3); }
.status-btn[data-status="progress"] { border-color: var(--blue); color: var(--blue); }
.status-btn[data-status="progress"]::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.status-btn[data-status="done"] { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.status-btn[data-status="done"]::before { background: #fff; border-color: #fff; }

.pill-warn { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: #fdf0d3; color: #8a5a00; }
.pill-danger { background: #fde6df; color: var(--red-deep); }
.pill-blue { background: #dfe8f5; color: var(--blue); }

.toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; position: relative; }
.toggle input { position: absolute; opacity: 0; }
.toggle .switch { flex: none; width: 48px; height: 28px; border-radius: 999px; background: var(--oat); position: relative; transition: background 0.2s; }
.toggle .switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform 0.25s var(--ease); }
.toggle input:checked + .switch { background: var(--emerald); }
.toggle input:checked + .switch::after { transform: translateX(20px); }
.toggle input:focus-visible + .switch { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Guide */
.guide-layout { display: grid; gap: 36px; }
@media (min-width: 1000px) { .guide-layout { grid-template-columns: 200px minmax(0, 1fr) 300px; gap: 44px; } }
.guide-side { display: grid; gap: 12px; align-content: start; }
@media (min-width: 1000px) { .guide-side { position: sticky; top: 92px; } }
.guide-toc { display: none; }
@media (min-width: 1000px) { .guide-toc { display: grid; gap: 10px; position: sticky; top: 92px; align-self: start; } }
.guide-toc a { font-size: 14.5px; font-weight: 600; text-decoration: none; color: var(--ink-2); }
.guide-toc a:hover { color: var(--red); }
.guide-body section { padding-block: 28px; border-top: 1px solid var(--line); }
.guide-body section:first-child { border-top: 0; padding-top: 0; }
.guide-body h2 { font-size: clamp(26px, 2.6vw, 36px); margin-bottom: 14px; }
.guide-body ul, .guide-body ol { padding-left: 22px; margin: 0; display: grid; gap: 8px; }
.guide-body li::marker { color: var(--emerald); font-weight: 700; }
.guide-body p { max-width: 64ch; }
.guide-facts { display: grid; gap: 10px; margin: 0; }
@media (min-width: 640px) { .guide-facts { grid-template-columns: repeat(3, 1fr); } }
.guide-facts div { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.guide-facts dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); }
.guide-facts dd { margin: 6px 0 0; font-weight: 600; }
.callout { border-radius: 16px; padding: 18px 20px; display: grid; gap: 6px; }
.callout strong { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.callout-scam { background: #fde6df; }
.callout-scam strong { color: var(--red-deep); }
.callout-scam a { color: var(--red-deep); font-weight: 600; }
.callout-info { background: var(--sky); }
.source-box { display: grid; gap: 12px; }
.source-box a.src { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; text-decoration: none; font-weight: 700; }
.source-box a.src:hover { border-color: var(--ink); }
.checked { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; }
.checked::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.checked.recheck::before { background: var(--yellow); }

/* Scam Shield page */
.shield-layout { display: grid; gap: 36px; }
@media (min-width: 1000px) { .shield-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; } }
.q { padding-block: 24px; border: 0; margin: 0; min-width: 0; border-top: 1px solid var(--line); }
.q:first-of-type { border-top: 0; padding-top: 0; }
.q legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: clamp(21px, 2vw, 26px); line-height: 1.1; }
.q legend + * { clear: both; }
.q legend .n { font-family: var(--mono); font-weight: 500; font-size: 12.5px; color: var(--red); }
.q legend .small { font-family: var(--sans); font-weight: 500; font-size: 14px; letter-spacing: 0; color: var(--ink-3); }
.options.compact .box { padding-top: 13px; padding-bottom: 13px; }
.options.compact .box::before { top: 15px; }
.result-wrap { align-self: start; }
@media (min-width: 1000px) { .result-wrap { position: sticky; top: 92px; } }
.result { scroll-margin-top: 90px; border-radius: 22px; padding: clamp(22px, 2.6vw, 30px); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 16px; }
.result.empty { background: var(--oat); box-shadow: none; border-color: transparent; }
.risk-meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.risk-meter i { height: 8px; border-radius: 8px; background: var(--oat); }
.result[data-level="low"] .risk-meter i:nth-child(1) { background: var(--risk-low); }
.result[data-level="medium"] .risk-meter i:nth-child(-n+2) { background: var(--risk-med); }
.result[data-level="high"] .risk-meter i { background: var(--risk-high); }
.result .level { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(40px, 4.4vw, 60px); line-height: 0.95; }
.result[data-level="high"] .level { color: var(--risk-high); }
.result[data-level="medium"] .level { color: var(--risk-med); }
.result[data-level="low"] .level { color: var(--risk-low); }
.result ul { margin: 0; padding: 0; list-style: none; display: grid; }
.result ul li { border-top: 1px solid var(--line); padding-block: 12px; }
.result ul li strong { display: block; margin-bottom: 2px; }
.result ul li span { color: var(--ink-2); font-size: 15px; }
.result ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.result ol li::marker { color: var(--red); font-weight: 700; }
.library { display: grid; gap: 10px; }
@media (min-width: 900px) { .library { grid-template-columns: 1fr 1fr; align-items: start; } }
details.scam { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
details.scam summary { list-style: none; cursor: pointer; display: grid; gap: 8px 20px; padding: 20px 22px; grid-template-columns: minmax(0, 1fr) 24px; }
details.scam summary::-webkit-details-marker { display: none; }
details.scam summary::after { content: "+"; font-size: 26px; font-weight: 400; grid-column: 2; grid-row: 1 / span 3; align-self: start; text-align: right; transition: transform 0.3s var(--ease); }
details.scam[open] summary::after { transform: rotate(45deg); color: var(--red); }
details.scam summary > * { grid-column: 1; }
details.scam summary .tag { justify-self: start; white-space: normal; }
details.scam summary h3 { font-size: clamp(22px, 2.1vw, 28px); }
details.scam .scam-body { padding: 0 22px 22px; display: grid; gap: 16px; font-size: 15.5px; }
details.scam .scam-body ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
details.scam .scam-body li::marker { color: var(--red); }
details.scam .scam-body h4 { font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; }
details.scam .scam-body a { font-weight: 700; color: var(--red-deep); }

/* Help */
.emergency-grid { display: grid; gap: 10px; margin-top: 32px; }
@media (min-width: 700px) { .emergency-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .emergency-grid { grid-template-columns: repeat(4, 1fr); } }
.emergency { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; transition: transform 0.3s var(--ease); }
.emergency:hover { transform: translateY(-2px); }
.emergency .num { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(30px, 2.6vw, 40px); line-height: 1; white-space: nowrap; }
.emergency.primary { background: var(--red); border-color: var(--red); color: #fff; }
.emergency > span:last-child { color: var(--ink-2); font-size: 14.5px; }
.emergency.primary > span:last-child, .emergency.primary .mono { color: rgba(255, 255, 255, 0.9); }
.steps-ordered { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.steps-ordered li { counter-increment: s; padding: 18px 20px 18px 66px; position: relative; background: var(--paper); border-radius: 16px; }
.steps-ordered li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 800; font-family: var(--display); }
.steps-ordered strong { display: block; font-size: 18px; margin-bottom: 4px; }
.steps-ordered span { color: var(--ink-2); }
.steps-ordered a { color: var(--red-deep); font-weight: 600; }
.contact-list { display: grid; gap: 8px; }
.contact-list > div { display: grid; gap: 6px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
@media (min-width: 760px) { .contact-list > div { grid-template-columns: 220px minmax(0, 1fr) auto; gap: 20px; align-items: center; } }
.contact-list strong { font-size: 17px; }

/* Sessions */
.session-grid { display: grid; gap: 12px; }
@media (min-width: 700px) { .session-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .session-grid { grid-template-columns: repeat(4, 1fr); } }
.session { border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 10px; min-height: 260px; }
.session:nth-child(1) { background: #fde6df; } .session:nth-child(2) { background: #fdf0d3; } .session:nth-child(3) { background: #dcefe8; } .session:nth-child(4) { background: #dfe8f5; }
.session .px { width: 40px; height: 40px; }
.session p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.session .price { margin-top: auto; font-family: var(--display); font-weight: 800; font-size: 40px; letter-spacing: -0.03em; }
.rules { display: grid; gap: 10px; }
@media (min-width: 900px) { .rules { grid-template-columns: repeat(3, 1fr); } }
.rules > div { background: var(--paper); border-radius: 18px; padding: 22px; border: 1px solid var(--line); }
.rules h3 { margin-bottom: 8px; }
.rules p { margin: 0; color: var(--ink-2); font-size: 15.5px; }


/* ==========================================================================
   What's on: a cork board of pinned Polaroids
   ========================================================================== */
.cork {
  background-color: #c99a64;
  background-image:
    radial-gradient(rgba(92, 56, 24, 0.38) 1px, transparent 1.6px),
    radial-gradient(rgba(255, 240, 210, 0.28) 1px, transparent 1.6px),
    radial-gradient(rgba(92, 56, 24, 0.22) 1.6px, transparent 2.2px),
    radial-gradient(ellipse at 30% 20%, rgba(255, 230, 190, 0.35), transparent 60%);
  background-size: 7px 7px, 11px 11px, 19px 19px, 100% 100%;
  background-position: 0 0, 3px 5px, 9px 2px, 0 0;
}
.hand { font-family: "Caveat", "Comic Sans MS", cursive; }

.pb-hero { position: relative; overflow: hidden; padding-block: clamp(28px, 5vw, 64px) clamp(48px, 7vw, 96px); }
.pb-hero .breadcrumb { color: rgba(42, 31, 24, 0.7); margin-bottom: 22px; }
.pb-hero .breadcrumb a { color: var(--ink); }
.pb-title {
  position: relative; z-index: 2; display: inline-grid; gap: 10px; max-width: min(640px, 100%);
  background: #fffdf7; padding: clamp(22px, 3vw, 34px) clamp(20px, 3vw, 36px) clamp(18px, 2.4vw, 28px);
  box-shadow: 0 14px 30px rgba(42, 31, 24, 0.28), 0 2px 4px rgba(42, 31, 24, 0.2);
  transform: rotate(-1.5deg);
}
.pb-title h1 { font-size: clamp(54px, 9vw, 128px); }
.pb-title .pb-pin { top: 12px; left: 16px; }
.pb-title .pb-pin.r { left: auto; right: 16px; }
.pb-rot-line { margin: 0; font-family: "Caveat", cursive; font-weight: 700; font-size: clamp(30px, 3.4vw, 46px); line-height: 1; }
.pb-rot { display: inline-block; overflow: hidden; vertical-align: bottom; color: var(--red); }
.pb-rot span { display: inline-block; }
.pb-title .lede { margin: 4px 0 0; font-size: 17px; }
.pb-hero-pols { position: absolute; z-index: 1; right: clamp(16px, 5vw, 80px); top: 50%; transform: translateY(-50%); width: min(44vw, 520px); height: 380px; pointer-events: none; }
.pb-mini { position: absolute; width: 180px; }
.pb-mini:nth-child(1) { right: 52%; top: 0; }
.pb-mini:nth-child(2) { right: 8%; top: 30px; }
.pb-mini:nth-child(3) { right: 30%; top: 170px; }
.pb-mini .pb-tilt { background: #fffdf7; padding: 9px 9px 0; box-shadow: 0 10px 22px rgba(42, 31, 24, 0.3); }
@media (max-width: 899px) {
  .pb-hero-pols { position: relative; right: auto; top: auto; transform: none; width: 100%; height: 190px; margin-top: 18px; }
  .pb-mini { width: 120px; }
  .pb-mini:nth-child(1) { right: auto; left: 2%; top: 10px; }
  .pb-mini:nth-child(2) { right: 4%; top: 0; }
  .pb-mini:nth-child(3) { right: 34%; top: 40px; }
  .pb-mini .pb-cap { font-size: 18px; }
}

/* Pins and tape */
.pb-pin {
  position: absolute; z-index: 4; top: -8px; left: calc(50% - 9px); width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.85) 0 2px, var(--pin, #d9472b) 3px 100%);
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.35), inset 0 -2px 3px rgba(0, 0, 0, 0.25);
}
.pb-tape {
  position: absolute; z-index: 4; top: -13px; left: calc(50% - 42px); width: 84px; height: 26px;
  background: rgba(255, 246, 214, 0.78); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); transform: rotate(-5deg);
  -webkit-mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent 0);
}

/* Filter tabs as sticky notes */
.pb-filterbar { position: sticky; top: calc(68px + env(safe-area-inset-top, 0px)); z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.pb-filters { display: flex; gap: 12px; overflow-x: auto; padding-block: 14px 12px; scrollbar-width: none; }
.pb-filters::-webkit-scrollbar { display: none; }
.pb-chip {
  flex: none; display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 14px 8px; border: 0; cursor: pointer;
  background: var(--note); font-family: "Caveat", cursive; font-weight: 700; font-size: 23px; line-height: 1; color: var(--ink);
  transform: rotate(var(--r)); box-shadow: 0 3px 6px rgba(42, 31, 24, 0.16); transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.pb-chip small { font-family: var(--mono); font-size: 11px; opacity: 0.6; }
.pb-chip:hover { transform: rotate(0) translateY(-2px); }
.pb-chip.is-on { transform: rotate(0) translateY(-3px) scale(1.05); box-shadow: 0 8px 14px rgba(42, 31, 24, 0.22), inset 0 0 0 2px var(--emerald-deep); }

/* The board */
.pb-frame {
  border: clamp(10px, 1.4vw, 18px) solid #1f6e48; border-radius: 12px;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.15), inset 0 10px 30px rgba(60, 30, 10, 0.35), 0 24px 50px rgba(42, 31, 24, 0.18);
  outline: 2px solid #155637; outline-offset: -2px;
}
.pb-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: clamp(30px, 3vw, 44px) clamp(18px, 2.4vw, 32px); padding: clamp(32px, 4vw, 56px) clamp(14px, 3vw, 40px); align-items: start; }
.pb-item { position: relative; min-width: 0; }
.pb-item.is-hidden { display: none; }
.pb-tilt { position: relative; transform: rotate(calc(var(--r, 0deg) + var(--sway, 0deg))); transition: transform 0.45s var(--ease); }
.pb-item:hover { z-index: 5; }
.pb-item:hover .pb-tilt { transform: rotate(0deg) translateY(-6px) scale(1.04); }
.pb-item:hover .pb-front { box-shadow: 0 22px 34px rgba(42, 31, 24, 0.35), 0 2px 4px rgba(0, 0, 0, 0.2); }

.pb-flip { position: relative; transform-style: preserve-3d; transition: transform 0.75s var(--ease); }
.pb-item.is-flipped .pb-flip { transform: rotateY(180deg); }
.pb-face { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.pb-front {
  display: block; width: 100%; padding: 10px 10px 0; border: 0; text-align: center; cursor: pointer; color: var(--ink);
  background: #fffdf7; box-shadow: 0 8px 16px rgba(42, 31, 24, 0.28), 0 1px 2px rgba(0, 0, 0, 0.2); transition: box-shadow 0.4s;
}
.pb-photo { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: #ddd; }
.pb-photo svg { width: 100%; height: 100%; display: block; }
.pb-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 40%), radial-gradient(circle at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.12)); pointer-events: none; }
.pb-cap { margin: 0; padding: 8px 4px 12px; font-family: "Caveat", cursive; font-weight: 700; font-size: 25px; line-height: 1.05; }
.pb-price { position: absolute; top: 8px; right: 8px; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-family: var(--display); font-weight: 800; font-size: 20px; transform: rotate(12deg); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25); border: 2px dashed rgba(255, 255, 255, 0.7); }

.pb-back {
  position: absolute; inset: 0; transform: rotateY(180deg); overflow: auto;
  background: #fffdf7; background-image: repeating-linear-gradient(180deg, transparent 0 25px, rgba(61, 111, 176, 0.14) 25px 26px);
  padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 8px; text-align: left;
  box-shadow: 0 8px 16px rgba(42, 31, 24, 0.28);
}
.pb-back strong { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; line-height: 1.1; }
.pb-back p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.4; }
.pb-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-family: "Caveat", cursive; font-weight: 700; font-size: 20px; color: var(--red); line-height: 1.1; }
.pb-cta { margin-top: auto; font-weight: 700; font-size: 14.5px; color: var(--blue); text-decoration: none; }
.pb-cta:hover { text-decoration: underline; }
.pb-back-btn { align-self: flex-start; background: none; border: 0; padding: 2px 0; cursor: pointer; font-size: 13px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }

/* Ticket taped to the board */
.pb-item.is-ticket .pb-front { padding: 0; background: transparent; box-shadow: none; }
.pb-ticket { display: grid; grid-template-columns: 1fr 42%; background: #fdf0d3; min-height: 168px; text-align: left; box-shadow: 0 8px 16px rgba(42, 31, 24, 0.28); border-radius: 6px; overflow: hidden; }
.pb-tk-main { padding: 16px 12px 14px 16px; display: flex; flex-direction: column; gap: 4px; border-right: 2px dashed rgba(42, 31, 24, 0.3); }
.pb-tk-kick { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.pb-tk-main strong { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; line-height: 1.05; }
.pb-tk-when { margin-top: auto; font-family: "Caveat", cursive; font-weight: 700; font-size: 22px; color: var(--red); line-height: 1; }
.pb-tk-art svg { width: 100%; height: 100%; display: block; }
.pb-item.is-ticket .pb-back { border-radius: 6px; }

/* Sticky-note headers */
.pb-note { background: var(--note); padding: 30px 18px 22px; min-height: 160px; display: grid; align-content: center; gap: 6px; box-shadow: 0 10px 18px rgba(42, 31, 24, 0.24); }
.pb-note::after { content: ""; position: absolute; right: 0; bottom: 0; width: 28px; height: 28px; background: linear-gradient(135deg, var(--note) 50%, rgba(0, 0, 0, 0.12) 50%); }
.pb-note-k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.pb-note strong { font-family: "Caveat", cursive; font-weight: 700; font-size: 32px; line-height: 1; }

/* Warning note */
.pb-warn { position: relative; margin: 34px auto 0; max-width: 620px; background: #ffd1c2; padding: 26px 22px 20px; transform: rotate(-1deg); box-shadow: 0 10px 20px rgba(42, 31, 24, 0.2); display: grid; gap: 10px; }
.pb-warn strong { font-family: "Caveat", cursive; font-size: 30px; line-height: 1; }
.pb-warn p { margin: 0; }


/* "This week": dated events, refreshed weekly from data/events.json */
.tw { padding-block: clamp(40px, 5vw, 64px) clamp(28px, 4vw, 44px); border-top: 1px solid rgba(42, 31, 24, 0.12); }
.tw-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; }
.tw-cities { display: flex; flex-wrap: wrap; gap: 8px; }
.tw-city { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: #fffdf7; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 2px 6px rgba(42, 31, 24, 0.15); }
.tw-city.is-on { background: var(--emerald); color: #fff; }
.tw-track { display: flex; gap: 22px; overflow-x: auto; padding: 20px var(--pad) 26px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: thin; }
@media (min-width: 1240px) { .tw-track { padding-inline: calc((100vw - var(--max)) / 2 + var(--pad)); } }
.tw-card {
  position: relative; flex: none; width: min(330px, 82vw); scroll-snap-align: start;
  display: grid; grid-template-columns: 84px 1fr; background: #fffdf7; border-radius: 10px;
  box-shadow: 0 10px 20px rgba(42, 31, 24, 0.24); transform: rotate(var(--r, 0deg)); transition: transform 0.35s var(--ease);
}
.tw-card:hover { transform: rotate(0deg) translateY(-4px); }
.tw-card .pb-tape { top: -12px; }
.tw-date { display: grid; align-content: center; justify-items: center; gap: 2px; padding: 14px 6px; color: #fff; border-radius: 10px 0 0 10px; border-right: 2px dashed rgba(255, 255, 255, 0.5); text-align: center; }
.tw-date .dow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.9; }
.tw-date .day { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 0.9; letter-spacing: -0.03em; }
.tw-date .mon { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.tw-date .to { font-size: 11px; opacity: 0.9; margin-top: 2px; }
.tw-body { padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tw-body h3 { font-size: 19px; line-height: 1.1; }
.tw-body p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.tw-where { font-weight: 600; color: var(--ink) !important; }
.tw-foot { margin-top: auto; padding-top: 6px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tw-price { font-family: "Caveat", cursive; font-weight: 700; font-size: 22px; color: var(--red); line-height: 1; }
.tw-link { font-weight: 700; font-size: 13.5px; color: var(--blue); text-decoration: none; white-space: nowrap; }
.tw-link:hover { text-decoration: underline; }
.tw-src { font-size: 11.5px !important; color: var(--ink-3) !important; }
.tw-empty { flex: none; width: min(420px, 86vw); background: #fff3b0; padding: 30px 22px 22px; box-shadow: 0 10px 18px rgba(42, 31, 24, 0.22); transform: rotate(-1.5deg); position: relative; }
.tw-empty strong { display: block; font-family: "Caveat", cursive; font-size: 30px; line-height: 1; margin-bottom: 8px; }
.tw-empty p { margin: 0; }
.tw-meta { display: inline-block; margin: 0; padding: 6px 12px; background: rgba(255, 253, 247, 0.85); font-size: 14px; font-weight: 600; color: var(--ink); transform: rotate(-0.6deg); }

/* Year as tear-off calendar pages */
.pb-yearwrap { padding-block: clamp(48px, 6vw, 80px); }
.pb-year { list-style: none; margin: 0; padding: 26px var(--pad) 18px; display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; }
@media (min-width: 1240px) { .pb-year { padding-inline: calc((100vw - var(--max)) / 2 + var(--pad)); } }
.pb-cal { position: relative; flex: none; width: 190px; scroll-snap-align: start; background: #fffdf7; border-top: 30px solid var(--red); padding: 16px 16px 18px; display: grid; gap: 6px; transform: rotate(var(--r)); box-shadow: 0 10px 18px rgba(42, 31, 24, 0.25); }
.pb-cal:nth-child(3n+2) { border-top-color: var(--green); }
.pb-cal:nth-child(3n) { border-top-color: var(--blue); }
.pb-cal-rings { position: absolute; top: -38px; left: 22px; right: 22px; height: 16px; background: radial-gradient(circle, #6b6b6b 0 3px, transparent 3.5px) 0 0 / 24px 16px repeat-x; }
.pb-cal-m { font-family: var(--display); font-weight: 800; font-size: 46px; letter-spacing: -0.04em; line-height: 1; }
.pb-cal strong { font-size: 17px; }
.pb-cal span:last-child { font-family: "Caveat", cursive; font-weight: 700; font-size: 21px; color: var(--ink-2); line-height: 1.05; }
.pb-yearhead { display: inline-block; background: #fffdf7; padding: 14px 20px; transform: rotate(-1deg); box-shadow: 0 8px 16px rgba(42, 31, 24, 0.2); }


/* ==========================================================================
   Opening: boarding pass to Dublin
   ========================================================================== */
html.intro-on, html.intro-on body { overflow: hidden; }
.intro {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center; align-content: center; gap: clamp(20px, 4vh, 40px);
  padding: 24px var(--pad);
  background: radial-gradient(ellipse at 50% 30%, #f1f7fb 0%, var(--sky) 55%, #cfe2ef 100%);
}
.intro-skip { position: absolute; top: calc(18px + env(safe-area-inset-top, 0px)); right: var(--pad); background: rgba(255,253,249,.8); border: 2px solid var(--line); border-radius: 999px; min-height: 40px; padding: 0 16px; font-weight: 700; font-size: 14px; cursor: pointer; }
.intro-skip:hover { border-color: var(--ink); }
.intro-word { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(44px, 8vw, 110px); line-height: 1; text-align: center; min-height: 1.1em; }
.intro-word span { display: inline-block; }
.intro-word .is-irish { color: var(--green); }

.pass { display: flex; width: min(720px, 100%); filter: drop-shadow(0 24px 40px rgba(42, 31, 24, 0.18)); }
.pass-main, .pass-stub { background: var(--paper); position: relative; }
.pass-main { flex: 1; min-width: 0; border-radius: 22px 0 0 22px; padding: clamp(16px, 2.6vw, 26px); display: grid; gap: clamp(12px, 2vw, 20px); border-right: 2px dashed rgba(42, 31, 24, 0.22);
  -webkit-mask: radial-gradient(circle at 100% 0, transparent 13px, #000 13.5px) top / 100% 51% no-repeat, radial-gradient(circle at 100% 100%, transparent 13px, #000 13.5px) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle at 100% 0, transparent 13px, #000 13.5px) top / 100% 51% no-repeat, radial-gradient(circle at 100% 100%, transparent 13px, #000 13.5px) bottom / 100% 51% no-repeat; }
.pass-stub { width: clamp(96px, 20%, 150px); flex: none; border-radius: 0 22px 22px 0; padding: 22px 16px; display: flex; flex-direction: column; gap: 4px; background: var(--yellow);
  -webkit-mask: radial-gradient(circle at 0 0, transparent 13px, #000 13.5px) top / 100% 51% no-repeat, radial-gradient(circle at 0 100%, transparent 13px, #000 13.5px) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle at 0 0, transparent 13px, #000 13.5px) top / 100% 51% no-repeat, radial-gradient(circle at 0 100%, transparent 13px, #000 13.5px) bottom / 100% 51% no-repeat; }
.pass small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.pass b { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; }
.pass-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.pass-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; }
.pass-brand i { width: 12px; height: 16px; border-radius: 6px 6px 1px 1px; background: var(--emerald); }
.pass-route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(10px, 2vw, 22px); }
.pass-route b { display: block; font-size: clamp(38px, 6vw, 64px); line-height: 0.95; }
.pass-route span { font-size: 13px; color: var(--ink-2); }
.pass-route .to { text-align: right; }
.pass-route .to b { color: var(--red); }
.pass-path { position: relative; height: 36px; }
.pass-dots { position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; transform-origin: left; background: repeating-linear-gradient(90deg, var(--ink-3) 0 5px, transparent 5px 11px); }
.pass-plane { position: absolute; top: 50%; width: 40px; height: 24px; margin: -12px 0 0 -20px; color: var(--ink); }
.pass-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.pass-grid b { font-size: clamp(15px, 1.8vw, 20px); }
.pass-stub b { font-size: clamp(30px, 4vw, 44px); line-height: 1; }
.pass-barcode { margin-top: auto; height: 46px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px); opacity: 0.85; }
.pass-stamp {
  position: absolute; right: clamp(10px, 6%, 40px); bottom: clamp(30px, 30%, 70px);
  border: 3px solid var(--green); color: var(--green); border-radius: 12px; padding: 6px 14px 8px; text-align: center;
  font-family: var(--display); font-weight: 800; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: 0.02em; text-transform: uppercase; line-height: 1;
  transform: rotate(-12deg); background: rgba(255, 253, 249, 0.85); opacity: 0;
}
.pass-stamp small { color: var(--green); font-size: 11px; margin-top: 3px; letter-spacing: 0.12em; }
@media (max-width: 560px) {
  .pass-grid { grid-template-columns: repeat(2, 1fr); }
  .pass-stub { width: 84px; padding: 18px 10px; }
  .pass-route span { display: none; }
}


/* Split-flap departure board in the hero headline */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero-h1 { max-width: none !important; }
.hero-h1 .h1-line { display: inline-flex; align-items: center; flex-wrap: nowrap; gap: 0.18em; white-space: nowrap; }
.hero-h1 .h1-line .h1-new { white-space: nowrap; }
.flap { display: inline-flex; gap: 0.06em; vertical-align: middle; padding: 0.07em; background: #1d1611; border-radius: 0.12em; box-shadow: 0 0.06em 0.18em rgba(42, 31, 24, 0.3); }
.flap-tile {
  position: relative; display: inline-grid; place-items: center;
  width: 0.74em; height: 0.96em; border-radius: 0.06em; overflow: hidden;
  background: linear-gradient(180deg, #3a2f27 0 49%, #2b221c 51% 100%);
  color: #fbf6ee; font-family: var(--display); font-weight: 800; font-size: 0.74em; line-height: 1; letter-spacing: -0.02em;
  perspective: 300px;
}
.flap-tile::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 0.035em; min-height: 1px; background: rgba(0, 0, 0, 0.55); }
.flap-tile b { display: block; font-weight: 800; transform-origin: 50% 50%; }
.flap-tile.flip b { animation: flapflip 0.07s linear; }
@keyframes flapflip { 0% { transform: rotateX(0); } 50% { transform: rotateX(80deg); filter: brightness(0.6); } 100% { transform: rotateX(0); } }
.flap-tile.is-blank { background: linear-gradient(180deg, #2f261f 0 49%, #241c17 51% 100%); }
.flap-q { color: var(--ink); }
@media (max-width: 560px) {
  .hero-h1 { font-size: clamp(38px, 11vw, 56px); }
  /* board drops onto its own line so all eight letters fit */
  .hero-h1 .h1-line { display: flex; flex-wrap: wrap; row-gap: 0.12em; white-space: normal; }
  .hero-h1 .h1-line > :first-child { flex-basis: 100%; }
}

/* Utility */
.stack { display: grid; gap: 14px; }
.stack-lg { display: grid; gap: 44px; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; } .mt-5 { margin-top: 64px; }
.hidden { display: none !important; }
.section-head { display: grid; gap: 14px; margin-bottom: 32px; max-width: 720px; }

.toast {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px);
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s var(--ease); z-index: 150;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print { .site-header, .help-fab, .site-footer, .mobile-menu { display: none !important; } }

@media (max-width: 959px) {
  .phone { width: min(262px, 70vw); padding: 10px; border-radius: 28px; }
  .phone .listing-img { aspect-ratio: 16 / 10; }
  .listing-body { padding: 10px 12px 12px; gap: 6px; }
  .listing-body .price { font-size: 22px; }
  .fake-pay { padding: 9px; }
  .flag { font-size: 12.5px; padding: 7px 10px 8px; }
  .scene-copy .lede { font-size: 16px; }
  .chip-card { padding: 8px 12px; font-size: 15px; }
}
