/* ============================================================
   webs · shared design system
   Warm, premium, dark-first, minimalist. Crafted-by-one-person.
   Every app overrides the --brand-* tokens in its own app.css.
   Fraunces (display, italic) + Geist (body) + Geist Mono.
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand tokens — OVERRIDE these per app in app.css.
     Defaults are Tobydoro warm-ink so the system looks right out of the box. */
  --brand-bg-dark: #15110d;          /* warm ink — primary canvas */
  --brand-bg-light: #f3ede3;         /* bone — light sections */
  --brand-accent: #e8af79;           /* burnt sienna — CTAs, links, highlights */
  --brand-accent-2: #b46c2d;         /* warm sand — secondary accent */
  --brand-accent-ink: #15110d;       /* text color that sits on top of the accent */

  /* Derived surface scale (dark-first) */
  --bg: var(--brand-bg-dark);
  --bg-elevated: color-mix(in srgb, var(--brand-bg-dark) 88%, #ffffff 12%);
  --bg-card: color-mix(in srgb, var(--brand-bg-dark) 92%, #ffffff 8%);

  /* Text (on dark) — never pure white */
  --text-1: rgba(255, 255, 255, 0.90);
  --text-2: rgba(255, 255, 255, 0.58);
  --text-3: rgba(255, 255, 255, 0.34);
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.14);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geist Mono", "SF Mono", ui-monospace, "JetBrains Mono", monospace;

  /* Fluid type scale */
  --fs-hero: clamp(2.75rem, 7vw + 0.5rem, 5rem);
  --fs-h1:   clamp(2.1rem, 4.5vw + 0.5rem, 3.4rem);
  --fs-h2:   clamp(1.6rem, 2.6vw + 0.5rem, 2.3rem);
  --fs-h3:   clamp(1.2rem, 1.2vw + 0.6rem, 1.45rem);
  --fs-body: clamp(1rem, 0.4vw + 0.95rem, 1.18rem);
  --fs-sm:   0.95rem;
  --fs-cap:  0.8rem;
  --fs-eyebrow: 0.72rem;

  /* Spacing */
  --space-section: clamp(5rem, 11vh, 9rem);
  --gap: clamp(1rem, 2vw, 1.75rem);

  /* Shape */
  --radius-card: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Container */
  --maxw: 1120px;
  --maxw-prose: 680px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;

  /* Shadows / glow */
  --shadow-soft: 0 1px 2px rgba(0,0,0,.2), 0 12px 40px rgba(0,0,0,.35);
  --shadow-device: 0 2px 6px rgba(0,0,0,.4), 0 40px 90px -30px rgba(0,0,0,.7);

  color-scheme: dark;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
::selection { background: var(--brand-accent); color: var(--brand-accent-ink); }

/* ---------- 3. Typography ---------- */
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.015em; font-weight: 600; }
.display {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: 1rem;
}
.lead { font-size: clamp(1.1rem, 1vw + 1rem, 1.4rem); color: var(--text-2); line-height: 1.5; }
.muted { color: var(--text-2); }
.tnum { font-variant-numeric: tabular-nums; font-family: var(--font-mono); }

/* ---------- 4. Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 2.5rem); }
.section { padding-block: var(--space-section); position: relative; }
.section--tight { padding-block: clamp(3rem, 7vh, 5rem); }
.prose { max-width: var(--maxw-prose); }
.center { text-align: center; margin-inline: auto; }
.stack > * + * { margin-top: 1.1rem; }

/* Light sections flip the palette */
.section--light {
  --bg: var(--brand-bg-light);
  --bg-card: color-mix(in srgb, var(--brand-bg-light) 96%, #000 4%);
  --bg-elevated: color-mix(in srgb, var(--brand-bg-light) 92%, #000 8%);
  --text-1: color-mix(in srgb, var(--brand-bg-dark) 92%, transparent);
  --text-2: color-mix(in srgb, var(--brand-bg-dark) 60%, transparent);
  --text-3: color-mix(in srgb, var(--brand-bg-dark) 38%, transparent);
  --hairline: color-mix(in srgb, var(--brand-bg-dark) 12%, transparent);
  --hairline-strong: color-mix(in srgb, var(--brand-bg-dark) 20%, transparent);
  --brand-accent: var(--brand-accent-2);
  background: var(--bg);
  color: var(--text-1);
}

/* ---------- 5. Atmospheric halo ---------- */
.halo {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.halo::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 50%;
  width: min(120vw, 1100px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle at center,
    color-mix(in srgb, var(--brand-accent) 22%, transparent) 0%,
    transparent 60%);
  filter: blur(20px);
  opacity: 0.7;
  animation: halo-breathe 9s var(--ease) infinite alternate;
}
@keyframes halo-breathe {
  from { transform: translateX(-50%) scale(1); opacity: 0.55; }
  to   { transform: translateX(-50%) scale(1.12); opacity: 0.8; }
}
@media (prefers-reduced-motion: reduce) { .halo::before { animation: none; } }
.section > .container { position: relative; z-index: 1; }

/* ---------- 6. Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--brand-bg-dark) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--hairline); }
.nav__inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 0.85rem clamp(1.25rem, 5vw, 2.5rem);
  display: flex; align-items: center; gap: 1.5rem;
}
.nav__brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; letter-spacing: -0.01em; }
.nav__brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav__links { display: flex; gap: 1.6rem; margin-left: auto; align-items: center; }
.nav__links a { font-size: var(--fs-sm); color: var(--text-2); transition: color 0.2s; }
.nav__links a:hover { color: var(--text-1); }
.nav__cta { margin-left: auto; }
.nav__links + .nav__cta { margin-left: 0; }
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
}

/* ---------- 7. Buttons & App Store badge ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.4rem; border-radius: var(--radius-pill);
  font-weight: 500; font-size: var(--fs-sm); line-height: 1;
  transition: transform 0.2s var(--ease), background 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--brand-accent); color: var(--brand-accent-ink); font-weight: 600; }
.btn--primary:hover { opacity: 0.9; }
.btn--ghost { border: 1px solid var(--hairline-strong); color: var(--text-1); }
.btn--ghost:hover { background: var(--bg-card); }

.appstore {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 1.25rem; border-radius: 14px;
  background: #fff; color: #000;
  border: 1px solid rgba(0,0,0,0.08);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.appstore:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.appstore svg { width: 26px; height: 26px; flex: none; }
.appstore__txt { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.appstore__txt small { font-size: 0.62rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.04em; }
.appstore__txt strong { font-size: 1.05rem; font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

/* ---------- 7b. "Scan to install" — the desktop path ----------
   Every App Store link on a landing page points at apps.apple.com. On an
   iPhone that opens the App Store and installs. On a desktop it opens a web
   page that cannot install anything, so the visitor reads and leaves.

   This hands them the phone instead: a QR of that same store URL, cut into
   shared/qr/<slug>.svg by shared/qr/make.py and gated by an actual decode.

   Shown ONLY where the dead end exists — a fine pointer (mouse or trackpad as
   the PRIMARY input) on a wide viewport. A phone and an iPad both report
   `pointer: coarse`, even an iPad driven by a Magic Keyboard trackpad, so both
   keep today's behaviour untouched: this block never renders and, because the
   QR is a background-image inside the query, its file is never even requested.
   Capability, not user agent — a UA string calls an iPad a Macintosh.

   No JS of its own. With scripting off the rules below still apply — though the
   panel then sits at opacity 0 like everything else in the hero, because the
   site's [data-reveal] waits for base.js. The App Store badge beside it is
   hidden the same way, so this degrades to exactly today's behaviour. */
.qr { display: none; }

@media (min-width: 900px) and (pointer: fine) {
  /* The panel sits on its own line under the hero CTA, so the App Store badge
     keeps the hero's centre axis and does not move by a pixel. Only the gap
     BELOW the badge changes: the panel inherits the space the row gave up.
     `.hero` prefixes the override because §9 declares .hero__cta later in this
     file and a media query adds no specificity of its own. */
  .hero .hero__cta { margin-bottom: 1.35rem; }
  .qr {
    display: inline-flex; align-items: center; gap: 1rem;
    margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
    padding: 0.7rem 1.2rem 0.7rem 0.7rem;
    text-align: left;
    border: 1px solid color-mix(in srgb, var(--brand-accent) 28%, transparent);
    background: color-mix(in srgb, var(--brand-accent) 5%, transparent);
    border-radius: var(--radius-card);
  }
  /* The SVG carries its own white ground and the spec's 4-module quiet zone,
     so it needs no padding of its own — it fills the tile edge to edge. */
  .qr__code {
    flex: none; width: 132px; height: 132px;
    border-radius: 10px;
    background: #fff center / contain no-repeat;
  }
  .qr__copy { max-width: 26ch; font-size: var(--fs-cap); line-height: 1.5; color: var(--text-2); }
  .qr__copy b {
    display: block; margin-bottom: 0.3rem;
    font-family: var(--font-mono); font-weight: 500;
    letter-spacing: 0.12em; text-transform: uppercase;
    font-size: var(--fs-eyebrow); color: var(--text-1);
  }

  /* Relative to THIS stylesheet, so all four resolve from shared/. */
  .qr__code[data-qr="hazlo"]     { background-image: url("qr/hazlo.svg"); }
  .qr__code[data-qr="tobydoro"]  { background-image: url("qr/tobydoro.svg"); }
  .qr__code[data-qr="countie"]   { background-image: url("qr/countie.svg"); }
  .qr__code[data-qr="dumbphone"] { background-image: url("qr/dumbphone.svg"); }
}

/* ---------- 8. iPhone device frame (pure CSS) ---------- */
.device {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  aspect-ratio: 1290 / 2796;     /* 6.7"/6.9" screenshot ratio */
  border-radius: 13.5% / 6.2%;
  padding: 2.6%;
  background:
    linear-gradient(150deg, #3a3a3c 0%, #1c1c1e 26%, #2c2c2e 52%, #131315 100%);
  box-shadow: var(--shadow-device);
}
.device::after {  /* side button / titanium edge highlight */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.08), inset 0 2px 3px rgba(255,255,255,0.12);
  pointer-events: none;
}
.device__screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 11% / 5%;
  overflow: hidden;
  background: var(--bg-elevated);
}
.device__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.device__island {
  position: absolute; top: 2.4%; left: 50%; transform: translateX(-50%);
  width: 32%; height: 3.1%; min-height: 18px;
  background: #000; border-radius: 999px; z-index: 3;
}
.device--tilt { transform: rotate(-4deg); }
.device--tilt-r { transform: rotate(4deg); }

/* Device cluster (overlapping phones, hero) */
.device-cluster { position: relative; display: flex; justify-content: center; align-items: flex-end; }
.device-cluster .device { max-width: 250px; }
.device-cluster .device:nth-child(2) { margin-inline: -7%; z-index: 2; max-width: 280px; }

/* ---------- 8b. Clean device mockups (.shot) ----------
   Screenshots are pre-cropped to the bare cosmic-orange iPhone (transparent
   background, rounded corners). No card/box — the phone floats with a soft
   drop-shadow that follows its shape. Bigger = the app reads clearly. */
.shot { position: relative; }
.shot img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.5));
}
.shot--tilt { transform: rotate(-3deg); }
.shot--tilt-r { transform: rotate(3deg); }

/* Hero cluster: 2–3 overlapping, fanned phones — large */
.shot-cluster { display: flex; justify-content: center; align-items: center; padding-block: 0.5rem; }
.shot-cluster .shot { flex: 0 0 auto; width: clamp(200px, 22vw, 296px); transition: transform 0.45s var(--ease); }
.shot-cluster .shot:nth-child(1) { transform: rotate(-7deg) translateY(22px) scale(0.92); z-index: 1; }
.shot-cluster .shot:nth-child(2) { transform: scale(1.06); z-index: 3; margin-inline: -7%; }
.shot-cluster .shot:nth-child(3) { transform: rotate(7deg) translateY(22px) scale(0.92); z-index: 1; }
.shot-cluster:hover .shot:nth-child(1) { transform: rotate(-10deg) translateY(10px) scale(0.95); }
.shot-cluster:hover .shot:nth-child(3) { transform: rotate(10deg) translateY(10px) scale(0.95); }
@media (max-width: 720px) {
  .shot-cluster .shot:nth-child(1), .shot-cluster .shot:nth-child(3) { display: none; }
  .shot-cluster .shot:nth-child(2) { width: min(80vw, 360px); margin-inline: 0; transform: none; }
}

/* Feature-row phones — large, centered, no box */
.feature__media .shot { width: 100%; max-width: 360px; margin-inline: auto; }

/* Gallery for the full screenshot set — large phones.
   Default (no-JS / reduced-motion): manual horizontal snap-scroll.
   JS upgrades it to a seamless, never-ending auto-scroll marquee. */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(230px, 60vw, 322px);
  gap: clamp(1.75rem, 4.5vw, 3.5rem); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-block: 1.5rem 2.5rem;
  margin-inline: calc(-1 * clamp(1.25rem, 5vw, 2.5rem));
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
  scrollbar-width: none;
  /* edges dissolve into the page so the marquee never hard-cuts a phone */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.gallery::-webkit-scrollbar { display: none; }
.gallery .shot { scroll-snap-align: center; }

/* --- auto-scroll marquee (added by base.js once the track is built) --- */
.gallery--playing { display: block; overflow: hidden; scroll-snap-type: none; }
.gallery--playing .gallery__track {
  display: flex; width: max-content; gap: 0;
  animation: gallery-marquee var(--marquee-dur, 60s) linear infinite;
  will-change: transform;
}
.gallery--playing .gallery__track .shot {
  flex: 0 0 auto;
  width: clamp(230px, 60vw, 322px);
  margin-right: clamp(1.75rem, 4.5vw, 3.5rem);
}
@keyframes gallery-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .gallery--playing { display: grid; overflow-x: auto; }
  .gallery--playing .gallery__track { animation: none; display: contents; }
}

/* Cinematic showcase: a soft floor reflection under each phone + an accent glow
   pooling behind the marquee. The phones float in warm light, mirrored below. */
.gallery .shot {
  -webkit-box-reflect: below 8px
    linear-gradient(to bottom, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.05) 26%, transparent 44%);
}
.showcase { position: relative; overflow: hidden; }
.showcase .halo::before {
  top: 30%; width: min(150vw, 1280px); opacity: 0.55;
  background: radial-gradient(circle at center,
    color-mix(in srgb, var(--brand-accent) 26%, transparent) 0%, transparent 60%);
}

/* ---------- 9. Hero ---------- */
.hero { padding-top: clamp(3rem, 8vh, 6rem); padding-bottom: var(--space-section); text-align: center; }
.hero__title { font-size: var(--fs-hero); margin-bottom: 1.25rem; }
.hero__sub { font-size: clamp(1.1rem, 1.2vw + 1rem, 1.45rem); color: var(--text-2); max-width: 40ch; margin: 0 auto 2rem; line-height: 1.45; }
.hero__cta { justify-content: center; margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.hero__device { margin-top: 1rem; }

/* ---------- 10. Feature rows (alternating) ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.feature + .feature { margin-top: var(--space-section); }
.feature--reverse .feature__media { order: -1; }
.feature__title { font-size: var(--fs-h2); margin-bottom: 1rem; }
.feature__text p { color: var(--text-2); font-size: clamp(1.02rem, 0.5vw + 0.95rem, 1.2rem); }
.feature__media { display: flex; justify-content: center; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .feature--reverse .feature__media { order: 0; }
  .feature__text { max-width: 46ch; margin-inline: auto; }
}

/* ---------- 11. Feature grid (cards) ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 1.6rem;
  transition: border-color 0.3s, transform 0.3s var(--ease), background 0.3s;
}
.card:hover { border-color: var(--hairline-strong); transform: translateY(-3px); }
.card__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: color-mix(in srgb, var(--brand-accent) 16%, transparent);
  color: var(--brand-accent);
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { font-size: var(--fs-h3); margin-bottom: 0.4rem; }
.card p { color: var(--text-2); font-size: var(--fs-sm); }

/* ---------- 12. Maker's letter ---------- */
.letter { background: var(--bg-elevated); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); border: 1px solid var(--hairline); }
.letter__body { font-family: var(--font-display); font-style: italic; font-size: clamp(1.25rem, 1.5vw + 1rem, 1.7rem); line-height: 1.45; color: var(--text-1); }
.letter__body p + p { margin-top: 1.1rem; }
.letter__sign { margin-top: 1.6rem; font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--text-2); }

/* ---------- 13. Honest split (free / pro) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
@media (max-width: 700px) { .split { grid-template-columns: 1fr; } }
.split__col { border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 1.8rem; }
.split__col--pro { border-color: color-mix(in srgb, var(--brand-accent) 40%, transparent); background: color-mix(in srgb, var(--brand-accent) 6%, transparent); }
.split__col h3 { font-size: var(--fs-h3); margin-bottom: 1.1rem; display: flex; align-items: center; gap: 0.6rem; }
.split__col li { padding: 0.55rem 0; border-top: 1px solid var(--hairline); color: var(--text-2); display: flex; gap: 0.6rem; align-items: flex-start; }
.split__col li::before { content: "—"; color: var(--brand-accent); flex: none; }
.split__col li:first-child { border-top: none; }

/* ---------- 14. Footer ---------- */
.footer { border-top: 1px solid var(--hairline); padding-block: clamp(3rem, 7vh, 5rem); }
.footer__grid { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between; align-items: flex-start; }
.footer__brand { display: flex; align-items: center; gap: 0.7rem; font-weight: 600; }
.footer__brand img { width: 34px; height: 34px; border-radius: 9px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer__links a { color: var(--text-2); font-size: var(--fs-sm); transition: color 0.2s; }
.footer__links a:hover { color: var(--text-1); }
.footer__legal { margin-top: 2.5rem; color: var(--text-3); font-size: var(--fs-cap); max-width: 60ch; }
.footer__legal a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 15. Cross-promo strip (other apps) ---------- */
.apps-strip { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.app-chip { display: flex; align-items: center; gap: 0.8rem; padding: 0.9rem 1rem; border: 1px solid var(--hairline); border-radius: var(--radius-card); transition: border-color .25s, transform .25s var(--ease); }
.app-chip:hover { border-color: var(--hairline-strong); transform: translateY(-2px); }
.app-chip img { width: 42px; height: 42px; border-radius: 10px; }
.app-chip strong { font-size: 0.95rem; display: block; }
.app-chip span { font-size: 0.78rem; color: var(--text-2); }

/* ---------- 16. Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- 17. Misc helpers ---------- */
.divider { height: 1px; background: var(--hairline); border: 0; }
.badge-tag { display: inline-flex; gap: 0.4rem; align-items: center; padding: 0.3rem 0.7rem; border-radius: var(--radius-pill); border: 1px solid var(--hairline-strong); font-size: var(--fs-cap); color: var(--text-2); }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 999; background: var(--brand-accent); color: var(--brand-accent-ink); padding: 0.5rem 1rem; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 3px; border-radius: 4px; }
