/* ── Variables ──────────────────────────────────── */
:root {
  --bg:      #0a0d12;
  --surface: #12161e;
  --accent:  #ff8a3d;
  --accent2: #ffd166;
  --text:    #e8edf7;
  --muted:   #7a8099;
  --radius:  12px;
  --motion-expand: 320ms;
  --motion-fade: 220ms;
  --motion-ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --type-brand: clamp(1.06rem, 0.98rem + 0.42vw, 1.24rem);
  --type-overline: clamp(0.98rem, 0.9rem + 0.34vw, 1.14rem);
  --type-hero: clamp(2.1rem, 1.45rem + 3.9vw, 4rem);
  --type-subtitle: clamp(1.02rem, 0.95rem + 0.7vw, 1.2rem);
  --type-section-title: clamp(1.5rem, 1.18rem + 1.6vw, 2rem);
}

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  isolation: isolate;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ── Site Header ─────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10,13,18,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 14px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  color: var(--accent);
  font-weight: 800;
  font-size: var(--type-brand);
  text-decoration: none;
  letter-spacing: 0.07em;
}

.header-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.header-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

.header-nav a:not(.btn-header):hover { color: var(--accent2); }

.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  border: 1px solid rgba(255, 138, 61, 0.25);
  background: transparent;
  backdrop-filter: blur(6px) brightness(1.3) saturate(1.2);
  -webkit-backdrop-filter: blur(6px) brightness(1.3) saturate(1.2);
  padding: 6px 16px;
  border-radius: var(--radius);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.btn-header::after {
  content: "iOS only";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 102, 0.3);
  background: rgba(255, 209, 102, 0.12);
  color: var(--accent2);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  white-space: nowrap;
}

.btn-header:hover {
  border-color: rgba(255, 138, 61, 0.45);
  box-shadow: 0 0 16px rgba(255, 138, 61, 0.1), inset 0 0 10px rgba(255, 138, 61, 0.04);
}

.btn-header:hover::after {
  border-color: rgba(255, 209, 102, 0.5);
  background: rgba(255, 209, 102, 0.2);
}

/* ── Button ─────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: transparent;
  backdrop-filter: blur(8px) brightness(1.35) saturate(1.25);
  -webkit-backdrop-filter: blur(8px) brightness(1.35) saturate(1.25);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 138, 61, 0.3);
  cursor: pointer;
  text-decoration: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.1s;
}
.btn-primary:hover {
  border-color: rgba(255, 138, 61, 0.55);
  box-shadow: 0 0 20px rgba(255, 138, 61, 0.12), inset 0 0 12px rgba(255, 138, 61, 0.06);
}
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

/* Ambient embers - site-wide background particles (except hero) */
.ambient-embers {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-ember {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255,160,60,0.9) 0%,
    rgba(255,120,40,0.4) 40%,
    transparent 70%
  );
  animation: ambientFloat var(--af-dur) linear infinite;
  scale: 1;
  transition: scale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}

.ambient-ember:nth-child(1) {
  left: 6%; width: 5px; height: 5px;
  --af-dur: 16s; animation-delay: 0s;
}
.ambient-ember:nth-child(2) {
  left: 18%; width: 4px; height: 4px;
  --af-dur: 20s; animation-delay: 3s;
  background: radial-gradient(circle, rgba(255,200,80,0.9) 0%, rgba(255,180,60,0.4) 40%, transparent 70%);
}
.ambient-ember:nth-child(3) {
  left: 35%; width: 6px; height: 6px;
  --af-dur: 18s; animation-delay: 7s;
}
.ambient-ember:nth-child(4) {
  left: 50%; width: 4px; height: 4px;
  --af-dur: 22s; animation-delay: 1s;
  background: radial-gradient(circle, rgba(255,200,80,0.9) 0%, rgba(255,180,60,0.4) 40%, transparent 70%);
}
.ambient-ember:nth-child(5) {
  left: 65%; width: 5px; height: 5px;
  --af-dur: 17s; animation-delay: 5s;
}
.ambient-ember:nth-child(6) {
  left: 78%; width: 4px; height: 4px;
  --af-dur: 21s; animation-delay: 9s;
  background: radial-gradient(circle, rgba(255,200,80,0.9) 0%, rgba(255,180,60,0.4) 40%, transparent 70%);
}
.ambient-ember:nth-child(7) {
  left: 88%; width: 5px; height: 5px;
  --af-dur: 19s; animation-delay: 2s;
}
.ambient-ember:nth-child(8) {
  left: 42%; width: 3px; height: 3px;
  --af-dur: 23s; animation-delay: 11s;
}
.ambient-ember:nth-child(9) {
  left: 24%; width: 4px; height: 4px;
  --af-dur: 18s; animation-delay: 6s;
  background: radial-gradient(circle, rgba(255,200,80,0.9) 0%, rgba(255,180,60,0.4) 40%, transparent 70%);
}
.ambient-ember:nth-child(10) {
  left: 72%; width: 5px; height: 5px;
  --af-dur: 20s; animation-delay: 13s;
}
.ambient-ember:nth-child(11) {
  left: 10%; width: 4px; height: 4px;
  --af-dur: 19s; animation-delay: 4s;
}
.ambient-ember:nth-child(12) {
  left: 30%; width: 5px; height: 5px;
  --af-dur: 22s; animation-delay: 8s;
  background: radial-gradient(circle, rgba(255,200,80,0.9) 0%, rgba(255,180,60,0.4) 40%, transparent 70%);
}
.ambient-ember:nth-child(13) {
  left: 46%; width: 4px; height: 4px;
  --af-dur: 17s; animation-delay: 12s;
}
.ambient-ember:nth-child(14) {
  left: 58%; width: 6px; height: 6px;
  --af-dur: 21s; animation-delay: 6s;
}
.ambient-ember:nth-child(15) {
  left: 82%; width: 4px; height: 4px;
  --af-dur: 18s; animation-delay: 10s;
  background: radial-gradient(circle, rgba(255,200,80,0.9) 0%, rgba(255,180,60,0.4) 40%, transparent 70%);
}
.ambient-ember:nth-child(16) {
  left: 92%; width: 3px; height: 3px;
  --af-dur: 24s; animation-delay: 14s;
}
.ambient-ember:nth-child(17) {
  left: 14%; width: 5px; height: 5px;
  --af-dur: 20s; animation-delay: 15s;
}
.ambient-ember:nth-child(18) {
  left: 38%; width: 4px; height: 4px;
  --af-dur: 23s; animation-delay: 16s;
}
.ambient-ember:nth-child(19) {
  left: 68%; width: 5px; height: 5px;
  --af-dur: 19s; animation-delay: 18s;
  background: radial-gradient(circle, rgba(255,200,80,0.9) 0%, rgba(255,180,60,0.4) 40%, transparent 70%);
}
.ambient-ember:nth-child(20) {
  left: 86%; width: 4px; height: 4px;
  --af-dur: 22s; animation-delay: 20s;
}

.ambient-ember.magnified {
  scale: 2;
  filter: brightness(1.4);
}
.ambient-ember.magnified-hero {
  scale: 4;
  filter: brightness(1.8);
}

@keyframes ambientFloat {
  0%   { bottom: -2%;  transform: translateX(0)    scale(1);   opacity: 0; }
  4%   { opacity: 0.5; transform: translateX(3px)  scale(1.3); }
  10%  { opacity: 0.7; transform: translateX(-2px) scale(1);   }
  18%  { opacity: 0.5; transform: translateX(6px)  scale(1.4); }
  28%  { opacity: 0.7; transform: translateX(-4px) scale(1);   }
  38%  { opacity: 0.5; transform: translateX(8px)  scale(1.3); }
  50%  { opacity: 0.6; transform: translateX(-3px) scale(1);   }
  62%  { opacity: 0.5; transform: translateX(5px)  scale(1.3); }
  74%  { opacity: 0.4; transform: translateX(-5px) scale(1);   }
  86%  { opacity: 0.2; transform: translateX(3px)  scale(1.2); }
  100% { bottom: 102%; transform: translateX(-2px) scale(0.8); opacity: 0; }
}

/* ═══════════════════════════════════════════════════
   HERO — Animated Fire
   ═══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 85svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg);
  padding: 80px 0 60px;
  padding-top: 60px;
  overflow: hidden;
}

/* Pulsing fire glow */
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 55%, rgba(255,120,40,0.28) 0%, transparent 70%),
    radial-gradient(ellipse 80% 40% at 50% 70%, rgba(255,80,20,0.16) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 55% 60%, rgba(255,200,80,0.12) 0%, transparent 50%);
  animation: glowPulse 4s ease-in-out infinite alternate;
}
@keyframes glowPulse {
  0%   { opacity: 0.7; transform: scale(1); }
  50%  { opacity: 1;   transform: scale(1.08); }
  100% { opacity: 0.75; transform: scale(0.95); }
}

/* Floating embers */
.embers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  --ember-speed: 1;
  animation: embersBreathing 4s ease-in-out infinite alternate;
}
@keyframes embersBreathing {
  0%   { transform: scale(1) translateY(0); }
  50%  { transform: scale(1.05) translateY(-8px); }
  100% { transform: scale(0.98) translateY(2px); }
}
.ember {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  box-shadow: 0 0 10px rgba(255, 138, 61, 0.45);
  animation: emberFloat linear infinite;
}
.ember:nth-child(1)  { left: 15%; bottom: 28%; animation-duration: 4.2s; animation-delay: 0s;   width: 4px; height: 4px; }
.ember:nth-child(2)  { left: 22%; bottom: 34%; animation-duration: 5.8s; animation-delay: 1.1s; width: 6px; height: 6px; }
.ember:nth-child(3)  { left: 28%; bottom: 40%; animation-duration: 6.3s; animation-delay: 2.2s; width: 5px; height: 5px; background: var(--accent2); box-shadow: 0 0 12px rgba(255, 209, 102, 0.5); }
.ember:nth-child(4)  { left: 34%; bottom: 30%; animation-duration: 4.7s; animation-delay: 0.6s; width: 8px; height: 8px; }
.ember:nth-child(5)  { left: 40%; bottom: 42%; animation-duration: 5.2s; animation-delay: 1.6s; width: 4px; height: 4px; }
.ember:nth-child(6)  { left: 46%; bottom: 32%; animation-duration: 3.9s; animation-delay: 2.8s; width: 7px; height: 7px; }
.ember:nth-child(7)  { left: 52%; bottom: 26%; animation-duration: 5.9s; animation-delay: 0.9s; width: 5px; height: 5px; background: var(--accent2); box-shadow: 0 0 12px rgba(255, 209, 102, 0.5); }
.ember:nth-child(8)  { left: 58%; bottom: 38%; animation-duration: 6.6s; animation-delay: 1.9s; width: 6px; height: 6px; }
.ember:nth-child(9)  { left: 64%; bottom: 29%; animation-duration: 4.4s; animation-delay: 0.2s; width: 8px; height: 8px; }
.ember:nth-child(10) { left: 70%; bottom: 36%; animation-duration: 5.6s; animation-delay: 2.4s; width: 4px; height: 4px; }
.ember:nth-child(11) { left: 76%; bottom: 41%; animation-duration: 6.8s; animation-delay: 1.3s; width: 5px; height: 5px; background: var(--accent2); box-shadow: 0 0 12px rgba(255, 209, 102, 0.5); }
.ember:nth-child(12) { left: 82%; bottom: 33%; animation-duration: 4.9s; animation-delay: 2.7s; width: 7px; height: 7px; }
.ember:nth-child(13) { left: 18%; bottom: 24%; animation-duration: 5.4s; animation-delay: 3.1s; width: 6px; height: 6px; }
.ember:nth-child(14) { left: 30%; bottom: 27%; animation-duration: 6.1s; animation-delay: 3.7s; width: 4px; height: 4px; background: var(--accent2); box-shadow: 0 0 12px rgba(255, 209, 102, 0.5); }
.ember:nth-child(15) { left: 55%; bottom: 44%; animation-duration: 5s;   animation-delay: 4.1s; width: 8px; height: 8px; }
.ember:nth-child(16) { left: 85%; bottom: 25%; animation-duration: 4.6s; animation-delay: 4.6s; width: 5px; height: 5px; }

@keyframes emberFloat {
  0%   { opacity: 0; transform: translateY(0) translateX(0) scale(1); }
  10%  { opacity: 1; }
  40%  { opacity: 0.8; transform: translateY(-150px) translateX(20px) scale(0.8); }
  70%  { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(-350px) translateX(-15px) scale(0.2); }
}

/* Hero content (above glow + embers) */
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 1.9vw, 24px);
  max-width: 860px;
}

.eyebrow {
  font-size: var(--type-overline);
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--accent);
  line-height: 1.2;
  opacity: 0.98;
}

.hero h1 {
  font-size: var(--type-hero);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  max-width: 13ch;
  text-wrap: balance;
  overflow: visible;
}

.hero .subtitle {
  font-size: var(--type-subtitle);
  line-height: 1.52;
  color: #fff;
  max-width: 36ch;
  text-wrap: pretty;
}

.hero-emphasis {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1.22;
  padding-bottom: 0.12em;
  margin-bottom: -0.03em;
  overflow: visible;
  -webkit-text-stroke: 0.2px transparent;
}

.subtitle-secondary {
  font-size: clamp(1rem, 0.96rem + 0.55vw, 1.14rem);
  color: #fff;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.hero .btn-primary {
  min-width: 220px;
}

/* Seamless fade at bottom of hero → next section */
.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 1;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════
   DEMO — Video Carousel
   ═══════════════════════════════════════════════════ */
.demo {
  padding: 60px 0 80px;
  text-align: center;
}

.section-title {
  font-size: var(--type-section-title);
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.2;
}

.section-sub {
  color: var(--muted);
  margin-bottom: 40px;
}

/* Carousel container — full-bleed scroll */
.carousel {
  width: 100%;
  overflow: visible;
}

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 24px 20px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

/* Individual card — 9:16 vertical */
.carousel-card {
  flex: 0 0 220px;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.carousel-card:hover { transform: scale(1.03); }

/* Per-environment gradient backgrounds */
.card-mountains  { background: linear-gradient(160deg, #1a1520 0%, #4a2520 40%, #ff8844 100%); }
.card-meditation { background: linear-gradient(160deg, #12101a 0%, #2a1a30 40%, #cc8844 100%); }
.card-city       { background: linear-gradient(160deg, #0a0e1a 0%, #1a2040 40%, #4488cc 100%); }
.card-forest     { background: linear-gradient(160deg, #0a1210 0%, #1a3020 40%, #44aa55 100%); }
.card-ocean      { background: linear-gradient(160deg, #0a0f18 0%, #1a2a3a 40%, #ee7744 100%); }

.card-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  border-radius: inherit;
}

.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0,0,0,0.25);
  padding: 20px;
  z-index: 1;
}

.carousel-card.has-video .card-overlay {
  background: transparent;
  pointer-events: none;
}

.carousel-card.has-video {
  cursor: pointer;
}

.carousel-card.has-video:focus-visible {
  outline: 2px solid rgba(255, 138, 61, 0.6);
  outline-offset: 4px;
}

/* Subtle play hint - bottom-right of video cards */
.card-play-hint,
.video-card-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: color 0.3s;
  z-index: 2;
  pointer-events: none;
}

.carousel-card:hover .card-play-hint,
.video-card:hover .video-card-hint {
  color: rgba(255, 255, 255, 1);
}

/* Video modal overlay */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.video-modal-visible {
  opacity: 1;
}
.video-modal-player {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 100%;
  border-radius: 0;
}
.video-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 10000;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
}
.video-modal-close:hover {
  color: #fff;
}

.card-icon {
  font-size: 2.5rem;
}

.card-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.card-desc {
  font-size: 0.8rem;
  color: var(--muted);
}

.card-share {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  backdrop-filter: blur(6px) brightness(1.45) saturate(1.2);
  -webkit-backdrop-filter: blur(6px) brightness(1.45) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.1s;
  z-index: 2;
}
.card-share:hover {
  border-color: rgba(255, 138, 61, 0.4);
  box-shadow: 0 0 14px rgba(255, 138, 61, 0.12), inset 0 0 8px rgba(255, 138, 61, 0.06);
  transform: scale(1.1);
}
.card-share:active { transform: scale(0.95); }
.carousel-card:has(.card-share:hover),
.carousel-card:has(.card-share:focus-visible),
.carousel-card:has(.card-share:active) {
  transform: none;
}

/* ═══════════════════════════════════════════════════
   WHO IT'S FOR
   ═══════════════════════════════════════════════════ */
.why-it-works {
  padding: 80px 0;
}

.why-it-works h2 {
  font-size: var(--type-section-title);
  font-weight: 700;
  margin-bottom: 32px;
  line-height: 1.2;
}

.benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benefit-item {
  padding: 20px 24px;
  background: var(--surface);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  font-size: 1.05rem;
  cursor: pointer;
  user-select: none;
  position: relative;
  transition:
    border-color 220ms ease,
    background-color 220ms ease,
    box-shadow 320ms var(--motion-ease-out);
}

.benefit-detail {
  display: inline-block;
  filter: blur(5px);
  opacity: 0.78;
  transform: translateY(2px);
  transition:
    filter var(--motion-expand) var(--motion-ease-out),
    opacity var(--motion-fade) ease,
    transform var(--motion-expand) var(--motion-ease-out);
}

.benefit-inline-link {
  color: var(--accent2);
  text-decoration: underline;
  text-decoration-color: rgba(255, 209, 102, 0.65);
  text-underline-offset: 0.15em;
  font-weight: 600;
  text-shadow: 0 0 6px rgba(255, 209, 102, 0.28);
  transition:
    color 180ms ease,
    text-decoration-color 180ms ease,
    text-shadow 220ms ease;
}

.benefit-item:not(.revealed) .benefit-inline-link {
  pointer-events: none;
  cursor: default;
  animation: benefit-link-pulse 1.9s ease-in-out infinite;
}

.benefit-item.revealed .benefit-inline-link {
  pointer-events: auto;
  cursor: pointer;
  animation: none;
  text-shadow: 0 0 8px rgba(255, 209, 102, 0.22);
}

.benefit-inline-link:hover,
.benefit-inline-link:focus-visible {
  color: var(--accent);
  text-decoration-color: rgba(255, 138, 61, 0.9);
  text-shadow: 0 0 8px rgba(255, 138, 61, 0.34);
}

@keyframes benefit-link-pulse {
  0%, 100% {
    color: #ffd166;
    text-shadow:
      0 0 4px rgba(255, 209, 102, 0.22),
      0 0 10px rgba(255, 209, 102, 0.16);
  }
  50% {
    color: #ffe09a;
    text-shadow:
      0 0 7px rgba(255, 209, 102, 0.42),
      0 0 16px rgba(255, 209, 102, 0.28);
  }
}

.benefit-item.revealed .benefit-detail {
  filter: blur(0);
  opacity: 1;
  transform: translateY(0);
}

.benefit-item::after {
  content: "tap to reveal";
  display: block;
  margin-top: 10px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  opacity: 0.6;
  transition: opacity 0.3s;
}

.benefit-item.revealed::after {
  content: "";
  display: none;
}

.benefit-item:hover:not(.revealed) .benefit-detail {
  filter: blur(3px);
}
.benefit-item.revealed {
  border-left-color: rgba(255, 138, 61, 0.85);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16), inset 0 0 0 1px rgba(255, 138, 61, 0.08);
}

/* About the Author */
.about {
  padding: 80px 0;
}
.about-card {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.about-photo {
  flex: 0 0 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.photo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid rgba(255,255,255,0.08);
}
.about-photo img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.08);
}
.about-text h2 {
  font-size: clamp(1.42rem, 1.16rem + 1.2vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}
.about-text {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.about-text p {
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 0.95rem;
  line-height: 1.7;
}
.about-highlight {
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 20px;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: rgba(255,138,61,0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.about-photo-label {
  margin-top: 2px;
}
.about-smile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55em;
  height: 1.55em;
  margin-left: 0.3em;
  border-radius: 999px;
  border: 1px solid rgba(255,138,61,0.4);
  background: rgba(255,138,61,0.14);
  color: var(--accent2);
  font-weight: 700;
  font-size: 0.72em;
  line-height: 1;
  vertical-align: middle;
}
.about-shelter-photo {
  width: 100%;
  margin: 18px 0 22px;
}
.shelter-photo-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: var(--surface);
  border: 2px solid rgba(255,255,255,0.08);
}
.about-shelter-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.08);
}

/* Mobile: stack vertically */
@media (max-width: 480px) {
  .about-card {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }
  .about-text {
    width: 100%;
    text-align: left;
  }
}

/* ═══════════════════════════════════════════════════
   SIGNUP
   ═══════════════════════════════════════════════════ */
.signup {
  padding: 100px 0;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 60%, rgba(255,138,61,0.06) 0%, transparent 70%);
}

.signup h2 {
  font-size: clamp(1.58rem, 1.2rem + 1.7vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.signup-sub  { font-size: 1.05rem; margin-bottom: 8px; }
.signup-note { color: var(--muted); font-size: 0.9rem; margin-bottom: 40px; }
/* Burning wick progress */
.progress-wick {
  max-width: 360px;
  margin: 0 auto 40px;
}
.wick-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.85rem;
}
.wick-count {
  color: var(--accent);
  font-weight: 700;
}
.wick-goal {
  color: var(--muted);
}
.wick-track {
  position: relative;
  height: 6px;
  background: var(--surface);
  border-radius: 3px;
  overflow: visible;
}
.wick-fill {
  height: 100%;
  width: var(--progress);
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 3px;
  transition: width 1s ease-out;
}
.wick-flame {
  position: absolute;
  top: -8px;
  left: var(--progress);
  width: 10px;
  height: 18px;
  background: radial-gradient(ellipse at bottom, var(--accent2), var(--accent), transparent);
  border-radius: 50% 50% 20% 20%;
  transform: translateX(-50%);
  animation: flicker 0.4s ease-in-out infinite alternate;
  opacity: 0.9;
}
@keyframes flicker {
  0%   { transform: translateX(-50%) scaleY(1) scaleX(1); }
  100% { transform: translateX(-50%) scaleY(1.3) scaleX(0.8); }
}

.form-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.email-input {
  width: 100%;
  max-width: 360px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
}
.email-input:disabled { opacity: 0.5; }
.form-note { font-size: 0.8rem; color: var(--muted); }

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
footer {
  padding: 60px 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-nav {
  margin-bottom: 24px;
}

.footer-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  transition: border-color 0.2s, color 0.2s;
}
.footer-link:hover { color: var(--accent); border-color: var(--accent); }

.footer-follow { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }
.social-links  { display: flex; justify-content: center; gap: 24px; margin-bottom: 32px; }
.social-link   { color: var(--accent); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.social-link:hover { color: var(--accent2); }
.footer-legal {
  margin-top: 12px;
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
}
.footer-legal a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover {
  color: var(--text);
}
.footer-legal-sep {
  color: rgba(255, 255, 255, 0.15);
}
.footer-credit { color: var(--muted); font-size: 0.85rem; }

.policy-table-wrap {
  margin: 16px 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.policy-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.policy-table th,
.policy-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
}
.policy-table th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — Mobile first
   ═══════════════════════════════════════════════════ */

/* Mobile (base) */
@media (max-width: 480px) {
  .hero {
    min-height: calc(100svh + 64px);
    min-height: calc(100dvh + 64px);
    padding-top: 96px;
    padding-bottom: 96px;
  }
  .hero-content {
    gap: 16px;
  }
  .eyebrow {
    font-size: 0.98rem;
    letter-spacing: 0.09em;
  }
  .hero h1 {
    font-size: clamp(1.96rem, 9.25vw, 2.58rem);
    line-height: 1.14;
    max-width: 11.4ch;
  }
  .hero .subtitle {
    font-size: 1rem;
    max-width: 30ch;
    line-height: 1.58;
  }
  .subtitle-secondary {
    font-size: 0.98rem;
  }
  .hero .btn-primary {
    min-width: 0;
    margin-top: 6px;
  }
  .header-logo { font-size: 1.02rem; }
  .btn-primary { width: 100%; text-align: center; }
  .email-input { max-width: 100%; }
  .carousel-card { flex: 0 0 180px; }
  .header-nav { gap: 12px; }
  .header-nav a { font-size: 0.83rem; }
  .btn-header { padding: 6px 12px; }
  .btn-header::after {
    content: "iOS";
    padding: 2px 6px;
    font-size: 0.62rem;
  }
  .article-header { padding: 100px 0 30px; }
  .media-video-v video { max-width: 100%; }
}

/* Tablet */
@media (min-width: 481px) and (max-width: 768px) {
  .carousel-card { flex: 0 0 200px; }
  .carousel-track { padding: 0 32px 20px; }
}

/* Desktop — center carousel */
@media (min-width: 769px) {
  .carousel-track {
    justify-content: center;
    padding: 0 40px 20px;
  }
  .carousel-card { flex: 0 0 220px; }
}

/* ═══════════════════════════════════════════════════
   BLOG PAGE (shared styles)
   ═══════════════════════════════════════════════════ */
.page-header {
  padding: 120px 0 60px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.page-header p {
  color: var(--muted);
  font-size: 1.1rem;
}

.blog-empty {
  padding: 80px 0;
  text-align: center;
}

.blog-empty .eyebrow {
  margin-bottom: 10px;
}

.blog-empty p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.blog-empty .btn-primary {
  min-width: 220px;
}

.back-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent2); }

/* ═══════════════════════════════════════════════════
   BLOG — Index Grid
   ═══════════════════════════════════════════════════ */
.blog-container {
  max-width: 760px;
}
.blog-grid-section {
  padding: 0 0 80px;
}
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.blog-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.2s, border-color 0.2s;
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.blog-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--surface);
  background-size: cover;
  background-position: center;
  position: relative;
}
.blog-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,138,61,0.08), rgba(255,209,102,0.05));
}
.blog-card-share {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  backdrop-filter: blur(6px) brightness(1.45) saturate(1.2);
  -webkit-backdrop-filter: blur(6px) brightness(1.45) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.1s, opacity 0.2s;
  opacity: 0;
  z-index: 2;
}
.blog-card:hover .blog-card-share { opacity: 1; }
.blog-card-share:hover {
  border-color: rgba(255, 138, 61, 0.4);
  box-shadow: 0 0 14px rgba(255, 138, 61, 0.12), inset 0 0 8px rgba(255, 138, 61, 0.06);
  transform: scale(1.1);
}
.blog-card-share:focus-visible {
  opacity: 1;
  outline: 2px solid rgba(255,138,61,0.55);
  outline-offset: 2px;
}
.blog-card-body {
  padding: 20px;
}
.blog-card-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}
.blog-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}
.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Blog newsletter section */
.blog-newsletter {
  padding: 80px 0;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 60%, rgba(255,138,61,0.06) 0%, transparent 70%);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.blog-newsletter h2 {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 12px;
}
.blog-newsletter-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
}
.blog-newsletter-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

/* ═══════════════════════════════════════════════════
   BLOG — Article Page
   ═══════════════════════════════════════════════════ */
.article-container {
  max-width: 680px;
}

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  z-index: 101;
  transition: width 0.1s linear;
}

/* Article header */
.article-header {
  padding: 120px 0 40px;
  text-align: center;
}
.article-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}
.article-header h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.article-meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}
.app-count-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(255, 138, 61, 0.08);
  border: 1px solid rgba(255, 138, 61, 0.15);
  margin-top: 10px;
}

/* Article share button */
.article-share {
  margin-top: 20px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  backdrop-filter: blur(8px) brightness(1.35) saturate(1.25);
  -webkit-backdrop-filter: blur(8px) brightness(1.35) saturate(1.25);
  border: 1px solid rgba(255, 138, 61, 0.3);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  transition: border-color 0.25s, box-shadow 0.25s, color 0.2s, transform 0.1s;
}
.share-btn:hover {
  border-color: rgba(255, 138, 61, 0.55);
  box-shadow: 0 0 16px rgba(255, 138, 61, 0.12), inset 0 0 10px rgba(255, 138, 61, 0.06);
}
.share-btn:active {
  transform: scale(0.97);
}
.share-btn:focus-visible {
  outline: 2px solid rgba(255,138,61,0.55);
  outline-offset: 2px;
}

/* Article body typography */
.article-body {
  padding-bottom: 60px;
}
.article-body p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 24px;
}
.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 48px 0 16px;
}
.article-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 32px 0 12px;
}
.article-body .app-card-name {
  margin: 0;
  line-height: 1.3;
}
.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body a:hover { color: var(--accent2); }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  margin: 24px 0;
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
  font-style: italic;
}
.article-body ul, .article-body ol {
  margin: 16px 0 24px 20px;
  color: var(--text);
}
.article-body li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.article-body strong { color: var(--text); }

/* Media blocks */
.media-block {
  margin: 32px 0;
}
.media-block figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}

.article-illustration {
  margin: 2rem 0;
  text-align: center;
}

.illustration-svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.section-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 3rem 0;
  opacity: 0.5;
}

/* Horizontal video (16:9) */
.media-video-h video {
  width: 100%;
  border-radius: var(--radius);
  background: var(--surface);
}

/* Vertical video (9:16) — centered, capped width */
.media-video-v {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.media-video-v-shell {
  width: 100%;
  max-width: 360px;
  padding: 10px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 138, 61, 0.03));
}
.media-video-v video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  background: var(--surface);
  object-fit: cover;
}

/* Blog video - card style, consistent with homepage */
.media-video-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.video-card-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.media-video-clean video {
  max-width: 360px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* Image */
.media-image img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}

/* Audio */
.audio-wrapper {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.06);
}
.audio-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}
.audio-wrapper audio {
  width: 100%;
}

/* Author card (bottom of article) */
.article-author {
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.author-card {
  display: flex;
  gap: 20px;
  align-items: center;
}
.author-card-photo {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.08);
}
.author-card-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.author-card-bio {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Article nav */
.article-nav {
  padding: 0 0 60px;
}

/* Article inline CTA */
.article-cta {
  padding: 0 0 40px;
  text-align: center;
}
.article-cta .article-container {
  max-width: 760px;
}
.article-cta-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.article-cta-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.article-cta-form {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  max-width: 360px;
}
.article-cta-form .email-input {
  max-width: none;
  width: 100%;
}
.article-cta .form-note {
  margin-top: 2px;
}

/* ---------------------------------------------------
   LISTICLE - Table of Contents
   --------------------------------------------------- */
.article-toc {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 20px;
}
.article-toc-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}
.article-toc ol {
  list-style: none;
  counter-reset: toc;
  padding: 0;
}
.article-toc li {
  counter-increment: toc;
  margin-bottom: 8px;
}
.article-toc li::before {
  content: counter(toc) ".";
  color: var(--accent);
  font-weight: 700;
  margin-right: 8px;
  font-size: 0.9rem;
}
.article-toc a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.article-toc a:hover {
  color: var(--accent);
}

.article-toc a.toc-active {
  color: var(--accent);
  font-weight: 600;
}
.article-body > .article-toc + p {
  margin-top: 0;
}

.filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 12px 0;
  margin: 0 0 24px 0;
}
.filter-chips::-webkit-scrollbar { display: none; }

.filter-chips .filter-chip {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.filter-chips .filter-chip:hover,
.filter-chips .filter-chip:active {
  border-color: rgba(255, 138, 61, 0.3);
  background: rgba(255, 138, 61, 0.06);
  color: var(--accent2);
}

/* ---------------------------------------------------
   LISTICLE - App Review Card
   --------------------------------------------------- */
.app-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
}
.app-card-header {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  grid-template-areas: "icon info badge";
  align-items: start;
  column-gap: 16px;
  row-gap: 8px;
  margin-bottom: 20px;
}
.app-card-toggle {
  display: none;
}
.app-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.app-card-link {
  display: inline-flex;
  grid-area: icon;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.app-card-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.app-card-info {
  grid-area: info;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.app-card-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.28;
}
.app-card-name .app-card-name-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.app-card-name .app-card-name-link:hover {
  color: var(--accent);
}
.app-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.app-store-links {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.app-store-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.app-store-links a:hover {
  color: var(--accent2);
  border-bottom-color: rgba(255, 209, 102, 0.5);
}
.app-card-platforms-mobile {
  display: none;
}
.price-hint {
  color: var(--muted);
  font-size: 0.8rem;
}
.app-card-badge {
  grid-area: badge;
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 138, 61, 0.3);
  background: rgba(255, 138, 61, 0.08);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-left: 0;
  justify-self: end;
  align-self: start;
  white-space: nowrap;
}
.app-card-description {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.app-card-rating {
  color: var(--accent2);
  font-weight: 600;
}
.app-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.app-card-pros,
.app-card-cons {
  padding: 0;
  list-style: none;
}
.app-card-pros-title,
.app-card-cons-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.app-card-pros-title {
  color: #4ade80;
}
.app-card-cons-title {
  color: #f87171;
}
.app-card-pros li,
.app-card-cons li {
  position: relative;
  padding-left: 16px;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.5;
}
.app-card-pros li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: #4ade80;
  font-weight: 700;
}
.app-card-cons li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: #f87171;
  font-weight: 700;
}
.app-card-verdict {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.95rem;
  line-height: 1.6;
}
.app-card-verdict strong {
  color: var(--accent);
}
.app-card-next {
  display: none;
}

/* Pricing block inside app card */
.app-card-pricing {
  margin: 16px 0;
  padding: 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.app-card-pricing-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.app-card-pricing ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.92rem;
}
.app-card-pricing li {
  padding: 4px 0;
  color: var(--muted);
}
.app-card-signup {
  margin: 20px 0 0 0;
  padding: 18px;
  border-radius: 10px;
  background: rgba(255, 138, 61, 0.04);
  border: 1px solid rgba(255, 138, 61, 0.12);
}
.app-card-signup-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  text-transform: none;
  letter-spacing: normal;
}
.app-card-signup-text {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.app-card-signup-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  text-align: center;
  padding: 12px 20px;
}

/* UGC quotes */
.app-card-ugc {
  margin: 16px 0;
  display: grid;
  gap: 12px;
}
.ugc-quote {
  padding: 12px 16px;
  border-radius: 8px;
  margin: 0;
  font-size: 0.9rem;
  font-style: italic;
  border-left: 3px solid;
}
.ugc-positive {
  border-left-color: #44aa55;
  background: rgba(68, 170, 85, 0.06);
}
.ugc-negative {
  border-left-color: #cc5544;
  background: rgba(204, 85, 68, 0.06);
}
.ugc-quote cite {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  font-style: normal;
  color: var(--muted);
}

/* Billing badges */
.billing-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.billing-green {
  background: rgba(68, 170, 85, 0.15);
  color: #6fc97a;
}
.billing-yellow {
  background: rgba(230, 180, 50, 0.15);
  color: #e6b432;
}
.billing-red {
  background: rgba(204, 85, 68, 0.15);
  color: #e06655;
}

/* Icon placeholder for apps without downloaded icons */
.app-card-icon-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(255, 138, 61, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

/* ---------------------------------------------------
   LISTICLE - Comparison Table
   --------------------------------------------------- */
.comparison-table-wrapper {
  margin-bottom: 48px;
}
.comparison-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.comparison-table th,
.comparison-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
  word-break: break-word;
}
.comparison-table th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: sticky;
  top: 0;
  background: var(--bg);
}
.comparison-table td:first-child {
  font-weight: 600;
  white-space: normal;
}
.comparison-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}
.comparison-table .highlight-row {
  background: rgba(255, 138, 61, 0.04);
  border-left: 2px solid var(--accent);
}
.comparison-table .highlight-row:hover {
  background: rgba(255, 138, 61, 0.07);
}

/* ---------------------------------------------------
   LISTICLE - FAQ Accordion
   --------------------------------------------------- */
.faq-section {
  margin-bottom: 48px;
}
.faq-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 0;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}
.faq-question:hover {
  color: var(--accent);
}
.faq-question::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--muted);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.2s;
}
.faq-item.open .faq-question::after {
  content: "-";
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    max-height var(--motion-expand) var(--motion-ease-out),
    opacity var(--motion-fade) ease,
    transform var(--motion-expand) var(--motion-ease-out);
  will-change: max-height, opacity, transform;
}
.faq-item.open .faq-answer {
  max-height: var(--faq-max-height, 560px);
  opacity: 1;
  transform: translateY(0);
}
.faq-answer-inner {
  padding: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------------------------------------------------
   LISTICLE - Highlight / Callout Box
   --------------------------------------------------- */
.listicle-highlight {
  background: rgba(255, 138, 61, 0.04);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin-bottom: 32px;
  font-size: 0.95rem;
  line-height: 1.7;
}
.listicle-highlight strong {
  color: var(--accent);
}

/* Listicle section separators for long-form rhythm */
#anxiety-apps,
#sleep-apps,
#free-apps,
#interactive-apps,
#timer-alternatives,
#calm-headspace-alternatives,
#comparison-table {
  padding-top: 48px;
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Floating back-to-top button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  backdrop-filter: brightness(1.4) blur(6px);
  -webkit-backdrop-filter: brightness(1.4) blur(6px);
  border: 1px solid rgba(255, 138, 61, 0.3);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, border-color 0.25s, box-shadow 0.25s, transform 0.1s;
  z-index: 100;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  border-color: rgba(255, 138, 61, 0.55);
  box-shadow: 0 0 16px rgba(255, 138, 61, 0.12);
}
.back-to-top:active {
  transform: scale(0.97);
}
.back-to-top:focus-visible {
  outline: 2px solid rgba(255, 138, 61, 0.55);
  outline-offset: 2px;
}

@media (min-width: 1100px) {
  .article-container {
    position: relative;
  }
  .article-toc {
    position: sticky;
    top: 80px;
    float: left;
    width: 200px;
    margin-left: -240px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    font-size: 0.85rem;
  }
  .article-toc a {
    font-size: 0.82rem;
  }
  .article--sidebar-toc .article-container {
    max-width: 980px;
  }
  .article--sidebar-toc .article-body {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    column-gap: 40px;
    align-items: start;
  }
  .article--sidebar-toc .article-body > :not(.article-toc) {
    grid-column: 2;
  }
  .article--sidebar-toc .article-toc {
    grid-column: 1;
    position: sticky;
    top: 80px;
    width: auto;
    margin: 0;
    float: none;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    align-self: start;
  }
}

@media (max-width: 480px) {
  .blog-card:hover { transform: none; }
  .blog-card-share { opacity: 0.7; }

  /* Blog index: featured + compact list */
  .page-header {
    padding: 90px 0 32px;
  }
  .page-header h1 {
    margin-bottom: 8px;
  }
  .page-header p {
    font-size: 0.95rem;
  }

  .blog-grid-section {
    padding: 0 0 40px;
  }
  .blog-grid {
    gap: 12px;
  }

  .blog-card:first-child .blog-card-body {
    padding: 14px 16px;
  }
  .blog-card:first-child .blog-card-excerpt {
    -webkit-line-clamp: 2;
    font-size: 0.85rem;
    margin-bottom: 8px;
  }

  .blog-card:not(:first-child) {
    display: grid;
    grid-template-columns: 72px 1fr;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 86px;
  }
  .blog-card:not(:first-child) .blog-card-thumb {
    aspect-ratio: auto;
    height: 100%;
    min-height: 86px;
    border-radius: 0;
    border-right: 1px solid rgba(255,255,255,0.06);
    background-position: center;
    background-size: 180%;
  }
  .blog-card:not(:first-child) .blog-card-body {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
  }
  .blog-card:not(:first-child) .blog-card-excerpt {
    display: none;
  }
  .blog-card:not(:first-child) .blog-card-title {
    font-size: 0.98rem;
    line-height: 1.25;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .blog-card:not(:first-child) .blog-card-category {
    font-size: 0.68rem;
    margin-bottom: 4px;
  }
  .blog-card:not(:first-child) .blog-card-meta {
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
  }
  .blog-card:not(:first-child) .blog-card-meta span::before {
    content: "·";
    margin-right: 6px;
    color: var(--muted);
  }
  .blog-card:not(:first-child) .blog-card-share {
    display: none;
  }

  .blog-newsletter {
    padding: 40px 0;
  }
  .blog-newsletter h2 {
    font-size: 1.2rem;
  }
  .blog-newsletter-sub {
    font-size: 0.88rem;
    margin-bottom: 20px;
  }

  .article-toc {
    padding: 18px 18px;
    margin-bottom: 12px;
  }
  .article-toc-title {
    margin-bottom: 10px;
  }
  .article-toc li {
    margin-bottom: 6px;
  }
  .illustration-svg {
    max-width: 100%;
  }
  .section-divider {
    margin: 2rem 0;
  }

  /* Listicle mobile */
  .article-container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .app-card {
    padding: 14px;
    margin-bottom: 12px;
    border-radius: 12px;
  }
  .app-card-header {
    gap: 0 8px;
  }
  .app-card-name {
    font-size: 1.03rem;
    line-height: 1.22;
  }
  .app-card-meta {
    font-size: 0.8rem;
  }
  .app-card-badge {
    font-size: 0.68rem;
    padding: 1px 6px;
  }
  .app-card-body {
    padding-top: 2px;
  }
  .app-card-description {
    font-size: 0.9rem;
    line-height: 1.58;
    margin-bottom: 14px;
  }
  .app-card-pricing {
    padding: 10px;
    margin: 10px 0;
  }
  .app-card-pricing ul {
    font-size: 0.82rem;
  }
  .app-card-grid { grid-template-columns: 1fr; }
  .app-card-grid {
    gap: 12px;
    margin-bottom: 14px;
  }
  .app-card-pros li,
  .app-card-cons li {
    font-size: 0.84rem;
  }
  .ugc-quote {
    padding: 8px 10px;
    font-size: 0.82rem;
  }
  .app-card-verdict {
    font-size: 0.85rem;
    padding-top: 10px;
  }
  .filter-chips .filter-chip {
    padding: 5px 12px;
    font-size: 0.78rem;
  }
  .article-body h2 {
    font-size: 1.2rem;
    margin-top: 32px;
  }
  .article-cta-title {
    font-size: 1.1rem;
  }
  .article-cta-sub {
    font-size: 0.92rem;
    margin-bottom: 18px;
  }
  .comparison-table { font-size: 0.82rem; }
  .comparison-table th, .comparison-table td { padding: 10px 8px; }
}

@media (max-width: 768px) {
  .app-card {
    padding: 18px;
    margin-bottom: 18px;
    border-radius: 14px;
  }
  .app-card-header {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 34px;
    grid-template-areas:
      "icon info toggle"
      "badge badge badge";
    gap: 10px 12px;
    align-items: start;
    align-content: start;
    margin-bottom: 0;
  }
  .app-card-link {
    grid-area: icon;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    align-self: start;
  }
  .app-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }
  .app-card-info {
    grid-area: info;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-self: start;
  }
  .app-card-name {
    font-size: 1.08rem;
    line-height: 1.25;
    margin: 0;
  }
  .app-card-meta {
    gap: 6px 8px;
    font-size: 0.82rem;
    flex-wrap: wrap;
    overflow: visible;
    white-space: normal;
    line-height: 1.3;
  }
  .app-card-meta > span:not(.app-card-rating) {
    display: none;
  }
  .app-card-meta .app-store-links {
    display: none;
  }
  .app-card-meta .app-card-rating {
    display: inline;
  }
  .app-card-meta .price-hint { display: none !important; }
  .app-card-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-area: toggle;
    align-self: start;
    width: 34px;
    height: 34px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: var(--text);
    cursor: pointer;
    transition:
      transform var(--motion-expand) var(--motion-ease-out),
      border-color 220ms ease,
      background-color 220ms ease;
    flex-shrink: 0;
    padding: 0;
  }
  .app-card-toggle:hover {
    border-color: rgba(255, 138, 61, 0.35);
  }
  .app-card-badge {
    grid-area: badge;
    justify-self: start;
    margin: 0;
    font-size: 0.72rem;
    padding: 2px 10px;
    align-self: start;
    white-space: normal;
  }
  .app-card-body {
    padding-top: 8px;
    overflow: hidden;
    max-height: var(--app-body-max, 2200px);
    opacity: 1;
    transform: translateY(0);
    transform-origin: top center;
    transition:
      max-height var(--motion-expand) var(--motion-ease-out),
      opacity var(--motion-fade) ease,
      transform var(--motion-expand) var(--motion-ease-out);
    will-change: max-height, opacity, transform;
  }
  .app-card-platforms-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 0.82rem;
    color: var(--muted);
    padding: 12px 0 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 12px;
  }
  .app-card-platforms-mobile .app-store-links {
    display: inline-flex;
    gap: 8px;
  }
  .app-card-platforms-mobile .app-store-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
  }
  .app-card-pricing {
    padding: 12px;
    margin: 12px 0;
  }
  .app-card-pricing ul {
    font-size: 0.85rem;
  }
  .ugc-quote {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  .app-card-verdict {
    font-size: 0.9rem;
    padding-top: 14px;
  }
  .app-card-signup {
    margin-top: 14px;
    padding: 14px;
  }
  .app-card-signup-cta {
    max-width: none;
    width: 100%;
  }
  .app-card[data-expanded="false"] .app-card-body {
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
  }
  .app-card[data-expanded="true"] .app-card-toggle {
    transform: rotate(180deg);
    background: rgba(255, 255, 255, 0.04);
  }
  .app-card-next {
    display: block;
    margin-top: 14px;
    padding: 12px 0 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.82rem;
    color: var(--muted);
    text-decoration: none;
  }
  .app-card-next:hover {
    color: var(--accent);
  }
  .comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  #comparison-table .comparison-table {
    min-width: 620px;
    table-layout: auto;
  }
  #comparison-table .comparison-table-wrapper {
    position: relative;
  }
  #comparison-table .comparison-table-wrapper::after {
    content: "Scroll \2192";
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.72rem;
    color: var(--muted);
    opacity: 0.6;
    pointer-events: none;
  }
  #comparison-table .comparison-table-wrapper.scrolled::after {
    display: none;
  }
}

/* Fine-tune very small screens after base mobile rules */
@media (max-width: 480px) {
  .app-card {
    padding: 16px;
    margin-bottom: 14px;
    border-radius: 12px;
  }
  .app-card-header {
    grid-template-columns: 42px minmax(0, 1fr) 32px;
    gap: 8px 10px;
  }
  .app-card-link,
  .app-card-icon {
    width: 42px;
    height: 42px;
  }
  .app-card-name {
    font-size: 1.04rem;
    line-height: 1.24;
  }
  .app-card-meta {
    font-size: 0.8rem;
    line-height: 1.3;
  }
  .app-card-meta .price-hint { display: none !important; }
  .app-card-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
  }
  .app-card-toggle {
    width: 32px;
    height: 32px;
  }
  .app-card-body {
    padding-top: 6px;
  }
  .app-card-pricing {
    padding: 10px;
    margin: 10px 0;
  }
  .app-card-pricing ul {
    font-size: 0.82rem;
  }
  .ugc-quote {
    padding: 8px 10px;
    font-size: 0.82rem;
  }
  .app-card-verdict {
    font-size: 0.85rem;
    padding-top: 10px;
  }
  .app-card-signup {
    padding: 12px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-card-thumb { aspect-ratio: 2 / 1; }
}

@media (min-width: 769px) {
  .app-card-toggle { display: none; }
  .app-card-body { display: block !important; }
  .app-card-next { display: none; }
  .price-hint { display: none; }
  .app-card-signup-cta { width: auto; min-width: 240px; }
}

@media (min-width: 769px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .filter-chips { display: none; }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .ambient-ember { animation: none; opacity: 0; }
  .ambient-ember.magnified { scale: 1; filter: none; transition: none; }
  .ambient-ember.magnified-hero { scale: 1; filter: none; transition: none; }
  .hero-glow, .embers, .ember { animation: none; }
  .hero-glow { opacity: 0.8; }
  .app-card-body,
  .faq-answer,
  .benefit-detail {
    filter: none;
    transition: none;
    transform: none;
    opacity: 1;
  }
  .benefit-item::after {
    display: none;
  }
  .benefit-item {
    transition: none;
  }
  .benefit-inline-link {
    animation: none !important;
    text-shadow: none;
  }
  .app-card-toggle {
    transition: none;
  }
}

/* Habit curve chart */
.habit-curve-svg {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* 21-Day Breath Map */
.breath-map {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  margin: 24px 0;
}

.breath-map-week {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.breath-map-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.breath-map-phase {
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
  font-size: 0.8rem;
}

.breath-map-days {
  display: flex;
  gap: 8px;
}

.breath-map-day {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 138, 61, 0.25);
  background: rgba(255, 138, 61, 0.04);
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .breath-map {
    padding: 16px;
    gap: 12px;
  }

  .breath-map-days {
    gap: 6px;
  }

  .breath-map-day {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 350px) {
  .breath-map-day {
    width: 24px;
    height: 24px;
    border-width: 1.5px;
  }

  .breath-map-days {
    gap: 4px;
  }
}

/* --- Cookie Consent Banner --- */
.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(10, 13, 18, 0.97);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 0;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.consent-banner.consent-visible {
  transform: translateY(0);
}
.consent-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.consent-text {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}
.consent-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.consent-btn {
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s;
}
.consent-decline {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.consent-decline:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.consent-accept {
  background: var(--accent);
  color: #0a0d12;
}
.consent-accept:hover {
  background: #ff9d5c;
}

@media (max-width: 480px) {
  .consent-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .consent-text {
    font-size: 0.8rem;
  }
  .consent-actions {
    width: 100%;
  }
  .consent-btn {
    flex: 1;
    padding: 10px 12px;
  }
}
