/* Ozzvi v2 / Design C: Stripe-grade light with one living gradient band.
   Light-first, dark supported via prefers-color-scheme.
   Type: Satoshi 400/500 (700 only inside product UI) + IBM Plex Mono for prices, times and counts. */

:root {
  /* Maison: ivory paper, night navy ink, champagne for graphics, bronze for text accents */
  --bg: #f8f5ef;
  --tint: #f1ece3;
  --surface: #fffdf8;
  --ink: #131a26;
  --ink-2: #464e5c;
  --ink-3: #5c6270;
  --line: #e4ddd0;
  --line-2: #d2c9b8;
  --accent: #7d5f2c;          /* bronze, 5:1 on ivory */
  --accent-hi: #c2a26a;       /* champagne, graphics only */
  --btn-bg: #0e1726;
  --btn-bg-hover: #1d2d48;
  --btn-fg: #f8f5ef;
  --header-bg: rgb(248 245 239 / .94);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --caps: "Marcellus", "Cormorant Garamond", Georgia, serif;

  /* product UI */
  /* product screens: the same systems, dressed in the house palette (sage, mist, blush, sand) */
  --ui-bg: #fffdf9;
  --ui-panel: #f6f2ea;
  --ui-line: #ebe4d7;
  --ui-ink: #131a26;
  --ui-ink-2: #6a6f78;
  --k-teal: #7d9a8c;
  --k-violet: #8e93b5;
  --k-rose: #c39088;
  --k-amber: #c6a36b;
  --ok-bg: #e5eee7; --ok-fg: #3e6a54;
  --warn-bg: #f5ead6; --warn-fg: #7d5f2c;
  --tg-wall: #ece6da;
  --tg-blue: #1d2d48;
  --tg-me: #efe4cc;
  --tg-bot: #fffdf9;

  --sh-1: 0 1px 2px rgb(40 30 15 / .05), 0 14px 34px -8px rgb(40 30 15 / .14);
  --sh-2: 0 2px 4px rgb(40 30 15 / .04), 0 34px 70px -18px rgb(30 24 14 / .28), 0 18px 36px -20px rgb(19 26 38 / .22);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --sans: "Satoshi", ui-sans-serif, "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;
  --gutter: 32px;
  --hdr: 64px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --tint: #0f1a2c;
    --surface: #132036;
    --ink: #f1ebdf;
    --ink-2: #bab3a5;
    --ink-3: #989183;
    --line: rgb(255 255 255 / .09);
    --line-2: rgb(255 255 255 / .18);
    --accent: #dcc28c;
    --accent-hi: #c9ad74;
    --btn-bg: #e9dcbd;
    --btn-bg-hover: #f3e8cc;
    --btn-fg: #0e1726;
    --header-bg: rgb(11 18 32 / .94);

    --ui-bg: #121d31;
    --ui-panel: #18253c;
    --ui-line: rgb(255 255 255 / .08);
    --ui-ink: #efe9dc;
    --ui-ink-2: #a7a193;
    --k-teal: #8fb3a2;
    --k-violet: #a3a8cf;
    --k-rose: #d6a49c;
    --k-amber: #d8b77c;
    --ok-bg: rgb(143 179 162 / .16); --ok-fg: #b3d3c3;
    --warn-bg: rgb(216 183 124 / .16); --warn-fg: #e3c995;
    --tg-wall: #141f33;
    --tg-blue: #dcc394;
    --tg-me: #3a3222;
    --tg-bot: #1a2740;

    --sh-1: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -6px rgb(0 0 0 / .45);
    --sh-2: 0 2px 4px rgb(0 0 0 / .3), 0 30px 60px -12px rgb(0 0 0 / .6);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: auto; /* Lenis owns smoothing */
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  background: var(--bg);
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(16px, 0.25vw + 14.5px, 18px);
  line-height: 1.55;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--accent-hi) 28%, transparent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--line-2) transparent; scrollbar-width: thin; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 50; background: var(--btn-bg); color: var(--btn-fg); padding: 10px 16px; border-radius: 6px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(1200px + var(--gutter) * 2); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
@media (max-width: 1023.98px) { :root { --gutter: 24px; } }
@media (max-width: 767.98px) { :root { --gutter: 16px; } }

/* ---------- type ---------- */
.h1 {
  font-weight: 500;
  font-size: clamp(36px, 3.2vw + 18px, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 16.4em;
}
.h2 {
  font-weight: 500;
  font-size: clamp(30px, 1.6vw + 21px, 46px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 22em;
}
.h3 { font-weight: 500; font-size: clamp(20px, 0.6vw + 15px, 24px); line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
.tone { color: var(--ink-2); }
.lead { font-size: clamp(17px, 0.3vw + 15.5px, 20px); line-height: 1.5; max-width: 34ch; }
.lead-2 { color: var(--ink-2); max-width: 44ch; margin-top: 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 6px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 16px; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: transform 120ms var(--ease-out), background-color 200ms ease, opacity 200ms ease;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn .ph { font-size: 17px; transition: transform 200ms var(--ease-out); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
@media (pointer: coarse) { .btn-sm { min-height: 44px; } }
.btn[disabled] { transform: none; opacity: .6; cursor: progress; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--btn-bg-hover); }
  .btn:hover .ph-arrow-right { transform: translateX(3px); }
}
.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink); font-weight: 500; text-decoration: underline;
  text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent);
  transition: text-decoration-color 200ms ease;
}
@media (hover: hover) and (pointer: fine) { .text-link:hover { text-decoration-color: var(--ink); } }
@media (prefers-reduced-motion: reduce) { .btn { transition: background-color 200ms ease; } .btn:active { transform: none; opacity: .85; } }

/* ---------- header ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 31; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--accent-hi); transform: scaleX(0); transform-origin: 0 50%; }
html:not(.motion) .progress { display: none; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 30;
  padding-top: env(safe-area-inset-top);
  transition: background-color 200ms ease, box-shadow 200ms ease;
}
.site-header.is-scrolled, .site-header.is-open {
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.header-in { height: var(--hdr); display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); --wm-dot: var(--accent-hi); }
.wordmark { width: 78px; height: auto; aspect-ratio: 92 / 34; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; transition: background-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); } }
.header-cta { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); font-size: 24px; cursor: pointer; place-items: center; touch-action: manipulation; transition: transform 120ms var(--ease-out); }
.menu-btn:active { transform: scale(0.94); }
.mobile-menu { border-top: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
.mobile-menu a { display: flex; align-items: center; min-height: 52px; font-size: 20px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
@media (max-width: 899.98px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
  .menu-btn { display: grid; }
}
.motion .mobile-menu:not([hidden]) { animation: menu-in 280ms var(--ease-drawer); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: calc(var(--hdr) + env(safe-area-inset-top) + clamp(40px, 5vw, 76px)); overflow-x: clip; isolation: isolate; }
.band {
  position: absolute; z-index: -1; inset: 0 0 auto 0;
  height: var(--band-h, 650px);
  clip-path: ellipse(92% 100% at 32% 0%);
  /* Static fallback: the same palette as the shader, so the page never waits for WebGL. */
  background:
    radial-gradient(60% 90% at 10% 10%, #fbf8f2 0%, transparent 62%),
    radial-gradient(50% 80% at 88% 25%, #b8955a 0%, transparent 66%),
    radial-gradient(55% 75% at 60% 70%, #dcc394 0%, transparent 70%),
    radial-gradient(45% 70% at 28% 85%, #f0e5cd 0%, transparent 70%),
    #e6d4b0;
}
.band-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 900ms ease; }
.band-canvas.is-live { opacity: 1; }
@media (prefers-color-scheme: dark) {
  .band {
    background:
      radial-gradient(55% 80% at 88% 30%, #8a6c3c 0%, transparent 62%),
      radial-gradient(50% 70% at 65% 80%, #3e3020 0%, transparent 70%),
      #0e1726;
  }
}

.hero-grid {
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
}
.hero-copy { display: contents; }
.hero .h1 { grid-column: 1 / -1; color: var(--ink); }
.hero-sub { grid-column: 1 / span 4; grid-row: 2; margin-top: 36px; position: relative; z-index: 2; }
.hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 28px; flex-wrap: wrap; }
.hero-stage {
  grid-column: 5 / -1; grid-row: 2; margin-top: 36px;
  position: relative;
  --s: 1;
  height: calc(630px * var(--s));
}
.cluster { position: absolute; left: 0; top: 0; width: 900px; height: 690px; transform: scale(var(--s)); transform-origin: 0 0; }
.cl { position: absolute; }
.cl-pos   { left: 70px;   top: 0;     width: 720px; height: 450px; z-index: 1; }
.cl-phone { left: -134px; top: 190px; width: 212px; height: 440px; z-index: 3; }
.cl-toast { left: 460px;  top: -86px; width: 340px; z-index: 2; }
.toast { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--ui-bg); border: 1px solid var(--ui-line); box-shadow: var(--sh-2); }
.toast-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--k-teal) 16%, var(--ui-bg)); color: var(--k-teal); font-size: 18px; }
.toast b { display: block; font-size: 12.5px; }
.toast span { font-size: 11.5px; color: var(--ui-ink-2); }
.cl-pos .pos { grid-template-columns: 1fr 236px; }

@media (max-width: 1100px) { .hero-sub { grid-column: 1 / span 5; } .hero-stage { grid-column: 6 / -1; } }
@media (max-width: 1023.98px) {
  .hero { --band-h: 560px; }
  .hero-sub { grid-column: 1 / span 8; }
  .hero-stage { grid-column: 1 / -1; grid-row: 3; margin-top: 64px; --s: .8; margin-left: calc(134px * var(--s)); }
}
@media (max-width: 767.98px) {
  .hero { --band-h: 520px; }
  .band { clip-path: ellipse(140% 100% at 30% 0%); }
  .hero-sub { grid-column: 1 / -1; margin-top: 20px; }
  .hero-actions { gap: 12px 20px; margin-top: 24px; }
  .hero-stage { margin-top: 32px; --s: .8; margin-left: 0; height: calc(480px * var(--s)); }
  .cl-toast { display: none; }
  .cl-pos { left: 196px; top: 0; width: 250px; height: 420px; }
  .cl-pos .pos { grid-template-columns: 1fr; }
  .cl-pos .pos-main { display: none; }
  .cl-pos .pos-cart { border-left: 0; }
  .cl-pos .win-bar .u-dim, .cl-pos .win-ctrl { display: none; }
  .cl-phone { top: 40px; left: 0; }
}
@media (max-width: 380px) { .hero-stage { --s: .76; } }

/* ---------- product UI primitives ---------- */
.ui { font-family: var(--sans); font-size: 13px; line-height: 1.35; color: var(--ui-ink); letter-spacing: 0; text-align: left; }
.ui b { font-weight: 700; }
.ui em, .ui time, .ui dd, .ui .num { font-family: var(--mono); font-style: normal; font-variant-numeric: tabular-nums; font-size: 12px; }
.u-dim { display: block; color: var(--ui-ink-2); font-size: 12px; font-weight: 400; }
.card { background: var(--ui-bg); border-radius: 12px; box-shadow: var(--sh-2); padding: 14px; border: 1px solid var(--ui-line); }
.u-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.u-head b { font-size: 13.5px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font: 500 11.5px/1.5 var(--sans); white-space: nowrap; }
.chip-soft { background: var(--ui-panel); color: var(--ui-ink-2); }
.chip-ok { background: var(--ok-bg); color: var(--ok-fg); }
.chip-warn { background: var(--warn-bg); color: var(--warn-fg); }
.chip-r { margin-left: auto; }

/* calendar */
.cal { display: grid; grid-template-columns: 38px 1fr 1fr; gap: 0 6px; }
.cal-times { display: grid; grid-template-rows: 22px repeat(4, 60px); }
.cal-times::before { content: ""; }
.cal-times span { font: 400 11px var(--mono); color: var(--ui-ink-2); transform: translateY(-6px); }
.cal-col { position: relative; height: calc(22px + 60px * 4); background: repeating-linear-gradient(to bottom, transparent 0 59px, var(--ui-line) 59px 60px) 0 22px / 100% calc(100% - 22px) no-repeat; }
.cal-name { height: 22px; font-weight: 700; font-size: 12px; }
.appt { position: absolute; left: 0; right: 0; top: calc(22px + var(--t) * 30px + 2px); height: calc(var(--h) * 30px - 4px); border-radius: 6px; padding: 5px 7px; display: flex; flex-direction: column; gap: 1px; overflow: hidden;
  background: color-mix(in srgb, var(--k) 14%, var(--ui-bg)); color: color-mix(in srgb, var(--k) 45%, var(--ui-ink)); }
.appt b { font-size: 12px; color: var(--ui-ink); }
.appt span { font-size: 11px; }
.appt em { font-size: 10.5px; margin-top: auto; }
.a-teal { --k: var(--k-teal); } .a-coral { --k: var(--accent-hi); } .a-violet { --k: var(--k-violet); } .a-amber { --k: var(--k-amber); } .a-rose { --k: var(--k-rose); }

/* POS window */
.win { width: 100%; height: 100%; background: var(--ui-bg); border-radius: 10px; overflow: hidden; box-shadow: var(--sh-2); border: 1px solid var(--ui-line); display: flex; flex-direction: column; }
.win-bar { flex: none; height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 10px; background: var(--ui-panel); border-bottom: 1px solid var(--ui-line); white-space: nowrap; }
.win-bar .u-dim { display: inline; }
.win-mono { width: 16px; height: 16px; flex: none; --mono-bg: var(--ui-ink); --mono-fg: var(--ui-bg); }
.win-title { font-weight: 700; font-size: 12.5px; }
.win-ctrl { margin-left: auto; display: flex; gap: 14px; padding-right: 2px; }
.win-ctrl i { width: 9px; height: 9px; border: 1.2px solid var(--ui-ink-2); border-radius: 1px; opacity: .7; }
.win-ctrl i:first-child { border-width: 0 0 1.2px; height: 5px; }
.win-ctrl i:last-child { border: 0; background: linear-gradient(45deg, transparent 44%, var(--ui-ink-2) 44% 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, var(--ui-ink-2) 44% 56%, transparent 56%); }
.pos { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 214px; }
.pos-main { padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pos-tabs { display: flex; gap: 4px; }
.tab { padding: 4px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 500; color: var(--ui-ink-2); background: var(--ui-panel); white-space: nowrap; }
.tab.is-on { background: var(--ui-ink); color: var(--ui-bg); }
.tab-add { padding-inline: 8px; }
.pos-cats { display: flex; gap: 4px; flex-wrap: wrap; }
.cat { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--ui-line); font-size: 11px; color: var(--ui-ink-2); white-space: nowrap; }
.cat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--ui-ink)); }
.cat.is-on { border-color: var(--ui-ink); color: var(--ui-ink); }
.pos-grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 6px; min-height: 0; }
.tile { border-radius: 8px; padding: 7px 8px; display: flex; flex-direction: column; gap: 1px; min-width: 0;
  background: color-mix(in srgb, var(--c) 13%, var(--ui-bg)); transition: transform 160ms var(--ease-out), box-shadow 160ms ease; }
.tile b { font-size: 11.5px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tile span { font-size: 10.5px; color: color-mix(in srgb, var(--c) 40%, var(--ui-ink-2)); }
.tile em { margin-top: auto; font-size: 11.5px; font-weight: 500; }
.tile.is-press { box-shadow: inset 0 0 0 1.5px var(--c); }
.pos-cart { border-left: 1px solid var(--ui-line); padding: 10px 12px; display: flex; flex-direction: column; min-width: 0; }
.cart-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.cart-h .u-dim { display: inline; }
.cart-lines li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--ui-line); font-size: 11.5px; }
.cart-lines small { color: var(--ui-ink-2); font-size: 11px; }
.cart-tot { margin-top: auto; padding-top: 8px; }
.cart-tot > div { display: flex; justify-content: space-between; padding: 2px 0; font-size: 11.5px; color: var(--ui-ink-2); }
.cart-tot dd { color: var(--ui-ink); }
.cart-tot .tot { color: var(--ui-ink); font-weight: 700; font-size: 13px; padding-top: 6px; }
.cart-tot .tot dd { font-size: 13.5px; font-weight: 500; }
.cart-tot .tax dd { color: var(--ui-ink-2); }
.charge { margin-top: 10px; height: 36px; border-radius: 7px; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 12px; background: var(--ok-bg); color: var(--ok-fg); }
.charge .ph { font-size: 16px; }
.charge.is-charge { background: var(--ui-ink); color: var(--ui-bg); }
.charge.is-wait { background: var(--ui-panel); color: var(--ui-ink); }

/* iPhone + Telegram */
.iphone { width: 100%; height: 100%; padding: 7px; border-radius: 36px; background: #11161c; box-shadow: var(--sh-2), inset 0 0 0 1px rgb(255 255 255 / .12), inset 0 0 0 2px #2a3038; }
.iphone-screen { width: 100%; height: 100%; border-radius: 29px; overflow: hidden; }
.tg { background: var(--tg-wall); display: flex; flex-direction: column; font-size: 12px; }
.tg-status { flex: none; display: flex; justify-content: space-between; align-items: center; height: 30px; padding: 0 18px 0 22px; font-weight: 700; font-size: 11.5px; background: var(--tg-bot); }
.tg-island { width: 62px; height: 18px; border-radius: 10px; background: #0b0e12; }
.tg-sig { display: flex; gap: 2px; align-items: flex-end; height: 9px; }
.tg-sig i { width: 3px; background: var(--ui-ink); border-radius: 1px; }
.tg-sig i:nth-child(1) { height: 4px; } .tg-sig i:nth-child(2) { height: 6px; } .tg-sig i:nth-child(3) { height: 9px; }
.tg-head { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 10px 8px; background: var(--tg-bot); border-bottom: 1px solid var(--ui-line); }
.tg-head .ph { font-size: 16px; color: var(--tg-blue); }
.tg-head b { display: block; font-size: 12.5px; }
.tg-head span:not(.tg-ava) { font-size: 10.5px; color: var(--ui-ink-2); }
.tg-ava { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; color: #fff; background: linear-gradient(160deg, #7d5f2c, #5e4720); }
.tg-ava.a2 { background: linear-gradient(160deg, #6f8d80, #4e6a5e); }
.tg-ava.a3 { background: linear-gradient(160deg, #3d5fc4, #2d48a0); }
.tg-body { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 10px 8px; overflow: hidden; }
.msg { max-width: 84%; padding: 6px 9px 7px; border-radius: 14px; line-height: 1.35; box-shadow: 0 1px 1px rgb(10 37 64 / .08); }
.msg.me { align-self: flex-end; background: var(--tg-me); border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--tg-bot); border-bottom-left-radius: 4px; }
.kb { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 7px -4px -3px; }
.kb span { display: grid; place-items: center; height: 26px; border-radius: 8px; font-weight: 700; font-size: 11.5px; color: var(--tg-blue); background: color-mix(in srgb, var(--tg-blue) 10%, var(--tg-bot)); transition: background-color 200ms ease, color 200ms ease; }
.kb span.is-tap { background: #1f74bb; color: #fff; }
.kb-1 { grid-template-columns: 1fr; }
.tg-input { flex: none; display: flex; justify-content: space-between; align-items: center; margin: 0 8px 12px; padding: 7px 12px; border-radius: 16px; background: var(--tg-bot); color: var(--ui-ink-2); font-size: 11.5px; }
.tg-input .ph { color: var(--tg-blue); font-size: 15px; }

/* receiving */
.rx { width: 100%; border-collapse: collapse; font-size: 12px; }
.rx th { text-align: left; font-weight: 500; color: var(--ui-ink-2); font-size: 11px; padding: 0 0 6px; }
.rx th:not(:first-child), .rx td:not(:first-child) { text-align: right; width: 56px; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.rx td { padding: 6px 0; border-top: 1px solid var(--ui-line); }
.rx .short td:last-child { color: var(--warn-fg); font-weight: 500; }
.bo { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 7px 9px; border-radius: 8px; background: var(--warn-bg); color: var(--warn-fg); font-weight: 500; font-size: 12px; }

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 7.5vw, 112px); }
.section .h2 + * { margin-top: clamp(32px, 4vw, 56px); }

/* switcher */
.switcher { padding-top: clamp(56px, 5vw, 80px); }
.seg { position: relative; display: inline-grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 4px; border-radius: 10px; background: var(--tint); border: 1px solid var(--line); }
.seg-ind { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 4); border-radius: 7px; background: var(--surface); box-shadow: 0 1px 2px rgb(10 37 64 / .1), 0 2px 8px -2px rgb(10 37 64 / .12); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform 260ms var(--ease-in-out); }
.seg-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; background: none; border-radius: 7px; cursor: pointer; font-size: 15.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: color 200ms ease, transform 120ms var(--ease-out); touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.seg-btn .ph { font-size: 18px; }
.seg-btn[aria-selected="true"] { color: var(--ink); }
.seg-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .seg-btn:hover { color: var(--ink); } }
.panels { display: grid; margin-top: 40px; }
.panel { grid-area: 1 / 1; display: grid; grid-template-columns: 4fr 8fr; gap: 56px; align-items: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s linear 180ms; }
.panel.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 320ms var(--ease-out) 60ms, transform 420ms var(--ease-out) 60ms, visibility 0s; }
.panel-copy .h3 { max-width: 16em; }
.ticks { margin-top: 22px; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-2); max-width: 46ch; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; background: var(--tint); box-shadow: inset 0 0 0 1px var(--line-2); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: calc(.2em + 5px); width: 6px; height: 4px; border: solid var(--ink); border-width: 0 0 1.6px 1.6px; transform: rotate(-45deg); }
.uses { margin-top: 26px; font-size: 15px; color: var(--ink-2); }
.uses b { color: var(--ink); font-weight: 500; }
.panel-vis { position: relative; height: 540px; }
.photo { position: absolute; left: 0; top: 0; bottom: 0; width: 60%; border-radius: 12px; overflow: hidden; background: var(--tint); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.04) contrast(1.02); }
#p-spa .photo img { object-position: 30% 50%; }
#p-sup .photo img { object-position: 45% 50%; }
.float { position: absolute; right: 0; bottom: 40px; width: 56%; max-width: 440px; padding: 18px; }
.opens li { display: grid; grid-template-columns: 10px 1fr auto; grid-template-rows: auto auto; column-gap: 10px; padding: 10px 8px; border-radius: 8px; align-items: center; }
.opens li + li { margin-top: 2px; }
.opens li.is-on { background: var(--ui-panel); }
.opens .dot-k { grid-row: 1 / 3; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.opens b { font-size: 13px; }
.opens span:not(.dot-k) { grid-column: 2; font-size: 12px; color: var(--ui-ink-2); }
.opens em { grid-column: 3; grid-row: 1 / 3; font-size: 13px; }
.mini-tot { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ui-line); font-size: 12px; color: var(--ui-ink-2); }
.mini-tot b { font: 500 12.5px var(--mono); color: var(--ui-ink); }
.agenda li { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--ui-line); }
.agenda li:first-child { border-top: 0; }
.agenda time { color: var(--ui-ink-2); }
.agenda b { display: block; font-size: 13px; }
.agenda span { font-size: 12px; color: var(--ui-ink-2); }
.agenda .chip { font-family: var(--sans); }
.ledger li { display: grid; grid-template-columns: 1fr auto; padding: 9px 0; border-top: 1px solid var(--ui-line); }
.ledger li:first-child { border-top: 0; }
.ledger b { font-size: 13px; }
.ledger span { font-size: 12px; color: var(--ui-ink-2); }
.ledger em { grid-row: 1 / 3; grid-column: 2; align-self: center; font-size: 13px; }
.ledger em.ok { color: var(--ok-fg); }

@media (max-width: 1023.98px) {
  .panel { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .panel-vis { height: 480px; }
}
@media (max-width: 767.98px) {
  .seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .seg-ind { width: calc((100% - 8px) / 2); height: calc((100% - 8px) / 2); bottom: auto; transform: translate(calc(var(--x, 0) * 100%), calc(var(--y, 0) * 100%)); }
  .seg-btn { padding: 0 8px; font-size: 15px; }
  .panels { margin-top: 28px; }
  .panel-vis { height: auto; }
  .photo { position: relative; width: 100%; aspect-ratio: 4 / 3; }
  .float { position: relative; right: auto; bottom: auto; width: auto; max-width: none; margin: -56px 12px 0; }
}

/* ---------- showcase ---------- */
.showcase { background: var(--tint); border-block: 1px solid var(--line); }
.sc-stage { height: 100svh; display: grid; grid-template-columns: 3.4fr 8.6fr; grid-template-rows: 1fr auto; column-gap: 48px; align-items: center;
  max-width: calc(1280px + 128px); margin-inline: auto; padding: calc(var(--hdr) + 24px) 64px 28px; }
.sc-side { align-self: center; }
.sc-title { font-size: clamp(28px, 1.2vw + 20px, 40px); }
.sc-copy { margin-top: 40px; display: grid; }
.sc-step { grid-area: 1 / 1; }
.sc-time { display: inline-block; font: 500 14px var(--mono); color: var(--accent); letter-spacing: .02em; }
.sc-step h3 { font-size: clamp(22px, .5vw + 18px, 26px); font-weight: 500; letter-spacing: -0.01em; margin-top: 8px; }
.sc-step p { color: var(--ink-2); margin-top: 10px; max-width: 36ch; }
.sc-rail { grid-column: 1 / -1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: 20px; }
.sc-rail i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }

/* laptop by default (desktop tier) */
.device { position: relative; justify-self: center; align-self: center; width: min(100%, calc((100svh - 220px) * 1.6)); aspect-ratio: 16 / 10; padding: 9px 9px 11px; border-radius: 14px;
  background: linear-gradient(180deg, #262c33, #14181d); margin-bottom: 14px;
  box-shadow: 0 1px 0 rgb(255 255 255 / .08) inset, 0 0 0 1px rgb(255 255 255 / .1) inset, 0 0 0 1px rgb(10 37 64 / .25), 0 30px 60px -20px rgb(10 37 64 / .35), 0 12px 24px -12px rgb(10 37 64 / .25); }
.device::before { content: ""; position: absolute; top: 3px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #3a424c; }
.device::after { content: ""; position: absolute; left: -2.5%; right: -2.5%; bottom: -11px; height: 11px; border-radius: 1px 1px 9px 9px;
  background: linear-gradient(to right, transparent 43%, rgb(10 20 30 / .14) 43% 57%, transparent 57%) top / 100% 3px no-repeat, linear-gradient(#eef1f4, #c3cad3 60%, #a7b0bb);
  box-shadow: 0 10px 18px -10px rgb(10 37 64 / .35); }
@media (prefers-color-scheme: dark) { .device::after { background: linear-gradient(to right, transparent 43%, rgb(0 0 0 / .3) 43% 57%, transparent 57%) top / 100% 3px no-repeat, linear-gradient(#4a5563, #2a333e); } }
.device-screens { position: relative; width: 100%; height: 100%; border-radius: 4px; overflow: hidden; background: var(--ui-bg); }
.screen { position: absolute; inset: 0; background: var(--ui-bg); container-type: size; display: flex; flex-direction: column; overflow: hidden; }
.pos-lg { grid-template-columns: 1fr 250px; }
.pos-lg .pos-grid { grid-template-columns: repeat(4, 1fr); }
.sheet { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--ok-bg); color: var(--ok-fg); }
.sheet-ic { grid-row: 1 / 3; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-fg); color: var(--ui-bg); font-size: 18px; }
.sheet b { font-size: 13px; }
.sheet span { grid-column: 2; font-size: 11.5px; }
.sheet em { grid-column: 3; grid-row: 1 / 3; font-size: 13px; font-weight: 500; }
.offline-banner { display: flex; gap: 12px; align-items: flex-start; margin: 16px 16px 0; padding: 14px 16px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-fg); }
.offline-banner .ph { font-size: 22px; }
.offline-banner b { display: block; font-size: 14px; }
.offline-banner span { font-size: 12.5px; }
.queue { margin: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; border: 1px solid var(--ui-line); border-radius: 10px; padding: 12px 14px; min-height: 0; }
.queue-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.queue-h b { font-size: 13.5px; }
.queue li { display: grid; grid-template-columns: 48px 1fr auto 18px; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--ui-line); font-size: 12.5px; }
.queue li .ph { color: var(--warn-fg); font-size: 15px; }
.queue time { color: var(--ui-ink-2); }
.queue-f { margin-top: auto; display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ui-ink-2); padding-top: 8px; }
.web-bar { flex: none; display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 12px; background: var(--ui-panel); border-bottom: 1px solid var(--ui-line); }
.web-dots { display: flex; gap: 5px; }
.web-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--ui-line); box-shadow: inset 0 0 0 1px rgb(10 37 64 / .12); }
.web-url { flex: 1; max-width: 340px; margin-inline: auto; display: flex; align-items: center; justify-content: center; gap: 5px; height: 22px; border-radius: 6px; background: var(--ui-bg); font-size: 11.5px; color: var(--ui-ink-2); }
.book { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; padding: 18px; }
.book-h { margin-bottom: 12px; }
.book-h b { display: block; font-size: 17px; }
.book-h span { font-size: 12px; color: var(--ui-ink-2); }
.svc { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--ui-line); margin-bottom: 8px; }
.svc.is-on { border-color: var(--ui-ink); box-shadow: inset 0 0 0 1px var(--ui-ink); }
.svc b { display: block; font-size: 13px; }
.svc span { font-size: 11.5px; color: var(--ui-ink-2); }
.day-row { display: flex; justify-content: space-between; margin: 14px 0 8px; font-size: 12.5px; }
.day-row span { color: var(--ui-ink-2); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.slots span { display: grid; place-items: center; height: 32px; border-radius: 7px; border: 1px solid var(--ui-line); font: 500 12px var(--mono); }
.slots .off { color: var(--ui-ink-2); text-decoration: line-through; opacity: .55; }
.slots .is-on { background: var(--ui-ink); color: var(--ui-bg); border-color: var(--ui-ink); }
.book-r { border-radius: 10px; background: var(--ui-panel); padding: 14px; display: flex; flex-direction: column; min-height: 0; }
.book-sum-h { font-size: 13.5px; margin-bottom: 8px; }
.book-r dl > div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; font-size: 12.5px; border-top: 1px solid var(--ui-line); }
.book-r dl > div:first-child { border-top: 0; }
.book-r .hl { font-weight: 700; }
.book-r .hl dd { font-size: 13px; font-weight: 500; }
.policy { font-size: 11.5px; color: var(--ui-ink-2); margin-top: 10px; }
.pay { margin-top: auto; display: grid; place-items: center; height: 38px; border-radius: 8px; background: var(--ui-ink); color: var(--ui-bg); font-weight: 700; font-size: 13px; }
.tgd { flex: 1; min-height: 0; display: grid; grid-template-columns: 220px 1fr; }
.tgd-list { border-right: 1px solid var(--ui-line); padding: 10px 8px; background: var(--ui-bg); }
.tgd-search { height: 28px; border-radius: 14px; background: var(--ui-panel); color: var(--ui-ink-2); font-size: 11.5px; display: flex; align-items: center; padding: 0 12px; margin-bottom: 8px; }
.tgd-chat { display: flex; gap: 9px; align-items: center; padding: 8px; border-radius: 9px; }
.tgd-chat .tg-ava { width: 34px; height: 34px; }
.tgd-chat b { display: block; font-size: 12.5px; }
.tgd-chat span:not(.tg-ava) { font-size: 11.5px; color: var(--ui-ink-2); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.tgd-chat.is-on { background: #1f74bb; color: #fff; }
.tgd-chat.is-on span:not(.tg-ava) { color: #fff; }
.tgd-conv { display: flex; flex-direction: column; background: var(--tg-wall); min-width: 0; }
.tgd-head { display: flex; gap: 9px; align-items: center; padding: 8px 14px; background: var(--tg-bot); border-bottom: 1px solid var(--ui-line); }
.tgd-head b { display: block; font-size: 13px; }
.tgd-head span:not(.tg-ava) { font-size: 11px; color: var(--ui-ink-2); }
.scr-tg .tg-body { padding: 14px; gap: 8px; font-size: 13px; }
.rev { min-width: 230px; }
.rev b { font-size: 12.5px; }
.rev-big { font: 500 24px var(--mono); letter-spacing: -0.02em; margin: 2px 0 8px; font-variant-numeric: tabular-nums; }
.rev-grid { display: grid; grid-template-columns: 1fr auto; gap: 3px 16px; font-size: 12px; color: var(--ui-ink-2); }
.rev-grid em { color: var(--ui-ink); }

/* Narrow screens (phone and tablet tiers) reflow inside their frame. */
@container (max-width: 560px) {
  .pos-lg { grid-template-columns: 1fr 200px; }
  .pos-lg .pos-grid { grid-template-columns: repeat(2, 1fr); }
  .tgd { grid-template-columns: 1fr; }
  .tgd-list { display: none; }
}
@container (max-width: 420px) {
  .pos-lg { grid-template-columns: 1fr; }
  .pos-lg .pos-main { display: none; }
  .pos-lg .pos-cart { border-left: 0; padding: 14px; }
  .win-bar .u-dim { display: none; }
  .book { grid-template-columns: 1fr; padding: 12px; gap: 10px; }
  .book .svc:nth-of-type(2), .book .day-row span { display: none; }
  .book-h { margin-bottom: 8px; }
  .policy { display: none; }
  .pay { margin-top: 10px; }
  .queue li { grid-template-columns: 40px 1fr auto; }
  .queue li .ph { display: none; }
  .queue-f span:last-child { display: none; }
  .offline-banner { margin: 12px 12px 0; padding: 12px; }
  .queue { margin: 12px; padding: 10px 12px; }
  .rev { min-width: 0; }
}

/* tablet portrait tier */
@media (max-width: 1023.98px) {
  .sc-stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; padding: calc(var(--hdr) + 16px) var(--gutter) 20px; column-gap: 0; row-gap: 20px; align-items: stretch; }
  .sc-side { display: block; }
  .sc-copy { margin-top: 16px; }
  .device { width: min(100%, calc((100svh - 330px) * 4 / 3)); height: auto; aspect-ratio: 4 / 3; padding: 12px; border-radius: 26px; margin-bottom: 0; min-height: 0; }
  .device::after { display: none; }
  .device-screens { border-radius: 14px; }
}
/* phone tier: a portrait slate */
@media (max-width: 767.98px) {
  .sc-stage { padding: calc(var(--hdr) + 12px) var(--gutter) 16px; row-gap: 14px; }
  .sc-side { display: block; }
  .sc-title { font-size: 26px; }
  .sc-copy { margin-top: 12px; }
  .sc-step h3 { font-size: 19px; margin-top: 2px; }
  .sc-step p { font-size: 15px; margin-top: 4px; }
  .device { width: auto; height: min(100%, calc((100vw - 32px) * 16 / 9)); aspect-ratio: 9 / 16; padding: 8px; border-radius: 28px; }
  .device-screens { border-radius: 21px; }
}
/* No motion: a readable stack of every screen with its caption. */
:is(html:not(.motion), html.no-pin) .sc-stage { height: auto; min-height: 0; display: block; }
:is(html:not(.motion), html.no-pin) .sc-copy { display: block; }
:is(html:not(.motion), html.no-pin) .sc-step { margin-top: 24px; }
:is(html:not(.motion), html.no-pin) .device { display: block; height: auto; width: 100%; max-width: 900px; aspect-ratio: auto; margin: 40px auto 0; background: none; box-shadow: none; padding: 0; }
:is(html:not(.motion), html.no-pin) .device::after { display: none; }
:is(html:not(.motion), html.no-pin) .device-screens { height: auto; background: none; overflow: visible; display: grid; gap: 20px; }
:is(html:not(.motion), html.no-pin) .screen { position: relative; inset: auto; aspect-ratio: 16 / 10; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--sh-1); }
:is(html:not(.motion), html.no-pin) .sc-rail { display: none; }
@media (max-width: 767.98px) { :is(html:not(.motion), html.no-pin) .screen { aspect-ratio: 9 / 15; } }

.after-sc { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 48px; }
.after-note { color: var(--ink-2); }

/* ---------- offer ---------- */
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.path { padding: 40px 48px 8px 0; }
.path + .path { padding-left: 48px; border-left: 1px solid var(--line); }
.path .h3 { margin-top: 0; }
.path > p { margin-top: 12px; color: var(--ink-2); max-width: 46ch; }
.cost { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cost > div { background: var(--tint); padding: 22px 24px; }
.cost b { display: block; font-weight: 500; }
.cost span { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 767.98px) {
  .offer-grid { grid-template-columns: 1fr; }
  .path, .path + .path { padding: 32px 0 0; border-left: 0; }
  .path + .path { margin-top: 32px; border-top: 1px solid var(--line); }
  .cost { grid-template-columns: 1fr; }
}

/* ---------- capabilities bento ---------- */
.caps { background: var(--tint); }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(280px, auto); gap: 16px; }
.cell { position: relative; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 20px; overflow: hidden; }
.cell-t h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.cell-t p { margin-top: 6px; color: var(--ink-2); font-size: 15.5px; max-width: 38ch; }
.frag { margin-top: auto; }
.c-pos { grid-column: 1 / span 2; grid-row: 1 / span 2; background: linear-gradient(180deg, var(--surface), var(--tint)); }
.c-book { grid-column: 3 / span 2; }
.c-tg { grid-column: 3; background: #0a2540; color: #fff; border-color: transparent; }
.c-tg .cell-t p { color: #b9c7d6; }
.c-many { grid-column: 4; }
.c-stock { grid-column: 1 / span 2; }
.c-screens { grid-column: 3 / span 2; }
@media (prefers-color-scheme: dark) { .c-tg { background: #14304f; } }
/* receipt */
.frag-receipt { position: relative; display: flex; justify-content: center; padding-top: 8px; }
.rc { width: min(330px, 100%); background: var(--ui-bg); border-radius: 4px 4px 0 0; padding: 20px 22px 26px; box-shadow: var(--sh-2); font-size: 12.5px;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, radial-gradient(6px at 50% 100%, transparent 98%, #000) bottom / 14px 8px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, radial-gradient(6px at 50% 100%, transparent 98%, #000) bottom / 14px 8px repeat-x; }
.rc-h { text-align: center; margin-bottom: 14px; }
.rc-mono { width: 24px; height: 24px; margin: 0 auto 8px; --mono-bg: var(--ui-ink); --mono-fg: var(--ui-bg); }
.rc-h b { display: block; font-size: 14px; }
.rc-h span { font-size: 11px; color: var(--ui-ink-2); }
.rc li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.rc li.sep { border-top: 1px dashed var(--ui-line); margin-top: 6px; padding-top: 8px; }
.rc li.big { font-weight: 700; font-size: 14px; padding-top: 8px; }
.rc li.big em { font-size: 14px; font-weight: 500; }
.rc li.small { font-size: 11.5px; color: var(--ui-ink-2); }
.rc-f { margin-top: 12px; text-align: center; font: 400 10.5px/1.5 var(--mono); color: var(--ui-ink-2); }
/* slots */
.frag-slots { display: grid; gap: 6px; }
.sg-h, .sg { display: grid; grid-template-columns: 44px repeat(3, 1fr); gap: 6px; align-items: center; }
.sg-h b { font-size: 12px; }
.sg time { color: var(--ui-ink-2); font-size: 11px; }
.sg i { min-height: 44px; border-radius: 6px; background: var(--ui-panel); box-shadow: inset 0 0 0 1px var(--ui-line); font-style: normal; font-size: 11px; line-height: 1.3; padding: 5px 7px; color: color-mix(in srgb, var(--ui-ink) 75%, transparent); overflow: hidden; }
.sg i b { display: block; font-size: 11.5px; color: var(--ui-ink); }
.sg i.free { display: grid; place-items: center; color: var(--ui-ink-2); box-shadow: inset 0 0 0 1px var(--ui-line); background: transparent; border: 1px dashed var(--ui-line); }
.sg i.f { box-shadow: none; }
.sg i.t { background: color-mix(in srgb, var(--k-teal) 28%, var(--ui-bg)); }
.sg i.v { background: color-mix(in srgb, var(--k-violet) 26%, var(--ui-bg)); }
.sg i.a { background: color-mix(in srgb, var(--k-amber) 34%, var(--ui-bg)); }
.sg i.r { background: color-mix(in srgb, var(--k-rose) 26%, var(--ui-bg)); }
.sg i.c { background: color-mix(in srgb, var(--accent-hi) 30%, var(--ui-bg)); }
/* telegram fragment */
.frag-tg { display: flex; flex-direction: column; gap: 6px; --tg-me: #2b5278; --tg-bot: #1c3148; color: #fff; font-size: 13px; }
.frag-tg .msg { box-shadow: none; }
/* tree */
.frag-tree { font-size: 12.5px; display: grid; gap: 6px; }
.frag-tree > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; background: var(--ui-panel); }
.frag-tree span { color: var(--ui-ink-2); font-size: 11.5px; }
.tr0 { font-weight: 700; }
.tr1 { margin-left: 14px; }
.tr2 { margin-left: 28px; background: var(--ui-bg) !important; box-shadow: inset 0 0 0 1px var(--ui-line); }
.tr2 .chip { font-size: 10.5px; }
/* backorder rows */
.frag-bo { display: grid; gap: 8px; }
.bo-row { display: grid; grid-template-columns: 1.6fr 1fr .7fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 9px; background: var(--ui-panel); font-size: 12.5px; }
.bo-row span:nth-child(2), .bo-row span:nth-child(3) { color: var(--ui-ink-2); font-family: var(--mono); font-size: 12px; }
.bo-row b { font: 500 12.5px var(--mono); }
/* devices */
.frag-dev { display: grid; grid-template-columns: 1.35fr 1.1fr .8fr; gap: 14px; align-items: end; }
.dv { display: grid; gap: 6px; min-width: 0; }
.dv-l { font: 500 12px var(--sans); color: var(--ink-2); }
.dv-s { display: grid; gap: 3px; align-content: start; padding: 10px; border-radius: 10px; background: var(--ui-bg); box-shadow: 0 0 0 6px #171c22, 0 0 0 7px rgb(255 255 255 / .08), var(--sh-1); margin: 7px; font-size: 11.5px; min-width: 0; }
.dv-s b { font-size: 12px; }
.dv-s span { color: var(--ui-ink-2); }
.dv-s em { font-size: 13px; font-weight: 500; }
.dv-s .chip { justify-self: start; font-style: normal; margin-top: 3px; }
.dv-pc .dv-s { min-height: 104px; border-radius: 4px; }
.dv-tab .dv-s { min-height: 112px; border-radius: 8px; }
.dv-ph .dv-s { min-height: 124px; border-radius: 14px; text-align: center; justify-items: center; }
.dv-me { display: inline-block; padding: 2px 7px; border-radius: 9px; background: var(--tg-me); color: var(--ui-ink) !important; font-size: 11px; }
@media (max-width: 1023.98px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-pos { grid-column: 1 / -1; grid-row: auto; }
  .c-book, .c-stock, .c-screens { grid-column: 1 / -1; }
  .c-tg { grid-column: 1; }
  .c-many { grid-column: 2; }
  .frag-receipt { flex-direction: column; align-items: center; }
}
@media (max-width: 767.98px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento > .cell { grid-column: 1; }
  .bo-row { grid-template-columns: 1fr auto; }
  .bo-row span:nth-child(2), .bo-row span:nth-child(3) { display: none; }
}

/* ---------- trust ---------- */
.trust-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; }
.facts dt { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.facts dt .ph { font-size: 20px; color: var(--ink-2); }
.facts dd { margin-top: 6px; color: var(--ink-2); font-size: 16px; max-width: 38ch; }
.trust-vis { position: relative; }
.approve { padding: 22px; max-width: 440px; margin-left: auto; }
.dev-row { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 10px; background: var(--ui-panel); }
.dev-row .ph { font-size: 26px; color: var(--ui-ink-2); }
.dev-row b { display: block; font: 500 13.5px var(--mono); }
.dev-row span { font-size: 12px; color: var(--ui-ink-2); }
.dev-meta { margin-top: 12px; }
.dev-meta > div { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--ui-line); font-size: 12.5px; }
.dev-meta > div:first-child { border-top: 0; }
.dev-meta dt { color: var(--ui-ink-2); }
.dev-meta dd { font-family: var(--sans); font-size: 12.5px; }
.dev-act { display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px; margin-top: 14px; }
.dev-act span { display: grid; place-items: center; height: 38px; border-radius: 7px; font-weight: 700; font-size: 13px; }
.b-ghost { box-shadow: inset 0 0 0 1px var(--ui-line); }
.b-solid { background: var(--ui-ink); color: var(--ui-bg); }
.trust-cta { margin-top: 56px; }
@media (max-width: 1023.98px) {
  .trust-grid { grid-template-columns: 1fr; gap: 48px; }
  .approve { margin: 0; }
}
@media (max-width: 767.98px) { .facts { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- process ---------- */
.process { background: var(--tint); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 36px; }
.steps-line { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.steps-line i { display: block; height: 100%; background: var(--accent-hi); transform-origin: 0 50%; }
.motion .steps-line i { transform: scaleX(0); }
.step { position: relative; }
.step::before { content: ""; position: absolute; top: -41px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--ink); }
.step-dur { font: 500 13px var(--mono); color: var(--ink-2); }
.step h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.01em; margin-top: 8px; }
.step p { color: var(--ink-2); margin-top: 8px; font-size: 16px; }
.step .you { color: var(--ink); margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.step .you b { font-weight: 500; }
@media (max-width: 1023.98px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; padding-top: 0; }
  .steps-line, .step::before { display: none; }
}
@media (max-width: 767.98px) {
  .steps { grid-template-columns: 1fr; padding-top: 0; padding-left: 28px; gap: 36px; }
  .steps-line, .step::before { display: block; }
  .steps-line { left: 5px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
  .steps-line i { transform-origin: 50% 0; height: 100%; }
  .step::before { top: 4px; left: -28px; }
}

/* ---------- founder ---------- */
.founder-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 72px; align-items: center; }
.portrait { aspect-ratio: 4 / 5; width: 100%; max-width: 300px; justify-self: end; min-width: 0; border-radius: 12px; overflow: hidden; background: var(--tint); border: 1px solid var(--line); }
.portrait-fallback { width: 100%; height: 100%; display: grid; place-items: center; background:
  radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--accent-hi) 9%, transparent), transparent 60%), var(--tint); }
.portrait-fallback svg { width: 26%; height: auto; --mono-bg: var(--ink); --mono-fg: var(--bg); }
.note { margin-top: 28px; font-size: clamp(18px, .4vw + 16px, 21px); line-height: 1.6; max-width: 56ch; }
.sign { margin-top: 20px; font-weight: 500; }
.founder-facts { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--ink-2); font-size: 15.5px; }
.founder-facts li { display: inline-flex; align-items: center; gap: 8px; }
.founder-facts .ph { font-size: 18px; }
@media (max-width: 1023.98px) { .founder-grid { grid-template-columns: 1fr 1.4fr; gap: 40px; } }
@media (max-width: 767.98px) { .founder-grid { grid-template-columns: 1fr; gap: 28px; } .portrait { max-width: 120px; justify-self: start; } }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; align-items: start; }
.faq .h2 + * { margin-top: 0; }
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); interpolate-size: allow-keywords; }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 0; font-size: 18px; font-weight: 500; touch-action: manipulation; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor 0 0) center / 14px 1.6px no-repeat, linear-gradient(currentColor 0 0) center / 1.6px 14px no-repeat; transition: transform 220ms var(--ease-out); color: var(--ink-2); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details::details-content { block-size: 0; overflow: clip; transition: block-size 220ms var(--ease-out), content-visibility 220ms allow-discrete; }
.qa details[open]::details-content { block-size: auto; }
.qa p { padding: 0 40px 22px 0; color: var(--ink-2); max-width: 62ch; }
@media (hover: hover) and (pointer: fine) { .qa summary:hover::after { color: var(--ink); } }
@media (max-width: 1023.98px) { .faq-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (prefers-reduced-motion: reduce) { .qa details::details-content { transition: none; } }

/* ---------- contact ---------- */
.contact { background: var(--tint); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.channels { margin-top: 32px; display: grid; gap: 10px; max-width: 380px; }
.channels a { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color 200ms ease; }
.channels .ph { font-size: 22px; color: var(--ink-2); }
.channels b { display: block; font-weight: 500; font-size: 15px; }
.channels span { color: var(--ink-2); font-size: 15px; }
@media (hover: hover) and (pointer: fine) { .channels a:hover { border-color: var(--line-2); } }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: clamp(20px, 3vw, 36px); box-shadow: var(--sh-1); }
.form { display: grid; gap: 22px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-size: 15px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; font-size: 16px; min-height: 48px; padding: 11px 14px; border-radius: 6px;
  background: var(--bg); border: 1px solid var(--line-2); color: var(--ink); caret-color: var(--accent);
  transition: border-color 200ms ease, box-shadow 200ms ease; appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 132px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-hi) 30%, transparent); }
.field [aria-invalid="true"] { border-color: var(--accent); }
.select { position: relative; }
.select .ph { position: absolute; right: 14px; top: 50%; translate: 0 -50%; pointer-events: none; color: var(--ink-2); }
.help { font-size: 14px; color: var(--ink-2); }
.err { font-size: 14px; color: var(--accent); font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { font-size: 15px; color: var(--ink-2); }
.form-status.is-err { color: var(--accent); font-weight: 500; }
.success { text-align: left; padding: 12px 0; }
.success .ph { font-size: 36px; color: var(--ok-fg); }
.success h3 { font-size: 26px; font-weight: 500; letter-spacing: -0.01em; margin-top: 12px; }
.success p { color: var(--ink-2); margin-top: 8px; }
.success-alt a { color: var(--accent); text-underline-offset: 4px; }
.success:focus { outline: none; }
@media (max-width: 1023.98px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-card { max-width: 640px; }
  .row-2 { grid-template-columns: 1fr; }
}
@media (min-width: 1024px) and (max-width: 1100px) { .row-2 { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding-top: 72px; padding-bottom: max(28px, env(safe-area-inset-bottom)); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; }
.wordmark-lg { width: 132px; color: var(--ink); --wm-dot: var(--accent-hi); }
.foot-brand p { margin-top: 18px; color: var(--ink-2); font-size: 15.5px; max-width: 34ch; }
.foot-brand .foot-loc { margin-top: 10px; color: var(--ink); }
.site-footer .foot-h { margin: 0 0 4px; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 10px; }
.site-footer ul a, .foot-hours { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); font-size: 15px; text-decoration: none; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .site-footer ul a:hover { color: var(--ink); } }
.site-footer a.staff { font-size: 13.5px; margin-top: 8px; }
.foot-bar { position: relative; margin-top: 56px; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--ink-2); font-size: 14px; }
@media (max-width: 1023.98px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 479.98px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- reveal states (only when motion is allowed) ---------- */
.motion [data-split] { visibility: hidden; }
[data-split] > div { padding-bottom: .14em; margin-bottom: -.14em; }
.motion [data-hero-sub], .motion .cl > * { opacity: 0; }
[id] { scroll-margin-top: 72px; }

.foot-bar::before { content: ""; position: absolute; top: 0; left: max(var(--gutter), env(safe-area-inset-left)); right: max(var(--gutter), env(safe-area-inset-right)); height: 1px; background: var(--line); }
.contact .lead-2 { margin-top: 16px; }
.to-founder { margin-top: 28px; display: flex; align-items: center; gap: 12px; max-width: 380px; color: var(--ink-2); font-size: 15px; }
.to-founder svg { width: 40px; height: 40px; flex: none; --mono-bg: var(--ink); --mono-fg: var(--bg); }
/* dark-theme twin of the cart, to show the POS's two themes */
.mini-dark { position: absolute; right: 4px; top: 18px; width: 200px; padding: 12px; border-radius: 10px; box-shadow: var(--sh-2);
  --ui-bg: #0f1f35; --ui-panel: #142740; --ui-line: rgb(255 255 255 / .08); --ui-ink: #e8eef5; --ui-ink-2: #97a8bc; --ok-bg: rgb(44 194 170 / .16); --ok-fg: #6fe0c9;
  background: var(--ui-bg); color: var(--ui-ink); font-size: 12px; transform: rotate(2deg); }
.mini-dark .cart-lines li { font-size: 11px; }
.mini-dark .charge { height: 30px; margin-top: 8px; }
.frag-receipt .rc { position: relative; z-index: 1; transform: rotate(-1.5deg); }
@media (max-width: 1023.98px) { .mini-dark { display: none; } }

.cart-cust { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; padding: 7px 9px; border-radius: 8px; background: var(--ui-panel); font-size: 11.5px; color: var(--ui-ink-2); }
.cart-cust b { color: var(--ui-ink); font-size: 11.5px; }

/* ---------- round 3 additions ---------- */
.ex-note { margin-top: 16px; font-size: 13px; color: var(--ink-3); }
.switcher .ex-note, .caps .ex-note { margin-top: 20px; }
.trust-vis .ex-note { max-width: 440px; margin-left: auto; }
@media (max-width: 1023.98px) { .trust-vis .ex-note { margin-left: 0; } }
.sc-ex { margin-top: 28px; }
.prod-strip { margin-top: 24px; display: grid; gap: 8px; max-width: 460px; }
.prod-strip li { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.prod-strip .ps-ic { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; background: var(--tint); color: var(--ink-2); font-size: 20px; }
.prod-strip b { font-size: 15px; font-weight: 500; }
.prod-strip span:not(.ps-ic) { font: 400 13px var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.custom-ex { margin-top: 24px; max-width: 460px; box-shadow: var(--sh-1); }
.custom-ex .rx th:not(:first-child), .custom-ex .rx td:not(:first-child) { width: 72px; }
/* in-screen story beats inside the showcase */
.pay-slot { position: relative; height: 54px; margin-top: 12px; overflow: hidden; border-radius: 10px; }
.pay-slot-lg { height: 40px; margin-top: auto; border-radius: 8px; }
.pay-row { position: absolute; inset: 0; }
.pay-slot > .pay-row:not(:last-child) { visibility: hidden; }
.pay-charge, .pay-wait { display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; font-weight: 700; font-size: 13px; }
.pay-charge { background: var(--ui-ink); color: var(--ui-bg); }
.pay-wait { background: var(--ui-panel); color: var(--ui-ink); box-shadow: inset 0 0 0 1px var(--ui-line); }
.pay-charge .ph, .pay-wait .ph { font-size: 18px; }
.pay-slot-lg .pay { margin: 0; height: 100%; }
.pay-done { display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 8px; background: var(--ok-bg); color: var(--ok-fg); font-weight: 700; font-size: 13px; }
.tg-body.tg-top { justify-content: flex-start; }
.tg-day { align-self: center; padding: 2px 10px; border-radius: 10px; background: rgb(10 37 64 / .1); color: var(--ui-ink); font-size: 11px; font-weight: 500; }
@media (prefers-color-scheme: dark) { .tg-day { background: rgb(255 255 255 / .1); } }
@media (max-width: 767.98px) {
  .frag-dev { grid-template-columns: 1fr 1fr; }
  .dv-ph { grid-column: 1 / -1; justify-self: center; width: 60%; }
  .dv-ph .dv-s { min-height: 0; }
}

/* ---------- hero product film ---------- */
.toast-stack { display: grid; }
.toast-stack > .toast { grid-area: 1 / 1; }
.toast-stack > .toast:not(:first-child) { visibility: hidden; }
.toast-ic.ic-amber { background: var(--warn-bg); color: var(--warn-fg); }
.toast-ic.ic-ink { background: var(--ui-panel); color: var(--ui-ink); }
.rev-num { font: 500 18px var(--mono) !important; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.slots-mini { display: flex; gap: 4px; margin-top: 6px; }
.slots-mini i { position: relative; flex: 1; min-width: 0; display: grid; place-items: center; height: 20px; border-radius: 5px; overflow: hidden; font: 500 10.5px var(--mono); font-style: normal; color: var(--ui-ink-2); box-shadow: inset 0 0 0 1px var(--ui-line); padding: 0 6px; }
.slots-mini .fill { color: var(--ui-ink); }
.slots-mini .fill s { position: absolute; inset: 0; background: color-mix(in srgb, var(--k-teal) 26%, var(--ui-bg)); transform-origin: 0 50%; text-decoration: none; }
.slots-mini .fill u { position: relative; text-decoration: none; }
.pay-slot-sm { height: 36px; margin-top: 10px; border-radius: 7px; }
.pay-slot-sm .pay-charge, .pay-slot-sm .pay-wait, .pay-ok { border-radius: 7px; font-size: 12px; }
.pay-ok { display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; background: var(--ok-bg); color: var(--ok-fg); }
.pay-slot-sm .ph { font-size: 16px; }
.cart-lines li { min-height: 29px; }
.film-bar { position: absolute; left: calc(70px * var(--s)); right: 0; top: calc(100% + 8px); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.film-bar .ex-note { margin: 0; }
.film-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 500; cursor: pointer; transition: color 200ms ease, border-color 200ms ease, transform 120ms var(--ease-out); touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.film-toggle:active { transform: scale(0.97); }
.film-toggle .ph { font-size: 16px; }
@media (hover: hover) and (pointer: fine) { .film-toggle:hover { color: var(--ink); border-color: var(--line-2); } }
html:not(.motion) .film-toggle { display: none; }
@media (max-width: 767.98px) {
  .film-bar { left: 0; }
  .film-toggle { padding: 0 12px; }
}

/* ---------- made-to-measure proof ---------- */
.sec-lead { margin-top: 14px; color: var(--ink-2); max-width: 60ch; font-size: clamp(17px, .3vw + 15.5px, 19px); }
.section .h2 + .sec-lead { margin-top: 14px; }
.sec-lead + * { margin-top: clamp(28px, 3.5vw, 48px); }
.oc { border-radius: 12px; border: 1px solid var(--line); background: var(--surface); padding: 26px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.oc h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; text-wrap: balance; }
.oc-ui { margin-top: auto; box-shadow: var(--sh-1); }

/* ---------- case files ---------- */
.cases { background: var(--tint); border-top: 1px solid var(--line); }
.case { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; padding-block: 56px; border-top: 1px solid var(--line-2); }
.case:first-child { border-top: 0; padding-top: 0; }
.case-meta { position: sticky; top: calc(var(--hdr) + 28px); align-self: start; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.case-no { font: 500 44px/1 var(--mono); color: var(--accent); letter-spacing: -0.03em; }
.case-sector { font-weight: 500; font-size: 16px; line-height: 1.35; }
.case-meta .chip { font-size: 12px; }
.case-h { font-size: clamp(24px, 1.1vw + 16px, 32px); font-weight: 500; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; max-width: 26ch; }
.case-k { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 12px; }
.case-cols { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; margin-top: 28px; }
.case-cols p { color: var(--ink-2); font-size: 16.5px; max-width: 50ch; }
.case-cols .ticks { margin-top: 0; gap: 12px; }
.case-cols .ticks li { font-size: 16px; max-width: 58ch; }
.case-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 48px; align-items: center; margin-top: 36px; }
.case-gain { padding: 20px 22px; border-radius: 12px; background: color-mix(in srgb, var(--accent-hi) 6%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent-hi) 22%, var(--line)); }
.case-gain .case-k span { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--surface); text-transform: none; letter-spacing: 0; font-family: var(--sans); }
.case-gain p { color: var(--ink-2); font-size: 16px; max-width: 60ch; }
.case-gain b { color: var(--ink); font-weight: 500; }
.case-ui { box-shadow: var(--sh-1); }
.cases .oc-rules { margin-top: 24px; }
@media (max-width: 1023.98px) {
  .case { grid-template-columns: 1fr; gap: 20px; padding-block: 44px; }
  .case-meta { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
  .case-no { font-size: 30px; }
  .case-foot { grid-template-columns: 1fr; gap: 24px; }
  .case-ui { max-width: 440px; }
}
@media (max-width: 767.98px) {
  .case-cols { grid-template-columns: 1fr; gap: 28px; }
  .oc { padding: 20px; }
}

/* ---------- bad day ---------- */
.badday { border-top: 1px solid var(--line); }
.bad-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
.bad-list li { display: grid; align-content: start; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; padding: 26px 0; border-top: 1px solid var(--line); }
.bad-n { grid-row: 1 / 3; font: 500 13px/1.75 var(--mono); color: var(--accent); }
.bad-list h3 { font-size: 18px; font-weight: 500; line-height: 1.35; text-wrap: balance; }
.bad-list p { margin-top: 6px; color: var(--ink-2); font-size: 16px; max-width: 50ch; }
@media (max-width: 767.98px) { .bad-list { grid-template-columns: 1fr; } .bad-list li { padding: 20px 0; } }
.lots li { display: grid; grid-template-columns: 16px 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 8px; }
.lots li + li { margin-top: 4px; }
.lots li.is-on { background: var(--ui-panel); box-shadow: inset 0 0 0 1px var(--ui-ink); }
.lot-r { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ui-ink-2); }
.lots li.is-on .lot-r { box-shadow: inset 0 0 0 4px var(--ui-ink); }
.lots b { display: block; font-size: 13px; }
.lots span:not(.lot-r) { font-size: 12px; color: var(--ui-ink-2); }
@media (max-width: 767.98px) {
  .seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seg-btn { min-width: 0; white-space: normal; line-height: 1.2; min-height: 52px; padding: 6px 8px; font-size: 14.5px; text-align: center; }
  .seg-btn .ph { flex: none; }
}
.idea-line { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--tint); border: 1px solid var(--line); color: var(--ink); font-size: 16px; max-width: 52ch; }
.idea-line .ph { font-size: 20px; color: var(--accent); flex: none; margin-top: 1px; }
.upd { margin-top: auto; display: grid; gap: 6px; padding-top: 8px; }
.upd-row { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--ui-line); background: var(--ui-bg); font-size: 12px; font-weight: 500; }
.upd-row .ph { font-size: 16px; color: var(--ui-ink-2); }
.upd-row + .upd-row .ph { color: var(--ok-fg); }
.upd-row .chip { font-style: normal; font-size: 10.5px; }
.hero .h1 { max-width: none; text-wrap: wrap; }

.film-toggle { white-space: nowrap; flex: none; }
@media (max-width: 767.98px) { .hero .h1 { max-width: none; } }

/* Settings card: the examples are owner-changed settings, not fixed code */
.oc-rules { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 28px; align-items: center; }
.rules-t { display: flex; flex-direction: column; gap: 10px; }
.rules-t p { color: var(--ink-2); font-size: 16px; max-width: 58ch; }
.rules-ui { margin-top: 0; }
.rules > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--ui-line, var(--line)); }
.rules dt { color: var(--ui-ink-2); }
.rules dd { font-weight: 500; white-space: nowrap; padding: 1px 10px; border-radius: 999px; background: var(--ui-panel); }
@media (max-width: 1023.98px) { .oc-rules { grid-template-columns: 1fr; } }

/* =====================================================================
   Maison: the luxury layer that matches the Marcellus wordmark.
   Serif display (Cormorant Garamond), tracked capitals for labels (Marcellus).
   Satoshi stays for reading text and product screens.
   ===================================================================== */
.h1, .h2, .h3, .case-h, .oc h3, .bad-list h3, .cell-t h3, .facts dt, .sc-step h3 { font-family: var(--serif); font-weight: 500; }
.h1 { font-size: clamp(44px, 3.6vw + 22px, 84px); line-height: 1; letter-spacing: -0.012em; }
.h2 { font-size: clamp(34px, 2vw + 24px, 58px); line-height: 1.04; letter-spacing: -0.01em; }
.h2 .tone, .h1 .tone { font-style: italic; color: var(--ink-2); }
.h3, .case-h, .oc h3, .cell-t h3 { font-size: clamp(24px, .8vw + 18px, 30px); line-height: 1.12; letter-spacing: 0; }
.bad-list h3, .sc-step h3 { font-size: 22px; line-height: 1.2; letter-spacing: 0; }
.facts dt { font-size: 21px; }
.case-h { font-size: clamp(28px, 1.3vw + 18px, 38px); }

.case-k, .sc-time, .bad-n { font-family: var(--caps); letter-spacing: .18em; text-transform: uppercase; }
.case-k { font-size: 11.5px; font-weight: 400; }
.sc-time { font-size: 13px; color: var(--accent); }
.bad-n { font-size: 14px; line-height: 1.9; }
.case-no { font: 400 40px/1 var(--caps); color: var(--accent); letter-spacing: .06em; }

.btn { border-radius: 2px; font: 400 13.5px/1 var(--caps); letter-spacing: .16em; text-transform: uppercase; padding: 0 24px; }
.btn-sm { font-size: 12.5px; padding: 0 16px; letter-spacing: .14em; }
.nav a { font-size: 16px; border-radius: 2px; }
.oc, .case-gain, .idea-line { border-radius: 4px; }
.case-gain { background: color-mix(in srgb, var(--accent-hi) 10%, var(--surface)); border-color: color-mix(in srgb, var(--accent-hi) 35%, var(--line)); }

/* Wordmark: OZ + mirrored Z + VI in Marcellus capitals; the large cut carries the tailor's ruler. */
.wm { display: block; height: 19px; width: auto; aspect-ratio: 390 / 82; color: var(--ink); }
.wm-lg { display: inline-block; color: var(--ink); }
.wm-lg .wm { height: 30px; }
.wm-ruler { display: block; height: 8px; margin-top: 10px; opacity: .5;
  background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 9px) bottom / 100% 4px no-repeat,
              repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 45px) bottom / 100% 8px no-repeat; }
.brand { text-decoration: none; }
.portrait { border-radius: 2px; }
.portrait-fallback { background: radial-gradient(110% 90% at 70% 0%, #1d2d48, #0e1726 60%, #0a111d); }
.mono-big { width: 62%; height: auto; aspect-ratio: 1; overflow: visible; --mono-bg: transparent; }

/* ---------- chapter labels: N° + a drawn tailor's ruler + the chapter name ---------- */
.chapter { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; font: 400 12px/1 var(--caps); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); }
.chapter-n { color: var(--accent); letter-spacing: .14em; }
.chapter-rule { width: 64px; height: 7px; flex: none; transform-origin: 0 50%; color: var(--accent-hi);
  background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 8px) bottom / 100% 4px no-repeat,
              linear-gradient(currentColor, currentColor) bottom / 100% 1px no-repeat,
              repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 32px) bottom / 100% 7px no-repeat; }
.chapter + .h2 { margin-top: 0; }
.manifesto .chapter, .night .chapter { color: rgb(239 233 220 / .6); }

/* ---------- manifesto: one sentence on night navy, read slowly ---------- */
.manifesto { position: relative; padding-block: clamp(96px, 11vw, 168px); color: #efe9dc; text-align: center; overflow: hidden;
  background: radial-gradient(70% 90% at 50% 0%, #1d2d48, #0e1726 62%, #0a111d); }
.manifesto::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(40% 60% at 85% 100%, rgb(201 173 116 / .16), transparent 70%), radial-gradient(35% 50% at 10% 90%, rgb(201 173 116 / .1), transparent 70%); }
.mf-rule { display: block; width: min(320px, 70%); height: 9px; margin: 0 auto 44px; transform-origin: 50% 50%; color: #c9ad74; opacity: .7;
  background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 9px) bottom / 100% 4px no-repeat,
              linear-gradient(currentColor, currentColor) bottom / 100% 1px no-repeat,
              repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 45px) bottom / 100% 9px no-repeat; }
.mf-text { position: relative; max-width: 26ch; margin: 0 auto; font: italic 500 clamp(30px, 2.6vw + 16px, 56px)/1.18 var(--serif); letter-spacing: -0.005em; text-wrap: balance; }
.mf-sign { position: relative; display: inline-flex; align-items: center; gap: 12px; margin-top: 44px; font: 400 11.5px/1 var(--caps); letter-spacing: .28em; text-transform: uppercase; color: rgb(239 233 220 / .62); }
.mf-mono { width: 26px; height: 26px; --mono-bg: rgb(255 255 255 / .06); --mono-fg: #dcc394; }
@media (prefers-color-scheme: dark) { .manifesto { background: radial-gradient(70% 90% at 50% 0%, #1a2840, #0f1a2c 62%, #0b1220); border-block: 1px solid rgb(255 255 255 / .06); } }

/* ---------- product screens sit on the page like objects, not stickers ---------- */
.chip { letter-spacing: .01em; }
.portrait-fallback .mono-big { width: 78%; height: auto; aspect-ratio: auto; }
/* Photographs graded to the house palette: a little less saturation, a little warmth, like printed stock */
.photo img { filter: saturate(.6) sepia(.22) contrast(1.03) brightness(1.02); }
@media (prefers-color-scheme: dark) { .photo img { filter: saturate(.68) sepia(.12) brightness(.9) contrast(1.05); } }

/* manifesto object: the 3D monogram turning slowly above the sentence */
.mf-obj { position: relative; width: min(340px, 72%); aspect-ratio: 2 / 1; margin: -24px auto 18px; }
.mf-obj > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.mf-live { opacity: 0; transition: opacity 1.2s ease; }
.mf-live.is-live { opacity: 1; }
.mf-live.is-live + .mf-still, .mf-obj:has(.is-live) .mf-still { opacity: 0; transition: opacity 1.2s ease; }

/* =====================================================================
   Maison polish for the remaining sections: fewer boxes and icons,
   hairlines instead of fills, serif for anything a person reads as a title.
   ===================================================================== */

/* business picker: a quiet tab row with a drawn underline instead of a pill */
.seg { border-radius: 2px; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); padding: 0; }
.seg-ind { top: auto; bottom: -1px; height: 2px; border-radius: 0; background: var(--accent-hi); box-shadow: none; left: 0; width: calc(100% / 4); }
.seg-btn { font-size: 16px; color: var(--ink-3); min-height: 52px; }
.seg-btn .ph { font-size: 17px; color: var(--accent-hi); }
.panel .photo { border-radius: 2px; }
.uses { color: var(--ink-3); }
@media (max-width: 767.98px) {
  .seg { border-bottom: 0; gap: 0; }
  .seg-btn { border-bottom: 1px solid var(--line-2); }
  .seg-ind { display: none; }
  .seg-btn[aria-selected="true"] { border-bottom: 2px solid var(--accent-hi); }
}

/* after the Saturday story: a centred invitation, framed by the ruler */
.after-sc { justify-content: center; flex-direction: column; gap: 14px; padding-top: 72px; text-align: center; }
.after-sc::before { content: ""; width: 160px; height: 7px; margin-bottom: 18px; color: var(--accent-hi); opacity: .7;
  background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 8px) bottom / 100% 4px no-repeat,
              linear-gradient(currentColor, currentColor) bottom / 100% 1px no-repeat,
              repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 40px) bottom / 100% 7px no-repeat; }
.after-note { font: italic 500 21px/1.4 var(--serif); color: var(--ink-2); }

/* offer: the idea becomes a pull quote, the cost strip becomes three ruled columns */
.idea-line { background: none; border: 0; border-top: 1px solid var(--accent-hi); border-radius: 0; padding: 16px 0 0; margin-top: 22px;
  font: italic 500 21px/1.4 var(--serif); color: var(--ink); max-width: 30ch; }
.idea-line .ph { display: none; }
.path h3 { font-size: clamp(26px, 1vw + 18px, 32px); }
.custom-ex, .prod-strip li { border-radius: 4px; }
.prod-strip .ps-ic { border-radius: 2px; color: var(--accent); background: color-mix(in srgb, var(--accent-hi) 14%, var(--surface)); }
.cost { background: none; border: 0; border-block: 1px solid var(--line-2); border-radius: 0; gap: 0; }
.cost > div { background: none; padding: 26px 28px 26px 0; }
.cost > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.cost b { font: 500 23px/1.2 var(--serif); }
.cost span { display: block; margin-top: 4px; }
@media (max-width: 1023.98px) { .cost > div, .cost > div + div { padding: 20px 0; border-left: 0; } .cost > div + div { border-top: 1px solid var(--line); } }

/* systems bento: softer corners, the dark cell in night navy, devices in fine frames */
.cell { border-radius: 4px; }
.c-tg { background: radial-gradient(120% 90% at 30% 0%, #1d2d48, #0e1726 65%); }
.c-tg .cell-t p { color: rgb(239 233 220 / .72); }
.frag-tg { --tg-me: #3a3222; --tg-bot: rgb(255 255 255 / .07); color: #efe9dc; }
.frag-tg .msg.me { color: #f1e3bd; }
.dv-s { box-shadow: 0 0 0 3px #1a2130, 0 0 0 4px rgb(255 255 255 / .06), var(--sh-1); }
.dv-l { font: 400 11px var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }

/* care: no icons, each promise sits under a fine rule */
.facts dt .ph { display: none; }
.facts > div { padding-top: 18px; border-top: 1px solid var(--line-2); }
.facts dt { font-size: 23px; line-height: 1.2; }
.approve { border-radius: 4px; }

/* process: chapter-style steps on a hairline, small champagne beads */
.steps-line { height: 1px; background: var(--line-2); }
.step::before { width: 9px; height: 9px; top: -40px; background: var(--accent-hi); box-shadow: 0 0 0 4px var(--bg); }
.process .step::before { box-shadow: 0 0 0 4px var(--tint); }
.step-dur { font: 400 11.5px/1.4 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.step h3 { font: 500 clamp(24px, .8vw + 18px, 28px)/1.15 var(--serif); margin-top: 10px; }
.step .you { font-size: 15.5px; color: var(--ink-2); }
.step .you b { color: var(--ink); }

/* questions: serif questions, a fine plus, room to read */
.faq-head { position: sticky; top: calc(var(--hdr) + 32px); }
.qa summary { font: 500 clamp(20px, .5vw + 17px, 23px)/1.3 var(--serif); }
.qa summary::after { color: var(--accent-hi); }
.qa details p { color: var(--ink-2); max-width: 62ch; }
@media (max-width: 1023.98px) { .faq-head { position: static; } }

/* begin: quieter fields and cards */
.form-card, .channels a { border-radius: 4px; }
.field label { font: 400 11.5px/1.4 var(--caps); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select, .field textarea { border-radius: 2px; background: var(--bg); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-hi) 22%, transparent); }
.to-founder svg { --mono-bg: #0e1726; }
@media (max-width: 767.98px) {
  .step::before { top: 5px; left: -27px; }
  .steps-line { width: 1px; left: 4px; }
  .seg-btn { border-radius: 0; background: transparent; }
}

/* impeccable pass */
p, li, dd, summary { text-wrap: pretty; }
/* the rules block is a section of the case files, not a card holding a card */
.cases .oc-rules { background: none; border: 0; border-top: 1px solid var(--line-2); border-radius: 0; padding: 40px 0 0; margin-top: 8px; }
/* product tiles: secondary labels darkened from their own hue so they read at 4.5:1 */
.tile span { color: color-mix(in srgb, var(--c) 45%, var(--ui-ink)); }
/* bad-day rows without numbers */
.bad-list li { grid-template-columns: minmax(0, 1fr); }
.case-meta { gap: 12px; }
.case-sector { font: 500 clamp(19px, .6vw + 15px, 22px)/1.25 var(--serif); }
.frag-tree .chip-warn { color: var(--warn-fg); }
.tg-ava.a2 { background: linear-gradient(160deg, #5b7569, #3f5a4e); }
/* the one plain statement of what Ozzvi makes, under the feeling-led lead */
.hero-what { margin-top: 16px; font: 400 11.5px/1.4 var(--caps); letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.hero .lead { max-width: 36ch; }

/* ===================== round 1: panel review ===================== */

/* hero: what Ozzvi makes, said plainly under the feeling-led headline; then an honest trust line */
.hero-what { margin-top: 18px; font: italic 500 clamp(22px, .9vw + 16px, 30px)/1.2 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.hero-sub { margin-top: 18px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 26px; font: 400 11px/1.5 var(--caps); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.hero-trust li { display: inline-flex; align-items: center; gap: 18px; }
.hero-trust li + li::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--accent-hi); }
@media (max-width: 767.98px) { .hero-trust { flex-direction: column; gap: 6px; } .hero-trust li + li::before { display: none; } }

/* three things, held equal */
.three { padding-block: clamp(72px, 8vw, 120px); }
.three-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.three-grid > div { padding: 32px 36px 8px 0; }
.three-grid > div + div { padding-left: 36px; border-left: 1px solid var(--line); }
.three-grid h3 { font: 500 clamp(26px, 1.2vw + 17px, 36px)/1.1 var(--serif); }
.three-grid p { margin-top: 12px; color: var(--ink-2); max-width: 36ch; }
@media (max-width: 899.98px) {
  .three-grid { grid-template-columns: 1fr; }
  .three-grid > div, .three-grid > div + div { padding: 24px 0; border-left: 0; }
  .three-grid > div + div { border-top: 1px solid var(--line); }
}

/* case files: the first one open, the others fold away */
.case-fold { display: block; padding-block: 0; border-top: 1px solid var(--line-2); }
.case-sum { list-style: none; cursor: pointer; display: grid; grid-template-columns: 200px minmax(0, 1fr) auto 20px; align-items: center; gap: 12px 48px; padding: 30px 0; }
.case-sum::-webkit-details-marker { display: none; }
.case-sum .case-sector { font: 500 clamp(19px, .6vw + 15px, 22px)/1.25 var(--serif); }
.case-sum .case-h { font-size: clamp(22px, .9vw + 16px, 30px); max-width: none; }
.case-open { width: 16px; height: 16px; color: var(--accent-hi); transition: transform 220ms var(--ease-out);
  background: linear-gradient(currentColor 0 0) center / 16px 1.4px no-repeat, linear-gradient(currentColor 0 0) center / 1.4px 16px no-repeat; }
.case-fold[open] .case-open { transform: rotate(45deg); }
.case-fold > .case-body { padding: 0 0 48px calc(200px + 48px); }
.case-fold::details-content { block-size: 0; overflow: clip; transition: block-size 320ms var(--ease-out), content-visibility 320ms allow-discrete; interpolate-size: allow-keywords; }
.case-fold[open]::details-content { block-size: auto; }
@media (hover: hover) and (pointer: fine) { .case-sum:hover .case-h { color: var(--accent); } }
.case-sum .case-h { transition: color 200ms ease; }
@media (max-width: 1023.98px) {
  .case-sum { grid-template-columns: minmax(0, 1fr) 20px; gap: 8px 16px; }
  .case-sum .case-sector { grid-column: 1; }
  .case-sum .case-h { grid-column: 1; }
  .case-sum .chip { grid-column: 1; justify-self: start; }
  .case-open { grid-column: 2; grid-row: 1 / 4; }
  .case-fold > .case-body { padding: 0 0 36px; }
}
@media (prefers-reduced-motion: reduce) { .case-fold::details-content { transition: none; } }
.case-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 28px; color: var(--accent); font: italic 500 20px/1.3 var(--serif); text-decoration: none; }
.case-cta .ph { font-size: 16px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .case-cta:hover .ph { transform: translateX(3px); } .case-cta:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; } }

/* manifesto: a larger object, and the band opens out of the ivory as it arrives */
.manifesto { clip-path: inset(0 0 0 0 round 0); }
.mf-obj { width: min(560px, 88%); margin: -40px auto 22px; }

/* closing: the night navy returns, with the monogram as the last mark */
.closing { position: relative; overflow: hidden; padding-block: clamp(88px, 10vw, 150px); text-align: center; color: #efe9dc;
  background: radial-gradient(70% 90% at 50% 100%, #1d2d48, #0e1726 62%, #0a111d); }
.closing-mono { width: min(240px, 50%); height: auto; margin: 0 auto 8px; }
.closing .mf-rule { margin-bottom: 36px; }
.closing-text { font: italic 500 clamp(34px, 3vw + 18px, 64px)/1.08 var(--serif); }
.closing-sub { margin-top: 18px; color: rgb(239 233 220 / .72); font-size: 18px; }
@media (prefers-color-scheme: dark) { .closing { border-block: 1px solid rgb(255 255 255 / .06); } }
.trust-grid { grid-template-columns: 1fr; }
.trust .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023.98px) { .trust .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599.98px) { .trust .facts { grid-template-columns: 1fr; } }
.hero-what { margin-top: 0; margin-bottom: 14px; }
.three .hero-trust { margin-top: 18px; margin-bottom: 8px; }
.three .h2 + .hero-trust { margin-top: 18px; }
.three .hero-trust + .three-grid { margin-top: 30px; }
/* no stock photography: each business panel sits on a night-navy plate carrying the monogram, like a product shot on a backdrop */
.photo.plate { display: grid; place-items: center; border-radius: 4px;
  background: radial-gradient(90% 80% at 30% 15%, #1d2d48, #0e1726 60%, #0a111d); }
.photo.plate img { width: 46%; height: auto; object-fit: contain; filter: none; opacity: .9; transform: translateY(-24px); }
.plate-rule { position: absolute; left: 50%; bottom: 34px; width: 46%; height: 8px; transform: translateX(-50%); color: #c9ad74; opacity: .5;
  background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 9px) bottom / 100% 4px no-repeat,
              linear-gradient(currentColor, currentColor) bottom / 100% 1px no-repeat,
              repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 45px) bottom / 100% 8px no-repeat; }
@media (max-width: 767.98px) { .photo.plate { aspect-ratio: 4 / 3; } .photo.plate img { transform: translateY(-14px); width: 50%; } .plate-rule { bottom: 22px; } }
.closing-obj { width: min(380px, 70%); margin: -30px auto 10px; }
/* the still monograms (business plates, founder tile, and the fallback before 3D loads) turn gently too */
@keyframes zz-turn { from { transform: perspective(900px) rotateY(-16deg) rotateX(4deg); } to { transform: perspective(900px) rotateY(16deg) rotateX(-2deg); } }
.photo.plate img, .portrait-fallback .mono-big, .mf-still { animation: zz-turn 3.4s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
.photo.plate img { animation-name: zz-turn-plate; }
@keyframes zz-turn-plate { from { transform: translateY(-24px) perspective(900px) rotateY(-16deg) rotateX(4deg); } to { transform: translateY(-24px) perspective(900px) rotateY(16deg) rotateX(-2deg); } }
@media (prefers-reduced-motion: reduce) { .photo.plate img, .portrait-fallback .mono-big, .mf-still { animation-duration: 9s; } }
/* approval flow card (Something new) */
.flow { display: grid; gap: 2px; }
.flow li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; padding: 9px 0; border-top: 1px solid var(--ui-line); }
.flow li:first-child { border-top: 0; }
.flow li > i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--ui-panel); color: var(--ui-ink-2); }
.flow li.done > i { background: var(--ok-bg); color: var(--ok-fg); }
.flow li.wait > i { background: var(--warn-bg); color: var(--warn-fg); }
.flow b { display: block; font-size: 13px; }
.flow span { display: block; font-size: 12px; color: var(--ui-ink-2); }
.float .dev-act { margin-top: 12px; }
