/* Emulsion Labs: shared site styles. "Ash" look (from Playlist Pro). Amber appears only in the logo. */
:root {
  color-scheme: dark;
  --bg: #151413;
  --surface: #1c1b19;
  --card: #242220;
  --hover: #2d2b28;
  --line: #2f2d2a;
  --text: #e7e3dd;
  --sub: #aaa59e;
  --muted: #74706a;
  --accent: #c9c3ba;
  --accent-hover: #e2ddd5;
  --ink: #161513;
  --radius: 16px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent-hover); text-underline-offset: 3px; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--accent); color: var(--ink); padding: 6px 12px; border-radius: 999px; }
:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; border-radius: 8px; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(21, 20, 19, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; }
.brand img { width: 30px; height: 30px; border-radius: 50%; }
.brand:hover { color: var(--text); }
.nav { margin-left: auto; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--sub); text-decoration: none; padding: 6px 12px; border-radius: 999px; font-size: 15px; white-space: nowrap; transition: background .2s, color .2s; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--card); color: var(--text); }

/* Product sub-nav */
.subnav { border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; align-items: center; gap: 4px; height: 52px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav .name { font-weight: 650; margin-right: 12px; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.subnav .name img { width: 22px; height: 22px; border-radius: 6px; }
.subnav a { color: var(--sub); text-decoration: none; padding: 5px 12px; border-radius: 999px; font-size: 14px; white-space: nowrap; }
.subnav a:hover, .subnav a[aria-current="page"] { background: var(--card); color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--ink); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.btn-ghost { color: var(--text); background: var(--card); }
.btn-ghost:hover { background: var(--hover); color: var(--text); }
.btn-soon { background: transparent; color: var(--sub); border: 1px dashed var(--line); cursor: default; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Pills / tags */
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--card); color: var(--sub); font-size: 13px; line-height: 1.6; white-space: nowrap; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Section scaffolding */
section { padding: 72px 0; }
.eyebrow { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.sec-title { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
.sec-lead { color: var(--sub); font-size: 17px; max-width: 60ch; margin-top: 12px; }
.sec-head { margin-bottom: 32px; }

/* ---------- Home ---------- */
.home-hero { padding: 88px 0 40px; }
.home-hero h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.04; letter-spacing: -.03em; font-weight: 750; max-width: 14ch; }
.home-hero h1 span { color: var(--sub); }
.home-hero .sec-lead { font-size: 18px; margin-top: 18px; }

.products { padding-top: 24px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.p-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  transition: transform .25s, border-color .25s, background .25s;
}
.p-card:hover { transform: translateY(-3px); border-color: #3d3a36; color: var(--text); }
.p-card .shot { aspect-ratio: 16 / 10; background: var(--card); overflow: hidden; border-bottom: 1px solid var(--line); }
.p-card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s; }
.p-card:hover .shot img { transform: scale(1.025); }
.p-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.p-card h2 { font-size: 21px; letter-spacing: -.01em; font-weight: 700; }
.p-card p { color: var(--sub); font-size: 15px; line-height: 1.55; }
.p-card .more { margin-top: auto; padding-top: 6px; color: var(--accent-hover); font-size: 15px; font-weight: 600; }

/* ---------- Product page ---------- */
.p-hero { padding: 64px 0 56px; }
.p-hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.p-hero h1 { font-size: clamp(38px, 5.6vw, 56px); line-height: 1.05; letter-spacing: -.03em; font-weight: 750; margin-top: 16px; }
.p-hero .sec-lead { font-size: 18px; margin-top: 16px; }
.p-hero .btns { margin-top: 28px; }
.p-hero .fine { color: var(--muted); font-size: 14px; margin-top: 16px; }
.p-hero .visual { display: flex; justify-content: center; }

/* Phone frame */
.phone { width: min(300px, 70vw); aspect-ratio: 9 / 19.5; border-radius: 36px; padding: 8px; background: var(--hover); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 29px; }

/* Showcase */
.showcase { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.showcase img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.showcase figcaption { padding: 16px 22px; color: var(--sub); font-size: 15px; border-top: 1px solid var(--line); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.feature .ic-wrap { width: 40px; height: 40px; border-radius: 12px; background: var(--card); color: var(--accent-hover); display: grid; place-items: center; }
.feature h3 { font-size: 17px; font-weight: 650; }
.feature p { color: var(--sub); font-size: 15px; line-height: 1.55; }

/* Screens row */
.screens { display: flex; gap: 24px; justify-content: center; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory; }
.screens figure { margin: 0; flex: none; display: flex; flex-direction: column; align-items: center; gap: 14px; scroll-snap-align: center; }
.screens .phone { width: 240px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.screens figcaption { color: var(--sub); font-size: 14px; }

/* Free vs Pro */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.plan.pro { background: linear-gradient(180deg, var(--card), var(--surface)); border-color: #3d3a36; }
.plan h3 { font-size: 20px; font-weight: 700; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.plan .price { font-size: 15px; font-weight: 600; color: var(--accent-hover); }
.plan .price s { color: var(--muted); font-weight: 400; margin-left: 6px; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.plan li { color: var(--sub); font-size: 15px; display: flex; gap: 10px; }
.plan li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); margin-top: 9px; }
.plan .note { color: var(--muted); font-size: 14px; margin-top: auto; }

/* Privacy + support */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.panel h3 { font-size: 20px; font-weight: 700; }
.panel ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.panel li { color: var(--sub); font-size: 15px; display: flex; gap: 10px; }
.panel li .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--accent-hover); }
.panel .link { margin-top: auto; font-weight: 600; font-size: 15px; text-decoration: none; }

/* Specs */
.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 500; width: 34%; padding-right: 16px; }
.specs td { color: var(--sub); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 48px 0 56px; margin-top: 24px; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot .brand { margin-bottom: 10px; }
.foot p, .foot li { color: var(--muted); font-size: 14px; }
.foot h4 { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sub); }
.foot ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.foot a { color: var(--sub); text-decoration: none; }
.foot a:hover { color: var(--text); }

/* ---------- Product doc pages (Releases, FAQ, Support us, Contact) ---------- */
.page-head { padding: 64px 0 32px; }
.page-head h1 { font-size: clamp(36px, 5.4vw, 52px); line-height: 1.05; letter-spacing: -.03em; font-weight: 750; }
.page-head .sec-lead { margin-top: 14px; }
.page-body { padding-bottom: 72px; display: flex; flex-direction: column; gap: 20px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px 28px; }
.box h2 { font-size: 18px; font-weight: 650; }
.box .meta { color: var(--muted); font-size: 14px; margin-top: 2px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: 0; padding-top: 0; }
.box > .row:first-child { padding-top: 0; }
.row .label { color: var(--sub); font-size: 15px; }
.row .label b { color: var(--text); font-weight: 600; display: block; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn .ic { width: 18px; height: 18px; }
.code-pill { display: inline-flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 8px 14px; font: 13px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--text); max-width: 100%; }
.code-pill code { overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.code-pill .dollar { color: var(--muted); }
.copy { background: transparent; border: 0; color: var(--sub); cursor: pointer; padding: 6px; border-radius: 8px; display: grid; place-items: center; }
.copy:hover { background: var(--hover); color: var(--text); }
.copy .ic { width: 16px; height: 16px; }

/* Accordion */
.acc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.acc summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 650; font-size: 17px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.acc[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.acc summary:hover { color: #fff; }
.acc .acc-body { padding: 0 24px 22px; color: var(--sub); font-size: 15px; display: flex; flex-direction: column; gap: 10px; }
.acc .acc-body ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.acc .acc-body code, .faq code { background: var(--card); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.versions { list-style: none; margin: 0; padding: 0; }
.versions li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.versions li:first-child { border-top: 0; }
.versions a { text-decoration: none; color: var(--text); font-weight: 600; }
.versions a:hover { color: #fff; }
.versions time { color: var(--muted); font-size: 14px; }

/* Support cards */
.support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.s-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.s-card.wide { grid-column: 1 / -1; }
.s-card h2 { font-size: 18px; font-weight: 650; display: flex; align-items: center; gap: 12px; }
.s-card h2 .ic-wrap { width: 36px; height: 36px; border-radius: 10px; background: var(--card); color: var(--accent-hover); display: grid; place-items: center; }
.s-card p { color: var(--sub); font-size: 15px; }
.s-card .go { margin-top: auto; padding-top: 4px; font-weight: 600; font-size: 15px; text-decoration: none; }
button.go { background: none; border: 0; padding: 4px 0 0; color: var(--accent-hover); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; text-align: left; }
button.go:hover { color: #fff; }
.thanks { text-align: center; color: var(--muted); font-size: 14px; padding-top: 12px; }

/* Form */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--sub); font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; font-size: 15px; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field ::placeholder { color: var(--muted); }
.form .btn { grid-column: 1 / -1; justify-content: center; }
.form .fine { grid-column: 1 / -1; color: var(--muted); font-size: 14px; text-align: center; }

/* Media grid (product overview) */
.media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.media-grid .showcase img { aspect-ratio: 16 / 10; }
.p-hero .visual .showcase { width: 100%; }
@media (max-width: 600px) {
  .page-head { padding: 40px 0 24px; }
  .box { padding: 22px 20px; }
  .support-grid, .form, .media-grid { grid-template-columns: 1fr; }
  .subnav .name { font-size: 0; margin-right: 4px; }
}

/* Responsive */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; max-width: 560px; }
  .p-hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
  .foot .wrap > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  section { padding: 56px 0; }
  .home-hero { padding: 56px 0 24px; }
  .p-hero { padding: 40px 0 40px; }
  .features, .plans, .split { grid-template-columns: 1fr; }
  .screens { justify-content: flex-start; }
  .brand span { display: none; }
  .nav a { padding: 6px 10px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Product header: one bar. Back link, product, that product's pages as pills. */
.pbar .wrap { justify-content: flex-start; gap: 14px; }
.back { color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.back:hover { color: var(--text); }
.pbar .brand { white-space: nowrap; }
.pbar .brand span { display: inline; }
.pbar .brand img { border-radius: 8px; }
.pbar .nav { margin-left: auto; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.pbar .nav::-webkit-scrollbar { display: none; }
.pbar .nav a { font-size: 14px; white-space: nowrap; }
@media (max-width: 700px) {
  .pbar .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 8px; row-gap: 4px; }
  .pbar .nav { margin-left: -12px; width: calc(100% + 12px); }
}
@media (max-width: 380px) {
  .pbar .back span { display: none; }
}

/* Big logo header: Emulsion Labs disc hangs below the bar. Name stays in the bar. */
.top.big .wrap { position: relative; height: 68px; padding-left: calc(20px + var(--disc) + 14px); transition: padding-left .3s ease; }
.top.big { --disc: var(--d, 104px); }
.top.big.small { --disc: 44px; }
.disc { position: absolute; left: 20px; top: 8px; width: var(--disc); height: var(--disc); z-index: 2; border-radius: 50%; transition: width .3s ease, height .3s ease, transform .3s ease; }
.disc img { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 4px var(--bg), 0 12px 32px rgba(0,0,0,.5); }
.disc:hover { transform: rotate(-8deg); }
.top.big .brand { gap: 12px; font-size: var(--name, 22px); letter-spacing: -.02em; }
.top.big .brand span { display: inline; }
.pbar.big .brand { font-size: var(--pname, 19px); }
.pbar.big .brand img { width: 34px; height: 34px; }
@media (max-width: 700px) {
  .top.big { --disc: var(--dm, 84px); }
  .top.big.small { --disc: 40px; }
  .top.big .wrap { flex-wrap: wrap; height: auto; min-height: 64px; padding-top: 10px; padding-bottom: 8px; row-gap: 4px; padding-right: 20px; }
  .top.big .nav { margin-left: -12px; width: calc(100% + 12px); }
  .top.big .brand { font-size: calc(var(--name, 22px) - 3px); }
  .pbar.big .brand { font-size: calc(var(--pname, 19px) - 2px); }
  .pbar.big .brand img { width: 28px; height: 28px; }
}

/* Polish pass (2026-10-28): room under the big logo, full-width media, footer name on phones, scroll hint on header pills. */
.showcase { margin: 0; }
.media-grid .showcase img { aspect-ratio: 16 / 9; }
.showcase video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--card); }
.foot { margin-top: 0; }
@media (min-width: 701px) {
  .top.big ~ main .page-head { padding-top: 88px; }
  .p-hero:has(.showcase) { padding-top: 88px; }
}
@media (max-width: 700px) {
  .top.big .nav { padding-right: 28px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
  .foot .brand span { display: inline; }
  /* Home has only 3 links: wrap them instead of hiding one off-screen. */
  .top.big:not(.pbar) .nav a { padding: 3px 10px; }
  .top.big:not(.pbar) .nav { flex-wrap: wrap; row-gap: 0; padding-right: 0; -webkit-mask-image: none; mask-image: none; }
}

/* Phone menu (2026-10-28): on phones and small tablets a three-line button on the right opens the page links. Replaces wrapping links and fading pills. */
.menu-btn { display: none; }
@media (max-width: 900px) {
  .top.big .wrap { flex-wrap: nowrap; height: 64px; min-height: 0; padding-top: 0; padding-bottom: 0; padding-right: 16px; }
  .top.big .brand { min-width: 0; }
  .top.big .brand span { overflow: hidden; text-overflow: ellipsis; }
  .menu-btn { display: grid; place-items: center; flex: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--card); color: var(--text); cursor: pointer; }
  .menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .menu-btn .x { display: none; }
  .top.big.open .menu-btn .x { display: block; }
  .top.big.open .menu-btn .bars { display: none; }
  .top.big .nav, .top.big:not(.pbar) .nav { display: none; }
  .top.big.open .nav, .top.big.open:not(.pbar) .nav {
    display: flex; flex-direction: column; flex-wrap: nowrap; gap: 2px;
    position: absolute; top: calc(100% + 8px); right: 16px; left: auto; z-index: 3; width: min(260px, calc(100% - 32px)); align-items: stretch;
    margin: 0; padding: 8px; overflow: visible;
    background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .55);
    -webkit-mask-image: none; mask-image: none;
  }
  .top.big.open .nav a { display: block; padding: 12px 14px; font-size: 16px; border-radius: 12px; text-align: left; }
  .pbar.big .brand img { display: none; }
}

/* Phone menu (2026-10-28): on phones and small tablets a three-line button on the right opens the page links. Replaces wrapping links and fading pills. */
.menu-btn { display: none; }
@media (max-width: 900px) {
  .top.big .wrap { flex-wrap: nowrap; height: 64px; min-height: 0; padding-top: 0; padding-bottom: 0; padding-right: 16px; }
  .top.big .brand { min-width: 0; }
  .top.big .brand span { overflow: hidden; text-overflow: ellipsis; }
  .menu-btn { display: grid; place-items: center; flex: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--card); color: var(--text); cursor: pointer; }
  .menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .menu-btn .x { display: none; }
  .top.big.open .menu-btn .x { display: block; }
  .top.big.open .menu-btn .bars { display: none; }
  .top.big .nav, .top.big:not(.pbar) .nav { display: none; }
  .top.big.open .nav, .top.big.open:not(.pbar) .nav {
    display: flex; flex-direction: column; flex-wrap: nowrap; gap: 2px;
    position: absolute; top: calc(100% + 8px); right: 16px; left: auto; z-index: 3; width: min(260px, calc(100% - 32px)); align-items: stretch;
    margin: 0; padding: 8px; overflow: visible;
    background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .55);
    -webkit-mask-image: none; mask-image: none;
  }
  .top.big.open .nav a { display: block; padding: 12px 14px; font-size: 16px; border-radius: 12px; text-align: left; }
  .pbar.big .brand img { display: none; }
}

/* Hero with an app window (CG): the window is as tall as the text and runs off the right edge on narrower screens. No empty space above or below. */
@media (min-width: 901px) {
  .p-hero:has(.showcase) .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: stretch; }
  .p-hero:has(.showcase) .visual { position: relative; display: block; min-height: 380px; }
  .p-hero:has(.showcase) .visual .showcase { position: absolute; top: 0; bottom: 0; left: 0; width: auto; aspect-ratio: 16 / 9; }
  .p-hero:has(.showcase) .visual video { height: 100%; }
}

/* CG overview hero (2026-10-28): text only, title left and intro right, same width as every section below. */
.cg-hero { padding-bottom: 40px; }
.cg-hero .wrap { display: block; }
.cg-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: end; }
.cg-hero-grid h1 { margin-top: 20px; }
.cg-hero-grid .sec-lead { margin-top: 0; }
@media (max-width: 900px) { .cg-hero-grid { grid-template-columns: 1fr; gap: 0; } .cg-hero-grid .sec-lead { margin-top: 16px; } }
main:has(> .cg-hero) > section:not(.cg-hero) { padding-top: 40px; padding-bottom: 40px; }
main:has(> .cg-hero) > section[style*="padding-top:0"] { padding-top: 0; }

/* Product tabs (2026-10-28): on product pages the three product icons sit beside the logo. The current product shows its name; hover another icon to see its name. Phone: icons only, the product name heads the ☰ menu. */
.top .tabs { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); flex: none; }
.top .tabs a { position: relative; display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 4px; border-radius: 999px; color: var(--sub); text-decoration: none; white-space: nowrap; transition: background .2s; }
.top .tabs a img { width: 30px; height: 30px; border-radius: 50%; }
.top .tabs a:hover { background: var(--card); color: var(--text); }
.top .tabs a span { display: none; }
.top .tabs a[aria-current="page"] { background: var(--card); color: var(--text); padding-right: 14px; font-weight: 650; font-size: 17px; letter-spacing: -.01em; }
.top .tabs a[aria-current="page"] span.name { display: inline; }
.top .tabs a .tip { display: block; position: absolute; top: calc(100% + 10px); left: 0; transform: translateY(-4px); background: var(--text); color: var(--ink); font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 5; }
.top .tabs a:not([aria-current]):hover .tip, .top .tabs a:not([aria-current]):focus-visible .tip { opacity: 1; transform: none; }
.top .nav .mhead { display: none; }
@media (max-width: 900px) {
  .top .tabs a, .top .tabs a[aria-current="page"] { padding: 0 5px; }
  .top .tabs a[aria-current="page"] span.name { display: none; }
  .top .tabs a[aria-current="page"] img { box-shadow: 0 0 0 2px var(--text); }
  .top .tabs a .tip { display: none; }
  .top.big.open .nav .mhead { display: flex; align-items: center; gap: 10px; padding: 8px 14px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); color: var(--text); font-weight: 650; font-size: 16px; }
  .top .nav .mhead img { width: 26px; height: 26px; border-radius: 50%; }
}
@media (prefers-reduced-motion: reduce) { .top .tabs a, .top .tabs a .tip { transition: none; } }

/* Home with 4 products (2026-12-04): cards in a 2 × 2 grid, one column on phones. */
@media (min-width: 901px) { .product-grid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
