/* =========================================================================
   GAME BYTES — "Installation Drawing" design system
   The product is a tablet mounted on a wall, so the page is drawn like an
   architect's installation sheet: warm paper, hairline rules, drafting
   grid, dimension annotations, figure captions. The only dark surface on
   the page is the tablet's own screen.
   Type: Fraunces (display, true italics) · Archivo (text & UI)
   ========================================================================= */

/* ---- Tokens ------------------------------------------------------------ */
:root {
  --paper:    #FAF8F3;   /* warm drafting paper                             */
  --paper-2:  #F3EFE6;   /* alt section                                     */
  --white:    #FFFFFF;
  --ink:      #211E18;   /* warm near-black                                 */
  --dim:      #6F6A5E;
  --faint:    #6F6A5E;
  --line:     #E4DDCC;   /* warm hairline                                   */
  --line-2:   #CFC6AE;

  --pine:     #2E5A4B;   /* accent: deep pine green                         */
  --pine-2:   #234639;
  --pine-3:   #EAF0EC;   /* pine tint                                       */
  --rust:     #A4452F;   /* problems, ✕ marks                               */
  --amber:    #C08A2D;   /* star ratings only                               */
  --selection:#DCE9E0;

  /* the screen — the one dark object on the page */
  --screen-frame: #2B2833;
  --screen-frame-2: #191722;
  --screen:   #14121D;
  --screen-2: #1D1A2C;
  --screen-camera: #0A0910;
  --screen-text: #EDEBFA;
  --screen-soft: #F4F2FF;
  --screen-muted: #8D86AC;
  --screen-row: #A9A3C6;
  --screen-tile: #C4BAFF0F;
  --screen-tile-line: #C4BAFF1A;
  --screen-track: #C4BAFF24;
  --screen-dot: #C4BAFF40;
  --screen-on: #7BE8B5;
  --glowline: #8B7CFF;
  --violet-mid: #5A4BDB;
  --violet-light: #B9AEF7;
  --violet-hover: #7E6EFF;
  --violet-hover-light: #A99BFF;
  --violet-shadow: #5A4BDB8C;
  --violet-shadow-soft: #5140D25C;
  --violet-icon-soft: #5A4BDB1F;
  --violet-icon-wash: #B9AEF747;
  --grid-line: #211E180B;
  --mask-black: #000000;
  --overlay: #0A0912D1;
  --lightbox-line: #FFFFFF2E;
  --lightbox-close: #14121DEB;
  --lightbox-shadow: #00000061;

  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --r-xs: 4px;
  --r-micro: 2px;
  --r-screen: 9px;
  --r-icon: 10px;
  --r-app-icon: 13px;
  --r-spot-icon: 14px;

  --shadow-card: 0 1px 2px rgba(33,30,24,.05), 0 6px 24px rgba(33,30,24,.05);
  --shadow-panel: 0 2px 4px rgba(33,30,24,.18), 0 24px 48px -12px rgba(33,30,24,.28);

  --maxw: 1140px;
  --gutter: clamp(20px, 5vw, 48px);

  --f-display: "Fraunces", Georgia, serif;
  --f-body:    "Archivo", system-ui, -apple-system, sans-serif;
}

/* ---- Base -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.03rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  font-family: var(--f-display);
  font-optical-sizing: auto;
  font-weight: 560;
  margin: 0;
  line-height: 1.06;
  letter-spacing: -.01em;
}
p { margin: 0; }
::selection { background: var(--selection); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(60px, 8.5vw, 108px); }
.section--tight { padding-block: clamp(40px, 6vw, 68px); }
.section--alt { background: var(--paper-2); border-block: 1px solid var(--line); }

.kiosk-page {
  --pine:     #705CFF;
  --pine-2:   #5140D2;
  --pine-3:   #F0EDFF;
  --glowline: var(--violet-hover-light);
}

/* sheet-label eyebrow: "01 · The problem" over a hairline */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: .74rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--dim);
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }

.section__head { margin-bottom: clamp(32px, 5vw, 52px); }
.section__title { font-size: clamp(1.9rem, 4.2vw, 2.9rem); margin-top: 18px; max-width: 24ch; }
.section__title em { font-style: italic; font-weight: 500; color: var(--pine); }
.section__lead { margin-top: 14px; color: var(--dim); font-size: 1.08rem; max-width: 58ch; }

/* figure captions — the drawing-sheet motif */
.fig-note {
  font-size: .8rem; color: var(--dim); letter-spacing: .02em;
  padding-top: 10px; margin-top: 14px;
  border-top: 1px solid var(--line-2);
  max-width: 44ch;
}
.fig-note b { color: var(--ink); font-weight: 600; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-body); font-weight: 600; font-size: .99rem; line-height: 1.2;
  padding: 15px 24px; border-radius: var(--r-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .12s ease, box-shadow .18s ease;
  text-align: left;
}
.btn:active { transform: translateY(1px); }

.btn--cta { background: var(--pine); color: #fff; box-shadow: 0 1px 2px rgba(35,70,57,.4), 0 10px 24px -8px rgba(35,70,57,.5); }
.btn--cta:hover { background: var(--pine-2); }
.btn--cta .sub { display: block; font-size: .68rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; opacity: .72; margin-bottom: 2px; }
.btn--cta .big { font-size: 1.02rem; }
.btn--cta .amz { width: 22px; height: 22px; flex: none; }

.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }

/* ---- Header ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(250,248,243,.88);
  backdrop-filter: blur(10px) saturate(120%);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 0; font-family: var(--f-display); font-weight: 600; font-size: 1.18rem; }
.brand__mark {
  display: none;
}
.brand__mark svg { width: 19px; height: 19px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--dim); font-weight: 500; font-size: .95rem; transition: color .15s ease; }
.nav a:hover { color: var(--ink); }
.nav__cta {
  font-weight: 600; color: #fff !important;
  background: var(--pine);
  padding: 10px 18px; border-radius: var(--r-sm);
}
.nav__cta:hover { background: var(--pine-2); }
.nav-toggle { display: none; }

.kiosk-page .btn--cta,
.kiosk-page .nav__cta,
.kiosk-page .sticky-cta a {
  color: var(--screen-soft);
  border-color: var(--pine-2);
  background: linear-gradient(135deg, var(--pine-2) 0%, var(--violet-mid) 48%, var(--glowline) 100%);
  box-shadow: 0 1px 2px var(--violet-shadow-soft), 0 12px 26px -8px var(--violet-shadow);
}
.kiosk-page .btn--cta:hover,
.kiosk-page .nav__cta:hover,
.kiosk-page .sticky-cta a:hover {
  background: linear-gradient(135deg, var(--pine-2) 0%, var(--violet-hover) 54%, var(--glowline) 100%);
}
.kiosk-page .btn--cta .sub { color: var(--violet-light); opacity: 1; }
.kiosk-page .btn--ghost {
  color: var(--pine-2);
  border-color: var(--violet-light);
  background: linear-gradient(180deg, var(--pine-3) 0%, var(--violet-icon-wash) 100%);
}
.kiosk-page .btn--ghost:hover {
  color: var(--screen);
  border-color: var(--violet-mid);
  background: var(--violet-icon-wash);
}
.kiosk-page .feature__icon {
  background: linear-gradient(135deg, var(--violet-icon-soft), var(--violet-icon-wash));
}

/* ---- Hero -------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { /* drafting grid, fading out to the right */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(to right, var(--grid-line) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(to bottom, var(--grid-line) 0 1px, transparent 1px 26px);
  -webkit-mask-image: radial-gradient(120% 130% at 18% 0%, var(--mask-black) 30%, transparent 78%);
          mask-image: radial-gradient(120% 130% at 18% 0%, var(--mask-black) 30%, transparent 78%);
}
.hero__inner { padding-block: clamp(52px, 7.5vw, 96px); position: relative; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 80px); align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.9vw, 3.7rem);
  font-weight: 600;
  margin-top: 22px;
  max-width: 17ch;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; font-weight: 500; color: var(--pine); }
.hero__lead { margin-top: 20px; max-width: 50ch; font-size: 1.13rem; color: var(--dim); }
.hero__lead strong { color: var(--ink); font-weight: 600; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
.hero__note { margin-top: 16px; font-size: .8rem; color: var(--faint); letter-spacing: .03em; }

/* spec chips */
.statusline { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; }
.statusline li {
  font-size: .8rem; font-weight: 500; letter-spacing: .02em;
  color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 7px 14px;
  background: var(--white);
  display: inline-flex; align-items: center; gap: 8px;
}
.statusline li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--pine); }

/* entrance */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero [data-rise] { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.hero [data-rise="2"] { animation-delay: .08s; }
.hero [data-rise="3"] { animation-delay: .16s; }
.hero [data-rise="4"] { animation-delay: .24s; }
.hero [data-rise="5"] { animation-delay: .34s; }

/* ---- The installed panel (signature) ------------------------------------ */
.scene { position: relative; padding: clamp(26px, 4vw, 44px) clamp(10px, 2vw, 20px) 0; }

.panel-wrap { position: relative; width: min(520px, 100%); margin-inline: auto; }

/* dimension lines, like a measured drawing */
.dim { position: absolute; color: var(--dim); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.dim::before { content: ""; position: absolute; background: var(--line-2); }
.dim span { background: var(--paper); padding: 0 8px; position: relative; }
.dim--top { left: 8%; right: 8%; top: -26px; display: flex; justify-content: center; }
.dim--top::before { left: 0; right: 0; top: 50%; height: 1px; }
.dim--top::after, .dim--top .tick { content: ""; position: absolute; top: 50%; transform: translateY(-50%); width: 1px; height: 10px; background: var(--line-2); right: 0; }
.dim--top .tick { left: 0; }
.dim--side { top: 12%; bottom: 12%; right: -20px; display: flex; align-items: center; writing-mode: vertical-rl; }
.dim--side::before { top: 0; bottom: 0; left: 50%; width: 1px; }
.dim--side::after, .dim--side .tick { content: ""; position: absolute; left: 50%; transform: translateX(-50%); height: 1px; width: 10px; background: var(--line-2); bottom: 0; }
.dim--side .tick { top: 0; }

/* tablet frame mounted on the wall */
.tab-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 10.4;
  background: linear-gradient(170deg, var(--screen-frame), var(--screen-frame-2));
  border-radius: 18px;
  padding: 11px;
  box-shadow: var(--shadow-panel);
}
.tab-frame::after { /* camera */
  content: ""; position: absolute; top: 50%; right: 4.5px; width: 3px; height: 3px;
  border-radius: 50%; background: var(--screen-camera); transform: translateY(-50%);
}

.tab-screen {
  width: 100%; height: 100%; border-radius: var(--r-screen); overflow: hidden;
  background: linear-gradient(170deg, var(--screen-2) 0%, var(--screen) 100%);
  display: flex; flex-direction: column;
  padding: clamp(10px, 2.2vw, 15px);
  gap: clamp(7px, 1.5vw, 11px);
  color: var(--screen-text);
}

.tab-frame--proof {
  aspect-ratio: 16 / 9.4;
}

.tab-screen--product {
  position: relative;
  display: block;
  padding: 0;
  background: var(--screen);
}

.tab-screen--product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
  transform: scale(1.78);
  transform-origin: center;
  filter: saturate(1.08) contrast(1.03);
}

.dash__top { display: flex; align-items: baseline; justify-content: space-between; }
.dash__title { font-weight: 600; font-size: clamp(.78rem, 1.7vw, .92rem); }
.dash__clock { font-size: clamp(.72rem, 1.6vw, .84rem); font-weight: 500; color: var(--violet-light); letter-spacing: .05em; font-variant-numeric: tabular-nums; }
.dash__clock i { font-style: normal; animation: blink 2s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }

.dash__grid { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: clamp(6px, 1.3vw, 9px); min-height: 0; }
.tile {
  overflow: hidden;
  background: var(--screen-tile);
  border: 1px solid var(--screen-tile-line);
  border-radius: 8px;
  padding: clamp(7px, 1.5vw, 11px);
  display: flex; flex-direction: column; justify-content: space-between; min-width: 0;
}
.tile small { font-size: clamp(.5rem, 1.1vw, .58rem); letter-spacing: .1em; text-transform: uppercase; color: var(--screen-muted); font-weight: 500; }
.tile b { font-weight: 600; color: var(--screen-soft); font-size: clamp(.84rem, 1.9vw, 1.02rem); }

.tile--temp { grid-row: span 2; align-items: center; justify-content: space-evenly; text-align: center; }
.ring {
  width: clamp(44px, 34%, 66px); aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(var(--glowline) 0deg 245deg, var(--screen-track) 245deg 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), var(--mask-black) calc(100% - 5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 6px), var(--mask-black) calc(100% - 5px));
}
.tile--temp b { font-size: clamp(.95rem, 2.4vw, 1.3rem); }

.bars { display: flex; align-items: flex-end; gap: 3px; height: clamp(18px, 4.2vw, 30px); margin-top: 4px; }
.bars i {
  flex: 1; border-radius: var(--r-micro) var(--r-micro) 0 0;
  background: linear-gradient(to top, var(--violet-mid), var(--glowline));
  height: var(--h, 50%);
  animation: grow 1s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * .08s + .4s);
  transform-origin: bottom;
}
@keyframes grow { from { transform: scaleY(0); } }

.lrow { display: flex; align-items: center; gap: 6px; font-size: clamp(.56rem, 1.25vw, .7rem); color: var(--screen-row); padding-block: 1.5px; }
.lrow em { margin-left: auto; font-style: normal; font-size: .92em; color: var(--violet-light); }
.lrow .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--screen-dot); flex: none; }
.lrow .dot.on { background: var(--screen-on); }

/* PIN plate under the frame */
.lock-chip {
  position: absolute; bottom: -15px; left: 0; right: 0;
  margin-inline: auto; width: max-content; max-width: 92%;
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); background: var(--white);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 8px 16px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-card);
  animation: rise .6s .6s cubic-bezier(.2,.7,.2,1) both;
}
.lock-chip svg { width: 13px; height: 13px; color: var(--pine); }

.scene .fig-note { margin: 16px auto 0; max-width: min(520px, 100%); }

/* ---- Pain strip ---------------------------------------------------------- */
.pains { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--white); }
.pain { padding: 24px 26px; color: var(--dim); font-size: 1rem; border-left: 1px solid var(--line); }
.pain:first-child { border-left: 0; }
.pain b { display: block; color: var(--ink); font-weight: 600; font-size: 1.04rem; margin-bottom: 6px; }
.pain b::before { content: "✕  "; color: var(--rust); }
.pains-answer { margin-top: 24px; font-size: 1.18rem; font-family: var(--f-display); font-weight: 500; }
.pains-answer strong { color: var(--pine); font-style: italic; font-weight: 500; }

/* ---- Features ------------------------------------------------------------ */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); gap: 14px; }
.feature {
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 26px;
  box-shadow: var(--shadow-card);
  transition: border-color .2s ease, transform .18s ease;
}
.feature:hover { border-color: var(--line-2); transform: translateY(-3px); }
.feature__icon {
  width: 44px; height: 44px; border-radius: var(--r-icon);
  background: var(--pine-3); color: var(--pine);
  display: grid; place-items: center; margin-bottom: 18px;
}
.feature__icon svg { width: 21px; height: 21px; }
.feature__title { font-size: 1.22rem; margin-bottom: 8px; }
.feature__text { color: var(--dim); font-size: .96rem; }

/* ---- Steps ----------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; counter-reset: step; }
.step {
  position: relative; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 26px; box-shadow: var(--shadow-card);
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--f-display); font-style: italic; font-weight: 500;
  font-size: 1.5rem; color: var(--pine);
  display: block; margin-bottom: 12px;
}
.step h3 { font-size: 1.22rem; margin-bottom: 8px; }
.step p { color: var(--dim); font-size: .96rem; }
.steps-note { margin-top: 20px; font-size: .82rem; color: var(--faint); font-style: italic; }

/* ---- Screenshots: full grid, nothing cropped, nothing scrolls ------------- */
.shot-tabs {
  display: inline-flex; gap: 0; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  overflow: hidden; margin-bottom: 26px; background: var(--white);
}
.shot-tab {
  font-family: var(--f-body); font-weight: 600; font-size: .82rem; letter-spacing: .05em;
  padding: 11px 22px; border: none; background: transparent;
  color: var(--dim); cursor: pointer; transition: background .15s ease, color .15s ease;
}
.shot-tab + .shot-tab { border-left: 1px solid var(--line); }
.shot-tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }

.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 16px;
}
.shot-grid[hidden] { display: none; }
.shot {
  width: 100%; height: auto;              /* natural aspect — never cropped */
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: var(--white);
  box-shadow: var(--shadow-card);
  cursor: zoom-in;
  transition: transform .16s ease, border-color .18s ease, box-shadow .18s ease;
}
.shot:hover { transform: translateY(-2px); border-color: var(--pine); }
.shot:focus-visible { outline: 3px solid var(--pine); outline-offset: 4px; }

.lightbox {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center;
  padding: clamp(18px, 4vw, 48px);
  background: var(--overlay);
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__panel {
  position: relative;
  width: min(1120px, 100%);
  max-height: calc(100vh - 56px);
  display: grid; gap: 12px;
  transform: scale(.96);
  transition: transform .18s ease;
}
.lightbox.is-open .lightbox__panel { transform: scale(1); }
.lightbox__image {
  width: 100%;
  max-height: calc(100vh - 126px);
  object-fit: contain;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--lightbox-line);
  box-shadow: 0 24px 60px var(--lightbox-shadow);
}
.lightbox__caption {
  color: #F4F2FF;
  font-size: .9rem;
  line-height: 1.45;
  text-align: center;
}
.lightbox__close {
  position: absolute; top: -16px; right: -16px;
  width: 44px; height: 44px;
  border: 1px solid var(--lightbox-line);
  border-radius: 50%;
  background: var(--lightbox-close);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { background: var(--screen-frame); }
body.lightbox-open { overflow: hidden; }

/* ---- Use cases ------------------------------------------------------------- */
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.case { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); padding: 22px; box-shadow: var(--shadow-card); }
.case h3 { font-size: 1.14rem; margin-bottom: 6px; }
.case p { font-size: .93rem; color: var(--dim); }
.case .tag { font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--pine); display: block; margin-bottom: 12px; }

/* ---- FAQ ---------------------------------------------------------------------- */
.faq { max-width: 780px; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--f-display); font-weight: 560; font-size: 1.14rem;
  padding: 20px 48px 20px 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--f-body); font-weight: 400; font-size: 1.4rem; color: var(--pine);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .a { padding: 0 0 22px; color: var(--dim); font-size: .99rem; max-width: 64ch; }

/* ---- Final CTA: a drawing title block ------------------------------------------ */
.title-block {
  border: 1px solid var(--ink);
  border-radius: var(--r-md);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.title-block__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-bottom: 1px solid var(--ink); }
.title-block__field { padding: 12px 18px; border-left: 1px solid var(--line-2); }
.title-block__field:first-child { border-left: 0; }
.title-block__field small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.title-block__field span { font-size: .92rem; font-weight: 600; }
.title-block__main { padding: clamp(34px, 5.5vw, 60px) clamp(24px, 4.5vw, 52px); text-align: center; }
.title-block__title { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.title-block__title em { font-style: italic; font-weight: 500; color: var(--pine); }
.title-block__lead { color: var(--dim); margin: 14px auto 0; max-width: 52ch; font-size: 1.05rem; }
.title-block__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.title-block__fine { margin-top: 18px; font-size: .78rem; color: var(--faint); letter-spacing: .04em; }

/* ---- Hub: the shelf (icons contained, never stretched) --------------------------- */
.shelf {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.8vw, 16px);
  width: min(440px, 100%); margin-inline: auto;
}
.shelf span {
  display: grid; place-items: center;
  aspect-ratio: 1;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14%;
  box-shadow: var(--shadow-card);
  animation: rise .6s cubic-bezier(.2,.7,.2,1) both;
  transition: transform .18s ease, border-color .2s ease;
}
.shelf span:nth-child(2n) { animation-delay: .1s; }
.shelf span:nth-child(3n) { animation-delay: .18s; }
.shelf span:hover { transform: translateY(-4px); border-color: var(--line-2); }
.shelf img { width: 100%; height: 100%; object-fit: contain; border-radius: 14%; }

/* ---- Featured spotlight (hub) ----------------------------------------------------- */
.spotlight {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(26px, 4vw, 56px); align-items: center;
  background: var(--white);
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: clamp(26px, 4.5vw, 54px);
  box-shadow: var(--shadow-card);
}
.spotlight__shot { border-radius: var(--r-md); border: 1px solid var(--line-2); box-shadow: var(--shadow-panel); }
.spotlight__badge {
  font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--pine); border: 1px solid var(--pine); border-radius: 999px;
  display: inline-block; padding: 5px 12px; margin-bottom: 18px;
}
.spotlight h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.spotlight h2 em { font-style: italic; font-weight: 500; color: var(--pine); }
.spotlight p { margin-top: 14px; color: var(--dim); }
.spotlight__icon { width: 56px; height: 56px; border-radius: var(--r-spot-icon); border: 1px solid var(--line); margin-bottom: 18px; object-fit: contain; background: var(--white); }

/* ---- Catalog filters + grid --------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  font-family: var(--f-body); font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  color: var(--dim); background: var(--white);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 9px 18px; cursor: pointer;
  transition: all .15s ease;
}
.filter:hover { color: var(--ink); border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 14px; }
.app-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 22px;
  box-shadow: var(--shadow-card);
  transition: transform .16s ease, border-color .2s ease;
}
.app-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.app-card[hidden] { display: none; }
.app-card__top { display: flex; align-items: center; gap: 14px; }
.app-icon {
  width: 58px; height: 58px; border-radius: var(--r-app-icon); flex: none;
  object-fit: contain; border: 1px solid var(--line); background: var(--white); padding: 2px;
}
.app-card__name { font-size: 1.16rem; }
.app-card__cat { font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-top: 4px; }
.app-card__desc { margin-top: 13px; color: var(--dim); font-size: .93rem; flex: 1; }
.app-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.rating { font-size: .84rem; color: var(--dim); display: inline-flex; align-items: center; gap: 5px; }
.rating .s { color: var(--amber); }
.app-card__link { font-weight: 600; font-size: .9rem; color: var(--pine); display: inline-flex; align-items: center; gap: 6px; }
.app-card__link svg { width: 14px; height: 14px; transition: transform .15s ease; }
.app-card:hover .app-card__link svg { transform: translateX(3px); }

/* ---- Trust row ------------------------------------------------------------------------ */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 14px; }
.trust__item { display: flex; gap: 13px; align-items: flex-start; padding: 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-card); }
.trust__item svg { width: 21px; height: 21px; flex: none; color: var(--pine); margin-top: 2px; }
.trust__item b { display: block; font-weight: 600; font-size: .98rem; }
.trust__item span { color: var(--dim); font-size: .89rem; }

/* ---- Footer ------------------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line-2); padding-block: 52px 40px; background: var(--paper-2); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 30px 60px; justify-content: space-between; }
.footer-brand { max-width: 300px; }
.footer-brand p { margin-top: 13px; font-size: .92rem; color: var(--dim); }
.footer-col h4 { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin: 0 0 15px; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .94rem; }
.footer-col a { color: var(--dim); transition: color .15s ease; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line-2); display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; font-size: .8rem; color: var(--faint); }

/* ---- Sticky mobile CTA --------------------------------------------------------------------- */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
  display: none;
  transform: translateY(130%); transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.sticky-cta.is-on { transform: none; }
.sticky-cta a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 1rem;
  background: var(--pine); color: #fff;
  border-radius: var(--r-md); padding: 16px;
  box-shadow: 0 -2px 24px rgba(33,30,24,.18), 0 8px 22px -6px rgba(35,70,57,.55);
}

/* ---- Consent banner --------------------------------------------------------------------- */
.consent-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 130;
  width: min(420px, calc(100vw - 36px));
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: var(--shadow-panel);
}
.consent-banner p {
  color: var(--dim);
  font-size: .88rem;
  line-height: 1.45;
}
.consent-banner div {
  display: flex;
  gap: 8px;
  flex: none;
}
.consent-banner button {
  min-height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  padding: 10px 14px;
  font: 600 .9rem var(--f-body);
  cursor: pointer;
}
.consent-banner__decline {
  background: transparent;
  color: var(--ink);
}
.consent-banner__accept {
  background: var(--pine);
  border-color: var(--pine);
  color: var(--white);
}

/* ---- Scroll reveal ---------------------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-in { opacity: 1; transform: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ============================ Responsive ==================================== */
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__grid > .scene { order: -1; }
  .spotlight { grid-template-columns: 1fr; }
  .dim--side { display: none; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 70px 0 auto 0; z-index: 79;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line-2);
    padding: 6px var(--gutter) 20px;
    transform: translateY(-130%); transition: transform .28s cubic-bezier(.2,.7,.2,1);
    box-shadow: 0 16px 30px rgba(33,30,24,.08);
  }
  .nav[data-open="true"] { transform: none; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav__cta { margin-top: 14px; text-align: center; border-bottom: none !important; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--white); cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; display: block; width: 17px; height: 2px; border-radius: var(--r-micro);
    background: var(--ink); position: relative; transition: all .2s ease;
  }
  .nav-toggle span::before { position: absolute; top: -5.5px; }
  .nav-toggle span::after { position: absolute; top: 5.5px; }
  .nav-toggle[aria-expanded="true"] span { background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::after { transform: translateY(-5.5px) rotate(-45deg); }

  .pain { border-left: 0; border-top: 1px solid var(--line); }
  .pain:first-child { border-top: 0; }

  .sticky-cta { display: block; }
  .lightbox__close { top: 8px; right: 8px; }
  .consent-banner {
    left: 12px;
    right: 12px;
    bottom: 76px;
    width: auto;
    align-items: stretch;
    flex-direction: column;
  }
  .consent-banner div { width: 100%; }
  .consent-banner button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

:focus-visible { outline: 3px solid var(--pine); outline-offset: 3px; border-radius: var(--r-xs); }
