/* MYO NFC, site vitrine. Palette : charte graphique (docs/charte graphique). */

:root {
  --bg: #FAF4EC;
  --surface: #FFFFFF;
  --ink: #2A201B;
  --ink-2: rgb(42 32 27 / .64);
  --line: rgb(42 32 27 / .1);
  --coral: #E8684A;
  --link: #C9512F;
  --peach: #F8D5C4;
  --glass: rgb(250 244 236 / .72);
  --shadow: 0 1px 2px rgb(92 52 32 / .06), 0 20px 50px -12px rgb(92 52 32 / .18);
  --ease: cubic-bezier(.22, 1, .36, 1); /* critically damped feel, no overshoot */
  --radius: 1.5rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #2A201B;
    --surface: #3A2D26;
    --ink: #FAF4EC;
    --ink-2: rgb(250 244 236 / .66);
    --line: rgb(250 244 236 / .12);
    --link: #F08A70;
    --peach: #5C4A3F;
    --glass: rgb(42 32 27 / .7);
    --shadow: 0 1px 2px rgb(0 0 0 / .2), 0 24px 60px -12px rgb(0 0 0 / .5);
  }
}

* { box-sizing: border-box; margin: 0; }

html {
  font: 100%/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: .4rem; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Type scale: tracking tightens as size grows, leading too. */
.display, h1, h2 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif; font-weight: 700; }
.display { font-size: clamp(2.5rem, 5.6vw, 4.5rem); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -.015em; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.35rem); line-height: 1.45; color: var(--ink-2); max-width: 34ch; letter-spacing: -.01em; text-wrap: pretty; }
p { text-wrap: pretty; }
.eyebrow { font-size: .95rem; font-weight: 600; color: var(--link); letter-spacing: -.005em; margin-bottom: .9rem; }

/* Navigation: translucent layer, content scrolls underneath. */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.nav.scrolled { border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 1.75rem; height: 3.75rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-weight: 650; letter-spacing: -.01em; margin-right: auto; }
.brand img { width: 1.9rem; height: 1.9rem; border-radius: 22.5%; }
.nav a:not(.brand) { color: var(--ink-2); text-decoration: none; font-size: .9rem; transition: color .2s; }
.nav a:not(.brand):hover, .nav a[aria-current] { color: var(--ink); }
.nav .lang { border: 1px solid var(--line); border-radius: 99px; padding: .2rem .65rem; font-size: .8rem !important; font-weight: 600; }
@media (max-width: 720px) { .nav .anchor { display: none; } .nav .wrap { gap: 1.1rem; } }

/* Buttons: pill, feedback on press. */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 600 1.0625rem/1 inherit; letter-spacing: -.01em;
  padding: .95rem 1.4rem; border-radius: 99px; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease-out, background-color .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-ghost { color: var(--link); padding-inline: .4rem; }
.btn-ghost .icon { transition: transform .3s var(--ease); }
.btn-ghost:hover .icon { transform: translateX(3px); }
.badge-soon { cursor: default; text-align: left; }
.badge-soon .icon { width: 1.6em; height: 1.6em; }
.badge-soon small { display: block; font-size: .68rem; font-weight: 500; opacity: .7; margin-bottom: .2rem; letter-spacing: .01em; }
.badge-soon span { display: block; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }

/* ---------- iPhone mock (live HTML, sized in points via em) ---------- */
.phone {
  --pad: calc(var(--pw) * .035);
  position: relative; width: var(--pw); aspect-ratio: 9 / 19.5;
  padding: var(--pad); border-radius: calc(var(--pw) * .17);
  background: linear-gradient(145deg, #4a4542, #1d1a19 40%, #2c2826);
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .14), 0 2px 4px rgb(0 0 0 / .12), 0 40px 80px -24px rgb(92 52 32 / .45);
  /* 1em = 17pt body text on a 393pt-wide screen */
  font-size: calc((var(--pw) - 2 * var(--pad)) * 17 / 393);
  line-height: 1.29; letter-spacing: -.02em;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  flex: none;
}
.screen {
  position: relative; height: 100%; overflow: hidden; isolation: isolate;
  border-radius: calc(var(--pw) * .135);
  background: #FAF4EC; color: #2A201B;
}
.island { position: absolute; z-index: 9; top: .65em; left: 50%; translate: -50% 0; width: 7.2em; height: 2.1em; border-radius: 99px; background: #0b0a0a; }
.status { position: absolute; z-index: 8; inset: 0 0 auto; height: 3.4em; display: flex; justify-content: space-between; align-items: center; padding: .55em 2.1em 0 2.4em; font-weight: 600; font-size: .9em; transition: color .5s var(--ease); }
.status i { display: flex; gap: .35em; align-items: center; }
.status b { width: 1.6em; height: .78em; border-radius: .25em; border: 1px solid currentColor; position: relative; opacity: .9; }
.status b::after { content: ""; position: absolute; inset: 1px; right: 30%; background: currentColor; border-radius: .12em; }
.stage[data-step="4"] .status, .stage[data-step="5"] .status, .stage[data-step="6"] .status { color: #fff; }

.view { position: absolute; inset: 0; transition: opacity .55s var(--ease), transform .7s var(--ease), filter .55s var(--ease); }
.stage:not([data-step]) .view:not(.v-library),
.stage[data-step="3"] .view:not(.v-tabs),
.stage[data-step="1"] .view:not(.v-signin),
.stage[data-step="2"] .view:not(.v-library), .stage:not([data-step="3"]) .v-tabs,
.stage[data-step="4"] .view:not(.v-detail),
.stage[data-step="5"] .view:not(.v-detail):not(.v-sheet),
.stage[data-step="6"] .view:not(.v-detail):not(.v-sheet) { opacity: 0; transform: scale(.96); filter: blur(4px); pointer-events: none; }
.v-sheet { pointer-events: none; }

/* Sign in */
.v-signin { display: grid; place-content: center; justify-items: center; text-align: center; padding: 0 2.2em; gap: .5em; }
.v-signin img { width: 5.6em; height: 5.6em; border-radius: 22.5%; margin-bottom: .9em; box-shadow: 0 .8em 2em -.6em rgb(201 81 47 / .5); }
.v-signin strong { font-size: 1.65em; letter-spacing: -.03em; }
.v-signin p { color: rgb(42 32 27 / .6); font-size: .94em; margin-bottom: 1.6em; }
.v-signin .pill { background: var(--coral); color: #fff; font-weight: 600; padding: .85em 1.6em; border-radius: 99px; }
.v-signin small { position: absolute; bottom: 3.2em; inset-inline: 2.4em; font-size: .72em; color: rgb(42 32 27 / .5); }

/* Library */
.v-library { padding: 3.6em .94em 0; }
.v-library header { display: flex; justify-content: flex-end; gap: 1.1em; height: 2.6em; align-items: center; }
.v-library header .icon { width: 1.35em; height: 1.35em; color: #C9512F; }
.v-library h4 { font-size: 2em; letter-spacing: -.035em; line-height: 1.1; margin-bottom: .45em; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1em .94em; }
.tile { position: relative; }
.tile .cover { border-radius: .7em; box-shadow: 0 .15em .5em rgb(42 32 27 / .15); }
.tile strong { display: block; font-size: .88em; margin-top: .5em; line-height: 1.2; }
.tile span { display: block; font-size: .76em; color: rgb(42 32 27 / .55); }
.write {
  position: absolute; right: .6em; top: calc(100% - 6.4em); /* inside the cover: 3.2em button + .6em inset + 2.6em of text below */
  width: 3.2em; height: 3.2em; border-radius: 50%; display: grid; place-items: center;
  background: rgb(20 14 10 / .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 .2em .6em rgb(0 0 0 / .25), inset 0 0 0 1px rgb(255 255 255 / .2);
}
.write svg { width: 1.45em; height: 1.45em; color: #fff; }
/* Apple Music-style bottom bar: Playlists / Radios / Sounds / Podcasts + search */
.tabbar { position: absolute; z-index: 2; inset: auto .94em 1.7em; display: flex; gap: .5em; }
.tabbar .tabs, .tabbar .find {
  display: flex; align-items: center; height: 3.4em; border-radius: 99px;
  background: rgb(255 255 255 / .72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 .3em 1em rgb(42 32 27 / .14), inset 0 0 0 1px rgb(255 255 255 / .6);
}
.tabbar .tabs { flex: 1; justify-content: space-between; padding: 0 .25em; }
.tabbar .tabs span { display: grid; justify-items: center; gap: .1em; padding: .45em .9em; border-radius: 99px; font-size: .56em; font-weight: 600; color: rgb(42 32 27 / .55); }
.tabbar .tabs span.on { color: #C9512F; font-weight: 700; background: rgb(232 104 74 / .16); }
.tabbar svg { width: 1.9em; height: 1.9em; }
.tabbar .find { width: 3.4em; justify-content: center; color: #2A201B; }
.tabbar .find svg { width: 1.3em; height: 1.3em; }
/* Step 3: radios, sounds and podcasts, one tab after the other. Square covers like the app. */
.cover.sq { aspect-ratio: 1; }
.panes { display: grid; }
.panes > .grid { grid-area: 1 / 1; }
.panes > .grid + .grid { opacity: 0; }
/* Radios, sounds and podcasts covers: own look, not the playlists' illustrations. */
.cv-kind { background-color: var(--c); display: grid; place-items: center; color: rgb(255 255 255 / .92); }
.cv-kind svg { width: 46%; height: 46%; position: relative; }
.k-radio { background-image: repeating-radial-gradient(circle at 50% 50%, rgb(255 255 255 / .1) 0 .35em, transparent .35em .9em); }
.k-sound { background-image: repeating-linear-gradient(90deg, rgb(255 255 255 / .1) 0 .3em, transparent .3em .8em), linear-gradient(transparent 55%, rgb(0 0 0 / .14)); }
.k-podcast { background-image: radial-gradient(rgb(255 255 255 / .18) 18%, transparent 20%); background-size: .8em .8em; }
.v-tabs .tile span:empty { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .panes > .grid, .v-tabs .tabs span:not(:first-child) { animation: tab-cycle 9s infinite; }
  .panes > .grid:nth-child(2), .v-tabs .tabs span:nth-child(3) { animation-delay: -6s; }
  .panes > .grid:nth-child(3), .v-tabs .tabs span:nth-child(4) { animation-delay: -3s; }
  .v-tabs .tabs span:not(:first-child) { animation-name: tab-on; }
  @keyframes tab-cycle { 0%, 30% { opacity: 1; transform: none; } 34%, 96% { opacity: 0; transform: translateY(.6em); } 100% { opacity: 1; transform: none; } }
  @keyframes tab-on { 0%, 31% { color: #C9512F; background-color: rgb(232 104 74 / .16); } 34%, 97% { color: rgb(42 32 27 / .55); background-color: transparent; } 100% { color: #C9512F; background-color: rgb(232 104 74 / .16); } }
}
.fade-bottom::after { content: ""; position: absolute; inset: auto 0 0; height: 5em; background: linear-gradient(transparent, #FAF4EC); }

/* Playlist detail */
.v-detail { background: #2a201b; color: #fff; }
.v-detail .backdrop { position: absolute; inset: -20%; filter: blur(28px) saturate(1.3); opacity: .9; aspect-ratio: auto; border-radius: 0; }
.v-detail .backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 20%, rgb(42 32 27 / .85) 60%); }
.v-detail .hero-card { position: relative; width: 56%; margin: 4.2em auto 1.1em; border-radius: .8em; box-shadow: 0 1em 2.4em rgb(0 0 0 / .35); }
.v-detail h5 { position: relative; text-align: center; font-size: 1.3em; letter-spacing: -.025em; }
.v-detail .meta { position: relative; text-align: center; font-size: .88em; opacity: .7; margin-bottom: 1em; }
.tracks { position: relative; list-style: none; padding: 0 1.1em; font-size: .9em; }
.tracks li { display: grid; grid-template-columns: 1.1em 1fr auto; gap: .8em; align-items: center; padding: .62em 0; border-bottom: 1px solid rgb(255 255 255 / .12); }
.tracks li::before { content: ""; width: 1.1em; height: 1.1em; border-radius: .2em; background: var(--dot, #F8D5C4); }
.tracks li span { opacity: .6; font-variant-numeric: tabular-nums; }
.capsule {
  position: absolute; inset: auto 1.1em 2.4em; display: flex; justify-content: center; align-items: center; gap: .5em;
  padding: .95em; border-radius: 99px; font-weight: 600; color: #fff;
  background: rgb(232 104 74 / .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 .6em 1.6em rgb(201 81 47 / .45);
}
.capsule svg { width: 1.2em; height: 1.2em; }

/* System NFC sheet (iOS draws it, the app only sets its text) */
.v-sheet { background: rgb(0 0 0 / .32); }
.sheet {
  position: absolute; inset: auto .5em .5em; padding: 1.6em 1.4em 1.3em; border-radius: 2.6em;
  background: #F2F2F7; color: #1c1c1e; text-align: center; display: grid; justify-items: center; gap: .9em;
  transition: transform .7s var(--ease);
}
.stage:not([data-step="5"]):not([data-step="6"]) .sheet { transform: translateY(110%); }
.sheet h6 { font-size: 1.35em; font-weight: 500; color: #8e8e93; letter-spacing: -.02em; }
.sheet .glyph { position: relative; width: 5em; height: 5em; display: grid; place-items: center; color: #0A84FF; }
.sheet .glyph svg { fill: currentColor; position: absolute; width: 100%; height: 100%; transition: opacity .4s var(--ease), transform .5s var(--ease); }
.sheet .msg { position: relative; min-height: 2.6em; width: 100%; font-size: .95em; }
.sheet .msg p { position: absolute; inset: 0; transition: opacity .4s var(--ease); }
.sheet .cancel { width: 100%; padding: .8em; border-radius: 99px; background: #E3E3E8; font-weight: 600; }
.stage[data-step="6"] .ok-hide, .stage:not([data-step="6"]) .ok-show { opacity: 0; transform: scale(.8); }

/* Physical card that comes to the top of the phone */
/* Blank card: white until the write succeeds, then it takes the playlist's cover. */
.blank { position: absolute; inset: 0; z-index: 1; border-radius: inherit; clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease);
  background: linear-gradient(150deg, #fff, #F1ECE6); box-shadow: inset 0 0 0 1px rgb(42 32 27 / .08); }
.stage[data-step="5"] .nfc-card .blank { clip-path: inset(0); }
.nfc-card {
  position: absolute; z-index: 3; width: calc(var(--pw) * .44); top: 0; left: 50%;
  transform: translate(-6%, -40px) rotate(-8deg); opacity: 0;
  transition: transform 1s var(--ease), opacity .6s var(--ease);
  filter: drop-shadow(0 18px 24px rgb(92 52 32 / .28));
}
.stage[data-step="5"] .nfc-card, .stage[data-step="6"] .nfc-card { opacity: 1; transform: translate(-6%, 0) rotate(-8deg); }
.waves { position: absolute; z-index: 4; left: 50%; top: calc(var(--pw) * .1); width: calc(var(--pw) * .5); aspect-ratio: 1; translate: -50% 0; pointer-events: none; }
.waves span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--coral); opacity: 0; }
.ripple { position: absolute; inset: 0; border-radius: calc(var(--pw) * .17); box-shadow: 0 0 0 0 rgb(232 104 74 / .5); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .stage[data-step="5"] .waves span { animation: wave 1.8s var(--ease) infinite; }
  .waves span:nth-child(2) { animation-delay: .6s !important; }
  .waves span:nth-child(3) { animation-delay: 1.2s !important; }
  @keyframes wave { from { opacity: .7; transform: scale(.2); } to { opacity: 0; transform: scale(1); } }
  .stage[data-step="6"] .ripple {
    animation: ripple 1s var(--ease) .2s both; }
  /* The two ways to write: quick button on the library tile, capsule in the detail. */
  .stage[data-step="2"] .tile:first-child .write, .stage[data-step="4"] .capsule { animation: beckon 1.6s var(--ease) .4s infinite; }
  @keyframes beckon { 0% { box-shadow: 0 0 0 0 rgb(232 104 74 / .75); } 100% { box-shadow: 0 0 0 .9em rgb(232 104 74 / 0); } }
  @keyframes ripple { to { box-shadow: 0 0 0 28px rgb(232 104 74 / 0); } }
}

/* ---------- Generic playlist covers (Yoto card ratio 54 × 85.6) ---------- */
.cover { aspect-ratio: 54 / 85.6; border-radius: .7em; position: relative; overflow: hidden; background-color: var(--c); }
.nfc-card.cover { position: absolute; border-radius: 9% / 5.7%; overflow: visible; }
.cv-night { --c: #2D2A5E; background-image:
  radial-gradient(circle at 70% 26%, #2D2A5E 0 13%, transparent 13.5%),
  radial-gradient(circle at 62% 30%, #F5E6B8 0 15%, transparent 15.5%),
  radial-gradient(circle at 20% 15%, #F5E6B8 0 1.6%, transparent 2%),
  radial-gradient(circle at 34% 48%, #F5E6B8 0 1.2%, transparent 1.6%),
  radial-gradient(circle at 82% 58%, #F5E6B8 0 1.4%, transparent 1.8%),
  radial-gradient(ellipse 90% 30% at 30% 100%, #1F1C45 0 98%, transparent),
  radial-gradient(ellipse 80% 26% at 85% 100%, #3A3670 0 98%, transparent); }
.cv-sun { --c: #F6C445; background-image:
  radial-gradient(circle at 50% 46%, #E8684A 0 22%, transparent 22.5%),
  repeating-conic-gradient(from 0deg at 50% 46%, rgb(232 104 74 / .25) 0 8deg, transparent 8deg 30deg),
  radial-gradient(ellipse 120% 36% at 50% 104%, #5E9E5A 0 98%, transparent); }
.cv-sea { --c: #9ED8E4; background-image:
  radial-gradient(circle at 74% 24%, #FAF4EC 0 9%, transparent 9.5%),
  radial-gradient(ellipse 60% 14% at 20% 62%, #2F7F9E 0 98%, transparent),
  radial-gradient(ellipse 60% 14% at 80% 66%, #2F7F9E 0 98%, transparent),
  linear-gradient(transparent 64%, #236B88 64%); }
.cv-forest { --c: #DDEFD0; background-image:
  radial-gradient(ellipse 70% 40% at 20% 100%, #2E6B47 0 98%, transparent),
  radial-gradient(ellipse 70% 46% at 85% 100%, #3F8A57 0 98%, transparent),
  radial-gradient(ellipse 90% 62% at 45% 100%, #79B76A 0 98%, transparent),
  radial-gradient(circle at 30% 26%, #F6C445 0 10%, transparent 10.5%); }
.cv-music { --c: #E8684A; background-image:
  radial-gradient(circle at 50% 50%, #E8684A 0 7%, transparent 7.5%),
  repeating-radial-gradient(circle at 50% 50%, #FAF4EC 0 3%, transparent 3% 7%); }
.cv-music::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 50% 50%, transparent 34%, #E8684A 34.5%); }
.cv-snow { --c: #CFE3F2; background-image:
  radial-gradient(circle, #fff 0 1.2px, transparent 1.6px); background-size: 14px 14px; }
.cv-snow::after { content: ""; position: absolute; inset: 42% 0 0; border-radius: 0 0 .7em .7em; background: linear-gradient(55deg, #7FA7C9 50%, transparent 50.3%) left bottom / 62% 100% no-repeat, linear-gradient(-55deg, #9CBEDC 50%, transparent 50.3%) right bottom / 62% 100% no-repeat; }

/* ---------- How it works: sticky phone, steps scroll past ---------- */
.story { padding-block: clamp(4rem, 9vw, 7rem) 2rem; }
.story-head { text-align: center; margin-bottom: clamp(1rem, 4vw, 3rem); }
.story-head .lead { margin: 1rem auto 0; }
.story-body { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.steps { grid-area: 1 / 1; position: relative; z-index: 2; }
.step { min-height: 88svh; display: flex; flex-direction: column; justify-content: center; max-width: 27rem; padding-block: 2rem; opacity: .28; transition: opacity .5s var(--ease); }
.step.active { opacity: 1; }
.step-n { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--peach); color: var(--link); font-weight: 700; font-size: .95rem; margin-bottom: 1.1rem; }
.step h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -.03em; line-height: 1.1; margin-bottom: .8rem; }
.step p { color: var(--ink-2); font-size: 1.1rem; max-width: 34ch; }
.stage-wrap { grid-area: 1 / 2; }
.stage { position: sticky; top: max(4.5rem, calc(50svh - var(--pw) * 1.22)); display: grid; place-items: center; --pw: min(clamp(250px, 24vw, 300px), (100svh - 7rem) / 2.4); padding-top: calc(var(--pw) * .2); }
@media (max-width: 860px) {
  .story-body { grid-template-columns: 1fr; }
  .stage-wrap { grid-area: 1 / 1; }
  .stage { --pw: min(56vw, 240px); top: 4rem; }
  .step { min-height: 100svh; justify-content: flex-end; padding-bottom: 6svh; max-width: none; opacity: 0; transition: opacity .4s var(--ease); }
  .step > div { background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.35rem; box-shadow: var(--shadow); }
  .step h3 { font-size: 1.4rem; }
  .step p { font-size: 1rem; }
}

/* ---------- The right card ---------- */
.cards { padding-block: clamp(5rem, 10vw, 8rem); text-align: center; }
.cards h2 { margin-bottom: 1rem; }
.cards .lead { margin-inline: auto; max-width: 40ch; }
.chip-card {
  width: min(32rem, 100%); aspect-ratio: 85.6 / 54; margin: clamp(2.5rem, 6vw, 4.5rem) auto; border-radius: 1.4rem;
  background: linear-gradient(135deg, #fff, #F4EEE6); color: #2A201B; text-align: left;
  box-shadow: inset 0 0 0 1px rgb(42 32 27 / .06), 0 50px 90px -30px rgb(92 52 32 / .4);
  padding: clamp(1.25rem, 4vw, 2rem); display: grid; align-content: space-between; position: relative; overflow: hidden;
}
.chip-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .8) 45%, transparent 60%); transform: translateX(calc((var(--sheen, 0) - 1) * 100%)); pointer-events: none; }
.chip-card .ref { font-size: clamp(.7rem, 1.6vw, .85rem); font-weight: 600; color: #C9512F; letter-spacing: .02em; }
.chip-card .name { font-size: clamp(1.4rem, 4.4vw, 2.4rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.chip-card .size { font-size: clamp(1rem, 2.6vw, 1.35rem); color: rgb(42 32 27 / .6); font-weight: 500; }
.chip-card img { position: absolute; right: 8%; top: 12%; width: 20%; border-radius: 22.5%; }
.compat { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; max-width: 46rem; margin-inline: auto; list-style: none; padding: 0; }
.compat li { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: .95rem; }
.compat .yes { color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--coral); }
.compat .yes .icon { color: var(--coral); }
.compat .no { color: var(--ink-2); }
.cards .note { color: var(--ink-2); font-size: .95rem; margin-top: 1.6rem; }

/* ---------- Bento ---------- */
.bento { padding-block: clamp(3rem, 8vw, 6rem); }
.bento h2 { margin-bottom: clamp(2rem, 5vw, 3rem); max-width: 18ch; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(15rem, auto); gap: 1rem; }
.cell { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: .6rem; }
.cell h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -.025em; }
.cell p { color: var(--ink-2); max-width: 32ch; }
.cell .art { margin-top: auto; padding-top: 1.5rem; }
.c-offline { grid-column: span 2; background: linear-gradient(160deg, var(--surface) 30%, var(--peach)); }
.c-overwrite { grid-row: span 2; }
.c-privacy { background: var(--coral); color: #fff; box-shadow: none; }
.c-privacy p { color: rgb(255 255 255 / .92); }
.c-privacy a { color: #fff; font-weight: 600; }
.c-privacy .big { width: 2.6rem; height: 2.6rem; margin-bottom: .4rem; }
@media (max-width: 860px) {
  .tiles { grid-template-columns: 1fr; }
  .c-offline, .c-overwrite { grid-column: auto; grid-row: auto; }
}
/* tiny UI excerpts inside tiles */
.mini-row { display: flex; gap: .8rem; align-items: flex-end; }
.mini-row .cover { width: clamp(3.6rem, 8vw, 4.8rem); border-radius: .55rem; box-shadow: 0 6px 16px rgb(92 52 32 / .18); }
.sync { margin-top: 1rem; font-size: .85rem; color: var(--ink-2); display: inline-flex; gap: .4rem; align-items: center; }
.dialog { width: 100%; max-width: 17rem; margin-inline: auto; border-radius: 1.1rem; overflow: hidden; background: color-mix(in srgb, var(--bg) 70%, var(--surface)); box-shadow: var(--shadow); text-align: center; font-size: .95rem; }
.dialog p { padding: 1rem 1.2rem; color: var(--ink-2); font-size: .82rem; max-width: none; }
.dialog p b { display: block; color: var(--ink); font-size: .9rem; margin-bottom: .2rem; }
.check-ring { width: 5.5rem; height: 5.5rem; color: var(--coral); }
.check-ring circle { stroke-dasharray: 290; stroke-dashoffset: 0; }
.check-ring path { stroke-dasharray: 80; stroke-dashoffset: 0; }
.motion .reveal .check-ring circle { stroke-dashoffset: 290; transition: stroke-dashoffset 1s var(--ease) .3s; }
.motion .reveal .check-ring path { stroke-dashoffset: 80; transition: stroke-dashoffset .5s var(--ease) 1.1s; }
.motion .reveal.in .check-ring circle, .motion .reveal.in .check-ring path { stroke-dashoffset: 0; }

/* ---------- Supporter ---------- */
.supporter { padding-block: clamp(4rem, 9vw, 7rem); text-align: center; }
.supporter .lead { margin: 1rem auto 0; max-width: 42ch; }
.icons { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem) clamp(.75rem, 2vw, 1.5rem); max-width: 50rem; margin: clamp(2.5rem, 6vw, 4rem) auto 0; list-style: none; padding: 0; }
.icons img { width: clamp(4rem, 9vw, 6rem); height: auto; aspect-ratio: 1; margin: 0 auto .7rem; border-radius: 22.5%; box-shadow: 0 10px 24px -8px rgb(92 52 32 / .35); transition: transform .5s var(--ease); }
.icons li:hover img { transform: translateY(-6px) scale(1.04); }
.icons strong { display: block; font-size: .92rem; letter-spacing: -.01em; }
.icons span { display: block; font-size: .78rem; color: var(--ink-2); }
@media (max-width: 640px) { .icons { grid-template-columns: repeat(3, 1fr); } }
.supporter .note { margin-top: 2.5rem; color: var(--ink-2); font-size: .95rem; }

/* Help band */
.help { padding-block: 0 clamp(4rem, 8vw, 6rem); }
.help .wrap { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2rem; align-items: center; background: var(--surface); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: inset 0 0 0 1px var(--line); }
.help h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.help p { color: var(--ink-2); margin-top: .4rem; }
@media (max-width: 640px) { .help .wrap { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding-block: 2.5rem 3rem; font-size: .85rem; color: var(--ink-2); }
footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; }
footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
footer nav a { color: var(--ink); text-decoration: none; }
footer nav a:hover { text-decoration: underline; }
footer p { grid-column: 1 / -1; max-width: 70ch; }
@media (max-width: 640px) { footer .wrap { grid-template-columns: 1fr; } }

/* ---------- 404: a card with nothing written on it ---------- */
.lost { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(3rem, 8vw, 6rem); }
.lost .wrap { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: clamp(2rem, 6vw, 5rem); max-width: 60rem; }
.lost .lead { margin-top: 1.1rem; max-width: 36ch; }
.lost .actions { margin-top: 2rem; }
.lost-stage { --pw: min(230px, 56vw); position: relative; padding-top: calc(var(--pw) * .25); }
.lost-card {
  position: absolute; z-index: 3; width: calc(var(--pw) * .44); aspect-ratio: 54 / 85.6; top: calc(var(--pw) * .02); left: 50%;
  transform: translate(62%, -14%) rotate(-8deg); border-radius: 9% / 5.7%;
  background: linear-gradient(150deg, #fff, #F1ECE6); box-shadow: inset 0 0 0 1px rgb(42 32 27 / .08);
  filter: drop-shadow(0 18px 24px rgb(92 52 32 / .3));
  display: grid; place-items: center;
}
.lost-card span { font: 700 calc(var(--pw) * .1)/1 -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif; letter-spacing: -.04em; color: var(--coral); }
.lost-screen { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .3em; text-align: center; }
.lost-screen strong { font-size: 4.6em; line-height: 1; letter-spacing: -.05em; background: linear-gradient(100deg, var(--coral), #F6A04D 60%, var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lost-screen span { color: rgb(42 32 27 / .6); }
.lost-screen em { font-style: normal; font-weight: 600; color: #fff; background: var(--coral); padding: .7em 1.5em; border-radius: 99px; margin-top: 1.4em; }
.lost .island { width: 12.6em; height: 2.6em; }
.island-ko { display: inline-flex; align-items: center; gap: .35em; color: #fff; font-size: .8em; font-weight: 600; white-space: nowrap; }
.island-ko svg { width: 1.1em; height: 1.1em; fill: #FF453A; }
@media (max-width: 720px) { .lost .wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; } .lost .lead { margin-inline: auto; } .lost .actions { justify-content: center; } }
@media (prefers-reduced-motion: no-preference) {
  .lost-card { animation: lost-hover 3.2s ease-in-out infinite; }
  .lost .island { animation: lost-island 3.2s var(--ease) infinite; }
  .island-ko { animation: lost-ko 3.2s var(--ease) infinite; }
  @keyframes lost-hover { 0%, 100% { transform: translate(62%, -14%) rotate(-8deg); } 50% { transform: translate(62%, -22%) rotate(-5deg); } }
  @keyframes lost-island { 0%, 15%, 85%, 100% { width: 7.2em; height: 2.1em; } 25%, 75% { width: 12.6em; height: 2.6em; } }
  @keyframes lost-ko { 0%, 20%, 80%, 100% { opacity: 0; } 30%, 70% { opacity: 1; } }
}

/* ---------- Document pages (support, privacy) ---------- */
.doc-hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(1rem, 3vw, 2rem); }
.doc-hero .wrap, .doc .wrap { max-width: 46rem; }
.doc-hero .lead { margin-top: 1.1rem; max-width: 44ch; }
.doc { padding-bottom: clamp(4rem, 8vw, 6rem); }
.doc section { margin-top: clamp(2.5rem, 6vw, 4rem); }
.doc h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 1rem; }
.doc p, .doc li { font-size: 1.0625rem; line-height: 1.6; }
.doc p + p { margin-top: .9rem; }
.doc ul { padding-left: 1.2rem; }
.doc code { font: .92em ui-monospace, "SF Mono", Menlo, monospace; background: var(--peach); padding: .1em .35em; border-radius: .35em; }
.updated { color: var(--ink-2); font-size: .9rem; margin-top: 1rem; }
.callout { background: var(--surface); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: inset 0 0 0 1px var(--line); }
.callout.accent { box-shadow: inset 0 0 0 1.5px var(--coral); }
.callout h3 { margin-bottom: .5rem; }
.callout .compat { justify-content: flex-start; margin-top: 1.2rem; }
.data { display: grid; gap: .75rem; margin-top: 1.2rem; }
.data div { background: var(--surface); border-radius: 1.1rem; padding: 1.1rem 1.3rem; box-shadow: inset 0 0 0 1px var(--line); }
.doc .data + p, .doc .compat + p { margin-top: 1.1rem; }
.data b { display: block; letter-spacing: -.01em; }
.data span { display: block; color: var(--ink-2); font-size: .95rem; margin-top: .2rem; }

/* FAQ disclosure */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.15rem .1rem; cursor: pointer; font-weight: 600; font-size: 1.0625rem; letter-spacing: -.01em; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--ink-2); transition: transform .35s var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 .1rem 1.25rem; color: var(--ink-2); max-width: 60ch; }
@media (prefers-reduced-motion: no-preference) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .view, .sheet, .nfc-card, .step { transition-duration: .2s !important; }
  .view { transform: none !important; filter: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .step > div { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ======================================================================
   Wow layer: scroll-scrubbed intro, card wall, holo tilt, icon fan.
   Base styles = static final state (no scroll-driven support or reduced motion).
   ====================================================================== */

/* ---------- Intro ---------- */
.intro-pin { display: grid; justify-items: center; text-align: center; gap: 1.5rem; padding: clamp(2.5rem, 7vw, 5rem) var(--gutter) 3rem; position: relative; overflow: hidden; }
.intro-head { position: relative; display: grid; justify-items: center; gap: 1.5rem; width: 100%; }
.intro-title { font-size: clamp(2.6rem, 7vw, 6.6rem); line-height: 1; letter-spacing: -.045em; }
.intro-title span { display: block; }
.intro-title span + span, .intro-punch { background: linear-gradient(100deg, var(--coral), #F6A04D 60%, var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro-punch { display: none; position: absolute; inset: 0 0 auto; font-size: clamp(2.6rem, 7vw, 6.6rem); line-height: 1; letter-spacing: -.045em; }
.intro-cta .lead { margin: 0 auto 1.6rem; max-width: 36ch; }
.intro-cta .actions { justify-content: center; }
.intro-stage { --pw: min(290px, 62vw, (100svh - 16rem) / 2.4); perspective: 1400px; margin-top: 2rem; }
.rig { position: relative; padding-top: calc(var(--pw) * .25); transform-style: preserve-3d; }
.fly-card { position: absolute; z-index: 3; width: calc(var(--pw) * .44); top: calc(var(--pw) * .02); left: 50%; transform: translate(62%, -14%) rotate(-8deg) scale(.92); filter: drop-shadow(0 18px 24px rgb(92 52 32 / .3)); }
.fly-card.cover { position: absolute; border-radius: 9% / 5.7%; }
.burst { position: absolute; z-index: 2; left: 50%; top: calc(var(--pw) * .18); width: calc(var(--pw) * 1.1); aspect-ratio: 1; translate: -50% -50%; pointer-events: none; }
.burst span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--coral); opacity: 0; }
.intro-glow { position: absolute; z-index: -1; left: 50%; top: 62%; width: 90vmin; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgb(232 104 74 / .35), transparent); opacity: .5; pointer-events: none; }
.island { display: grid; place-items: center; overflow: hidden; }
.island-ok { display: inline-flex; align-items: center; gap: .35em; color: #fff; font-size: .8em; font-weight: 600; white-space: nowrap; opacity: 0; }
.island-ok svg { width: 1.2em; height: 1.2em; fill: #30D158; }

/* .motion: GSAP loaded and motion allowed. The scrubbed timeline lives in main.js. */
.motion .intro { height: 250svh; }
.motion .intro-pin { position: sticky; top: 0; height: 100svh; padding: 0; display: block; perspective: 1400px; }
.motion .intro-head { position: absolute; inset: calc(3.75rem + 5svh) 0 auto; padding-inline: var(--gutter); }
.motion .intro-title, .motion .intro-punch { transform-origin: 50% 0; }
.motion .intro-punch { display: block; }
.motion .intro-stage { position: absolute; left: 50%; top: 50%; translate: -50% -50%; margin-top: 8svh; }
.motion .fly-card .blank { transition: none; }

/* ---------- Card wall (the page's one marquee) ---------- */
.wall { padding-block: clamp(3rem, 8vw, 6rem) clamp(4rem, 9vw, 7rem); overflow: hidden; text-align: center; }
.wall h2 { margin-bottom: clamp(2rem, 5vw, 3.5rem); padding-inline: var(--gutter); }
.wall-tilt { display: grid; gap: 1.2rem; transform: perspective(1200px) rotateX(18deg) rotateZ(-6deg) scale(1.12); -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.wall-row { display: flex; gap: 1.2rem; width: max-content; }
.wall-row .cover { width: clamp(6.5rem, 11vw, 9.5rem); border-radius: .9rem; box-shadow: 0 18px 30px -12px rgb(92 52 32 / .35); flex: none; }

/* ---------- Holographic tilt on the MIFARE card ---------- */
.tilt { perspective: 1000px; width: min(32rem, 100%); margin: clamp(2.5rem, 6vw, 4.5rem) auto; touch-action: pan-y; }
.tilt .chip-card { margin: 0; will-change: transform; }
.chip-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; mix-blend-mode: soft-light; opacity: var(--holo, 0);
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgb(255 255 255 / .9), transparent 40%),
    conic-gradient(from 120deg at var(--mx, 50%) var(--my, 50%), #E8684A, #F6C445, #79B76A, #9ED8E4, #B49BF0, #E8684A);
  transition: opacity .4s var(--ease);
}

/* ---------- Supporter icons: a deck that fans out ---------- */
.icons.fan, .icons.fan li { position: relative; }

/* FAQ on the home page */
.faq-home { padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 6vw, 4rem); }
.faq-home .wrap { max-width: 46rem; }
.faq-home h2 { margin-bottom: 1.5rem; }
