/* Ploha i krug: the real counter as the figure, Zagreb modernist planes (EXAT 51) as the ground.
   Pigments are sampled from the counter's own screens: Gotovina green, Kartica navy, TEST violet,
   the "no internet" amber (used for that state only) and the bar's night top strip. */

:root {
  --paper: #ffffff;
  --field: #f3f4f2;
  --stone: #efece6;
  --night: #17191c;
  --ink: #15171b;
  --ink-2: #454a53;
  --ink-3: #5f6570;
  --line: #e2e3e6;
  --green: #155e4b;
  --green-deep: #0e4a3a;
  --green-tint: #e2eee8;
  --navy: #1d3557;
  --violet: #6d28d9;
  --violet-tint: #efe7ff;
  --amber: #9a5b00;
  --amber-on-dark: #f0b04a;
  --focus: var(--green);

  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1320px;
  --bleed: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 14px;
  --shadow: 0 1px 2px rgb(16 24 32 / 0.08), 0 28px 56px -22px rgb(16 24 32 / 0.38);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--s5); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ol { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: #cfe4da; color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: #b9bcc2 transparent; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.copy-line { display: block; }

/* type */
.hero-title {
  font-size: clamp(2.125rem, 1rem + 3vw, 3.5rem);
  line-height: 1.03;
  letter-spacing: -0.032em;
  font-weight: 700;
  text-wrap: balance;
}
.hero-title .copy-line + .copy-line { color: var(--ink-2); font-weight: 500; margin-top: 0.12em; }
.h2 {
  font-size: clamp(1.875rem, 1.1rem + 2.1vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.028em;
  font-weight: 700;
  text-wrap: balance;
}
.h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.012em; font-weight: 650; }
.lead { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.55; color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }
p { text-wrap: pretty; }
.note { display: flex; gap: var(--s3); align-items: baseline; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-3); max-width: 62ch; }
.caption { display: flex; gap: var(--s2); align-items: baseline; font-size: 0.875rem; color: var(--ink-3); }

.dot { flex: none; width: 9px; height: 9px; border-radius: 50%; display: inline-block; transform: translateY(-1px); }
.dot-violet { background: var(--violet); }
.dot-amber { background: var(--amber-on-dark); }
.dot-ink { background: var(--ink-3); }
.dot-light { background: #ffffff; }

.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* skip link */
.skip { position: absolute; left: var(--s4); top: -100px; z-index: 50; background: var(--ink); color: #fff; padding: var(--s3) var(--s4); border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: var(--s3); }

/* status strip: the counter's own status-bar grammar */
.strip { background: var(--stone); border-bottom: 1px solid #e3dfd7; font-size: 0.8125rem; }
.strip-in { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 38px; }
.status { display: flex; align-items: center; gap: var(--s2); font-weight: 600; color: var(--ink); }
.status .dot { transform: none; }
.preview { font-size: 0.75rem; font-weight: 600; color: var(--ink-2); border: 1px dashed #8d9199; border-radius: 6px; padding: 2px var(--s2); white-space: nowrap; }

/* header */
.top-in { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: var(--s3); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; text-decoration: none; }
.brand-mark { position: relative; width: 24px; height: 24px; border-radius: 50%; background: var(--green); flex: none; }
.brand-mark span { position: absolute; right: -5px; bottom: -3px; width: 11px; height: 11px; background: var(--navy); }
.nav { display: flex; gap: var(--s6); }
.nav a { font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); text-decoration: none; padding: var(--s2) 0; transition: color 150ms ease; }
.nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--green); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s3);
  min-height: 52px; padding: 0 22px; border-radius: 12px; border: 1.5px solid transparent;
  font-size: 1rem; font-weight: 650; letter-spacing: -0.005em; text-decoration: none; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .ico { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--green); }
.btn-light:hover { background: var(--green-tint); }
.btn-small { min-height: 40px; padding: 0 var(--s4); font-size: 0.9375rem; border-color: var(--line); background: #fff; }
.btn-small:hover { border-color: var(--ink); }

/* stage: a real screen on a modernist plane */
.stage { position: relative; }
.plane, .disc, .ring { position: absolute; display: block; pointer-events: none; }
.disc { border-radius: 50%; }
.screen { position: relative; z-index: 2; border-radius: var(--radius); overflow: hidden; background: var(--stone); box-shadow: var(--shadow); }
.screen img { width: 100%; }
.stage .caption { position: relative; z-index: 2; margin-top: var(--s4); }

/* hero */
.hero { overflow: clip; padding: clamp(var(--s5), 4vw, var(--s8)) 0 clamp(var(--s8), 6vw, var(--s9)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "stage" "text" "actions" "note"; }
.hero-title { grid-area: title; }
.hero-stage { grid-area: stage; margin-top: var(--s6); padding-top: var(--s5); }
.hero-text { grid-area: text; margin-top: var(--s6); font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.hero-note { grid-area: note; margin-top: var(--s5); max-width: 48ch; }
.hero-stage .plane-green { background: var(--green); top: 0; bottom: 44px; left: 16%; right: calc(-1 * var(--bleed)); }
.hero-stage .screen { margin-right: clamp(var(--s5), 4%, var(--s7)); }
.hero-stage .disc-navy { background: var(--navy); width: clamp(84px, 12vw, 176px); aspect-ratio: 1; left: -4%; bottom: 84px; z-index: 1; }

@media (max-width: 959.98px) {
  .hero-grid { grid-template-areas: "title" "stage" "actions" "text" "note"; }
  .hero-stage { margin-top: var(--s4); }
  .hero-shot { aspect-ratio: 1350 / 1600; object-fit: cover; object-position: 100% 50%; }
  .hero-stage .disc-navy { display: none; }
  .actions { margin-top: var(--s5); }
  .hero-text { margin-top: var(--s6); }
  .actions .btn { flex: 1 1 100%; }
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 4.8fr) minmax(0, 7.2fr);
    grid-template-rows: 1fr auto auto auto auto 1fr;
    grid-template-areas: ". stage" "title stage" "text stage" "actions stage" "note stage" ". stage";
    column-gap: clamp(var(--s7), 4.5vw, 80px);
  }
  .hero-stage { margin-top: 0; grid-row: 1 / -1; padding-top: var(--s7); }
  .hero-text { margin-top: var(--s5); }
  .actions { margin-top: var(--s6); }
  .hero-note { margin-top: var(--s6); }
}

/* the one authored moment: the plane sweeps in behind the counter, the circle lands */
@media (prefers-reduced-motion: no-preference) {
  .hero-stage .plane-green { animation: plane-in 1100ms var(--ease) both; }
  .hero-stage .disc-navy { animation: disc-in 900ms var(--ease) 380ms both; }
  .hero-stage .screen { animation: screen-in 1000ms var(--ease) 80ms both; }
  @keyframes plane-in { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
  @keyframes disc-in { from { transform: scale(0.2); } to { transform: scale(1); } }
  @keyframes screen-in { from { transform: translate3d(0, 28px, 0); } to { transform: none; } }
}

/* sections */
.product, .equipment, .setup, .faq, .independent { padding: clamp(var(--s8), 9vw, 144px) 0; }
.head-split { display: grid; gap: var(--s5); margin-bottom: clamp(var(--s7), 6vw, var(--s9)); }
.head-stack { display: grid; gap: var(--s4); margin-bottom: clamp(var(--s7), 5vw, var(--s8)); }
@media (min-width: 960px) {
  .head-split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(var(--s7), 6vw, 112px); align-items: end; }
}

/* product tour: one fixed frame, the screen changes in place */
.product { padding-top: clamp(var(--s7), 6vw, var(--s9)); overflow: clip; }
.tour { display: grid; gap: var(--s7); }
.tour-frame .plane-navy { background: var(--navy); top: 14%; bottom: 52px; left: calc(-1 * var(--bleed)); right: 38%; }
.tour-frame .screen { margin-left: clamp(var(--s5), 5%, var(--s8)); display: grid; }
.tour-frame .caption { margin-left: clamp(var(--s5), 5%, var(--s8)); }
.tour-frame { padding-top: var(--s5); }
.tour-frame .disc-green-sm { background: var(--green); width: clamp(48px, 5vw, 72px); aspect-ratio: 1; right: calc(-1 * clamp(10px, 1.6vw, 26px)); top: 0; z-index: 1; }
.panel img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: var(--stone); }
#panel-prodaja img { background: var(--night); }
.js .panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 280ms ease, visibility 0s linear 280ms; }
.js .panel.is-on { opacity: 1; visibility: visible; transition: opacity 280ms ease; }

.tabs { display: grid; align-content: start; }
.tab {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: var(--s4); row-gap: var(--s1);
  text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: var(--s5) 0; cursor: pointer;
}
.tab:last-child { border-bottom: 1px solid var(--line); }
.tab-dot { grid-row: 1 / span 2; width: 16px; height: 16px; margin-top: 5px; border-radius: 50%; border: 2px solid #9ea3ab; transition: background-color 200ms ease, border-color 200ms ease, transform 300ms var(--ease); }
.tab-title { font-size: 1.1875rem; font-weight: 650; letter-spacing: -0.012em; color: var(--ink-2); transition: color 160ms ease; }
.tab-text { font-size: 0.9875rem; color: var(--ink-3); line-height: 1.5; }
.tab:hover .tab-dot { border-color: var(--green); }
.tab:hover .tab-title { color: var(--ink); }
.tab[aria-selected="true"] .tab-dot { background: var(--green); border-color: var(--green); transform: scale(1.25); }
.tab[aria-selected="true"] .tab-title { color: var(--ink); }
.tab[aria-selected="true"] .tab-text { color: var(--ink-2); }
.tab:focus-visible { outline-offset: -2px; }

@media (min-width: 960px) {
  .tour { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); column-gap: clamp(var(--s7), 5vw, 96px); align-items: center; }
  .tour-frame .screen, .tour-frame .caption { margin-left: 0; margin-right: 0; }
  .tour-frame { padding: var(--s7) 0 0 0; }
  .tour-frame .plane-navy { top: 0; right: 22%; }
}

/* offline: night ground, the before and after registered at one scale */
.offline { background: var(--night); color: #f4f5f6; padding: clamp(var(--s8), 9vw, 144px) 0; --focus: #ffffff; }
.offline .lead { color: #c4c8cf; }
.note-amber { color: #e9cf9d; margin-top: var(--s5); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "a" "line" "b"; }
.pair-item:first-child { grid-area: a; }
.pair-item:last-child { grid-area: b; }
.pair-line { grid-area: line; display: flex; flex-direction: column; align-items: center; gap: 0; padding: var(--s3) 0; }
.pair-line .rail { width: 2px; height: 40px; background: linear-gradient(var(--amber-on-dark), #3fae86); }
.node { width: 14px; height: 14px; border-radius: 50%; }
.node-amber { background: var(--amber-on-dark); }
.node-green { background: #3fae86; }
.pair-shot { border-radius: 12px; overflow: hidden; background: var(--stone); box-shadow: 0 30px 60px -28px rgb(0 0 0 / 0.7); }
.pair-shot img { width: 100%; height: 100%; aspect-ratio: 1360 / 1600; object-fit: cover; object-position: 45% 0; }
@media (min-width: 760px) {
  .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "a b" "line line"; column-gap: clamp(var(--s5), 3vw, var(--s7)); }
  .pair-line { flex-direction: row; padding: var(--s6) 25% 0; }
  .pair-line .rail { width: auto; height: 2px; flex: 1; background: linear-gradient(90deg, var(--amber-on-dark), #3fae86); }
  .pair-shot img { aspect-ratio: 1900 / 1600; object-position: 0 0; }
}

/* independent: one solid circle, one open circle; the register stands alone */
.independent-grid { display: grid; gap: var(--s7); align-items: center; }
.independent .h2 { margin-bottom: var(--s5); }
.orbit { position: relative; width: min(100%, 440px); aspect-ratio: 11 / 7; }
.orbit-solid { position: absolute; left: 0; top: 0; width: 63.6%; aspect-ratio: 1; border-radius: 50%; background: var(--navy); }
.orbit-open { position: absolute; right: 0; bottom: 0; width: 31.8%; aspect-ratio: 1; border-radius: 50%; border: 2px dashed #8b93a3; }
@media (min-width: 960px) {
  .independent-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(var(--s7), 6vw, 112px); }
}
@media (max-width: 959.98px) { .orbit { width: min(62%, 300px); } }

/* equipment */
.equipment { background: var(--field); }
.equipment-grid { display: grid; gap: var(--s7); }
.equipment-head { display: grid; gap: var(--s5); align-content: start; justify-items: start; }
.equipment-head .btn { margin-top: var(--s3); }
.equipment-list { display: grid; }
.row { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: var(--s5); padding: var(--s6) 0; border-top: 1px solid #dcdee2; }
.row:first-child { border-top: 0; padding-top: 0; }
.row-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--green-tint); color: var(--green); display: grid; place-items: center; }
.row .h3 { margin-bottom: var(--s2); }
.row p { color: var(--ink-2); max-width: 58ch; }
.equipment-list .note { padding-top: var(--s5); border-top: 1px solid #dcdee2; }
@media (min-width: 960px) {
  .equipment-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(var(--s7), 6vw, 112px); }
  .equipment-head { position: sticky; top: var(--s6); align-self: start; }
}

/* setup: four nodes on one rail */
.steps { display: grid; gap: var(--s6); counter-reset: step; position: relative; }
.step { counter-increment: step; position: relative; display: grid; align-content: start; grid-template-columns: 44px minmax(0, 1fr); column-gap: var(--s5); row-gap: var(--s2); }
.step-node { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--navy); background: #fff; display: grid; place-items: center; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.step-node::before { content: counter(step); }
.step:last-child .step-node { background: var(--green); border-color: var(--green); color: #fff; }
.step p { color: var(--ink-2); }
.step:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: calc(-1 * var(--s6)); width: 2px; background: var(--navy); opacity: 0.25; }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--s6); }
  .step { grid-template-columns: minmax(0, 1fr); row-gap: var(--s3); }
  .step-node { grid-row: auto; margin-bottom: var(--s3); }
  .step:not(:last-child)::after { left: 44px; right: calc(-1 * var(--s6)); top: 21px; bottom: auto; width: auto; height: 2px; }
}

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq-grid { display: grid; gap: var(--s6); }
.faq-list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s5); padding: var(--s5) 0; cursor: pointer; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--green); }
.qa summary:focus-visible { outline-offset: 2px; }
.chev { color: var(--ink-3); transition: transform 240ms var(--ease); }
.qa[open] .chev { transform: rotate(180deg); }
.qa p { padding: 0 var(--s8) var(--s5) 0; color: var(--ink-2); max-width: 62ch; }
@media (min-width: 960px) {
  .faq-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(var(--s7), 6vw, 112px); align-items: start; }
  .faq-title { position: sticky; top: var(--s6); }
}

/* pilot: the green plane owns the close */
.pilot { position: relative; overflow: clip; background: var(--green); color: #fff; padding: clamp(var(--s8), 10vw, 160px) 0; --focus: #ffffff; }
.pilot-in { position: relative; z-index: 1; display: grid; gap: var(--s5); justify-items: start; }
.pilot .h2 { max-width: 16ch; }
.pilot .lead { color: #d9ebe3; max-width: 52ch; }
.pilot .btn { margin-top: var(--s3); }
.pilot .note { color: #cfe4da; margin-top: var(--s3); }
.disc-pilot { background: var(--navy); width: clamp(220px, 34vw, 520px); aspect-ratio: 1; right: calc(-1 * clamp(80px, 8vw, 140px)); top: clamp(-160px, -8vw, -60px); }
.ring-pilot { width: clamp(90px, 12vw, 180px); aspect-ratio: 1; border-radius: 50%; border: 2px solid rgb(255 255 255 / 0.55); right: clamp(var(--s5), 22vw, 380px); bottom: clamp(var(--s6), 6vw, var(--s9)); }
@media (max-width: 759.98px) { .pilot { padding-bottom: 150px; } .disc-pilot { top: auto; bottom: -120px; right: -70px; width: 220px; } .ring-pilot { display: none; } }

/* footer */
.foot { background: var(--night); color: #c4c8cf; padding: var(--s8) 0 var(--s7); font-size: 0.9375rem; --focus: #ffffff; }
.foot-in { display: grid; gap: var(--s3); justify-items: start; }
.foot .brand { color: #fff; margin-bottom: var(--s2); }
.foot-note { color: #9ea3ab; font-size: 0.875rem; }
.foot .preview { color: #c4c8cf; border-color: #6b7079; margin-top: var(--s4); }

/* dialogs */
dialog { border: 0; padding: 0; color: var(--ink); background: #fff; box-shadow: 0 40px 80px -20px rgb(10 12 16 / 0.45); }
dialog::backdrop { background: rgb(23 25 28 / 0.6); }
.sheet { width: min(1120px, 100vw - 2 * var(--s4)); max-width: none; height: min(880px, 100dvh - 2 * var(--s5)); max-height: none; border-radius: 20px; overflow: hidden; }
.sheet[open] { display: flex; flex-direction: column; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s4) var(--s5) var(--s3); }
.chips { display: flex; gap: var(--s2); padding: 0 var(--s5) var(--s4); overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; text-decoration: none; font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); padding: var(--s2) var(--s4); border-radius: 999px; border: 1px solid var(--line); transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.sheet-body { position: relative; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: var(--s4) var(--s5) var(--s8); scroll-behavior: smooth; }
.demo-step { display: grid; gap: var(--s4); padding-top: var(--s7); scroll-margin-top: var(--s2); }
.demo-text { display: grid; gap: var(--s2); max-width: 60ch; }
.demo-text p { color: var(--ink-2); }
.demo-step img { width: 100%; border-radius: 10px; border: 1px solid var(--line); background: var(--stone); }
@media (min-width: 960px) {
  .demo-step { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: var(--s6); align-items: start; }
  .demo-text { position: sticky; top: 0; }
  .demo-step img { grid-column: 2; }
}
.card-dialog { width: min(520px, 100vw - 2 * var(--s4)); border-radius: 20px; padding: var(--s7) var(--s6) var(--s6); overflow: hidden; }
.card-dialog[open] { display: grid; gap: var(--s4); justify-items: start; }
.disc-dialog { position: static; width: 44px; height: 44px; background: var(--green); margin-bottom: var(--s2); }
.card-dialog .lead { color: var(--ink); font-size: 1.1875rem; }
.card-dialog .btn { margin-top: var(--s3); }

@media (prefers-reduced-motion: no-preference) {
  dialog[open] { animation: dialog-in 320ms var(--ease) both; }
  dialog[open]::backdrop { animation: fade-in 240ms ease both; }
  @keyframes dialog-in { from { opacity: 0; transform: translate3d(0, 16px, 0) scale(0.985); } to { opacity: 1; transform: none; } }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  html, .sheet-body { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; }
}

/* phone header: brand row, then the sections as a scrolling row (no menu word exists) */
@media (max-width: 759.98px) {
  .top-in { flex-wrap: wrap; row-gap: 0; min-height: 0; padding-top: var(--s4); }
  .nav { width: calc(100% + 2 * var(--gutter)); margin-inline: calc(-1 * var(--gutter)); padding: var(--s3) var(--gutter) var(--s3); gap: var(--s2); overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px var(--s4); font-size: 0.875rem; }
  .strip { font-size: 0.75rem; }
  .preview { font-size: 0.6875rem; }
}
