/* Evopix — site styles
   Palette: paper #F2F4F6, ink #131A21, slate #56616E, line #D8DDE2,
            teal #0A7C77 (text-safe), app panel #1B232B, app teal #34C6B8 */

:root {
  --paper: #f2f4f6;
  --paper-2: #e8ecef;
  --white: #ffffff;
  --ink: #131a21;
  --slate: #56616e;
  --line: #d8dde2;
  --teal: #0a7c77;
  --teal-ink: #075e5a;
  --panel: #1b232b;
  --panel-2: #242e37;
  --panel-3: #2e3943;
  --panel-text: #c9d3dc;
  --app-teal: #34c6b8;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  font-variation-settings: "wdth" 100;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 244, 246, 0.88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; }
.brand:hover { color: var(--ink); }

.nav-links { display: flex; align-items: center; gap: 4px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: var(--radius-s);
  color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500;
}
.nav-links a:hover { background: var(--paper-2); }
.nav-links a[aria-current="page"] { color: var(--teal); }
.nav-cta { margin-left: 8px; }

.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius-s); width: 44px; height: 40px; cursor: pointer; color: var(--ink); }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: currentColor; margin: 0 auto; position: relative; border-radius: 2px; transition: transform .2s, background .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav-links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .nav-cta { margin: 16px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  font: 600 .98rem/1 var(--body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #26313c; color: #fff; }
.btn-ghost { border-color: #b9c1c9; color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 0; }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: end; }
.hero h1 { max-width: 13ch; }
.hero-lede { font-size: 1.2rem; color: var(--slate); max-width: 40ch; margin: 0 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-alt { margin: 18px 0 0; font-size: .93rem; color: var(--slate); }
@media (max-width: 860px) { .hero-top { grid-template-columns: 1fr; gap: 24px; } }

/* Editor mockup */
.editor {
  margin-top: clamp(36px, 5vw, 56px);
  background: var(--panel); color: var(--panel-text);
  border-radius: var(--radius-l);
  padding: 10px;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 30px 60px -30px rgba(19,26,33,.55);
  font-size: .8rem;
}
.ed-top { display: flex; align-items: center; gap: 6px; padding: 4px 6px 10px; }
.ed-top .ed-tab { padding: 6px 10px; border-radius: 6px; color: #9aa7b3; white-space: nowrap; }
.ed-top .ed-tab.on { background: var(--panel-3); color: #fff; }
.ed-top .ed-spacer { flex: 1; }
.ed-top .ed-export { background: var(--app-teal); color: #062a27; font-weight: 600; padding: 6px 12px; border-radius: 6px; }
.ed-body { display: grid; grid-template-columns: 52px minmax(0, 1fr) 92px; gap: 10px; }
.ed-tools { display: grid; align-content: start; gap: 4px; background: var(--panel-2); border-radius: 10px; padding: 6px; }
.ed-tools span { display: grid; place-items: center; height: 38px; border-radius: 7px; color: #a9b5c0; }
.ed-tools span.on { background: var(--app-teal); color: #062a27; }
.ed-tools svg { width: 20px; height: 20px; }
.ed-canvas { position: relative; border-radius: 8px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; isolation: isolate; }
.ed-canvas svg.scene { width: 100%; height: 100%; transition: filter .45s ease; }
.ed-canvas .tint { position: absolute; inset: 0; pointer-events: none; transition: background .45s ease, opacity .45s ease; opacity: 0; }
.ed-canvas .badge { position: absolute; left: 12px; bottom: 12px; background: rgba(15,20,25,.72); color: #fff; padding: 5px 10px; border-radius: 6px; font-size: .78rem; backdrop-filter: blur(4px); }
.ed-layers { display: grid; align-content: start; gap: 6px; background: var(--panel-2); border-radius: 10px; padding: 6px; }
.ed-layers .ly { height: 52px; border-radius: 6px; border: 2px solid transparent; background: var(--panel-3); overflow: hidden; position: relative; }
.ed-layers .ly.on { border-color: var(--app-teal); }
.ed-layers .ly i { position: absolute; inset: 0; }
.ed-bottom { display: flex; gap: 6px; padding: 10px 2px 2px; overflow-x: auto; scrollbar-width: thin; }
.ed-bottom span { padding: 6px 10px; border-radius: 6px; background: var(--panel-2); color: #9aa7b3; white-space: nowrap; }
@media (max-width: 720px) {
  .ed-body { grid-template-columns: minmax(0, 1fr); }
  .ed-tools, .ed-layers { display: none; }
  .ed-top .ed-tab:nth-child(n+5) { display: none; }
}

/* Looks strip under editor */
.looks { display: flex; align-items: center; gap: 14px; margin: 18px 0 0; flex-wrap: wrap; }
.looks-label { font-weight: 600; font-size: .95rem; margin-right: 4px; }
.looks-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.look {
  font: 500 .88rem/1 var(--body); padding: 9px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer;
}
.look:hover { border-color: #9aa5b0; }
.look[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.looks-note { font-size: .88rem; color: var(--slate); margin: 12px 0 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: end; margin-bottom: 48px; }
.section-head p { color: var(--slate); max-width: 52ch; margin: 0; font-size: 1.08rem; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 16px; } }

/* Feature index — rows like a manual's index */
.index { border-top: 1px solid var(--ink); }
.index-row {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr);
  gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.index-row h3 { font-size: 1.35rem; }
.index-row p { margin: 0; color: #2c3640; }
.path { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: .85rem; color: var(--slate); justify-self: end; text-align: right; }
.path b { font-weight: 500; color: var(--ink); background: var(--white); border: 1px solid var(--line); padding: 3px 8px; border-radius: 5px; }
@media (max-width: 860px) {
  .index-row { grid-template-columns: 1fr; gap: 8px; }
  .path { justify-self: start; text-align: left; }
}

/* Tool shelf */
.shelf { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.shelf-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 26px 28px; }
.shelf-box h3 { margin-bottom: 6px; }
.shelf-box > p { color: var(--slate); font-size: .96rem; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips li { font-size: .9rem; padding: 5px 11px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); }
.shelf-box.dark { background: var(--panel); border-color: var(--panel); color: var(--panel-text); }
.shelf-box.dark h3 { color: #fff; }
.shelf-box.dark > p { color: #93a1ae; }
.shelf-box.dark .chips li { background: var(--panel-2); border-color: var(--panel-3); color: #dbe3ea; }
@media (max-width: 760px) { .shelf { grid-template-columns: 1fr; } }

/* Privacy band */
.band { background: var(--panel); color: var(--panel-text); }
.band h2 { color: #fff; max-width: 16ch; }
.band a { color: var(--app-teal); }
.band-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
.band-lede { color: #a7b3be; font-size: 1.1rem; margin-top: 20px; max-width: 42ch; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--panel-3); }
.facts li { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--panel-3); }
.facts li:nth-child(odd) { border-right: 1px solid var(--panel-3); }
.facts li:nth-child(even) { padding-left: 24px; }
.facts strong { display: block; color: #fff; font-family: var(--display); font-size: 1.15rem; font-weight: 600; margin-bottom: 4px; }
.facts span { font-size: .95rem; color: #98a6b3; }
@media (max-width: 860px) {
  .band-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .facts li:nth-child(odd) { border-right: 0; }
  .facts li:nth-child(even) { padding-left: 0; }
}

/* Maker's note */
.note { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; }
.note-mark { width: 120px; height: 120px; }
.note blockquote { margin: 0; font-family: var(--display); font-size: clamp(1.35rem, 2.3vw, 1.75rem); line-height: 1.38; letter-spacing: -0.01em; font-weight: 450; }
.note blockquote p { margin: 0 0 .8em; }
.note-sign { display: flex; align-items: center; gap: 14px; margin-top: 28px; font-size: .98rem; }
.note-sign .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; }
.note-sign span { color: var(--slate); display: block; font-size: .9rem; }
@media (max-width: 760px) { .note { grid-template-columns: 1fr; gap: 24px; } .note-mark { width: 72px; height: 72px; } }

/* Install */
.install { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.install-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 32px; display: flex; flex-direction: column; }
.install-card.main { border: 2px solid var(--ink); }
.install-card h3 { font-size: 1.6rem; margin-bottom: 8px; }
.install-card .meta { color: var(--slate); font-size: .95rem; margin-bottom: 22px; }
.install-card .btn { align-self: flex-start; margin-top: auto; }
.steps { counter-reset: s; list-style: none; margin: 0 0 26px; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 14px 40px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--ink);
  display: grid; place-items: center; font-size: .82rem; font-weight: 600;
}
.version { margin-top: 28px; display: flex; gap: 14px; align-items: baseline; font-size: .95rem; color: var(--slate); }
.version b { color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 5px; padding: 2px 8px; font-weight: 600; }
@media (max-width: 860px) { .install { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--ink); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--display); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 0 22px; color: #2c3640; max-width: 64ch; }

/* CTA strip */
.cta { padding: 0 0 clamp(72px, 10vw, 120px); }
.cta-box { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; border-top: 1px solid var(--ink); padding-top: 40px; }
.cta-box h2 { max-width: 18ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 56px 0 32px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-grid p { color: var(--slate); max-width: 34ch; margin-top: 14px; }
.foot-grid h4 { font-family: var(--body); font-size: .95rem; font-weight: 600; margin: 4px 0 14px; letter-spacing: 0; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--slate); text-decoration: none; }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--slate); font-size: .88rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Inner pages (guide, privacy, contact) ---------- */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); max-width: 18ch; }
.page-head p { color: var(--slate); font-size: 1.15rem; max-width: 56ch; margin: 18px 0 0; }
.page-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 24px; font-size: .92rem; color: var(--slate); }
.page-meta b { color: var(--ink); font-weight: 600; }

.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 64px; padding: 48px 0 96px; }
.toc { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; font-size: .92rem; padding-right: 8px; }
.toc h2 { font-family: var(--body); font-size: .95rem; font-weight: 600; margin-bottom: 10px; letter-spacing: 0; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: grid; grid-template-columns: 26px 1fr; padding: 5px 0; color: var(--slate); text-decoration: none; line-height: 1.35; }
.toc a::before { content: counter(t); color: #9aa5b0; font-variant-numeric: tabular-nums; }
.toc a:hover, .toc a.is-active { color: var(--ink); }
.toc a.is-active::before { color: var(--teal); }

.prose { max-width: 70ch; }
.prose section { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.prose section:last-child { border-bottom: 0; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-bottom: 18px; display: flex; gap: 14px; align-items: baseline; }
.prose h2 .n { font-family: var(--body); font-size: .95rem; color: var(--teal); font-weight: 600; min-width: 1.6em; }
.prose h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: #8a96a2; }
.prose strong { font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; }
.tip { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 0 var(--radius-s) var(--radius-s) 0; padding: 14px 18px; margin: 18px 0; font-size: .97rem; }
.tip strong { color: var(--teal-ink); }
.kbd, kbd { font-family: var(--body); font-size: .85em; background: var(--white); border: 1px solid #c3cad1; border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px; }
.m { white-space: nowrap; font-size: .92em; background: var(--white); border: 1px solid var(--line); border-radius: 5px; padding: 1px 7px; color: var(--ink); }

@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px 18px; background: var(--white); }
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; padding: 56px 0 96px; }
.topics { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.topics li { border-bottom: 1px solid var(--line); }
.topics a { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; padding: 22px 0; text-decoration: none; color: var(--ink); }
.topics a strong { font-family: var(--display); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; }
.topics a span { grid-column: 1; color: var(--slate); font-size: .97rem; }
.topics a em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-size: .9rem; font-weight: 600; color: var(--teal); white-space: nowrap; }
.topics a:hover strong { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.aside-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; }
.aside-box + .aside-box { margin-top: 20px; }
.aside-box h2 { font-size: 1.35rem; margin-bottom: 12px; }
.aside-box ul { padding-left: 1.2em; margin: 0; }
.aside-box li { margin-bottom: 6px; }
.mail-big { font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 600; word-break: break-all; letter-spacing: -0.01em; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* 404 */
.lost { min-height: 60vh; display: grid; place-content: center; text-align: center; padding: 80px 20px; }
.lost img { width: 88px; margin: 0 auto 28px; }
.lost p { color: var(--slate); }

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

/* Header CTA keeps button colours over .nav-links a */
.nav-links .btn-primary { color: #fff; background: var(--ink); padding: 9px 16px; border-radius: 999px; }
.nav-links .btn-primary:hover { background: #26313c; color: #fff; }
figure.editor { margin-left: 0; margin-right: 0; }
.nav-links .btn { display: inline-flex; align-items: center; gap: 8px; }

/* What's new */
.whatsnew { margin-top: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px 32px; }
.whatsnew h3 { font-size: 1.35rem; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin-bottom: 16px; }
.whatsnew h3 span { font-family: var(--body); font-size: .9rem; font-weight: 400; color: var(--slate); letter-spacing: 0; }
.whatsnew ul { columns: 2; column-gap: 40px; margin: 0; padding-left: 1.1em; }
.whatsnew li { margin-bottom: 6px; break-inside: avoid; }
.whatsnew li::marker { color: var(--teal); }
@media (max-width: 640px) { .whatsnew ul { columns: 1; } .whatsnew { padding: 22px; } }

/* ---------- Hero stage: exploded layer stack ---------- */
.stage {
  margin: clamp(36px, 5vw, 56px) 0 0;
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  background: var(--panel); border-radius: var(--radius-l); overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(19,26,33,.55);
}
.stage-view {
  position: relative; min-height: 560px; display: grid; place-items: center;
  perspective: 2200px; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(52,198,184,.10), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 32px);
}
.stack {
  --gap: 0px; --w: min(500px, 62vw);
  position: relative; width: var(--w); aspect-ratio: 16 / 10;
  transform-style: preserve-3d;
  transform: rotateX(56deg) rotateZ(-36deg) translateZ(-60px);
  margin-top: 40px;
}
.stack.is-open { --gap: 72px; }
.plane {
  position: absolute; inset: 0; border-radius: 8px; overflow: hidden;
  transform: translateZ(calc(var(--i) * var(--gap)));
  transition: transform .9s cubic-bezier(.2,.8,.2,1), box-shadow .3s, outline-color .3s;
  outline: 1.5px solid rgba(255,255,255,.18); outline-offset: -1px;
}
.plane svg { width: 100%; height: 100%; }
.stack.is-open .plane:not(.p-photo) {
  background-image: repeating-conic-gradient(rgba(255,255,255,.06) 0 25%, transparent 0 50%);
  background-size: 22px 22px;
}
.p-photo { --i: 0; box-shadow: 0 40px 60px -20px rgba(0,0,0,.6); }
.p-sky   { --i: 1; }
.p-grade { --i: 2; }
.p-flare { --i: 3; }
.p-text  { --i: 4; }
.stack .p-grade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,110,120,.38), rgba(16,110,120,.12) 50%, rgba(230,120,45,.28)); }
.stack .p-flare::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 67.5% 43%, rgba(255,240,205,.95) 0 2%, rgba(255,214,150,.55) 6%, rgba(255,190,120,.18) 18%, transparent 34%); }
.p-title { position: absolute; left: 7%; bottom: 10%; color: #fff; font-family: var(--display); font-weight: 700; font-size: calc(var(--w) * .085); line-height: 1; letter-spacing: -0.03em; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.p-title span { display: block; font-family: var(--body); font-weight: 500; font-size: .32em; letter-spacing: 0; margin-top: .5em; opacity: .9; }
.plane.is-lifted { transform: translateZ(calc(var(--i) * var(--gap) + 46px)); outline: 2px solid var(--app-teal); }
.stack:not(.is-open) .plane { outline-color: transparent; }
.stack:not(.is-open) .plane.is-lifted { transform: translateZ(0); outline-color: transparent; }

.stage-panel { background: var(--panel-2); color: var(--panel-text); padding: 18px; display: flex; flex-direction: column; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: #fff; font-weight: 600; }
.flatten { font: 600 .85rem/1 var(--body); background: var(--panel-3); color: #e6edf2; border: 0; border-radius: 6px; padding: 8px 12px; cursor: pointer; }
.flatten:hover { background: #3a4651; }
.flatten[aria-pressed="true"] { background: var(--app-teal); color: #062a27; }
.layer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.layer-list button {
  width: 100%; display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center;
  background: transparent; border: 1.5px solid transparent; border-radius: 8px; padding: 6px;
  color: #e6edf2; font: 500 .93rem/1.25 var(--body); text-align: left; cursor: pointer;
}
.layer-list button:hover { background: var(--panel-3); }
.layer-list button[aria-current="true"] { border-color: var(--app-teal); background: var(--panel-3); }
.layer-list small { display: block; color: #8d9ba8; font-size: .8rem; margin-top: 2px; }
.t { display: grid; place-items: center; width: 48px; height: 32px; border-radius: 4px; font-style: normal; font: 700 .8rem/1 var(--display); color: #fff; background: repeating-conic-gradient(#3a4651 0 25%, #2e3943 0 50%) 0 0 / 8px 8px; }
.t-photo { background: linear-gradient(#9fb3c4 0 55%, #596f80 55% 68%, #3d5466 68%); }
.t-sky { background: linear-gradient(#3f6fa8, #e9a77a 80%, transparent 80%), repeating-conic-gradient(#3a4651 0 25%, #2e3943 0 50%) 0 0 / 8px 8px; }
.t-grade { background: linear-gradient(#106e78, #e6782d); }
.t-flare { background: radial-gradient(circle at 65% 45%, #fff0cd 0 8%, rgba(255,200,130,.5) 25%, transparent 50%), #000; }
.stage-panel figcaption { margin-top: auto; padding-top: 18px; font-size: .86rem; color: #93a1ae; line-height: 1.5; }

@media (max-width: 900px) {
  .stage { grid-template-columns: 1fr; }
  .stage-view { min-height: 400px; }
  .stack { --w: min(420px, 74vw); }
  .stack.is-open { --gap: 52px; }
}
@media (max-width: 520px) {
  .stage-view { min-height: 320px; }
  .stack.is-open { --gap: 38px; }
}
@media (max-width: 520px) { .stack { margin-top: 70px; } }

/* ---------- "Get it on Google Play" pop-up for APK links ---------- */
.no-scroll { overflow: hidden; }
.apk-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
  visibility: hidden; pointer-events: none; }
.apk-modal.is-open { visibility: visible; pointer-events: auto; }
.apk-backdrop { position: absolute; inset: 0; background: rgba(19, 26, 33, .55); opacity: 0; transition: opacity .2s ease; }
.apk-modal.is-open .apk-backdrop { opacity: 1; }
.apk-card { position: relative; width: min(440px, 100%); background: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px 26px 22px;
  box-shadow: 0 24px 60px rgba(19, 26, 33, .28);
  opacity: 0; transform: translateY(12px) scale(.97); transition: opacity .22s ease, transform .26s cubic-bezier(.2, .9, .15, 1); }
.apk-modal.is-open .apk-card { opacity: 1; transform: none; }
.apk-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper); color: var(--slate); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.apk-x:hover { color: var(--ink); border-color: #b9c1c9; }
.apk-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--teal); margin-bottom: 14px; }
.apk-icon svg { width: 24px; height: 24px; }
.apk-card h2 { font-family: var(--display); font-size: 1.45rem; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 8px; }
.apk-card p { margin: 0 0 14px; color: var(--slate); font-size: 1rem; }
.apk-why { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; font-size: .95rem; color: var(--slate); }
.apk-why li { padding-left: 22px; position: relative; }
.apk-why li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 6px;
  border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.apk-why strong { color: var(--ink); font-weight: 600; }
.apk-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.apk-actions .btn { justify-content: center; }
.apk-anyway { text-align: center; font-size: .92rem; color: var(--slate); text-decoration: underline; text-underline-offset: 3px; }
.apk-anyway:hover { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .apk-card, .apk-backdrop { transition: none; } }
