/* praptiyogi.app — one stylesheet for the hub, the collection and every product page.
   Tokens follow the brand book (redesign/brand/BRAND.md). Gradients live only in the lotus. */

/* ---------- Web fonts, self-hosted (SIL OFL; Latin subsets as Google Fonts serves them) ---------- */
@font-face { font-family: 'Libre Baskerville'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/libre-baskerville.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: 'Libre Baskerville'; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/libre-baskerville-italic.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 700; font-display: swap; src: url(/assets/fonts/manrope.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; }

/* ---------- Fallback faces sized like the web fonts (less layout shift when they arrive) ---------- */
@font-face { font-family: 'LB Fallback Baskerville'; src: local('Baskerville'); size-adjust: 127.9%; ascent-override: 75.8%; descent-override: 21.1%; line-gap-override: 0%; }
@font-face { font-family: 'LB Fallback Georgia'; src: local('Georgia'); size-adjust: 116.2%; ascent-override: 83.5%; descent-override: 23.2%; line-gap-override: 0%; }
@font-face { font-family: 'Manrope Fallback'; src: local('Arial'); size-adjust: 102.7%; ascent-override: 104.2%; descent-override: 29.2%; line-gap-override: 0%; }

/* ---------- Tokens ---------- */
:root {
  --paper: #f7f6fa;
  --paper-2: #efedf4;
  --surface: #ffffff;
  --ink: #221a47;
  --ink-2: #3c3560;
  --muted: #5e5873;
  --line: #e3e0ec;
  --line-2: #d3cfe0;
  --violet: #6522d6;
  --violet-tint: #f0e8fd;
  --on-violet: #ffffff;
  --accent: #7a2df0;          /* the wordmark's ".app" */
  --emphasis: #7a2df0;
  --night: #120e24;
  --night-2: #1b1630;
  --night-ink: #f2f0fa;
  --night-muted: #b3adc9;
  --night-line: rgba(242, 240, 250, 0.12);
  --shadow-icon: 0 1px 2px rgba(34, 26, 71, 0.10), 0 8px 20px -6px rgba(34, 26, 71, 0.22);
  --shadow-lift: 0 2px 4px rgba(34, 26, 71, 0.08), 0 18px 36px -12px rgba(34, 26, 71, 0.28);
  --shadow-shot: 0 1px 2px rgba(34, 26, 71, 0.08), 0 24px 60px -24px rgba(34, 26, 71, 0.35);
  --nav-bg: rgba(255, 255, 255, 0.78);
  --nav-line: rgba(34, 26, 71, 0.08);
  color-scheme: light;

  --font-display: 'Libre Baskerville', 'LB Fallback Baskerville', 'LB Fallback Georgia', Baskerville, Georgia, serif;
  --font-body: Manrope, 'Manrope Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px; --space-32: 128px;
  --radius-sm: 8px; --radius-md: 16px; --radius-lg: 24px; --radius-pill: 999px;
  --tile: 22.5%;

  --wrap: 1200px;
  --wrap-wide: 1360px;
  --gutter: clamp(16px, 4.2vw, 48px);
  --section: clamp(72px, 10vw, 144px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121019; --paper-2: #17141f; --surface: #1c1926;
    --ink: #f2f0fa; --ink-2: #d9d5e8; --muted: #a29cb8; --line: #2d2939; --line-2: #3a3549;
    --violet: #b08cff; --violet-tint: #2a2050; --on-violet: #121019;
    --accent: #a274ff; --emphasis: #e9a6ff;
    --shadow-icon: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 24px -8px rgba(0, 0, 0, 0.7);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.4), 0 22px 40px -14px rgba(0, 0, 0, 0.8);
    --shadow-shot: 0 1px 2px rgba(0, 0, 0, 0.5), 0 28px 70px -28px rgba(0, 0, 0, 0.9);
    --nav-bg: rgba(28, 25, 38, 0.78); --nav-line: rgba(242, 240, 250, 0.08);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121019; --paper-2: #17141f; --surface: #1c1926;
  --ink: #f2f0fa; --ink-2: #d9d5e8; --muted: #a29cb8; --line: #2d2939; --line-2: #3a3549;
  --violet: #b08cff; --violet-tint: #2a2050; --on-violet: #121019;
  --accent: #a274ff; --emphasis: #e9a6ff;
  --shadow-icon: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 24px -8px rgba(0, 0, 0, 0.7);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.4), 0 22px 40px -14px rgba(0, 0, 0, 0.8);
  --shadow-shot: 0 1px 2px rgba(0, 0, 0, 0.5), 0 28px 70px -28px rgba(0, 0, 0, 0.9);
  --nav-bg: rgba(28, 25, 38, 0.78); --nav-line: rgba(242, 240, 250, 0.08);
  color-scheme: dark;
}

/* Theme-dependent artwork: an app icon with light and dark versions ships both. */
.only-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: block !important; }
  :root:not([data-theme="light"]) .only-light { display: none !important; }
}
:root[data-theme="dark"] .only-dark { display: block !important; }
:root[data-theme="dark"] .only-light { display: none !important; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01" 0;
  overflow-x: clip;
}
.theme-ready body, .theme-ready .nav, .theme-ready .card, .theme-ready .btn { transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p a, .prose a, .inline-link { color: var(--violet); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p a:hover, .prose a:hover, .inline-link:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
p, li, dd, figcaption, blockquote { text-wrap: pretty; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--emphasis); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--violet-tint); color: var(--ink); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap-wide { width: min(100% - 2 * var(--gutter), var(--wrap-wide)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius-pill); font-weight: 600; font-size: 15px; }
.skip:focus { top: 16px; }

/* ---------- Type ---------- */
.display, .h1, .h2, .h3, .serif { font-family: var(--font-display); letter-spacing: -0.01em; }
.display { font-size: clamp(40px, 6.4vw, 84px); line-height: 1.06; letter-spacing: -0.02em; }
.h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.12; letter-spacing: -0.015em; }
.h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.18; }
.h3 { font-size: clamp(20px, 1.9vw, 24px); line-height: 1.3; }
.display em, .h1 em, .h2 em { font-style: italic; color: var(--emphasis); }
.h1 .sent { display: inline-block; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--ink-2); }
.muted { color: var(--muted); }
.label {
  font-family: var(--font-body); font-size: 12px; line-height: 16px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.tagline-caps {
  font-size: 12.5px; line-height: 18px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted);
}
.pillars { --pg: 14px; display: block; overflow: hidden; }
.pillars-in { display: flex; flex-wrap: wrap; row-gap: 6px; margin-left: calc(-2 * var(--pg) - 5px); }
.pill { display: inline-flex; align-items: center; gap: var(--pg); padding-left: var(--pg); white-space: nowrap; }
.pillars .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius-pill);
  font-size: 15px; line-height: 1.2; font-weight: 600; letter-spacing: 0.005em;
  border: 1px solid transparent; transition: transform .18s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--violet); color: var(--on-violet); }
.btn-primary:hover { background: color-mix(in srgb, var(--violet) 88%, var(--ink)); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-quiet { padding-inline: 4px; min-height: 44px; color: var(--ink); font-weight: 600; }
.btn-quiet:hover { color: var(--violet); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ext::after { content: "↗"; font-size: 0.85em; margin-left: 2px; opacity: 0.7; }

/* ---------- Header / navigation ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; padding-top: max(12px, env(safe-area-inset-top)); pointer-events: none; }
.nav {
  pointer-events: auto; width: min(100% - 24px, var(--wrap) + 40px); margin-inline: auto;
  display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 8px 0 18px;
  background: var(--nav-bg); border: 1px solid var(--nav-line); border-radius: var(--radius-pill);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 8px 30px -12px rgba(18, 14, 36, 0.25);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-right: auto; color: var(--ink); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand .word { font-family: var(--font-display); font-size: 19px; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }
.brand .word span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 600; color: var(--ink-2); transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-links a.is-section { color: var(--violet); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav-links a.is-section { color: #d4c0ff; } }
:root[data-theme="dark"] .nav-links a.is-section { color: #d4c0ff; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--violet); background: var(--violet-tint); }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--ink);
  transition: background-color .2s var(--ease);
}
.icon-btn:hover { background: var(--paper-2); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .sun { display: block; } :root:not([data-theme="light"]) .theme-toggle .moon { display: none; } }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
.menu-btn { display: none; }
.menu-btn .bars { position: relative; width: 18px; height: 12px; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.75px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), top .25s var(--ease); }
.menu-btn .bars::before { top: 2px; } .menu-btn .bars::after { top: 8.5px; }
.menu-btn[aria-expanded="true"] .bars::before { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { top: 5px; transform: rotate(-45deg); }

@media (max-width: 760px) {
  .menu-btn { display: inline-grid; order: 2; }
  .theme-toggle { order: 1; }
  .nav { padding-left: 14px; }
  .nav-links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lift); opacity: 0; transform: translateY(-6px); visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
  }
  .nav { position: relative; }
  .nav[data-open="true"] .nav-links { opacity: 1; transform: none; visibility: visible; transition: opacity .2s var(--ease), transform .2s var(--ease); }
  .nav-links a { min-height: 52px; font-size: 18px; padding: 0 16px; border-radius: var(--radius-md); color: var(--ink); }
  .nav-links a + a { border-top: 1px solid var(--line); border-radius: 0; }
  .nav-links a[aria-current="page"] { border-radius: var(--radius-md); }
}
@media (max-width: 360px) { .brand .word { font-size: 17px; } }
/* Without JavaScript the links stay visible and the two script-only buttons disappear */
html:not(.js) .menu-btn, html:not(.js) .theme-toggle { display: none; }
@media (max-width: 760px) {
  html:not(.js) .nav-links { position: static; flex-direction: row; opacity: 1; visibility: visible; transform: none; padding: 0; background: none; border: 0; box-shadow: none; }
  html:not(.js) .nav-links a { min-height: 44px; font-size: 14px; padding: 0 8px; }
  html:not(.js) .nav-links a + a { border-top: 0; }
  html:not(.js) .brand .word { display: none; }
}

main { display: block; }
@media (max-width: 400px) { .btn { padding: 12px 18px; font-size: 14.5px; } .btn-row { gap: 10px; } .btn-row > .btn { flex: 1 1 auto; } }

/* ---------- Reveal motion ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 50ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero .reveal, .js .p-hero .reveal { opacity: 1; }
.js .reveal-img { clip-path: inset(6% 0 0 0 round 12px); opacity: 0; transition: clip-path 1s var(--ease), opacity .8s var(--ease); }
.js .reveal-img.in { clip-path: inset(-80px -80px -120px -80px); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .js .reveal, .js .reveal-img, .js .reveal-img.in { opacity: 1; transform: none; clip-path: none !important; }
}

/* ---------- App icon ---------- */
.icon { position: relative; flex: none; width: var(--s, var(--s0, 64px)); height: var(--s, var(--s0, 64px)); border-radius: var(--tile); box-shadow: var(--shadow-icon); background: var(--paper-2); }
.icon img { width: 100%; height: 100%; border-radius: var(--tile); }
.icon::after { content: ""; position: absolute; inset: 0; border-radius: var(--tile); box-shadow: inset 0 0 0 1px rgba(34, 26, 71, 0.08); pointer-events: none; }

/* ---------- Home: hero ---------- */
.hero { padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(64px, 8vw, 112px); position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero-copy .label { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.hero-copy .label svg { width: 22px; height: 22px; }
.hero-copy .display { max-width: 11.5ch; }
.hero-copy .lead { margin-top: 28px; max-width: 34em; }
.hero-copy .btn-row { margin-top: 36px; }
.hero-copy .pillars { margin-top: 44px; }

/* The index plate: the nine real icons as a catalogue sheet */
.plate { container-type: inline-size; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; box-shadow: 0 30px 80px -50px rgba(34, 26, 71, 0.45); }
.plate-head, .plate-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.plate-head { border-bottom: 1px solid var(--line); }
.plate-foot { border-top: 1px solid var(--line); }
.plate-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.plate-cell {
  position: relative; aspect-ratio: 1 / 0.92; display: grid; place-items: center; padding: 18px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background-color .25s var(--ease);
}
.plate-cell:nth-child(3n) { border-right: 0; }
.plate-cell:nth-last-child(-n+3) { border-bottom: 0; }
.plate-cell .n { position: absolute; top: 12px; left: 14px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); }
.plate-cell .nm { position: absolute; left: 14px; right: 14px; bottom: 11px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plate-cell.reveal { transition-delay: calc(120ms + var(--i, 0) * 35ms); }
.plate-cell .icon { --s: clamp(40px, 15cqw, 88px); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.plate-cell:hover { background: var(--paper); }
.plate-cell:hover .icon, .plate-cell:focus-visible .icon { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.plate-cell:focus-visible { outline-offset: -3px; border-radius: 0; }
.plate-cell .st { position: absolute; top: 12px; right: 14px; width: 7px; height: 7px; border-radius: 50%; }
.st-live { background: #22804a; }
.st-beta { background: linear-gradient(90deg, #a8650d 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px #a8650d; }
.st-in-development, .st-coming-soon { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
@media (forced-colors: active) { .st, .legend i, .chip i { forced-color-adjust: none; } }
.legend { display: flex; gap: 14px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy .display { max-width: 12ch; }
  .plate { max-width: none; }
}
@media (min-width: 521px) and (max-width: 960px) { .plate-cell { aspect-ratio: 1 / 0.8; } }
@media (max-width: 520px) {
  .plate-cell { padding: 12px; aspect-ratio: 1 / 1; }
  .plate-cell .nm { display: none; }
  .plate-cell .n { top: 9px; left: 10px; line-height: 1; }
  .plate-cell .st { top: 10px; right: 10px; }
  .plate-head span + span { display: none; }
  .plate-foot .legend { gap: 4px 12px; }
}

/* ---------- Section scaffolding ---------- */
.section { padding: var(--section) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head .label { margin-bottom: 18px; }
.section-head p { color: var(--muted); max-width: 34em; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; align-items: start; } }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Featured: Hindsight Replay (broadcast band, always night) ---------- */
.feature { position: relative; }
.feature .eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.feature .eyebrow .icon { --s: 44px; }
.feature .h1 { max-width: 14ch; }
.feature .intro { margin-top: 22px; max-width: 32em; }
.feature .btn-row { margin-top: 32px; }
.feature .status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }

.f-broadcast { background: var(--night); color: var(--night-ink); overflow: hidden; padding: var(--section) 0 calc(var(--section) * 0.8); box-shadow: inset 0 1px 0 var(--night-line), inset 0 -1px 0 var(--night-line); }
.f-broadcast .label, .f-broadcast .muted { color: var(--night-muted); }
.f-broadcast .lead { color: #d9d5e8; }
.f-broadcast .h1 em { color: #ffb15c; }
.f-broadcast .btn-primary { background: #ff9a3d; color: #1a1206; }
.f-broadcast .btn-primary:hover { background: #ffb15c; }
.f-broadcast .btn-ghost { color: var(--night-ink); border-color: rgba(242, 240, 250, 0.28); }
.f-broadcast .btn-ghost:hover { border-color: var(--night-ink); }
.f-broadcast :focus-visible { outline-color: #ffb15c; }
.bc-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.bc-shot { margin-right: calc(-1 * max(var(--gutter), (100vw - var(--wrap)) / 2)); }
.bc-shot img { width: 100%; }
@media (max-width: 960px) { .bc-grid { grid-template-columns: 1fr; } .bc-shot { margin-right: calc(-1 * var(--gutter)); } }

/* The delay diagram: Live runs ahead, Program follows inside the safety window */
.delay { margin-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--night-line); padding-top: 28px; }
.delay-track { position: relative; height: 64px; margin: 36px 0 10px; }
.delay-track .lane { position: absolute; left: 0; right: 0; top: 30px; height: 2px; background: repeating-linear-gradient(90deg, rgba(242,240,250,.28) 0 8px, transparent 8px 14px); }
.delay-track .window { position: absolute; top: 14px; height: 34px; left: 38%; right: 12%; border-radius: 8px; background: rgba(255, 154, 61, 0.12); border: 1px solid rgba(255, 154, 61, 0.55); }
.delay-track .cut { position: absolute; top: 14px; height: 34px; left: 58%; width: 9%; border-radius: 6px; background: repeating-linear-gradient(135deg, rgba(255, 92, 92, .55) 0 6px, rgba(255, 92, 92, .18) 6px 12px); }
.delay-track .mark { position: absolute; top: 0; bottom: 0; width: 2px; border-radius: 2px; }
.delay-track .mark.live { right: 12%; background: #ff5c5c; }
.delay-track .mark.prog { left: 38%; background: #ffb15c; }
.delay-track .tag { position: absolute; top: -22px; transform: translateX(-50%); font-size: 11px; font-weight: 700; letter-spacing: .14em; white-space: nowrap; }
.delay-track .mark.live .tag { color: #ff8a8a; }
.delay-track .mark.prog .tag { color: #ffc27d; }
.js .delay-track .window { transform-origin: left center; transform: scaleX(0.2); transition: transform 1.4s var(--ease); }
.js .delay.in .delay-track .window { transform: none; }
.delay-legend { display: flex; flex-wrap: wrap; gap: 10px 32px; font-size: 13px; color: var(--night-muted); }
.delay-legend span { display: inline-flex; align-items: flex-start; gap: 8px; }
.delay-legend span::before { content: ""; flex: none; width: 12px; height: 2px; margin-top: .65em; border-radius: 2px; }
.delay-legend span:nth-child(1)::before { background: #ffb15c; }
.delay-legend span:nth-child(2)::before { height: 10px; margin-top: .35em; background: repeating-linear-gradient(135deg, rgba(255,92,92,.8) 0 3px, rgba(255,92,92,.25) 3px 6px); }
.delay-legend span:nth-child(3)::before { background: #ff5c5c; }
.beats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: clamp(40px, 5vw, 64px); }
.beat .k { font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--muted); }
.beat h3 { font-family: var(--font-display); font-size: 21px; line-height: 1.3; margin: 10px 0 8px; }
.beat p { font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.f-broadcast .beat .k { color: #ffb15c; }
.f-broadcast .beat p { color: var(--night-muted); }
@media (max-width: 1024px) { .beats { grid-template-columns: 1fr; gap: 28px; } .beat p { max-width: 36em; } }

/* ---------- Featured: Ownfold (its own paper, ink and seal red) ---------- */
/* Ownfold's own identity (ownfold.app): bold system type, a panel lit from above, ink buttons and
   sheets with a folded top-right corner. Light follows the theme, dark is its default. Seal red is
   kept for what is encrypted, so none appears here. */
.f-ownfold {
  --of-paper: #ffffff; --of-paper-2: #f5f5f7; --of-ink: #1d1d1f; --of-ink-2: #48484d; --of-ink-3: #6e6e73;
  --of-rule: #e5e5ea; --of-rule-strong: #d2d2d7; --of-top: #e6e6eb; --of-mid: #f5f5f7;
  --of-h1-from: #1d1d1f; --of-h1-to: #56565c; --of-fold-hi: #ffffff; --of-fold-lo: #dedee3; --of-btn-fold: #77777d;
  --of-btn-hover: #000000; --of-fold-shadow: rgba(40, 40, 50, 0.18);
  --of-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, var(--of-top) 0, var(--of-mid) 420px, var(--of-paper) 900px);
  color: var(--of-ink); padding: var(--section) 0; overflow: hidden;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .f-ownfold {
  --of-paper: #0b0b0c; --of-paper-2: #141416; --of-ink: #f5f5f7; --of-ink-2: #b6b6bb; --of-ink-3: #8a8a90;
  --of-rule: #26262a; --of-rule-strong: #3a3a3f; --of-top: #1d1d21; --of-mid: #121214;
  --of-h1-from: #ffffff; --of-h1-to: #b4b4bb; --of-fold-hi: #36363c; --of-fold-lo: #1d1d21; --of-btn-fold: #a6a6ac;
  --of-btn-hover: #ffffff; --of-fold-shadow: rgba(0, 0, 0, 0.55); } }
:root[data-theme="dark"] .f-ownfold {
  --of-paper: #0b0b0c; --of-paper-2: #141416; --of-ink: #f5f5f7; --of-ink-2: #b6b6bb; --of-ink-3: #8a8a90;
  --of-rule: #26262a; --of-rule-strong: #3a3a3f; --of-top: #1d1d21; --of-mid: #121214;
  --of-h1-from: #ffffff; --of-h1-to: #b4b4bb; --of-fold-hi: #36363c; --of-fold-lo: #1d1d21; --of-btn-fold: #a6a6ac;
  --of-btn-hover: #ffffff; --of-fold-shadow: rgba(0, 0, 0, 0.55); }
.f-ownfold .label, .f-ownfold .muted { color: var(--of-ink-3); }
.f-ownfold .lead { color: var(--of-ink-2); }
.f-ownfold .h1 { font-family: var(--of-display); font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.f-ownfold .h1 .sent { display: block; padding-bottom: 0.06em; background: linear-gradient(180deg, var(--of-h1-from) 30%, var(--of-h1-to) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.feature.f-ownfold .h1 { font-size: clamp(44px, 6.8vw, 96px); max-width: none; }
.f-ownfold .eyebrow .label { display: inline-flex; align-items: center; gap: 8px; color: var(--of-ink-2); }
.f-ownfold .eyebrow .label::before { content: ""; width: 10px; height: 10px; flex: none; background: linear-gradient(225deg, transparent 3.6px, var(--of-ink) 3.6px); }
.sq { display: inline-block; width: 11px; height: 11px; flex: none; border: 1.5px solid currentColor; vertical-align: -1px; margin-right: 7px; }
.sq-wip { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.sq-done { background: currentColor; }
.f-ownfold .btn { border-radius: 12px; }
.f-ownfold .btn-primary { position: relative; background: var(--of-ink); color: var(--of-paper); }
.f-ownfold .btn-primary:hover { background: var(--of-btn-hover); }
.f-ownfold .btn-primary::after { content: ""; position: absolute; top: 0; right: 0; width: 0; height: 0; border-style: solid; border-width: 0 14px 14px 0; border-color: transparent var(--of-mid) var(--of-btn-fold) transparent; }
.f-ownfold .btn-ghost { color: var(--of-ink); border-color: var(--of-rule-strong); }
.f-ownfold .btn-ghost:hover { border-color: var(--of-ink); }
.f-ownfold :focus-visible { outline-color: var(--of-ink); }
.of-head { text-align: center; max-width: 900px; margin-inline: auto; }
.of-head .eyebrow { justify-content: center; }
.of-head .intro { margin-inline: auto; }
.of-head .btn-row { justify-content: center; }
.of-stage { margin-top: clamp(48px, 6vw, 80px); max-width: 960px; margin-inline: auto; }
.of-stage figure { margin: 0; }
.of-stage figcaption { margin-top: 14px; font-size: 13px; color: var(--of-ink-3); text-align: center; }
/* the folded sheet behind product figures */
.of-sheet { position: relative; --fold: 44px; background: var(--of-paper-2); border-radius: 16px 0 16px 16px; padding: clamp(18px, 4vw, 48px); }
.of-sheet::before, .of-sheet::after { content: ""; position: absolute; top: 0; right: 0; width: var(--fold); height: var(--fold); pointer-events: none; }
.of-sheet::before { background: linear-gradient(45deg, transparent 50%, var(--of-sheet-bg, var(--of-paper)) 50%); z-index: 3; }
.of-sheet::after { background: linear-gradient(45deg, var(--of-fold-hi) 0%, var(--of-fold-lo) 50%, transparent 50%); border-bottom-left-radius: 7px; z-index: 4; filter: drop-shadow(-3px 4px 5px var(--of-fold-shadow)); }
.f-ownfold .beats { border-top: 1px solid var(--of-rule); padding-top: 32px; }
.f-ownfold .beat .k { color: var(--of-ink-3); }
.f-ownfold .beat h3 { font-family: var(--of-display); font-weight: 600; letter-spacing: -0.02em; }
.f-ownfold .beat p { color: var(--of-ink-2); }
.preview-note { display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; font-size: 13px; color: var(--muted); }
.f-ownfold .preview-note { color: var(--of-ink-3); }

/* ---------- Featured: RTR Control (a spec sheet) ---------- */
.f-rtr { padding: var(--section) 0; }
.rtr-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.rtr-media { position: relative; padding-bottom: 20%; }
.rtr-media > :first-child { width: 90%; }
.rtr-media .secondary { position: absolute; right: 0; bottom: 0; width: 58%; z-index: 1; }
.rtr-media .secondary img { outline: 1px solid rgba(255, 255, 255, 0.12); outline-offset: -1px; }
@media (max-width: 960px) { .rtr-media { padding-bottom: 0; } .rtr-media > :first-child { width: 100%; } .rtr-media .secondary { position: relative; width: 78%; margin: -12% 0 0 auto; } }
.spec { margin-top: 32px; border-top: 1px solid var(--line); }
.f-rtr .spec { margin-top: clamp(48px, 6vw, 88px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 80px); border-top: 0; }
.f-rtr .spec div { border-top: 1px solid var(--line); border-bottom: 0; }
@media (min-width: 961px) and (max-width: 1180px) { .rtr-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); } }
@media (max-width: 760px) { .f-rtr .spec { grid-template-columns: 1fr; } }
.spec div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec dt { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.spec dd { margin: 0; color: var(--ink-2); }
.f-rtr .h1 em { color: #4f6bff; }
:root[data-theme="dark"] .f-rtr .h1 em { color: #8fa2ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .f-rtr .h1 em { color: #8fa2ff; } }
@media (max-width: 960px) { .rtr-grid { grid-template-columns: 1fr; } .rtr-copy { order: -1; } }
@media (max-width: 520px) { .spec div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Device frames for real screenshots ---------- */
.mac { border-radius: 12px; overflow: hidden; background: #0d0c12; box-shadow: var(--shadow-shot), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.mac .bar { height: 26px; display: flex; align-items: center; gap: 7px; padding: 0 11px; background: linear-gradient(#2a2733, #221f2a); border-bottom: 1px solid rgba(0, 0, 0, 0.4); }
.mac .bar i { width: 10px; height: 10px; border-radius: 50%; background: #4a4655; }
.mac .bar i:nth-child(1) { background: #ff5f57; } .mac .bar i:nth-child(2) { background: #febc2e; } .mac .bar i:nth-child(3) { background: #28c840; }
.mac img { width: 100%; }
.mac.light { background: #fff; }
.mac.light .bar { background: linear-gradient(#f1f0f4, #e7e5ec); border-bottom-color: #d6d3dd; }
.phone { position: relative; border-radius: 13.5% / 6.4%; padding: 2.6%; background: #0c0b10; box-shadow: var(--shadow-shot), inset 0 0 0 1px rgba(255, 255, 255, 0.10); }
.phone img { border-radius: 11.4% / 5.3%; width: 100%; }
.tablet { border-radius: 6% / 4.6%; padding: 2.4%; background: #0c0b10; box-shadow: var(--shadow-shot), inset 0 0 0 1px rgba(255, 255, 255, 0.10); }
.tablet img { border-radius: 4% / 3%; width: 100%; }
.shot-none img { width: 100%; border-radius: var(--radius-md); box-shadow: var(--shadow-shot); }
.shot-window img { width: 100%; }

/* A labelled placeholder for an asset that does not exist yet */
.placeholder {
  display: grid; place-items: center; align-content: center; text-align: center; gap: 8px; padding: 28px; min-height: 220px;
  border: 1.5px dashed var(--line-2); border-radius: var(--radius-lg); color: var(--muted); font-size: 14px;
  background: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--line) 45%, transparent) 14px 15px);
}
.placeholder strong { display: block; color: var(--ink-2); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- The collection (index rows, grouped) ---------- */
.collection-group { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(20px, 4vw, 64px); padding: clamp(28px, 3.5vw, 44px) 0; border-top: 1px solid var(--line); }
.collection { border-bottom: 1px solid var(--line); }
.group-meta { align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
.group-meta h2, .group-meta h3 { font-family: var(--font-display); font-size: 22px; line-height: 1.3; }
.group-meta .count { font-size: 12px; }
.group-meta p { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--muted); max-width: 22em; }
.group-meta .count { margin-top: 14px; }
.rows { display: grid; }
.row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center;
  padding: 18px 16px; margin: 0 -16px; border-radius: var(--radius-md);
  transition: background-color .25s var(--ease);
}
.row { position: relative; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 16px; right: 16px; height: 1px; background: var(--line); }
.row-title { display: flex; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; }
.row .icon { --s: 64px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.row h3, .row h4 { font-family: var(--font-display); font-size: 21px; line-height: 1.25; }
.row .tl { font-size: 15.5px; color: var(--ink-2); margin-top: 3px; }
.row .sm { font-size: 14.5px; color: var(--muted); margin-top: 6px; max-width: 46em; }
.row .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.row .go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--ink); transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.row .go svg { width: 16px; height: 16px; }
.row:hover { background: var(--surface); }
.row:hover .icon { transform: rotate(-3deg) scale(1.04); box-shadow: var(--shadow-lift); }
.row:hover .go, .row:focus-visible .go { background: var(--violet); border-color: var(--violet); color: var(--on-violet); transform: translateX(2px); }
.row:focus-visible { outline-offset: 0; border-radius: var(--radius-md); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
.chip i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.chip-status { padding: 3px 10px; border-radius: var(--radius-pill); background: var(--paper-2); color: var(--ink-2); }
@media (max-width: 860px) {
  .collection-group { grid-template-columns: 1fr; }
  .group-meta { position: static; }
}
@media (max-width: 520px) {
  .row { grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 16px 12px; margin: 0 -12px; align-items: start; }
  .row .icon { --s: 56px; }
  .row .go { display: none; }
  .row h3, .row h4 { font-size: 19px; }
  .row-title { flex-direction: column; align-items: flex-start; gap: 4px; }
  .row + .row::before { left: 12px; right: 12px; }
}

/* Filters on /apps/ */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button { min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill); border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; color: var(--muted); transition: all .2s var(--ease); }
.filters button:hover { color: var(--ink); border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.row[hidden], .collection-group[hidden] { display: none; }
@media (forced-colors: active) { .filters button[aria-pressed="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; } }
.filter-empty { padding: 24px 0; color: var(--muted); }

/* ---------- Contact on the home page ---------- */
.contact .label { margin-bottom: 18px; }
.contact { text-align: center; padding: clamp(64px, 9vw, 128px) 0; }
.contact .mail { display: inline-block; margin-top: 18px; font-family: var(--font-display); font-size: clamp(26px, 4.2vw, 52px); letter-spacing: -0.015em; line-height: 1.2; color: var(--ink); background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0% 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .5s var(--ease); overflow-wrap: anywhere; }
.contact .mail:hover, .contact .mail:focus-visible { background-size: 100% 2px; }
.contact .mail span { color: var(--accent); }
.contact p { color: var(--muted); max-width: 32em; margin: 14px auto 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; }
.foot-apps ul { columns: 2; column-gap: 32px; }
.foot-apps li { break-inside: avoid; }
.foot-brand svg.lockup { width: 210px; height: auto; }
.foot-brand p { margin-top: 16px; }
.pillars-stack { margin-top: 10px; display: grid; gap: 4px; }
.pillars-stack li { display: flex; align-items: center; gap: 10px; }
.pillars-stack li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.foot-col h2 { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.foot-col a { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink-2); }
.foot-col a:hover { color: var(--violet); }
.foot-col li { line-height: 1.2; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.maker { display: inline-flex; align-items: center; gap: 8px; }
.maker svg { width: 18px; height: 18px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 420px) { .foot-apps ul { column-gap: 20px; } }
.foot-col a { overflow-wrap: anywhere; }

/* ---------- Product pages ---------- */
.p-hero { padding: calc(var(--header-h) + clamp(40px, 6vw, 88px)) 0 clamp(40px, 5vw, 72px); }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: clamp(28px, 4vw, 48px); }
.crumbs a { display: inline-block; padding-block: 11px; margin-block: -11px; }
.crumbs a:hover { color: var(--violet); }
.crumbs svg { width: 12px; height: 12px; opacity: .6; }
.p-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.p-id { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.p-id .icon { --s: clamp(72px, 8vw, 96px); }
.p-id .name { font-family: var(--font-display); font-size: 22px; line-height: 1.2; }
.p-id .chips { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 8px; }
.p-hero .h1 { max-width: 15ch; }
.p-hero .lead { margin-top: 22px; max-width: 32em; }
.p-hero .btn-row { margin-top: 32px; }
.p-hero .fine { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.p-stage { position: relative; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 56px); background: var(--app-plate, var(--paper-2)); overflow: hidden; min-height: 320px; display: grid; place-items: center; }
.p-stage .duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); align-items: end; width: min(100%, 520px); }
.p-stage .duo > :first-child { transform: translateY(-6%); }
.p-stage .solo-phone { width: min(62%, 300px); }
.p-stage .solo-tablet { width: min(92%, 520px); }
.p-stage .solo-mac { width: 100%; }
.p-stage.solo-icon .icon { --s: clamp(120px, 18vw, 200px); }
.p-hero.wide .p-hero-grid { grid-template-columns: 1fr; }
.p-hero.wide .p-copy { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.p-hero.wide .p-stage { margin-top: clamp(32px, 4vw, 56px); padding: clamp(20px, 3vw, 48px) clamp(20px, 3vw, 48px) 0; place-items: end center; }
.p-hero.wide .p-stage .mac { border-radius: 12px 12px 0 0; }
@media (max-width: 960px) {
  .p-hero-grid, .p-hero.wide .p-copy { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .p-hero.wide .p-stage { min-height: 0; padding: 20px 0 0 16px; place-items: end start; }
  .p-hero.wide .p-stage .solo-mac { width: calc(100% + 16px); }
}

.why { padding: clamp(56px, 7vw, 104px) 0; }
.why-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(20px, 4vw, 64px); }
.why .why-text { margin: 0; font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.45; letter-spacing: -0.01em; color: var(--ink); max-width: 30em; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 80px); }
.feature-item { display: grid; grid-template-columns: 2.4em minmax(0, 1fr); gap: 14px; padding: 24px 0; border-top: 1px solid var(--line); }
.feature-item .k { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; color: var(--app-ink, var(--accent)); padding-top: 5px; }
.feature-item h3 { font-family: var(--font-display); font-size: 20px; line-height: 1.35; }
.feature-item p { margin-top: 6px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

.gallery { --bleed: max(var(--gutter), (100vw - var(--wrap)) / 2); display: grid; grid-auto-flow: column; grid-auto-columns: auto; justify-content: start; align-items: start; gap: clamp(16px, 2.4vw, 32px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--bleed); padding: 8px var(--bleed) 72px; margin-inline: calc(-1 * var(--bleed)); margin-bottom: -44px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.gallery figure { width: var(--col); }
.gallery figure.f-phone { width: min(62vw, 240px); }
.gallery figure.f-tablet { width: min(72vw, 440px); }
.gallery figure.f-mac { width: min(84vw, 720px); }
.gallery .placeholder { min-height: 0; }
.gallery .ph-phone { aspect-ratio: 9 / 19.5; border-radius: 13.5% / 6.4%; }
.gallery .ph-tablet { aspect-ratio: 3 / 4; border-radius: 6% / 4.6%; }
.gallery .ph-mac { aspect-ratio: 16 / 10; border-radius: 12px; }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery figcaption { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 26em; }
.gallery.g-mac { --col: min(84vw, 720px); }
.gallery.g-tablet { --col: min(72vw, 440px); }
.gallery.g-phone { --col: min(62vw, 240px); }
@media (min-width: 1100px) {
  .gallery.g-phone.fits { grid-auto-flow: row; grid-template-columns: repeat(var(--n), minmax(0, 260px)); justify-content: start; gap: 40px; overflow: visible; padding-inline: 0; margin-inline: 0; }
  .gallery.g-phone.fits figure { width: auto; }
  .section-head:has(+ .gallery.fits) .hint-more { display: none; }
}
.gallery-hint { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }

.details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); }
.dl { border-top: 1px solid var(--line); }
.dl div { display: grid; grid-template-columns: 10em minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.dl dt { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.dl dd { margin: 0; font-size: 15.5px; }
.dl dd a { color: var(--violet); display: inline-block; padding-block: 10px; margin-block: -10px; }
.dl dd a:hover { text-decoration: underline; text-underline-offset: 3px; }
.dl dd .sep { color: var(--line-2); margin: 0 8px; }
@media (max-width: 860px) { .details { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .dl div { grid-template-columns: 1fr; gap: 4px; } }

.details .buy { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.details .buy .icon { display: block; --s: 72px; }
.details .buy .h2 { margin-top: 20px; }
.details .buy p { color: var(--muted); margin-top: 6px; }
.details .buy .btn-row { margin-top: 24px; }
@media (max-width: 860px) { .details .buy { position: static; } }
.t-broadcast .details .btn-primary { background: #ff9a3d; color: #1a1206; }
.t-broadcast .details .btn-primary:hover { background: #ffb15c; }
.p-hero.f-broadcast, .p-hero.f-ownfold { padding-bottom: clamp(56px, 7vw, 104px); }
.p-hero.f-broadcast .crumbs, .p-hero.f-broadcast .fine { color: var(--night-muted); }
.p-hero.f-broadcast .chip-status { background: var(--night-2); color: var(--night-ink); }
.p-hero.f-broadcast .p-stage { background: var(--night-2); }
.p-hero.f-ownfold { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 88px)); }
.p-hero.f-ownfold .crumbs, .p-hero.f-ownfold .fine { color: var(--of-ink-3); }
.p-hero.f-ownfold .p-id .name { font-family: var(--of-display); font-weight: 600; letter-spacing: -0.02em; }
.p-hero.f-ownfold .chip-status { background: var(--of-paper-2); color: var(--of-ink); }
.p-hero.f-ownfold .p-stage { background: var(--of-paper-2); border-radius: 16px 0 16px 16px; --of-sheet-bg: var(--of-mid); }
.p-hero.f-ownfold .h1 { font-size: clamp(40px, 5.4vw, 72px); }
.p-hero.f-ownfold .p-stage::before, .p-hero.f-ownfold .p-stage::after { content: ""; position: absolute; top: 0; right: 0; width: 44px; height: 44px; pointer-events: none; }
.p-hero.f-ownfold .p-stage::before { background: linear-gradient(45deg, transparent 50%, var(--of-mid) 50%); z-index: 3; }
.p-hero.f-ownfold .p-stage::after { background: linear-gradient(45deg, var(--of-fold-hi) 0%, var(--of-fold-lo) 50%, transparent 50%); border-bottom-left-radius: 7px; z-index: 4; filter: drop-shadow(-3px 4px 5px var(--of-fold-shadow)); }
.t-ownfold .details .btn-primary { background: var(--ink); color: var(--paper); border-radius: 12px; }
@media (max-width: 960px) {
  .p-hero .p-hero-grid { display: flex; flex-direction: column; }
  .p-hero .p-copy, .p-hero.wide .p-copy { display: contents; }
  .p-hero .p-copy > :first-child { order: 1; }
  .p-hero .p-hero-grid > .p-stage { order: 2; }
  .p-hero .p-copy > :last-child { order: 3; }
  .p-hero.wide .p-stage { margin-top: 0; }
}
.cta-band { border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 64px); background: var(--app-plate, var(--paper-2)); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(20px, 3vw, 40px); align-items: center; }
.cta-band .icon { --s: 72px; }
.cta-band .h2 { font-size: clamp(24px, 2.6vw, 32px); }
.cta-band p { color: var(--app-plate-muted, var(--muted)); margin-top: 6px; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related a { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface); transition: border-color .25s var(--ease), transform .25s var(--ease); }
.related a:hover { border-color: var(--line-2); transform: translateY(-2px); }
.related .icon { --s: 52px; }
.related strong { font-family: var(--font-display); font-weight: 400; font-size: 18px; display: block; }
.related span { font-size: 13.5px; color: var(--muted); display: block; margin-top: 2px; }
@media (max-width: 860px) { .related { grid-template-columns: 1fr; } }

/* ---------- Legal pages ---------- */
.legal { padding: calc(var(--header-h) + 64px) 0 96px; }
.legal .prose { max-width: 720px; }
.legal .prose h1 { font-family: var(--font-display); font-size: clamp(32px, 4vw, 46px); line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 10px; }
.legal .prose h2 { font-family: var(--font-display); font-size: 23px; line-height: 1.3; margin: 44px 0 12px; }
.legal .prose h3 { font-weight: 700; font-size: 17px; margin: 28px 0 8px; }
.legal .prose p, .legal .prose li { color: var(--ink-2); }
.legal .prose p + p { margin-top: 14px; }
.legal .prose ul, .legal .prose ol { margin: 12px 0 0; padding-left: 1.3em; }
.legal .prose ul { list-style: disc; } .legal .prose ol { list-style: decimal; }
.legal .prose li + li { margin-top: 6px; }
.legal .prose .meta, .legal .prose .updated { color: var(--muted); font-size: 15px; }
.legal .prose table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15px; }
.legal .prose th, .legal .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal .prose code { font-family: var(--font-mono); font-size: .9em; }
.legal-back { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 36px; font-weight: 600; font-size: 14.5px; }
.legal-back .icon { --s: 40px; }

/* ---------- 404 ---------- */
.notfound { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 48px) 0 64px; }
.notfound > .wrap > img { width: 96px; height: 77px; margin: 0 auto 28px; }
.notfound p { color: var(--muted); margin-top: 14px; }
.notfound .btn-row { justify-content: center; margin-top: 28px; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .btn-row, .filters { display: none !important; }
  body { background: #fff; color: #000; }
  .js .reveal, .js .reveal-img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* ---------- Per-app colour plate (set inline on .app-scope from the data) ---------- */
.app-scope { --app-plate: var(--plate-l); --app-ink: var(--ink-l); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app-scope { --app-plate: var(--plate-d); --app-ink: var(--ink-d); } }
:root[data-theme="dark"] .app-scope { --app-plate: var(--plate-d); --app-ink: var(--ink-d); }
.legal .prose .label { margin-bottom: 14px; }
.legal .prose .updated { margin-bottom: 28px; }
.shot-window img { filter: drop-shadow(0 2px 3px rgba(18, 14, 36, 0.18)) drop-shadow(0 28px 40px rgba(18, 14, 36, 0.32)); }
.shot-none img { border-radius: 10px; }
.p-hero.wide .p-stage .shot-none img, .p-hero.wide .p-stage .shot-window img { border-radius: 10px 10px 0 0; }
@media (max-width: 480px) {
  .pillars.tagline-caps { letter-spacing: 0.2em; font-size: 11.5px; --pg: 10px; }
}
