/* ecosystem.letstudy.gr, the Letstudy Moodle Ecosystem: one stylesheet, no framework. Copyright 2026 Letstudy Group.
   Brand: petrol #155F82, deep petrol #10283F, light blues #84CBEB and #C0E4F4, cream #F5F5DB. Square corners everywhere. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --petrol: #155f82;
  --petrol-ink: #0f4a66;
  --deep: #10283f;
  --deep-2: #0a1a2a;
  --mid: #3e7c94;
  --sky: #84cbeb;
  --sky-2: #c0e4f4;
  --cream: #f5f5db;
  --mint: #00c9aa;
  --coral: #fc6c4d;
  --navy: #2c3659;
  --tri: linear-gradient(90deg, var(--coral) 0 33.33%, var(--mint) 33.33% 66.66%, var(--navy) 66.66% 100%);
  --tri-dark: linear-gradient(90deg, var(--coral) 0 33.33%, var(--mint) 33.33% 66.66%, var(--sky) 66.66% 100%);

  --bg: #f9f9f3;
  --bg-alt: #f1f1e5;
  --surface: #ffffff;
  --ink: #111111;
  --ink-2: #464c52;
  --ink-3: #5a5a55;
  --line: #dadac6;
  --line-2: #c3c3ad;
  --accent: var(--petrol);
  --accent-ink: #ffffff;
  --link: var(--petrol);
  --tint: #e6f2f8;
  --shadow: 0 30px 60px -30px rgba(16, 40, 63, .45), 0 2px 6px rgba(16, 40, 63, .08);

  --ease: cubic-bezier(.16, .84, .24, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --head-h: 68px;
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--petrol);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07131f;
  --bg-alt: #0b1b2b;
  --surface: #0e2234;
  --ink: #edf3f6;
  --ink-2: #b2c2cc;
  --ink-3: #93a6b2;
  --line: #1b3349;
  --line-2: #2a4862;
  --accent: #84cbeb;
  --accent-ink: #07131f;
  --link: #84cbeb;
  --tint: #0f2a40;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), 0 2px 6px rgba(0, 0, 0, .4);
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--sky);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #07131f;
    --bg-alt: #0b1b2b;
    --surface: #0e2234;
    --ink: #edf3f6;
    --ink-2: #b2c2cc;
    --ink-3: #93a6b2;
    --line: #1b3349;
    --line-2: #2a4862;
    --accent: #84cbeb;
    --accent-ink: #07131f;
    --link: #84cbeb;
    --tint: #0f2a40;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), 0 2px 6px rgba(0, 0, 0, .4);
    --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--sky);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "tnum" 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.025em; line-height: 1.08; text-wrap: balance; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .82em; }
:focus-visible { outline: none; box-shadow: var(--focus); }
main:focus { outline: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-3); font-size: .9rem; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--sky); color: var(--deep); padding: 10px 16px; font-weight: 700; }
.skip:focus { top: 12px; }

/* Light and dark screenshots follow the appearance of the site. */
.only-dark { display: none; }
:root[data-theme="dark"] .only-light { display: none; }
:root[data-theme="dark"] .only-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-light { display: none; }
  :root:not([data-theme="light"]) .only-dark { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font: inherit; font-size: .98rem; font-weight: 700; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  isolation: isolate; overflow: hidden;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:hover svg:last-child { transform: translateX(3px); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary::before { background: var(--deep); }
:root[data-theme="dark"] .btn-primary::before { background: var(--sky-2); }
.btn-primary:hover { color: #fff; }
:root[data-theme="dark"] .btn-primary:hover { color: var(--deep); }
.btn-sky { background: var(--sky); color: var(--deep); }
.btn-sky::before { background: #fff; }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost-light::before { background: #fff; }
.btn-ghost-light:hover { color: var(--deep); border-color: #fff; }
.btn-line { color: var(--ink); border-color: var(--line-2); background: transparent; }
.btn-line::before { background: var(--ink); }
.btn-line:hover { color: var(--bg); border-color: var(--ink); }
.dark .btn-line { color: #fff; border-color: rgba(255, 255, 255, .4); }
.dark .btn-line::before { background: #fff; }
.dark .btn-line:hover { color: var(--deep); }
.ext { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; }
.ext svg { width: 15px; height: 15px; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  height: var(--head-h);
  background: rgba(16, 40, 63, 0);
  color: #fff;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-head { background: var(--deep); }
.site-head.is-scrolled { background: rgba(10, 26, 42, .92); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
@supports (backdrop-filter: blur(10px)) { .site-head.is-scrolled { backdrop-filter: blur(14px) saturate(140%); } }
.head-row { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex: none; }
.brand img { width: 26px; height: auto; }
.brand-word { font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; }
.brand-small { font-size: .78rem; font-weight: 600; color: var(--sky); margin-left: 4px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; color: rgba(255, 255, 255, .78); text-decoration: none; font-weight: 600; font-size: .93rem;
  padding: 10px 12px; white-space: nowrap; transition: color .25s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--sky);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.head-tools { display: flex; align-items: center; gap: 6px; }
.tool {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .18);
  font: inherit; font-size: .82rem; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.tool:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .4); }
.tool svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
.head-cta { margin-left: 6px; white-space: nowrap; }

/* ---------- Dark brand sections ---------- */
.dark {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff;
  background: linear-gradient(32deg, #0b1d2e 0%, #10283f 38%, #1b4a66 78%, #3e7c94 120%);
}
.dark .lead, .dark p { color: rgba(255, 255, 255, .8); }
.dark a:not(.btn) { color: var(--sky); }
.lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.lines path { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1; vector-effect: non-scaling-stroke; }
.lines path:nth-child(3n) { stroke: rgba(132, 203, 235, .55); }
.js-motion .lines path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js-motion .lines.is-in path { animation: draw 2.4s var(--ease) forwards; }
.js-motion .lines.is-in path:nth-child(2) { animation-delay: .15s; }
.js-motion .lines.is-in path:nth-child(3) { animation-delay: .3s; }
.js-motion .lines.is-in path:nth-child(4) { animation-delay: .45s; }
.js-motion .lines.is-in path:nth-child(5) { animation-delay: .6s; }
.js-motion .lines.is-in path:nth-child(6) { animation-delay: .75s; }
.js-motion .lines.is-in path:nth-child(7) { animation-delay: .9s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Hero: copy on the left, a scene of real screens on the right ---------- */
.hero { min-height: calc(100svh - var(--head-h)); display: flex; align-items: center; padding: clamp(48px, 6vw, 90px) 0; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(700px circle at var(--mx, 75%) var(--my, 40%), rgba(132, 203, 235, .18), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .86rem; font-weight: 700; letter-spacing: .02em; color: var(--sky) !important;
  padding: 8px 14px 8px 10px; border: 1px solid rgba(132, 203, 235, .35); margin-bottom: 26px;
}
.cube { width: 14px; height: 14px; background: linear-gradient(135deg, var(--coral) 0 33%, var(--mint) 33% 66%, #2c3659 66%); }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 4.6rem); letter-spacing: -.04em; line-height: 1.02; margin-bottom: 26px; color: #fff; }
.hero h1 em { font-style: normal; color: var(--sky); }
.ln { display: block; overflow: hidden; padding-bottom: .07em; }
.ln > span { display: block; }
.js-motion .ln > span { transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.js-motion .ln:nth-child(2) > span { animation-delay: .08s; }
.js-motion .ln:nth-child(3) > span { animation-delay: .16s; }
.js-motion .ln:nth-child(4) > span { animation-delay: .24s; }
.js-motion .ln:nth-child(5) > span { animation-delay: .32s; }
@keyframes rise { to { transform: none; } }
.js-motion .hero-copy > .lead, .js-motion .hero-copy > .ctas, .js-motion .hero-copy > .hero-notes, .js-motion .hero-copy > .kicker {
  opacity: 0; animation: fade-up 1s var(--ease) forwards;
}
.js-motion .hero-copy > .lead { animation-delay: .4s; }
.js-motion .hero-copy > .ctas { animation-delay: .5s; }
.js-motion .hero-copy > .hero-notes { animation-delay: .6s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero .lead { font-size: clamp(1.04rem, 1.4vw, 1.2rem); max-width: 600px; line-height: 1.6; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 24px; }
.hero-notes { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .9rem; color: rgba(255, 255, 255, .78); }
.hero-notes li { display: flex; align-items: center; gap: 8px; }
.hero-notes svg { width: 16px; height: 16px; color: var(--mint); }

.hero-visual { position: relative; }
.hv-scene { position: relative; perspective: 1700px; padding: 46px 0 70px 34px; --rx: 0deg; --ry: 0deg; }
.hv-main, .hv-back, .hv-phone, .hv-chip { transition: transform .7s var(--ease); }
.hv-main {
  position: relative; z-index: 2;
  transform: rotateY(calc(-11deg + var(--ry))) rotateX(calc(5deg + var(--rx)));
  box-shadow: 0 70px 120px -40px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .12);
}
.hv-main .frame-view { aspect-ratio: 16 / 10; background: #0a1a2a; }
.hv-main .frame-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hv-back {
  position: absolute; z-index: 1; top: 0; right: -7%; width: 68%; opacity: .5;
  transform: rotateY(calc(-11deg + var(--ry) * 1.6)) rotateX(calc(5deg + var(--rx) * 1.6)) translateZ(-160px);
}
.hv-back .frame { border-color: rgba(255, 255, 255, .14); }
.hv-back .frame-view { aspect-ratio: 16 / 10; }
.hv-back img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hv-phone {
  position: absolute; z-index: 3; left: 0; bottom: 18px; width: 23%; padding: 6px;
  transform: rotateY(calc(-11deg + var(--ry) * .5)) rotateX(calc(5deg + var(--rx) * .5)) translateZ(90px);
}
.hv-chip {
  position: absolute; z-index: 4; right: 4%; bottom: 34px; display: flex; align-items: center; gap: 10px; margin: 0;
  padding: 10px 14px; font-size: .8rem; font-weight: 700; color: #fff !important;
  background: rgba(10, 26, 42, .88); border: 1px solid rgba(132, 203, 235, .45);
  transform: translateZ(140px) translate(calc(var(--ry) * -2), calc(var(--rx) * 2));
}
@supports (backdrop-filter: blur(6px)) { .hv-chip { backdrop-filter: blur(8px); } }
.js-motion .hv-main { opacity: 0; translate: 90px 0; animation: hv-in 1.4s .25s var(--ease) forwards; }
.js-motion .hv-back { opacity: 0; translate: 60px -20px; animation: hv-in-back 1.6s .55s var(--ease) forwards; }
.js-motion .hv-phone { opacity: 0; translate: -10px 80px; animation: hv-in 1.3s .85s var(--ease) forwards; }
.js-motion .hv-chip { opacity: 0; translate: 0 20px; animation: hv-in 1s 1.25s var(--ease) forwards; }
.js-motion .hv-controls { opacity: 0; animation: fade-up 1s 1.1s var(--ease) forwards; }
@keyframes hv-in { to { opacity: 1; translate: 0 0; } }
@keyframes hv-in-back { to { opacity: .5; translate: 0 0; } }
.hv-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; padding-left: 34px; }
.hv-shapes { display: flex; flex-wrap: wrap; gap: 6px; }
.hv-shapes button { border: 1px solid rgba(255, 255, 255, .16); }
.hv-shapes button, .hv-pause {
  min-height: 40px; padding: 6px 14px; font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer;
  color: rgba(255, 255, 255, .8); background: #0d2236; border: 0; position: relative; overflow: hidden;
  transition: color .3s var(--ease), background-color .3s var(--ease);
}
.hv-shapes button:hover, .hv-pause:hover { color: #fff; background: #133049; }
.hv-shapes button[aria-pressed="true"] { background: var(--sky); color: var(--deep); }
.hv-shapes button[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--deep); transform: scaleX(var(--hvp, 0)); transform-origin: left; opacity: .35; }
.hv-pause { display: inline-grid; place-items: center; width: 42px; padding: 0; border: 1px solid rgba(255, 255, 255, .16); }
.hv-pause svg { width: 16px; height: 16px; }

/* ---------- Frames: browser and device ---------- */
.frame { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.dark .frame { border-color: rgba(255, 255, 255, .14); background: #0e2234; }
.frame-bar {
  display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
  background: var(--bg-alt); border-bottom: 1px solid var(--line); font-size: .74rem; color: var(--ink-3);
}
.dark .frame-bar, .frame-hero .frame-bar { background: #0a1a2a; border-color: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .55); }
.frame-bar i { width: 9px; height: 9px; background: var(--line-2); flex: none; }
.dark .frame-bar i, .frame-hero .frame-bar i { background: rgba(255, 255, 255, .22); }
.frame-bar i:first-child { background: var(--coral); }
.frame-url { margin: 0 auto; padding: 3px 14px; background: var(--surface); border: 1px solid var(--line); min-width: 40%; text-align: center; font-family: inherit; }
.frame-url b { font-weight: 600; color: var(--ink-2); }
.dark .frame-url, .frame-hero .frame-url { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); }
.dark .frame-url b, .frame-hero .frame-url b { color: #fff; }
.frame-tag { font-weight: 700; color: var(--accent); white-space: nowrap; }
.frame-view { position: relative; overflow: hidden; background: var(--bg-alt); }
.frame-view img { width: 100%; }
.frame.is-small .frame-view { display: grid; place-items: start center; padding: 24px; max-height: 560px; background: var(--tint); }
.dark .frame.is-small .frame-view { background: #12304a; }
.frame.is-small .frame-view img { width: auto; max-width: 100%; box-shadow: 0 16px 40px -18px rgba(16, 40, 63, .45); }
.frame.is-small .frame-view::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(transparent, var(--tint)); pointer-events: none; }
.dark .frame.is-small .frame-view::after { background: linear-gradient(transparent, #12304a); }
.frame-empty .frame-view { display: grid; place-items: center; align-content: center; gap: 14px; min-height: 320px; padding: 40px; text-align: center; background: var(--tint); }
.dark .frame-empty .frame-view { background: #12304a; }
.empty-ic svg { width: 56px; height: 56px; color: var(--sky); }
.frame-empty p { max-width: 34ch; margin: 0; }
.device { background: #0a1a2a; padding: 8px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .14); }
.device img { width: 100%; }

/* ---------- Facts ---------- */
.facts-band { background: var(--deep-2); color: #fff; border-top: 1px solid rgba(255, 255, 255, .08); }
.facts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: rgba(255, 255, 255, .1); padding: 0; }
.facts-band .wrap.facts { max-width: none; }
.fact { padding: 34px clamp(16px, 2vw, 28px) 30px; background: var(--deep-2); }
.fact strong { display: block; font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.fact:last-child strong { color: var(--sky); }
.fact span { display: block; margin-top: 10px; font-size: .86rem; color: rgba(255, 255, 255, .7); line-height: 1.35; }

/* ---------- Sections ---------- */
.sec { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.sec-alt { background: var(--bg-alt); }
.sec-head { max-width: 820px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head h2, .split h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); letter-spacing: -.035em; margin-bottom: 18px; }
.lead { font-size: clamp(1.04rem, 1.4vw, 1.18rem); color: var(--ink-2); line-height: 1.6; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font-size: .84rem; font-weight: 700; color: var(--accent); letter-spacing: .01em; }
.eb-n { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 6px; border: 1px solid currentColor; font-variant-numeric: tabular-nums; font-size: .78rem; }
.eb-n:empty { display: none; }
.dark .eyebrow { color: var(--sky); }
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.split .lead { margin-bottom: 28px; }

/* Reveal on scroll. */
.js-motion .rv, .js-motion .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js-motion .rv.is-in, .js-motion .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Segmented controls ---------- */
.seg { display: inline-flex; gap: 1px; border: 1px solid var(--line-2); background: var(--line-2); }
.seg button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px;
  font: inherit; font-size: .92rem; font-weight: 700; color: var(--ink-2); background: var(--surface); border: 0; cursor: pointer;
  position: relative; transition: color .3s var(--ease), background-color .3s var(--ease);
}
.seg button svg { width: 16px; height: 16px; }
.seg button:hover { color: var(--ink); background: var(--bg-alt); }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--deep); color: #fff; }
:root[data-theme="dark"] .seg button[aria-selected="true"], :root[data-theme="dark"] .seg button[aria-pressed="true"] { background: var(--sky); color: var(--deep); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .seg button[aria-selected="true"], :root:not([data-theme="light"]) .seg button[aria-pressed="true"] { background: var(--sky); color: var(--deep); }
}
.seg button[disabled] { opacity: .45; cursor: not-allowed; }
.cnt { font-size: .74rem; font-weight: 700; padding: 1px 6px; border: 1px solid currentColor; opacity: .7; font-variant-numeric: tabular-nums; }

/* ---------- Explorer ---------- */
.xp { border: 1px solid var(--line); background: var(--surface); max-width: 100%; overflow: hidden; }
.xp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); }
.xp-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.tour {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px;
  font: inherit; font-size: .92rem; font-weight: 700; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); border: 0;
}
.tour svg { width: 15px; height: 15px; }
.tour[aria-pressed="true"] { background: var(--coral); color: #2a0d05; }
.xp-body { display: grid; grid-template-columns: 250px 1fr; gap: 1px; background: var(--line); }
.xp-side { background: var(--bg); }
.xp-list { list-style: none; margin: 0; padding: 0; counter-reset: x; max-height: 760px; overflow: auto; }
.xp-item {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  font: inherit; font-size: .96rem; font-weight: 600; color: var(--ink-2); text-align: left;
  background: transparent; border: 0; border-bottom: 1px solid var(--line); cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .3s var(--ease);
}
.xp-item::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tint); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.xp-item:hover::before { transform: scaleX(1); }
.xp-item:hover { color: var(--ink); }
.xp-item[aria-pressed="true"] { color: #fff; }
.xp-item[aria-pressed="true"]::before { background: var(--petrol); transform: scaleX(1); }
:root[data-theme="dark"] .xp-item[aria-pressed="true"] { color: var(--deep); }
:root[data-theme="dark"] .xp-item[aria-pressed="true"]::before { background: var(--sky); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .xp-item[aria-pressed="true"] { color: var(--deep); }
  :root:not([data-theme="light"]) .xp-item[aria-pressed="true"]::before { background: var(--sky); }
}
.xp-n { font-size: .76rem; font-weight: 700; font-variant-numeric: tabular-nums; opacity: .65; min-width: 20px; }
.sw { width: 22px; height: 22px; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.sw-glass { background: linear-gradient(135deg, #e7eef1 50%, #0b6670 50%); }
.sw-corp { background: linear-gradient(135deg, #f3f5f8 50%, #1e3a8a 50%); }
.sw-paper { background: linear-gradient(135deg, #f4f2ec 50%, #7a2e3a 50%); }
.sw-clean { background: linear-gradient(135deg, #ffffff 50%, #374151 50%); }
.sw-lively { background: linear-gradient(135deg, #fff4ea 50%, #e5533d 50%); }
.sw-aegean { background: linear-gradient(135deg, #e3eefa 50%, #0d4f9c 50%); }
.sw-night { background: linear-gradient(135deg, #09090c 50%, #2dd4bf 50%); }
.sw-chalk { background: linear-gradient(135deg, #fff3d6 50%, #2f6fdf 50%); }
.sw-terminal { background: linear-gradient(135deg, #0a0c0b 50%, #ffb000 50%); }
.sw-ink { background: linear-gradient(135deg, #ffffff 50%, #111111 50%); }
.xp-stage { padding: clamp(16px, 2.5vw, 30px); background: linear-gradient(180deg, var(--bg-alt), var(--bg)); min-width: 0; }
.frame-xp { box-shadow: var(--shadow); }
.frame-xp .frame-view { aspect-ratio: 16 / 10; }
.frame-xp .frame-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.xp-stage.is-phone .frame-xp { max-width: 340px; margin: 0 auto; background: #0a1a2a; border-color: #0a1a2a; padding: 8px; }
.xp-stage.is-phone .frame-xp .frame-bar { display: none; }
.xp-stage.is-phone .frame-xp .frame-view { aspect-ratio: 9 / 19.5; }
.wipe { position: absolute; inset: 0; background: var(--petrol); transform: scaleX(0); transform-origin: left; pointer-events: none; z-index: 2; }
.wipe.in { animation: wipe-in .32s var(--ease-io) forwards; }
.wipe.out { transform: scaleX(1); transform-origin: right; animation: wipe-out .42s var(--ease-io) forwards; }
@keyframes wipe-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes wipe-out { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.xp-cap { display: grid; grid-template-columns: auto 1fr; gap: 20px; margin-top: 24px; align-items: start; }
.xp-cap-n { font-size: clamp(2.4rem, 4vw, 3.6rem); font-weight: 800; letter-spacing: -.05em; line-height: .9; color: var(--accent); font-variant-numeric: tabular-nums; }
.xp-cap h3 { font-size: 1.5rem; margin-bottom: 8px; }
.xp-cap p { margin: 0 0 6px; color: var(--ink-2); max-width: 70ch; }
.xp-cap .pair { font-size: .88rem; font-weight: 600; color: var(--ink-3); }
.xp-cap .pair:empty { display: none; }
.xp-cap.swap > * { animation: fade-up .55s var(--ease) both; }
.xp-cap.swap > div { animation-delay: .06s; }
.xp-progress { height: 2px; background: var(--line); margin-top: 22px; overflow: hidden; }
.xp-progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.xp.is-touring .xp-progress span { animation: progress var(--dur, 4200ms) linear forwards; }
@keyframes progress { to { transform: scaleX(1); } }

/* ---------- Roles ---------- */
.roles-tabs { margin-bottom: 34px; }
.role { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.role h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -.03em; margin-bottom: 16px; }
.role p { color: var(--ink-2); }
.role.swap .role-copy, .role.swap .role-shot { animation: fade-up .7s var(--ease) both; }
.role.swap .role-shot { animation-delay: .08s; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line); }
.ticks li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: .96rem; }
.ticks li svg { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: 3px; }
.ticks li:not(:has(svg))::before { content: ""; width: 8px; height: 8px; background: var(--accent); flex: none; margin-top: 9px; }

/* ---------- Ecosystem ---------- */
.eco-sec { padding-bottom: clamp(72px, 9vw, 120px); }
.eco {
  position: relative; display: grid; grid-template-columns: 1fr minmax(220px, 300px) 1fr; gap: clamp(40px, 7vw, 120px);
  align-items: center; padding: 10px 0;
}
.eco-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.eco-wires path { fill: none; stroke: rgba(132, 203, 235, .28); stroke-width: 1; }
.eco-wires path.on { stroke: var(--sky); stroke-width: 2; stroke-dasharray: 6 6; animation: flow 1s linear infinite; }
@media (prefers-reduced-motion: reduce) { .eco-wires path.on { animation: none; stroke-dasharray: none; } }
@keyframes flow { to { stroke-dashoffset: -12; } }
.js-motion .eco-wires path { stroke-dashoffset: 0; }
.eco-col { display: grid; gap: 10px; position: relative; z-index: 1; }
.eco-side { font-size: .78rem; font-weight: 700; color: var(--sky) !important; margin: 0 0 6px; letter-spacing: .01em; }
.eco-node {
  position: relative; display: grid; grid-template-columns: 40px 1fr 10px; align-items: center; gap: 14px;
  width: 100%; padding: 12px 14px; text-align: left; text-decoration: none;
  font: inherit; color: #fff; cursor: pointer;
  background: rgba(10, 26, 42, .78); border: 1px solid rgba(255, 255, 255, .14);
  transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .4s var(--ease);
}
@supports (backdrop-filter: blur(6px)) { .eco-node { backdrop-filter: blur(6px); } }
.eco-node:hover { border-color: rgba(132, 203, 235, .7); transform: translateY(-2px); }
.eco-node[aria-pressed="true"] { background: var(--sky); border-color: var(--sky); color: var(--deep); }
.eco-ic { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .2); color: var(--sky); }
.eco-node[aria-pressed="true"] .eco-ic { border-color: rgba(16, 40, 63, .3); color: var(--deep); }
.eco-ic svg { width: 20px; height: 20px; }
.eco-txt { display: grid; min-width: 0; }
.eco-nm { font-weight: 700; font-size: .96rem; line-height: 1.25; }
.eco-ct { font-size: .78rem; opacity: .7; }
.eco-st { width: 8px; height: 8px; display: inline-block; flex: none; }
.eco-st-live { background: var(--mint); }
.eco-st-review { background: var(--sky); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
.eco-st-soon { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.eco-node[aria-pressed="true"] .eco-st-soon { box-shadow: inset 0 0 0 1.5px var(--deep); }
.eco-node[aria-pressed="true"] .eco-st-review { background: var(--deep); }
.eco-core { position: relative; z-index: 1; text-align: center; }
.eco-core-node {
  grid-template-columns: 1fr; justify-items: center; gap: 14px; padding: 34px 20px 30px; text-align: center;
  background: linear-gradient(160deg, #1b4a66, #10283f); border-color: rgba(132, 203, 235, .55);
  box-shadow: 0 0 0 8px rgba(132, 203, 235, .07), 0 0 0 16px rgba(132, 203, 235, .04), 0 40px 80px -30px rgba(0, 0, 0, .8);
}
.eco-core-node .eco-ic { width: 64px; height: 64px; border-color: rgba(132, 203, 235, .5); }
.eco-core-node .eco-ic svg { width: 34px; height: 34px; }
.eco-core-node .eco-nm { font-size: 1.3rem; letter-spacing: -.02em; }
.eco-core-node .eco-st { position: absolute; top: 12px; right: 12px; }
.eco-core-node[aria-pressed="true"] { background: var(--sky); }
.eco-core-note { font-size: .82rem; margin: 18px auto 0; max-width: 26ch; color: rgba(255, 255, 255, .62) !important; }
.js-motion .eco-node { opacity: 0; transform: translateY(14px); }
.js-motion .eco.is-in .eco-node { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease), border-color .3s, background-color .3s; transition-delay: calc(var(--i, 0) * 60ms); }
.eco-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 36px; font-size: .82rem; color: rgba(255, 255, 255, .65); }
.eco-legend ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.eco-legend li { display: flex; align-items: center; gap: 8px; }
.eco-panels { margin-top: clamp(44px, 6vw, 70px); border-top: 1px solid rgba(255, 255, 255, .14); padding-top: clamp(36px, 5vw, 56px); }
.eco-panel { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.eco-panel.swap .eco-panel-copy > * { animation: fade-up .6s var(--ease) both; }
.eco-panel.swap .eco-panel-copy > :nth-child(2) { animation-delay: .04s; }
.eco-panel.swap .eco-panel-copy > :nth-child(3) { animation-delay: .08s; }
.eco-panel.swap .eco-panel-copy > :nth-child(4) { animation-delay: .12s; }
.eco-panel.swap .eco-panel-shot { animation: fade-up .7s .1s var(--ease) both; }
.eco-k { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: .84rem; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.dark .eco-k { color: var(--sky) !important; }
.eco-k code { font-weight: 500; color: var(--ink-3); padding: 2px 8px; border: 1px solid var(--line); }
.dark .eco-k code { color: rgba(255, 255, 255, .7); border-color: rgba(255, 255, 255, .2); }
.eco-panel h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -.03em; margin-bottom: 16px; color: #fff; }
.eco-text { font-size: 1.04rem; }
.eco-dl { margin: 24px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.eco-dl div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.eco-dl dt { font-size: .84rem; font-weight: 700; color: var(--sky); }
.eco-dl dd { margin: 0; color: rgba(255, 255, 255, .85); font-size: .96rem; }
.eco-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 28px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; font-size: .8rem; font-weight: 700; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--surface); }
.dark .pill { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .25); color: #fff; }
.pill .eco-st-soon { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.dark .pill .eco-st-soon { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.pill .eco-st-review { box-shadow: none; background: var(--petrol); }
.dark .pill .eco-st-review { background: var(--sky); }

/* ---------- Ecosystem scene: blueprint grid, rings, flowing wires, a stage for each plugin ---------- */
.eco-sec::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(132, 203, 235, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(132, 203, 235, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 38%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 38%, #000 30%, transparent 75%);
}
.eco-sec .sec-head { text-align: center; margin-left: auto; margin-right: auto; }
.eco-sec .sec-head .eyebrow { justify-content: center; }
.eco-sec .sec-head h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
.eco-ring {
  position: absolute; left: 50%; top: calc(50% - 26px); width: 128%; aspect-ratio: 1; z-index: -1; pointer-events: none;
  border: 1px dashed rgba(132, 203, 235, .28); transform: translate(-50%, -50%) rotate(45deg);
}
.eco-ring-1 { width: 96%; }
.eco-ring-2 { width: 124%; border-style: solid; border-color: rgba(132, 203, 235, .1); }
.js-motion .eco-ring-1 { animation: spin 60s linear infinite; }
.js-motion .eco-ring-2 { animation: spin 90s linear infinite reverse; }
@keyframes spin { from { transform: translate(-50%, -50%) rotate(45deg); } to { transform: translate(-50%, -50%) rotate(405deg); } }
.eco-glow { position: absolute; left: 50%; top: calc(50% - 26px); width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%); z-index: -2; pointer-events: none; background: radial-gradient(closest-side, rgba(132, 203, 235, .22), transparent); }
.js-motion .eco-glow { animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .45; } }
.eco.is-paused .eco-ring, .eco.is-paused .eco-glow { animation-play-state: paused; }
.eco-wires .wire { fill: none; stroke: rgba(132, 203, 235, .3); stroke-width: 1; }
.eco-wires g.on .wire { stroke: var(--sky); stroke-width: 2; }
.eco-wires .pk { fill: var(--sky); }
.eco-wires g .pk { opacity: .75; }
.eco-wires g.on .pk { fill: #fff; opacity: 1; }
.eco-wires .pk-back { fill: var(--mint); opacity: .6; }
.js-motion .eco-wires .wire { stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); }
.js-motion .eco.is-in .eco-wires .wire { animation: draw 1.6s var(--ease) forwards; animation-delay: calc(.4s + var(--d, 0s)); }
.js-motion .eco-wires g { opacity: 0; }
.js-motion .eco-wires g:has(.wire) { opacity: 1; }
.js-motion .eco-wires .pk { visibility: hidden; }
.js-motion .eco.is-in .eco-wires .pk { animation: pk-in .01s 2.2s forwards; }
@keyframes pk-in { to { visibility: visible; } }
.eco-node { opacity: .9; }
.eco-node:hover, .eco-node[aria-pressed="true"], .eco-node:focus-visible { opacity: 1; }
.eco-node::after {
  content: ""; position: absolute; inset: -1px; border: 1px solid var(--sky); opacity: 0; pointer-events: none;
  transform: scale(1.06); transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.eco-node:hover::after { opacity: .7; transform: none; }
.eco-legend { align-items: center; }
.eco-pause {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 12px; cursor: pointer;
  font: inherit; font-size: .8rem; font-weight: 700; color: rgba(255, 255, 255, .8); background: transparent; border: 1px solid rgba(255, 255, 255, .2);
}
.eco-pause:hover { color: #fff; border-color: rgba(255, 255, 255, .5); }
.eco-pause svg { width: 14px; height: 14px; }

/* The stage of the selected plugin */
.eco-panels { position: relative; border-top: 0; padding-top: 0; }
.eco-panel { position: relative; padding: clamp(28px, 4vw, 54px); background: rgba(7, 19, 31, .55); border: 1px solid rgba(132, 203, 235, .22); overflow: hidden; }
@supports (backdrop-filter: blur(8px)) { .eco-panel { backdrop-filter: blur(10px); } }
.eco-panel::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--sky), var(--mint) 60%, transparent); }
.eco-bignum {
  position: absolute; right: -10px; bottom: -40px; font-size: clamp(9rem, 20vw, 16rem); font-weight: 800; line-height: 1; letter-spacing: -.07em;
  color: transparent; -webkit-text-stroke: 1px rgba(132, 203, 235, .14); pointer-events: none; font-variant-numeric: tabular-nums;
}
.eco-panel-copy, .eco-panel-shot { position: relative; z-index: 1; }
.eco-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; }
.eco-idx { font-size: .86rem; color: rgba(255, 255, 255, .6); margin-right: 8px; font-variant-numeric: tabular-nums; }
.eco-idx b { color: #fff; font-size: 1.1rem; }
.eco-step {
  display: inline-grid; place-items: center; width: 40px; height: 40px; cursor: pointer;
  color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, .25); transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s;
}
.eco-step:hover { background: var(--sky); color: var(--deep); border-color: var(--sky); }
.eco-step svg { width: 18px; height: 18px; }
.eco-step svg.flip { transform: scaleX(-1); }
.eco-k-ic { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(132, 203, 235, .4); }
.eco-k-ic svg { width: 16px; height: 16px; }
.eco-with { margin: 24px 0 14px; padding: 18px 20px; background: rgba(132, 203, 235, .08); border: 1px solid rgba(132, 203, 235, .25); }
.eco-with-h { display: flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 700; color: var(--sky); margin-bottom: 8px; }
.eco-with-h svg { width: 18px; height: 18px; }
.eco-with p { margin: 0; color: rgba(255, 255, 255, .88) !important; }
.eco-meta { font-size: .86rem; color: rgba(255, 255, 255, .6) !important; margin-bottom: 18px; }
.eco-panel-shot { perspective: 1400px; align-self: center; }
.eco-panel-shot .frame { transform: rotateY(calc(-8deg + var(--ty, 0deg))) rotateX(calc(3deg + var(--tx, 0deg))); transition: transform .6s var(--ease); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(132, 203, 235, .2); }
.eco-panel-shot:hover .frame { transform: rotateY(var(--ty, 0deg)) rotateX(var(--tx, 0deg)); }
.eco-panel.swap .eco-bignum { animation: fade-up .8s var(--ease) both; }
.eco-panel.swap .eco-panel-shot .frame { animation: shot-in .9s var(--ease) both; }
@keyframes shot-in { from { opacity: 0; translate: 40px 0; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .eco-panel-shot .frame { transform: none !important; } }

/* Ecosystem page */
.page-hero { padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 7vw, 96px); }
.page-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); letter-spacing: -.04em; line-height: 1.02; max-width: 18ch; margin-bottom: 22px; color: #fff; }
.page-hero .lead { max-width: 760px; }
.page-hero .filter-status { color: rgba(255, 255, 255, .65); font-size: .9rem; }
.eco-wrap-hero { margin-top: clamp(50px, 7vw, 80px); }
.principles-band { background: var(--deep-2); color: #fff; }
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, .1); }
.principles li { padding: 36px 30px 34px; background: var(--deep-2); }
.pr-n { font-size: .8rem; font-weight: 700; color: var(--sky); }
.principles h3 { font-size: 1.2rem; margin: 10px 0 8px; color: #fff; }
.principles p { margin: 0; color: rgba(255, 255, 255, .72); font-size: .95rem; }
.chapters-wrap { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 5vw, 70px); padding-top: clamp(60px, 8vw, 100px); padding-bottom: clamp(60px, 8vw, 110px); align-items: start; }
.chap-index { position: sticky; top: calc(var(--head-h) + 24px); }
.chap-index ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.chap-index a {
  display: flex; gap: 12px; align-items: baseline; padding: 10px 12px; border-bottom: 1px solid var(--line);
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .92rem; position: relative; isolation: isolate;
  transition: color .3s var(--ease);
}
.chap-index a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--deep); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.chap-index a:hover { color: var(--ink); background: var(--bg-alt); }
.chap-index a.is-active { color: #fff; }
.chap-index a.is-active::before { transform: scaleX(1); }
:root[data-theme="dark"] .chap-index a.is-active { color: var(--deep); }
:root[data-theme="dark"] .chap-index a.is-active::before { background: var(--sky); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .chap-index a.is-active { color: var(--deep); }
  :root:not([data-theme="light"]) .chap-index a.is-active::before { background: var(--sky); }
}
.chap-index .n { font-size: .74rem; font-variant-numeric: tabular-nums; opacity: .7; }
.chapter { padding: 0 0 clamp(60px, 8vw, 100px); margin-bottom: clamp(60px, 8vw, 100px); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--head-h) + 20px); }
.chapter:last-child { border-bottom: 0; margin-bottom: 0; }
.chap-head { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: end; margin-bottom: 20px; }
.chap-n { font-size: clamp(3.4rem, 7vw, 6rem); font-weight: 800; line-height: .8; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px var(--accent); font-variant-numeric: tabular-nums; }
.chap-head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -.035em; }
.chap-ic svg { width: 18px; height: 18px; }
.chapter > .lead { max-width: 820px; margin-bottom: 34px; }
.chap-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.chap-dl { margin: 0; border-top: 1px solid var(--line); }
.chap-dl div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.chap-dl dt { font-size: .8rem; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.chap-dl dd { margin: 0; color: var(--ink-2); font-size: .96rem; }
.chap-dl .pill { margin-right: 10px; }
.chap-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.gal { margin: 0; }
.gal figcaption { font-size: .88rem; color: var(--ink-3); margin-top: 12px; font-weight: 600; }
.gal .frame-view { min-height: 200px; }
.thumbs { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.thumb { display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 1px solid var(--line); background: var(--bg-alt); cursor: pointer; overflow: hidden; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s var(--ease), opacity .3s; opacity: .7; }
.thumb:hover img { transform: scale(1.06); opacity: 1; }
.thumb[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.thumb[aria-pressed="true"] img { opacity: 1; }

/* ---------- Feature groups (home) ---------- */
.ggrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.gcard {
  position: relative; display: flex; flex-direction: column; padding: 30px 28px 26px; min-height: 280px;
  background: var(--bg);
  color: var(--ink); text-decoration: none; isolation: isolate; overflow: hidden;
  transition: color .45s var(--ease);
}
.gcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--deep); transform: translateY(101%); transition: transform .55s var(--ease); }
.gcard:hover { color: #fff; }
.gcard:hover::before { transform: none; }
.gcard:hover p { color: rgba(255, 255, 255, .78); }
.g-ic svg { width: 30px; height: 30px; color: var(--accent); transition: color .45s var(--ease); }
.gcard:hover .g-ic svg { color: var(--sky); }
.g-count { position: absolute; top: 26px; right: 26px; font-size: .78rem; font-weight: 700; color: var(--ink-3); border: 1px solid var(--line-2); padding: 2px 8px; transition: color .45s, border-color .45s; }
.gcard:hover .g-count { color: var(--sky); border-color: rgba(132, 203, 235, .5); }
.gcard h3 { font-size: 1.32rem; margin: 22px 0 10px; }
.gcard p { font-size: .95rem; color: var(--ink-2); margin: 0 0 20px; transition: color .45s var(--ease); }
.gcard-all { grid-column: span 2; background: var(--deep); color: #fff; justify-content: space-between; }
.gcard-all::before { background: var(--petrol); }
.gcard-all h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); max-width: 24ch; margin: 0 0 24px; }
.g-big { font-size: clamp(4rem, 8vw, 7rem); font-weight: 800; letter-spacing: -.06em; line-height: .9; color: var(--sky); }
.gcard-all .g-more { color: var(--sky); }
:root[data-theme="dark"] .gcard-all { background: var(--surface); }
.g-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; }
.g-more svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.gcard:hover .g-more svg { transform: translateX(5px); }

/* ---------- Free ---------- */
.free { background: var(--cream); color: #111; overflow: hidden; }
:root[data-theme="dark"] .free { background: #0b1b2b; color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .free { background: #0b1b2b; color: var(--ink); } }
.free .eyebrow { color: var(--petrol); }
:root[data-theme="dark"] .free .eyebrow { color: var(--sky); }
.big-word {
  font-size: clamp(5rem, 20vw, 17rem); line-height: .85; letter-spacing: -.07em; margin: 0 0 30px -.04em;
  background: linear-gradient(90deg, var(--petrol) 0 var(--sweep, 100%), transparent var(--sweep, 100%));
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 1.5px var(--petrol);
}
:root[data-theme="dark"] .big-word { background-image: linear-gradient(90deg, var(--sky) 0 var(--sweep, 100%), transparent var(--sweep, 100%)); -webkit-text-stroke-color: var(--sky); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .big-word { background-image: linear-gradient(90deg, var(--sky) 0 var(--sweep, 100%), transparent var(--sweep, 100%)); -webkit-text-stroke-color: var(--sky); }
}
.free .lead { color: inherit; opacity: .82; max-width: 640px; font-size: clamp(1.1rem, 1.8vw, 1.4rem); }
.free-points { list-style: none; margin: 50px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(17, 17, 17, .2); }
:root[data-theme="dark"] .free-points { border-color: var(--line); }
.free-points li { padding: 24px 24px 0 0; }
.free-points strong { display: block; font-size: 1.12rem; margin-bottom: 6px; }
.free-points span { opacity: .78; font-size: .96rem; }

/* ---------- End ---------- */
.cta-end { text-align: left; }
.cta-end h2 { font-size: clamp(2.4rem, 6vw, 5rem); letter-spacing: -.045em; max-width: 14ch; margin-bottom: 20px; }
.soon-note { font-size: .86rem; color: rgba(255, 255, 255, .6) !important; }

/* ---------- Feature directory and other pages ---------- */
.band { padding: clamp(60px, 8vw, 110px) 0; }
.band-alt { background: var(--bg-alt); }
.band-tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-head { max-width: 820px; margin-bottom: 40px; }
.section-head h2, .h2-mid { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.03em; margin-bottom: 14px; }
.h2-gap { margin-bottom: 30px; }
.filters { display: flex; flex-wrap: wrap; gap: 1px; border: 1px solid var(--line-2); background: var(--line-2); width: fit-content; }
.chip { min-height: 44px; padding: 8px 18px; font: inherit; font-size: .92rem; font-weight: 700; color: var(--ink-2); background: var(--surface); border: 0; cursor: pointer; transition: background-color .3s, color .3s; }
.chip:hover { background: var(--bg-alt); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--deep); color: #fff; }
:root[data-theme="dark"] .chip[aria-pressed="true"] { background: var(--sky); color: var(--deep); }
.filter-status { font-size: .88rem; color: var(--ink-3); margin: 10px 0 0; }
.toc { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 4px; padding: 0; margin: 26px 0 10px; }
.toc a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-size: .88rem; font-weight: 600; }
.toc a:hover { border-color: var(--accent); color: var(--accent); }
.group { padding: 56px 0 10px; scroll-margin-top: calc(var(--head-h) + 120px); }
.group-head { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: start; padding-bottom: 26px; border-bottom: 2px solid var(--ink); }
.group-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.03em; }
.group-head p { margin: 0; color: var(--ink-2); }
.group-shot { margin: 30px 0 10px; }
.screen { border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); overflow: hidden; }
.screen img { width: 100%; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.feature { padding: 24px 24px 22px; background: var(--bg); position: relative; transition: background-color .35s var(--ease); }
.feature::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.feature:hover { background: var(--surface); }
.feature:hover::after { transform: scaleX(1); }
.feature h3 { font-size: 1.04rem; letter-spacing: -.01em; margin-bottom: 6px; }
.feature p { font-size: .93rem; color: var(--ink-2); margin: 0 0 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .72rem; font-weight: 700; padding: 2px 8px; background: var(--tint); color: var(--accent); }
.tag-off { background: transparent; border: 1px solid var(--line-2); color: var(--ink-3); }

.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-top { align-items: start; }
.card { padding: 28px; background: var(--surface); color: var(--ink); }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: .96rem; margin: 0; }
.notice, .panel { padding: clamp(24px, 3.5vw, 40px); background: var(--surface); border: 1px solid var(--line); }
.notice h2, .panel h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.025em; margin: 14px 0 12px; }
.after-list { margin-top: 20px; color: var(--ink-2); }
.dl-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.kv { margin: 0; }
.kv div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.kv div:first-child { padding-top: 0; }
.kv dt { font-size: .84rem; font-weight: 700; color: var(--accent); }
.kv dd { margin: 0; color: var(--ink-2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.steps li { padding: 22px 22px 0 0; }
.st-n { font-size: 2.4rem; font-weight: 800; letter-spacing: -.05em; color: var(--accent); line-height: 1; }
.steps h3 { font-size: 1.12rem; margin: 14px 0 8px; }
.steps p { color: var(--ink-2); font-size: .95rem; }
.plugin-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.plugin-rows li { display: grid; grid-template-columns: 44px 1fr auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.plugin-rows .eco-ic { border-color: var(--line-2); color: var(--accent); }
.plugin-rows h3 { font-size: 1.06rem; }
.plugin-rows h3 a { color: var(--ink); text-decoration: none; }
.plugin-rows h3 a:hover { color: var(--accent); }
.plugin-rows p { margin: 0; font-size: .86rem; color: var(--ink-3); }
.row-status { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px 14px; }

/* ---------- Reel: twelve shapes on a horizontal track driven by the vertical scroll ---------- */
.reel { padding: clamp(64px, 8vw, 100px) 0; }
.reel-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: clamp(18px, 3vh, 34px); }
.reel-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); letter-spacing: -.035em; margin-bottom: 10px; max-width: 22ch; }
.reel-head .eyebrow { margin-bottom: 12px; }
.reel-head .lead { max-width: 640px; margin: 0; }
.reel-count { display: flex; align-items: baseline; gap: 10px; margin: 0; font-variant-numeric: tabular-nums; }
.reel-count b { font-size: clamp(3.4rem, 7vw, 6rem); font-weight: 800; letter-spacing: -.06em; line-height: .8; color: var(--sky); }
.reel-count span { color: rgba(255, 255, 255, .6); font-weight: 700; }
.reel-track { display: flex; gap: clamp(20px, 3vw, 40px); padding: 0 var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.reel-card { flex: none; width: min(720px, 82vw, calc((100vh - 400px) * 1.6)); margin: 0; scroll-snap-align: start; transition: opacity .5s var(--ease); }
.reel-card .frame { box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .8); }
.reel-card .frame-view { aspect-ratio: 16 / 10; }
.reel-card .frame-view img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.reel-card figcaption { display: grid; grid-template-columns: auto 1fr; gap: 16px; margin-top: 16px; }
.reel-card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.reel-n { font-size: .8rem; font-weight: 700; color: var(--sky); border: 1px solid rgba(132, 203, 235, .5); padding: 4px 8px; height: fit-content; }
.reel-card h3 { font-size: 1.4rem; margin-bottom: 6px; color: #fff; }
.reel-card p { margin: 0; font-size: .95rem; max-width: 62ch; }
.reel-bar { height: 2px; background: rgba(255, 255, 255, .14); margin-top: clamp(16px, 3vh, 30px); }
.reel-bar span { display: block; height: 100%; background: var(--sky); transform: scaleX(var(--p, 0)); transform-origin: left; }
@media (min-width: 900px) {
  .js-motion .reel { height: 420vh; padding: 0; overflow: visible; }
  .js-motion .reel-sticky { position: sticky; top: var(--head-h); height: calc(100vh - var(--head-h)); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
  .js-motion .reel-track { overflow: visible; transform: translate3d(var(--x, 0), 0, 0); will-change: transform; padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
  .js-motion .reel-card { opacity: var(--o, .45); }
  .js-motion .reel-card .frame { transform: scale(var(--s, .94)); transform-origin: 50% 100%; transition: transform .2s linear; }
  .js-motion .reel .lines { position: absolute; }
}

@media (min-width: 900px) and (max-height: 1000px) { .js-motion .reel-head .lead { display: none; } }

/* ---------- Features page ---------- */
.feat-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.feat-big { margin: 0; text-align: right; }
.feat-big strong { display: block; font-size: clamp(5rem, 13vw, 11rem); font-weight: 800; line-height: .8; letter-spacing: -.07em; color: transparent; -webkit-text-stroke: 1.5px var(--sky); font-variant-numeric: tabular-nums; }
.feat-big span { display: block; margin-top: 14px; color: rgba(255, 255, 255, .75); font-weight: 600; }
.feat-bar { position: sticky; top: var(--head-h); z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .feat-bar { backdrop-filter: blur(12px); } }
.feat-bar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-top: 14px; padding-bottom: 14px; }
.search { display: flex; align-items: center; gap: 10px; flex: 1 1 280px; min-height: 46px; padding: 0 14px; border: 1px solid var(--line-2); background: var(--surface); transition: border-color .3s; }
.search:focus-within { border-color: var(--accent); box-shadow: var(--focus); }
.search svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; color: var(--ink); height: 44px; }
.search input::placeholder { color: var(--ink-3); }
.search input:focus-visible { box-shadow: none; }
.feat-bar .filter-status { margin: 0; white-space: nowrap; }
.feat-layout { display: grid; grid-template-columns: 220px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; padding-bottom: clamp(60px, 8vw, 110px); }
.feat-toc { position: sticky; top: calc(var(--head-h) + 96px); padding-top: 56px; }
.feat-toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.feat-toc a { display: flex; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: .88rem; font-weight: 600; transition: color .25s, background-color .25s; }
.feat-toc a span { font-size: .72rem; opacity: .6; font-variant-numeric: tabular-nums; padding-top: 2px; }
.feat-toc a:hover { color: var(--accent); background: var(--bg-alt); }
.group-n { font-size: clamp(3rem, 6vw, 5rem); font-weight: 800; line-height: .8; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px var(--accent); font-variant-numeric: tabular-nums; }
.group-meta { display: flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 700; color: var(--accent); margin: 0 0 10px; }
.group-meta .g-ic svg { width: 20px; height: 20px; }
.group-head h2 { margin-bottom: 10px; }
.group.has-shot .group-head { grid-template-columns: auto 1fr minmax(260px, 42%); }
.group-shot { margin: 0; align-self: center; }
.group-shot.is-phone { justify-self: center; width: 200px; }
.feat-empty { padding: 40px 0; font-size: 1.1rem; color: var(--ink-3); }

/* ---------- Light and dark comparison ---------- */
.cmp { position: relative; --cut: 50%; user-select: none; touch-action: pan-y; }
.cmp img { width: 100%; }
.cmp-b { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--cut)); }
.cmp-b img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cmp-line { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 2px; margin-left: -1px; background: var(--sky); pointer-events: none; }
.cmp-line > span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; gap: 2px; padding: 6px; background: var(--deep); border: 1px solid var(--sky); color: #fff; }
.cmp-line svg { width: 16px; height: 16px; max-width: none; flex: none; }
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.cmp-range:focus-visible + .cmp-line, .cmp:focus-within .cmp-line > span { box-shadow: 0 0 0 3px var(--sky); }
.hint { display: flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 600; color: var(--sky) !important; margin-top: 18px; }
.hint svg { width: 18px; height: 18px; }

/* ---------- Accessibility demo ---------- */
.a11y-demo { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; border: 1px solid var(--line); background: var(--line); gap: 1px; }
.a11y-ctrls { background: var(--surface); padding: 28px; display: grid; gap: 18px; align-content: start; }
.a11y-row { display: grid; gap: 8px; }
.a11y-l { font-size: .82rem; font-weight: 700; color: var(--accent); }
.a11y-row .seg { width: 100%; }
.a11y-row .seg button { flex: 1; justify-content: center; padding: 8px 10px; }
.a11y-sample { background: var(--bg); padding: clamp(28px, 4vw, 56px); --fs: 1; --lh: 1.6; --ls: 0; --wsp: 0; transition: background-color .4s var(--ease), color .4s var(--ease); }
.a11y-sample h3 { font-size: calc(1.6rem * var(--fs)); margin-bottom: 16px; letter-spacing: calc(-.02em + var(--ls)); transition: font-size .4s var(--ease); }
.a11y-sample p { font-size: calc(1.05rem * var(--fs)); line-height: var(--lh); letter-spacing: var(--ls); word-spacing: var(--wsp); max-width: 62ch; color: var(--ink-2); transition: font-size .4s var(--ease), line-height .4s var(--ease); }
.a11y-k { font-size: .8rem !important; font-weight: 700; color: var(--accent) !important; letter-spacing: 0 !important; }
.a11y-btn { display: inline-block; margin-top: 10px; padding: 12px 20px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: calc(.95rem * var(--fs)); }
.a11y-sample.size-130 { --fs: 1.3; }
.a11y-sample.size-160 { --fs: 1.6; }
.a11y-sample.space-wide { --lh: 2; --ls: .06em; --wsp: .16em; }
.a11y-sample.contrast-high { background: #000; }
.a11y-sample.contrast-high h3, .a11y-sample.contrast-high p { color: #fff; }
.a11y-sample.contrast-high .a11y-k { color: #ffe600 !important; }
.a11y-sample.contrast-high .a11y-btn { background: #ffe600; color: #000; }
.a11y-sample.bg-cream:not(.contrast-high) { background: #f8f1d8; color: #111; }
.a11y-sample.bg-cream:not(.contrast-high) p, .a11y-sample.bg-grey:not(.contrast-high) p { color: #222; }
.a11y-sample.bg-cream:not(.contrast-high) h3, .a11y-sample.bg-grey:not(.contrast-high) h3 { color: #111; }
.a11y-sample.bg-grey:not(.contrast-high) { background: #e9ebed; color: #111; }
.built-grid { margin-top: clamp(36px, 5vw, 60px); }
.built-grid .card h3 { margin-top: 10px; }
.a11y-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.a11y-col { background: var(--bg); padding: 28px; }
.a11y-col-h { font-size: 1.2rem; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 2px solid var(--ink); }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list .feature { padding: 16px 0; border-bottom: 1px solid var(--line); background: transparent; }
.plain-list .feature::after { display: none; }
.ticks-dark { border-color: rgba(255, 255, 255, .16); max-width: 900px; }
.ticks-dark li { border-color: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .88); font-weight: 500; }
.ticks-dark li svg { color: var(--sky); }
.dark .after-list { max-width: 900px; color: rgba(255, 255, 255, .7); }

@media (max-width: 960px) {
  .feat-layout { grid-template-columns: 1fr; }
  .feat-toc { display: none; }
  .group.has-shot .group-head { grid-template-columns: auto 1fr; }
  .group-shot { grid-column: 1 / -1; }
  .a11y-demo, .a11y-cols, .feat-hero-grid { grid-template-columns: 1fr; }
  .feat-big { text-align: left; }
  .reel-head { flex-direction: column; align-items: start; }
}
@media (max-width: 640px) {
  .group-head { grid-template-columns: 1fr; gap: 8px; }
  .group.has-shot .group-head { grid-template-columns: 1fr; }
  .feat-bar .filters { width: 100%; }
  .feat-bar .filter-status { width: 100%; }
}

/* Shapes page */
.gallery, .styles-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(26px, 4vw, 48px) clamp(20px, 3vw, 36px); }
.gallery figure, .styles-grid figure { margin: 0; }
.gallery figcaption, .styles-grid figcaption { padding-top: 18px; }
.gallery h3, .styles-grid h3 { font-size: 1.3rem; display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.gallery .num { font-size: .8rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.gallery p, .styles-grid p { color: var(--ink-2); font-size: .95rem; margin: 0 0 6px; }
.gallery .pair { font-size: .84rem; color: var(--ink-3); font-weight: 600; }
.styles-grid figcaption { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.styles-grid figcaption h3 { margin: 0; }
.styles-grid figcaption p { grid-column: 1 / -1; margin-top: 8px; }
.screen img { transition: transform 1.2s var(--ease); }
.gallery li:hover .screen img, .styles-grid li:hover .screen img { transform: scale(1.025); }
.duo { display: flex; gap: 20px; align-items: flex-end; }
.duo-even { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.phone { background: #0a1a2a; padding: 6px; box-shadow: var(--shadow); }
.phone img { width: 100%; }
.ticks-cols { columns: 2; column-gap: 40px; border-top: 0; }
.ticks-cols li { break-inside: avoid; }
.shot-soon { padding: 40px; text-align: center; color: var(--ink-3); }

/* FAQ */
.faq { max-width: 900px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding: 22px 0; font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; font-weight: 400; color: var(--accent); transition: transform .4s var(--ease); line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.answer { padding: 0 0 22px; color: var(--ink-2); max-width: 75ch; }
.faq details[open] .answer { animation: fade-up .5s var(--ease); }

/* ---------- FAQ ---------- */
:root { interpolate-size: allow-keywords; }
.faq-layout { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 70px); align-items: start; padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(70px, 9vw, 120px); }
.faq-side { position: sticky; top: calc(var(--head-h) + 24px); display: grid; gap: 18px; }
.faq-cats { display: grid; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.faq-cats .chip { display: flex; justify-content: space-between; align-items: center; text-align: left; border: 0; }
.faq-cats .cnt { margin-left: 10px; }
.faq-contact { padding: 24px; background: var(--deep); color: #fff; position: relative; overflow: hidden; }
.faq-contact::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border: 1px solid rgba(132, 203, 235, .35); transform: rotate(45deg); }
.faq-contact h2 { font-size: 1.2rem; margin-bottom: 8px; }
.faq-contact p { color: rgba(255, 255, 255, .78); font-size: .92rem; }
.faq-list > .filter-status { margin: 0 0 14px; }
.faq { max-width: none; border-top: 2px solid var(--ink); }
.qa { border-bottom: 1px solid var(--line); position: relative; }
.qa::before { content: ""; position: absolute; inset: 0; background: var(--surface); opacity: 0; z-index: -1; transition: opacity .35s var(--ease); }
.qa:hover::before, .qa[open]::before { opacity: 1; }
.qa summary { display: grid; grid-template-columns: 52px 1fr 40px; gap: 14px; align-items: center; padding: 22px 16px 22px 0; }
.faq .qa summary::after { content: none; }
.qa-n { font-size: .8rem; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; padding-left: 14px; }
.qa-q { font-weight: 700; font-size: clamp(1.02rem, 1.4vw, 1.18rem); letter-spacing: -.01em; }
.qa-x { position: relative; width: 36px; height: 36px; border: 1px solid var(--line-2); justify-self: end; transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.qa-x::before, .qa-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .45s var(--ease), background-color .3s; }
.qa-x::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] .qa-x { background: var(--accent); border-color: var(--accent); }
.qa[open] .qa-x::before, .qa[open] .qa-x::after { background: var(--accent-ink); }
.qa[open] .qa-x::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa summary:hover .qa-q { color: var(--accent); }
.qa .answer { padding: 0 60px 26px 66px; font-size: 1.02rem; line-height: 1.7; }
.qa .answer p { margin: 0; }
.qa::details-content { block-size: 0; overflow: hidden; transition: block-size .5s var(--ease), content-visibility .5s allow-discrete; }
.qa[open]::details-content { block-size: auto; }
.faq details[open] .answer { animation: fade-up .5s var(--ease); }
@media (prefers-reduced-motion: reduce) { .qa::details-content { transition: none; } }
@media (max-width: 960px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-side { position: static; }
  .faq-cats { display: flex; flex-wrap: wrap; }
  .faq-cats .chip { flex: 1 1 auto; }
  .faq-contact { display: none; }
}
@media (max-width: 640px) {
  .qa summary { grid-template-columns: 34px 1fr 36px; gap: 8px; }
  .qa-n { padding-left: 0; }
  .qa .answer { padding: 0 0 22px 42px; }
}


/* ---------- The colours of the Letstudy cube: coral, mint and navy ---------- */
.site-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--tri-dark); }
.eyebrow .eb-n { color: #111; border: 0; }
.sec:nth-of-type(3n + 1) .eb-n, .eb-n { background: var(--coral); }
.sec:nth-of-type(3n + 2) .eb-n { background: var(--mint); }
.sec:nth-of-type(3n) .eb-n { background: var(--sky); color: var(--deep); }
.ggrid .gcard:nth-child(3n + 1) .g-ic svg { color: var(--coral); }
.ggrid .gcard:nth-child(3n + 2) .g-ic svg { color: #00a68c; }
.ggrid .gcard:nth-child(3n) .g-ic svg { color: var(--petrol); }
.ggrid .gcard:hover .g-ic svg { color: var(--sky); }
.gcard::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--tri); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease); }
.gcard:hover::after { transform: scaleX(1); }
.eco-panel::before, .xp-progress span, .reel-bar span { background: var(--tri-dark); }
.xp-progress span { background: var(--tri); }
.big-word {
  background-image: linear-gradient(90deg, var(--coral) 0, var(--mint) 45%, var(--petrol) 90%);
  background-size: var(--sweep, 100%) 100%; background-repeat: no-repeat;
}
:root[data-theme="dark"] .big-word { background-image: linear-gradient(90deg, var(--coral) 0, var(--mint) 45%, var(--sky) 90%); background-size: var(--sweep, 100%) 100%; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .big-word { background-image: linear-gradient(90deg, var(--coral) 0, var(--mint) 45%, var(--sky) 90%); background-size: var(--sweep, 100%) 100%; }
}
.free-points li strong::before { content: ""; display: block; width: 28px; height: 4px; margin-bottom: 14px; background: var(--coral); }
.free-points li:nth-child(2) strong::before { background: var(--mint); }
.free-points li:nth-child(3) strong::before { background: var(--navy); }
:root[data-theme="dark"] .free-points li:nth-child(3) strong::before { background: var(--sky); }
.hero h1 em { background: linear-gradient(90deg, var(--sky), var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chap-head .chap-n { -webkit-text-stroke-color: var(--coral); }
.chapter:nth-child(3n + 2) .chap-n { -webkit-text-stroke-color: #00a68c; }
.chapter:nth-child(3n) .chap-n { -webkit-text-stroke-color: var(--petrol); }
.group:nth-child(3n + 1) .group-n { -webkit-text-stroke-color: var(--coral); }
.group:nth-child(3n + 2) .group-n { -webkit-text-stroke-color: #00a68c; }
.qa[open] .qa-x { background: var(--coral); border-color: var(--coral); }
.qa[open] .qa-x::before, .qa[open] .qa-x::after { background: #111; }
.cmp-line { background: var(--mint); }
.cmp-line > span { border-color: var(--mint); }
.faq-contact::after { border-color: rgba(252, 108, 77, .5); }


/* ---------- Accessibility page ---------- */
.aa-big strong { font-size: clamp(6rem, 15vw, 13rem); -webkit-text-stroke-color: var(--mint); }
.a11y-demo { grid-template-columns: minmax(300px, 400px) 1fr; }
.a11y-ctrls { background: var(--deep); color: #fff; }
.a11y-title { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; margin: 0 0 6px; }
.a11y-title svg { width: 26px; height: 26px; color: var(--mint); }
.a11y-ctrls .a11y-l { color: var(--sky); }
.a11y-ctrls .seg { border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .2); }
.a11y-ctrls .seg button { background: #0d2236; color: rgba(255, 255, 255, .85); }
.a11y-ctrls .seg button:hover { background: #133049; color: #fff; }
.a11y-ctrls .seg button[aria-pressed="true"] { background: var(--mint); color: #062a24; }
.a11y-ctrls .muted { color: rgba(255, 255, 255, .6); }
.a11y-stage { background: var(--bg-alt); padding: clamp(18px, 3vw, 40px); display: grid; align-items: center; }
.a11y-stage .frame { box-shadow: var(--shadow); }
.a11y-sample { position: relative; overflow: hidden; min-height: 380px; }
.a11y-guide { display: none; position: absolute; left: 0; right: 0; top: var(--gy, 40%); height: 2.2em; transform: translateY(-50%); background: rgba(252, 108, 77, .14); box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .28); pointer-events: none; transition: top .08s linear; }
.a11y-sample.guide-on .a11y-guide { display: block; }
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(36px, 5vw, 60px); }
.pcard { position: relative; background: var(--bg); padding: 28px 24px; overflow: hidden; isolation: isolate; transition: color .45s var(--ease); }
.pcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--deep); transform: translateY(101%); transition: transform .55s var(--ease); }
.pcard:hover { color: #fff; }
.pcard:hover::before { transform: none; }
.pcard:hover p { color: rgba(255, 255, 255, .78); }
.pcard-ic svg { width: 36px; height: 36px; color: var(--coral); }
.pcard:nth-child(2) .pcard-ic svg { color: #00a68c; }
.pcard:nth-child(3) .pcard-ic svg { color: var(--petrol); }
.pcard:nth-child(4) .pcard-ic svg { color: var(--navy); }
:root[data-theme="dark"] .pcard:nth-child(4) .pcard-ic svg { color: var(--sky); }
.pcard:hover .pcard-ic svg { color: var(--sky); }
.pcard .pr-n { position: absolute; top: 24px; right: 24px; color: var(--ink-3); }
.pcard h3 { font-size: 1.15rem; margin: 20px 0 8px; }
.pcard p { margin: 0; font-size: .94rem; color: var(--ink-2); transition: color .45s var(--ease); }
.a11y-col-h { display: flex; align-items: center; gap: 10px; }
.a11y-col-h svg { width: 22px; height: 22px; color: var(--accent); }
.hstates { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .14); max-width: 1000px; }
.hs { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: start; padding: 22px 24px; background: rgba(7, 19, 31, .6); }
.hs p { margin: 0; color: rgba(255, 255, 255, .88) !important; }
.hs-pill { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 5px 12px; font-size: .8rem; font-weight: 700; }
.hs-pill svg { width: 14px; height: 14px; }
.hs-done .hs-pill { background: var(--mint); color: #062a24; }
.hs-notyet .hs-pill { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
.hs-open .hs-pill { background: var(--coral); color: #2a0d05; }
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.doc { position: relative; padding: 34px 28px 30px; background: var(--surface); border: 1px solid var(--line); box-shadow: 8px 8px 0 -1px var(--bg-alt), 8px 8px 0 0 var(--line), 16px 16px 0 -1px var(--bg-alt), 16px 16px 0 0 var(--line); transition: transform .45s var(--ease); }
.doc:hover { transform: translate(-4px, -4px); }
.doc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--tri); }
.doc-ic svg { width: 34px; height: 34px; color: var(--accent); }
.doc h3 { font-size: 1.2rem; margin: 18px 0 10px; }
.doc p { margin: 0; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 960px) {
  .a11y-demo { grid-template-columns: minmax(0, 1fr); }
  .a11y-stage .frame-url { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .docs { grid-template-columns: 1fr; gap: 30px; }
  .hs { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 640px) { .pgrid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-foot { position: relative; isolation: isolate; overflow: hidden; background: var(--deep-2); color: rgba(255, 255, 255, .78); padding: 80px 0 40px; font-size: .94rem; }
.lines-foot path { stroke: rgba(255, 255, 255, .18); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.foot-logo { width: 170px; margin-bottom: 20px; }
.foot-about p { max-width: 36ch; }
.site-foot h2 { font-size: .84rem; font-weight: 700; color: var(--sky); margin-bottom: 14px; letter-spacing: .01em; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.foot-legal { padding-top: 26px; font-size: .82rem; color: rgba(255, 255, 255, .6); }
.foot-legal p { margin: 0 0 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .nav a { padding: 10px 7px; font-size: .86rem; }
  .brand-small { display: none; }
}
@media (max-width: 1100px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1000px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hv-scene { padding: 20px 0 40px 20px; }
  .hv-back { display: none; }
  .hv-controls { padding-left: 0; }
}
@media (max-width: 960px) {
  .menu-btn { display: inline-grid; }
  .nav {
    position: fixed; top: var(--head-h); left: 0; right: 0; flex-direction: column; gap: 0; margin: 0;
    background: var(--deep-2); padding: 10px var(--gutter) 24px; border-top: 1px solid rgba(255, 255, 255, .1);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 16px 0; font-size: 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav a::after { left: 0; right: auto; width: 40px; bottom: 10px; }
  .head-tools { margin-left: auto; }
  .xp-body { grid-template-columns: minmax(0, 1fr); }
  .xp-side { min-width: 0; }
  .xp-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .xp-list { display: flex; gap: 1px; background: var(--line); overflow-x: auto; max-height: none; scroll-snap-type: x mandatory; }
  .xp-list li { flex: none; scroll-snap-align: start; }
  .xp-item { border-bottom: 0; background: var(--bg); white-space: nowrap; padding: 14px 16px; }
  .role, .eco-panel, .split, .chap-grid, .dl-grid { grid-template-columns: 1fr; }
  .eco { grid-template-columns: 1fr; gap: 26px; }
  .eco-core { order: -1; }
  .eco-wires { display: none; }
  .eco-col { grid-template-columns: repeat(2, 1fr); }
  .eco-side { grid-column: 1 / -1; }
  .chapters-wrap { grid-template-columns: 1fr; }
  .chap-index { position: static; }
  .chap-index ol { display: flex; flex-wrap: wrap; border: 0; gap: 6px; }
  .chap-index a { border: 1px solid var(--line); padding: 6px 10px; }
  .ggrid, .grid-3, .feature-list { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .group-head { grid-template-columns: 1fr; gap: 10px; }
  .duo-even { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-small, .head-cta { display: none; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact { padding: 24px 16px 22px; }
  .hv-chip { display: none; }
  .hv-phone { width: 28%; }
  .xp-bar { flex-direction: column; align-items: stretch; }
  .xp-tabs, .xp-tools, .seg-mode { width: 100%; }
  .xp-tabs button, .seg-mode button { flex: 1; justify-content: center; padding: 8px 10px; }
  .tour { width: 100%; justify-content: center; }
  .xp-cap { grid-template-columns: 1fr; gap: 6px; }
  .roles-tabs { display: flex; width: 100%; }
  .roles-tabs button { flex: 1; justify-content: center; padding: 8px 6px; font-size: .84rem; }
  .eco-col { grid-template-columns: 1fr; }
  .eco-dl div, .kv div { grid-template-columns: 1fr; gap: 4px; }
  .ggrid, .grid-2, .grid-3, .feature-list, .gallery, .styles-grid, .free-points, .steps { grid-template-columns: 1fr; }
  .gcard-all { grid-column: auto; }
  .gcard { min-height: 0; }
  .plugin-rows li { grid-template-columns: 44px 1fr; }
  .row-status { grid-column: 1 / -1; justify-content: flex-start; }
  .foot-grid { grid-template-columns: 1fr; }
  .ticks-cols { columns: 1; }
  .chap-head { grid-template-columns: 1fr; gap: 10px; }
  .filters { width: 100%; }
  .chip { flex: 1; padding: 8px 6px; font-size: .84rem; }
}

/* Motion: a request for less motion on the device always wins. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hv-main, .hv-back, .hv-phone { transform: none !important; translate: none !important; }
}

@media (forced-colors: active) {
  .btn, .seg, .tour, .eco-node, .chip, .frame { border: 1px solid CanvasText; }
  .big-word { color: CanvasText; -webkit-text-stroke: 0; background: none; }
}

@media print {
  .site-head, .site-foot, .lines, .xp-bar, .tour { display: none !important; }
  .dark { background: none; color: #000; }
}

/* ---------- Calm statements instead of giant type ---------- */
.free-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.free h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -.03em; margin-bottom: 16px; }
.free .lead { font-size: clamp(1.02rem, 1.3vw, 1.14rem); }
.free-grid .free-points { margin: 0; grid-template-columns: 1fr; gap: 0; border-top: 1px solid rgba(17, 17, 17, .18); }
.free-grid .free-points li { padding: 20px 0; border-bottom: 1px solid rgba(17, 17, 17, .12); }
:root[data-theme="dark"] .free-grid .free-points, :root[data-theme="dark"] .free-grid .free-points li { border-color: var(--line); }
.free-grid .free-points li strong { display: flex; align-items: center; gap: 12px; margin: 0 0 4px; }
.free-grid .free-points li strong::before { display: inline-block; width: 10px; height: 10px; margin: 0; flex: none; }
.free-grid .free-points li span { display: block; padding-left: 22px; }
.feat-big { align-self: end; justify-self: end; text-align: left; padding: 22px 26px; min-width: 220px; border: 1px solid rgba(132, 203, 235, .35); background: rgba(7, 19, 31, .35); }
.feat-big strong { font-size: clamp(2.6rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -.04em; color: var(--sky); -webkit-text-stroke: 0; }
.feat-big span { margin-top: 8px; font-size: .9rem; max-width: 22ch; }
.std-tags { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; align-self: end; background: rgba(132, 203, 235, .3); border: 1px solid rgba(132, 203, 235, .3); min-width: 260px; }
.std-tags li { display: grid; gap: 2px; padding: 14px 18px; background: rgba(7, 19, 31, .55); font-size: .86rem; color: rgba(255, 255, 255, .72); }
.std-tags b { color: #fff; font-size: 1rem; }
.std-tags li:first-child b { color: var(--mint); }
@media (max-width: 960px) {
  .free-grid { grid-template-columns: 1fr; }
  .feat-big, .std-tags { justify-self: start; }
}

/* ---------- Live demo ---------- */
.head-cta svg { width: 14px; height: 14px; }
.demo-band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.demo-head { display: grid; grid-template-columns: 1fr auto; gap: 30px 60px; align-items: end; margin-bottom: clamp(32px, 4vw, 52px); }
.demo-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.035em; margin-bottom: 14px; }
.demo-head .lead { max-width: 720px; margin: 0; }
.demo-go { display: grid; gap: 10px; justify-items: start; }
.demo-go .btn { min-height: 56px; padding: 14px 28px; font-size: 1.05rem; }
.demo-url { font-size: .84rem; font-weight: 700; color: var(--ink-3); }
.accs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.acc { position: relative; background: var(--bg); padding: 30px 28px 26px; overflow: hidden; }
.acc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--coral); }
.acc:nth-child(2)::before { background: var(--mint); }
.acc:nth-child(3)::before { background: var(--petrol); }
.acc-ic svg { width: 32px; height: 32px; color: var(--accent); }
.acc h3 { font-size: 1.35rem; margin: 16px 0 8px; }
.acc p { color: var(--ink-2); font-size: .95rem; }
.acc-cred { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 18px 0 0; padding: 14px 16px; background: var(--deep); color: #fff !important; font-size: .86rem !important; }
.acc-cred span { color: rgba(255, 255, 255, .62); }
.acc-cred b { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 600; color: var(--sky); letter-spacing: .02em; }
@media (max-width: 960px) {
  .demo-head { grid-template-columns: 1fr; }
  .accs { grid-template-columns: 1fr; }
}

/* The header keeps one line between the phone menu and wide screens. */
@media (max-width: 1180px) and (min-width: 961px) {
  .head-row { gap: 16px; }
  .nav { gap: 0; }
  .nav a { padding: 10px 6px; font-size: .84rem; }
  .head-cta svg { display: none; }
  .head-cta { padding: 8px 12px; }
}
