/* Instantly — marketing site
   Layout: 12-column editorial grid, 48px section rhythm opened by a hairline, two-column heroes.
   Colors and type come from the app (app/src/theme.tsx): Schibsted Grotesk for UI and headings,
   a serif for reading text, black feed surfaces, blue only for small signals. */

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #f3f3f3;          /* app: pill */
  --bg-3: #e8e8e8;          /* app: pillPressed */
  --text: #0d0d0d;
  --muted: #5d5d5d;
  --faint: #767676;          /* app uses #8f8f8f; darkened for WCAG AA on white */
  --line: #e6e6e6;
  --line-strong: #cfcfcf;
  --accent: #2f6feb;
  --accent-tint: #eaf1fe;
  --inverse: #0d0d0d;
  --on-inverse: #ffffff;
  --field: #ffffff;

  --black: #000000;
  --black-2: #161616;
  --black-3: #2f2f2f;
  --black-muted: rgba(255, 255, 255, 0.72);
  --black-faint: rgba(255, 255, 255, 0.55);
  --black-line: rgba(255, 255, 255, 0.14);
  --black-accent: #4c8dff;

  --rel-low: #c9c9c9;
  --rel-mid: #f5a524;
  --rel-high: #e5484d;
  --lean-left: #3b82f6;
  --lean-right: #e5484d;

  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;

  --container: 87.5rem;      /* 1400px */
  --pad: 4rem;               /* 64px side padding */
  --gap: 2rem;               /* 32px gutter */
  --nav-h: 68px;
  --sec: 48px;               /* section padding */

  --r-card: 16px;
  --r-media: 24px;
  --r-field: 12px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-drawer: cubic-bezier(0.165, 0.84, 0.44, 1);
  --t: 0.2s;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #212121; --bg-2: #2f2f2f; --bg-3: #3a3a3a;
    --text: #ececec; --muted: #a6a6a6; --faint: #8a8a8a;
    --line: #343434; --line-strong: #4a4a4a;
    --accent: #4c8dff; --accent-tint: #1d2a44;
    --inverse: #ffffff; --on-inverse: #000000; --field: #2a2a2a;
    --rel-low: #6e6e6e;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #212121; --bg-2: #2f2f2f; --bg-3: #3a3a3a;
  --text: #ececec; --muted: #a6a6a6; --faint: #8a8a8a;
  --line: #343434; --line-strong: #4a4a4a;
  --accent: #4c8dff; --accent-tint: #1d2a44;
  --inverse: #ffffff; --on-inverse: #000000; --field: #2a2a2a;
  --rel-low: #6e6e6e;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--serif); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; font-family: var(--sans); text-wrap: balance; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 2000; background: var(--inverse); color: var(--on-inverse); padding: 0.6rem 1rem; border-radius: 8px; text-decoration: none; font-family: var(--sans); font-weight: 600; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ------------------------------------------------------------------ type scale */
.h1-xl { font-size: clamp(2.25rem, 4.3vw, 3.8rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.025em; }
.h1 { font-size: clamp(2rem, 3.7vw, 3.25rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.022em; }
.h2 { font-size: clamp(1.45rem, 2.3vw, 2rem); line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; }
.h2-s { font-size: 1.5rem; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.h3 { font-size: clamp(1.25rem, 1.8vw, 1.5625rem); line-height: 1.2; font-weight: 700; letter-spacing: -0.012em; }
.h4 { font-size: 1.1875rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.008em; }
.caption { font-family: var(--sans); font-size: 14px; line-height: 1.2; font-weight: 500; letter-spacing: 0.01em; color: var(--muted); }
.lede { font-family: var(--serif); font-size: clamp(1.1875rem, 1.5vw, 1.25rem); line-height: 1.55; }
.lede-l { font-family: var(--serif); font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.4; }
.small { font-family: var(--serif); font-size: 15px; line-height: 1.4; }
.sans { font-family: var(--sans); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.prose > * + * { margin-top: 16px; }
.prose p, .prose li { font-size: 17px; line-height: 1.55; }
.prose strong, .prose b { font-family: var(--sans); font-weight: 700; font-size: 0.96em; }
.prose a, a.inline { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; transition: color var(--t) var(--ease); }
.prose a:hover, a.inline:hover { color: var(--accent); }
.prose ul { padding-left: 1.2rem; list-style: disc; }
.prose ul li + li { margin-top: 8px; }
.prose h3 { font-size: 1.1875rem; font-weight: 700; margin-top: 32px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
.prose th { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.prose td:first-child { font-family: var(--sans); font-weight: 600; color: var(--text); }
.prose td { color: var(--muted); }
.table-wrap { overflow-x: auto; }

/* ------------------------------------------------------------------ layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-left: max(var(--pad), env(safe-area-inset-left, 0px)); padding-right: max(var(--pad), env(safe-area-inset-right, 0px)); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.grid > * { min-width: 0; }
.c-1-3 { grid-column: 1 / 4; }  .c-1-5 { grid-column: 1 / 6; }  .c-1-6 { grid-column: 1 / 7; }
.c-1-7 { grid-column: 1 / 8; }  .c-1-8 { grid-column: 1 / 9; }  .c-1-9 { grid-column: 1 / 10; }
.c-5-12 { grid-column: 5 / 13; } .c-7-12 { grid-column: 7 / 13; } .c-8-12 { grid-column: 8 / 13; }
.c-9-12 { grid-column: 9 / 13; } .c-10-12 { grid-column: 10 / 13; } .c-all { grid-column: 1 / -1; }

.section { padding-block: var(--sec); }
.section.ruled > .container::before { content: ""; display: block; grid-column: 1 / -1; border-top: 1px solid var(--line); margin-bottom: var(--sec); }
.section-end { padding-bottom: 96px; }
.stack-8 > * + * { margin-top: 8px; }
.stack-12 > * + * { margin-top: 12px; }
.stack-16 > * + * { margin-top: 16px; }
.stack-24 > * + * { margin-top: 24px; }
.reading { max-width: 640px; margin-inline: auto; }

/* ------------------------------------------------------------------ wordmark */
.wordmark { display: inline-flex; align-items: baseline; gap: 0.06em; font-family: var(--sans); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.045em; line-height: 1; text-decoration: none; color: var(--text); }
.wordmark .dot { width: 0.27em; height: 0.27em; border-radius: 50%; background: var(--accent); display: inline-block; flex: none; }

/* ------------------------------------------------------------------ buttons + links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 18px; border-radius: var(--r-pill);
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: -0.005em; line-height: 1;
  text-decoration: none; border: 1px solid transparent; white-space: nowrap;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.btn .i { width: 18px; height: 18px; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn-primary { background: var(--inverse); color: var(--on-inverse); border-color: var(--inverse); }
.btn-primary:hover { background: color-mix(in srgb, var(--inverse) 80%, var(--bg)); }
.btn-secondary { border-color: var(--inverse); color: var(--text); }
.btn-secondary:hover { background: var(--bg-2); }
.btn-soft { background: var(--bg-2); border-color: var(--line); color: var(--muted); width: 100%; }
.btn-soft:hover { background: var(--bg-3); color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.on-black .btn-primary { background: #fff; color: #000; border-color: #fff; }
.on-black .btn-primary:hover { background: #e6e6e6; }
.on-black .btn-secondary { border-color: rgba(255,255,255,0.5); color: #fff; }
.on-black .btn-secondary:hover { background: rgba(255,255,255,0.08); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 15px; font-weight: 500;
  color: var(--muted); text-decoration: none; transition: color var(--t) var(--ease);
}
.arrow-link .i { width: 18px; height: 18px; transition: transform var(--t) var(--ease); }
.arrow-link:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.arrow-link:hover .i { transform: translateX(2px); }
.back-link { display: inline-flex; align-items: center; gap: 4px; font-family: var(--sans); font-size: 14px; color: var(--muted); text-decoration: none; margin-bottom: 24px; }
.back-link:hover { color: var(--text); }
.back-link .i { width: 18px; height: 18px; transform: rotate(180deg); }

.new-pill { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 4px; background: var(--accent-tint); color: var(--accent); font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

/* ------------------------------------------------------------------ icons */
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------ nav */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 1001; background: var(--bg); }
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 1000; background: var(--bg); font-family: var(--sans); }
.nav-inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; height: var(--nav-h); }
.nav-inner > .wordmark { grid-column: 1 / 4; justify-self: start; }
.nav-right { grid-column: 4 / 13; display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 8px 10px; font-size: 15px; font-weight: 500;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.3em; text-decoration-thickness: 1px;
  transition: text-decoration-color var(--t) var(--ease);
}
.nav-link:hover, .nav-link[aria-current="page"] { text-decoration-color: currentColor; }
.nav-link .chev { width: 14px; height: 14px; transition: transform var(--t) var(--ease); }
.nav-item.is-open .chev { transform: rotate(180deg); }
.nav-menu {
  position: absolute; top: calc(100% + 10px); right: -120px; min-width: 520px; padding: 24px; border-radius: var(--r-card);
  background: var(--bg); border: 1px solid var(--line);
  box-shadow: 0 2px 2px rgba(0,0,0,.01), 0 4px 4px rgba(0,0,0,.02), 0 16px 24px rgba(0,0,0,.06);
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  opacity: 0; visibility: hidden; translate: 0 -4px;
  transition: opacity var(--t) var(--ease), translate var(--t) var(--ease), visibility 0s linear var(--t);
}
.nav-item.is-open .nav-menu { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }
.nav-menu .caption { margin-bottom: 8px; color: var(--faint); }
.nav-menu a { display: block; padding: 8px 10px; margin-inline: -10px; border-radius: 10px; text-decoration: none; transition: background-color var(--t) var(--ease); }
.nav-menu a:hover { background: var(--bg-2); }
.nav-menu a strong { display: block; font-weight: 600; font-size: 15px; }
.nav-menu a span { display: block; color: var(--muted); font-size: 14px; line-height: 1.35; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; transition: background-color var(--t) var(--ease); }
.icon-btn:hover { background: var(--bg-2); }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; }
}
.nav-cta { margin-left: 8px; }
.menu-btn { display: none; }
.mobile-menu { position: fixed; inset: calc(var(--nav-h) + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 999; background: var(--bg); padding: 16px max(var(--pad), env(safe-area-inset-right, 0px)) 48px max(var(--pad), env(safe-area-inset-left, 0px)); overflow-y: auto; font-family: var(--sans); display: none; }
.mobile-menu.is-open { display: block; }
.mobile-menu .caption { margin: 28px 0 4px; color: var(--faint); }
.mobile-menu a.m-link { display: block; padding: 12px 0; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.015em; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { width: 100%; margin-top: 32px; }
body.menu-open { overflow: hidden; }

/* ------------------------------------------------------------------ heroes */
.hero { padding-top: 96px; padding-bottom: var(--sec); }
.hero-2col h1 { grid-column: 1 / 7; }
.hero-2col .hero-right { grid-column: 7 / 13; }
.hero-right > * + * { margin-top: 12px; }
.hero-right .btn-row, .hero-right .store-row { margin-top: 24px; }
.hero-home h1 { grid-column: 1 / 8; }
.hero-home .hero-right { grid-column: 8 / 13; padding-top: 56px; }
.link-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; font-family: var(--sans); font-size: 14px; margin-top: 24px !important; }
.link-row b { font-weight: 600; }
.link-row a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.link-row a:hover { color: var(--text); }
.hero-links li { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-family: var(--sans); font-size: 15px; }
.hero-links li:last-child { border-bottom: 1px solid var(--line); }
.hero-links span { color: var(--muted); }
.hero-links a { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); text-decoration: none; font-family: var(--serif); overflow-wrap: anywhere; }
.hero-links a:hover { color: var(--text); text-decoration: underline; }
.hero-links a .i { width: 16px; height: 16px; flex: none; }

.hero-product { padding-top: 96px; padding-bottom: var(--sec); text-align: center; }
.product-mark { font-family: var(--sans); font-weight: 800; font-size: clamp(3.5rem, 11vw, 9rem); letter-spacing: -0.055em; line-height: 0.95; display: inline-flex; align-items: baseline; gap: 0.04em; }
.product-mark .dot { width: 0.22em; height: 0.22em; border-radius: 50%; background: var(--accent); display: inline-block; }
.hero-product .lede { font-size: clamp(1.25rem, 1.8vw, 1.4375rem); line-height: 1.55; max-width: 640px; margin: 32px auto 0; }
.hero-product .btn-row { justify-content: center; margin-top: 32px; gap: 16px; }

/* ------------------------------------------------------------------ home: release callout card */
.callout-card {
  position: relative; display: block; text-decoration: none; border-radius: var(--r-media); overflow: hidden;
  background: var(--black); color: #fff; padding: 80px 32px 0; text-align: center; isolation: isolate;
}
.callout-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(48rem 22rem at 50% 110%, rgba(76,141,255,0.22), transparent 65%); }
.callout-title { font-family: var(--sans); font-weight: 800; font-size: clamp(3rem, 6vw, 5rem); letter-spacing: -0.045em; line-height: 1.05; display: inline-flex; align-items: baseline; gap: 0.05em; }
.callout-title .dot { width: 0.2em; height: 0.2em; border-radius: 50%; background: var(--black-accent); display: inline-block; }
.callout-arc { width: min(92%, 1140px); height: 56px; margin: 4px auto 0; color: rgba(255,255,255,0.4); }
.callout-card > p { font-family: var(--serif); font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.4; max-width: 640px; margin: 4px auto 0; color: var(--black-muted); }
.callout-card .btn { margin-top: 24px; background: #fff; color: #000; border-color: #fff; }
.callout-card:hover .btn { background: #e6e6e6; }
.callout-phone { width: min(300px, 78vw); margin: 48px auto 0; height: 300px; overflow: hidden; }

/* ------------------------------------------------------------------ home: release cards */
.release-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: 24px; }
.release { border-radius: var(--r-card); background: var(--bg-2); padding: 32px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.release h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.release > p { font-size: 16px; line-height: 1.45; flex: 1; padding-bottom: 32px; }
.meta { border-top: 1px solid var(--line-strong); font-family: var(--sans); }
.meta > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-strong); font-size: 14px; }
.meta dt { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.meta dd { text-align: right; }
.meta a { text-decoration: underline; text-underline-offset: 3px; }
.release .btn { align-self: flex-start; margin-top: 24px; }

/* ------------------------------------------------------------------ home: mission + list rows */
.feature-rows { border-top: 1px solid var(--line); }
.feature-row { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--sans); }
.feature-row strong { font-size: 16px; font-weight: 600; transition: color var(--t) var(--ease); }
.feature-row span { font-size: 15px; color: var(--muted); text-align: right; }
.feature-row:hover strong { color: var(--accent); }

/* ------------------------------------------------------------------ LinkGrid */
.linkgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.linkgrid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.link-item { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.link-item p { font-size: 15px; line-height: 1.4; color: var(--muted); }
.link-item .arrow-link { margin-top: 8px; }
.link-item .addr { font-family: var(--sans); font-size: 14px; color: var(--text); overflow-wrap: anywhere; user-select: all; }

/* ------------------------------------------------------------------ GridList */
.gl-head > * + * { margin-top: 12px; }
.gl-head p { font-family: var(--sans); font-size: 16px; line-height: 1.35; color: var(--muted); }
.cards2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 24px; }
.cards2.gap-l { row-gap: 40px; }
.tcard { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tcard > p { font-size: 16px; line-height: 1.45; color: var(--muted); }
.tcard .caption { color: var(--faint); }
.tcard-full { grid-column: 1 / -1; }
.media { position: relative; min-height: 300px; max-width: 100%; border-radius: var(--r-media); background: var(--bg-2); display: grid; place-items: center; padding: 24px; margin-bottom: 4px; }
.media.ink { background: var(--black); color: #fff; }
.media.wide { aspect-ratio: 16 / 9; border-radius: var(--r-card); }
.media > * { width: 100%; max-width: 22rem; }
.media.crop { place-items: start center; padding-bottom: 0; overflow: hidden; }
.tcard-full .media { min-height: 340px; }
.media.crop { aspect-ratio: 4 / 3; min-height: 0; }
.media.crop .phone { margin-top: 8px; }
.media .subs { font-size: 1rem; }

.kv { border-top: 1px solid var(--line); font-family: var(--sans); }
.kv > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.kv dt { color: var(--muted); font-size: 15px; }
.kv a { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ DrawerList (accordion) */
.drawers { border-bottom: 1px solid var(--line); }
.drawer { border-top: 1px solid var(--line); }
.drawers.flush-top .drawer:first-child { border-top: 0; }
.drawers.flush-top .drawer:first-child summary { padding-top: 0; }
.drawer summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-family: var(--sans); font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.008em; line-height: 1.25; }
.drawer summary::-webkit-details-marker { display: none; }
.pm { position: relative; width: 24px; height: 24px; flex: none; }
.pm::before, .pm::after { content: ""; position: absolute; left: 5px; right: 5px; top: 50%; height: 1.5px; margin-top: -0.75px; background: currentColor; border-radius: 1px; transition: transform 0.5s var(--ease-drawer), opacity 0.3s var(--ease-drawer); }
.pm::after { transform: rotate(90deg); }
.drawer[open] .pm::after { transform: rotate(180deg); opacity: 0; }
.drawer-body { overflow: hidden; }
.drawer-body > div { padding-bottom: 24px; }
.drawer-body p { font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 62ch; }
.drawer-body p + p { margin-top: 12px; }
.js .drawer-body { transition: height 0.5s var(--ease-drawer), opacity 0.3s var(--ease-drawer); }
.drawers.simple .drawer summary { font-family: var(--serif); font-size: 17px; font-weight: 400; letter-spacing: 0; padding: 14px 0; }

/* ------------------------------------------------------------------ FeaturedGrid */
.featured { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 16px; }
.featured > * { min-width: 0; }
.featured-main { grid-column: 1 / 9; display: flex; flex-direction: column; gap: 24px; text-decoration: none; }
.featured-main .media { aspect-ratio: 16 / 9; border-radius: var(--r-card); margin: 0; }
.featured-main .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.featured-main:hover h2 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.post-meta { display: flex; gap: 8px; flex-wrap: wrap; font-family: var(--sans); font-size: 14px; font-weight: 500; }
.post-meta span:last-child { color: var(--muted); }
.featured-side { grid-column: 9 / 13; display: flex; flex-direction: column; gap: 16px; }
.side-item { display: flex; flex-direction: column; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line); text-decoration: none; }
.side-item:last-child { border-bottom: 0; }
.side-item p { font-size: 15px; line-height: 1.4; color: var(--muted); }
.side-item:hover h3 { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ PublicationList */
.pub-head { align-items: end; margin-bottom: 48px; }
.search { position: relative; }
.search input { width: 100%; height: 44px; padding: 8px 16px 8px 40px; border-radius: var(--r-field); border: 1px solid var(--line-strong); background: var(--field); font-family: var(--sans); font-size: 14px; transition: border-color var(--t) var(--ease); }
.search input:focus { outline: none; border-color: var(--muted); }
.search .i { position: absolute; left: 14px; top: 12px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.pub-table { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); column-gap: 24px; align-content: start; }
.pub-table > * { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; font-family: var(--sans); font-size: 15px; line-height: 1.4; }
.pub-table .th { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pub-table .c-date { grid-column: 1 / 3; } .pub-table .c-cat { grid-column: 3 / 5; } .pub-table .c-title { grid-column: 5 / 10; }
.pub-row { color: var(--muted); text-decoration: none; transition: color var(--t) var(--ease); }
.pub-row:hover { color: var(--text); }
.pub-row:hover .c-title { text-decoration: underline; text-underline-offset: 3px; }
.pub-table > [hidden] { display: none !important; }
.pub-empty { color: var(--muted); font-family: var(--sans); font-size: 15px; }
.pub-aside { position: sticky; top: calc(var(--nav-h) + 16px); align-self: start; }
.aside-card { aspect-ratio: 1; border-radius: var(--r-card); background: var(--black); color: #fff; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; }
.aside-card img { width: 56px; height: 56px; border-radius: 14px; }
.aside-card b { font-family: var(--sans); font-size: 1.25rem; letter-spacing: -0.01em; display: block; }
.aside-card span { font-family: var(--sans); font-size: 14px; color: var(--black-muted); display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; }
.aside-card .i { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ centred heads, step tabs */
.center-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.center-head h2 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em; }
.center-head p { margin-top: 12px; }
.center-head .btn { margin-top: 20px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 14px; }
.steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { position: relative; display: flex; flex-direction: column; justify-content: flex-start; align-self: stretch; text-align: left; padding-top: 12px; opacity: 0.42; transition: opacity 0.38s cubic-bezier(.2,.7,.2,1); min-width: 0; }
.step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line-strong); }
.step .bar { position: absolute; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); }
.step.is-active, .step:hover { opacity: 1; }
.step b { display: block; font-family: var(--sans); font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.step span { display: block; font-size: 16px; line-height: 1.5; color: var(--muted); }
.no-js .step { opacity: 1; }

/* ------------------------------------------------------------------ typographic tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 42px 14px; }
.tile { display: block; text-decoration: none; min-width: 0; }
.tile-box { position: relative; isolation: isolate; aspect-ratio: 5 / 4; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); display: grid; place-items: center; padding: 14px; text-align: center; overflow: hidden; font-family: var(--serif); font-size: clamp(1.15rem, 1.6vw, 1.375rem); line-height: 1.2; transition: color 0.25s var(--ease); }
.tile-box::before { content: ""; position: absolute; inset: 0; background: var(--black); opacity: 0; transition: opacity 0.25s var(--ease); z-index: -1; }
.tile-box small { position: absolute; left: 14px; right: 14px; bottom: 12px; font-family: var(--sans); font-size: 13px; line-height: 1.3; color: var(--black-muted); opacity: 0; transition: opacity 0.25s var(--ease); }
.tile:hover .tile-box, .tile:focus-visible .tile-box { color: #fff; }
.tile:hover .tile-box::before, .tile:focus-visible .tile-box::before, .tile:hover .tile-box small, .tile:focus-visible .tile-box small { opacity: 1; }
.tile-cap { display: flex; justify-content: space-between; padding-top: 8px; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* ------------------------------------------------------------------ callout band */
.band { background: var(--bg-2); padding: 42px 24px; text-align: center; }
.band > * { max-width: 640px; margin-inline: auto; }
.band h2 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em; }
.band p { margin-top: 12px; }
.band .btn-row { justify-content: center; margin-top: 20px; }

/* ------------------------------------------------------------------ updates (reading column) */
.updates { display: flex; flex-direction: column; gap: 24px; }
.update { display: flex; flex-direction: column; gap: 6px; }
.update-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-family: var(--sans); }
.update-top b { font-size: 15px; font-weight: 700; }
.update-top span { font-size: 14px; color: var(--muted); }
.update p { font-size: 15px; line-height: 1.45; color: var(--muted); }
.update .arrow-link { font-size: 14px; }

/* ------------------------------------------------------------------ pre-footer CTA */
.prefooter { background: var(--black); color: #fff; padding: 96px 0 128px; border-bottom: 2px solid #1e1e1e; }
.prefooter .inner { max-width: 640px; margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 48px; }
.prefooter h2 { font-size: clamp(2rem, 3.7vw, 3.25rem); line-height: 1.25; font-weight: 800; letter-spacing: -0.022em; }

/* ------------------------------------------------------------------ footer */
.on-black { background: var(--black); color: #fff; }
.on-black .muted { color: var(--black-muted); }
.footer { padding: 64px 0 40px; font-family: var(--sans); }
.footer .wordmark { color: #fff; }
.footer .wordmark .dot { background: var(--black-accent); }
.footer-cols { grid-column: 4 / 13; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px var(--gap); }
.footer-col h3 { font-size: 13px; font-weight: 700; margin-bottom: 12px; color: #fff; }
.footer-col h3:not(:first-child) { margin-top: 32px; }
.footer-col a { display: block; padding: 4px 0; font-size: 14px; color: rgb(176, 176, 176); text-decoration: none; transition: color var(--t) var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-brand { grid-column: 1 / 4; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.footer-legal { font-size: 13px; line-height: 1.5; color: rgb(176, 176, 176); }
.socials { display: flex; gap: 4px; margin: 12px 0 0 -9px; }
.socials a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: rgb(176, 176, 176); }
.socials a:hover { background: var(--black-3); color: #fff; }
.socials .i { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ forms */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--sans); font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { font-family: var(--sans); font-size: 16px; background: var(--field); border: 1px solid var(--line-strong); border-radius: var(--r-field); padding: 11px 14px; width: 100%; transition: border-color var(--t) var(--ease); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--muted); }
.field textarea { min-height: 9rem; resize: vertical; }
.form-status { font-family: var(--sans); font-size: 14px; color: var(--muted); min-height: 1.4em; }

/* ------------------------------------------------------------------ store buttons */
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 8px 20px 8px 14px; min-height: 52px; border-radius: var(--r-pill); background: var(--inverse); color: var(--on-inverse); text-decoration: none; font-family: var(--sans); transition: background-color var(--t) var(--ease); }
.store:hover { background: color-mix(in srgb, var(--inverse) 80%, var(--bg)); }
.store.soft { background: var(--bg-2); color: var(--text); }
.store.soft:hover { background: var(--bg-3); }
.store.off { background: transparent; border: 1px dashed var(--line-strong); color: var(--faint); pointer-events: none; }
.store small { display: block; font-size: 11px; opacity: 0.75; line-height: 1.1; }
.store b { display: block; font-size: 16px; line-height: 1.2; }
.store .i { width: 24px; height: 24px; }

/* ------------------------------------------------------------------ phone mockup (the app's feed) */
.phone { position: relative; width: 19.5rem; max-width: 100%; aspect-ratio: 9 / 19.2; border-radius: 3rem; padding: 0.6rem; background: #1a1a1a; box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 40px 80px rgba(0,0,0,0.5); margin-inline: auto; }
.phone-screen { position: relative; height: 100%; border-radius: 2.5rem; overflow: hidden; background: #000; color: #fff; display: flex; flex-direction: column; font-family: var(--sans); font-size: 0.8rem; text-align: left; }
.phone-notch { position: absolute; top: 0.55rem; left: 50%; translate: -50% 0; width: 5.5rem; height: 1.5rem; border-radius: 1rem; background: #000; z-index: 3; box-shadow: 0 0 0 1px #111; }
.phone-status { display: flex; justify-content: space-between; padding: 0.75rem 1.4rem 0; font-weight: 600; font-size: 0.72rem; height: 2.3rem; }
.phone-tabs { display: flex; justify-content: center; gap: 1.1rem; padding: 0.5rem 0 0.25rem; font-weight: 700; font-size: 0.86rem; }
.phone-tabs span { color: rgba(255,255,255,0.55); padding-bottom: 0.3rem; }
.phone-tabs span.on { color: #fff; box-shadow: inset 0 -2px 0 #fff; }
.feed-card { position: relative; flex: 1; padding: 1rem 3.4rem 1rem 1.1rem; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.6rem; isolation: isolate; }
.feed-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #000 0%, #070b14 55%, #0c1424 100%); }
.feed-card.top { justify-content: flex-start; padding-top: 2.2rem; }
.rel-pill { display: inline-flex; align-items: center; gap: 0.35rem; align-self: flex-start; padding: 0.25rem 0.6rem; border-radius: 999px; font-weight: 700; font-size: 0.7rem; background: rgba(229,72,77,0.18); color: #ff9a9c; }
.rel-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.feed-headline { font-weight: 800; font-size: 1.55rem; line-height: 1.1; letter-spacing: -0.035em; }
.feed-summary { color: rgba(255,255,255,0.72); font-size: 0.8rem; line-height: 1.45; }
.feed-meta { display: flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.6); font-size: 0.72rem; font-weight: 600; }
.logos { display: flex; }
.logos span { width: 1.3rem; height: 1.3rem; border-radius: 50%; display: grid; place-items: center; font-size: 0.5rem; font-weight: 800; border: 2px solid #000; margin-left: -0.4rem; color: #fff; }
.logos span:first-child { margin-left: 0; }
.feed-rail { position: absolute; right: 0.6rem; bottom: 1.2rem; display: flex; flex-direction: column; gap: 0.95rem; align-items: center; }
.feed-rail div { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; font-size: 0.62rem; font-weight: 600; color: rgba(255,255,255,0.85); }
.feed-rail .i { width: 1.45rem; height: 1.45rem; color: #fff; }
.mini-lean { display: flex; align-items: center; gap: 0.4rem; font-size: 0.66rem; color: rgba(255,255,255,0.6); font-weight: 600; }
.mini-lean .bar { position: relative; width: 4.5rem; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.15); }
.mini-lean .bar i { position: absolute; top: 0; height: 100%; border-radius: 4px; }
.phone-nav { display: flex; justify-content: space-around; align-items: center; padding: 0.55rem 0.5rem 1.1rem; border-top: 1px solid rgba(255,255,255,0.08); }
.phone-nav div { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; font-size: 0.58rem; color: rgba(255,255,255,0.55); font-weight: 600; }
.phone-nav div.on { color: #fff; }
.phone-nav .i { width: 1.2rem; height: 1.2rem; }
.phone-nav .plus { width: 2.4rem; height: 1.7rem; border-radius: 0.6rem; background: #fff; color: #000; display: grid; place-items: center; }
.ticker { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ app-UI mini mockups (inside .media panels) */
.chat { display: grid; gap: 10px; font-family: var(--sans); }
.bubble { padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.4; max-width: 90%; }
.bubble.me { justify-self: end; background: var(--inverse); color: var(--on-inverse); border-bottom-right-radius: 6px; }
.bubble.ai { background: var(--bg); border-bottom-left-radius: 6px; }
.bubble .src { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.bubble .src span { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--bg-2); color: var(--muted); }
.ask-bar { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 26px; background: var(--bg); color: var(--faint); font-size: 13px; }
.ask-bar .send { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.ask-bar .send .i { width: 16px; height: 16px; }
.relevance-scale { display: grid; gap: 10px; font-family: var(--sans); }
.rel-row { display: grid; grid-template-columns: 1.6rem 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.rel-row b { font-variant-numeric: tabular-nums; }
.rel-track { height: 8px; border-radius: 8px; background: var(--bg-3); overflow: hidden; }
.rel-track i { display: block; height: 100%; border-radius: 8px; }
.rel-row span { font-weight: 600; min-width: 8.5rem; }
.pubs { font-family: var(--sans); }
.pub { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--black-line); }
.pub:last-of-type { border-bottom: 0; }
.pub-logo { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.7rem; flex: none; color: #fff; }
.pub-name { font-weight: 700; font-size: 14px; }
.pub-handle { color: var(--black-muted); font-size: 12px; }
.lean-bar { margin-left: auto; position: relative; width: 6rem; height: 6px; border-radius: 6px; background: var(--black-3); flex: none; }
.lean-bar::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: rgba(255,255,255,0.4); }
.lean-bar i { position: absolute; top: 0; height: 100%; border-radius: 6px; }
.lean-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--black-muted); margin-top: 10px; }
.subs { font-family: var(--sans); font-size: 1.15rem; line-height: 1.45; font-weight: 600; letter-spacing: -0.01em; color: rgba(255,255,255,0.45); }
.subs .said { color: #fff; }
.subs .now { color: #fff; background: rgba(76,141,255,0.38); border-radius: 6px; padding: 0 0.15em; }
.player { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--black-line); font-family: var(--sans); }
.play { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; flex: none; }
.player b { display: block; font-size: 13px; }
.player small { display: block; font-size: 12px; color: var(--black-muted); }
.player .speed { margin-left: auto; font-size: 13px; color: var(--black-muted); font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; font-family: var(--sans); }
.chips span { padding: 7px 14px; border-radius: 18px; background: var(--bg); font-weight: 600; font-size: 14px; display: inline-flex; gap: 4px; align-items: center; }
.chips span.on { background: var(--inverse); color: var(--on-inverse); }
.chips span.add { background: transparent; border: 1.5px dashed var(--line-strong); color: var(--muted); }
.chips .i { width: 14px; height: 14px; }
.notifs { display: grid; gap: 8px; font-family: var(--sans); }
.notif { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 16px; background: var(--bg); }
.notif img { width: 28px; height: 28px; border-radius: 7px; flex: none; }
.notif b { display: block; font-size: 13px; line-height: 1.3; }
.notif p { font-size: 12px; color: var(--muted); }
.notif time { margin-left: auto; font-size: 11px; color: var(--faint); white-space: nowrap; }
.notif:nth-child(2) { opacity: 0.8; } .notif:nth-child(3) { opacity: 0.55; }
.article-mock { font-family: var(--sans); background: var(--bg); border-radius: 16px; padding: 18px; display: grid; gap: 8px; }
.article-mock h4 { font-size: 16px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.article-mock p { font-size: 12px; color: var(--muted); line-height: 1.4; }
.article-mock .k { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-top: 4px; }
.article-mock li { font-size: 12px; color: var(--muted); padding-left: 12px; position: relative; }
.article-mock li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 5px; height: 5px; border-radius: 50%; background: var(--text); }
.search-mock { font-family: var(--sans); display: grid; gap: 8px; }
.search-mock .bar { display: flex; gap: 8px; align-items: center; background: var(--bg); border-radius: 22px; padding: 9px 14px; font-size: 13px; color: var(--faint); }
.search-mock .bar .i { width: 16px; height: 16px; }
.search-mock .res { display: flex; gap: 10px; align-items: center; background: var(--bg); border-radius: 14px; padding: 10px; }
.search-mock .res b { display: block; font-size: 13px; }
.search-mock .res small { color: var(--muted); font-size: 11px; }
.search-mock .thumb { width: 38px; height: 38px; border-radius: 10px; background: var(--black); flex: none; }
.profile-mock { font-family: var(--sans); text-align: center; display: grid; gap: 8px; justify-items: center; }
.profile-mock .pub-logo { width: 3.25rem; height: 3.25rem; font-size: 1rem; }
.profile-mock .stats { display: flex; gap: 18px; font-size: 12px; color: var(--muted); }
.profile-mock .stats b { display: block; color: var(--text); font-size: 14px; }
.profile-mock .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; width: 100%; }
.profile-mock .grid3 i { aspect-ratio: 3/4; border-radius: 6px; background: var(--black); }
.langs-mock { font-family: var(--sans); display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.langs-mock span { padding: 6px 11px; border-radius: 16px; background: var(--bg); font-weight: 600; font-size: 13px; }
.langs-mock span.on { background: var(--accent); color: #fff; }
.pipeline-mock { font-family: var(--sans); max-width: 34rem !important; }
.pipeline-mock ol { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; position: relative; }
.pipeline-mock ol::before { content: ""; position: absolute; left: 8%; right: 8%; top: 6px; height: 2px; background: rgba(255,255,255,0.15); }
.pipeline-mock li { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.5); }
.pipeline-mock li span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.35); background: #000; position: relative; z-index: 1; transition: background-color 0.3s, border-color 0.3s; }
.pipeline-mock li.lit { color: #fff; }
.pipeline-mock li.lit span { background: var(--black-accent); border-color: var(--black-accent); box-shadow: 0 0 0 5px rgba(76,141,255,0.22); }
.pipeline-mock .clock { margin-top: 28px; text-align: center; font-size: 13px; color: var(--black-muted); }
.pipeline-mock .clock b { color: #fff; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ live dot */
.live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.7; } 100% { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .live-dot::after { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .nav-link { padding-inline: 7px; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  :root { --pad: 32px; --gap: 20px; --nav-h: 64px; --sec: 32px; }
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: inline-grid; }
  .c-1-3, .c-1-5, .c-1-6, .c-1-7, .c-1-8, .c-1-9, .c-5-12, .c-7-12, .c-8-12, .c-9-12, .c-10-12 { grid-column: 1 / -1; }
  .grid { row-gap: 20px; }
  .hero { padding-top: 64px; padding-bottom: 32px; }
  .hero-2col h1, .hero-2col .hero-right, .hero-home h1, .hero-home .hero-right { grid-column: 1 / -1; }
  .hero-home .hero-right { padding-top: 0; }
  .hero-product { padding-top: 64px; }
  .release-grid { grid-template-columns: 1fr; }
  .linkgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .featured-main, .featured-side { grid-column: 1 / -1; }
  .featured { row-gap: 40px; }
  .pub-aside { display: none; }
  .steps.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand, .footer-cols { grid-column: 1 / -1; }
  .footer-brand { order: 2; margin-top: 48px; }
  .callout-card { padding-top: 56px; }
  .prefooter { padding: 64px 0 96px; }
}
@media (max-width: 767px) {
  :root { --pad: 16px; }
  .linkgrid, .linkgrid.two, .cards2, .steps, .steps.four, .featured-main .row, .form-row { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .pub-table .th { display: none; }
  .pub-table > .pub-row { display: flex; flex-wrap: wrap; column-gap: 8px; row-gap: 4px; }
  .pub-row .c-cat { order: -2; color: var(--text); font-weight: 600; font-size: 14px; }
  .pub-row .c-date { order: -1; font-size: 14px; }
  .pub-row .c-title { flex-basis: 100%; color: var(--text); }
  .kv > div { grid-template-columns: 1fr; gap: 4px; }
  .hero-links li { grid-template-columns: 1fr; gap: 4px; }
  .feature-row { flex-direction: column; gap: 4px; }
  .feature-row span { text-align: left; }
  .media { padding: 16px; }
  .rel-row span { min-width: 0; }
  .callout-phone { height: 240px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------------------------------ tablets and phones */
/* Release cards: a swipeable row instead of a tall stack */
@media (max-width: 991px) {
  .release-grid {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--pad)); padding: 0 var(--pad) 8px; scroll-padding-inline: var(--pad);
    scrollbar-width: none;
  }
  .release-grid::-webkit-scrollbar { display: none; }
  .release { flex: 0 0 min(400px, 82%); scroll-snap-align: start; }
  .hero-home h1 { max-width: 18ch; }
  .featured-main .media { aspect-ratio: 2 / 1; }
  .media.wide { aspect-ratio: 2 / 1; }
}
/* iPad portrait and small tablets: two-up where it reads better than one */
@media (min-width: 768px) and (max-width: 991px) {
  .linkgrid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
  .side-item:nth-last-child(2) { border-bottom: 0; }
  .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Phones */
@media (max-width: 767px) {
  .hero-product .product-mark { font-size: clamp(3.25rem, 17vw, 5rem); }
  .step { opacity: 1; padding-top: 16px; }
  .step .bar { display: none; }
  .steps { gap: 24px; }
  .tile-box { aspect-ratio: 3 / 2; font-size: 1.125rem; }
  .store-row { flex-direction: column; align-items: stretch; }
  .store { width: 100%; }
  .prefooter .inner { gap: 32px; }
  .pipeline-mock li { font-size: 10px; gap: 8px; }
  .media.wide { aspect-ratio: 4 / 3; }
  .callout-card { padding-inline: 20px; }
  .callout-arc { height: 40px; }
  .hero-links a { font-size: 15px; }
  /* mockup panels grow with their content instead of cropping it */
  .media, .tcard-full .media { min-height: 220px; padding: 28px 20px; }
  .media.crop { min-height: 0; padding-bottom: 0; }
}
/* Touch screens: no hover, bigger tap targets */
@media (hover: none) {
  .tile-box { display: flex; flex-direction: column; justify-content: center; gap: 6px; }
  .tile-box small { position: static; opacity: 1; color: var(--muted); }
  .tile-box::before { display: none; }
  .tile:hover .tile-box, .tile:focus-visible .tile-box { color: inherit; }
  .footer-col a { padding: 8px 0; }
  .nav-menu a, .mobile-menu a.m-link { padding-block: 14px; }
  .arrow-link, .back-link { min-height: 44px; }
}
