/* Wanderstamp site. Follows the app's look (src/theme.ts): sunset orange, mustard and teal on
   light paper; Bricolage Grotesque for titles, Nunito for text and Baloo 2 for anything that is
   "stamped". The stamps on the page are cut from real app screenshots. Light only, like the app. */

:root {
  color-scheme: light;
  --paper: #F5F4F1;
  --sunset: #F26B3A;
  --sunset-dark: #D2552A;
  --sunset-text: #A6411C;
  --sunset-tint: #FDE8DE;
  --sunset-tint-border: #F9D3C0;
  --sun: #E9B44C;
  --sun-tint: #FCF2DC;
  --sun-tint-border: #F4E0B3;
  --sun-text: #6E5216;
  --sun-on: #43340F;
  --sand: #E7E1D6;
  --sand-tint: #F1EDE5;
  --sand-dash: #D8D0C2;
  --teal: #4FA9B0;
  --teal-deep: #1F7F86;
  --teal-tint: #E3F1F1;
  --teal-tint-border: #CFE6E7;
  --teal-text: #18636A;
  --lilac-tint: #EEEAF8;
  --lilac-tint-border: #DED7F1;
  --lilac-text: #5A4896;
  --border: #E3E0DA;
  --white: #FFFFFF;
  --ink: #2E2B29;
  --ink60: rgba(46, 43, 41, 0.6);
  --ink45: rgba(46, 43, 41, 0.45);
  --title: 'Bricolage Grotesque', 'Nunito', system-ui, sans-serif;
  --stamp: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --page: 1120px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 'Nunito', system-ui, sans-serif;
  overflow-x: clip;
}

h1, h2, h3 {
  font-family: var(--title);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 7.4vw, 4.9rem); }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
h3 { font-size: 1.45rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
img { max-width: 100%; }

a { color: var(--teal-deep); font-weight: 700; text-underline-offset: 3px; }
a:hover { color: var(--sunset-text); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 50;
  background: var(--white); padding: 8px 14px; border-radius: 999px;
}
.skip:focus { left: 8px; }

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

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 16px; padding-bottom: 16px;
}
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 244, 241, 0.86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-head.scrolled { border-bottom-color: var(--border); }
.site-head .top { padding-top: 12px; padding-bottom: 12px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font: 800 1.35rem/1 var(--title); letter-spacing: -0.02em;
}
.brand:hover { color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 11px; transition: transform 0.25s; }
.brand:hover img { transform: rotate(-8deg) scale(1.05); }
.top nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { color: var(--ink60); text-decoration: none; font-size: 0.97rem; }
.top nav a:hover { color: var(--ink); }
.top nav .pill {
  color: var(--white); background: var(--ink); padding: 9px 16px; border-radius: 999px;
  font-size: 0.9rem;
}
.top nav .pill:hover { color: var(--white); background: #000; }

/* ---------- Rubber-stamp label (above section titles) ---------- */

.inked {
  display: inline-block; margin-bottom: 18px; padding: 3px 12px 1px;
  border: 2.5px solid currentColor; border-radius: 8px;
  color: var(--sunset); font: 800 0.86rem/1.5 var(--stamp); letter-spacing: 0.12em;
  text-transform: uppercase; transform: rotate(-3deg);
  opacity: 0.92;
}
.inked.teal { color: var(--teal-deep); transform: rotate(2deg); }
.inked.sun { color: #C38F25; transform: rotate(-2deg); }

/* The wavy cancel lines from the app's postmarks, as a highlight under a word. */
.wavy {
  color: var(--sunset);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='12' viewBox='0 0 40 12'%3E%3Cpath d='M0 6q5-5 10 0t10 0 10 0 10 0' fill='none' stroke='%23F26B3A' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x 0 100% / 30px 9px;
  padding-bottom: 0.12em;
}
/* The same wavy underline in gold, for Pro */
.wavy.gold {
  color: #C38F25;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='12' viewBox='0 0 40 12'%3E%3Cpath d='M0 6q5-5 10 0t10 0 10 0 10 0' fill='none' stroke='%23E9B44C' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

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

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 0;
  font: 800 1rem/1 'Nunito', sans-serif; text-decoration: none; cursor: pointer;
  transition: transform 0.15s, background-color 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--sunset); color: var(--white); box-shadow: 0 4px 0 var(--sunset-dark); }
.btn-primary:hover { color: var(--white); background: #F47A4D; }
.btn-ghost { background: var(--white); color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--ink); border-color: var(--sand-dash); }

/* "Coming soon to Google Play" stand-in until the app is live. Swap it for Google's official
   badge (https://play.google.com/intl/en_us/badges/) once the store page exists. */
.play-soon {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 20px 11px 16px; border-radius: 16px;
  background: var(--ink); color: var(--white); line-height: 1.15;
  box-shadow: 0 4px 0 #000;
}
.play-soon svg { flex: none; }
.play-soon small { display: block; font-size: 0.72rem; letter-spacing: 0.05em; opacity: 0.75; text-transform: uppercase; }
.play-soon strong { font: 800 1.12rem/1.1 'Nunito', sans-serif; }
/* Not out yet (the App Store): greyed out */
.play-soon.is-soon { opacity: 0.45; filter: grayscale(1); box-shadow: none; cursor: default; }

/* ---------- Phone frame around a screenshot ---------- */

.phone {
  position: relative; margin: 0;
  width: 100%;
  padding: 4.5px;
  background: #1D1B1A; border-radius: 13% / 6.4%;
  box-shadow: 0 30px 60px -20px rgba(110, 50, 20, 0.35), 0 8px 18px rgba(46, 43, 41, 0.12),
    inset 0 0 0 1px #3A3634;
}
.phone::before {
  /* the camera hole */
  content: ''; position: absolute; top: 2.1%; left: 50%; width: 3.4%; aspect-ratio: 1;
  transform: translateX(-50%); border-radius: 50%; background: #0B0A0A; z-index: 1;
}
.phone .screen {
  /* positioned, so it also clips overlays drawn outside a screenshot (the share phone's dimming) */
  position: relative; width: 100%; overflow: hidden; border-radius: 11.8% / 5.8%;
  background: var(--paper);
}
.phone .screen::before {
  /* a plain status bar, since the screenshots are cropped below it; the screen is exactly this
     plus the screenshot, so the picture always reaches the bottom */
  content: ''; display: block; aspect-ratio: 9 / 1;
}
.phone img { display: block; width: 100%; height: auto; }

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

/* A short pitch on the left; the map phone, tilted, with real stamps stuck around it. */
.hero-band { position: relative; overflow: clip; }
.hero {
  display: grid; gap: 40px; align-items: center;
  padding-top: 48px; padding-bottom: 48px;
}
@media (min-width: 900px) { .hero { grid-template-columns: 1.08fr 0.92fr; padding-top: 88px; padding-bottom: 72px; } }
.hero h1 { margin-bottom: 0.3em; font-size: clamp(2.4rem, 6vw, 4rem); }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--ink60); max-width: 26em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
.hero-note { margin: 14px 0 0; color: var(--ink60); font-weight: 700; font-size: 0.92rem; }

.hero-art { position: relative; display: grid; place-items: center; padding: 34px 0 30px; }
/* The globe: a canvas drawn by assets/js/globe.js, over the still picture it replaces once it
   has drawn (the picture stays if scripts don't run). */
.globe-wrap {
  position: relative; z-index: 2; width: min(78vw, 440px); aspect-ratio: 1;
  filter: drop-shadow(0 30px 40px rgba(166, 65, 28, 0.22));
}
.globe-wrap img, .globe-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; }
.globe-wrap canvas { opacity: 0; transition: opacity 0.4s; }
.globe-wrap.live canvas { opacity: 1; }
.globe-wrap.live img { opacity: 0; transition: opacity 0.4s; }
.hero-art .s1 { --r: -12deg; width: min(19vw, 93px); left: max(0px, 50% - min(39vw, 220px) - min(10vw, 48px)); top: 2%; transform: rotate(-12deg); }
.hero-art .s2 { --r: 9deg; z-index: 1; width: min(17vw, 80px); right: max(0px, 50% - min(39vw, 220px) - min(17vw, 80px) + min(6vw, 26px)); bottom: 15%; transform: rotate(9deg); }

/* Floating stat cards: the numbers from the map screen */
.stat-card {
  position: absolute; z-index: 2; display: grid; justify-items: start;
  background: var(--white); border: 1px solid var(--border); border-radius: 18px;
  padding: 10px 16px 11px; box-shadow: 0 12px 26px rgba(46, 43, 41, 0.12);
  font-weight: 800; font-size: 0.9rem; line-height: 1.15; color: var(--ink60);
}
.stat-card b { font: 800 1.9rem/1 var(--title); color: var(--sunset); }
.stat-card.c1 { right: 2%; top: 4%; transform: rotate(4deg); }
.stat-card.c2 { left: -2%; top: 44%; transform: rotate(-4deg); }
.stat-card.c2 b { color: var(--teal-deep); }
.stat-card.c3 { right: 18%; bottom: -2%; transform: rotate(-2deg); }
.stat-card.c3 b { color: #C38F25; }
@media (max-width: 520px) {
  .stat-card { padding: 8px 12px 9px; font-size: 0.8rem; }
  .stat-card b { font-size: 1.5rem; }
}


/* The map panel shows the phone with the map screen, tilted */
/* The phone shows only its top part: the art box has a fixed height and the panel clips the rest
   at its bottom edge. */
/* A fixed phone size, shown in full and standing straight, so the phones look the same on every
   screen. */
.phone-art { display: grid; place-items: center; align-self: center; min-height: 0; }
.phone-art .phone { width: 250px; margin: 0; }
@media (min-width: 820px) {
  .feat.feat-phone, .feat.feat-white { min-height: 606px; }
  /* Phones alternate sides: right, left, right */
  .feat-phone.flip { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .feat-phone.flip .phone-art { order: -1; }
}
/* The live globe sits exactly over the globe in the screenshot (its centre is 50.6% down the
   picture and it is 93.8% of its width), and only shows once it has drawn. */
.map-shot { position: relative; overflow: hidden; container-type: inline-size; }
.map-shot > img { display: block; }

/* The passport phone (assets/js/count-up.js): live numbers and a live progress bar laid over the
   ones in the screenshot, in the app's fonts and colours (IdCard.tsx, PassportScreen.tsx), so they
   can count up. Positions are measured from the picture, in % of it. */
.pass-shot { position: relative; container-type: inline-size; }
.pass-shot > img { display: block; }
.pnum {
  position: absolute; background: #fff; line-height: 1; white-space: nowrap;
  padding: 0 0.6cqw 0.2cqw 0; font-family: var(--title); font-weight: 800; font-size: 6.32cqw;
}
.p-countries { right: 9.3%; top: calc(18.85% - 0.17em + 0.35cqw); font-size: 11.1cqw; color: var(--sunset); min-width: 14.5cqw; text-align: right; padding: 0 0 0.2cqw 1cqw; }
.p-cities { left: 8.43%; top: calc(41.97% - 0.17em); color: var(--teal-deep); min-width: 8.6cqw; }
.p-regions { left: 39.63%; top: calc(42.02% - 0.17em); color: var(--teal); min-width: 6.9cqw; }
.p-conts { left: 70.74%; top: calc(41.97% - 0.17em); color: var(--sun); min-width: 3.9cqw; padding-right: 0; }
.pbar {
  position: absolute; left: 9.35%; top: 29.35%; width: 81.3%; height: 1.2%;
  border-radius: 999px; background: var(--sand); overflow: hidden;
}
.pbar i { display: block; height: 100%; width: 18.3%; border-radius: 999px; background: var(--sunset); }

/* The share phone: a loop like a screen recording. Share is tapped (the button sits at
   4.6% / 91.3% of the screenshot, 75% x 6.8% of it), the screen dims and a share sheet slides up,
   the app icons pop in one by one, Instagram is tapped, then it all slides away and starts over.
   It runs only while the panel is on screen (.play, set by the script in index.html). */
/* Not clipped here, so the dimming also covers the phone's status bar above the screenshot; the
   phone's screen clips everything instead. */
.share-shot { position: relative; container-type: inline-size; }
.share-shot > img { display: block; }
.sh-layer > * { position: absolute; pointer-events: none; }
.sh-press { left: 4.6%; top: 91.3%; width: 75%; height: 6.8%; border-radius: 999px; background: rgba(20, 60, 64, 0.22); opacity: 0; }
/* The dimming is a see-through window over the share card (16.67% / 8.08% of the screenshot,
   66.67% x 61.44% of it) with a huge shadow around it, so everything but the card greys out. */
.sh-dim {
  left: 16.67%; top: 8.08%; width: 66.67%; height: 61.44%; border-radius: 3.3cqw;
  box-shadow: 0 0 0 400cqw rgba(46, 43, 41, 0.38); opacity: 0;
}
.sh-sheet {
  left: 0; right: 0; bottom: 0; padding: 5cqw 5cqw 8cqw; background: #fff; border-radius: 6cqw 6cqw 0 0;
  box-shadow: 0 -2cqw 6cqw rgba(46, 43, 41, 0.18); transform: translateY(105%);
}
.sh-sheet::before { content: ''; display: block; width: 11cqw; height: 1.1cqw; margin: -1.5cqw auto 3.5cqw; border-radius: 9px; background: #ddd8d0; }
.sh-sheet b { display: block; margin-bottom: 4.5cqw; font: 800 4.6cqw/1 'Nunito', sans-serif; color: var(--ink); }
.sh-apps { display: flex; justify-content: space-between; }
.sh-app { display: flex; flex-direction: column; align-items: center; gap: 1.8cqw; width: 20cqw; transform: scale(0); }
.sh-app svg { width: 14cqw; height: 14cqw; display: block; filter: drop-shadow(0 1cqw 1.4cqw rgba(46, 43, 41, 0.18)); }
.sh-app i { font: 700 3cqw/1 'Nunito', sans-serif; font-style: normal; color: #6b655e; }
.sh-tap {
  width: 13cqw; height: 13cqw; margin: -6.5cqw 0 0 -6.5cqw; border-radius: 50%; z-index: 3;
  background: rgba(255, 255, 255, 0.45); border: 0.6cqw solid #fff; box-shadow: 0 0 0 0.4cqw rgba(46, 43, 41, 0.18); opacity: 0;
}
.sh-tap.t1 { left: 42%; top: 94.7%; }
.sh-tap.t2 { left: 15%; top: auto; bottom: 19.5cqw; margin: 0 0 -6.5cqw -6.5cqw; background: rgba(46, 43, 41, 0.12); border-color: rgba(46, 43, 41, 0.35); box-shadow: none; }
.share-shot.play .sh-press { animation: sh-press 7s infinite; }
.share-shot.play .sh-dim { animation: sh-dim 7s infinite; }
.share-shot.play .sh-sheet { animation: sh-sheet 7s infinite; }
.share-shot.play .sh-app.a1 { animation: sh-app 7s infinite; }
.share-shot.play .sh-app.a2 { animation: sh-app-still 7s 0.14s infinite; }
.share-shot.play .sh-app.a3 { animation: sh-app-still 7s 0.28s infinite; }
.share-shot.play .sh-app.a4 { animation: sh-app-still 7s 0.42s infinite; }
.share-shot.play .sh-tap.t1 { animation: sh-tap1 7s infinite; }
.share-shot.play .sh-tap.t2 { animation: sh-tap2 7s infinite; }
@keyframes sh-tap1 { 0%, 8% { opacity: 0; transform: scale(0.4); } 10% { opacity: 1; transform: scale(0.75); } 17%, 100% { opacity: 0; transform: scale(1.25); } }
@keyframes sh-tap2 { 0%, 62% { opacity: 0; transform: scale(0.4); } 64% { opacity: 1; transform: scale(0.75); } 71%, 100% { opacity: 0; transform: scale(1.25); } }
@keyframes sh-press { 0%, 9% { opacity: 0; } 11%, 14% { opacity: 1; } 18%, 100% { opacity: 0; } }
@keyframes sh-dim { 0%, 15% { opacity: 0; } 21%, 80% { opacity: 1; } 87%, 100% { opacity: 0; } }
@keyframes sh-sheet {
  0%, 15% { transform: translateY(105%); animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
  23%, 80% { transform: none; animation-timing-function: ease-in; }
  86%, 100% { transform: translateY(105%); }
}
/* Instagram also dips when it is tapped; the others just pop in */
@keyframes sh-app {
  0%, 21% { transform: scale(0); }
  25% { transform: scale(1.18); }
  28%, 63% { transform: scale(1); }
  65% { transform: scale(0.86); }
  68%, 100% { transform: scale(1); }
}
@keyframes sh-app-still { 0%, 21% { transform: scale(0); } 25% { transform: scale(1.18); } 28%, 100% { transform: scale(1); } }

/* The stamp collection phone (assets/js/stamp-fill.js): each coloured stamp in the screenshot starts
   greyed out, like one not collected yet, then turns back to colour one by one with a little ink
   ring. The boxes are measured from the picture, in % of it. */
.stamps-shot { position: relative; }
.stamps-shot > img { display: block; }
.gs-layer { position: absolute; inset: 0; }
.gs {
  position: absolute; border-radius: 8px;
  -webkit-backdrop-filter: grayscale(1) contrast(0.8) brightness(1.08);
  backdrop-filter: grayscale(1) contrast(0.8) brightness(1.08);
  background: rgba(245, 244, 241, 0.38);
  transition: opacity 0.35s ease-out;
}
.gs.on { opacity: 0; }
.gs-ring {
  position: absolute; width: 18%; aspect-ratio: 1; margin: -9% 0 0 -9%; border-radius: 50%;
  border: 2px solid var(--sunset); opacity: 0; pointer-events: none;
}
.gs.on + .gs-ring { animation: gs-ring 0.6s ease-out; }
@keyframes gs-ring { 0% { opacity: 0.9; transform: scale(0.4); } 100% { opacity: 0; transform: scale(1.3); } }

/* The demo loop (assets/js/map-fill.js): the country page slides up over the map, its Visited
   button switches on with the app's little bounce, a tap ring shows each tap, and Vietnam
   pulses once it fills in. */
.sheet {
  position: absolute; inset: 0; z-index: 2; background: var(--paper);
  transform: translateY(102%); transition: transform 0.5s cubic-bezier(.2, .8, .2, 1);
}
.sheet img { display: block; width: 100%; height: auto; }
.map-shot.sheet-up .sheet { transform: none; }
.visit-btn {
  position: absolute; left: 5.19%; top: 50.38%; width: 43.52%; height: 7.07%;
  display: flex; align-items: center; justify-content: center; gap: 1.4cqw;
  border-radius: 999px; border: 0.55cqw solid var(--sunset); background: var(--paper);
  color: var(--sunset-dark); font: 800 3.7cqw/1 'Nunito', sans-serif;
}
.visit-btn svg { display: none; width: 4.2cqw; height: 4.2cqw; fill: currentColor; }
.map-shot.visited .visit-btn { background: var(--sunset); color: var(--white); animation: btn-bounce 0.5s ease-out; }
.map-shot.visited .visit-btn svg { display: block; }
@keyframes btn-bounce { 0% { transform: scale(0.6); } 55% { transform: scale(1.14); } 100% { transform: scale(1); } }
.tap {
  position: absolute; z-index: 3; width: 13cqw; height: 13cqw; margin: -6.5cqw 0 0 -6.5cqw;
  border-radius: 50%; background: rgba(255, 255, 255, 0.45); border: 0.6cqw solid #fff;
  box-shadow: 0 0 0 0.4cqw rgba(46, 43, 41, 0.18); opacity: 0; pointer-events: none;
}
.tap.go { animation: tap-ring 0.6s ease-out; }
.map-shot.pulse .tap { background: rgba(242, 107, 58, 0.25); border-color: var(--sunset); }
@keyframes tap-ring { 0% { opacity: 0; transform: scale(0.4); } 25% { opacity: 1; transform: scale(0.75); } 100% { opacity: 0; transform: scale(1.25); } }
.fill-globe { position: absolute; left: 3.1%; top: 26.25%; width: 93.8%; aspect-ratio: 1; border-radius: 50%; opacity: 0; transition: opacity 0.3s; }
.map-shot.live .fill-globe { opacity: 1; }

/* Stickers: real stamps stuck on top of things */
.sticker {
  position: absolute; z-index: 2; height: auto;
  filter: drop-shadow(0 8px 10px rgba(46, 43, 41, 0.16));
  transition: transform 0.3s cubic-bezier(.3, 1.6, .5, 1);
}
.sticker:hover { transform: rotate(var(--r, 0deg)) scale(1.08) !important; }
.hero-art .sticker:hover { transform: rotate(var(--r, 0deg)) !important; }

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

section { padding: 84px 0; }
@media (max-width: 700px) { section { padding: 60px 0; } }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head p { color: var(--ink60); font-size: 1.15rem; margin: 0; }
.center { text-align: center; margin-inline: auto; }

/* Features: one wide panel each, words on the left and the feature as a thing on the right */
.feats { display: grid; gap: 18px; }
.feat {
  display: grid; gap: 28px; align-items: center;
  border-radius: 36px; padding: 34px 24px 38px; overflow: hidden;
  border: 1px solid transparent;
}
@media (min-width: 820px) {
  .feat { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; padding: 52px 60px; min-height: 430px; }
}
.feat h3 { font-size: clamp(2rem, 4.2vw, 2.9rem); line-height: 1.04; margin-bottom: 0.4em; }
.feat p { color: var(--ink60); font-size: 1.08rem; max-width: 24em; margin: 0; }
.eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font: 800 0.85rem/1.2 'Nunito', sans-serif; letter-spacing: 0.12em; text-transform: uppercase;
}
/* Panels with a phone: more room for the words, so the heading fits on one line */
@media (min-width: 820px) {
  .feat-phone { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
  .feat-phone h3 { font-size: min(2.4rem, 3vw); }
  .feat h3.one-line { white-space: nowrap; }
}

.feat-art { position: relative; display: grid; place-items: center; min-height: 260px; }

.feat-sunset { background: var(--sunset-tint); border-color: var(--sunset-tint-border); }
.feat-sunset .eyebrow { color: var(--sunset-text); }
.feat-teal { background: var(--teal-tint); border-color: var(--teal-tint-border); }
.feat-teal .eyebrow { color: var(--teal-text); }
.feat-sun { background: var(--sun-tint); border-color: var(--sun-tint-border); }
.feat-sun .eyebrow { color: var(--sun-text); }
.feat-white { background: var(--lilac-tint); border-color: var(--lilac-tint-border); }
.feat-white .eyebrow { color: var(--lilac-text); }

/* Two rows of stamps drifting past in opposite directions: a collection that keeps going.
   Each row holds its stamps three times and slides by one third, so the loop has no seam. */
.drift-rows {
  display: grid; gap: 16px; justify-self: stretch; align-content: center; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.drift-track { display: flex; gap: 20px; width: max-content; animation: drift3 63s linear infinite; }
.drift-track.back { animation-name: drift3-back; animation-duration: 75s; }
.drift-rows:hover .drift-track { animation-play-state: paused; }
.drift-track img {
  flex: none; width: clamp(96px, 11vw, 128px); height: auto;
  filter: drop-shadow(0 5px 6px rgba(166, 65, 28, 0.14));
}
.drift-track img:nth-child(odd) { transform: rotate(-4deg); }
.drift-track img:nth-child(even) { transform: rotate(3deg) translateY(6px); }
@keyframes drift3 { to { transform: translateX(-33.333%); } }
@keyframes drift3-back { from { transform: translateX(-33.333%); } to { transform: translateX(0); } }

/* Things lying on the panel: the ID card and the share card */
.card-obj {
  display: block; height: auto;
  filter: drop-shadow(0 22px 26px rgba(31, 79, 84, 0.18)) drop-shadow(0 3px 6px rgba(46, 43, 41, 0.08));
  transition: transform 0.4s cubic-bezier(.3, 1.4, .5, 1);
}
.idcard:hover .card-obj { transform: rotate(-1deg) translateY(-6px); }



/* Pro: a story heading, then the four perks as a simple list: an icon, a name and one line each */
.pro-list {
  list-style: none; margin: 6px auto 0; padding: 0; max-width: 880px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px 48px;
}
.pro-list li { display: flex; gap: 16px; align-items: flex-start; }
.pro-list b { display: block; font: 800 1.15rem/1.25 var(--title); margin-bottom: 3px; }
.pro-list span:not(.pro-ico) { display: block; color: var(--ink60); font-size: 0.98rem; line-height: 1.45; }
.pro-ico {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--sun-tint); border: 1px solid var(--sun-tint-border); color: var(--sun-text);
}
.pro-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
/* Under the Pro list: two rows of gold stamps drifting past (the drift-rows animation) */
.pro-strip { margin-top: 84px; }
.pro-strip .drift-track { gap: 16px; }
.pro-strip .drift-track img { width: clamp(70px, 7.5vw, 92px); filter: drop-shadow(0 6px 8px rgba(110, 82, 22, 0.2)); }

/* Last call: a big orange postcard */
.last {
  position: relative; overflow: hidden; text-align: center;
  background: var(--sunset); color: var(--white); border-radius: 36px;
  padding: 64px 22px 70px;
}
.last h2 { color: var(--white); font-size: clamp(2.2rem, 6vw, 3.8rem); max-width: 12em; margin-inline: auto; }
/* The wavy underline in white, on the orange card */
.wavy.light {
  color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='12' viewBox='0 0 40 12'%3E%3Cpath d='M0 6q5-5 10 0t10 0 10 0 10 0' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}
@media (min-width: 820px) { .last { padding-inline: 150px; } }
.last p { font-size: 1.18rem; max-width: 30em; margin: 0 auto 28px; color: rgba(255, 255, 255, 0.9); }
.last .center-cta { justify-content: center; margin-top: 0; }
.last .play-soon { text-align: left; }
.last .waves { position: absolute; opacity: 0.25; width: 260px; }
.last .waves.a { left: -30px; top: 30px; }
.last .waves.b { right: -40px; bottom: 34px; }

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

footer { padding: 44px 0 52px; color: var(--ink60); font-size: 0.93rem; }
footer .wrap {
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; align-items: center;
  padding-top: 26px;
}
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--ink60); }

/* ---------- Scroll reveal (only when scripts run and motion is welcome) ---------- */

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s, transform 0.6s cubic-bezier(.2, .8, .3, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .share-shot.play .sh-layer > * { animation: none; }
  .drift-track { animation: none; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* ---------- Legal pages (privacy, terms, delete account) ---------- */

.doc { max-width: 760px; padding-top: 24px; padding-bottom: 56px; }
.doc h1 { font-size: clamp(2.3rem, 7vw, 3.4rem); }
.doc h2 { font-size: 1.55rem; margin-top: 1.9em; letter-spacing: -0.01em; }
.doc ul, .doc ol { padding-left: 1.2em; }
.doc li { margin-bottom: 0.45em; }
.doc .updated { color: var(--ink60); }
.summary {
  background: var(--teal-tint); border: 1px solid var(--teal-tint-border); border-radius: 24px;
  padding: 20px 24px; margin: 22px 0 8px;
}
.summary ul { margin: 0; }
.summary li:last-child { margin-bottom: 0; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { font-family: var(--title); font-weight: 800; }

/* Phones: every block of text is centred, and the two store buttons share one line */
@media (max-width: 640px) {
  .hero-copy, .feat-copy { text-align: center; }
  .lead, .feat p { margin-inline: auto; }
  .eyebrow { justify-content: center; }
  .cta { justify-content: center; flex-wrap: nowrap; gap: 8px; }
  .play-soon { padding: 9px 12px 9px 10px; gap: 8px; border-radius: 14px; text-align: left; }
  .play-soon svg { width: 20px; height: 22px; }
  .play-soon small { font-size: 0.6rem; letter-spacing: 0.03em; }
  .play-soon strong { font-size: 0.98rem; }
  .pro-list { gap: 28px 14px; }
  .pro-list li { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
  .pro-list b { font-size: 1.05rem; }
  .pro-list span:not(.pro-ico) { font-size: 0.9rem; }
  footer .wrap, footer nav { justify-content: center; text-align: center; }
}
