/* Sound Apps — site styles. One file, no framework.
   Colour tokens live on :root; dark mode redefines them. */

:root {
  --bg: #fbf9f5;
  --bg-tint: #f4efe6;
  --surface: #ffffff;
  --surface-2: #f6f2ea;
  --ink: #142229;
  --ink-2: #4b5a61;
  --ink-3: #59666c;
  --line: #e5ded2;
  --line-strong: #d3c9b9;
  --brand: #0b6a8a;
  --brand-strong: #084f67;
  --brand-soft: #e2f0f4;
  --accent: #b8400f;
  --accent-soft: #fbe9df;
  --logo-ink: #1f2a3c;
  --logo-accent: #d9471a;
  --logo-bg: var(--bg);
  --hero-1: #0a3443;
  --hero-2: #0d5870;
  --hero-ink: #f4f8f9;
  --hero-ink-2: #c4dbe2;
  --mock: #8a5a00;
  --mock-bg: #fff6df;
  --mock-line: #e0b54a;
  --shadow-1: 0 1px 2px rgba(20, 34, 41, .06), 0 2px 8px rgba(20, 34, 41, .05);
  --shadow-2: 0 2px 6px rgba(20, 34, 41, .06), 0 18px 40px -12px rgba(20, 34, 41, .18);
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c161b;
    --bg-tint: #101f26;
    --surface: #13232b;
    --surface-2: #182b34;
    --ink: #e9f0f2;
    --ink-2: #aebdc3;
    --ink-3: #8c9ea5;
    --line: #233a45;
    --line-strong: #31505d;
    --brand: #62c4e2;
    --brand-strong: #93d8ee;
    --brand-soft: #143440;
    --accent: #f08a5d;
    --accent-soft: #33201a;
    --logo-ink: #e9f0f2;
    --logo-accent: #f0703e;
    --hero-1: #071f28;
    --hero-2: #0b3a4a;
    --mock: #f2c75c;
    --mock-bg: #2a2310;
    --mock-line: #8e7224;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, .25), 0 18px 40px -12px rgba(0, 0, 0, .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--font-sans);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 650; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li + li { margin-top: .35em; }
small, .small { font-size: .875rem; }
code, kbd { font-family: var(--font-mono); font-size: .9em; }
kbd { background: var(--surface-2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 .35em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { font: 650 .78rem/1.2 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .9rem; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-2); }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--logo-ink); white-space: nowrap; }
.brand .logo-mark { width: 31px; height: 41px; flex: none; }
.brand .wordmark { font: 700 1.7rem/1 "DIN Condensed", "DIN Alternate", "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", sans-serif; font-stretch: condensed; letter-spacing: .03em; padding-top: .12em; }
.brand:hover { color: var(--ink); }
.logo-slot {
  width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center;
  border: 1.5px dashed var(--mock-line); background: var(--mock-bg); color: var(--mock);
  font: 700 .55rem/1 var(--font-sans); letter-spacing: .04em; text-transform: uppercase;
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"], .nav a.is-section { color: var(--brand); background: var(--brand-soft); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 40px; color: var(--ink); cursor: pointer; }
.nav-toggle svg { margin: auto; }
@media (max-width: 760px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px var(--gutter) 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 10px; font-size: 1.02rem; }
}

/* ---------- Buttons & badge ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; font: 600 .98rem/1.1 var(--font-sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-primary, .btn-primary:hover { color: #06222c; } }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.appstore-badge { display: inline-block; line-height: 0; border-radius: 9px; transition: transform .15s ease; }
.appstore-badge:hover { transform: translateY(-1px); }
.appstore-badge img { height: 48px; width: auto; }
.appstore-badge.sm img { height: 40px; }
/* Apple's black badge has its own grey keyline, so it reads on light and dark backgrounds. */

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--hero-ink);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(98, 196, 226, .22), transparent 60%),
    radial-gradient(800px 400px at -10% 110%, rgba(240, 112, 62, .16), transparent 60%),
    linear-gradient(160deg, var(--hero-1), var(--hero-2));
}
.hero::after { /* soft tanpura-string lines */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .08;
  background: repeating-linear-gradient(115deg, transparent 0 22px, #fff 22px 23px);
  mask-image: linear-gradient(90deg, transparent, #000 55%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%, transparent);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(48px, 8vw, 96px); }
.hero h1 { color: #fff; }
.hero .lede { color: var(--hero-ink-2); }
.hero .eyebrow { color: #ffb994; }
.hero-phones { position: relative; height: 560px; }
.hero-phones .phone { position: absolute; width: 250px; }
.hero-phones .phone:nth-child(1) { left: 6%; top: 30px; transform: rotate(-6deg); }
.hero-phones .phone:nth-child(2) { right: 6%; top: 0; transform: rotate(5deg); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-phones { height: 430px; max-width: 460px; width: 100%; margin: 0 auto; }
  .hero-phones .phone { width: 190px; }
}
@media (max-width: 420px) { .hero-phones { height: 360px; } .hero-phones .phone { width: 160px; } }

/* ---------- Phone frame ---------- */
.phone { background: #0d1418; border-radius: 34px; padding: 8px; box-shadow: var(--shadow-2), inset 0 0 0 1.5px #2b363c; }
.phone img, .phone video { border-radius: 27px; width: 100%; background: #000; }
.phone.framed-art { background: none; padding: 0; box-shadow: var(--shadow-2); border-radius: 18px; }
.phone.framed-art img { border-radius: 18px; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.tint { background: var(--bg-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { text-align: center; }
.section-head.center .lede { margin: 0 auto; }

/* ---------- App cards (home) ---------- */
.app-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 820px) { .app-cards { grid-template-columns: 1fr; } }
.app-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 18px; }
.app-card-top { display: flex; gap: 18px; align-items: center; }
.app-icon { width: 84px; height: 84px; border-radius: 22.5%; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 6px 16px -6px rgba(0,0,0,.35); flex: none; }
.app-icon.lg { width: 112px; height: 112px; }
.app-card h3 { margin: 0 0 4px; font-size: 1.6rem; }
.app-card .tagline { margin: 0; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { margin: 0; font-size: .85rem; font-weight: 600; color: var(--brand-strong); background: var(--brand-soft); border-radius: 999px; padding: 5px 12px; }
.price-line { font-size: .92rem; color: var(--ink-2); margin: 0; }
.price-line strong { color: var(--ink); }
.app-card .btn-row { margin-top: auto; }

/* ---------- Feature grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature h3 { font-size: 1.15rem; margin-bottom: .4em; }
.feature p { color: var(--ink-2); margin: 0; font-size: .97rem; }
.feature .ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 14px; }

/* ---------- App page hero ---------- */
.app-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg-tint), var(--bg)); border-bottom: 1px solid var(--line); }
.app-hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 72px); }
.app-hero .phone { max-width: 290px; margin: 0 auto; }
.app-id { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.app-id .name { font: 600 1.05rem/1.2 var(--font-sans); color: var(--ink-2); }
.app-id .name strong { display: block; font: 600 1.5rem/1.15 var(--font-serif); color: var(--ink); }
.app-hero .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--ink-3); margin-top: 18px; list-style: none; padding: 0; }
.app-hero .meta li { margin: 0; }
@media (max-width: 860px) { .app-hero .wrap { grid-template-columns: 1fr; } .app-hero .phone { max-width: 250px; } }

/* sub-navigation inside an app */
.subnav { border-bottom: 1px solid var(--line); background: var(--bg); }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 8px; padding-bottom: 8px; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { flex: none; text-decoration: none; color: var(--ink-2); font-size: .92rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; }
.subnav a:hover { background: var(--surface-2); color: var(--ink); }
.subnav a[aria-current="page"] { background: var(--ink); color: var(--bg); }

/* ---------- Instruments ---------- */
.instrument { display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--line); }
.instrument:first-child { border-top: 0; padding-top: 0; }
.instrument:nth-child(even) { grid-template-columns: 1fr 260px; }
.instrument:nth-child(even) .instrument-media { order: 2; }
.instrument-media .phone { max-width: 250px; margin: 0 auto; }
.instrument h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.instrument h3 .tag { font: 600 .75rem/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 6px 10px; border-radius: 999px; }
.instrument ul { color: var(--ink-2); }
.instrument ul li::marker { color: var(--brand); }
@media (max-width: 760px) {
  .instrument, .instrument:nth-child(even) { grid-template-columns: 1fr; }
  .instrument:nth-child(even) .instrument-media { order: 0; }
  .instrument-media .phone { max-width: 210px; }
}

/* ---------- Video ---------- */
.video-block { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.video-block .phone { max-width: 300px; margin: 0 auto; }
.video-block.wide { grid-template-columns: 1fr 1fr; }
@media (max-width: 820px) { .video-block, .video-block.wide { grid-template-columns: 1fr; } .video-block .phone { max-width: 270px; } }
.video-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.video-list li { margin: 0; display: flex; gap: 12px; align-items: baseline; color: var(--ink-2); }
.video-list .t { font: 600 .8rem/1 var(--font-mono); color: var(--brand); min-width: 3.6em; }
.video-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; max-width: 700px; margin: 0 auto; }
.video-pair figure { margin: 0; }
.video-pair figcaption { text-align: center; color: var(--ink-2); font-size: .92rem; margin-top: 14px; }
@media (max-width: 600px) { .video-pair { grid-template-columns: 1fr; max-width: 280px; } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--gutter) 22px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: thin; }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery figcaption { font-size: .85rem; color: var(--ink-2); margin-top: 10px; text-align: center; }
.gallery .phone { border-radius: 28px; padding: 6px; }
.gallery .phone img { border-radius: 22px; }
.gallery .framed-art { padding: 0; border-radius: 16px; }
.gallery .framed-art img { border-radius: 16px; }
@media (max-width: 520px) { .gallery { grid-auto-columns: 62vw; } }
.ipad-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ipad-shots.landscape { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ipad-shots figure { margin: 0; }
.ipad-shots img { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.ipad-shots figcaption { font-size: .85rem; color: var(--ink-2); margin-top: 8px; text-align: center; }
@media (max-width: 760px) { .ipad-shots, .ipad-shots.landscape { grid-template-columns: 1fr; } }

/* ---------- Pro ---------- */
.pro { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-1); }
.pro > div { padding: clamp(24px, 3.5vw, 40px); }
.pro > div + div { border-left: 1px solid var(--line); background: linear-gradient(180deg, var(--accent-soft), transparent 70%); }
.pro h3 { display: flex; align-items: center; gap: 10px; }
.pro .pill { font: 700 .72rem/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.pro .pill.gold { background: #c99a2e; color: #241800; border-color: transparent; }
.pro ul { list-style: none; padding: 0; }
.pro li { padding-left: 28px; position: relative; color: var(--ink-2); }
.pro li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 14px; height: 8px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
@media (max-width: 760px) { .pro { grid-template-columns: 1fr; } .pro > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- What's new / requirements ---------- */
.release { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 40px); }
.release-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 18px; }
.release-head h3 { margin: 0; }
.release-head .when { color: var(--ink-3); font-size: .9rem; }
.release h4 { margin: 1.2em 0 .3em; color: var(--brand-strong); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.release ul { color: var(--ink-2); }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.specs > div { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.specs dt { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 650; margin-bottom: 4px; }
.specs dd { margin: 0; font-weight: 550; }
@media (max-width: 820px) { .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .specs { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(150deg, var(--hero-1), var(--hero-2)); color: var(--hero-ink); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.cta-band h2 { color: #fff; margin: 0 0 .2em; font-size: clamp(1.5rem, 2.8vw, 2rem); }
.cta-band p { margin: 0; color: var(--hero-ink-2); }
.cta-band a:not(.appstore-badge) { color: #fff; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; text-align: left; } }

/* ---------- Placeholders and mock notes ---------- */
.placeholder {
  border: 2px dashed var(--mock-line); border-radius: var(--radius); background:
    repeating-linear-gradient(135deg, transparent 0 12px, color-mix(in srgb, var(--mock-line) 14%, transparent) 12px 13px), var(--mock-bg);
  color: var(--mock); padding: 22px; position: relative;
}
.placeholder::before { content: "Placeholder"; display: inline-block; font: 700 .7rem/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; background: var(--mock-line); color: #231a00; padding: 5px 9px; border-radius: 6px; margin-bottom: 10px; }
.placeholder p { margin: 0; color: var(--ink-2); }
.placeholder blockquote { margin: 0 0 10px; font: italic 1.1rem/1.5 var(--font-serif); color: var(--ink); }
.ph-photo { aspect-ratio: 4 / 5; display: grid; place-items: center; text-align: center; }
.mock-note { display: flex; gap: 10px; align-items: flex-start; border: 1px dashed var(--mock-line); background: var(--mock-bg); color: var(--ink-2); border-radius: 10px; padding: 10px 14px; font-size: .88rem; margin: 14px 0; }
.mock-note b { color: var(--mock); white-space: nowrap; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding-top: .2em; }
.ph-link { color: var(--mock); border-bottom: 1px dashed var(--mock-line); text-decoration: none; }

/* ---------- Maker ---------- */
.maker { display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 700px) { .maker { grid-template-columns: 1fr; } .maker .ph-photo { max-width: 220px; } }
.inst-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.inst-list li { margin: 0; border: 1px solid var(--line-strong); border-radius: 8px; padding: 4px 10px; font-family: var(--font-serif); font-size: 1rem; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: clamp(36px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-tint), var(--bg)); }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.crumbs { font-size: .88rem; color: var(--ink-3); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .6; }
.page-body { padding: clamp(32px, 5vw, 64px) 0 clamp(56px, 8vw, 96px); }

/* ---------- Prose (legal, support) ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.55rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose ol > li, .prose ul > li { padding-left: .2em; }
.prose .legal-num { font-weight: 650; }
.prose pre { white-space: pre-wrap; overflow-wrap: anywhere; font: .78rem/1.55 var(--font-mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 16px; max-height: 420px; overflow: auto; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: .92rem; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- Cards / link tiles ---------- */
.tile { display: block; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.tile:hover { border-color: var(--brand); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.tile h3 { font-size: 1.15rem; margin-bottom: .35em; display: flex; align-items: center; gap: 10px; }
.tile p { color: var(--ink-2); margin: 0; font-size: .95rem; }
.tile .go { color: var(--brand); font-weight: 600; font-size: .9rem; margin-top: 12px; display: inline-block; }
.tile .app-icon { width: 36px; height: 36px; border-radius: 9px; }
/* A tile with two links (Manuals, Questions): the tile itself isn't a link, so it doesn't lift on hover */
div.tile:hover { transform: none; box-shadow: none; border-color: var(--line); }
div.tile .go { display: block; margin-top: 12px; }
div.tile .go + .go { margin-top: 6px; }
div.tile .go a { color: var(--brand); text-decoration: none; }
div.tile .go a:hover { text-decoration: underline; }
.logo-mark[src] { height: 36px; width: auto; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-1); }
.contact-card .email { font: 600 clamp(1.2rem, 3vw, 1.6rem)/1.2 var(--font-serif); overflow-wrap: anywhere; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; font: 600 1.08rem/1.4 var(--font-sans); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 22px; color: var(--ink-2); max-width: 70ch; }
.faq .answer p:last-child, .faq .answer ul:last-child { margin-bottom: 0; }
.faq-group h2 { font-size: 1.35rem; margin: 2.2em 0 .6em; }
.faq-group:first-child h2 { margin-top: 0; }

/* ---------- Help (manual & quick help) ---------- */
.help-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.toc { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow: auto; font-size: .92rem; padding-right: 6px; }
.toc h2 { font: 650 .75rem/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); border-left-color: var(--line-strong); }
.toc a.is-active { color: var(--brand); border-left-color: var(--brand); font-weight: 600; }
@media (max-width: 900px) {
  .help-layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--surface); }
  .toc ol { columns: 2; column-gap: 20px; border: 0; }
  .toc a { padding-left: 0; border: 0; }
}
@media (max-width: 480px) { .toc ol { columns: 1; } }
.help-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 28px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { font: 600 .9rem/1 var(--font-sans); border: 0; background: none; color: var(--ink-2); padding: 9px 16px; border-radius: 999px; cursor: pointer; min-height: 36px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.help-section { padding: 0 0 clamp(36px, 5vw, 56px); margin-bottom: clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.help-section:last-child { border-bottom: 0; }
.help-section h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.help-section h3 { font-size: 1.1rem; font-family: var(--font-sans); font-weight: 650; margin-top: 1.4em; }
.help-section p, .help-section li { color: var(--ink-2); }
.help-fig { margin: 0 0 22px; }
.help-fig img { border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-1); width: 100%; max-width: 560px; }
.help-fig.ipad img { max-width: 100%; }
.marks { list-style: none; padding: 0; counter-reset: none; display: grid; gap: 10px; }
.marks li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; margin: 0; color: var(--ink-2); }
.marks .n { width: 26px; height: 26px; border-radius: 50%; background: #d32f2f; color: #fff; font: 700 .82rem/26px var(--font-sans); text-align: center; box-shadow: 0 0 0 2px #fff; }
.note-list { margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: var(--brand-soft); color: var(--ink-2); font-size: .95rem; }
.note-list p { margin: 0; }
.note-list p + p { margin-top: .5em; }
.qh-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: start; }
.qh-grid.ipad { grid-template-columns: 1fr; }
@media (max-width: 860px) { .qh-grid { grid-template-columns: 1fr; } }
[data-device="phone"] .only-pad, [data-device="pad"] .only-phone { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { --logo-bg: var(--bg-tint); border-top: 1px solid var(--line); background: var(--bg-tint); padding: 56px 0 36px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.site-footer h2 { font: 650 .75rem/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.footer-base { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--ink-3); font-size: .85rem; }

/* Mock banner (remove for production) */
.mock-banner { background: var(--mock-bg); color: var(--ink-2); border-bottom: 1px dashed var(--mock-line); font-size: .82rem; text-align: center; padding: 7px var(--gutter); }
.mock-banner b { color: var(--mock); }
@media (min-width: 861px) { .qh-grid:not(.ipad) .help-fig { position: sticky; top: 90px; } }
.marks li { font-size: .97rem; line-height: 1.5; }
.prose p, .prose a, .prose dd { overflow-wrap: anywhere; }
.qh-grid.ipad { gap: 8px; }
@media (max-width: 480px) { .app-card .app-icon { width: 64px; height: 64px; } .app-card h3 { font-size: 1.4rem; } }
.release h3.rel { margin: 1.2em 0 .3em; color: var(--brand-strong); font: 650 .82rem/1.2 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3 { text-wrap: balance; }
/* YouTube embed (vertical, 9:16) and its placeholder */
.yt-frame { width: 100%; max-width: 300px; margin: 0 auto; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #000; box-shadow: var(--shadow-2); }
.yt-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.yt-placeholder { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px; color: var(--ink-2); background: repeating-linear-gradient(135deg, transparent 0 12px, color-mix(in srgb, var(--mock-line) 14%, transparent) 12px 13px), var(--mock-bg); border: 2px dashed var(--mock-line); box-shadow: none; }
.yt-placeholder::before { content: "Placeholder"; position: absolute; top: 14px; left: 14px; font: 700 .7rem/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; background: var(--mock-line); color: #231a00; padding: 5px 9px; border-radius: 6px; }
.yt-placeholder svg { color: #e62117; margin-bottom: 6px; }
.yt-placeholder strong { color: var(--ink); font-size: 1.05rem; }
.reply-time { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--brand-soft); color: var(--ink); font-weight: 600; }
.reply-time svg { color: var(--brand); flex: none; }
