/* =========================================================
   Uplift Toolbox — shared stylesheet
   One file for the whole site. Sections:
   1. Font + design tokens   2. Base / reset   3. Layout helpers
   4. Header + nav           5. Buttons         6. Home page
   7. App cards              8. App pages       9. Gallery
   10. Features + facts      11. Legal pages    12. Contact form
   13. Footer                14. Scroll reveal + motion
   ========================================================= */

/* ---------- 1. Font + design tokens ---------- */
/* Nunito (SIL Open Font License), self-hosted, Latin subset */
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --navy: #02203f;          /* brand text colour */
  --ink: #1d3557;           /* body text */
  --muted: #4d6380;         /* secondary text */
  --peach: #fbc9ad;         /* brand gradient start */
  --sky: #9fd6ef;           /* brand gradient end */
  --gold: #f6a91c;          /* brand accent */
  --bg: #fbfaf8;
  --card: #ffffff;
  --line: rgba(2, 32, 69, .1);
  --accent: #24527a;        /* overridden per app page */
  --accent-2: #9fd6ef;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(2, 32, 69, .08), 0 2px 6px rgba(2, 32, 69, .05);
  --shadow-lg: 0 24px 60px rgba(2, 32, 69, .16);
  --max: 1160px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- 2. Base / reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 850; }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 10px;
}
.skip-link:focus { top: 1rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- 3. Layout helpers ---------- */
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .75rem;
}
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); }

/* ---------- 4. Header + nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 248, .78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(2, 32, 69, .06); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy); font-weight: 900; font-size: 1.15rem; }
.brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 2px 8px rgba(2, 32, 69, .15); }
.nav-links { display: flex; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: .5rem .9rem; border-radius: 999px; text-decoration: none;
  color: var(--navy); font-weight: 700; transition: background .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: rgba(2, 32, 69, .07); }
.nav-toggle {
  display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--navy);
}
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: currentColor; margin: 5px 0; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    background: var(--bg); padding: .75rem 1.25rem 1.25rem; border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(2, 32, 69, .08);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .3s var(--ease), opacity .25s, visibility .25s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: .8rem 1rem; }
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.4rem;
  border-radius: 999px; font-weight: 800; text-decoration: none; border: 2px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s, background .2s; cursor: pointer; font: inherit; font-weight: 800;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 8px 22px rgba(2, 32, 69, .25); }
.btn-ghost { background: rgba(255, 255, 255, .7); color: var(--navy); border-color: rgba(2, 32, 69, .15); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* "Get it on Google Play" button (custom, no external badge image) */
.play-btn {
  display: inline-flex; align-items: center; gap: .7rem; padding: .6rem 1.25rem .6rem 1rem;
  background: #000; color: #fff; border-radius: 14px; text-decoration: none; line-height: 1.1;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22); transition: transform .25s var(--ease), box-shadow .25s;
}
.play-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, .28); }
.play-btn svg { width: 26px; height: 28px; flex: none; }
.play-btn small { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.play-btn strong { display: block; font-size: 1.15rem; font-weight: 800; }
.play-btn.sm { padding: .45rem .9rem .45rem .75rem; border-radius: 11px; }
.play-btn.sm svg { width: 20px; height: 22px; }
.play-btn.sm strong { font-size: .95rem; }

/* ---------- 6. Home page ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem); }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, var(--peach) 0%, #fdf3ec 38%, #f2f8fb 62%, var(--sky) 100%);
}
/* soft animated colour blobs */
.hero-bg::before, .hero-bg::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55;
  animation: drift 18s ease-in-out infinite alternate;
}
.hero-bg::before { width: 420px; height: 420px; background: #ffb38a; left: -120px; top: -100px; }
.hero-bg::after { width: 480px; height: 480px; background: #7cc8ec; right: -140px; bottom: -160px; animation-delay: -9s; }
@keyframes drift { to { transform: translate(80px, 50px) scale(1.15); } }

.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero h1 .accent {
  white-space: nowrap;
  background: linear-gradient(90deg, #e0743a, var(--gold) 55%, #f08a3c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { max-width: 34rem; margin-bottom: 2rem; color: #2f4a6b; }

/* Orbit: logo in the centre with the six app icons circling it */
.orbit { position: relative; width: min(420px, 100%); aspect-ratio: 1; margin-inline: auto; }
.orbit-logo {
  position: absolute; inset: 26%; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .6), var(--shadow-lg);
  animation: breathe 6s ease-in-out infinite;
}
.orbit-ring { position: absolute; inset: 0; animation: spin 60s linear infinite; }
.orbit-ring::before { content: ""; position: absolute; inset: 7%; border: 2px dashed rgba(2, 32, 69, .14); border-radius: 50%; }
.orbit-item {
  position: absolute; width: 19%; aspect-ratio: 1; left: 40.5%; top: 40.5%;
  transform: rotate(var(--a)) translate(0, -215%) rotate(calc(-1 * var(--a)));
}
.orbit-item a { display: block; animation: spin 60s linear infinite reverse; }
.orbit-item img { border-radius: 24%; box-shadow: 0 10px 24px rgba(2, 32, 69, .22); transition: transform .3s var(--ease); }
.orbit-item a:hover img { transform: scale(1.12); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.03); } }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.value {
  background: var(--card); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.value .ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--peach), var(--sky)); color: var(--navy);
}
.value .ico svg { width: 24px; height: 24px; }
.value p { color: var(--muted); margin: 0; }

.band {
  position: relative; overflow: hidden; border-radius: 32px; padding: clamp(2rem, 6vw, 4rem);
  background: linear-gradient(120deg, #0b2a4d, #173f6b 55%, #24527a); color: #e8f1fa;
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
}
.band h2 { color: #fff; }
.band p { color: #c6d7ea; margin: 0; }
.band::after {
  content: ""; position: absolute; width: 360px; height: 360px; right: -80px; top: -140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 169, 28, .45), transparent 65%);
}
.band .btn { position: relative; z-index: 1; }
.btn-yt { background: #fff; color: #0b2a4d; }
.btn-yt svg { width: 26px; height: 18px; }
.btn-yt svg[viewBox="0 0 24 24"] { width: 20px; height: 20px; color: #000; }

/* ---------- 7. App cards ---------- */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.app-card {
  position: relative; display: flex; flex-direction: column; background: var(--card);
  border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s;
  overflow: hidden;
}
.app-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.app-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.app-card-top { display: flex; gap: 1rem; align-items: center; margin-bottom: .9rem; }
.app-card img.icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 6px 16px rgba(2, 32, 69, .18); flex: none; transition: transform .4s var(--ease); }
.app-card:hover img.icon { transform: rotate(-6deg) scale(1.05); }
.app-card h3 { margin: 0; font-size: 1.25rem; }
.app-card h3 a { color: inherit; text-decoration: none; }
/* make the whole card clickable via the title link */
.app-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.app-card .tag { font-size: .85rem; color: var(--muted); font-weight: 700; }
.app-card p { color: var(--muted); flex: 1; }
.app-card-actions { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; position: relative; z-index: 1; }
.more-link { font-weight: 800; text-decoration: none; color: var(--navy); }
.more-link span { display: inline-block; transition: transform .25s var(--ease); }
.more-link:hover span { transform: translateX(4px); }

/* ---------- 8. App pages ---------- */
.app-hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 7vw, 5rem) 0; color: #fff; }
.app-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark, #0b1b33) 100%);
}
.app-hero::after {
  content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; right: -160px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-2), transparent 62%); opacity: .45;
  animation: drift 16s ease-in-out infinite alternate;
}
.app-hero h1, .app-hero h2 { color: #fff; }
.app-hero .lede { color: rgba(255, 255, 255, .86); }
.app-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.app-hero .icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 14px 30px rgba(0, 0, 0, .35); margin-bottom: 1.25rem; }
.app-hero .subtitle { font-weight: 700; opacity: .85; margin-top: -.3rem; }
.back-link { display: inline-block; color: rgba(255, 255, 255, .85); text-decoration: none; font-weight: 700; margin-bottom: 1.5rem; }
.back-link:hover { color: #fff; text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.chips li { padding: .35rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 800; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); }

/* phone frame around a screenshot */
.phone {
  position: relative; width: min(300px, 66vw); margin-inline: auto; border-radius: 38px; padding: 10px;
  background: #0d0f14; box-shadow: 0 30px 70px rgba(0, 0, 0, .45), inset 0 0 0 2px #2b2f38;
}
.phone img { border-radius: 30px; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.app-hero .phone { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px) rotate(-1deg); } }

/* ---------- 9. Gallery ---------- */
.gallery-wrap { position: relative; }
.gallery {
  display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 1rem .25rem 2rem;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.gallery figure { flex: 0 0 min(240px, 68vw); margin: 0; scroll-snap-align: center; }
.gallery img {
  width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.gallery figure:hover img { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow-lg); }
.gallery-nav { display: flex; gap: .5rem; justify-content: flex-end; margin-top: -1rem; }
.gallery-nav button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card);
  color: var(--navy); font-size: 1.2rem; cursor: pointer; box-shadow: var(--shadow); transition: transform .2s;
}
.gallery-nav button:hover { transform: scale(1.08); }

/* ---------- 10. Features + facts ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature {
  position: relative; background: var(--card); border-radius: var(--radius); padding: 1.6rem 1.5rem;
  border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
}
.feature::before {
  content: ""; position: absolute; left: 0; top: 1.6rem; width: 5px; height: 2rem; border-radius: 0 4px 4px 0;
  background: linear-gradient(var(--accent), var(--accent-2));
}
.feature h3 { font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted); font-size: 1rem; }
.note {
  margin-top: 2rem; padding: 1.25rem 1.5rem; border-radius: 18px; background: #fff;
  border: 1px dashed rgba(2, 32, 69, .2); color: var(--muted); font-size: .95rem;
}
.privacy-box {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center; padding: 2rem;
  border-radius: var(--radius); background: linear-gradient(120deg, #fff, #f1f7fb); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.privacy-box .shield { width: 56px; height: 56px; color: var(--accent); }
.privacy-box h2 { font-size: 1.4rem; margin-bottom: .3rem; }
.privacy-box p { margin: 0; color: var(--muted); }
.mini-apps { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.mini-apps a { display: flex; flex-direction: column; align-items: center; gap: .4rem; width: 104px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: .85rem; text-align: center; }
.mini-apps img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 6px 14px rgba(2, 32, 69, .16); transition: transform .3s var(--ease); }
.mini-apps a:hover img { transform: translateY(-4px) rotate(-4deg); }

/* ---------- 11. Legal pages ---------- */
.page-hero { padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; background: linear-gradient(110deg, #fde6d8, #f6f9fb 55%, #d4ecf8); }
.page-hero .icon { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 1rem; box-shadow: 0 6px 14px rgba(2, 32, 69, .16); }
.legal { max-width: 760px; }
.legal h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.legal h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.legal ul { padding-left: 1.3rem; }
.legal li { margin-bottom: .45rem; }
.legal .meta { color: var(--muted); font-weight: 700; }
.draft-banner { background: #fff3cd; border: 2px solid #f0c36d; color: #6b4c00; padding: 1rem 1.25rem; border-radius: 14px; font-weight: 700; }
/* Embedded Google Doc privacy policy.
   The frame is given a fixed tall height per page (--h desktop, --hm mobile, set on the
   .policy-embed element in each privacy page) so the whole policy shows without scrolling
   inside a box. If a Doc gets much longer, raise those numbers; it still scrolls inside if needed.
   Negative margins trim Google's wide blank page margins. */
.policy-embed {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.policy-embed iframe {
  display: block; width: 100%; border: 0; background: #fff;
  height: var(--h, max(80vh, 600px)); margin: -48px 0 -40px;
}
@media (max-width: 640px) {
  .policy-embed iframe { width: calc(100% + 150px); margin-left: -75px; height: var(--hm, max(80vh, 600px)); }
}
.policy-fallback { margin-top: .9rem; font-size: .92rem; color: var(--muted); }
.policy-list { list-style: none; padding: 0; display: grid; gap: .8rem; max-width: 620px; }
.policy-list a { display: flex; align-items: center; gap: 1rem; padding: .8rem 1rem; background: #fff; border-radius: 16px; border: 1px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 800; box-shadow: var(--shadow); transition: transform .25s var(--ease); }
.policy-list a:hover { transform: translateX(4px); }
.policy-list img { width: 44px; height: 44px; border-radius: 12px; }

/* ---------- 12. Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
.form-card { background: var(--card); padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 800; color: var(--navy); margin-bottom: .35rem; }
.field .hint { font-weight: 600; color: var(--muted); font-size: .85rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); padding: .8rem 1rem; border-radius: 14px;
  border: 1.5px solid rgba(2, 32, 69, .18); background: #fdfdfc; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(36, 82, 122, .15); }
.field textarea { min-height: 160px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* honeypot: hidden from people */
.form-status { margin-top: 1rem; font-weight: 800; min-height: 1.5em; }
.form-status.ok { color: #1b7a43; }
.form-status.err { color: #b3261e; }
.contact-points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.contact-points li { display: flex; gap: .7rem; align-items: flex-start; color: var(--muted); }
.contact-points svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: .15rem; }

/* ---------- 13. Footer ---------- */
.site-footer { background: #0b1f38; color: #b8c8dc; padding: 3.5rem 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer .brand { color: #fff; margin-bottom: .6rem; }
.site-footer h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.site-footer a { color: #dbe6f3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound .big { font-size: clamp(5rem, 20vw, 9rem); font-weight: 900; line-height: 1; background: linear-gradient(90deg, #e0743a, var(--gold), #2f8fc4); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .app-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .app-hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid .orbit { order: -1; width: min(340px, 86vw); }
  .app-hero-grid .phone { margin-top: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .app-grid, .feature-grid, .value-grid { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; }
  .privacy-box { grid-template-columns: 1fr; text-align: left; }
  .hero { text-align: center; }
  .hero .lede { margin-inline: auto; }
  .hero .btn-row { justify-content: center; }
  .gallery-nav { display: none; }
}

/* ---------- 14. Scroll reveal + motion ---------- */
/* Only hide elements when JS is running (html.js), so the site still works without JS */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.hero .reveal-now { animation: rise .9s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

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