/* ═══════════════════════════════════════════════════════════════════
   Cinvilo – Landingpage
   Brandbook 4.0: Deep Forest #0B3024 · Pine #236246 · Sage #9FC3A9
                  Electric Lime #D6ED57 · Warm Sand #F5F3EC · Ink #1A1A1A
   Light und Dark gleichwertig; Lime nur als Signal.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --forest: #0B3024;
  --pine: #236246;
  --sage: #9FC3A9;
  --lime: #D6ED57;
  --sand: #F5F3EC;

  --bg: #F5F3EC;
  --bg-alt: #EDEEE6;
  --surface: #FFFFFF;
  --surface-2: #F1F2EC;
  --text: #0B3024;
  --muted: #5F6D64;
  --line: #D9DCD3;
  --accent: #236246;
  --shadow: 0 18px 44px rgba(11, 48, 36, .10), 0 2px 6px rgba(11, 48, 36, .06);
  --mark: url("assets/cinvilo-symbol-forest.png");

  --top-h: 76px;
  --gutter: clamp(20px, 5vw, 72px);
  --radius: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0D1915;
  --bg-alt: #10211A;
  --surface: #152A21;
  --surface-2: #1B3328;
  --text: #F5F3EC;
  --muted: #A9BBAE;
  --line: #2D493B;
  --accent: #9FC3A9;
  --shadow: 0 18px 44px rgba(0, 0, 0, .28);
  --mark: url("assets/cinvilo-symbol-sand.png");
  color-scheme: dark;
}

/* Forest surfaces stay dark in both modes */
.slide-forest, .section-forest, .final, .hero[data-tone="forest"] .hero-controls {
  --bg: #0B3024;
  --surface: #12402F;
  --surface-2: #17493A;
  --text: #F5F3EC;
  --muted: #B6CCBD;
  --line: #2E5A47;
  --accent: #D6ED57;
  --shadow: 0 22px 50px rgba(0, 0, 0, .25);
  --mark: url("assets/cinvilo-symbol-sand.png");
}
:root[data-theme="dark"] :is(.slide-forest, .section-forest, .final) { --bg: #0A2419; --surface: #133627; --surface-2: #19402F; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--top-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--lime); color: var(--forest); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }

/* ── Type ─────────────────────────────────────────────────────────── */
h1, h2, .h1, .h2 { font-weight: 780; letter-spacing: -.05em; line-height: 1.02; }
h1, .h1 { font-size: clamp(2.8rem, 5.6vw, 6rem); }
h2 { font-size: clamp(2.2rem, 4vw, 4.2rem); }
.h2 { font-size: clamp(1.9rem, 3vw, 3rem); }
h1 em, h2 em, h3 em { font-style: normal; background: linear-gradient(transparent 60%, color-mix(in srgb, var(--lime) 72%, transparent) 60%); }
:root[data-theme="dark"] :is(h1, h2, h3) em, .slide-forest :is(h1, h2) em, .section-forest h2 em, .final h2 em { background: none; color: var(--lime); }
.eyebrow { font-size: 11px; font-weight: 780; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.eyebrow .nr { background: var(--lime); color: var(--forest); padding: 4px 7px; border-radius: 6px; letter-spacing: .04em; }
.lead { font-size: clamp(15px, 1.3vw, 19px); line-height: 1.6; color: var(--muted); max-width: 540px; margin-top: 22px; }
.label { font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.tag { font-size: 10.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; font-weight: 720; font-size: 15px; white-space: nowrap; transition: transform .2s var(--ease), filter .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); filter: brightness(.97); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 13.5px; }
.btn-primary { background: var(--forest); color: var(--sand); }
:root[data-theme="dark"] .btn-primary { background: var(--lime); color: var(--forest); }
.btn-lime { background: var(--lime); color: var(--forest); }
.btn-lime:hover { box-shadow: 0 10px 28px color-mix(in srgb, var(--lime) 45%, transparent); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.link-u { font-weight: 700; font-size: 15px; border-bottom: 1.5px solid currentColor; padding-bottom: 5px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.pill-lime { background: var(--lime); color: var(--forest); border-color: var(--lime); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.round-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--text); transition: background .2s, color .2s; }
.round-btn:hover { background: var(--lime); color: var(--forest); border-color: var(--lime); }
.round-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ── Header ───────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.top-inner { height: var(--top-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 780; font-size: 28px; letter-spacing: -.065em; }
.brand-mark { width: 33px; height: 32.5px; background: var(--mark) center / contain no-repeat; flex: none; }
.brand-mark.sm { width: 17px; height: 17px; }
.nav { display: flex; gap: 34px; font-size: 14.5px; font-weight: 560; }
.nav a { position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a.on::after { transform: scaleX(1); }
.top-actions { display: flex; align-items: center; gap: 12px; }
.theme-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 12.5px; font-weight: 700; }
.theme-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-btn .i-sun, :root[data-theme="dark"] .theme-btn .i-moon { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: transparent; place-items: center; align-content: center; gap: 5px; }
.menu-btn i { display: block; width: 16px; height: 1.8px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.menu-btn[aria-expanded="true"] i:first-child { transform: translateY(3.4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-child { transform: translateY(-3.4px) rotate(-45deg); }
.mnav { display: grid; gap: 4px; padding: 10px var(--gutter) 22px; border-top: 1px solid var(--line); }
.mnav[hidden] { display: none; }
.mnav a:not(.btn) { padding: 13px 0; font-size: 17px; font-weight: 650; border-bottom: 1px solid var(--line); }
.mnav .btn { margin-top: 14px; }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.scroll-progress i { display: block; height: 100%; width: 0; background: var(--lime); }

/* ── Posters ──────────────────────────────────────────────────────── */
.poster { position: relative; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: linear-gradient(160deg, var(--pine), var(--forest)); }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; pointer-events: none; }
.poster img.ok { opacity: 1; }
.poster .fallback { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 10px; color: var(--sand); font-weight: 750; font-size: 13px; letter-spacing: -.02em; line-height: 1.1; }

/* ═══ Hero slider ═══════════════════════════════════════════════════ */
.hero { position: relative; overflow: hidden; }
.hero-track { display: flex; transition: transform .9s cubic-bezier(.65, 0, .25, 1); touch-action: pan-y; cursor: grab; will-change: transform; }
.hero-track.dragging { transition: none; cursor: grabbing; }
.slide { flex: 0 0 100%; min-width: 0; background: var(--bg); color: var(--text); user-select: none; -webkit-user-select: none; }
.slide[data-tone="alt"] { --bg: var(--bg-alt); }
.slide-inner { min-height: clamp(620px, calc(100svh - var(--top-h)), 880px); display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(28px, 5vw, 80px); padding-top: 48px; padding-bottom: 130px; }
.copy { max-width: 640px; }
.ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 34px; }
.cats { margin-top: 56px; font-size: 12px; font-weight: 780; letter-spacing: .14em; text-transform: uppercase; display: flex; gap: 12px; }
.cats span { color: var(--muted); }

/* Text slides in from the right as its slide arrives; the visual follows a beat later */
.s-in { opacity: 0; transform: translateX(60px); transition: opacity .4s, transform .5s; }
.slide.on .s-in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform 1s var(--ease); transition-delay: calc(.25s + var(--d, 0) * 90ms); }
.s-vis { opacity: 0; transform: translateX(110px) scale(.95); transition: opacity .4s, transform .5s; position: relative; }
.slide.on .s-vis { opacity: 1; transform: none; transition: opacity 1s var(--ease) .35s, transform 1.2s var(--ease) .35s; }
.visual-center { display: grid; place-items: center; }

/* Slide 1 · app window */
.appwin-wrap { position: relative; max-width: 600px; margin-left: auto; padding: 16px; }
.appwin-wrap::before { content: ""; position: absolute; inset: 0 8% 6% 1%; background: color-mix(in srgb, var(--sage) 35%, var(--bg)); border-radius: 30px; transform: rotate(-4deg); transition: transform 1.4s var(--ease) .5s; }
.slide:not(.on) .appwin-wrap::before { transform: rotate(4deg) translateX(40px); }
.appwin { position: relative; border-radius: 20px; border: 1px solid #315A4C; background: #092D23; color: #fff; box-shadow: 0 22px 60px rgba(11, 48, 36, .28); overflow: hidden; }
.appwin-top { height: 52px; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; border-bottom: 1px solid #1A5540; }
.dots { display: flex; gap: 5px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: #336553; }
.appwin-brand { display: flex; align-items: center; gap: 7px; font-weight: 780; letter-spacing: -.04em; }
.appwin-brand .brand-mark, .app-bar .brand-mark { --mark: url("assets/cinvilo-symbol-sand.png"); }
.appwin-icons { font-size: 15px; color: #C9D8CD; }
.appwin-tabs { display: flex; gap: 8px; padding: 20px 20px 18px; }
.appwin-tabs span { border-radius: 50px; background: #1B4938; padding: 8px 14px; font-size: 11px; }
.appwin-tabs .on { background: var(--lime); color: var(--forest); font-weight: 700; }
.appwin-sub { display: flex; justify-content: space-between; align-items: center; padding: 0 20px 14px; }
.appwin-sub small { font-size: 11px; color: #A4C6B0; }
.appwin-posters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; padding: 0 20px 24px; }
.appwin-posters > span { display: block; }
.slide.on .appwin-posters > span { animation: rise .9s var(--ease) both; animation-delay: calc(.45s + var(--i, 0) * .1s); }
.appwin-bottom { border-top: 1px solid #21513F; display: flex; justify-content: space-between; gap: 8px; color: #A5BFB1; padding: 14px 20px; font-size: 10px; }
.float { position: absolute; z-index: 2; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 13px 15px; font-size: 13px; animation: bob 5s ease-in-out infinite; }
.float-a { left: -26px; bottom: 12%; display: grid; gap: 3px; min-width: 186px; }
.float-a strong { font-size: 16px; letter-spacing: -.02em; }
.float-a span { color: var(--muted); }
.float-k { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.float-b { right: -8px; top: 22%; display: flex; align-items: center; gap: 8px; font-weight: 760; background: var(--lime); color: var(--forest); border-color: var(--lime); animation-delay: -2.5s; }
.match-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--forest); }
.mini-bar { display: block; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 6px; }
.mini-bar i { display: block; height: 100%; width: 0; background: var(--lime); border-radius: 4px; transition: width 1.2s var(--ease) 1s; }
.slide.on .float-a .mini-bar i { width: 72%; }
@keyframes bob { 50% { transform: translateY(-9px); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* Slide 2 · tracking */
.track-card { overflow: hidden; max-width: 500px; width: 100%; margin-left: auto; }
.track-head { position: relative; height: 160px; background: var(--forest) center / cover no-repeat; display: flex; align-items: flex-end; padding: 18px 20px; }
.track-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(7, 26, 20, .85)); }
.track-head-copy { position: relative; display: grid; gap: 2px; color: var(--sand); }
.track-head-copy .tag { color: #C9D8CD; }
.track-head-copy strong { font-size: 24px; letter-spacing: -.03em; }
.track-body { padding: 18px 20px 20px; }
.bar { height: 6px; border-radius: 6px; background: var(--surface-2); margin: 12px 0 16px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--lime); border-radius: 6px; transition: width .45s var(--ease); }
.eps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ep { aspect-ratio: 1.45; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); display: grid; place-items: center; font-weight: 750; font-size: 14px; position: relative; transition: background .3s, color .3s, transform .15s, border-color .3s; }
.ep:active { transform: scale(.94); }
.ep[aria-pressed="true"] { background: var(--forest); color: var(--sand); border-color: var(--forest); animation: tick .4s var(--ease); }
:root[data-theme="dark"] .ep[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); }
.ep[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 4px; right: 6px; font-size: 10px; color: var(--lime); }
.ep.next { box-shadow: inset 0 0 0 2px var(--lime); }
@keyframes tick { 40% { transform: scale(1.1); } }
.hint-line { margin-top: 14px; font-size: 12px; color: var(--muted); text-align: center; }
.stat-float { position: absolute; left: 2%; bottom: -26px; padding: 16px 20px; display: grid; gap: 2px; animation: bob 6s ease-in-out infinite; }
.stat-float strong { font-size: 30px; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.stat-float span { font-size: 12px; color: var(--muted); }

/* Slide 3 · discovery */
.fan { position: absolute; right: 4%; top: 50%; width: 46%; height: 0; }
.fan-p { position: absolute; width: 150px; top: -120px; left: 0; transition: transform 1.1s var(--ease) .6s; box-shadow: 0 14px 30px rgba(0, 0, 0, .3); border-radius: 10px; }
.slide.on .fan-p:nth-child(1) { transform: translate(110px, -70px) rotate(14deg); }
.slide.on .fan-p:nth-child(2) { transform: translate(150px, 40px) rotate(24deg); }
.slide.on .fan-p:nth-child(3) { transform: translate(60px, 110px) rotate(6deg); }
.rec-card { position: relative; display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 18px; align-items: center; max-width: 460px; }
.rec-body { display: grid; gap: 6px; }
.rec-title { font-size: 26px; letter-spacing: -.035em; }
.match { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 13px; margin-top: 4px; }
.ring { --p: 90; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--lime) calc(var(--p) * 1%), var(--surface-2) 0); position: relative; font-variant-numeric: tabular-nums; }
.ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--surface); }
.ring b { position: relative; font-size: 16px; display: flex; align-items: baseline; }
.ring small { font-size: 9px; margin-left: 1px; }
.because { font-size: 13px; color: var(--muted); }
.because b { color: var(--text); font-weight: 650; }

/* Slide 4 · swipe deck (plays by itself) */
.counter { margin-top: 30px; display: inline-flex; align-items: baseline; gap: 10px; font-weight: 650; color: var(--muted); }
.counter span { font-size: 52px; font-weight: 780; letter-spacing: -.06em; color: var(--text); font-variant-numeric: tabular-nums; }
.deck { position: relative; width: min(290px, 64vw); aspect-ratio: 2 / 3; }
.swipe-card { position: absolute; inset: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(11, 48, 36, .3); transition: transform .6s var(--ease), opacity .6s; }
.swipe-card .poster { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; }
.swipe-meta { position: absolute; inset: auto 0 0 0; padding: 56px 18px 16px; background: linear-gradient(transparent, rgba(5, 20, 15, .92)); color: var(--sand); display: grid; gap: 2px; }
.swipe-meta strong { font-size: 20px; letter-spacing: -.03em; }
.swipe-meta span { font-size: 12px; color: #C9D8CD; }
.stamp { position: absolute; top: 22px; padding: 6px 12px; border: 3px solid; border-radius: 8px; font-weight: 800; font-size: 20px; letter-spacing: .04em; opacity: 0; transition: opacity .25s; }
.stamp.yes { left: 18px; color: var(--lime); border-color: var(--lime); transform: rotate(-12deg); }
.stamp.no { right: 18px; color: #FF8B7A; border-color: #FF8B7A; transform: rotate(12deg); }

/* Slide 5 · notifications drop in one by one */
.notes { display: grid; gap: 12px; max-width: 520px; margin-left: auto; }
.note { display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; opacity: 0; transform: translateY(-14px) scale(.97); }
.slide.on .note { animation: drop .7s var(--ease) forwards; animation-delay: calc(.6s + var(--n) * .45s); }
.note-poster { width: 42px; flex: none; }
.note-poster .poster { border-radius: 6px; }
.note strong { display: block; font-size: 15px; letter-spacing: -.01em; }
.note small { color: var(--muted); font-size: 12px; }
.note::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); flex: none; }
.slide.on .note::after { animation: ping 1.8s ease-out infinite; animation-delay: calc(1.2s + var(--n) * .45s); }
@keyframes drop { to { opacity: 1; transform: none; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--lime) 80%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }

/* Controls */
.hero-controls { position: absolute; left: 0; right: 0; bottom: 30px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; color: var(--text); }
.hero-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 150px); gap: 14px; flex: 1; }
.hero-tabs button { all: unset; cursor: pointer; display: grid; gap: 10px; font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.hero-tabs button:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; border-radius: 4px; }
.hero-tabs .t-nr { color: var(--text); margin-right: 6px; }
.hero-tabs .t-bar { height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--muted) 35%, transparent); overflow: hidden; }
.hero-tabs .t-bar i { display: block; height: 100%; width: 0; background: var(--lime); }
.hero-tabs [aria-current="true"] { color: var(--text); }
.hero-tabs [aria-current="true"] .t-bar i { animation: fill var(--dur, 7s) linear forwards; }
.hero.paused .hero-tabs [aria-current="true"] .t-bar i { animation-play-state: paused; }
.hero-tabs .done .t-bar i { width: 100%; }
@keyframes fill { to { width: 100%; } }
.hero-arrows { display: flex; gap: 10px; }

/* ── Ticker ───────────────────────────────────────────────────────── */
.ticker { background: var(--forest); color: var(--sand); overflow: hidden; padding: 22px 0; }
.ticker-run { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ticker-run span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-size: clamp(22px, 2.6vw, 34px); font-weight: 760; letter-spacing: -.04em; white-space: nowrap; }
.ticker-run span::after { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--lime); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ═══ Sections ══════════════════════════════════════════════════════ */
.section { padding: clamp(72px, 9vw, 120px) 0; background: var(--bg); color: var(--text); overflow-x: clip; }
.section-alt { --bg: var(--bg-alt); }
.section-label { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-top: 18px; font-size: 10.5px; letter-spacing: .14em; font-weight: 800; text-transform: uppercase; }
.section-label span:last-child { color: var(--muted); font-weight: 550; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 36px; margin: 28px 0 34px; }
.section-head p { max-width: 340px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }

/* Scroll reveals */
.rv, .rv-l, .rv-r { opacity: 0; transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.rv { transform: translateY(34px); }
.rv-l { transform: translateX(-60px); }
.rv-r { transform: translateX(60px); }
.in.rv, .in.rv-l, .in.rv-r { opacity: 1; transform: none; }

/* 01 Discovery grid */
.tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); border-radius: 30px; background: transparent; padding: 10px 18px; font-size: 13.5px; transition: background .25s, color .25s, border-color .25s; }
.chip:hover { border-color: var(--text); }
.chip.on { background: var(--forest); color: var(--sand); border-color: var(--forest); }
:root[data-theme="dark"] .chip.on { background: var(--lime); color: var(--forest); border-color: var(--lime); }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); padding: 10px 16px; border-radius: 30px; min-width: 240px; }
.search span { font-size: 19px; line-height: 1; color: var(--muted); }
.search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 22px 14px; }
.gcard { min-width: 0; }
.gcard.hide { display: none; }
.gcard .poster { transition: transform .45s var(--ease), box-shadow .45s; }
.gcard:hover .poster { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 18px 34px rgba(11, 48, 36, .25); }
.gcard.pop { animation: rise .55s var(--ease) both; animation-delay: calc(var(--i) * 35ms); }
.add { position: absolute; z-index: 2; right: 9px; bottom: 9px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .65); background: rgba(11, 48, 36, .72); color: #fff; font-size: 18px; display: grid; place-items: center; transition: transform .2s, background .2s; }
.add:hover { transform: scale(1.1); }
.add[aria-pressed="true"] { background: var(--lime); color: var(--forest); border-color: var(--lime); }
.gmeta { padding: 11px 2px 0; }
.gmeta span { font-size: 9.5px; letter-spacing: .07em; font-weight: 650; color: var(--muted); text-transform: uppercase; }
.gmeta strong { display: block; font-size: 13px; font-weight: 680; line-height: 1.3; margin-top: 3px; }
.empty { padding: 30px; text-align: center; color: var(--muted); }

/* 02 Benefits */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: clamp(70px, 9vw, 120px); }
.benefits article { border-top: 1px solid var(--line); padding-top: 22px; }
.b-ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; border: 1px solid var(--line); margin-bottom: 30px; color: var(--accent); transition: background .3s, color .3s, transform .3s var(--ease); }
.b-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.benefits article:hover .b-ic { background: var(--lime); color: var(--forest); border-color: var(--lime); transform: rotate(-6deg); }
.benefits h3 { font-size: 20px; letter-spacing: -.03em; margin-bottom: 8px; }
.benefits p { font-size: 14px; color: var(--muted); line-height: 1.5; max-width: 250px; }

/* Feature rows */
.feature { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(30px, 5vw, 80px); align-items: center; margin-bottom: clamp(70px, 9vw, 120px); }
.feature-rev .feature-copy { order: 2; }
.feature-vis { display: grid; gap: 16px; }
.feature-vis-2 { grid-template-columns: 1.1fr .9fr; align-items: start; }
.chain-card, .prov-card { padding: 20px; }
.chain { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.chain button { all: unset; cursor: pointer; display: grid; gap: 8px; width: 100%; border-radius: 12px; }
.chain button:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.chain .poster { transition: transform .35s var(--ease), box-shadow .35s, opacity .35s; }
.chain[data-active] button:not(.on) .poster { opacity: .55; }
.chain button.on .poster { transform: translateY(-8px); box-shadow: 0 0 0 3px var(--lime); }
.chain-name { font-size: 12px; font-weight: 650; line-height: 1.25; }
.chain-role { font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); min-height: 12px; }
.chain button.on .chain-role { color: var(--text); }
.provs { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0; }
.provs img { width: 48px; height: 48px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); transition: transform .3s var(--ease); }
.provs img:hover { transform: translateY(-4px) rotate(-4deg); }
.recap-card, .cal-card { padding: 20px; display: grid; gap: 10px; align-content: start; }
.recap-text { font-size: 14px; line-height: 1.55; min-height: 110px; }
.recap-text.typing::after { content: "▍"; animation: blink 1s steps(1) infinite; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 4px; }
.day { display: grid; gap: 6px; justify-items: center; font-size: 10.5px; font-weight: 650; color: var(--muted); }
.day b { width: 100%; aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--text); font-size: 12.5px; }
.day.has b { background: var(--lime); color: var(--forest); }
.day.today b { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-note { font-size: 12.5px; line-height: 1.6; color: var(--muted); }

/* Extras */
.extras-head { margin-bottom: 30px; max-width: 900px; }
.extras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.extra { padding: 20px; display: grid; gap: 6px; align-content: start; min-height: 150px; position: relative; overflow: hidden; transition: transform .35s var(--ease); }
.extra:hover { transform: translateY(-4px); }
.extra .ic { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); margin-bottom: 10px; }
.extra .ic svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.extra strong { font-size: 15.5px; letter-spacing: -.015em; }
.extra p { font-size: 13px; line-height: 1.45; color: var(--muted); }
.extra.hl { background: var(--forest); color: var(--sand); border-color: var(--forest); --muted: #B6CCBD; --line: #2E5A47; --accent: var(--lime); }
.extra .save { position: absolute; right: 16px; top: 18px; }

/* 03 Community */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 100px); align-items: center; }
.split h2 { margin-top: 28px; }
.switch { display: inline-flex; margin-top: 32px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.switch button { border: 0; background: transparent; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); transition: background .3s, color .3s; }
.switch button[aria-checked="true"] { background: var(--lime); color: var(--forest); }
.mode-stage { display: grid; justify-items: center; }
.mode-view { width: min(460px, 100%); animation: pop .5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.lock-card, .profile-card { padding: 28px; }
.lock-card { display: grid; justify-items: start; gap: 8px; }
.lock { width: 54px; height: 54px; border-radius: 14px; background: var(--lime); display: grid; place-items: center; color: var(--forest); margin-bottom: 6px; }
.lock svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.lock-card strong { font-size: 26px; letter-spacing: -.03em; }
.ticks { margin-top: 10px; width: 100%; border-top: 1px solid var(--line); }
.ticks li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ticks li::before { content: "✓"; color: var(--lime); font-weight: 800; margin-right: 10px; }
.profile-top { display: flex; align-items: center; gap: 12px; }
.profile-top > span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.profile-top small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--sage), var(--pine)); color: var(--forest); display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none; }
.profile-stats { display: flex; gap: 18px; margin: 18px 0; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.profile-stats b { color: var(--text); }
.feed { display: grid; gap: 8px; }
.feed li { padding: 11px 13px; border-radius: 12px; background: var(--surface-2); font-size: 13px; line-height: 1.45; animation: rise .5s var(--ease) both; }
.feed li:nth-child(2) { animation-delay: .1s; } .feed li:nth-child(3) { animation-delay: .2s; }
.feed b { color: var(--lime); font-weight: 700; margin-right: 4px; }
.feed em { font-style: normal; font-weight: 700; margin-left: 6px; }

/* 04 Categories */
.cats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat { position: relative; overflow: hidden; background: var(--forest); color: var(--sand); border-radius: 14px; padding: 24px; min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; isolation: isolate; transition: transform .4s var(--ease); }
.cat:nth-child(2) { background: #1B4E3D; } .cat:nth-child(3) { background: #2B654D; }
:root[data-theme="dark"] .cat { border: 1px solid #315441; }
.cat:hover { transform: translateY(-4px); }
.cat h3 { font-size: clamp(38px, 4.2vw, 58px); letter-spacing: -.055em; margin-top: auto; }
.cat-nr { font-size: 11px; letter-spacing: .18em; color: var(--lime); font-weight: 700; }
.cat-sub { font-size: 13px; margin-top: 4px; }
.cat-fan { position: absolute; right: 20px; top: 22px; width: 160px; height: 160px; z-index: -1; }
.cat-fan .poster { position: absolute; right: 0; top: 0; width: 86px; border-radius: 8px; box-shadow: 0 10px 22px rgba(0, 0, 0, .35); transition: transform .6s var(--ease); }
.cat-fan .poster:nth-child(1) { transform: translateX(-28px) rotate(-16deg); }
.cat-fan .poster:nth-child(2) { transform: translateX(-14px) rotate(-10deg); }
.cat-fan .poster:nth-child(3) { transform: rotate(-4deg); }
.cat:hover .cat-fan .poster:nth-child(1) { transform: translate(-92px, 20px) rotate(-18deg); }
.cat:hover .cat-fan .poster:nth-child(2) { transform: translate(-44px, 6px) rotate(-6deg); }
.cat:hover .cat-fan .poster:nth-child(3) { transform: translate(6px, -4px) rotate(8deg); }

/* 05 Devices */
.stats { display: flex; gap: 40px; margin-top: 36px; }
.stats div { display: grid; gap: 4px; }
.stats strong { font-size: clamp(34px, 3.6vw, 48px); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.stats span { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.devices { position: relative; min-height: 400px; display: grid; align-content: center; }
.laptop { width: 84%; max-width: 580px; }
.laptop-screen { aspect-ratio: 16 / 10; border-radius: 14px 14px 0 0; border: 10px solid #101A16; border-bottom-width: 14px; background: #0D1915; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.laptop-base { height: 14px; margin: 0 -6%; border-radius: 0 0 14px 14px; background: linear-gradient(#C9CEC6, #9AA39B); }
:root[data-theme="dark"] .laptop-base { background: linear-gradient(#3A4A42, #26332D); }
.app-bar { display: flex; align-items: center; gap: 14px; padding: 10px 12px; }
.app-tabs { display: flex; gap: 6px; }
.app-tabs i { font-style: normal; font-size: 9px; font-weight: 650; color: #A9BBAE; padding: 4px 8px; border-radius: 999px; background: #1B3328; }
.app-tabs i.on { background: var(--lime); color: var(--forest); }
.app-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; padding: 4px 12px 12px; align-content: start; }
.app-grid .poster { border-radius: 5px; }
.devices.in .app-grid .poster { animation: rise .6s var(--ease) both; animation-delay: calc(var(--i) * 50ms + .4s); }
.phone { position: absolute; right: 0; bottom: -10px; width: 34%; max-width: 200px; transition: transform 1.2s var(--ease) .3s; }
.devices:not(.in) .phone { transform: translateY(60px) rotate(6deg); }
.phone-screen { aspect-ratio: 9 / 19.5; border-radius: 30px; border: 7px solid #101A16; background: #0D1915; overflow: hidden; position: relative; display: grid; grid-template-rows: 1fr auto auto; box-shadow: var(--shadow); }
.phone-notch { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 34%; height: 14px; border-radius: 10px; background: #101A16; z-index: 2; }
.phone-poster { min-height: 0; }
.phone-poster > .poster { height: 100%; border-radius: 0; aspect-ratio: auto; }
.phone-copy { display: grid; gap: 2px; padding: 10px 12px; color: var(--sand); font-size: 10px; }
.phone-copy strong { font-size: 13px; }
.phone-copy span { color: #A9BBAE; }
.phone-tabs { display: flex; justify-content: space-around; padding: 9px 10px 12px; border-top: 1px solid #22382E; }
.phone-tabs i { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid #5E7466; }
.phone-tabs i.on { background: var(--lime); border-color: var(--lime); }
.sync { position: absolute; left: 4%; bottom: 6%; box-shadow: var(--shadow); animation: bob 5s ease-in-out infinite; }

/* Final */
.final { position: relative; overflow: hidden; background: var(--bg); color: var(--text); padding: clamp(90px, 12vw, 160px) 0; text-align: center; }
.final-rows { position: absolute; inset: -40px 0; display: grid; gap: 14px; align-content: center; opacity: .17; transform: rotate(-6deg) scale(1.15); pointer-events: none; }
.final-row { display: flex; gap: 14px; width: max-content; animation: marquee 80s linear infinite; }
.final-row.rev { animation-direction: reverse; animation-duration: 95s; }
.final-row .poster { width: 130px; flex: none; border-radius: 8px; }
.final::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, var(--bg) 25%, transparent 78%); pointer-events: none; }
.final-inner { position: relative; z-index: 1; display: grid; justify-items: center; }
.final-mark { width: 84px; height: auto; }
.final .eyebrow { margin: 26px 0 22px; }
.final .lead { margin-left: auto; margin-right: auto; }
.final .ctas { justify-content: center; }

.footer { background: #08120E; color: #F5F3EC; padding: 30px 0; --mark: url("assets/cinvilo-symbol-sand.png"); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 13px; }
.footer .brand { font-size: 23px; }
.footer .brand-mark { width: 27px; height: 26.5px; }
.footer .tmdb { color: #8DB29B; font-size: 11.5px; max-width: 440px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 60; transform: translate(-50%, 14px); opacity: 0; pointer-events: none; background: var(--lime); color: var(--forest); font-weight: 750; font-size: 14px; padding: 12px 20px; border-radius: 999px; box-shadow: 0 12px 30px rgba(11, 48, 36, .25); transition: opacity .3s, transform .3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ═══ Tablet ════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .extras { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav { gap: 20px; }
  .feature-vis-2 { grid-template-columns: 1fr; }
  .hero-tabs { grid-auto-columns: minmax(0, 120px); }
}

/* ═══ Mobile ════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  :root { --top-h: 66px; --gutter: 20px; }
  .nav, .top-cta, .theme-label { display: none; }
  .menu-btn { display: grid; }
  .theme-btn { width: 42px; padding: 0; justify-content: center; }
  .brand { font-size: 25px; }
  .brand-mark { width: 28px; height: 27.5px; }

  .slide-inner { grid-template-columns: 1fr; align-content: start; min-height: 0; height: 100%; gap: 34px; padding-top: 34px; padding-bottom: 110px; }
  h1, .h1 { font-size: clamp(2.6rem, 12vw, 3.8rem); }
  h2 { font-size: clamp(2.1rem, 10vw, 3rem); }
  .lead { margin-top: 16px; }
  .ctas { margin-top: 24px; gap: 20px; }
  .slide .cats, .slide .link-u { display: none; }
  .rv-l, .rv-r { transform: translateY(34px); }
  .appwin-wrap { margin: 0; padding: 8px; }
  .appwin-tabs { padding: 14px; gap: 5px; }
  .appwin-tabs span { padding: 7px 10px; font-size: 10px; }
  .appwin-sub { padding: 0 14px 10px; font-size: 14px; }
  .appwin-posters { padding: 0 14px 16px; gap: 6px; }
  .appwin-bottom { font-size: 8.5px; padding: 12px 14px; }
  .float-a { left: -4px; bottom: 6%; min-width: 0; padding: 10px 12px; }
  .float-b { right: -2px; top: 10%; padding: 9px 12px; }
  .track-card { margin: 0; }
  .track-head { height: 120px; }
  .stat-float { left: auto; right: 6px; bottom: -22px; padding: 12px 16px; }
  .stat-float strong { font-size: 24px; }
  .fan { display: none; }
  .rec-card { grid-template-columns: 110px 1fr; }
  .rec-title { font-size: 22px; }
  .counter { margin-top: 16px; }
  .counter span { font-size: 40px; }
  .deck { width: min(220px, 58vw); }
  .notes { margin: 0; }

  .hero-controls { bottom: 22px; align-items: center; }
  .hero-tabs { grid-auto-columns: minmax(0, 1fr); gap: 6px; }
  .hero-tabs .t-label { display: none; }
  .hero-tabs .t-nr { font-size: 10px; }
  .round-btn { width: 42px; height: 42px; }

  .section-head { display: block; margin: 22px 0 26px; }
  .section-head p { margin-top: 14px; }
  .tools { flex-direction: column; align-items: stretch; }
  .search { min-width: 0; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
  .grid:not(.filtered) .gcard:nth-child(n+13) { display: none; }
  .gmeta strong { font-size: 12px; }
  .add { width: 28px; height: 28px; font-size: 16px; right: 6px; bottom: 6px; }

  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
  .b-ic { margin-bottom: 18px; }
  .feature { grid-template-columns: 1fr; }
  .feature-rev .feature-copy { order: 0; }
  .chain { gap: 6px; }
  .chain-name { font-size: 10.5px; }
  .chain-role { font-size: 8.5px; }
  .chain-card, .prov-card { padding: 16px; }
  .provs img { width: 40px; height: 40px; }
  .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .extra { min-height: 0; padding: 15px; }
  .extra p { font-size: 12px; }

  .split { grid-template-columns: 1fr; }
  .cats-grid { grid-template-columns: 1fr; gap: 12px; }
  .cat { min-height: 180px; }
  .devices { min-height: 300px; align-content: end; }
  .phone { width: 36%; bottom: 0; }
  .stats { gap: 26px; }
  .final-row .poster { width: 96px; }
  .footer-inner { display: grid; }
}

@media (max-width: 380px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-arrows { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv, .rv-l, .rv-r, .s-in, .s-vis, .note { opacity: 1 !important; transform: none !important; }
}
