/* App pages (/medblitz/, /billcheck/, /partivo/): the home page's look, with each
   app's own accent. A page sets --accent on <body>; everything else follows. */

:root {
  --obsidian: #06070d;
  --line: rgba(236, 238, 248, 0.09);
  --paper: #eceef8;
  --fog: #9599b3;
  --text: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(20px, 4.4vw, 72px);
  --nav-h: 72px;
  --pro-gold: #D4AF37;
  --pro-ink: #17130A;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  --accent: #7b83ff;
  --accent-soft: color-mix(in srgb, var(--accent) 55%, transparent);
  --accent-glow: color-mix(in srgb, var(--accent) 26%, transparent);
  background: var(--obsidian); color: var(--paper);
  font-family: var(--text); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }

/* ---------- nav (same as the home page) ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav.is-scrolled { background: rgba(6, 7, 13, 0.82); border-color: var(--line); }
.nav .logo { display: flex; align-items: center; gap: 22px; text-decoration: none; }
.nav .logo img { height: 28px; width: auto; }
.logo-tag { font-size: 11px; line-height: 1.5; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fog); }
.nav ul { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); list-style: none; }
/* the Contact pill has its own 26px inside, so pull it in: the words Studio and Contact then sit as far
   apart as Apps and Studio */
@media (min-width: 900px) { .nav li:last-child { margin-left: calc(-1 * clamp(8px, 2.6vw - 18px, 22px)); } }
.nav a { text-decoration: none; font-size: 16px; font-weight: 500; color: rgba(236, 238, 248, 0.82); transition: color 0.25s var(--ease); }
.nav a:hover { color: var(--paper); }
.nav .nav-contact { color: var(--paper); padding: 12px 26px; border-radius: 999px; border: 1px solid rgba(236, 238, 248, 0.35);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease); }
.nav .nav-contact:hover { background: rgba(236, 238, 248, 0.08); border-color: var(--paper); }

/* ---------- shared pieces ---------- */
.kicker { display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--fog); }
.kicker::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent), 0 0 0 4px var(--accent-glow); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(30px, 5vh, 54px); }
.section-head h2 { font-weight: 700; font-size: clamp(32px, 4vw, 58px); line-height: 1.05; letter-spacing: -0.04em; text-wrap: balance; }
.grad { background: linear-gradient(90deg, var(--accent) 0%, #6366f1 60%, #a855f7 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.06em; }
.glass {
  border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(14, 16, 28, 0.55);
  background-image: linear-gradient(140deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02) 48%, rgba(255, 255, 255, 0.01));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 30px 60px -32px rgba(0, 0, 0, 0.85);
}
/* the two store buttons always share one width, side by side or stacked */
.stores { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; }
.store {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; background: var(--paper); color: var(--obsidian);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.store:hover { transform: translateY(-1px); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 30%, transparent), 0 12px 34px color-mix(in srgb, var(--accent) 35%, transparent); }
.store.is-soon { background: transparent; color: var(--paper); border: 1px solid var(--accent-soft); cursor: default; }
.store.is-soon:hover { transform: none; box-shadow: none; }

/* content rises in once as it scrolls into view, then stays */
.js [data-reveal] .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease) var(--rd, 0s), transform 0.9s var(--ease) var(--rd, 0s); }
.js [data-reveal].is-in .reveal { opacity: 1; transform: none; }

/* ---------- the phone: one light component for every app page ----------
   A front with a brushed-metal edge and a dark bezel, plus two thin plates
   behind it that read as the body's thickness once it is turned. */
.device { --ry: -16deg; --gr: calc(var(--w) * 0.15); --gg: calc(var(--w) * 0.1); position: relative; width: var(--w); transform-style: preserve-3d;
  transform: rotateY(var(--ry)) rotateX(4deg); }
.device-float { position: relative; transform-style: preserve-3d; animation: float 7s ease-in-out infinite alternate; }
@keyframes float { from { translate: 0 -9px; } to { translate: 0 9px; } }
.device-body {
  position: relative; transform-style: preserve-3d; border-radius: calc(var(--w) * 0.15);
  border: max(2px, calc(var(--w) * 0.008)) solid transparent; padding: calc(var(--w) * 0.039);
  background: linear-gradient(160deg, #0d0f18 0%, #05060b 50%, #0b0d15 100%) padding-box,
              linear-gradient(150deg, #e4e8f2 0%, #6d7490 18%, #262a3a 42%, #9aa2bb 62%, #3b4054 82%, #d5dae6 100%) border-box;
  box-shadow: 0 0 0 1.5px var(--accent-soft), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.device-body::before, .device-body::after { content: ''; position: absolute; inset: -2px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(90deg, #8a93b3 0%, #3a4058 22%, #10121b 55%, #2b3044 80%, #6b7392 100%); }
.device-body::before { transform: translateZ(calc(var(--w) * -0.07)); }
/* A neon glow that follows the rounded body, built from nine gradients (four corners, four edges, the
   middle) instead of a blurred shadow, so it is drawn inside its own box and the GPU never cuts it. */
.device-float::before { content: ''; position: absolute; inset: calc(var(--gg) * -1); pointer-events: none;
  --gc: color-mix(in srgb, var(--accent) 45%, transparent); --gm: color-mix(in srgb, var(--accent) 14%, transparent);
  --gs: calc(var(--gr) + var(--gg)); --gin: calc(100% - 2 * var(--gs));
  transform: translateZ(calc(var(--w) * -0.12));
  background:
    radial-gradient(circle at 100% 100%, var(--gc) var(--gr), var(--gm) calc(var(--gr) + var(--gg) * 0.4), transparent var(--gs)) 0 0 / var(--gs) var(--gs),
    radial-gradient(circle at 0 100%, var(--gc) var(--gr), var(--gm) calc(var(--gr) + var(--gg) * 0.4), transparent var(--gs)) 100% 0 / var(--gs) var(--gs),
    radial-gradient(circle at 100% 0, var(--gc) var(--gr), var(--gm) calc(var(--gr) + var(--gg) * 0.4), transparent var(--gs)) 0 100% / var(--gs) var(--gs),
    radial-gradient(circle at 0 0, var(--gc) var(--gr), var(--gm) calc(var(--gr) + var(--gg) * 0.4), transparent var(--gs)) 100% 100% / var(--gs) var(--gs),
    linear-gradient(to top, var(--gc) var(--gr), var(--gm) calc(var(--gr) + var(--gg) * 0.4), transparent var(--gs)) 50% 0 / var(--gin) var(--gs),
    linear-gradient(to bottom, var(--gc) var(--gr), var(--gm) calc(var(--gr) + var(--gg) * 0.4), transparent var(--gs)) 50% 100% / var(--gin) var(--gs),
    linear-gradient(to left, var(--gc) var(--gr), var(--gm) calc(var(--gr) + var(--gg) * 0.4), transparent var(--gs)) 0 50% / var(--gs) var(--gin),
    linear-gradient(to right, var(--gc) var(--gr), var(--gm) calc(var(--gr) + var(--gg) * 0.4), transparent var(--gs)) 100% 50% / var(--gs) var(--gin),
    linear-gradient(var(--gc), var(--gc)) 50% 50% / var(--gin) var(--gin);
  background-repeat: no-repeat; }
.device-body::after { transform: translateZ(calc(var(--w) * -0.035)); }
.device-screen { position: relative; border-radius: calc(var(--w) * 0.103); overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px #000, 0 0 0 calc(1px + var(--w) * 0.006) rgba(255, 255, 255, 0.05); }
.device-screen img { width: 100%; height: auto; }
/* the iPhone home bar, the same size as on the home page's phones */
.device-screen .home-bar { position: absolute; z-index: 1; left: 50%; bottom: 1.3%; width: 34%; height: max(3px, 0.55%); transform: translateX(-50%); border-radius: 999px; background: rgba(255, 255, 255, 0.92); }
/* the island, sized and placed as on the home page's phones */
.device-screen::before { content: ''; position: absolute; z-index: 1; top: 1.4%; left: 50%; width: 31%; height: 3.4%; transform: translateX(-50%); border-radius: 999px; background: #000; }
.device-screen::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0.1) 46%, rgba(255, 255, 255, 0) 60%); }

/* ---------- product hero ---------- */
.app-hero { position: relative; isolation: isolate; overflow-x: clip; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(24px, 4vw, 72px);
  padding: calc(var(--nav-h) + 32px) var(--gutter) 56px; }
.app-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(38% 52% at 72% 50%, var(--accent-glow), rgba(6, 7, 13, 0) 72%),
              radial-gradient(30% 40% at 12% 18%, rgba(99, 102, 241, 0.1), rgba(6, 7, 13, 0) 70%); }
.app-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: min(30px, 3svh); font-size: 14px; color: var(--fog); text-decoration: none; transition: color 0.25s var(--ease); }
.app-back:hover { color: var(--paper); }
.app-id { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.app-id img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 30px -8px var(--accent); }
.app-id h1 { font-weight: 700; font-size: clamp(30px, 2.8vw, 40px); letter-spacing: -0.03em; line-height: 1; }
.app-tagline { margin-top: 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--accent); }
.app-headline { font-weight: 700; font-size: clamp(34px, min(4.4vw, 7svh), 66px); line-height: 1.04; letter-spacing: -0.04em; margin: min(26px, 3svh) 0 min(22px, 2.6svh); text-wrap: balance; }
.app-desc { color: rgba(236, 238, 248, 0.78); font-size: clamp(16px, min(1.3vw, 2.4svh), 19px); max-width: 44ch; margin-bottom: min(34px, 3.6svh); text-wrap: pretty; }

/* the phone grows with the window, by width and by height, so a big monitor gets a big phone */
.hero-visual { --w: clamp(220px, min(21vw, 31svh), 360px); position: relative; height: calc(var(--w) * 2.42); perspective: 1500px; }
.hero-visual .device { position: absolute; left: 50%; top: 50%; margin: 0; translate: -50% -50%; }

/* MedBlitz: question cards float around the phone and turn to their answers */
.flashcard { position: absolute; width: clamp(150px, calc(var(--w) * 0.66), 230px); aspect-ratio: 1.5; transform-style: preserve-3d;
  transform: rotateZ(var(--rz)) rotateY(var(--fy, 0deg)); transition: transform 0.7s cubic-bezier(0.45, 0.05, 0.25, 1);
  animation: float var(--fd, 8s) ease-in-out infinite alternate; }
/* app.js turns the cards over in turn, question to answer and back (a 180deg flip, never a text swap) */
.flashcard.is-answer { --fy: 180deg; }
.flashcard .face { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 15px 17px; border-radius: 16px;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  background: linear-gradient(160deg, rgba(27, 33, 50, 0.98), rgba(13, 17, 29, 0.98)); border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.flashcard .back { transform: rotateY(180deg); border-color: color-mix(in srgb, var(--accent) 65%, transparent);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.8), 0 0 30px -10px var(--accent); }
.flashcard small { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.flashcard p { margin: auto 0; font-size: clamp(13px, calc(var(--w) * 0.055), 17px); line-height: 1.35; font-weight: 500; color: #fff; }
.flashcard .back p { font-weight: 600; }
.flashcard .nw { white-space: nowrap; }
.fc-1 { left: calc(50% - var(--w) * 1.3); top: calc(50% - var(--w) * 0.95); --rz: -6deg; --fd: 7.4s; }
.fc-2 { left: calc(50% + var(--w) * 0.6); top: calc(50% - var(--w) * 0.15); --rz: 5deg; --fd: 8.6s; }
.fc-3 { left: calc(50% - var(--w) * 1.25); top: calc(50% + var(--w) * 0.5); --rz: 3deg; --fd: 6.8s; }

.facts { list-style: none; display: grid; gap: 10px; margin: -8px 0 34px; }
.facts li { display: flex; gap: 12px; align-items: baseline; font-size: 16px; }
.facts li::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); transform: translateY(-2px); }
.app-badge { display: inline-block; margin-top: 8px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--accent); border: 1px solid var(--accent-soft); background: color-mix(in srgb, var(--accent) 10%, transparent); }
/* Pro badge: premium gold on every app page, whatever the app's accent; use it for every Pro feature */
.pro-badge { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 1px 8px 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; vertical-align: 3px;
  color: var(--pro-ink); background: var(--pro-gold); }
/* the crown, as on the store screenshots, drawn in the text colour */
.pro-badge::before { content: ''; width: 11px; height: 11px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 8.5l4.6 3.6L12 5l4.4 7.1L21 8.5l-1.7 9.5H4.7z M4.7 19.5h14.6V21H4.7z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 8.5l4.6 3.6L12 5l4.4 7.1L21 8.5l-1.7 9.5H4.7z M4.7 19.5h14.6V21H4.7z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* light on the floor under the phone */
.w-glow { position: absolute; inset: -10% -25%; pointer-events: none; z-index: -1;
  background: radial-gradient(34% 40% at 50% 50%, var(--accent-glow), rgba(6, 7, 13, 0) 72%); }
.w-ring { position: absolute; left: 50%; top: calc(50% + var(--w) * 1.08); width: calc(var(--w) * 2.7); aspect-ratio: 1; pointer-events: none;
  transform: translate(-50%, -50%) rotateX(78deg); border-radius: 50%; }
.w-ring::before { content: ''; position: absolute; inset: 0; border-radius: 50%; padding: 2px;
  background: conic-gradient(from 0deg, transparent 0deg, color-mix(in srgb, var(--accent) 95%, transparent) 80deg, rgba(168, 85, 247, 0.8) 170deg, transparent 250deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin 16s linear infinite; }
.w-ring::after { content: ''; position: absolute; inset: 18%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Bill Check: rows of the real dashboard float out in front of the phone */
.chip { position: absolute; width: calc(var(--w) * 0.92); border-radius: 12px; overflow: hidden; pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 26px 50px -18px rgba(0, 0, 0, 0.85), 0 0 28px -10px var(--accent); animation: float 7s ease-in-out infinite alternate; }
.chip img { width: 100%; height: auto; }
.ch-sum { left: calc(50% - var(--w) * 1.42); top: calc(50% - var(--w) * 0.96); transform: translateZ(90px) rotateY(16deg) rotateZ(-2deg); animation-duration: 8s; }
.ch-rent { left: calc(50% + var(--w) * 0.36); top: calc(50% - var(--w) * 0.24); transform: translateZ(110px) rotateY(-16deg) rotateZ(2deg); animation-duration: 6.4s; }
.ch-elec { left: calc(50% - var(--w) * 1.42); top: calc(50% + var(--w) * 0.5); transform: translateZ(90px) rotateY(16deg) rotateZ(-2deg); animation-duration: 7.6s; }

/* Partivo: small glass cards for games from the app's home screen, floating beside the phone */
.game-chip { position: absolute; display: flex; align-items: center; gap: 12px; padding: 11px 18px 11px 11px; border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent); background-color: rgba(16, 14, 30, 0.9);
  background-image: linear-gradient(140deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 55%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 24px 50px -20px rgba(0, 0, 0, 0.85), 0 0 30px -12px var(--accent);
  animation: chip-drift 6s ease-in-out infinite alternate;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
/* a slow, small drift (6px), the two cards out of step; the phone stays the main thing */
@keyframes chip-drift { from { translate: 0 -3px; } to { translate: 0 3px; } }
.game-chip:hover { border-color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 24px 50px -20px rgba(0, 0, 0, 0.85), 0 0 46px -8px var(--accent); }
.game-chip .gc-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #fff;
  background: linear-gradient(140deg, #a855f7, #ec4899); box-shadow: 0 8px 20px -6px rgba(236, 72, 153, 0.7); }
/* the same emoji the app shows for each game */
.game-chip .gc-icon { font: 22px/1 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.game-chip b { display: block; font-size: 15px; line-height: 1.2; }
.game-chip span { font-size: 12px; color: var(--fog); }
.gc-1 { left: calc(50% - var(--w) * 1.5); top: calc(50% - var(--w) * 0.62); transform: translateZ(90px) rotateY(14deg) rotateZ(-2deg); }
.gc-2 { left: calc(50% + var(--w) * 0.46); top: calc(50% + var(--w) * 0.34); transform: translateZ(110px) rotateY(-14deg) rotateZ(2deg); animation-delay: -3s; }

/* Partivo: the real store screens fan out like a hand of cards */
.fan { position: absolute; inset: 0; transform-style: preserve-3d; }
.fan-card { position: absolute; left: 50%; top: 50%; width: calc(var(--w) * 0.86); aspect-ratio: 520 / 1125; border-radius: 18px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 34px -12px var(--accent), 0 40px 90px -24px rgba(0, 0, 0, 0.85);
  transform: translate(-50%, -50%) translateX(calc(var(--i) * 96%)) translateZ(calc(var(--i) * var(--i) * -90px)) rotateY(calc(var(--i) * -14deg)) rotateZ(calc(var(--i) * 5deg)); }
.fan-card img { width: 100%; height: 100%; object-fit: cover; }
.fan-card.fc-left { --i: -1; }
.fan-card.fc-mid { --i: 0; z-index: 2; }
.fan-card.fc-right { --i: 1; }
.fan-light { position: absolute; inset: 4% -10%; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 79, 216, 0.28), rgba(255, 194, 61, 0.12) 55%, rgba(6, 7, 13, 0) 100%); }
.fan ~ .w-ring { top: calc(50% + var(--w) * 1.0); width: calc(var(--w) * 3); }

/* ---------- screenshots from the stores ---------- */
.showcase { padding: clamp(68px, 10vh, 118px) 0 clamp(34px, 5vh, 60px); }
.showcase .section-head { padding: 0 var(--gutter); }
.showcase-track {
  display: flex; gap: clamp(14px, 1.5vw, 22px); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); padding: 10px var(--gutter) 34px;
  scrollbar-width: none; cursor: grab; -webkit-overflow-scrolling: touch;
}
.showcase-track::-webkit-scrollbar { display: none; }
.showcase-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.shot { flex: none; width: clamp(210px, 17vw, 250px); scroll-snap-align: start; border-radius: 22px; overflow: hidden; position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 34px -14px var(--accent), 0 34px 70px -30px rgba(0, 0, 0, 0.9);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.shot:hover { transform: translateY(-6px); border-color: var(--accent-soft); box-shadow: 0 0 44px -10px var(--accent), 0 40px 80px -30px rgba(0, 0, 0, 0.9); }
/* centred when they all fit, scrollable from the first one when they do not */
.shot:first-child { margin-left: auto; }
.shot:last-child { margin-right: auto; }
.shot img { width: 100%; height: auto; pointer-events: none; -webkit-user-drag: none; user-select: none; }

/* ---------- features ---------- */
.features { padding: clamp(52px, 8.5vh, 100px) var(--gutter); }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.feature { padding: clamp(24px, 2.2vw, 32px); text-align: center; transition: transform 0.45s var(--ease), border-color 0.45s var(--ease); }
.feature:hover { transform: translateY(-4px); border-color: var(--accent-soft); }
.f-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 24px; border-radius: 14px; color: var(--accent);
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 22%, transparent), rgba(168, 85, 247, 0.06));
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent); box-shadow: 0 0 26px -8px var(--accent); }
.f-icon svg { width: 26px; height: 26px; }
.feature h3 { font-weight: 700; font-size: clamp(19px, 1.5vw, 22px); letter-spacing: -0.02em; margin-bottom: 10px; }
.feature p { color: var(--fog); font-size: 16px; }

/* ---------- closing call to action ---------- */
.final { padding: clamp(32px, 6.5vh, 80px) var(--gutter) 44px; }
.final-panel { position: relative; overflow: hidden; isolation: isolate; text-align: center; border-radius: 32px;
  padding: clamp(56px, 10vh, 110px) clamp(24px, 6vw, 96px); }
.final-panel::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 80% at 50% 0%, var(--accent-glow), rgba(6, 7, 13, 0) 70%),
              radial-gradient(50% 70% at 50% 110%, rgba(168, 85, 247, 0.16), rgba(6, 7, 13, 0) 70%); }
.final-panel h2 { font-weight: 700; font-size: clamp(32px, 4.2vw, 60px); line-height: 1.05; letter-spacing: -0.04em; margin-bottom: 16px; text-wrap: balance; }
.final-panel p { color: rgba(236, 238, 248, 0.8); font-size: clamp(17px, 1.3vw, 19px); margin-bottom: 32px; }
.final-panel .stores { justify-content: center; margin: 0 auto; }
.app-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 34px; font-size: 14px; }
.app-legal a { color: var(--fog); text-decoration: none; transition: color 0.25s var(--ease); }
.app-legal a:hover { color: var(--paper); }

/* ---------- footer (same as the home page) ---------- */
.site-footer { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 36px clamp(24px, 4vw, 64px);
  padding: clamp(48px, 8vh, 72px) var(--gutter) 40px; border-top: 1px solid var(--line); }
.f-brand img { height: 26px; width: auto; margin-bottom: 16px; }
.f-brand p { color: var(--fog); font-size: 15px; max-width: 30ch; }
/* two deliberate lines on desktop; narrow screens wrap on their own */
@media (min-width: 900px) { .f-brand .f-line { display: block; } }
.f-col { display: grid; align-content: start; gap: 10px; }
.f-title { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fog); margin-bottom: 6px; }
.f-col a { color: rgba(236, 238, 248, 0.82); text-decoration: none; font-size: 15px; width: fit-content; transition: color 0.25s var(--ease); }
.f-col a:hover { color: var(--paper); }
.f-copy { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid var(--line); color: var(--fog); font-size: 14px; }

/* ---------- tablet and phone ---------- */
@media (max-width: 1099px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  :root { --nav-h: 64px; }
  .nav .nav-hide-sm, .logo-tag { display: none; }
  .app-hero { grid-template-columns: 1fr; min-height: 0; padding-top: calc(var(--nav-h) + 20px); }
  .hero-visual { --w: min(50vw, 240px); height: calc(var(--w) * 2.5); }
  .device { --ry: -10deg; }
  .flashcard { width: min(36vw, 160px); }
  .flashcard .face { padding: 11px 12px; border-radius: 12px; }
  .flashcard p { font-size: 12px; }
  .fc-1 { left: 0; top: 4%; }
  .fc-2 { left: auto; right: 0; top: 38%; }
  .fc-3 { left: 0; top: auto; bottom: 4%; }
  .chip { width: min(46vw, 200px); }
  .ch-sum { left: 0; top: 4%; transform: translateZ(30px) rotateY(14deg) rotateZ(-3deg); }
  .ch-rent { left: auto; right: 0; top: 46%; transform: translateZ(40px) rotateY(-12deg) rotateZ(2deg); }
  .ch-elec { left: 0; top: auto; bottom: 8%; transform: translateZ(20px) rotateY(10deg) rotateZ(2deg); }
  .fan-card { width: calc(var(--w) * 0.66); }
  .gc-1 { left: 0; transform: translateZ(30px) rotateY(12deg) rotateZ(-3deg); }
  .gc-2 { left: auto; right: 0; transform: translateZ(30px) rotateY(-12deg) rotateZ(3deg); }
  .site-footer { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .final { padding-bottom: 28px; }
  .stores { grid-auto-flow: row; }
  .feature-grid { grid-template-columns: 1fr; }
  .final-panel { border-radius: 24px; }
  .nav .logo img { height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
}
