/* ============================================================
   UV Buddy — uvbuddy.app
   "Sunny Buddies" sticker-pop design system, translated to CSS
   from the iOS app's Theme.swift.
   Flat sky, white cards, 3px ink borders, hard offset shadows,
   Nunito 600–900. Day / Night themes via 3-layer token system.
   ============================================================ */

/* ---------- 1. Tokens — Day (default) ---------- */
:root {
  --bg: #4DB8E8;
  --surface: #FFFFFF;
  --ink: #17324A;
  --border: #17324A;
  --ink2: #5A7A94;
  --onsky: #21405C;
  --link: #2673A8;
  --track: #E8F4FB;
  --uv-none: #CDEEFD;
  --row: #F6FBFE;
  --hair: #CDD8E2;
  --alert-bg: #FFE9EC;
  --alert-text: #96455A;
  --safe-bg: #DFF2E6;
  --safe-text: #1E6E42;
  --bezel: #0E2233;

  /* accents — identical in both themes (app rule) */
  --sun: #FFD23D;
  --sun-ink: #6B4A12;
  --uv-high: #E5642A;
  --safe: #2E9A5A;
  --danger: #CF2F3E;
  --amber: #F2A83A;
  --extreme: #9B51E0;
  --tan-1: #E8B584;
  --tan-2: #D18F4E;
  --tan-3: #A85F2B;
  --fitz-1: #FFE0C4;
  --fitz-2: #F4CFA6;
  --fitz-3: #E8B98A;
  --fitz-4: #C98D5C;
  --fitz-5: #9C623A;
  --fitz-6: #6B3D22;

  /* geometry (Theme.swift Metrics) */
  --bw: 3px;
  --bw-thin: 2px;
  --r-card: 20px;
  --r-tile: 18px;
  --r-chip: 16px;
  --shadow: 4px 4px 0 var(--border);
  --shadow-sm: 3px 3px 0 var(--border);
  --shadow-pop: 6px 6px 0 var(--border);
  --sticker-shadow: drop-shadow(3px 3px 0 rgba(23, 50, 74, 0.5));

  --badge-bg: #17324A;
  --badge-ink: #FFFFFF;
  --footer-bg: #122C44;
  --footer-ink: #EAF4FC;
  --footer-ink2: #8FB3D1;

  /* always-day constants for the CTA poster (never flip) */
  --day-sky: #4DB8E8;
  --day-ink: #17324A;
  --day-sun: #FFD23D;
  --day-surface: #FFFFFF;

  --font: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.44, 1);
  color-scheme: light;
}

/* ---------- 1b. Night theme (JS toggle) ---------- */
[data-theme="night"] {
  --bg: #0F2740;
  --surface: #1C3E5E;
  --ink: #EAF4FC;
  --border: #081524;
  --ink2: #8FB3D1;
  --onsky: #A9C6DE;
  --link: #7CC4F0;
  --track: #16334E;
  --uv-none: #2E5F86;
  --row: #24486C;
  --hair: #3A5D80;
  --alert-bg: #462331;
  --alert-text: #F09CB0;
  --safe-bg: #17402C;
  --safe-text: #8FE3AE;
  --bezel: #050F1A;
  --sticker-shadow: drop-shadow(3px 3px 0 rgba(4, 14, 24, 0.75));
  --badge-bg: #081524;
  --footer-bg: #081524;
  color-scheme: dark;
}

/* ---------- 1c. Night fallback for no-JS users (system preference) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0F2740;
    --surface: #1C3E5E;
    --ink: #EAF4FC;
    --border: #081524;
    --ink2: #8FB3D1;
    --onsky: #A9C6DE;
    --link: #7CC4F0;
    --track: #16334E;
    --uv-none: #2E5F86;
    --row: #24486C;
    --hair: #3A5D80;
    --alert-bg: #462331;
    --alert-text: #F09CB0;
    --safe-bg: #17402C;
    --safe-text: #8FE3AE;
    --bezel: #050F1A;
    --sticker-shadow: drop-shadow(3px 3px 0 rgba(4, 14, 24, 0.75));
    --badge-bg: #081524;
    --footer-bg: #081524;
    color-scheme: dark;
  }
}

/* Opt-in theme transition (added by JS for 550ms on toggle) */
html.theme-anim body,
html.theme-anim body * {
  transition: background-color 0.45s var(--ease-out), color 0.45s var(--ease-out),
    border-color 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out) !important;
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-weight: 600;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

::selection {
  background: var(--sun);
  color: #17324A;
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
  border-radius: 6px;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

/* ---------- 3. Type helpers ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sun-ink);
  background: var(--sun);
  border: var(--bw-thin) solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
  box-shadow: 2px 2px 0 var(--border);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  margin: 18px 0 14px;
}

.section-head .section-sub {
  color: var(--onsky);
  font-size: 1.05rem;
  font-weight: 700;
}

h1 em,
h2 em {
  font-style: normal;
  color: #17324A;
  background: linear-gradient(0deg, var(--sun), var(--sun));
  background-repeat: no-repeat;
  background-size: 100% 62%;
  background-position: 0 78%;
  padding: 0 0.12em;
  border-radius: 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

section {
  padding: 92px 0;
}

/* ---------- 4. Reveal on scroll (gated on JS-set data-theme) ---------- */
html[data-theme] [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: var(--rd, 0s);
}

html[data-theme] [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 5. Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--sun);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 240;
  pointer-events: none;
}

/* ---------- 6. Sticker primitives ---------- */
.sticker-card {
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
}

.sticker-card--tile {
  border-radius: var(--r-tile);
  box-shadow: var(--shadow-sm);
}

.sticker-card--sun {
  background: var(--sun);
  color: #17324A;
}

a.sticker-card,
button.sticker-card {
  transition: transform 0.18s var(--ease-spring), box-shadow 0.18s var(--ease-spring);
}

a.sticker-card:hover,
button.sticker-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-pop);
  text-decoration: none;
}

a.sticker-card:active,
button.sticker-card:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--border);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: var(--r-chip);
  padding: 13px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease-spring), box-shadow 0.18s var(--ease-spring);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-pop);
  text-decoration: none;
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--border);
}

.btn-sun {
  background: var(--sun);
  color: #17324A;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--badge-bg);
  color: var(--badge-ink);
  border: var(--bw) solid var(--border);
  border-radius: var(--r-chip);
  padding: 12px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease-spring), box-shadow 0.18s var(--ease-spring);
}

.store-badge:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-pop);
  text-decoration: none;
  color: var(--badge-ink);
}

.store-badge:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--border);
}

.store-badge svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  flex: none;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
  font-weight: 800;
  font-size: 1.15rem;
}

.store-badge-text small {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ink);
  background: var(--surface);
  border: var(--bw-thin) solid var(--border);
  border-radius: 999px;
  padding: 5px 13px;
  box-shadow: 2px 2px 0 var(--border);
}

.emoji-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  font-size: 1.35rem;
  background: var(--track);
  border: var(--bw-thin) solid var(--border);
  border-radius: 12px;
  flex: none;
}

.fitz-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border);
  vertical-align: -2px;
}

/* Decorative sticker PNGs */
.sticker {
  position: absolute;
  filter: var(--sticker-shadow);
  rotate: var(--tilt, 0deg);
  pointer-events: none;
  user-select: none;
  z-index: 3;
  will-change: transform;
}

/* ---------- 7. Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 14px 0;
  transition: background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), padding 0.3s var(--ease-out);
}

.nav.nav-scrolled {
  background: var(--bg);
  padding: 10px 0;
  box-shadow: 0 3px 0 var(--border);
}

.nav-container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.22rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.nav-logo:hover {
  text-decoration: none;
}

.nav-logo img {
  width: 42px;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  margin-right: -4px;
}

.nav-links a {
  color: var(--ink);
  font-weight: 800;
  font-size: 0.94rem;
  padding: 8px 13px;
  border-radius: 12px;
  border: var(--bw-thin) solid transparent;
}

.nav-links a:hover {
  text-decoration: none;
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 2px 2px 0 var(--border);
}

.nav-links a.active {
  background: var(--sun);
  color: #17324A;
  border-color: var(--border);
  box-shadow: 2px 2px 0 var(--border);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-left: auto;
}

.lang-pill {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink);
  border: var(--bw-thin) solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 12px;
  box-shadow: 2px 2px 0 var(--border);
}

.lang-pill:hover {
  text-decoration: none;
  background: var(--sun);
  color: #17324A;
}

.theme-toggle {
  position: relative;
  width: 42px;
  height: 42px;
  border: var(--bw-thin) solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 2px 2px 0 var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle svg {
  position: absolute;
  width: 20px;
  height: 20px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 0.25s var(--ease-out), transform 0.35s var(--ease-spring);
}

html[data-theme="day"] .icon-moon,
html:not([data-theme="night"]) .icon-moon {
  opacity: 0;
  transform: rotate(40deg) scale(0.6);
}

html[data-theme="night"] .icon-sun {
  opacity: 0;
  transform: rotate(-40deg) scale(0.6);
}

.nav-cta {
  font-size: 0.9rem;
  padding: 10px 18px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: var(--bw-thin) solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 2px 2px 0 var(--border);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 3px;
  margin-inline: auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-spring), opacity 0.2s;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- 8. Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 190;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 34px 44px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu nav a {
  color: var(--ink);
  font-size: 1.9rem;
  font-weight: 900;
  padding: 9px 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.mobile-menu.active nav a {
  opacity: 1;
  transform: none;
}

.mobile-menu.active nav a:nth-child(2) { transition-delay: 0.05s; }
.mobile-menu.active nav a:nth-child(3) { transition-delay: 0.1s; }
.mobile-menu.active nav a:nth-child(4) { transition-delay: 0.15s; }
.mobile-menu.active nav a:nth-child(5) { transition-delay: 0.2s; }
.mobile-menu.active nav a:nth-child(6) { transition-delay: 0.25s; }

.mobile-menu-cta {
  margin-top: 30px;
}

body.menu-open {
  overflow: hidden;
}

/* ---------- 9. Hero ---------- */
.hero {
  position: relative;
  padding: 168px 0 100px;
  overflow: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  animation: heroRise 0.7s var(--ease-out) both;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  margin: 22px 0 20px;
  animation: heroRise 0.7s 0.08s var(--ease-out) both;
}

.hero-sub {
  color: var(--onsky);
  font-size: 1.13rem;
  font-weight: 700;
  max-width: 33em;
  animation: heroRise 0.7s 0.16s var(--ease-out) both;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
  animation: heroRise 0.7s 0.24s var(--ease-out) both;
}

.hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  color: var(--ink);
}

.hero-secondary svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease-spring);
}

.hero-secondary:hover svg {
  transform: translateY(3px);
}

.hero-meta {
  margin-top: 22px;
  color: var(--onsky);
  font-size: 0.92rem;
  font-weight: 700;
  animation: heroRise 0.7s 0.32s var(--ease-out) both;
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Hero visual: phone + stickers + live UV demo */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  animation: heroFade 0.9s 0.2s var(--ease-out) both;
}

@keyframes heroFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-device {
  position: relative;
  animation: deviceFloat 7s 1.2s ease-in-out infinite;
}

@keyframes deviceFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.phone {
  position: relative;
  width: min(310px, 78vw);
  background: var(--bezel);
  border: var(--bw) solid var(--border);
  border-radius: 52px;
  padding: 11px;
  box-shadow: 9px 9px 0 var(--border);
}

.phone-screen {
  position: relative;
  border-radius: 42px;
  overflow: hidden;
  background: #4DB8E8;
}

.phone-screen img {
  width: 100%;
  height: auto;
}

.phone::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 27px;
  border-radius: 15px;
  background: var(--bezel);
}

.hero-stickers img {
  width: clamp(64px, 8vw, 104px);
  height: auto;
}

.st-shades   { top: -6%;  left: -14%; --tilt: -12deg; }
.st-coconut  { top: 24%;  right: -16%; --tilt: 9deg; }
.st-popsicle { bottom: 20%; left: -19%; --tilt: -7deg; width: clamp(56px, 7vw, 88px) !important; }
.st-palm     { bottom: -4%; right: -11%; --tilt: 14deg; }

/* Live UV demo card, overlapping phone's lower-left */
.uv-demo {
  position: absolute;
  left: max(-14%, -110px);
  bottom: 6%;
  width: 250px;
  padding: 18px 18px 15px;
  z-index: 5;
  background: var(--surface);
}

.uv-demo-eyebrow {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  color: var(--ink2);
  text-transform: uppercase;
}

.uv-demo-read {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 4px;
}

.uv-demo-num {
  font-size: 2.9rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.uv-demo-word {
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
  border: var(--bw-thin) solid var(--border);
  color: #17324A;
  background: var(--sun);
}

.uv-demo[data-band="0"] .uv-demo-word { background: var(--safe); color: #fff; }
.uv-demo[data-band="1"] .uv-demo-word { background: var(--sun); color: #17324A; }
.uv-demo[data-band="2"] .uv-demo-word { background: var(--uv-high); color: #fff; }
.uv-demo[data-band="3"] .uv-demo-word { background: var(--danger); color: #fff; }
.uv-demo[data-band="4"] .uv-demo-word { background: var(--extreme); color: #fff; }

.uv-demo-meter {
  display: flex;
  gap: 5px;
  margin: 12px 0;
}

.uv-demo-meter i {
  height: 9px;
  flex: 1;
  border-radius: 5px;
  border: 2px solid var(--border);
  background: var(--uv-none);
}

.uv-demo-meter i.on:nth-child(1) { background: var(--safe); }
.uv-demo-meter i.on:nth-child(2) { background: var(--sun); }
.uv-demo-meter i.on:nth-child(3) { background: var(--uv-high); }
.uv-demo-meter i.on:nth-child(4) { background: var(--danger); }
.uv-demo-meter i.on:nth-child(5) { background: var(--extreme); }

.uv-demo-burn {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink2);
  line-height: 1.45;
}

.uv-demo-burn b {
  color: var(--ink);
  font-weight: 900;
}

.uv-demo-chips {
  display: flex;
  gap: 7px;
  margin: 11px 0 9px;
}

.uv-demo-chips button {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 2px solid var(--border);
  padding: 0;
  transition: transform 0.15s var(--ease-spring);
}

.uv-demo-chips button:hover {
  transform: translateY(-2px);
}

.uv-demo-chips button[aria-pressed="true"] {
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--sun);
}

.uv-demo-note {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink2);
  opacity: 0.85;
}

/* ---------- 10. Download strip ---------- */
.getapp {
  padding: 26px 0 64px;
}

.getapp-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 30px;
  flex-wrap: wrap;
}

.getapp-card > img {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  border: var(--bw) solid var(--border);
  box-shadow: var(--shadow-sm);
}

.getapp-id {
  flex: 1;
  min-width: 220px;
}

.getapp-id h2 {
  font-size: 1.45rem;
}

.getapp-id p {
  color: var(--ink2);
  font-weight: 700;
  font-size: 0.98rem;
  margin-top: 3px;
}

/* ---------- 11. Screenshots carousel ---------- */
.shots {
  padding-bottom: 104px;
}

.shots-wrap {
  position: relative;
  margin-top: -6px;
}

.shots-track {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 26px max(24px, calc((100vw - 1120px) / 2)) 34px;
  scrollbar-width: none;
}

.shots-track::-webkit-scrollbar {
  display: none;
}

.shot-card {
  flex: none;
  width: min(300px, 74vw);
  scroll-snap-align: center;
  transition: transform 0.5s var(--ease-spring);
  /* scattered-photo tilt, alternating per card */
  transform: rotate(var(--tilt, 0deg));
}

.shot-card:nth-child(odd) { --tilt: -2.2deg; }
.shot-card:nth-child(even) { --tilt: 1.8deg; }
.shot-card:nth-child(3n) { --tilt: 2.6deg; }

.shots-track:hover .shot-card,
.shots-track:focus-within .shot-card {
  transform: rotate(var(--tilt, 0deg));
}

.shot-card:hover,
.shot-card:focus-within {
  transform: rotate(0deg) translateY(-10px) scale(1.035);
  z-index: 2;
}

/* the card nearest the centre of the viewport lifts and straightens */
.shot-card.is-focus {
  transform: rotate(0deg) translateY(-6px) scale(1.02);
}

.shot-card img {
  width: 100%;
  height: auto;
  border-radius: var(--r-card);
  border: var(--bw) solid var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow 0.4s var(--ease-spring);
}

.shot-card:hover img,
.shot-card.is-focus img {
  box-shadow: 8px 8px 0 var(--border);
}

.shot-card figcaption {
  margin-top: 15px;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--onsky);
  transition: opacity 0.35s var(--ease-out);
  opacity: 0.72;
}

.shot-card:hover figcaption,
.shot-card.is-focus figcaption {
  opacity: 1;
}

.shots-track {
  cursor: grab;
}

.shots-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.shots-track.is-dragging .shot-card {
  pointer-events: none;
}

/* progress dots under the carousel */
.shots-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 6px;
}

.shots-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: 50%;
  border: var(--bw-thin) solid var(--border);
  background: var(--surface);
  transition: transform 0.25s var(--ease-spring), background 0.25s var(--ease-out);
}

.shots-dots button[aria-current="true"] {
  background: var(--sun);
  transform: scale(1.35);
}

.shots-nav {
  position: absolute;
  top: 42%;
  z-index: 6;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: var(--bw) solid var(--border);
  background: var(--sun);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s var(--ease-spring), box-shadow 0.18s var(--ease-spring);
}

.shots-nav:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-pop);
}

.shots-nav svg {
  width: 20px;
  height: 20px;
  stroke: #17324A;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shots-prev { left: 26px; }
.shots-next { right: 26px; }

/* ---------- 12. How it works ---------- */
.howit-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.howit-grid::before {
  content: "";
  position: absolute;
  top: 74px;
  left: 12%;
  right: 12%;
  border-top: 3px dashed var(--border);
  opacity: 0.5;
  z-index: 0;
}

.howit-step {
  position: relative;
  z-index: 1;
  padding: 30px 26px 28px;
  text-align: center;
}

.howit-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--sun);
  color: #17324A;
  font-weight: 900;
  font-size: 1.15rem;
  border: var(--bw) solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.howit-step img {
  width: auto;
  height: 148px;
  margin: 6px auto 16px;
  filter: var(--sticker-shadow);
  transition: transform 0.45s var(--ease-spring);
}

.howit-step:hover img {
  transform: translateY(-6px) rotate(-2deg);
}

.howit-step h3 {
  font-size: 1.28rem;
  margin-bottom: 9px;
}

.howit-step p {
  color: var(--ink2);
  font-size: 0.96rem;
  font-weight: 700;
}

.howit-fitz {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
}

/* ---------- 13. Features grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.feature-card {
  grid-column: span 2;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.feature-card h3 {
  font-size: 1.14rem;
}

.feature-card p {
  color: var(--ink2);
  font-size: 0.94rem;
  font-weight: 700;
}

.feature-card--wide {
  grid-column: span 6;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.feature-card--wide .feature-copy {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.feature-watch {
  display: flex;
  gap: 16px;
}

.feature-watch img {
  width: 118px;
  height: auto;
  border-radius: 22px;
  border: var(--bw) solid var(--border);
  box-shadow: var(--shadow-sm);
  background: #000;
}

/* ---------- 14. Guides grid ---------- */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 24px;
  color: var(--ink);
}

.guide-card:hover {
  text-decoration: none;
}

.guide-tag {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--sun-ink);
  background: var(--sun);
  border: var(--bw-thin) solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
}

.guide-card h3 {
  font-size: 1.12rem;
  line-height: 1.3;
}

.guide-card p {
  color: var(--ink2);
  font-size: 0.9rem;
  font-weight: 700;
  flex: 1;
}

.guide-more {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--link);
}

.guides-all {
  text-align: center;
  margin-top: 36px;
}

/* ---------- 15. Testimonials ---------- */
.voices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.voice-card {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.voice-stars {
  color: var(--amber);
  font-size: 1.05rem;
  letter-spacing: 2px;
}

.voice-card h3 {
  font-size: 1.05rem;
}

.voice-card blockquote {
  color: var(--ink2);
  font-weight: 700;
  font-size: 0.95rem;
  flex: 1;
}

.voice-card figcaption {
  font-weight: 800;
  font-size: 0.88rem;
}

.voices-note {
  text-align: center;
  margin-top: 26px;
  color: var(--onsky);
  font-size: 0.88rem;
  font-weight: 700;
}

/* ---------- 16. FAQ ---------- */
.faq-list {
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 24px;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary h3 {
  font-size: 1.04rem;
  font-weight: 800;
}

.faq-icon {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: var(--bw-thin) solid var(--border);
  background: var(--sun);
  transition: transform 0.3s var(--ease-spring);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 3px;
  border-radius: 2px;
  background: #17324A;
  translate: -50% -50%;
  transition: rotate 0.3s var(--ease-spring);
}

.faq-icon::after {
  rotate: 90deg;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-item[open] .faq-icon::after {
  rotate: 0deg;
}

.faq-body {
  padding: 0 24px 22px;
  color: var(--ink2);
  font-weight: 700;
  font-size: 0.97rem;
}

.faq-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 11px;
  font-weight: 800;
  font-size: 0.92rem;
}

/* ---------- 17. Final CTA poster (always-day) ---------- */
.download {
  padding-bottom: 110px;
}

.cta-poster {
  position: relative;
  overflow: hidden;
  background: var(--day-sun);
  border: 4px solid var(--day-ink);
  border-radius: 28px;
  box-shadow: 10px 10px 0 var(--day-ink);
  padding: 78px 36px 72px;
  text-align: center;
  color: var(--day-ink);
}

.cta-rays {
  position: absolute;
  inset: -45%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0.35) 0deg 9deg,
    transparent 9deg 26deg
  );
  animation: raysSpin 46s linear infinite;
  pointer-events: none;
}

@keyframes raysSpin {
  to { transform: rotate(360deg); }
}

.cta-poster .container {
  position: relative;
  z-index: 2;
}

.cta-poster h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
}

.cta-poster h2 em {
  background-image: linear-gradient(0deg, var(--day-surface), var(--day-surface));
  color: var(--day-ink);
}

.cta-poster-sub {
  margin: 16px auto 30px;
  font-weight: 800;
  font-size: 1.06rem;
  max-width: 34em;
}

.cta-poster .store-badge {
  background: var(--day-ink);
  border-color: var(--day-ink);
  color: #fff;
  box-shadow: 4px 4px 0 rgba(23, 50, 74, 0.32);
}

.cta-poster-note {
  margin-top: 20px;
  font-weight: 800;
  font-size: 0.9rem;
  opacity: 0.85;
}

.cta-poster .sticker {
  opacity: 0.96;
}

.st-cta-umbrella { top: 8%; left: 4%; --tilt: -11deg; width: 96px; }
.st-cta-flipflops { bottom: 9%; left: 9%; --tilt: 8deg; width: 88px; }
.st-cta-starfish { top: 12%; right: 6%; --tilt: 14deg; width: 84px; }
.st-cta-wave { bottom: 7%; right: 4%; --tilt: -6deg; width: 100px; }

/* Confetti (spawned by JS on CTA click) */
.confetti-bit {
  position: fixed;
  width: 11px;
  height: 15px;
  border-radius: 3px;
  border: 2px solid var(--day-ink);
  z-index: 300;
  pointer-events: none;
}

/* ---------- 18. Footer ---------- */
.footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  border-top: var(--bw) solid var(--border);
  padding: 64px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  color: var(--footer-ink2);
  font-size: 0.94rem;
  font-weight: 700;
  margin-top: 14px;
  max-width: 26em;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--footer-ink);
}

.footer-logo:hover {
  text-decoration: none;
}

.footer-logo img {
  width: 38px;
  height: auto;
}

.footer h4 {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--footer-ink2);
  margin-bottom: 15px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  color: var(--footer-ink);
  font-weight: 700;
  font-size: 0.95rem;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 2px solid rgba(143, 179, 209, 0.25);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--footer-ink2);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ---------- 19. Guide pages ---------- */
.gd-page {
  padding-top: 118px;
}

.gd-hero {
  padding: 34px 0 40px;
}

.gd-hero-inner {
  max-width: 760px;
}

.gd-crumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--onsky);
  flex-wrap: wrap;
}

.gd-crumbs a {
  color: var(--ink);
}

.gd-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  margin: 18px 0 16px;
}

.gd-lede {
  color: var(--onsky);
  font-size: 1.12rem;
  font-weight: 700;
  max-width: 36em;
}

.gd-date {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--onsky);
}

.gd-body {
  max-width: 760px;
  padding-bottom: 20px;
}

.gd-body > * + * {
  margin-top: 1.15em;
}

.gd-body h2 {
  font-size: 1.5rem;
  margin-top: 2em;
}

.gd-body h3 {
  font-size: 1.15rem;
  margin-top: 1.6em;
}

.gd-body p,
.gd-body li {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.75;
  color: var(--ink);
}

.gd-body ul,
.gd-body ol {
  padding-left: 1.4em;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.gd-body strong {
  font-weight: 800;
}

.gd-tip {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  background: var(--sun);
  color: #17324A;
  border: var(--bw) solid var(--border);
  border-radius: var(--r-tile);
  box-shadow: var(--shadow-sm);
  padding: 19px 22px;
  font-weight: 800;
  margin: 1.8em 0 !important;
}

.gd-tip::before {
  content: "☀️";
  font-size: 1.4rem;
  line-height: 1.3;
}

.gd-tip p {
  color: #17324A;
  font-weight: 800;
}

.gd-table {
  overflow-x: auto;
  border: var(--bw) solid var(--border);
  border-radius: var(--r-tile);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
  margin: 1.8em 0 !important;
}

.gd-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.gd-table th {
  background: var(--track);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-align: left;
  padding: 12px 16px;
  border-bottom: var(--bw-thin) solid var(--border);
}

.gd-table td {
  padding: 11px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  border-top: 2px solid var(--hair);
}

.gd-table tr:nth-child(even) td {
  background: var(--row);
}

.gd-table-note {
  font-size: 0.85rem !important;
  color: var(--onsky) !important;
  font-weight: 700 !important;
  margin-top: -0.9em !important;
}

.gd-callout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: 28px;
  margin: 2.2em 0 !important;
}

.gd-callout h3 {
  font-size: 1.3rem;
  margin: 13px 0 10px;
}

.gd-callout p {
  color: var(--ink2);
  font-size: 0.96rem;
  font-weight: 700;
}

.gd-callout p + p {
  margin-top: 10px;
}

.gd-callout-shot {
  border-radius: var(--r-tile);
  border: var(--bw) solid var(--border);
  box-shadow: var(--shadow-sm);
}

.gd-cta {
  text-align: center;
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: 44px 30px;
  margin: 2.6em 0 0 !important;
}

.gd-cta-icon {
  width: 94px;
  height: 94px;
  border-radius: 22px;
  border: var(--bw) solid var(--border);
  box-shadow: var(--shadow-sm);
  margin: 0 auto 18px;
}

.gd-cta h2 {
  margin: 0 0 10px !important;
  font-size: 1.65rem;
}

.gd-cta p {
  color: var(--ink2);
  font-weight: 700;
  margin-bottom: 22px;
}

.gd-cta-note {
  margin: 18px 0 0 !important;
  font-size: 0.85rem !important;
  color: var(--ink2) !important;
}

.gd-note {
  font-size: 0.88rem !important;
  color: var(--onsky) !important;
  font-weight: 700 !important;
  border-top: 2px solid var(--hair);
  padding-top: 1.2em;
  margin-top: 2.4em !important;
}

.hub-section {
  max-width: 1120px;
}

.hub-section h2 {
  font-size: 1.5rem;
  margin: 46px 0 22px;
}

.hub-cta {
  margin-top: 64px;
}

.gd-related {
  padding: 48px 0 96px;
}

.gd-related h2 {
  font-size: 1.5rem;
  margin-bottom: 26px;
}

.gd-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---------- 20. Prose pages (privacy / about / contact / 404) ---------- */
.pp-page {
  padding-top: 118px;
}

.pp-hero {
  padding: 34px 0 30px;
  max-width: 760px;
}

.pp-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 16px 0 12px;
}

.pp-date {
  color: var(--onsky);
  font-weight: 800;
  font-size: 0.88rem;
}

.pp-body {
  max-width: 760px;
  padding-bottom: 96px;
}

.pp-body > * + * {
  margin-top: 1.05em;
}

.pp-body h2 {
  font-size: 1.32rem;
  margin-top: 2em;
}

.pp-body h3 {
  font-size: 1.08rem;
  margin-top: 1.5em;
}

.pp-body p,
.pp-body li {
  font-size: 0.99rem;
  font-weight: 600;
  line-height: 1.72;
}

.pp-body ul {
  padding-left: 1.4em;
  display: flex;
  flex-direction: column;
  gap: 0.45em;
}

.pp-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 1.6em 0 !important;
}

.pp-card {
  padding: 20px;
}

.pp-card h3 {
  margin: 8px 0 7px !important;
  font-size: 1rem;
}

.pp-card p {
  color: var(--ink2);
  font-size: 0.88rem !important;
  font-weight: 700;
}

.notfound {
  min-height: 62vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 140px 0 80px;
}

.notfound-inner {
  max-width: 520px;
  margin-inline: auto;
}

.notfound img {
  width: 150px;
  margin: 0 auto 22px;
  filter: var(--sticker-shadow);
}

.notfound h1 {
  font-size: 2.3rem;
  margin-bottom: 12px;
}

.notfound p {
  color: var(--ink2);
  font-weight: 700;
  margin-bottom: 26px;
}

/* ---------- 21. Responsive ---------- */
@media (max-width: 1080px) {
  .guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .uv-demo {
    left: -4%;
  }

  .st-shades { left: -6%; }
  .st-popsicle { left: -8%; }
}

@media (max-width: 900px) {
  section {
    padding: 72px 0;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding: 138px 0 76px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .hero-visual {
    padding-bottom: 30px;
  }

  .howit-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }

  .howit-grid::before {
    display: none;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card {
    grid-column: span 1;
  }

  .feature-card--wide {
    grid-column: span 2;
  }

  .voices-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }

  .shots-nav {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gd-callout {
    grid-template-columns: 1fr;
  }

  .gd-callout-shot {
    max-width: 320px;
  }

  .gd-related-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

@media (max-width: 680px) {
  .guides-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card--wide {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
  }

  .getapp-card {
    flex-direction: column;
    text-align: center;
  }

  .uv-demo {
    position: relative;
    left: 0;
    bottom: 0;
    width: min(320px, 100%);
    margin: -46px auto 0;
  }

  .st-popsicle,
  .st-coconut {
    display: none;
  }

  .pp-cards {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cta-poster .sticker {
    width: 62px !important;
  }
}

@media (max-width: 430px) {
  .container {
    width: calc(100% - 36px);
  }

  .hero-title {
    font-size: 2.15rem;
  }

  .section-head h2 {
    font-size: 1.65rem;
  }

  .store-badge {
    width: 100%;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-secondary {
    justify-content: center;
  }
}

/* ---------- 22. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html[data-theme] [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero-eyebrow,
  .hero-title,
  .hero-sub,
  .hero-actions,
  .hero-meta,
  .hero-visual {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .hero-device {
    animation: none;
  }

  .cta-rays {
    animation: none;
  }

  .sticker {
    transform: none !important;
  }
}
