/* Site de présentation de ClipForge (kaito-lab.ch/clipforge/). Couleurs et rayon de l'appli :
   fond nuit, violet et rose de l'icône. Le motif : le rectangle arrondi du clip vertical 9:16. */
@font-face {
  font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-standard-normal.woff2") format("woff2-variations"), url("fonts/archivo-latin-standard-normal.woff2") format("woff2");
}

:root {
  --bg: #0b0b10; --panel: #15151d; --panel-2: #1c1c27; --ink: #ececf3; --mute: #a3a3b8;
  --violet: #6c4bff; --pink: #ff4fa3; --lilac: #cfc4ff; --paper: #f3f1fa; --night: #0b0b10;
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --r: 14px;
  --m: clamp(16px, 4vw, 56px);
  --t-sm: 15px; --t-body: 17px; --t-lead: 20px; --t-md: clamp(22px, 2.2vw, 30px); --t-lg: clamp(40px, 4.4vw, 68px); --t-xxl: clamp(56px, 7vw, 112px); --t-xl: clamp(64px, 10.5vw, 168px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--t-body)/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--pink); color: var(--night); }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
button, input { font: inherit; color: inherit; }
.skip { position: absolute; left: var(--m); top: -60px; z-index: 10; background: var(--ink); color: var(--night); padding: 10px 14px; border-radius: var(--r); }
.skip:focus { top: 12px; }

/* Boutons : une seule forme, le rectangle arrondi de l'appli. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 24px;
  border: 0; border-radius: var(--r); background: var(--night); color: var(--ink); font: 600 var(--t-body)/1.1 var(--sans);
  text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.light { background: var(--ink); color: var(--night); }
.btn.violet { background: var(--violet); color: #fff; }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }

/* --- En-tête ----------------------------------------------------------------------- */
.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 20px var(--m); font-size: var(--t-sm); position: relative; z-index: 2; }
.top .lang { justify-self: start; text-decoration: none; color: var(--mute); }
.top .lang:hover, .top .login:hover { color: var(--ink); }
.top .login { justify-self: end; text-decoration: none; font-weight: 600; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: var(--t-lead); letter-spacing: -.02em; text-decoration: none; }
.wordmark img { width: 32px; height: 32px; border-radius: 8px; }

/* --- Héros : pile de dossiers --------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(40px, 7vh, 72px); text-align: center; }
.hero h1 { font-size: var(--t-xl); font-weight: 800; font-stretch: 78%; letter-spacing: -.045em; line-height: .86; text-transform: uppercase; }
.hero .sub { max-width: 46ch; margin: 28px auto 0; padding-inline: var(--m); font-size: var(--t-lead); line-height: 1.45; }
.stack { --step: 64px; --tab: 44px; position: relative; margin: clamp(40px, 7vh, 72px) auto 0; width: min(86vw, 1500px); padding-top: calc(var(--tab) + 4 * var(--step)); }
.folder { position: absolute; inset: calc(var(--tab) + var(--i) * var(--step)) 0 0 0; border-radius: 0 var(--r) 0 0; background: var(--c); transition: transform .35s var(--ease); }
.folder:not(.front):hover { transform: translateY(-10px); }
.folder.front { position: relative; inset: auto; border-radius: 0 var(--r) var(--r) var(--r); }
.tab {
  position: absolute; bottom: 100%; left: var(--x); height: var(--tab); min-width: 210px; padding: 0 34px; display: flex; align-items: center; justify-content: center;
  background: var(--c); color: var(--on, var(--night)); font-weight: 600; font-size: var(--t-body); text-decoration: none; white-space: nowrap;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 100%, 0 100%); border-radius: 0;
}
.tab:hover { text-decoration: underline; }
.front-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 3vw, 48px); padding: 32px; text-align: left; color: var(--night); }
.front-in .cta { display: grid; gap: 18px; align-content: start; justify-items: start; }
.front-in .cta p { max-width: 30ch; }
.front-in .shot { border-radius: var(--r); overflow: hidden; background: var(--night); }

/* --- Les clips : la frise agrandie ------------------------------------------------------ */
.clips { background: var(--violet); color: #fff; min-height: 92svh; padding: clamp(56px, 9vh, 96px) var(--m); overflow: hidden; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr auto; gap: 32px clamp(24px, 4vw, 64px); }
.clips h2, .steps h2, .faq h2, .board h2, .ask h2, .guide h2 { font-weight: 700; font-stretch: 85%; letter-spacing: -.035em; line-height: .95; }
.clips h2 { font-size: var(--t-lg); }
.clips .intro { display: grid; gap: 16px; align-content: start; max-width: 40ch; }

.player { grid-column: 2; grid-row: 1 / span 2; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: end; }
.phone { position: relative; width: clamp(220px, 24vw, 340px); aspect-ratio: 9 / 16; border-radius: calc(var(--r) * 2); overflow: hidden; background: var(--night); }
.phone video, .phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone .score { position: absolute; top: 12px; left: 12px; background: var(--night); color: #fff; font-weight: 700; font-size: var(--t-sm); padding: 6px 10px; border-radius: 10px; }
.facts { display: grid; gap: 14px; align-content: end; }
.facts h3 { font-size: var(--t-md); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }

.bars { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; font-size: 15px; max-width: 420px; }
.bars i { display: block; height: 10px; border-radius: 5px; background: rgba(11, 11, 16, .35); overflow: hidden; }
.bars i b { display: block; height: 100%; width: var(--v); background: #fff; border-radius: 5px; transition: width .5s var(--ease); }
.bars span:nth-child(3n) { font-weight: 700; font-variant-numeric: tabular-nums; }
.tags { font-size: 15px; }
.track { grid-column: 1 / -1; display: grid; gap: 10px; }
.rail { position: relative; height: clamp(64px, 9vh, 96px); background: var(--night); border-radius: var(--r); }
.mark { position: absolute; top: 12px; bottom: 12px; left: var(--a); width: var(--w); min-width: 40px; border: 0; border-radius: 10px; background: var(--panel-2); color: #fff; font: 700 var(--t-lead)/1 var(--sans); cursor: pointer; transition: background-color .2s, transform .2s var(--ease); }
.mark:hover { transform: translateY(-3px); }
.mark[aria-pressed="true"] { background: var(--pink); color: var(--night); }
.track .ends { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: var(--t-sm); }
.track .ends .who { order: 3; flex-basis: 100%; text-align: center; }

/* --- Étapes : la barre de progression ----------------------------------------------------- */
.steps { background: var(--panel-2); padding: clamp(72px, 12vh, 128px) var(--m); }
.steps h2 { font-size: var(--t-xxl); margin-bottom: 64px; max-width: 14ch; }
.bar { display: flex; gap: 6px; }
.seg { flex: var(--g) 1 0; min-width: 12%; display: grid; grid-template-rows: 22vh auto; gap: 16px; }
.seg .fill { border-radius: var(--r); background: var(--c); color: var(--night); padding: 20px; transform-origin: left; }
.seg .fill strong { display: block; font-size: var(--t-md); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.seg p { max-width: 22ch; }
.steps .note { margin-top: 48px; color: var(--mute); font-size: var(--t-sm); max-width: 70ch; }

/* --- Fonctionnalités : tableau de gros plans ----------------------------------------------- */
.board { background: var(--paper); color: var(--night); padding: clamp(72px, 12vh, 128px) var(--m); }
.tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 104px; gap: 8px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r); background: var(--c, var(--night)); color: var(--on, #fff); grid-column: span var(--cw); grid-row: span var(--rh); }
.tile.head { background: transparent; color: var(--night); display: grid; align-content: start; gap: 16px; padding: 0; }
.tile.head h2 { font-size: var(--t-lg); }
.tile.head p { max-width: 46ch; }
.tile img { position: absolute; width: var(--iw, 140%); max-width: none; left: var(--ix, 8%); top: var(--iy, 8%); border-radius: 10px; transition: transform .6s var(--ease); }
.tile:hover img { transform: scale(1.04) translate(-1%, -1%); }
.tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 20px 20px; display: grid; gap: 2px; background: var(--c); }
.tile .cap b { font-size: var(--t-body); font-weight: 600; }
.tile .cap span { font-size: var(--t-sm); }
.tile .big { position: absolute; right: -0.06em; top: -0.18em; font-size: clamp(120px, 16vw, 240px); font-weight: 800; font-stretch: 75%; letter-spacing: -.05em; line-height: 1; }

/* --- Questions : accordéon de tuiles -------------------------------------------------- */
.faq { background: var(--lilac); color: var(--night); padding: clamp(72px, 12vh, 128px) var(--m); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(24px, 4vw, 64px); align-items: start; }
.faq h2 { font-size: var(--t-lg); position: sticky; top: 96px; }
.qa { display: grid; gap: 8px; }
.qa details { background: #e3dcff; border-radius: var(--r); transition: background-color .25s; }
.qa summary { list-style: none; cursor: pointer; min-height: 72px; padding: 22px 64px 22px 24px; position: relative; font-size: var(--t-lead); font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before, .qa summary::after { content: ""; position: absolute; right: 26px; top: 50%; width: 16px; height: 3px; margin-top: -1.5px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease); }
.qa summary::after { transform: rotate(90deg); }
.qa details[open] { background: var(--pink); }
.qa details[open] summary::after { transform: rotate(0); }
.qa .a { padding: 0 24px 24px; max-width: 58ch; display: grid; gap: 10px; }
.qa .a a { font-weight: 600; }

/* --- Demande d'accès : le premier écran déjà ouvert ----------------------------------------- */
.ask { background: var(--pink); color: var(--night); min-height: 90svh; padding: clamp(56px, 9vh, 96px) var(--m); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 1fr) minmax(0, 5fr) minmax(0, 1fr); align-items: center; }
.ask .close { grid-column: 1; align-self: end; display: grid; gap: 20px; }
.ask h2 { font-size: var(--t-xxl); line-height: .92; }
.ask .close p { max-width: 40ch; }
.dialog { grid-column: 3; justify-self: center; width: min(100%, 440px); background: var(--panel); color: var(--ink); border-radius: var(--r); padding: 28px; display: grid; gap: 18px; }
.dialog h3 { font-size: var(--t-md); font-weight: 700; letter-spacing: -.01em; }
.dialog label { display: grid; gap: 8px; font-size: var(--t-sm); color: var(--mute); }
.dialog input { min-height: 48px; padding: 10px 14px; border-radius: 10px; border: 1px solid #2a2a38; background: var(--bg); font-size: var(--t-body); }
.dialog input:focus { outline: 2px solid var(--violet); outline-offset: 0; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--bg); border-radius: 12px; }
.choice button { min-height: 44px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; font-size: var(--t-body); color: var(--mute); transition: background-color .2s, color .2s; }
.choice button[aria-pressed="true"] { background: var(--panel-2); color: var(--ink); font-weight: 600; }
.dialog .hint { font-size: var(--t-sm); color: var(--mute); min-height: 1.5em; }
.dialog .btn { width: 100%; }

/* --- Pied de page : le nom en blocs ----------------------------------------------------------- */
.foot { background: var(--bg); padding: 72px var(--m) 32px; }
.blocks { display: flex; gap: 4px; align-items: flex-end; height: 34svh; min-height: 200px; }
.blocks span { flex: 1 1 0; height: var(--h); background: var(--c); color: var(--night); border-radius: 10px; display: flex; align-items: flex-end; justify-content: center; font-weight: 800; font-stretch: 75%; font-size: clamp(36px, 7.5vw, 128px); line-height: .9; padding-bottom: .08em; transition: height .6s var(--ease); }
.links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 4fr); gap: 32px; margin-top: 56px; font-size: var(--t-sm); }
.links ul { list-style: none; padding: 0; display: grid; gap: 10px; align-content: start; }
.links h3 { font-size: var(--t-sm); font-weight: 600; margin-bottom: 4px; color: var(--mute); }
.links a { text-decoration: none; }
.links a:hover { text-decoration: underline; }
.links .contact { justify-self: end; text-align: right; display: grid; gap: 10px; align-content: start; }
.last { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 56px; font-size: var(--t-sm); color: var(--mute); }
.last .btn { min-height: 44px; padding: 10px 18px; font-size: var(--t-sm); }

/* --- Guide ------------------------------------------------------------------------------- */
.guide-top { padding: clamp(40px, 8vh, 88px) var(--m) clamp(48px, 8vh, 80px); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 32px clamp(24px, 4vw, 64px); align-items: start; }
.guide-top h1 { font-size: var(--t-xl); font-weight: 800; font-stretch: 78%; letter-spacing: -.045em; line-height: .88; text-transform: uppercase; }
.guide-top .sub { margin-top: 24px; font-size: var(--t-lead); max-width: 40ch; }
.index { list-style: none; padding: 0; margin-top: 40px; }
.index a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 12px 0; text-decoration: none; font-size: var(--t-lead); font-weight: 600; letter-spacing: -.02em; transition: opacity .24s, padding-left .24s var(--ease); }
.index a span { font-size: var(--t-sm); font-weight: 400; color: var(--mute); letter-spacing: 0; }
.index.dim a { opacity: .35; }
.index.dim a.on { opacity: 1; padding-left: 12px; }
.index a img { display: none; }
.preview { position: sticky; top: 24px; aspect-ratio: 16 / 11; border-radius: var(--r); overflow: hidden; background: var(--violet); }
.preview img { position: absolute; inset: 24px 24px auto 24px; width: calc(100% - 48px); border-radius: 10px; opacity: 0; transition: opacity .24s; }
.preview img.on { opacity: 1; }
.guide { padding: 0 var(--m) 24px; display: grid; gap: clamp(72px, 12vh, 128px); }
.chapter { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(24px, 4vw, 64px); align-items: start; scroll-margin-top: 24px; }
.chapter h2 { font-size: var(--t-lg); margin-bottom: 20px; }
.chapter .text { display: grid; gap: 16px; align-content: start; }
.chapter ol, .chapter ul { padding-left: 1.3em; display: grid; gap: 10px; }
.chapter li::marker { font-weight: 700; color: var(--pink); }
.chapter code, .guide kbd { font-family: var(--sans); font-weight: 600; background: var(--panel-2); padding: 1px 7px; border-radius: 6px; font-size: .92em; }
.chapter figure { border-radius: var(--r); background: var(--c, var(--violet)); padding: clamp(16px, 2.4vw, 32px); position: sticky; top: 24px; }
.chapter figure img { border-radius: 10px; margin-inline: auto; }
.chapter figcaption { margin-top: 14px; font-size: var(--t-sm); color: var(--night); }
.chapter .tip { background: var(--panel-2); border-radius: var(--r); padding: 18px 20px; }

/* --- Pages légales (même en-tête et même pied) ---------------------------------------------- */
.legal { max-width: 72ch; padding: clamp(32px, 6vh, 64px) var(--m) 72px; margin: 0 auto; display: grid; gap: 14px; }
.legal h1 { font-size: var(--t-lg); font-weight: 800; font-stretch: 80%; letter-spacing: -.04em; line-height: .95; margin-bottom: 8px; }
.legal h2 { font-size: var(--t-md); font-weight: 700; margin-top: 20px; }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; }
.legal .muted, .legal .label { color: var(--mute); font-size: var(--t-sm); }
.legal .lang { margin-top: 40px; padding-top: 32px; display: grid; gap: 14px; border-top: 0; }
.legal .lang::before { content: ""; display: block; height: 8px; border-radius: 4px; background: var(--violet); margin-bottom: 16px; }
.legal table { border-collapse: separate; border-spacing: 0 6px; width: 100%; font-size: var(--t-body); }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; background: var(--panel); }
.legal th { font-weight: 600; }
.legal tr > :first-child { border-radius: 10px 0 0 10px; }
.legal tr > :last-child { border-radius: 0 10px 10px 0; }

/* --- Valeurs propres à chaque élément (la CSP interdit les attributs style) --------------------- */
.f1 { --i: 0; --c: var(--violet); --on: #fff; } .f1 .tab { --x: 3%; }
.f2 { --i: 1; --c: var(--panel-2); --on: var(--ink); } .f2 .tab { --x: 24%; }
.f3 { --i: 2; --c: var(--paper); } .f3 .tab { --x: 45%; }
.f4 { --i: 3; --c: var(--lilac); } .f4 .tab { --x: 66%; }
.front { --c: var(--pink); } .front .tab { --x: calc(100% - 210px); }
/* Position et longueur réelles de chaque clip sur la vidéo de 514,5 s. */
.m1 { --a: 20.81%; --w: 6.32%; } .m2 { --a: 57.42%; --w: 4.49%; } .m3 { --a: 82.06%; --w: 6.72%; }
.m4 { --a: 34.83%; --w: 5.37%; } .m5 { --a: 89.72%; --w: 4.06%; }
.bars i:nth-of-type(1) b { --v: 98%; } .bars i:nth-of-type(2) b { --v: 92%; }
.bars i:nth-of-type(3) b { --v: 90%; } .bars i:nth-of-type(4) b { --v: 88%; }
.hint.above { margin-bottom: 8px; }
.fig-violet { --c: var(--violet); } .fig-pink { --c: var(--pink); } .fig-lilac { --c: var(--lilac); } .fig-paper { --c: var(--paper); }
.fig-violet figcaption { color: #fff; }
/* Durées mesurées : audio 0,5 s, transcription 11,6 s, sélection 25,5 s, rendu 21,1 s. */
.seg:nth-child(1) { --g: .5; } .seg:nth-child(2) { --g: 11.6; } .seg:nth-child(3) { --g: 25.5; } .seg:nth-child(4) { --g: 21.1; }
.seg:nth-child(1) .fill { --c: var(--violet); color: #fff; } .seg:nth-child(2) .fill { --c: var(--lilac); }
.seg:nth-child(3) .fill { --c: var(--pink); } .seg:nth-child(4) .fill { --c: var(--paper); }
.t-head { --cw: 6; --rh: 2; }
.t-bornes { --cw: 6; --rh: 4; --c: var(--violet); --iw: 118%; --ix: 6%; --iy: -48%; }
.t-silences { --cw: 3; --rh: 2; --c: var(--panel-2); --iw: 200%; --ix: 5%; --iy: 9%; }
.t-score { --cw: 3; --rh: 2; --c: var(--pink); --on: var(--night); --iw: 150%; --ix: 6%; --iy: 9%; }
.t-retouche { --cw: 3; --rh: 4; --c: var(--night); --iw: 150%; --ix: 7%; --iy: 5%; }
.t-publier { --cw: 3; --rh: 4; --c: var(--violet); --iw: 155%; --ix: 6%; --iy: -12%; }
.t-ia { --cw: 6; --rh: 2; --c: var(--lilac); --on: var(--night); --iw: 105%; --ix: 4%; --iy: 12%; }
.t-rendu { --cw: 6; --rh: 2; --c: var(--night); --iw: 150%; --ix: -40%; --iy: 8%; }
.blocks span:nth-child(1) { --h: 92%; --c: var(--violet); animation-range: entry 5% entry 64%; }
.blocks span:nth-child(2) { --h: 70%; --c: var(--lilac); animation-range: entry 10% entry 68%; }
.blocks span:nth-child(3) { --h: 84%; --c: var(--pink); animation-range: entry 15% entry 72%; }
.blocks span:nth-child(4) { --h: 62%; --c: var(--paper); animation-range: entry 20% entry 76%; }
.blocks span:nth-child(5) { --h: 100%; --c: var(--violet); animation-range: entry 25% entry 80%; }
.blocks span:nth-child(6) { --h: 76%; --c: var(--pink); animation-range: entry 30% entry 84%; }
.blocks span:nth-child(7) { --h: 88%; --c: var(--lilac); animation-range: entry 35% entry 88%; }
.blocks span:nth-child(8) { --h: 66%; --c: var(--paper); animation-range: entry 40% entry 92%; }
.blocks span:nth-child(9) { --h: 96%; --c: var(--violet); animation-range: entry 45% entry 96%; }

/* --- Apparition au défilement : animations liées au défilement, en CSS seul. Là où le navigateur
   ne les connaît pas, tout est simplement affiché. --------------------------------------------- */
@keyframes rise { from { transform: translateY(56px) scale(.97); } }
@keyframes grow { from { transform: scaleX(.05); } }
@keyframes grow-down { from { transform: scaleY(.1); } }
@keyframes block { from { transform: scaleY(.1); } }
@supports (animation-timeline: view()) {
  .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  .rise.d1 { animation-range: entry 8% entry 53%; }
  .rise.d2 { animation-range: entry 16% entry 61%; }
  .seg .fill { animation: grow linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
  .blocks span { transform-origin: bottom; animation: block linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
}

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

/* --- Tablette et téléphone ------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .tiles { grid-auto-rows: 88px; }
  .front-in { grid-template-columns: 1fr; }
  .clips { grid-template-columns: 1fr; grid-template-rows: auto; }
  .player { grid-column: 1; grid-row: auto; }
}
@media (max-width: 760px) {
  .top { grid-template-columns: auto 1fr auto; gap: 12px; }
  .wordmark { justify-self: center; }
  .hero { padding-top: 56px; }
  .hero h1 { font-size: 17vw; }
  .hero .sub { font-size: 18px; margin-top: 20px; }
  .stack { --step: 52px; --tab: 34px; width: 100%; margin-top: 40px; }
  .tab { min-width: 0; padding: 0 22px; font-size: var(--t-sm); }
  .f1 .tab, .f4 .tab { --x: 0%; }
  .f2 .tab { --x: 34%; }
  .f3 .tab, .front .tab { --x: auto; right: 0; }
  .rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 8px; height: auto; }
  .mark { position: static; width: auto; min-height: 48px; }
  .folder.front { border-radius: 0 0 var(--r) var(--r); }
  .front-in { padding: 20px 16px 16px; }
  .front-in .cta, .front-in .cta .btn { width: 100%; }
  .clips { min-height: 86svh; }

  .player { grid-template-columns: 1fr; justify-items: start; }
  .phone { width: min(72vw, 300px); }
  .steps h2 { margin-bottom: 40px; font-size: var(--t-lg); }
  .bar { flex-direction: column; height: 70svh; min-height: 520px; }
  .seg { flex: var(--g) 1 0; min-width: 0; min-height: 72px; grid-template-rows: none; grid-template-columns: 38% minmax(0, 1fr); gap: 14px; }
  .seg .fill { padding: 14px; }
  .seg .fill strong { font-size: var(--t-lead); }
  .seg p { align-self: center; }
  .seg .fill { animation-name: grow-down; transform-origin: top; }
  .tiles { grid-template-columns: 1fr 1fr; grid-auto-rows: 28vw; gap: 6px; }
  .tile { grid-column: span 1; grid-row: span 2; }
  .tile.wide { grid-column: span 2; grid-row: span 3; }
  .tile.head { grid-column: span 2; grid-row: span 2; }

  .tile .cap { padding: 10px 12px 12px; }
  .faq { grid-template-columns: 1fr; }
  .faq h2 { position: static; }
  .qa { gap: 6px; }
  .qa summary { font-size: var(--t-body); min-height: 64px; padding: 20px 56px 20px 20px; }
  .qa .a { padding: 0 20px 20px; }
  .ask { grid-template-columns: 1fr; align-content: start; gap: 40px; min-height: 84svh; padding-top: 112px; }
  .ask .close, .dialog { grid-column: 1; }
  .ask .close { align-self: start; }

  .dialog .btn { min-height: 52px; }
  .blocks { height: 22svh; min-height: 140px; flex-wrap: wrap; align-content: flex-end; }
  .blocks span { flex-basis: calc((100% - 16px) / 5); height: calc(var(--h) / 2.2); font-size: var(--t-lg); }
  .links { grid-template-columns: 1fr 1fr; }
  .links .contact { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .guide-top, .chapter { grid-template-columns: 1fr; }
  .preview { display: none; }
  .index a { grid-template-columns: 1fr; }
  .index a img { display: block; border-radius: 10px; margin-top: 10px; }
  .chapter figure { position: static; }
}
