/* StoryRoom Queue site styles.
   Tokens are the extension's own popup palette, so the site and the product
   read as one thing. Dark only: the extension ships dark only.

   Radius system (one scale, used everywhere):
     --r-sm  10px  inputs, pills, inline chips
     --r     14px  buttons, cards, list rows
     --r-lg  20px  large frames and panels                                    */

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/quicksand-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/quicksand-500.ttf') format('truetype');
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/quicksand-600.ttf') format('truetype');
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/quicksand-700.ttf') format('truetype');
}

:root {
  color-scheme: dark;
  --primary: #feb786;
  --secondary: #ff8a65;
  --background: #111318;
  --paper: #1a1d24;
  --paper-raised: #20242c;
  --text: #f7f1eb;
  --muted: #aaa8a5;
  --border: rgba(254, 183, 134, 0.16);
  --border-strong: rgba(254, 183, 134, 0.32);
  --danger: #ff9b8a;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;

  --gutter: 24px;
  --page: 1240px;
  --nav-h: 68px;

  font-family: 'Quicksand', 'Segoe UI', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--background);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 88% -8%, rgba(254, 183, 134, 0.1), transparent 62%),
    radial-gradient(760px 520px at 2% 32%, rgba(255, 138, 101, 0.06), transparent 58%),
    var(--background);
  color: var(--text);
  font-family: 'Quicksand', 'Segoe UI', system-ui, sans-serif;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--primary);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero .wrap > *,
.bento > *,
.contract > *,
.statement-grid > *,
.doc-layout > *,
.closing .wrap > *,
.foot .wrap > *,
.cell > *,
.cell-d > * {
  min-width: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  background: var(--paper-raised);
  color: var(--text);
}

.skip:focus {
  left: 16px;
  top: 16px;
}

/* ---------- Type ---------- */

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.1rem, 5.6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.75rem);
  line-height: 1.1;
}

.h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  max-width: 54ch;
}

.body {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  max-width: 62ch;
}

.h2 + .body,
.display + .body {
  margin-top: 18px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font: inherit;
  font-weight: 700;
  font-size: 0.97rem;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.2s,
    border-color 0.2s;
}

/* #221709 on #feb786 is a deliberate dark-on-amber pair, well past WCAG AA. */
.btn-primary {
  background: var(--primary);
  color: #221709 !important;
}

.btn-primary:hover {
  background: #ffc79e;
}

.btn-ghost {
  border-color: var(--border-strong);
  background: rgba(254, 183, 134, 0.06);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--primary);
  background: rgba(254, 183, 134, 0.12);
}

.btn:active {
  transform: translateY(1px) scale(0.985);
}

.btn i {
  font-size: 1.15em;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.3s,
    border-color 0.3s;
}

.nav.is-stuck {
  background: rgba(17, 19, 24, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.93rem;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav .btn {
  padding: 10px 18px;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: rgba(254, 183, 134, 0.06);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  place-items: center;
  transition:
    background-color 0.2s,
    border-color 0.2s;
}

.nav-toggle:hover {
  border-color: var(--primary);
  background: rgba(254, 183, 134, 0.12);
}

/* Below this the four links plus the button no longer fit on one line, so the
   whole set moves into a panel under the bar. */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-grid;
  }

  /* Bar and panel share one solid surface while open: a translucent dropdown
     lets the hero read straight through it. */
  .nav.is-open {
    background: var(--paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
  }

  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 6px var(--gutter) 20px;
    border-bottom: 1px solid var(--border);
    background: var(--paper);
    box-shadow: 0 26px 48px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0.22s;
  }

  .nav.is-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-links a:not(.btn) {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 1rem;
  }

  .nav .btn {
    width: 100%;
    margin-top: 16px;
    padding: 15px 20px;
    font-size: 0.97rem;
  }
}

/* ---------- Section rhythm ---------- */

.section {
  padding: clamp(72px, 10vw, 124px) 0;
}

.section-head {
  max-width: 56ch;
  margin-bottom: clamp(38px, 5vw, 60px);
}

.section-head .body {
  margin-top: 16px;
  max-width: 50ch;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(36px, 5vw, 60px);
  padding-bottom: clamp(44px, 5vw, 68px);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.75fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero-copy .display {
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* Product shot frame. The shot is taller than the frame on purpose: it is
   clipped and faded so the hero still fits the first viewport. */
.shot {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 48px 90px rgba(0, 0, 0, 0.55);
}

.shot img {
  width: 100%;
  height: auto;
}

.shot-hero {
  max-width: 420px;
  margin-left: auto;
  height: clamp(420px, 54vh, 530px);
}

.shot-hero img {
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.shot-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 132px;
  background: linear-gradient(to bottom, rgba(26, 29, 36, 0), rgba(17, 19, 24, 0.96));
  pointer-events: none;
}

/* ---------- Bento ----------
   Five items, five cells, no holes:
     row 1-2  A spans two columns and both rows, B and C stack beside it
     row 3    D spans two columns, E takes the third                      */

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--paper);
}

.cell p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.cell-a {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
  padding-bottom: 0;
  overflow: hidden;
}

/* Held at the popup's own width so the UI reads at its real scale. */
.cell-a .cell-shot {
  flex: 1 1 auto;
  width: 420px;
  max-width: 100%;
  min-height: 240px;
  margin: 12px auto 0;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-top-left-radius: var(--r);
  border-top-right-radius: var(--r);
  overflow: hidden;
}

.cell-a .cell-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.cell-b {
  grid-column: 3;
  grid-row: 1;
}

.cell-c {
  grid-column: 3;
  grid-row: 2;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(255, 138, 101, 0.2), transparent 70%),
    linear-gradient(160deg, rgba(254, 183, 134, 0.12), rgba(26, 29, 36, 0.9)), var(--paper);
  border-color: var(--border-strong);
}

.cell-d {
  grid-column: 1 / span 2;
  grid-row: 3;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  padding: 0;
  overflow: hidden;
}

.cell-d .cell-text {
  flex: 1 1 auto;
  padding: 28px 0 28px 28px;
}

.cell-d .cell-text p {
  margin-top: 12px;
}

/* Held at the popup's own width so the UI reads at its real scale. */
.cell-d .cell-shot {
  flex: 0 0 420px;
  max-width: 55%;
  align-self: flex-end;
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  border-top-left-radius: var(--r);
  overflow: hidden;
}

.cell-e {
  grid-column: 3;
  grid-row: 3;
}

/* ---------- How it works: horizontal pan ---------- */

.pan {
  position: relative;
}

.pan-stage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* The stage is pinned, so content that overflows a short window would be
     unreachable. `safe` drops back to flex-start instead of clipping the top. */
  justify-content: safe center;
  gap: clamp(26px, 3vw, 40px);
  padding: clamp(48px, 6vw, 72px) 0;
}

/* Without GSAP the panels are simply swipeable. .is-panning is added only
   once the pinned scrub is really running, and then the track is transformed
   rather than scrolled. */
.pan-scroller {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  /* Snap targets align to the page gutter, not to the scrollport edge. */
  scroll-padding-inline-start: max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter)));
}

.pan-scroller::-webkit-scrollbar {
  display: none;
}

.pan.is-panning .pan-scroller {
  overflow: hidden;
  scroll-snap-type: none;
}

.panel {
  scroll-snap-align: start;
}

.pan-track {
  --pan-gap: 22px;
  display: flex;
  align-items: stretch;
  gap: var(--pan-gap);
  padding-inline-start: max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter)));
}

/* Flex scrollWidth drops the inline-end padding, so the trailing gutter is a
   real item. Without it the last panel finishes flush against the edge. */
/* Flex scrollWidth drops the inline-end padding, so the trailing gutter is a
   real item. It mirrors the leading one, so the last panel finishes on the
   same margin the heading starts from. */
.pan-track::after {
  content: '';
  /* vw, not %: a flex-basis percentage resolves against the track's content
     box, which already has the leading gutter subtracted, so it would come out
     short of the margin the heading sits on. */
  flex: 0 0
    max(
      calc(var(--gutter) - var(--pan-gap)),
      calc((100vw - var(--page)) / 2 + var(--gutter) - var(--pan-gap))
    );
}

.panel {
  flex: 0 0 min(520px, 82vw);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px 30px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--paper);
}

.panel-verb {
  color: var(--primary);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.panel-note {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- Contract (prose + code) ---------- */

.contract {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.checks {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.checks li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.checks i {
  color: var(--primary);
  font-size: 1.15rem;
  line-height: 1.5;
}

.checks b {
  display: block;
  color: var(--text);
  font-weight: 600;
}

.code {
  margin: 0;
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: #0e1015;
  color: #d8d2cc;
  font-family: 'SF Mono', ui-monospace, 'JetBrains Mono', Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.75;
  overflow-x: auto;
  tab-size: 2;
}

.code .k {
  color: var(--primary);
}

.code .s {
  color: #cfe3c8;
}

.code .n {
  color: #f0b9ff;
}

.code .c {
  color: #6f7683;
}

.code-cap {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- Local-first statement ---------- */

.statement {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(254, 183, 134, 0.05), transparent 60%);
}

.statement .h2 {
  max-width: 24ch;
}

.statement-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
}

.facts {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.facts div {
  padding-left: 18px;
  border-left: 2px solid var(--border-strong);
}

.facts dt {
  color: var(--text);
  font-weight: 600;
}

.facts dd {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.statement-link {
  margin-top: 34px;
  font-weight: 600;
}

/* ---------- Limitations accordion ---------- */

.faq {
  max-width: 860px;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
  color: var(--text);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 500;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  margin: 0 0 26px;
  padding-right: 56px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 68ch;
}

/* ---------- Closing call to action ---------- */

.closing .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--border);
}

.closing .body {
  margin-top: 14px;
}

/* ---------- Footer ---------- */

.foot {
  border-top: 1px solid var(--border);
  background: rgba(26, 29, 36, 0.5);
  padding: 52px 0 44px;
}

.foot .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.foot h2 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.foot a {
  color: var(--text);
  font-size: 0.95rem;
  text-decoration: none;
}

.foot a:hover {
  color: var(--primary);
}

.foot-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 42ch;
}

.foot-bottom {
  display: block;
}

.foot-legal {
  margin: 42px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 80ch;
}

/* ---------- Document pages (privacy, terms) ---------- */

.doc-head {
  padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--border);
}

.doc-head .lede {
  margin-top: 18px;
}

.doc-meta {
  margin: 0 0 18px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.doc-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(40px, 5vw, 64px) 10px clamp(72px, 9vw, 110px);
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
}

.toc h2 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  counter-reset: toc;
}

.toc a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.toc a:hover {
  color: var(--text);
}

.doc {
  max-width: 72ch;
}

.doc section + section {
  margin-top: 46px;
}

.doc h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.6rem);
  line-height: 1.25;
  margin-bottom: 16px;
}

.doc h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 28px 0 8px;
}

.doc p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.75;
}

.doc ul {
  margin: 0 0 16px;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.doc ul li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.7;
}

.doc ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 7px;
  height: 1px;
  background: var(--primary);
}

.doc strong {
  color: var(--text);
  font-weight: 600;
}

.callout {
  margin: 0 0 32px;
  padding: 22px 24px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  background: rgba(254, 183, 134, 0.06);
}

.callout p {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

/* ---------- Reveal ----------
   The start state is gated on .anim, which site.js adds only once GSAP is
   really there and motion is allowed. Without it the page renders as-is. */

.anim .reveal {
  opacity: 0;
  transform: translateY(26px);
  will-change: transform, opacity;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .shot-hero {
    margin-left: 0;
    max-width: 380px;
    height: auto;
  }

  .shot-hero img {
    height: auto;
    max-height: 430px;
  }

  .contract,
  .statement-grid {
    grid-template-columns: 1fr;
  }

  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .cell-a,
  .cell-d,
  .cell-e {
    grid-column: 1 / span 2;
    grid-row: auto;
  }

  .cell-b {
    grid-column: 1;
    grid-row: auto;
  }

  .cell-c {
    grid-column: 2;
    grid-row: auto;
  }

  .cell-a .cell-shot {
    min-height: 300px;
  }

  .doc-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 16px;
  }

  .bento,
  .foot .wrap {
    grid-template-columns: 1fr;
  }

  .cell-a,
  .cell-b,
  .cell-c,
  .cell-d,
  .cell-e {
    grid-column: 1;
    grid-row: auto;
  }

  .cell-a .cell-shot {
    min-height: 0;
  }

  .cell-a .cell-shot img {
    height: auto;
    max-height: 360px;
  }

  .cell-d {
    flex-direction: column;
    align-items: stretch;
  }

  .cell-d .cell-text {
    padding: 26px 26px 0;
  }

  .cell-d .cell-shot {
    flex: 1 1 auto;
    max-width: none;
    border-left: 0;
    border-top-left-radius: var(--r);
    border-top-right-radius: var(--r);
    margin: 0 0 0 26px;
  }

  .pan-track {
    flex-direction: column;
  }

  .panel {
    flex: 1 1 auto;
  }

  .pan-track::after {
    display: none;
  }

  .closing .wrap {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .faq p {
    padding-right: 0;
  }

  .hero-actions .btn,
  .closing .btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .anim .reveal {
    opacity: 1;
    transform: none;
  }

  .btn,
  .faq summary::after,
  .nav-links {
    transition: none;
  }
}

/* ---------- Inline code ---------- */

code {
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(254, 183, 134, 0.07);
  color: var(--primary);
  font-family: 'SF Mono', ui-monospace, 'JetBrains Mono', Menlo, Consolas, monospace;
  font-size: 0.86em;
}

.code code {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}
