/* ==========================================================================
   PREVZ — SITE STYLES
   A showcase site built on the app's own design system. Light surfaces are the
   app's default UI; "ink" sections borrow the editorial Year Recap language.
   ========================================================================== */

/* ---------- 1. RESET ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; }

html { overflow-x: hidden; overflow-y: auto; }
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--ui-text);
  background: var(--ui-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--brand-lilac); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 2. TYPE HELPERS ----------------------------------------------- */
.display-1, .display-2, .display-3 {
  font-weight: 600;
  letter-spacing: var(--tracking-tighter);
  line-height: var(--leading-tight);
  text-wrap: balance;
}
.display-1 { font-size: var(--display-1); }
.display-2 { font-size: var(--display-2); letter-spacing: var(--tracking-tight); }
.display-3 { font-size: var(--display-3); letter-spacing: var(--tracking-tight); }
.title { font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.lead { font-size: var(--text-lg); line-height: 1.55; color: var(--ui-text-secondary); text-wrap: pretty; }
.muted { color: var(--ui-text-secondary); }
.small { font-size: var(--text-sm); }
.tiny { font-size: var(--text-xs); line-height: 1.5; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1;
}
.eyebrow::before {
  content: "";
  width: 0.42em; height: 0.42em;
  border-radius: 1px;
  background: currentColor;
  opacity: 0.9;
}
.eyebrow--plain::before { display: none; }
.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.015em; }
.serif i, .serif em { font-style: italic; }
.mono { font-family: var(--font-mono); }
.round { font-family: var(--font-rounded); }

/* ---------- 3. LAYOUT ----------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--hairline { border-top: var(--hairline); }
.section--ink {
  background: var(--ink);
  color: #fff;
  --hairline: 1px solid rgba(255, 255, 255, 0.12);
  --ui-text-secondary: rgba(255, 255, 255, 0.62);
  overflow: hidden;
}
.section--ink .lead { color: rgba(255, 255, 255, 0.68); }
.section--ink .muted { color: rgba(255, 255, 255, 0.62); }

/* soft brand aura behind light sections */
.aura { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.aura::before, .aura::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(90px);
}
.aura::before {
  width: 46rem; height: 46rem; top: -20rem; right: -14rem;
  background: radial-gradient(circle, rgba(96, 48, 238, 0.13), transparent 66%);
}
.aura::after {
  width: 38rem; height: 38rem; bottom: -18rem; left: -12rem;
  background: radial-gradient(circle, rgba(237, 35, 127, 0.09), transparent 68%);
}
.section > .wrap { position: relative; z-index: 1; }
.stack { display: grid; gap: var(--s-4); }
.wrap, .split, .how, .article-grid, .bento, .grid-2, .grid-3, .grid-4, .hero__inner { min-width: 0; }
.wrap > * { min-width: 0; }
.stack-lg { display: grid; gap: var(--s-6); }
.head { max-width: 46rem; display: grid; gap: var(--s-4); }
.head--center { margin-inline: auto; text-align: center; justify-items: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }

/* ---------- 4. NAV -------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 247, 248, 0.72);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-smooth), background var(--dur-base) var(--ease-smooth);
}
.nav.is-stuck { border-bottom-color: rgba(16, 12, 44, 0.08); background: rgba(247, 247, 248, 0.88); }
.nav__inner {
  display: flex; align-items: center; gap: var(--s-6);
  min-height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--ui-text); }
.brand__mark { width: 26px; height: 26px; color: currentColor; flex: none; }
.brand__word {
  font-size: 1.4375rem; font-weight: 700; letter-spacing: var(--tracking-brand);
  line-height: 1;
}
.nav__links { display: flex; align-items: center; gap: var(--s-6); margin-left: var(--s-2); }
.nav__link {
  text-decoration: none; font-size: var(--text-sm); font-weight: 500;
  color: var(--ui-text-secondary);
  padding: 0.35rem 0; position: relative;
  transition: color var(--dur-fast) var(--ease-smooth);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-base) var(--ease-smooth);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--ui-text); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: var(--s-3); margin-left: auto; }
.nav__toggle { display: none; }

/* mobile nav panel */
.nav__panel { display: none; }
.nav__panel.is-open {
  display: grid; gap: var(--s-1);
  padding: var(--s-3) var(--gutter) var(--s-5);
  border-top: var(--hairline);
  background: rgba(247, 247, 248, 0.98);
}
.nav__panel .nav__link { padding: 0.7rem 0; font-size: var(--text-base); }
.nav__panel .btn { margin-top: var(--s-2); }

/* ---------- 5. BUTTONS & CHIPS ------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 3.125rem;
  padding: 0 1.55rem;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(16, 12, 44, 0.12);
  transition: transform var(--dur-fast) var(--ease-smooth),
              box-shadow var(--dur-base) var(--ease-smooth),
              background var(--dur-base) var(--ease-smooth);
}
.btn svg { width: 1em; height: 1em; flex: none; transition: transform var(--dur-base) var(--ease-spring); }
.btn:hover { box-shadow: 0 10px 30px -12px rgba(96, 48, 238, 0.55); transform: translateY(-1px); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 2.625rem; padding: 0 1.1rem; font-size: 0.875rem; }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ui-text);
  border-color: var(--ui-outline);
  box-shadow: none;
  background: color-mix(in srgb, var(--color-card) 60%, transparent);
}
.btn--ghost:hover { box-shadow: var(--shadow-1); background: var(--color-card); }
.btn--onink { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--onink:hover { box-shadow: 0 14px 40px -14px rgba(255, 255, 255, 0.4); }
.btn--ghost-onink {
  --btn-bg: rgba(255, 255, 255, 0.06); --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  box-shadow: none;
}
.btn--ghost-onink:hover { background: rgba(255, 255, 255, 0.12); box-shadow: none; }
.btn__note { display: block; font-size: var(--text-xs); color: var(--ui-text-secondary); font-weight: 500; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }

.chip {
  display: inline-flex; align-items: center; gap: 0.45em;
  padding: 0.4rem 0.7rem;
  border-radius: var(--r-pill);
  border: var(--hairline-strong);
  background: color-mix(in srgb, var(--color-card) 70%, transparent);
  font-family: var(--font-mono);
  font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ui-text-secondary);
  line-height: 1;
}
.chip--accent { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); }
.chip--ink { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.78); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

/* ---------- 6. CARDS ------------------------------------------------------ */
.card {
  background: var(--ui-surface);
  border: var(--hairline);
  border-radius: var(--r-xl);
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  box-shadow: var(--shadow-1);
}
.card--flat { box-shadow: none; }
.card--ink {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.card__icon {
  width: 2.75rem; height: 2.75rem; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: var(--s-4);
}
.card__icon svg { width: 1.25rem; height: 1.25rem; }
.card h3 { font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.card p { color: var(--ui-text-secondary); font-size: 0.9375rem; }
.card--ink h3 { color: #fff; }
.card--ink p { color: rgba(255, 255, 255, 0.66); }

/* ---------- 7. HERO ------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5.5rem); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__copy { display: grid; gap: var(--s-5); align-content: center; max-width: 34rem; }
.hero h1 { font-size: var(--display-1); }
.hero h1 .accent { color: var(--accent); }
.hero .lead { max-width: 30rem; }
.hero__proof { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); padding-top: var(--s-2); }
.hero__proof li { display: flex; align-items: center; gap: 0.45rem; font-size: var(--text-xs); color: var(--ui-text-secondary); font-weight: 500; }
.hero__proof svg { width: 0.95rem; height: 0.95rem; color: var(--accent); flex: none; }
.hero__visual { position: relative; display: grid; place-items: center; min-height: 30rem; }
.hero__stage { position: relative; display: grid; place-items: center; width: 100%; }

/* floating decorative cards around the phone */
.float {
  position: absolute;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-2);
  border-radius: var(--r-lg);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  padding: 0.7rem 0.85rem;
  z-index: 3;
}
.float--palette {
  top: 7%; left: 50%; width: 10rem;
  translate: calc(-50% - 14.6rem) 0;
  rotate: -5deg;
  animation: floaty 9s var(--ease-smooth) infinite;
}
.float--layout {
  bottom: 9%; left: 50%; width: 10.5rem;
  translate: calc(-50% + 14.9rem) 0;
  rotate: 3deg;
  animation: floaty 11s var(--ease-smooth) -3s infinite;
}
.float--label {
  bottom: 30%; left: 50%; width: auto; padding: 0.45rem 0.7rem;
  translate: calc(-50% - 15.1rem) 0;
  rotate: -2deg;
  border-radius: var(--r-pill); display: flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ui-text-secondary);
  animation: floaty 8s var(--ease-smooth) -1.5s infinite;
}
.float__head {
  font-family: var(--font-mono); font-size: 0.5625rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ui-text-secondary); margin-bottom: 0.4rem;
  display: flex; justify-content: space-between; gap: 0.5rem;
}
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}
@media (prefers-reduced-motion: reduce) {
  .float { animation: none !important; }
}

/* ---------- 8. DEVICE / APP MOCKUP --------------------------------------- */
.device {
  position: relative;
  width: min(17.5rem, 76vw);
  padding: 0.55rem;
  border-radius: 3rem;
  background: linear-gradient(160deg, #221c3a 0%, #0c0a14 40%, #17121f 100%);
  box-shadow: var(--shadow-device);
  z-index: 2;
}
.device::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.device--hero { rotate: -2deg; }
.float { will-change: translate; }
.device__screen {
  position: relative;
  border-radius: 2.5rem;
  overflow: hidden;
  background: var(--ui-bg);
  aspect-ratio: 9 / 19.2;
  display: flex; flex-direction: column;
  isolation: isolate;
}
.device__island {
  position: absolute; top: 0.5rem; left: 50%; translate: -50% 0;
  width: 4.2rem; height: 1.15rem; border-radius: var(--r-pill);
  background: #08060f; z-index: 5;
}
.device__status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.55rem 1.1rem 0.15rem;
  font-size: 0.5625rem; font-weight: 600; color: var(--ui-text);
  letter-spacing: -0.01em;
}
.device__status .battery { display: flex; gap: 2px; align-items: center; }
.device__status .battery i { display: block; width: 3px; background: currentColor; border-radius: 1px; }
.device__status .battery i:nth-child(1) { height: 3px; }
.device__status .battery i:nth-child(2) { height: 4px; }
.device__status .battery i:nth-child(3) { height: 5px; }
.device__status .battery i:nth-child(4) { height: 6px; opacity: 0.35; }

.app { display: flex; flex-direction: column; height: 100%; padding: 0.4rem 0.7rem 0; }
.app__top { display: flex; align-items: center; justify-content: space-between; margin-block: 0.55rem 0.7rem; }
.app__brand { display: inline-flex; align-items: center; gap: 0.28rem; }
.app__brand svg { width: 1.05rem; height: 1.05rem; color: var(--ui-text); }
.app__brand span { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.04em; color: var(--ui-text); line-height: 1; }
.app__icon { width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--ui-outline); color: var(--ui-text-secondary); }
.app__icon svg { width: 0.7rem; height: 0.7rem; }
.app__account { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.55rem; }
.app__avatar { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: linear-gradient(135deg, var(--brand-indigo), var(--brand-rose)); flex: none; }
.app__name { font-size: 0.6875rem; font-weight: 600; color: var(--ui-text); letter-spacing: -0.01em; line-height: 1.15; }
.app__sub { font-size: 0.5rem; color: var(--ui-text-secondary); line-height: 1.2; }
.app__eyebrow {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.4375rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ui-text-secondary);
  margin-bottom: 0.3rem;
}
.app__eyebrow b { color: var(--ui-accent); font-weight: 600; }
.app__tabs {
  margin-top: auto; display: flex; align-items: center; justify-content: space-around;
  border-top: 1px solid var(--ui-outline);
  padding: 0.45rem 0 0.7rem; font-size: 0.5rem; font-weight: 600;
  color: var(--ui-text-secondary);
}
.app__tabs .is-active { color: var(--ui-accent); }
.app__tabs .plus {
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--ui-accent); color: var(--ui-on-accent);
  display: grid; place-items: center; font-size: 0.7rem; line-height: 1;
}

/* the 3 x 3 feed grid — Instagram geometry: 3 columns, 3:4, square corners, 3px gaps */
.feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border-radius: 1px; overflow: hidden; background: var(--ui-surface); }
.tile { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #e6e4ee; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile--next { background: var(--ui-surface); display: grid; place-items: center; }
.tile--next::before {
  content: ""; position: absolute; inset: 4px;
  border: 1px dashed color-mix(in srgb, var(--ui-accent) 55%, transparent);
  border-radius: 3px;
}
.tile--next .plus-mark { position: relative; color: var(--ui-accent); font-size: 1rem; font-weight: 300; }
.tile--text { display: grid; place-items: center; padding: 0.35rem; background: var(--ink); }
.tile--text span { font-size: 0.5rem; line-height: 1.15; font-weight: 600; color: #fff; text-align: center; letter-spacing: -0.01em; }
.tile--text em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

/* palette strip under/over the phone */
.swatches { display: grid; grid-auto-flow: column; gap: 3px; border-radius: 4px; overflow: hidden; height: 1.1rem; }
.swatches i { display: block; }
.swatch-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; }
.swatch-grid i { display: block; aspect-ratio: 1; border-radius: 2px; }
.hexrow { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; margin-top: 0.3rem; }
.hexrow span { font-family: var(--font-mono); font-size: 0.4375rem; color: var(--ui-text-secondary); letter-spacing: -0.02em; }

/* A/B compare */
.ab { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.ab__card { display: grid; gap: 0.4rem; }
.ab__label {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ui-text-secondary);
}
.ab__label b { color: var(--ui-accent); font-weight: 600; }
.ab__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; border-radius: 4px; overflow: hidden; }
.ab__grid i { display: block; aspect-ratio: 3 / 4; }
.bento .ab { max-width: 22rem; }
.float .ab__label span:first-child { display: none; }
.float .ab__label { justify-content: flex-end; }
.float .ab { gap: 0.4rem; }
.bento .ab__grid i { min-height: 0; }
.ab--selected .ab__grid { outline: 1.5px solid var(--ui-accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- 9. HOW IT WORKS ---------------------------------------------- */
.how { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.how__steps { display: grid; gap: 0; align-content: center; }
.how__step { padding: 1.15rem 0; border-top: var(--hairline); display: grid; gap: 0.35rem; }
.how__step:last-child { border-bottom: var(--hairline); }
.how__step h3 { font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.02em; }
.how__step p { font-size: 0.9375rem; color: var(--ui-text-secondary); max-width: 26rem; }

.how__visual { max-width: min(24.5rem, 100%); }
.board {
  max-width: min(26rem, 100%);
  background: var(--ui-surface);
  border: var(--hairline);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
  padding: clamp(0.9rem, 1.6vw, 1.25rem);
  display: grid; gap: 0.7rem;
  rotate: 1.2deg;
}
.board__head, .board__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.board__head span:first-child { font-family: var(--font-mono); font-size: 0.5625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ui-text-secondary); }
.board__foot { font-size: 0.6875rem; color: var(--ui-text-secondary); }
.board__foot .mono { font-size: 0.5625rem; letter-spacing: 0.08em; }
.board .feed { border-radius: 2px; box-shadow: 0 1px 0 rgba(16,12,44,.06); }
.board img, .feed img { height: auto; }
.tile--num::after {
  content: attr(data-n);
  position: absolute; top: 4px; left: 4px;
  font-family: var(--font-mono); font-size: 0.4375rem; line-height: 1;
  color: #fff; background: rgba(10, 8, 20, 0.45);
  padding: 3px 4px; border-radius: 3px; letter-spacing: 0.04em;
}
.tile--lift {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  z-index: 2;
  box-shadow: 0 16px 30px -14px rgba(16, 12, 44, 0.55);
}
.tile--lift::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(160deg, rgba(255,255,255,0.22), transparent 45%);
}
.tile--lift .grab {
  position: absolute; z-index: 3; right: 5px; bottom: 5px;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: #fff; color: var(--ink);
  display: grid; place-items: center;
  box-shadow: 0 4px 10px -2px rgba(16,12,44,.4);
  font-size: 0.6rem; line-height: 1;
}
.tile--lift .grab svg { width: 0.62rem; height: 0.62rem; }

/* ---------- 9b. STEP LIST (legacy, kept for article pages) ---------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); counter-reset: step; }
.step { display: grid; gap: var(--s-3); align-content: start; }
.step__num {
  font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.14em; color: var(--accent);
  display: flex; align-items: center; gap: 0.6rem;
}
.step__num::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, var(--accent-line), transparent); }
.step h3 { font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.02em; }
.step p { font-size: 0.9375rem; color: var(--ui-text-secondary); }
.step__visual {
  border-radius: var(--r-lg); border: var(--hairline);
  background: var(--ui-surface); padding: 0.75rem; box-shadow: var(--shadow-1);
  margin-top: var(--s-1);
}

/* ---------- 10. BENTO FEATURES ------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-4); }
.bento__cell {
  grid-column: span 6;
  background: var(--ui-surface);
  border: var(--hairline);
  border-radius: var(--r-xl);
  padding: clamp(1.25rem, 2.4vw, 1.85rem);
  display: grid; gap: var(--s-4); align-content: start;
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.bento__cell--wide { grid-column: span 7; }
.bento__cell--narrow { grid-column: span 5; }
.bento__cell--full { grid-column: span 12; }
.bento__cell h3 { font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.025em; line-height: 1.25; }
.bento__cell p { color: var(--ui-text-secondary); font-size: 0.9375rem; max-width: 32rem; }
.bento__kicker {
  font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
}
.bento__visual { border-radius: var(--r-md); overflow: hidden; }

/* caption lab mock */
.capcard { display: grid; gap: 0.5rem; }
.capcard__prompt {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  font-size: 0.6875rem; color: var(--ui-text-secondary);
}
.capcard__opt {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  border: var(--hairline); border-radius: var(--r-md);
  padding: 0.7rem 0.8rem; background: var(--color-card);
  font-size: 0.8125rem; letter-spacing: -0.01em;
}
.capcard__opt--active { border-color: var(--ui-accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.capcard__meta { font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ui-text-secondary); }
.capcard__icons { display: flex; gap: 0.35rem; color: var(--ui-text-secondary); }
.capcard__icons svg { width: 0.75rem; height: 0.75rem; }

/* ---------- 11. COLOR STORY FRAMES --------------------------------------- */
.styles { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-3); }
.sframe {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-sm); overflow: hidden;
  border: var(--hairline); background: var(--cs-paper);
  display: flex; flex-direction: column;
}
.sframe__label {
  font-family: var(--font-mono); font-size: 0.5625rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ui-text-secondary);
  text-align: center; padding-top: 0.5rem;
}
.sframe__shot { background: #2a1160 url("../img/art/photo-01-violet.webp") center/cover no-repeat; }
.sframe--film .sframe__shot { background-image: url("../img/art/photo-04-plum.webp"); }
.sframe--immersive .sframe__shot { background-image: url("../img/art/photo-05-teal.webp"); }
.sframe--street .sframe__shot { background-image: url("../img/art/photo-03-rose.webp"); }
.sframe--gallery .sframe__shot { margin: 0.5rem auto 0; width: 82%; aspect-ratio: 4/3; }
.sframe--gallery .sframe__strip { margin: 0.3rem auto 0; width: 82%; height: 0.4rem; display: grid; grid-auto-flow: column; }
.sframe--gallery .sframe__strip i { display: block; }
.sframe--film { background: var(--cs-black); }
.sframe--film .sframe__shot { margin: 0.7rem auto 0; width: 80%; aspect-ratio: 4/3; }
.sframe--film .sframe__circles { display: flex; justify-content: center; gap: 0.2rem; margin-top: 0.35rem; }
.sframe--film .sframe__circles i { width: 0.42rem; height: 0.42rem; border-radius: 50%; display: block; }
.sframe--immersive .sframe__shot { position: absolute; inset: 0; }
.sframe--immersive::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,0.6)); }
.sframe--immersive .sframe__dock {
  position: relative; z-index: 1; margin-top: auto; margin-bottom: 12%;
  margin-inline: 10%; border-radius: 0.4rem; background: rgba(0,0,0,0.35);
  padding: 0.3rem; display: flex; gap: 0.2rem; justify-content: center;
}
.sframe--editorial .sframe__rule { height: 1px; background: rgba(36,36,36,0.4); margin: 0.5rem 8% 0; }
.sframe--editorial .sframe__body { display: flex; gap: 0.25rem; margin: 0.4rem 8% 0; flex: 1; }
.sframe--editorial .sframe__body b { display: block; flex: 1; background: #2a1160 url("../img/art/photo-08-lilac.webp") center/cover no-repeat; }
.sframe--editorial .sframe__body i { display: grid; width: 22%; border-radius: 1px; overflow: hidden; }
.sframe--editorial .sframe__body i span { display: block; flex: 1; }
.sframe--street .sframe__shot { position: absolute; inset: 0; }
.sframe--street::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,0.15), transparent 45%, rgba(0,0,0,0.7)); }
.sframe--street .sframe__bars { position: relative; z-index: 1; margin-top: auto; margin-left: 12%; display: flex; align-items: flex-end; gap: 0.18rem; margin-bottom: 18%; }
.sframe--street .sframe__bars i { display: block; width: 0.5rem; }
.sframe--chrome { background: var(--cs-chrome); }
.sframe--chrome .sframe__cross { display: flex; justify-content: space-between; padding: 0.5rem 8% 0; }
.sframe--chrome .sframe__cross i { width: 0.5rem; height: 0.5rem; position: relative; }
.sframe--chrome .sframe__cross i::before, .sframe--chrome .sframe__cross i::after {
  content: ""; position: absolute; background: rgba(36,36,36,0.8);
}
.sframe--chrome .sframe__cross i::before { inset: 45% 0 45% 0; }
.sframe--chrome .sframe__cross i::after { inset: 0 45% 0 45%; }
.sframe--chrome .sframe__body { display: flex; gap: 0.25rem; margin: 0.5rem 8% 0; flex: 1; }
.sframe--chrome .sframe__body b { flex: 1; background: #2a1160 url("../img/art/photo-02-cobalt.webp") center/cover no-repeat; }
.sframe--chrome .sframe__body i { display: flex; flex-direction: column; justify-content: space-between; width: 24%; }
.sframe--chrome .sframe__body i span { display: block; height: 0.4rem; border-radius: 50%; }

/* ---------- 12. RECAP CARDS (ink editorial) ------------------------------ */
.recap-stage { position: relative; display: grid; place-items: center; isolation: isolate; }
.recap-stage__glow {
  position: absolute; inset: -20% -10%; z-index: -1;
  background:
    radial-gradient(48% 42% at 72% 18%, rgba(96, 48, 238, 0.55), transparent 70%),
    radial-gradient(42% 38% at 22% 82%, rgba(237, 35, 127, 0.32), transparent 72%);
  filter: blur(30px);
}
.rcards { display: flex; align-items: center; justify-content: center; gap: 0.85rem; }
.rcards--solo .rcard { width: min(15.5rem, 62%); }
.rcard {
  --acc: var(--acc-year);
  --glow: var(--glow-year);
  --ink: #100C2C;
  position: relative;
  width: min(11.5rem, 31%);
  aspect-ratio: 9 / 16;
  border-radius: var(--r-md);
  background: var(--ink);
  color: #fff;
  padding: 0.9rem;
  display: flex; flex-direction: column; gap: 0.4rem;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  flex: none;
}
.rcard::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 45% at 88% 6%, color-mix(in srgb, var(--glow) 52%, transparent), transparent 70%),
    radial-gradient(55% 40% at 6% 96%, color-mix(in srgb, var(--acc) 14%, transparent), transparent 72%);
}
.rcard > * { position: relative; z-index: 1; }
.rcard__top { display: flex; justify-content: space-between; font-family: var(--font-rounded); font-size: 0.5rem; font-weight: 600; color: rgba(255, 255, 255, 0.86); letter-spacing: 0; }
.rcard__year {
  position: absolute; right: -12%; top: 26%; z-index: 0;
  font-family: var(--font-rounded); font-weight: 800; font-size: 6.4rem;
  letter-spacing: -0.06em; color: var(--acc); opacity: 0.07;
  rotate: -90deg; line-height: 1; pointer-events: none;
}
.rcard__moment { font-family: var(--font-serif); font-weight: 500; font-size: 1.15rem; line-height: 1.1; letter-spacing: -0.02em; }
.rcard__big { font-family: var(--font-rounded); font-weight: 800; font-size: 2.35rem; letter-spacing: -0.05em; color: var(--acc); line-height: 1; }
.rcard__line { font-family: var(--font-serif); font-style: italic; font-size: 0.72rem; color: rgba(255, 255, 255, 0.86); }
.rcard__meta { font-family: var(--font-rounded); font-size: 0.4375rem; color: rgba(255, 255, 255, 0.7); line-height: 1.35; }
.rcard__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 0.15rem; }
.rcard__grid i {
  display: block; aspect-ratio: 3/4;
  background-color: var(--ink);
  background-size: cover; background-position: center;
  opacity: 0.94;
}
.rcard__grid i:nth-child(1) { background-image: url("../img/art/photo-01-violet.webp"); }
.rcard__grid i:nth-child(2) { background-image: url("../img/art/photo-03-rose.webp"); }
.rcard__grid i:nth-child(3) { background-image: url("../img/art/photo-02-cobalt.webp"); }
.rcard__grid i:nth-child(4) { background-image: url("../img/art/photo-05-teal.webp"); }
.rcard__grid i:nth-child(5) { background-image: url("../img/art/photo-06-ember.webp"); }
.rcard__grid i:nth-child(6) { background-image: url("../img/art/photo-04-plum.webp"); }
.rcard__grid i:nth-child(7) { background-image: url("../img/art/photo-07-sand.webp"); }
.rcard__grid i:nth-child(8) { background-image: url("../img/art/photo-08-lilac.webp"); }
.rcard__grid i:nth-child(9) { background-image: url("../img/art/photo-11-peach.webp"); }
.rcard__foot {
  margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between;
  border-top: 1px solid color-mix(in srgb, var(--acc) 40%, transparent);
  padding-top: 0.45rem;
}
.rcard__brand small {
  display: block; font-family: var(--font-rounded); font-size: 0.375rem; font-weight: 700;
  letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.8);
}
.rcard__brand b { display: block; font-size: 0.6875rem; font-weight: 700; letter-spacing: -0.02em; }
.rcard__mark { width: 0.95rem; height: 0.95rem; color: var(--acc); }
.rcard--colors .rcard__grid i { aspect-ratio: 1; border-radius: 2px; }
.rcard--loved { --acc: var(--acc-loved); --glow: var(--glow-loved); --ink: var(--ink-rose); }
.rcard--saved { --acc: var(--acc-saved); --glow: var(--glow-saved); --ink: var(--ink-cobalt); }
.rcard--colors { --acc: var(--acc-colors); --glow: var(--glow-colors); --ink: var(--ink-plum); }
.rcard--rhythm { --acc: var(--acc-rhythm); --glow: var(--glow-rhythm); --ink: var(--ink-teal); }
.rcard--talk { --acc: var(--acc-talk); --glow: var(--glow-talk); --ink: var(--ink-ember); }
.rcard--side { rotate: -6deg; scale: 0.95; opacity: .95; }
.rcard--side-r { rotate: 6deg; scale: 0.95; opacity: .95; }

/* ---------- 13. THEMES ---------------------------------------------------- */
.themes { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.theme-chip {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0.85rem 0.5rem 0.55rem;
  border-radius: var(--r-pill);
  border: var(--hairline-strong);
  background: var(--color-card);
  font-size: var(--text-sm); font-weight: 500;
  color: var(--ui-text-secondary);
  transition: border-color var(--dur-fast) var(--ease-smooth), color var(--dur-fast) var(--ease-smooth), background var(--dur-fast) var(--ease-smooth);
}
.theme-chip i { display: flex; gap: 2px; }
.theme-chip i span { display: block; width: 0.5rem; height: 1rem; border-radius: 2px; }
.theme-chip[aria-pressed="true"] {
  border-color: var(--ui-text); color: var(--ui-text); background: var(--color-card);
  box-shadow: 0 0 0 3px rgba(23, 24, 28, 0.06);
}
.theme-preview {
  border: 1px solid var(--ui-outline);
  background: var(--ui-bg);
  color: var(--ui-text);
  border-radius: var(--r-xl);
  padding: 1rem;
  display: grid; gap: 0.7rem;
  transition: background var(--dur-base) var(--ease-smooth), border-color var(--dur-base) var(--ease-smooth);
}
.theme-preview__row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.theme-preview__card { background: var(--ui-surface); border: 1px solid var(--ui-outline); border-radius: var(--r-md); padding: 0.85rem; display: grid; gap: 0.5rem; }
.theme-preview__btn { background: var(--ui-accent); color: var(--ui-on-accent); border-radius: var(--r-sm); padding: 0.6rem; text-align: center; font-size: 0.75rem; font-weight: 600; }
.theme-preview__mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border-radius: 3px; overflow: hidden; }
.theme-preview__mini .ph { display: block; aspect-ratio: 3/4; overflow: hidden; background: var(--ui-surface); }
.theme-preview__mini .ph img { width: 100%; height: 100%; object-fit: cover; }
.theme-preview__mini .ph--next { display: grid; place-items: center; background: var(--ui-surface); border: 1px dashed color-mix(in srgb, var(--ui-accent) 55%, transparent); color: var(--ui-accent); font-size: 0.9rem; }

/* ---------- 14. PRIVACY / TRUST ------------------------------------------ */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.trust__item { display: grid; gap: var(--s-2); }
.trust__icon { width: 2.25rem; height: 2.25rem; color: var(--accent); }
.trust h3 { font-size: var(--text-base); font-weight: 600; letter-spacing: -0.02em; }
.trust p { font-size: 0.9375rem; color: var(--ui-text-secondary); }
.note {
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-size: var(--text-xs); color: var(--ui-text-secondary);
  border: var(--hairline); border-radius: var(--r-md);
  padding: 0.7rem 0.85rem; background: rgba(255, 255, 255, 0.6);
}
.note svg { width: 0.9rem; height: 0.9rem; flex: none; margin-top: 0.15rem; color: var(--accent); }

/* ---------- 15. FAQ ------------------------------------------------------- */
.faq { display: grid; gap: 0; border-top: var(--hairline); }
.faq__item { border-bottom: var(--hairline); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: 1.15rem 0;
  font-size: var(--text-base); font-weight: 600; letter-spacing: -0.015em;
  cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; font-family: var(--font-mono); font-size: 1.1rem; font-weight: 400;
  color: var(--accent); flex: none; transition: rotate var(--dur-base) var(--ease-spring);
  line-height: 1;
}
.faq__item[open] summary::after { rotate: 45deg; }
.faq__item p { padding: 0 0 1.25rem; color: var(--ui-text-secondary); font-size: 0.9375rem; max-width: 46rem; }
.faq__item p + p { padding-top: 0; }

/* ---------- 16. CTA BAND -------------------------------------------------- */
.cta { position: relative; overflow: hidden; border-radius: var(--r-2xl); background: var(--ink); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem); text-align: center; isolation: isolate; }
.cta::before, .cta::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(40px); }
.cta::before { width: 34rem; height: 34rem; top: -18rem; right: -8rem; background: radial-gradient(circle, rgba(96,48,238,0.75), transparent 68%); }
.cta::after { width: 28rem; height: 28rem; bottom: -16rem; left: -6rem; background: radial-gradient(circle, rgba(237,35,127,0.5), transparent 70%); }
.cta__inner { display: grid; gap: var(--s-4); justify-items: center; position: relative; z-index: 1; }
.cta h2 { font-size: var(--display-2); max-width: 32rem; }
.cta .lead { color: rgba(255, 255, 255, 0.72); max-width: 30rem; }
.cta__fine { font-size: var(--text-xs); color: rgba(255, 255, 255, 0.55); display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; justify-content: center; }
.cta__fine span { display: inline-flex; align-items: center; gap: 0.35rem; }
.cta__fine svg { width: 0.8rem; height: 0.8rem; opacity: 0.8; }
.cta__mark { width: 2.5rem; height: 2.5rem; color: rgba(255, 255, 255, 0.9); }

/* ---------- 17. FOOTER ---------------------------------------------------- */
.foot { border-top: var(--hairline); padding-block: var(--s-9) var(--s-7); }
.foot__top { display: grid; grid-template-columns: 1.4fr repeat(3, 0.8fr); gap: var(--s-6); }
.foot__brand { display: grid; gap: var(--s-3); align-content: start; max-width: 20rem; }
.foot__brand p { font-size: var(--text-sm); color: var(--ui-text-secondary); }
.foot__col h4 { font-family: var(--font-mono); font-size: 0.625rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ui-text-secondary); margin-bottom: var(--s-3); }
.foot__col ul { display: grid; gap: 0.55rem; }
.foot__col a { font-size: var(--text-sm); color: var(--ui-text); text-decoration: none; opacity: 0.82; transition: opacity var(--dur-fast); }
.foot__col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.foot__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3);
  margin-top: var(--s-8); padding-top: var(--s-5); border-top: var(--hairline);
  font-size: var(--text-xs); color: var(--ui-text-secondary);
}
.foot__social { display: flex; gap: var(--s-4); }
.foot__social a { display: inline-flex; align-items: center; gap: 0.35rem; text-decoration: none; }
.foot__social svg { width: 0.9rem; height: 0.9rem; }

/* ---------- 18. ARTICLE / SEO PAGES -------------------------------------- */
.page-hero { position: relative; padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-hero .eyebrow { margin-bottom: var(--s-4); }
.page-hero h1 { font-size: clamp(2.125rem, 4.8vw, 3.5rem); max-width: 40rem; }
.page-hero .lead { margin-top: var(--s-4); max-width: 40rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: var(--text-xs); color: var(--ui-text-secondary); margin-bottom: var(--s-4); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: 0.5; }

.prose { max-width: var(--maxw-text); display: grid; gap: var(--s-5); }
.prose h2 { font-size: var(--display-3); font-weight: 600; letter-spacing: var(--tracking-tight); margin-top: var(--s-4); }
.prose h3 { font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.02em; margin-top: var(--s-2); }
.prose p, .prose li { color: color-mix(in srgb, var(--ui-text) 88%, var(--ui-text-secondary)); }
.prose ul, .prose ol { display: grid; gap: 0.55rem; padding-left: 1.15rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote {
  border-left: 2px solid var(--accent);
  padding-left: var(--s-4);
  font-family: var(--font-serif); font-size: var(--text-lg); font-style: italic;
  color: var(--ui-text);
}
.prose figure { display: grid; gap: 0.6rem; }
.prose figcaption { font-size: var(--text-xs); color: var(--ui-text-secondary); }
.callout {
  border-radius: var(--r-lg); border: 1px solid var(--accent-line);
  background: linear-gradient(180deg, var(--accent-soft), transparent);
  padding: var(--s-5);
  display: grid; gap: 0.5rem;
}
.callout strong { font-weight: 600; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.aside-card { position: sticky; top: 6rem; display: grid; gap: var(--s-4); }
.aside-card .card { display: grid; gap: var(--s-3); }
.aside-card .card p { font-size: var(--text-sm); }
.toc { display: grid; gap: 0.5rem; font-size: var(--text-sm); }
.toc a { text-decoration: none; color: var(--ui-text-secondary); }
.toc a:hover { color: var(--ui-text); }

/* ---------- 19. REVEAL MOTION ------------------------------------------- */
/* Only hide content once JS has confirmed it can reveal it again. */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 0.7s var(--ease-smooth) var(--d, 0s), transform 0.7s var(--ease-smooth) var(--d, 0s);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.is-in { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- 20. UTILITIES ------------------------------------------------ */
.u-center { text-align: center; }
.u-mt-2 { margin-top: var(--s-2); }
.u-mt-4 { margin-top: var(--s-4); }
.u-mt-6 { margin-top: var(--s-6); }
.u-mt-8 { margin-top: var(--s-8); }
.u-hairline { height: 1px; background: var(--hairline); border: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.75rem 1rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

/* ---------- 21. RESPONSIVE ---------------------------------------------- */
@media (max-width: 1180px) {
  .float--palette, .float--label { translate: calc(-50% - 12.4rem) 0; }
  .float--layout { translate: calc(-50% + 12.7rem) 0; }
}
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); }
  .float--label { display: none; }
  .foot__top { grid-template-columns: 1fr 1fr; row-gap: var(--s-7); }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--r-sm); border: var(--hairline-strong); background: rgba(255,255,255,0.7); }
  .nav__toggle svg { width: 1.1rem; height: 1.1rem; }
  .hero__inner { grid-template-columns: 1fr; gap: var(--s-8); }
  .hero__copy { max-width: none; order: 1; }
  .hero__visual { order: 2; min-height: 0; padding-block: var(--s-6); }
  .bento__cell, .bento__cell--wide, .bento__cell--narrow { grid-column: span 12; }
  .how { grid-template-columns: 1fr; gap: var(--s-7); }
  .how__visual { order: -1; }
  .board { rotate: 0deg; max-width: min(26rem, 100%); margin-inline: auto; }
  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; gap: var(--s-4); }
  .styles { grid-template-columns: repeat(3, 1fr); }
  .article-grid { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .rcards { scale: 0.88; }
}

@media (max-width: 680px) {
  :root { --section-y: clamp(3.25rem, 11vw, 5rem); --gutter: 1.15rem; }
  .hero h1 { font-size: clamp(2.1rem, 9.2vw, 2.9rem); }
  .lead { font-size: 1rem; }
  .rcard { width: min(11rem, 62vw); }
  .device { width: min(16rem, 82vw); }
  .btn { min-height: 3rem; padding: 0 1.25rem; }
  .btn-row { gap: var(--s-2); }
  .crumb { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .float--palette, .float--layout, .float--label { display: none; }
  .device { width: min(17rem, 80vw); }
  .rcard--side, .rcard--side-r { display: none; }
  .rcards { gap: var(--s-3); }
  .styles { grid-template-columns: repeat(2, 1fr); }
  .foot__top { grid-template-columns: 1fr; }
  .cta { border-radius: var(--r-xl); }
  .theme-preview { padding: 0.85rem; }
  .page-hero h1 { font-size: clamp(1.9rem, 8vw, 2.5rem); }
}

/* dark-mode aware surfaces for readers who force dark UI */
@media (prefers-color-scheme: dark) {
  /* The showcase stays light on purpose: it mirrors the app's default UI.
     Only the document chrome adapts. */
  html { color-scheme: light; }
}

/* ==========================================================================
   22. CONVERSION / MOBILE-FIRST
   The first screen sells the year recap. Everything here is mobile-first:
   base rules target phones, min-width rules add desktop refinements.
   ========================================================================== */

/* ---------- 22.1 Sticky bottom CTA (phones only) -------------------------- */
.cta-bar { display: none; }
@media (max-width: 900px) {
  .cta-bar {
    position: fixed; inset: auto 0 0 0; z-index: 60;
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
    background: rgba(247, 247, 248, 0.94);
    backdrop-filter: saturate(1.6) blur(18px);
    -webkit-backdrop-filter: saturate(1.6) blur(18px);
    border-top: 1px solid rgba(16, 12, 44, 0.10);
    box-shadow: 0 -10px 30px -18px rgba(16, 12, 44, 0.35);
  }
  .cta-bar__text { display: grid; gap: 0.05rem; min-width: 0; }
  .cta-bar__text b {
    font-size: 0.875rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .cta-bar__text span { font-size: 0.6875rem; color: var(--ui-text-secondary); line-height: 1.2; }
  .cta-bar .btn { flex: none; min-height: 2.875rem; padding: 0 1.05rem; font-size: 0.875rem; }
  .foot { padding-bottom: calc(var(--s-7) + 4.75rem); }
}

/* ---------- 22.2 Recap poster (the shareable result) ---------------------- */
.poster {
  --acc: var(--acc-year); --glow: var(--glow-year); --ink: #100C2C; /* literal: never self-reference */
  position: relative; isolation: isolate;
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--ink); color: #fff;
  padding: clamp(0.75rem, 3vw, 1.15rem);
  display: grid; gap: 0.65rem;
  box-shadow: 0 40px 80px -42px rgba(16, 12, 44, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}
.poster::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(58% 44% at 88% 4%, color-mix(in srgb, var(--glow) 56%, transparent), transparent 70%),
    radial-gradient(52% 38% at 4% 98%, color-mix(in srgb, var(--acc) 15%, transparent), transparent 72%);
}
.poster__head, .poster__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.poster__head {
  font-family: var(--font-mono); font-size: 0.5625rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.82);
}
.poster__head b { color: var(--acc); font-weight: 600; }
.poster__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px;
  border-radius: 4px; overflow: hidden;
}
.poster__grid img {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; display: block;
}
.poster__year {
  position: absolute; right: -6%; top: 34%; z-index: -1;
  font-family: var(--font-rounded); font-weight: 800; font-size: clamp(4.6rem, 15vw, 6.4rem);
  letter-spacing: -0.06em; line-height: 1; color: var(--acc); opacity: 0.075;
  rotate: -90deg; pointer-events: none;
}
.poster__stats { display: flex; align-items: baseline; gap: 0.45rem; flex-wrap: wrap; }
.poster__big {
  font-family: var(--font-rounded); font-weight: 800; letter-spacing: -0.055em; line-height: 1;
  font-size: clamp(1.55rem, 7vw, 2.1rem); color: var(--acc);
}
.poster__label { font-size: 0.6875rem; color: rgba(255, 255, 255, 0.74); }
.poster__serif {
  font-family: var(--font-serif); font-style: italic; font-size: 0.8125rem; line-height: 1.25;
  color: rgba(255, 255, 255, 0.9);
}
.poster__filters { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.poster__chip {
  font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.25rem 0.4rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.20); color: rgba(255, 255, 255, 0.78);
}
.poster__chip.is-on { background: color-mix(in srgb, var(--acc) 22%, transparent); border-color: var(--acc); color: #fff; }
.poster__foot {
  border-top: 1px solid color-mix(in srgb, var(--acc) 40%, transparent);
  padding-top: 0.5rem;
}
.poster__brand small {
  display: block; font-family: var(--font-rounded); font-size: 0.4375rem; font-weight: 700;
  letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.8);
}
.poster__brand b { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: -0.02em; }
.poster__mark { width: 1.05rem; height: 1.05rem; color: var(--acc); flex: none; }
.poster--loved { --acc: var(--acc-loved); --glow: var(--glow-loved); --ink: var(--ink-rose); }
.poster--saved { --acc: var(--acc-saved); --glow: var(--glow-saved); --ink: var(--ink-cobalt); }
.poster--colors { --acc: var(--acc-colors); --glow: var(--glow-colors); --ink: var(--ink-plum); }
.poster--rhythm { --acc: var(--acc-rhythm); --glow: var(--glow-rhythm); --ink: var(--ink-teal); }
.poster--talk { --acc: var(--acc-talk); --glow: var(--glow-talk); --ink: var(--ink-ember); }
.poster--tilted { rotate: -2deg; }

/* ---------- 22.3 Hero recap (mobile-first) -------------------------------- */
.hero--recap { padding-block: clamp(0.75rem, 3vw, 3rem) clamp(1.5rem, 4vw, 4rem); }
.hero--recap .hero__inner { grid-template-columns: 1fr; gap: clamp(1.5rem, 5vw, 3rem); }
.hero--recap .hero__copy { max-width: 34rem; }
.hero--recap h1 { font-size: clamp(2.35rem, 11vw, 3.2rem); line-height: 0.98; }
.hero--recap .lead { font-size: 1rem; line-height: 1.5; }
.hero--recap .hero__visual { min-height: 0; }
.hero__poster-wrap { display: grid; gap: 0.7rem; width: min(21rem, 100%); margin-inline: auto; }
.hero--recap .btn-row .btn { flex: 1 1 auto; }
@media (min-width: 900px) {
  .hero--recap .hero__inner { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); align-items: center; }
  .hero--recap h1 { font-size: var(--display-1); }
  .hero--recap .lead { font-size: var(--text-lg); }
  .hero__poster-wrap { width: min(23rem, 100%); }
  .hero--recap .btn-row .btn { flex: none; }
}

/* ---------- 22.4 Steps (numbered, compact) -------------------------------- */
.howto { display: grid; gap: 0.75rem; }
.howto__step {
  display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; align-items: start;
  background: var(--ui-surface); border: var(--hairline); border-radius: var(--r-lg);
  padding: clamp(1rem, 3.4vw, 1.25rem); box-shadow: var(--shadow-1);
}
.howto__num {
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  background: var(--ink); color: #fff;
  font-family: var(--font-rounded); font-size: 0.8125rem; font-weight: 800;
}
.howto__step h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.howto__step p { font-size: 0.9375rem; color: var(--ui-text-secondary); margin-top: 0.2rem; }
@media (min-width: 780px) {
  .howto { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .howto__step { grid-template-columns: 1fr; }
}

/* ---------- 22.5 Benefits grid -------------------------------------------- */
.benefits { display: grid; gap: 0.75rem; }
.benefit {
  display: grid; gap: 0.45rem; align-content: start;
  background: var(--ui-surface); border: var(--hairline); border-radius: var(--r-lg);
  padding: clamp(0.95rem, 3.2vw, 1.25rem);
}
.benefit__icon { width: 1.6rem; height: 1.6rem; color: var(--accent); }
a.benefit { text-decoration: none; color: inherit; transition: border-color var(--dur-base) var(--ease-smooth), transform var(--dur-base) var(--ease-smooth), box-shadow var(--dur-base) var(--ease-smooth); }
a.benefit:hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: var(--shadow-1); }
a.benefit::after {
  content: "Read more ↗"; font-family: var(--font-mono); font-size: 0.5625rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-top: 0.15rem;
}
.benefit h3 { font-size: 1rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.benefit p { font-size: 0.875rem; color: var(--ui-text-secondary); line-height: 1.5; }
@media (min-width: 640px) {
  .benefits { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .benefits { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 22.6 Gallery (horizontal snap on phones) ---------------------- */
.gallery {
  display: flex; gap: 0.85rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery > * { scroll-snap-align: center; flex: 0 0 min(16rem, 78%); }
@media (min-width: 900px) {
  .gallery { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; }
  .gallery > * { flex: none; }
}

/* ---------- 22.7 Versus (most tools vs Prevz) ----------------------------- */
.versus { display: grid; gap: 0.75rem; }
.versus__col {
  border-radius: var(--r-lg); padding: clamp(1rem, 3.4vw, 1.35rem);
  border: var(--hairline); background: var(--ui-surface);
}
.versus__col--win {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, var(--accent-soft), var(--color-card) 60%);
}
.versus__col h3 {
  font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.65rem;
}
.versus__tag {
  font-family: var(--font-mono); font-size: 0.5625rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ui-text-secondary); font-weight: 500;
}
.versus__col--win .versus__tag { color: var(--accent); }
.versus__list { display: grid; gap: 0.5rem; }
.versus__list li {
  display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.5rem; align-items: start;
  font-size: 0.875rem; line-height: 1.45; color: var(--ui-text-secondary);
}
.versus__list svg { width: 1.05rem; height: 1.05rem; margin-top: 0.1rem; }
.versus__col--lose .versus__list svg { color: var(--ui-text-secondary); opacity: 0.55; }
.versus__col--win .versus__list svg { color: var(--accent); }
.versus__col--win .versus__list li { color: color-mix(in srgb, var(--ui-text) 88%, var(--ui-text-secondary)); }
@media (min-width: 780px) { .versus { grid-template-columns: 1fr 1fr; } }

/* ---------- 22.8 Section heads: tighter on phones ------------------------ */
@media (max-width: 680px) {
  .display-2 { font-size: clamp(1.75rem, 8vw, 2.15rem); }
  .section--tight { padding-block: clamp(2.25rem, 8vw, 3.25rem); }
  .head { gap: var(--s-3); }
  .head .lead { font-size: 0.9375rem; }
  .bento__cell { padding: 1.1rem; }
  .faq__item summary { padding: 1rem 0; font-size: 0.9375rem; }
  .cta { padding: 2rem 1.25rem; }
  .cta h2 { font-size: clamp(1.6rem, 7.5vw, 2rem); }
}

/* ==========================================================================
   23. MOBILE = VISUAL FIRST, THEN ACTION
   Phones get: the card, one short line, one button. Explanations live on
   desktop and on the dedicated pages — never in the way of the tap.
   ========================================================================== */
.hero__oneliner { display: none; }

@media (max-width: 899px) {
  /* 1. the poster comes before the copy */
  .hero--recap .hero__inner { display: flex; flex-direction: column; gap: 0.8rem; }
  .hero--recap .hero__visual { order: 1; }
  .hero--recap .hero__copy { order: 2; gap: 0.85rem; max-width: none; }

  /* 2. the poster is the hook: sized so the headline + button stay on screen */
  .hero__poster-wrap { width: min(14rem, 78%); }
  .hero--recap { padding-block: 0.25rem 1rem; }
  .hero--recap .small.muted { display: none; }
  .hero--recap .eyebrow { display: none; }   /* the poster already carries TOP 9 · 2026 */
  .nav__inner { min-height: 60px; }
  .hero--recap .poster { padding: 0.6rem; gap: 0.45rem; }
  .poster__head, .poster__foot { font-size: 0.5rem; }
  .poster__label { font-size: 0.625rem; }
  .hero__poster-wrap > .tiny { display: none; }
  .hero--recap .poster { box-shadow: 0 34px 70px -34px rgba(16, 12, 44, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.10); }

  /* 3. one line of copy, the long lead stays on desktop */
  .hero--recap .lead { display: none; }
  .hero__oneliner {
    display: block; font-size: 1rem; line-height: 1.45;
    color: var(--ui-text-secondary); max-width: 26rem;
  }
  .hero--recap h1 { font-size: clamp(1.9rem, 8.6vw, 2.4rem); }

  /* 4. the action is a full-width thumb target */
  .hero--recap .btn-row { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
  .hero--recap .btn-row .btn { min-height: 3.25rem; justify-content: center; }
  .hero--recap .hero__proof { display: none; }

  /* 5. no paragraphs in the way: titles + visuals only */
  .head .lead { display: none; }
  .howto__step p { display: none; }
  .howto__step { align-items: center; }
  .benefits { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .benefit { padding: 0.85rem; gap: 0.35rem; }
  .benefit h3 { font-size: 0.9375rem; }
  .benefit p { display: none; }   /* icons + titles only: no paragraphs on a phone */
  .benefit__icon { width: 1.35rem; height: 1.35rem; }

  /* 6. comparison keeps only the winning column */
  .versus { grid-template-columns: 1fr; }
  .versus__col--lose { display: none; }

  /* 7. sections breathe less */
  .section { padding-block: clamp(2.25rem, 7vw, 3.25rem); }
  .section--tight { padding-block: clamp(1.75rem, 5vw, 2.5rem); }
  .head { gap: 0.5rem; }
  .cta { padding: 1.75rem 1.15rem; }
  .cta .lead { display: none; }
  .gallery > * { flex: 0 0 min(15rem, 74%); }
}

@media (max-width: 380px) {
  .benefits { grid-template-columns: 1fr; }
}

/* ==========================================================================
   24. CARD STYLES PICKER + CAPTION PAGE
   ========================================================================== */
.tgrid {
  display: flex; gap: 0.7rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  scrollbar-width: none;
}
.tgrid::-webkit-scrollbar { display: none; }
.tgrid > * { scroll-snap-align: center; flex: 0 0 auto; }
.tgrid .rcard { width: 8.5rem; }
.tgrid__item { display: grid; gap: 0.4rem; justify-items: center; }
.tgrid__label {
  font-family: var(--font-mono); font-size: 0.5625rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.62); white-space: nowrap;
}
@media (min-width: 900px) {
  .tgrid {
    display: grid; grid-template-columns: repeat(6, 1fr); overflow: visible;
    margin-inline: 0; padding-inline: 0; gap: 1rem;
  }
  .tgrid .rcard { width: 100%; }
}

/* caption page */
.captions { display: grid; gap: 0.85rem; }
@media (min-width: 780px) { .captions { grid-template-columns: repeat(2, 1fr); } }
.caption-group h3 {
  font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.6rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.caption-group h3 span {
  font-family: var(--font-mono); font-size: 0.5625rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); font-weight: 500;
}
.caption-list { display: grid; gap: 0.45rem; }
.caption-list li {
  background: var(--ui-surface); border: var(--hairline); border-radius: var(--r-md);
  padding: 0.7rem 0.85rem; font-size: 0.9375rem; line-height: 1.45;
  display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.4rem;
}
.caption-list .num { font-family: var(--font-mono); font-size: 0.5625rem; color: var(--ui-text-secondary); padding-top: 0.25rem; }
.caption-list .hashtags { color: var(--ui-text-secondary); font-size: 0.8125rem; }
@media (max-width: 680px) {
  .tgrid .rcard { width: 7.75rem; }
  .captions { gap: 0.75rem; }
  /* the caption list is the content: keep it dense and scannable */
  .caption-list li { padding: 0.55rem 0.7rem; font-size: 0.875rem; }
  .caption-group h3 { margin-bottom: 0.45rem; }
}

/* La phrase de positionnement du hero : visible sur les deux formats */
.hero__oneliner {
  display: block;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ui-text);
}
@media (max-width: 899px) {
  .hero__oneliner { font-size: 1rem; color: var(--ui-text-secondary); }
}


/* ==========================================================================
   25. UI/UX PRO MAX — COMPLIANCE LAYER
   Règles appliquées : focus visible partout, cibles ≥ 44 px, mouvement
   partagé + prefers-reduced-motion, dark scheme, images sans CLS,
   ancrages sous la nav collante, curseur explicite.
   ========================================================================== */

/* --- 25.1 Focus visible sur tout contrôle opérable ------------------------ */
:where(a, button, summary, [tabindex]):focus-visible {
  outline: var(--focus-width) solid var(--focus-color);
  outline-offset: var(--focus-offset);
  border-radius: 6px;
}
/* ne jamais masquer le focus clavier */
:focus:not(:focus-visible) { outline: none; }

/* --- 25.2 Cibles tactiles et curseur ------------------------------------- */
.btn,
.nav__link,
.nav__toggle,
.skip,
.cta-bar .btn,
details summary,
.tabs button,
[role="tab"] {
  cursor: pointer;
}
.btn { min-height: 2.75rem; }          /* 44 px */
.btn--sm { min-height: 2.75rem; }
.nav__link { min-height: 2.75rem; display: inline-flex; align-items: center; }
details summary { min-height: 2.75rem; display: flex; align-items: center; }

/* --- 25.3 Mouvement partagé + respect de la préférence -------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
/* feedback de survol borné à 150–300 ms */
.btn,
.card,
.benefit,
.tgrid a,
.nav__link {
  transition-duration: var(--motion-base);
}

/* --- 25.4 Ancrages : ne pas passer sous la nav collante ------------------- */
:target { scroll-margin-top: 5.5rem; }

/* --- 25.5 Images : pas de décalage de mise en page ------------------------ */
img { max-width: 100%; height: auto; }
.hero__visual img,
.poster__grid img,
.tiles img,
.gallery img { aspect-ratio: var(--tile-ratio, 3 / 4); object-fit: cover; }

/* --- 25.6 Dark scheme : inversion des surfaces claires ------------------- */
@media (prefers-color-scheme: dark) {
  .nav {
    background: color-mix(in srgb, var(--color-background) 82%, transparent);
    border-bottom-color: var(--color-border);
  }
  .nav__toggle { background: var(--color-card); border-color: var(--color-border); }
  .btn { --btn-bg: #f2f3f7; --btn-fg: #0c0d11; }
  .btn--ghost { --btn-bg: transparent; --btn-fg: var(--color-foreground); border-color: var(--color-border); }
  .btn--ghost:hover { background: var(--color-card); }
  .eyebrow { color: var(--color-muted-foreground); }
  .crumbs a, .crumbs span { color: var(--color-muted-foreground); }
  .faq__item { background: var(--color-card); border-color: var(--color-border); }
  .cta-bar { background: color-mix(in srgb, var(--color-background) 88%, transparent); border-top-color: var(--color-border); }
  .lead, .small.muted, .tiny.muted { color: var(--color-muted-foreground); }
  .store-note, [data-store-note] { color: var(--color-muted-foreground); }
  .skip { background: var(--color-card); color: var(--color-foreground); }

  /* halos : intensité réduite sur fond sombre */
  .aura::before { background: radial-gradient(circle, rgba(122, 92, 255, 0.16), transparent 70%); }
  .aura::after { background: radial-gradient(circle, rgba(237, 35, 127, 0.10), transparent 70%); }

  /* surfaces translucides résiduelles */
  .btn--ghost { background: color-mix(in srgb, var(--color-card) 55%, transparent); }
  .chip { background: color-mix(in srgb, var(--color-card) 60%, transparent); }
  .cta-bar { backdrop-filter: blur(14px); }
}


/* --- 25.7 Liens de texte : cible minimale WCAG 2.5.8 (24 px) -------------- */
.crumbs a { display: inline-flex; align-items: center; min-height: 1.75rem; padding-block: 0.15rem; }
.toc a {
  display: flex; align-items: center; min-height: 2rem; padding-block: 0.3rem;
  border-radius: 6px;
}
.toc a:hover { color: var(--ui-text); background: var(--accent-soft); }
.foot a { display: inline-flex; align-items: center; min-height: 1.75rem; }


/* --- 25.8 Barre CTA mobile : pas de soulignement de lien ------------------ */
.cta-bar, .cta-bar:hover { text-decoration: none; }
.cta-bar__text b, .cta-bar__text span { text-decoration: none; }
.cta-bar__text span { color: var(--color-muted-foreground); }


/* ==========================================================================
   26. ONE SCREEN — accueil réduit à une promesse, une action
   ========================================================================== */
.hero--single {
  position: relative;
  display: grid;
  align-items: center;
  min-height: calc(100svh - 4.5rem);
  padding-block: clamp(1.5rem, 4vh, 3rem);
  overflow: clip;
}
.hero--single .hero__inner { align-items: center; }

.hero__facts {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 27rem;
}
.hero__facts li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-muted-foreground);
}
.hero__facts li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--color-accent);
}

.btn--hero {
  min-height: 3.5rem;
  padding: 0 1.9rem;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  gap: 0.6em;
}
.btn__apple { width: 1.15em; height: 1.15em; flex: none; }
.hero__note {
  font-size: var(--text-xs);
  color: var(--color-muted-foreground);
  max-width: 26rem;
}

/* mobile : le poster d'abord, l'action juste dessous */
@media (max-width: 899px) {
  .hero--single { min-height: 0; padding-block: 1.1rem 1.6rem; }
  .hero--single .hero__inner { gap: 1.35rem; }
  .hero--single .hero__visual { order: 1; }
  .hero--single .hero__copy { order: 2; gap: 0.85rem; }
  .hero--single .hero__poster-wrap { width: min(15rem, 60%); margin-inline: auto; }
  .hero--single h1 { font-size: clamp(1.75rem, 7.6vw, 2.1rem); }
  .hero__oneliner { font-size: 1rem; }
  .hero__facts { gap: 0.3rem; }
  .hero__facts li { font-size: 0.9375rem; }
  .btn--hero { width: 100%; min-height: 3.25rem; font-size: 1rem; }
  .hero__note { font-size: 0.6875rem; }
}


/* --- 26.1 Accueil un écran : ajustements mobiles ------------------------- */
@media (max-width: 899px) {
  .hero--single .hero__poster-wrap { width: min(12rem, 50%); }
  .hero--single .hero__inner { gap: 1rem; }
  .hero--single h1 { font-size: clamp(1.65rem, 7vw, 1.95rem); }
  .hero__facts li { font-size: 0.875rem; }
  .hero--single .btn-row { margin-top: 0.15rem; }
}
/* une seule action visible : pas de barre collante sur l'accueil */
body:has(.hero--single) .cta-bar { display: none; }


/* --- 26.2 Poster compact : les filtres tiennent sur une ligne ------------ */
@media (max-width: 899px) {
  .hero--single .poster__chip { font-size: 0.5rem; padding: 0.3rem 0.5rem; }
  .hero--single .poster__filters { gap: 0.3rem; flex-wrap: nowrap; }
  .hero--single .poster__head span, .hero--single .poster__head b { font-size: 0.5rem; }
}


/* --- 26.3 Barre de nav : une marque à gauche, une action à droite -------- */
.nav__inner { justify-content: space-between; }
.nav__inner > .btn { margin-left: auto; }
@media (max-width: 420px) {
  .nav__inner > .btn { padding-inline: 0.95rem; font-size: 0.8125rem; }
}


/* --- 26.4 La barre CTA ne masque jamais le contenu ----------------------- */
@media (max-width: 900px) {
  main { padding-bottom: 5.25rem; }
  body:has(.hero--single) main { padding-bottom: 0; }
}


/* --- 26.5 Poster compact : libellés de filtres sur une ligne ------------- */
.hero--single .poster__chip { white-space: nowrap; }
@media (max-width: 899px) {
  .hero--single .poster__filters .poster__chip:nth-child(3) { display: none; }
}


/* ==========================================================================
   27. LE TOP NINE EST LA PAGE
   La grille 3×3 n'est pas un mockup dans une carte : c'est la mise en page
   du site. Sur mobile elle passe en pleine largeur, bord à bord.
   ========================================================================== */
.hero__grid-label {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 0 0 0.55rem;
  font-family: var(--font-mono); font-size: 0.625rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-muted-foreground);
}
.hero__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;                            /* l'écart réel du feed Instagram */
  width: 100%;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--color-border);
}
.hero__grid img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform var(--motion-slow) var(--ease-out);
}
.hero__grid img:hover { transform: scale(1.015); }

/* mobile : la grille prend toute la largeur de l'écran, sans carte autour */
@media (max-width: 899px) {
  .hero__grid-label {
    width: 100vw; margin-inline: calc(50% - 50vw);
    padding-inline: var(--gutter);
  }
  .hero__grid {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    border-radius: 0;
    gap: 2px;
  }
  .hero--single .hero__visual { width: 100%; }
}


/* --- 27.1 Mobile : tuiles carrées pour que l'action reste dans l'écran --- */
@media (max-width: 899px) {
  .hero__grid img { aspect-ratio: 1 / 1; }
  .hero__grid-label { margin-bottom: 0.4rem; font-size: 0.5625rem; }
  .hero--single .hero__copy { gap: 0.7rem; }
  .hero__facts { gap: 0.2rem; }
}


/* --- 27.2 Grille intégrée : libellé aligné, pas d'effet « carte » -------- */
.hero--single .hero__visual { display: grid; gap: 0; place-items: stretch; align-content: start; }
.hero__grid-label { width: 100%; }
.hero__grid { border-radius: 0; }
@media (min-width: 900px) {
  .hero__grid { width: 100%; }
}


/* --- 27.3 Tuile : jamais un trou blanc pendant le chargement ------------- */
.hero__grid img { background: var(--color-border); color: transparent; }


/* ==========================================================================
   28. LA GRILLE EST UN APERÇU, PAS LA PAGE
   Le top nine ne doit jamais manger l'écran : il garde sa place de preuve
   visuelle, le titre et le bouton restent la priorité.
   ========================================================================== */
.hero__grid { width: min(100%, 23rem); justify-self: end; }
.hero__grid img { aspect-ratio: 1 / 1; }
.hero__grid-label { width: min(100%, 23rem); justify-self: end; }
.hero--single .hero__visual { justify-items: end; }

@media (max-width: 899px) {
  .hero__grid,
  .hero__grid-label {
    width: min(72%, 18rem);
    margin-inline: auto;
    justify-self: center;
  }
  .hero__grid { gap: 2px; }
  .hero--single .hero__visual { justify-items: center; }
}


/* --- 28.1 Équilibre : un peu plus de présence sans redevenir le sujet --- */
.hero__grid, .hero__grid-label { width: min(100%, 25rem); }
@media (max-width: 899px) {
  .hero__grid, .hero__grid-label { width: min(78%, 19rem); }
}


/* --- 28.2 Mobile : la grille occupe la largeur du texte, pas l'écran ----- */
@media (max-width: 899px) {
  .hero__grid, .hero__grid-label {
    width: 100%;
    justify-self: stretch;
    margin-inline: 0;
  }
}


/* --- 29. Ordre du hero : promesse → action → bénéfices ------------------ */
.hero--single .hero__note { margin-top: calc(-1 * var(--s-2)); }
.hero--single .hero__facts { margin-top: var(--s-1); }


/* ==========================================================================
   30. GRILLE 4:5 — le ratio portrait d'Instagram, comme les photos source
   ========================================================================== */
.hero__grid img { aspect-ratio: 4 / 5; }
@media (max-width: 899px) {
  .hero__grid img { aspect-ratio: 4 / 5; }
  /* 4:5 est plus haut que carré : on rétrécit la grille pour garder
     le bouton visible dans le premier écran */
  .hero__grid, .hero__grid-label { width: min(82%, 20rem); margin-inline: auto; }
}


/* ==========================================================================
   31. FOND DE CARTE — le millésime en filigrane, comme sur les cartes de l'app
   ========================================================================== */
.hero--single { position: relative; isolation: isolate; }
.hero__year {
  position: absolute; inset: 0; z-index: 0;
  display: grid; place-items: center;
  font-family: var(--font-rounded); font-weight: 800;
  font-size: clamp(9rem, 30vh, 21rem);
  letter-spacing: -0.06em; line-height: 1;
  color: var(--color-accent);
  opacity: 0.075;
  transform: rotate(-90deg);
  pointer-events: none; user-select: none;
  overflow: hidden;
}
.hero--single .wrap { position: relative; z-index: 1; }

/* la grille remonte au-dessus du filigrane */
.hero__grid, .hero__grid-label { position: relative; z-index: 1; }

/* légende de carte sous la grille */
.hero__grid-caption {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin: 0.55rem 0 0;
  width: min(100%, 25rem);
  font-size: var(--text-xs);
  color: var(--color-muted-foreground);
}
.hero__grid-serif {
  font-family: var(--font-serif); font-style: italic; font-size: 0.95rem;
  color: var(--color-foreground); opacity: 0.8;
}
.hero__grid-sign {
  font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==========================================================================
   32. GRILLE PLUS GRANDE
   ========================================================================== */
.hero__grid, .hero__grid-label, .hero__grid-caption { width: min(100%, 30rem); }
@media (max-width: 899px) {
  .hero__grid, .hero__grid-label, .hero__grid-caption {
    width: min(96%, 22rem); margin-inline: auto;
  }
  .hero__grid-caption { margin-top: 0.4rem; font-size: 0.6875rem; }
}


/* --- 32.1 Filigrane : lisible dans la zone de texte sur mobile ----------- */
@media (max-width: 899px) {
  .hero__year {
    inset: 46% 0 0 0;
    font-size: clamp(7rem, 27vh, 15rem);
    opacity: 0.085;
  }
}


/* ==========================================================================
   33. Sans eyebrow, tout remonte : moins de vide en haut, plus d'air en bas
   ========================================================================== */
.hero--single { padding-block: 0.75rem 1.5rem; }
.hero__grid-label { margin-bottom: 0.4rem; }
.hero--single .hero__copy { gap: 0.9rem; }
.hero--single .hero__note { margin-top: calc(-1 * var(--s-3)); }

@media (min-width: 900px) {
  .hero--single { padding-block: 1.25rem 2rem; }
  .hero--single .hero__copy { gap: 1.05rem; }
}


/* --- 33.1 Mobile : la copie remonte sous la grille ---------------------- */
@media (max-width: 899px) {
  .hero--single .hero__inner { gap: 0.65rem; }
}


/* ==========================================================================
   34. GRILLE 1:1 — tuiles carrées comme le feed Instagram
   ========================================================================== */
.hero__grid img { aspect-ratio: 1 / 1; }
@media (max-width: 899px) {
  .hero__grid img { aspect-ratio: 1 / 1; }
  /* carré = plus court en hauteur : on élargit un peu la grille */
  .hero__grid, .hero__grid-label, .hero__grid-caption { width: min(100%, 23rem); margin-inline: auto; }
}

/* ---------- Arrivée depuis le quiz d'un satellite ---------- */
.arrival{border-left:2px solid var(--color-accent);padding:.55rem 0 .55rem .9rem;margin:0 0 1.2rem}
.arrival__eyebrow{font-family:var(--font-mono);font-size:.625rem;letter-spacing:.18em;
  text-transform:uppercase;color:var(--color-accent);margin:0 0 .2rem}
.arrival__text{margin:0;font-size:.95rem;color:var(--color-muted-foreground)}
@media (prefers-color-scheme: dark){.arrival__text{color:var(--color-muted-foreground)}}
