:root {
  color-scheme: dark;

  /* Layout & Viewport Standards (~1440 x 900 Desktop Focus) */
  --header-height: 4.75rem;
  --max-content-width: 1280px;
  --section-pad-x: clamp(1.5rem, 5vw, 4rem);
  --section-pad-y: clamp(4.5rem, 7vw, 6.5rem);

  /* Centralized Color Tokens (Grounded in Verified Android App Truth) */
  --bg-base: #0B0E1B;              /* Deep nocturnal background */
  --bg-midnight: #101426;          /* Primary canvas midnight tone */
  --bg-surface: #161B33;           /* Elevated surface */
  --bg-card: rgba(22, 27, 51, 0.72); /* Glassmorphic card surface */
  --bg-card-hover: rgba(28, 35, 66, 0.85);
  --bg-card-strong: rgba(26, 32, 60, 0.95);
  --bg-pill: rgba(255, 255, 255, 0.05);

  /* Glass Borders & Separators */
  --border-subtle: rgba(138, 162, 214, 0.12);
  --border-glass: rgba(138, 162, 214, 0.20);
  --border-strong: rgba(138, 162, 214, 0.35);
  --border-accent: rgba(96, 165, 250, 0.40);

  /* Typography Colors */
  --text-primary: #F8FAFC;         /* High-contrast crisp off-white */
  --text-secondary: #CBD5E1;       /* Soft slate body */
  --text-muted: #8A9AAD;           /* Muted secondary steel */
  --text-dim: #54627A;             /* Footnotes and captions */

  /* Brand Accents (Verified Invariants) */
  --brand-blue: #3B82F6;           /* Alarmify core electric blue */
  --brand-blue-hover: #2563EB;
  --brand-blue-soft: #60A5FA;
  --brand-blue-glow: rgba(59, 130, 246, 0.28);

  --brand-violet: #8B5CF6;         /* AI Studio & Aurora accent */
  --brand-violet-soft: #A78BFA;
  --brand-violet-glow: rgba(139, 92, 246, 0.22);

  --brand-emerald: #34D399;        /* Sleep Streak consistency green */
  --brand-emerald-soft: #6EE7B7;
  --brand-amber: #FBBF24;          /* Streak Saver shield gold */

  /* Shadows & Depth */
  --shadow-card: 0 20px 50px -10px rgba(0, 0, 0, 0.45);
  --shadow-glass: 0 16px 40px rgba(5, 7, 15, 0.35);
  --shadow-glow-blue: 0 0 35px -5px rgba(59, 130, 246, 0.25);
  --shadow-glow-violet: 0 0 35px -5px rgba(139, 92, 246, 0.20);

  /* Reusable Motion Tokens */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --duration-fast: 160ms;
  --duration-normal: 280ms;
  --duration-slow: 550ms;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.25rem);
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: var(--header-height);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-base);
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(59, 130, 246, 0.12), transparent 70%),
    radial-gradient(ellipse 65% 45% at 85% 15%, rgba(139, 92, 246, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg-base) 0%, var(--bg-midnight) 45%, #0D1122 100%);
  background-attachment: fixed;
  background-size: cover;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  transition: color var(--duration-fast) var(--ease-out);
}

a,
button,
img {
  -webkit-user-drag: none;
}

button,
.button,
.nav-cta,
.site-header,
.site-header *,
.phone-card,
.phone-card * {
  -webkit-user-select: none;
  user-select: none;
}

img {
  user-select: none;
}

/* =========================================================================
   Site Header & Brand Shell
   ========================================================================= */

.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 var(--section-pad-x);
  background: rgba(16, 20, 38, 0.82);
  border-bottom: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.brand-logo {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--border-glass);
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.nav a,
.footer-links a {
  border: 0;
  border-radius: 999px;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
}

.nav a:hover,
.footer-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav a.nav-cta,
.nav-cta {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-hover) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 18px var(--brand-blue-glow);
  transition: transform var(--duration-fast) var(--ease-smooth), box-shadow var(--duration-fast) var(--ease-smooth);
}

.nav a.nav-cta:hover,
.nav-cta:hover {
  color: #FFFFFF;
  background: linear-gradient(135deg, #4F93FF 0%, #1D4ED8 100%);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}

/* =========================================================================
   Standard Typography & Section Wrappers
   ========================================================================= */

.hero,
.section,
.legal-page,
.trust-strip,
.site-footer {
  position: relative;
  max-width: var(--max-content-width);
  margin-left: auto;
  margin-right: auto;
}

.hero,
.section,
.site-footer {
  padding-left: var(--section-pad-x);
  padding-right: var(--section-pad-x);
}

.section {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--brand-blue-soft);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-block;
}

h1,
h2,
h3,
h4,
p,
ul {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.15rem;
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 850;
  color: var(--text-primary);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--text-primary);
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.3rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

p,
li,
summary {
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero-text,
.legal-lead {
  max-width: 42rem;
  font-size: clamp(1.08rem, 1.8vw, 1.25rem);
  line-height: 1.65;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-pills,
.legal-summary,
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-pills {
  margin-top: 1.6rem;
}

.hero-pills span,
.preview-badge,
.legal-summary-card,
.trust-strip div {
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  background: var(--bg-pill);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-pills span {
  padding: 0.55rem 0.95rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* =========================================================================
   Standard Buttons & Actions
   ========================================================================= */

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  font-weight: 750;
  font-size: 1rem;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.button.primary {
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-hover) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px var(--brand-blue-glow);
}

.button.primary:hover {
  background: linear-gradient(135deg, #4F93FF 0%, #1D4ED8 100%);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.45);
  transform: translateY(-2px);
}

.button.secondary {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

/* =========================================================================
   Shared Cards & Glassmorphic Surfaces
   ========================================================================= */

.phone-card,
.feature-card,
.store-card,
.spotlight-card,
.split,
.legal-card,
.faq-item {
  border: 1px solid var(--border-glass);
  border-radius: 1.6rem;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.88fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-bottom: 3.5rem;
  perspective: 1400px;
  overflow: visible;
}

/* =========================================================================
   Atmospheric Lighting & 3D Celestial Moon Centerpiece
   ========================================================================= */

.hero-atmosphere {
  position: absolute;
  inset: -6rem -10rem -4rem -10rem;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  will-change: transform;
}

.hero-glow-moon {
  width: 520px;
  height: 520px;
  right: 2%;
  top: -5%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, rgba(96, 165, 250, 0.08) 45%, transparent 70%);
}

.hero-glow-violet {
  width: 440px;
  height: 440px;
  left: 5%;
  top: 15%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.16) 0%, rgba(124, 58, 237, 0.05) 50%, transparent 70%);
}

.hero-celestial-moon {
  position: absolute;
  top: 1.5rem;
  right: 18%;
  width: 170px;
  height: 170px;
  z-index: 0;
  pointer-events: none;
  animation: moon-float 9s ease-in-out infinite alternate;
  will-change: transform;
}

.moon-body {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFFFFF 0%, #D8E4F8 18%, #7E97C8 52%, #2A3B68 84%, #121A33 100%);
  box-shadow:
    0 0 50px rgba(147, 197, 253, 0.45),
    0 0 100px rgba(59, 130, 246, 0.25),
    inset -14px -14px 28px rgba(11, 14, 27, 0.9),
    inset 6px 6px 14px rgba(255, 255, 255, 0.65);
}

.moon-crater {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32, 45, 78, 0.6) 0%, rgba(20, 29, 53, 0.3) 70%, transparent 100%);
  box-shadow: inset 1px 1px 3px rgba(11, 14, 27, 0.7), inset -1px -1px 2px rgba(255, 255, 255, 0.25);
}

.crater-1 { width: 26px; height: 26px; top: 22%; left: 30%; }
.crater-2 { width: 38px; height: 38%; top: 46%; left: 40%; }
.crater-3 { width: 16px; height: 16px; top: 28%; left: 62%; }
.crater-4 { width: 22px; height: 22px; top: 66%; left: 26%; }

.moon-halo {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 197, 253, 0.18) 40%, rgba(59, 130, 246, 0.08) 65%, transparent 80%);
  filter: blur(10px);
  pointer-events: none;
}

.moon-ring {
  position: absolute;
  inset: -25px;
  border-radius: 50%;
  border: 1.5px solid rgba(147, 197, 253, 0.22);
  border-top-color: rgba(255, 255, 255, 0.45);
  border-bottom-color: transparent;
  transform: rotateX(74deg) rotateY(-16deg);
  box-shadow: 0 0 15px rgba(96, 165, 250, 0.25);
  pointer-events: none;
  animation: moon-ring-orbit 24s linear infinite;
}

@keyframes moon-float {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes moon-ring-orbit {
  0% { transform: rotateX(74deg) rotateY(-16deg) rotateZ(0deg); }
  100% { transform: rotateX(74deg) rotateY(-16deg) rotateZ(360deg); }
}

/* =========================================================================
   Hero Copy & Key Action Elements
   ========================================================================= */

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 44rem;
  animation: rise-in 720ms var(--ease-smooth) both;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.32);
  color: var(--brand-blue-soft);
  font-size: 0.84rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.15);
}

.android-icon {
  color: var(--brand-emerald);
  flex-shrink: 0;
}

.hero-cta {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 10px 30px -4px rgba(37, 99, 235, 0.55), 0 0 0 1px rgba(59, 130, 246, 0.25);
  padding: 0.95rem 1.85rem;
  gap: 0.65rem;
}

.hero-cta:hover {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  box-shadow: 0 14px 38px -4px rgba(37, 99, 235, 0.65), 0 0 16px rgba(96, 165, 250, 0.4);
}

.play-icon {
  flex-shrink: 0;
}

.btn-arrow {
  display: inline-block;
  margin-left: 0.25rem;
  transition: transform var(--duration-fast) var(--ease-smooth);
}

.button.secondary:hover .btn-arrow {
  transform: translateY(2px);
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.4rem;
  margin-top: 2.25rem;
  align-items: center;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 650;
}

.trust-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--brand-emerald);
  font-size: 0.74rem;
  font-weight: 900;
}

/* =========================================================================
   Hero Device Hardware Mockup
   ========================================================================= */

.hero-device-wrapper {
  position: relative;
  z-index: 2;
  perspective: 1200px;
  transform-style: preserve-3d;
  will-change: transform;
}

.phone-card {
  position: relative;
  overflow: hidden;
  padding: 1.6rem 1.4rem 1.4rem;
  border-radius: 2.4rem;
  background:
    radial-gradient(circle at 85% 15%, rgba(139, 92, 246, 0.16), transparent 14rem),
    radial-gradient(circle at 15% 85%, rgba(59, 130, 246, 0.14), transparent 14rem),
    linear-gradient(165deg, rgba(26, 32, 60, 0.96), rgba(16, 20, 38, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 25px 60px -15px rgba(0, 0, 0, 0.75),
    0 0 60px -10px rgba(59, 130, 246, 0.22),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transform-style: preserve-3d;
  animation: rise-in 800ms 140ms var(--ease-smooth) both;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.phone-card:hover {
  box-shadow:
    0 30px 75px -15px rgba(0, 0, 0, 0.82),
    0 0 70px -5px rgba(59, 130, 246, 0.32),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.phone-glare {
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 42%, transparent 62%);
  pointer-events: none;
  transform: rotate(-25deg);
  z-index: 10;
}

.phone-camera-notch {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: #080B16;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.9);
  z-index: 12;
}

.phone-top,
.time-card,
.mini-grid,
.preview-panel {
  position: relative;
  z-index: 1;
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.preview-logo {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.95rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--border-glass);
}

.preview-brand {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.preview-brand small,
.streak-label,
.time-meta-label,
.legal-summary-card small,
.streak-bottom small {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.preview-badge {
  margin-left: auto;
  padding: 0.45rem 0.8rem;
  color: var(--brand-emerald);
  border-color: rgba(52, 211, 153, 0.35);
  font-size: 0.85rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.time-card {
  border-radius: 1.4rem;
  min-height: 11.5rem;
  padding: 1.3rem 1.4rem;
  background: rgba(11, 14, 27, 0.65);
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.25);
}

.time-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.time-meta-detail {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--brand-blue-soft);
  font-size: 0.8rem;
  font-weight: 750;
}

.time {
  display: inline-block;
  color: var(--text-primary);
  font-size: clamp(4rem, 11vw, 6.5rem);
  font-weight: 850;
  letter-spacing: -0.05em;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.ampm {
  margin-left: 0.35rem;
  color: var(--brand-blue-soft);
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: lowercase;
}

.time-card p {
  margin: 0.8rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.preview-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.preview-panel-row {
  padding: 0.85rem 1rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

.preview-panel-row span {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.preview-panel-row strong,
.streak-bottom strong,
.streak-count {
  color: var(--text-primary);
  font-size: 0.98rem;
  font-weight: 750;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.mini-grid button {
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  padding: 0.65rem 0.35rem;
  color: var(--text-secondary);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  text-align: center;
  font-weight: 750;
  background: rgba(255, 255, 255, 0.04);
  transition: all var(--duration-fast) var(--ease-smooth);
  white-space: nowrap;
}

.mini-grid button.is-active {
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-hover) 100%);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px var(--brand-blue-glow);
  transform: translateY(-1px);
}

.mini-grid button:hover:not(.is-active) {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.preview-ai-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.95rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #C4B5FD;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.15);
}

.preview-ai-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #A78BFA;
  box-shadow: 0 0 10px #A78BFA;
  animation: pulse-ai 2s infinite ease-in-out;
}

@keyframes pulse-ai {
  0%, 100% {
    opacity: 0.55;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
    box-shadow: 0 0 14px #C4B5FD;
  }
}

.is-soft-pulse {
  animation: soft-chip-pulse 1.8s infinite ease-in-out;
}

@keyframes soft-chip-pulse {
  0%, 100% {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: none;
  }
  50% {
    border-color: rgba(59, 130, 246, 0.65);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.35);
  }
}

/* =========================================================================
   PHASE 4: Bedtime Sanctuary Section Styles
   ========================================================================= */

.bedtime-section {
  position: relative;
  overflow: visible;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.bedtime-atmosphere {
  position: absolute;
  inset: -6rem -10rem -6rem -10rem;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.bedtime-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.bedtime-glow-indigo {
  width: 520px;
  height: 520px;
  left: -80px;
  top: 15%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.16) 0%, rgba(79, 70, 229, 0.05) 50%, transparent 70%);
}

.bedtime-glow-violet {
  width: 480px;
  height: 480px;
  right: -60px;
  bottom: 10%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.14) 0%, rgba(124, 58, 237, 0.04) 50%, transparent 70%);
}

.bedtime-intro {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin-bottom: 3rem;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.32);
  color: #A5B4FC;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.18);
}

.section-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.68;
  margin-top: 0.75rem;
  max-width: 44rem;
}

/* Bento Grid */
.bedtime-showcase-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bedtime-card {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1.8rem;
  background: linear-gradient(165deg, rgba(20, 26, 48, 0.82) 0%, rgba(13, 17, 32, 0.9) 100%);
  padding: 1.8rem;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  transition: transform var(--duration-normal) var(--ease-smooth),
              border-color var(--duration-normal) var(--ease-smooth),
              box-shadow var(--duration-normal) var(--ease-smooth);
}

.bedtime-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.38);
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.65), 0 0 25px rgba(99, 102, 241, 0.15);
}

/* Grid Spans */
.living-moon-card {
  grid-column: span 6;
}

.soundscapes-card {
  grid-column: span 6;
}

.breathing-card {
  grid-column: span 4;
}

.sleep-calc-card {
  grid-column: span 5;
}

.sleep-lock-card {
  grid-column: span 3;
}

/* Card Headers */
.card-glass-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.card-tag {
  color: #A5B4FC;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.card-indicator-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #60A5FA;
  box-shadow: 0 0 8px #60A5FA;
}

.soundscape-status,
.breath-pattern-badge,
.card-pill-subtle,
.lock-indicator {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
}

.breath-pattern-badge {
  color: #C4B5FD;
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.12);
}

/* Card 1: Living Moon */
.moon-companion-visual {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem;
  background: rgba(11, 14, 27, 0.65);
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.living-moon-sphere {
  position: relative;
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFFFFF 0%, #D8E4F8 20%, #7E97C8 55%, #1E293B 100%);
  box-shadow: 0 0 30px rgba(147, 197, 253, 0.5), inset -8px -8px 16px rgba(11, 14, 27, 0.85);
  animation: living-moon-pulse 4s ease-in-out infinite alternate;
}

@keyframes living-moon-pulse {
  0% {
    transform: scale(0.96);
    box-shadow: 0 0 24px rgba(147, 197, 253, 0.4), inset -8px -8px 16px rgba(11, 14, 27, 0.85);
  }
  100% {
    transform: scale(1.02);
    box-shadow: 0 0 38px rgba(147, 197, 253, 0.65), inset -8px -8px 16px rgba(11, 14, 27, 0.85);
  }
}

.living-moon-quote-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.quote-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 750;
}

.living-moon-quote {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  font-style: italic;
  margin: 0;
  line-height: 1.45;
  min-height: 2.9rem;
  transition: opacity 0.3s ease;
}

.moon-quote-dots {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.3rem;
}

.moon-quote-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.moon-quote-dots .dot.is-active {
  background: var(--brand-blue-soft);
  width: 14px;
  border-radius: 999px;
}

/* Card 2: Soundscapes */
.soundscape-interactive-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sound-tracks-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.sound-track-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease-smooth);
}

.sound-track-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.sound-track-btn.is-active {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.45);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.track-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.track-info strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 750;
  line-height: 1.2;
}

.track-info small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.soundscape-timer-module {
  padding: 0.9rem 1.1rem;
  background: rgba(11, 14, 27, 0.55);
  border-radius: 1.2rem;
  border: 1px solid var(--border-subtle);
}

.timer-module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.timer-module-header strong {
  color: var(--brand-blue-soft);
  font-weight: 750;
}

.timer-chips-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.timer-chip {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.timer-chip:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.timer-chip.is-active {
  background: var(--brand-blue);
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
}

.soundscape-note {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* Card 3: Breathing */
.breathing-interactive-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 1.3rem;
  background: rgba(11, 14, 27, 0.65);
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.breathing-circle-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.breathing-circle {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.28) 0%, rgba(99, 102, 241, 0.1) 70%, transparent 100%);
  border: 2px solid rgba(165, 180, 252, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.35);
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.breathing-circle.is-expanded {
  transform: scale(1.22);
}

.breathing-circle.is-contracted {
  transform: scale(0.88);
}

.breathing-circle-core {
  text-align: center;
}

.breathing-state-text {
  font-size: 0.85rem;
  font-weight: 800;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
}

.breathing-counter {
  font-size: 0.78rem;
  font-weight: 700;
  color: #C4B5FD;
  display: block;
  margin-top: 0.15rem;
}

.breathing-controls {
  display: flex;
  gap: 0.6rem;
  width: 100%;
}

.breathing-toggle-btn {
  flex: 1;
  padding: 0.65rem 0.55rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  text-align: center;
  font: inherit;
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease-smooth);
}

.breathing-toggle-btn:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.breathing-toggle-btn.is-active {
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(139, 92, 246, 0.45);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.2);
}

.breathing-toggle-btn strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 750;
}

.breathing-toggle-btn small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Card 4: Sleep Calc */
.sleep-calc-interactive {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.3rem;
  background: rgba(11, 14, 27, 0.65);
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.calc-prompt-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.calc-time-selector {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.time-select-chip {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.time-select-chip:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.time-select-chip.is-active {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  color: #FFFFFF;
}

.calc-results-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.cycle-result-box {
  padding: 0.75rem 0.85rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cycle-result-box.is-recommended {
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.35);
}

.cycle-pill {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--brand-emerald);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cycle-result-box:not(.is-recommended) .cycle-pill {
  color: var(--brand-blue-soft);
}

.cycle-time {
  font-size: 1.35rem;
  font-weight: 850;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.cycle-result-box small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.calc-disclaimer {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* Card 5: Sleep Lock */
.sleep-lock-preview {
  padding: 1.25rem 1rem;
  background: #070912;
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.85);
}

.lock-device-screen {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: center;
}

.lock-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.lock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #F59E0B;
  box-shadow: 0 0 6px #F59E0B;
}

.lock-center-clock {
  padding: 0.5rem 0;
}

.lock-time {
  font-size: 2.2rem;
  font-weight: 850;
  color: #E2E8F0;
  letter-spacing: -0.04em;
  display: block;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.lock-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.35rem;
  display: block;
}

.nightlight-modes {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.mode-tag {
  font-size: 0.68rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
}

.amber-glow {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FCD34D;
}

.lavender-glow {
  background: rgba(167, 139, 250, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.4);
  color: #DDD6FE;
}

/* Card Content Footers */
.bedtime-card-content h3 {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
  letter-spacing: -0.015em;
}

.bedtime-card-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.bedtime-card-content code {
  font-family: inherit;
  font-size: 0.82rem;
  padding: 0.15rem 0.35rem;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--brand-blue-soft);
}

/* =========================================================================
   PHASE 5: Wake-Up Challenges Section Styles
   ========================================================================= */

.challenges-section {
  position: relative;
  overflow: visible;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.challenges-atmosphere {
  position: absolute;
  inset: -6rem -10rem -6rem -10rem;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.challenges-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.challenges-glow-blue {
  width: 520px;
  height: 520px;
  right: -80px;
  top: 15%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.16) 0%, rgba(37, 99, 235, 0.05) 50%, transparent 70%);
}

.challenges-glow-emerald {
  width: 480px;
  height: 480px;
  left: -90px;
  bottom: 20%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.12) 0%, rgba(16, 185, 129, 0.03) 50%, transparent 70%);
}

.challenges-intro {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin-bottom: 3rem;
}

.challenges-eyebrow {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.35);
  color: var(--brand-blue-soft);
}

/* Split Showcase Layout */
.challenges-showcase {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 1fr);
  gap: 2.25rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

/* Missions List */
.missions-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mission-select-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease-smooth);
}

.mission-select-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(3px);
  color: var(--text-primary);
}

.mission-select-btn.is-active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.22) 100%);
  border-color: rgba(59, 130, 246, 0.5);
  color: #FFFFFF;
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.22);
}

.mission-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.mission-info {
  flex: 1;
  min-width: 0;
}

.mission-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.mission-name-row strong {
  font-size: 0.98rem;
  font-weight: 750;
  color: var(--text-primary);
}

.mission-select-btn.is-active .mission-name-row strong {
  color: #FFFFFF;
}

.mission-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* Tier Pills */
.tier-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tier-free {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--brand-emerald);
}

.tier-pro {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.25) 100%);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #FCD34D;
}

/* Simulator Card */
.mission-simulator-card {
  position: sticky;
  top: 5rem;
  border-radius: 2rem;
  background: linear-gradient(165deg, rgba(16, 20, 38, 0.96) 0%, rgba(10, 13, 25, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.5rem;
  box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.7), 0 0 40px rgba(59, 130, 246, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.simulator-bezel {
  position: relative;
  border-radius: 1.5rem;
  background: #070913;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.4rem;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.85);
}

.simulator-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.85rem;
  margin-bottom: 1.1rem;
}

.sim-header-title {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sim-badge {
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--brand-blue-soft);
}

.sim-header-title strong {
  font-size: 1.1rem;
  color: #FFFFFF;
  font-weight: 800;
}

.sim-difficulty-pill {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  font-size: 0.76rem;
  font-weight: 700;
  color: #E2E8F0;
}

/* Stage Viewport */
.sim-stage-viewport {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sim-stage {
  display: none;
  animation: rise-in 0.25s var(--ease-smooth) both;
}

.sim-stage.is-active {
  display: block;
}

/* Math */
.sim-math-header,
.sim-typing-header,
.sim-puzzle-header,
.sim-memory-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.math-timer-chip {
  color: #F87171;
  font-weight: 700;
}

.sim-math-equation {
  font-size: 1.85rem;
  font-weight: 850;
  color: var(--text-primary);
  text-align: center;
  margin: 1.1rem 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.sim-math-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.math-opt-btn {
  padding: 0.75rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: #FFFFFF;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.math-opt-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.math-opt-btn.is-correct {
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(52, 211, 153, 0.16);
  color: #6EE7B7;
}

/* Typing */
.sim-typing-quote {
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0.85rem;
  border-left: 3px solid var(--brand-blue-soft);
  font-style: italic;
  font-size: 0.92rem;
  color: #FFFFFF;
  line-height: 1.45;
  margin-bottom: 0.85rem;
}

.sim-typing-input-box {
  padding: 0.75rem 0.9rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 0.85rem;
  border: 1px solid rgba(59, 130, 246, 0.45);
  display: flex;
  align-items: center;
  gap: 0.2rem;
  color: #93C5FD;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1rem;
  background: #60A5FA;
  animation: typing-blink 1s infinite;
}

@keyframes typing-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.sim-typing-progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.progress-bar-fill {
  height: 100%;
  background: var(--brand-blue);
  border-radius: 999px;
}

/* Puzzle */
.sim-puzzle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  max-width: 210px;
  margin: 0.85rem auto;
}

.puzzle-tile {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-radius: 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.puzzle-tile.is-moved {
  border-color: var(--brand-blue-soft);
  background: rgba(59, 130, 246, 0.25);
  color: #93C5FD;
}

.puzzle-tile.tile-empty {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

/* QR Scanner */
.sim-qr-viewfinder {
  position: relative;
  width: 210px;
  height: 160px;
  margin: 0.85rem auto;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 1.1rem;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.4);
}

.viewfinder-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: #38BDF8;
  border-style: solid;
}

.viewfinder-corner.tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.viewfinder-corner.tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.viewfinder-corner.bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.viewfinder-corner.br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }

.scan-laser-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #38BDF8;
  box-shadow: 0 0 12px #38BDF8;
  animation: scan-laser 2.4s infinite ease-in-out;
}

@keyframes scan-laser {
  0%, 100% { top: 12%; opacity: 0.4; }
  50% { top: 85%; opacity: 1; }
}

.qr-target-tag {
  font-size: 0.72rem;
  color: #BAE6FD;
  font-weight: 700;
  background: rgba(11, 14, 27, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 0.25rem 0.6rem;
  border-radius: 0.45rem;
  z-index: 2;
}

/* Shake */
.sim-shake-gauge {
  text-align: center;
  margin-bottom: 0.85rem;
}

.shake-count-number {
  font-size: 3.25rem;
  font-weight: 850;
  color: #FCD34D;
  display: block;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
}

.sim-shake-gauge small {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.sim-shake-progress-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.shake-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #F59E0B, #10B981);
  border-radius: 999px;
}

.shake-intensity-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: #FBBF24;
}

/* Memory */
.sim-memory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  max-width: 220px;
  margin: 0.85rem auto;
}

.memory-card {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.memory-card.is-flipped {
  background: rgba(139, 92, 246, 0.25);
  border-color: rgba(139, 92, 246, 0.6);
  color: #FFFFFF;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.25);
}

/* Maze */
.sim-maze-graphic {
  width: 170px;
  height: 170px;
  margin: 0.85rem auto;
  position: relative;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(20, 25, 45, 0.85), #070912);
}

.maze-inner-wall {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.wall-1 { width: 115px; height: 115px; border-top-color: transparent; }
.wall-2 { width: 65px; height: 65px; border-bottom-color: transparent; }

.maze-ball {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #60A5FA;
  box-shadow: 0 0 12px #60A5FA;
  position: absolute;
  top: 36%;
  left: 44%;
  animation: float-maze-ball 3.5s infinite ease-in-out alternate;
}

@keyframes float-maze-ball {
  0% { transform: translate(0, 0); }
  50% { transform: translate(12px, -8px); }
  100% { transform: translate(-8px, 14px); }
}

.maze-goal-hole {
  position: absolute;
  bottom: 12%;
  right: 22%;
  font-size: 0.58rem;
  font-weight: 850;
  color: #34D399;
  border: 1.5px dashed #34D399;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Simulator Footer */
.sim-feedback-text {
  display: block;
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.65rem;
}

.simulator-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.85rem;
  margin-top: 1.1rem;
}

.sim-verified-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
}

.sim-verified-note svg {
  color: var(--brand-emerald);
  flex-shrink: 0;
}

/* =========================================================================
   Mission Chaining Spotlight Banner (Pro Exclusive)
   ========================================================================= */

.mission-chaining-banner {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 2rem;
  background: linear-gradient(165deg, rgba(26, 22, 38, 0.88) 0%, rgba(16, 17, 30, 0.95) 100%);
  padding: 2.25rem;
  box-shadow: 0 18px 45px -12px rgba(0, 0, 0, 0.6), 0 0 30px rgba(245, 158, 11, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.chaining-header-row {
  max-width: 48rem;
  margin-bottom: 2rem;
}

.chaining-lead h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0.65rem 0 0.5rem;
  letter-spacing: -0.02em;
}

.chaining-lead p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.chaining-pipeline-visual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(11, 14, 27, 0.75);
  padding: 1.4rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.chain-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

.chain-step.is-complete {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.09);
}

.chain-step-badge {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 850;
  color: #FFFFFF;
  flex-shrink: 0;
}

.chain-step.is-complete .chain-step-badge {
  background: var(--brand-emerald);
  color: #064E3B;
  border-color: transparent;
}

.chain-step-content strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 750;
  color: #FFFFFF;
}

.chain-step-content small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.chain-connector {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-muted);
  flex-shrink: 0;
  padding: 0 0.25rem;
}

/* =========================================================================
   PHASE 6: Morning Accountability & Sleep Streaks Section Styles
   ========================================================================= */

.streaks-section {
  position: relative;
  overflow: visible;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.streaks-atmosphere {
  position: absolute;
  inset: -6rem -10rem -6rem -10rem;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.streaks-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.streaks-glow-emerald {
  width: 520px;
  height: 520px;
  left: -80px;
  top: 15%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.15) 0%, rgba(16, 185, 129, 0.04) 50%, transparent 70%);
}

.streaks-glow-amber {
  width: 480px;
  height: 480px;
  right: -60px;
  bottom: 15%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.14) 0%, rgba(217, 119, 6, 0.03) 50%, transparent 70%);
}

.streaks-intro {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin-bottom: 3rem;
}

.streaks-eyebrow {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.35);
  color: var(--brand-emerald);
}

/* Two-Pillar Grid */
.accountability-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.accountability-card {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 2rem;
  background: linear-gradient(165deg, rgba(18, 24, 44, 0.88) 0%, rgba(11, 15, 28, 0.94) 100%);
  padding: 2rem;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.6rem;
  transition: transform var(--duration-normal) var(--ease-smooth),
              border-color var(--duration-normal) var(--ease-smooth),
              box-shadow var(--duration-normal) var(--ease-smooth);
}

.accountability-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.35);
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.65), 0 0 25px rgba(52, 211, 153, 0.12);
}

/* Pillar 1: Wake-Up Check */
.check-delay-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.check-delay-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 700;
}

.check-delay-chips {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.delay-chip {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.delay-chip:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.delay-chip.is-active {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  color: #FFFFFF;
}

.check-prompt-bezel {
  padding: 1.4rem;
  background: #070913;
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.85);
}

.prompt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.prompt-badge {
  font-size: 0.75rem;
  color: #F87171;
  font-weight: 750;
}

.prompt-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 8px #EF4444;
  animation: pulse-ai 1.5s infinite;
}

.countdown-circle-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.countdown-circle {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 3px solid #F87171;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.08);
}

.countdown-number {
  font-size: 2.2rem;
  font-weight: 850;
  color: #FFFFFF;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-circle small {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FCA5A5;
  font-weight: 750;
  margin-top: 0.15rem;
}

.prompt-content h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 0.3rem;
}

.prompt-content p {
  font-size: 0.84rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.confirm-awake-btn {
  width: 100%;
  padding: 0.85rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.3);
}

.confirm-awake-btn:hover {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.confirm-awake-btn.is-confirmed {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.prompt-failsafe-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.failsafe-icon {
  flex-shrink: 0;
  font-size: 0.95rem;
}

/* Pillar 2: Streaks & Savers */
.streak-counter-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  background: rgba(11, 14, 27, 0.75);
  border-radius: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.1rem;
}

.streak-fire-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.streak-digits {
  flex: 1;
  margin-left: 1rem;
}

.streak-num {
  font-size: 1.7rem;
  font-weight: 850;
  color: #FFFFFF;
  display: block;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.streak-digits span {
  font-size: 0.82rem;
  color: #FCD34D;
  font-weight: 750;
}

.streak-history-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-emerald);
  background: rgba(52, 211, 153, 0.12);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.saver-progress-module {
  padding: 1rem 1.25rem;
  background: rgba(11, 14, 27, 0.65);
  border-radius: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 1.1rem;
}

.saver-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.saver-progress-header strong {
  color: var(--brand-emerald);
  font-weight: 750;
}

.saver-progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.saver-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981, #34D399);
  border-radius: 999px;
}

.saver-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
}

.day-tick {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-muted);
}

.day-tick.is-done {
  background: rgba(52, 211, 153, 0.15);
  border-color: rgba(52, 211, 153, 0.4);
  color: #6EE7B7;
}

.shield-bank-module {
  padding: 1.1rem 1.25rem;
  background: rgba(11, 14, 27, 0.65);
  border-radius: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.shield-bank-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  font-weight: 750;
  color: #FFFFFF;
}

.shield-tier-toggle {
  display: flex;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid var(--border-glass);
}

.tier-toggle-btn {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tier-toggle-btn.is-active {
  background: var(--brand-blue);
  color: #FFFFFF;
}

.shield-slots-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.shield-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.75rem 0.4rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  text-align: center;
  transition: all 0.2s ease;
}

.shield-slot.is-filled {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.35);
}

.shield-icon {
  font-size: 1.35rem;
}

.shield-slot small {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 700;
}

.shield-slot.is-empty {
  border-style: dashed;
  opacity: 0.6;
}

.shield-icon-empty {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.shield-auto-note {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* Accountability Card Content Footers */
.accountability-card-content h3 {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
  letter-spacing: -0.015em;
}

.accountability-card-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.accountability-card-content code {
  font-family: inherit;
  font-size: 0.82rem;
  padding: 0.15rem 0.35rem;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--brand-blue-soft);
}

/* =========================================================================
   PHASE 7: Alarmify AI Assistant Section Styles
   ========================================================================= */

.assistant-section {
  position: relative;
  overflow: visible;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.assistant-atmosphere {
  position: absolute;
  inset: -6rem -10rem -6rem -10rem;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.assistant-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.assistant-glow-amethyst {
  width: 520px;
  height: 520px;
  right: -80px;
  top: 15%;
  background: radial-gradient(circle, rgba(123, 44, 191, 0.22) 0%, rgba(106, 13, 173, 0.05) 50%, transparent 70%);
}

.assistant-glow-lavender {
  width: 480px;
  height: 480px;
  left: -80px;
  bottom: 15%;
  background: radial-gradient(circle, rgba(211, 167, 255, 0.16) 0%, rgba(139, 92, 246, 0.04) 50%, transparent 70%);
}

.assistant-intro {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin-bottom: 3rem;
}

.assistant-eyebrow {
  background: rgba(123, 44, 191, 0.16);
  border-color: rgba(123, 44, 191, 0.42);
  color: #D3A7FF;
}

/* Split Showcase */
.assistant-showcase {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 1fr);
  gap: 2.25rem;
  align-items: start;
}

/* Commands Column */
.voice-commands-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cmd-col-title {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.35rem;
  display: block;
}

.voice-cmd-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.voice-cmd-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease-smooth);
}

.voice-cmd-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(211, 167, 255, 0.3);
  transform: translateX(3px);
  color: var(--text-primary);
}

.voice-cmd-btn.is-active {
  background: linear-gradient(135deg, rgba(123, 44, 191, 0.22) 0%, rgba(79, 70, 229, 0.28) 100%);
  border-color: rgba(211, 167, 255, 0.55);
  color: #FFFFFF;
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(123, 44, 191, 0.28);
}

.cmd-mic-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.cmd-text-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cmd-category {
  font-size: 0.72rem;
  font-weight: 750;
  color: #D3A7FF;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cmd-text-wrap strong {
  font-size: 0.95rem;
  font-weight: 750;
  color: #FFFFFF;
}

.executor-truth-card {
  padding: 1.1rem 1.25rem;
  background: rgba(11, 14, 27, 0.7);
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0.5rem;
}

.executor-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: #C4B5FD;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
  display: block;
}

.executor-truth-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.executor-truth-card code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.35rem;
  border-radius: 0.3rem;
  color: #D3A7FF;
  font-size: 0.78rem;
}

/* Aurora Console Card */
.aurora-console-card {
  position: sticky;
  top: 5rem;
  border-radius: 2rem;
  background: linear-gradient(165deg, rgba(22, 16, 42, 0.96) 0%, rgba(12, 10, 26, 0.98) 100%);
  border: 1px solid rgba(211, 167, 255, 0.25);
  padding: 1.6rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.75), 0 0 50px rgba(123, 44, 191, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.aurora-console-bezel {
  position: relative;
  border-radius: 1.5rem;
  background: #080614;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.4rem;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.9);
}

.aurora-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.85rem;
  margin-bottom: 1.25rem;
}

.aurora-model-tag {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 800;
}

.sparkle-icon {
  font-size: 1rem;
}

.ai-quota-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #D3A7FF;
  background: rgba(123, 44, 191, 0.2);
  border: 1px solid rgba(123, 44, 191, 0.4);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

/* Aurora Orb Visual Stage */
.aurora-visual-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding: 1.1rem 0;
}

.aurora-orb-sphere {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFFFFF 0%, #D3A7FF 25%, #7B2CBF 65%, #3C096C 100%);
  box-shadow: 0 0 35px rgba(123, 44, 191, 0.6), 0 0 70px rgba(211, 167, 255, 0.3), inset -6px -6px 14px rgba(12, 10, 26, 0.85);
  animation: aurora-pulse 3.5s ease-in-out infinite alternate;
}

@keyframes aurora-pulse {
  0% {
    transform: scale(0.96);
    box-shadow: 0 0 28px rgba(123, 44, 191, 0.5);
  }
  100% {
    transform: scale(1.06);
    box-shadow: 0 0 45px rgba(211, 167, 255, 0.75), 0 0 80px rgba(123, 44, 191, 0.4);
  }
}

.soundwave-bars {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  height: 28px;
}

.sw-bar {
  width: 3.5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #D3A7FF, #7B2CBF);
  animation: soundwave 1.2s infinite ease-in-out alternate;
}

.bar-1 { height: 12px; animation-delay: 0.1s; }
.bar-2 { height: 22px; animation-delay: 0.25s; }
.bar-3 { height: 16px; animation-delay: 0.4s; }
.bar-4 { height: 26px; animation-delay: 0.15s; }
.bar-5 { height: 18px; animation-delay: 0.35s; }
.bar-6 { height: 24px; animation-delay: 0.2s; }
.bar-7 { height: 14px; animation-delay: 0.45s; }

@keyframes soundwave {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1.2); }
}

/* Transcript Box */
.transcript-box {
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.9rem;
}

.transcript-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.transcript-text {
  font-size: 0.94rem;
  font-weight: 650;
  color: #FFFFFF;
  font-style: italic;
  margin: 0;
  line-height: 1.45;
  min-height: 2.7rem;
  transition: opacity 0.2s ease;
}

/* Executed Action Card */
.executed-action-card {
  padding: 1.1rem 1.25rem;
  background: rgba(16, 22, 42, 0.7);
  border-radius: 1.2rem;
  border: 1px solid rgba(52, 211, 153, 0.35);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.1);
}

.action-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: #6EE7B7;
}

.action-icon {
  font-size: 1rem;
}

.action-tag {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.4);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  color: #6EE7B7;
}

.action-details {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.82rem;
}

.action-param-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
}

.action-param-row strong {
  color: #FFFFFF;
  font-weight: 750;
}

.aurora-footer {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.aurora-notice {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* =========================================================================
   PHASE 8: Everyday Clock Tools Section Styles
   ========================================================================= */

.tools-section {
  position: relative;
  overflow: visible;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.tools-atmosphere {
  position: absolute;
  inset: -6rem -10rem -6rem -10rem;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.tools-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.tools-glow-cyan {
  width: 520px;
  height: 520px;
  left: -80px;
  top: 15%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(14, 165, 233, 0.04) 50%, transparent 70%);
}

.tools-glow-amber {
  width: 480px;
  height: 480px;
  right: -60px;
  bottom: 15%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.14) 0%, rgba(217, 119, 6, 0.03) 50%, transparent 70%);
}

.tools-intro {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin-bottom: 3rem;
}

.tools-eyebrow {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38BDF8;
}

/* Bento Grid */
.tools-bento-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.75rem;
  align-items: stretch;
}

.tools-card {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 2rem;
  background: linear-gradient(165deg, rgba(18, 24, 44, 0.88) 0%, rgba(11, 15, 28, 0.94) 100%);
  padding: 1.85rem;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  transition: transform var(--duration-normal) var(--ease-smooth),
              border-color var(--duration-normal) var(--ease-smooth),
              box-shadow var(--duration-normal) var(--ease-smooth);
}

.tools-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.38);
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.65), 0 0 25px rgba(56, 189, 248, 0.12);
}

/* Grid Spans */
.timers-stopwatch-card { grid-column: span 7; }
.widgets-card { grid-column: span 5; }
.ad-free-banner-card { grid-column: span 12; }
.media-card { grid-column: span 6; }
.cloud-lang-card { grid-column: span 6; }

/* Tab Switcher */
.tools-tab-switcher {
  display: flex;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid var(--border-glass);
}

.tool-tab-btn {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tool-tab-btn.is-active {
  background: var(--brand-blue);
  color: #FFFFFF;
}

/* Tool Views */
.tool-view {
  display: none;
  animation: rise-in 0.25s var(--ease-smooth) both;
}

.tool-view.is-active {
  display: block;
}

/* Timers View */
.active-timers-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.running-timer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.25rem;
  background: rgba(11, 14, 27, 0.7);
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.timer-info-col {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.timer-name {
  font-size: 0.82rem;
  font-weight: 750;
  color: #FFFFFF;
}

.timer-digits {
  font-size: 1.6rem;
  font-weight: 850;
  color: var(--brand-blue-soft);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.timer-info-col small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.timer-mini-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: conic-gradient(#3B82F6 var(--ring-fill), rgba(255, 255, 255, 0.08) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #FFFFFF;
  position: relative;
}

.timer-mini-ring::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #0B0E1B;
}

.timer-mini-ring span {
  position: relative;
  z-index: 1;
}

.timer-presets-footer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.95rem;
}

.presets-label {
  font-size: 0.74rem;
  font-weight: 750;
  color: var(--text-muted);
  flex-shrink: 0;
}

.preset-chips-wrap {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.p-chip {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-size: 0.72rem;
  font-weight: 750;
  color: #93C5FD;
}

/* Stopwatch View */
.stopwatch-display-stage {
  text-align: center;
  padding: 0.75rem 0;
  margin-bottom: 0.75rem;
}

.sw-time-large {
  font-size: 2.5rem;
  font-weight: 850;
  color: #FFFFFF;
  display: block;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
}

.sw-status-pill {
  font-size: 0.74rem;
  font-weight: 750;
  color: var(--brand-emerald);
  background: rgba(52, 211, 153, 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  display: inline-block;
  margin-top: 0.45rem;
}

.stopwatch-laps-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.lap-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.85rem;
  background: rgba(11, 14, 27, 0.5);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.lap-row.is-fastest {
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.3);
  color: #6EE7B7;
}

.lap-row strong {
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}

.lap-badge {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand-emerald);
}

.lap-delta {
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

/* Card 2: Widgets */
.widgets-gallery-mockup {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.widget-preview-item {
  padding: 0.95rem 1.15rem;
  background: rgba(11, 14, 27, 0.7);
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.w-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 750;
}

.w-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3B82F6;
  box-shadow: 0 0 6px #3B82F6;
}

.w-time {
  font-size: 1.4rem;
  font-weight: 850;
  color: #FFFFFF;
  line-height: 1.1;
}

.w-detail {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.w-streak-num {
  font-size: 1.3rem;
  font-weight: 850;
  color: #FCD34D;
  line-height: 1.1;
}

.w-shields {
  font-size: 0.85rem;
}

.widget-clock-styles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  padding: 0.75rem;
}

.clock-mini-preview {
  aspect-ratio: 1;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.analog-dial {
  position: relative;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  width: 44px;
  height: 44px;
  margin: auto;
}

.dial-hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom center;
  background: #FFFFFF;
  border-radius: 999px;
}

.dial-hand.hour { width: 2.5px; height: 12px; transform: rotate(45deg); }
.dial-hand.minute { width: 1.5px; height: 16px; transform: rotate(180deg); background: var(--brand-blue-soft); }

.digital-display span {
  font-size: 0.95rem;
  font-weight: 850;
  color: #FFFFFF;
}

.digital-display small {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 700;
}

.numbers-display {
  display: flex;
  flex-direction: column;
  line-height: 0.95;
}

.num-bold {
  font-size: 1.05rem;
  font-weight: 900;
  color: #A5B4FC;
}

/* Card 3: 100% Ad-Free Banner */
.ad-free-banner-card {
  background: linear-gradient(135deg, rgba(16, 28, 52, 0.92) 0%, rgba(10, 18, 36, 0.96) 100%);
  border-color: rgba(59, 130, 246, 0.38);
  box-shadow: 0 16px 45px -10px rgba(0, 0, 0, 0.6), 0 0 35px rgba(59, 130, 246, 0.15);
}

.ad-free-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.ad-free-pill {
  display: inline-flex;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: var(--brand-emerald);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.ad-free-copy h3 {
  font-size: 1.6rem;
  font-weight: 850;
  color: #FFFFFF;
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}

.ad-free-copy p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.ad-free-badges-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ad-trust-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.15rem;
  background: rgba(11, 14, 27, 0.6);
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.ad-trust-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.ad-trust-item strong {
  font-size: 0.92rem;
  font-weight: 750;
  color: #FFFFFF;
}

/* Card 4: Media */
.media-spec-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.media-spec-box {
  padding: 1.1rem;
  background: rgba(11, 14, 27, 0.6);
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.spec-number {
  font-size: 2.2rem;
  font-weight: 850;
  color: #FFFFFF;
  display: block;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.spec-title {
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--brand-blue-soft);
  display: block;
}

.media-spec-box small {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.25rem;
}

.custom-media-note {
  padding: 0.65rem 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.85rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: center;
}

/* Card 5: Cloud & Lang */
.cloud-feature-box {
  padding: 1rem 1.2rem;
  background: rgba(11, 14, 27, 0.6);
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 0.75rem;
}

.cloud-icon-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.cloud-symbol {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.cloud-icon-row strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 750;
  color: #FFFFFF;
}

.cloud-icon-row small {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.lang-pills-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.lang-pill {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Card Content Footers */
.tools-card-content h3 {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
  letter-spacing: -0.015em;
}

.tools-card-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.widget-count-badge,
.media-count-badge,
.cloud-badge {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
}

/* =========================================================================
   Section Layouts & Dividers
   ========================================================================= */

.section-shell::before,
.faq-section::before,
.legal-page::before {
  content: "";
  display: block;
  width: min(100%, 14rem);
  height: 2px;
  margin-bottom: 2rem;
  background: linear-gradient(90deg, var(--brand-blue-soft), var(--brand-violet-soft), transparent);
  border-radius: 999px;
}

.closing-cta.section-shell::before {
  display: none;
}

.section-intro {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.store-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature-card,
.store-card,
.spotlight-card,
.faq-item {
  transition: transform var(--duration-normal) var(--ease-smooth),
              border-color var(--duration-normal) var(--ease-smooth),
              background var(--duration-normal) var(--ease-smooth),
              box-shadow var(--duration-normal) var(--ease-smooth);
}

.feature-card,
.store-card {
  padding: 1.75rem;
}

.feature-card h3::before,
.store-card h3::before,
.spotlight-copy h3::before {
  content: "";
  display: block;
  width: 2.2rem;
  height: 0.3rem;
  margin-bottom: 1.15rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-violet));
}

.feature-card:hover,
.store-card:hover,
.spotlight-card:hover,
.faq-item:hover {
  transform: translateY(-5px);
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-card), 0 0 35px -5px rgba(59, 130, 246, 0.12);
}

.spotlight-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.95fr);
  gap: 1.25rem;
}

.spotlight-card {
  padding: 1.85rem;
}

.bullet-list {
  padding-left: 1.25rem;
  margin-bottom: 0;
}

.bullet-list li + li {
  margin-top: 0.75rem;
}

.streak-mock {
  background:
    radial-gradient(circle at 85% 20%, rgba(52, 211, 153, 0.12), transparent 12rem),
    linear-gradient(175deg, rgba(22, 27, 51, 0.95), rgba(16, 20, 38, 0.85));
}

.streak-top,
.streak-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.streak-top {
  align-items: baseline;
}

.streak-count {
  font-size: clamp(2.2rem, 3.8vw, 3.25rem);
  font-weight: 850;
  color: var(--brand-emerald);
  font-variant-numeric: tabular-nums;
}

.streak-bar {
  height: 0.85rem;
  margin: 1.35rem 0 1.1rem;
  padding: 0.12rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.streak-bar-fill {
  display: block;
  width: 74%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-emerald), #10B981);
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.35);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 2rem;
  margin: 0 auto 3.5rem;
  padding: clamp(1.8rem, 4vw, 2.75rem);
}

.privacy-section {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  grid-template-areas: "lead copy";
  gap: clamp(1.5rem, 4vw, 3rem);
}

.split-lead {
  grid-area: lead;
  max-width: 30rem;
}

.split-copy {
  grid-area: copy;
  max-width: 36rem;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.75;
}

.privacy-section .eyebrow {
  margin-bottom: 0.75rem;
}

.privacy-section h2 {
  max-width: 14ch;
  margin-bottom: 0;
}

.privacy-section.section-shell::before {
  display: none;
}

/* =========================================================================
   FAQ List & Accordions
   ========================================================================= */

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1.35rem 3.5rem 1.35rem 1.6rem;
  color: var(--text-primary);
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: translateY(-65%) rotate(45deg);
  transition: transform var(--duration-fast) var(--ease-smooth), border-color var(--duration-fast) var(--ease-smooth);
}

.faq-item:hover summary::after,
.faq-item[open] summary::after {
  border-color: var(--brand-blue-soft);
}

.faq-item[open] summary::after {
  transform: translateY(-35%) rotate(225deg);
}

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

.faq-item p {
  margin: 0;
  padding: 0 1.6rem 1.45rem;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* =========================================================================
   Closing CTA & Trust Strip
   ========================================================================= */

.closing-cta {
  position: relative;
  padding-top: 2rem;
  padding-bottom: 3.5rem;
  overflow: hidden;
}

.closing-cta-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  max-width: min(100%, 54rem);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem);
  background:
    radial-gradient(circle at 85% 15%, rgba(245, 158, 11, 0.14), transparent 18rem),
    radial-gradient(circle at 20% 85%, rgba(244, 63, 94, 0.10), transparent 22rem),
    linear-gradient(165deg, rgba(28, 36, 68, 0.96) 0%, rgba(22, 26, 48, 0.94) 60%, rgba(30, 26, 46, 0.96) 100%);
  border: 1px solid rgba(245, 158, 11, 0.30);
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.65), 0 0 50px -10px rgba(245, 158, 11, 0.12);
  border-radius: 2rem;
}

.closing-cta-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.65), rgba(244, 63, 94, 0.5), transparent);
  border-radius: 999px;
}

.closing-cta-copy {
  width: 100%;
}

.closing-cta-copy .eyebrow {
  color: #FCD34D;
  text-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
}

.closing-cta-copy h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #FFFFFF 30%, #FDE68A 85%, #F59E0B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.closing-cta-copy p:last-child {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.closing-cta-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.closing-cta-button {
  min-width: 13rem;
  font-size: 1.05rem;
  padding: 0.95rem 2rem;
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.35), 0 0 20px rgba(245, 158, 11, 0.2);
}

.closing-cta-notes {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.closing-cta-notes span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.trust-strip {
  gap: 1rem;
  padding: 0 var(--section-pad-x) 2.5rem;
  justify-content: center;
}

.trust-strip div {
  padding: 0.85rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 700;
}

/* =========================================================================
   Legal & Static Pages
   ========================================================================= */

.legal-page {
  max-width: 74rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) var(--section-pad-x) 3.5rem;
}

.legal-hero {
  margin-bottom: 2rem;
}

.legal-page h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
}

.legal-summary {
  margin-top: 1.5rem;
}

.legal-summary-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 13rem;
  padding: 1.1rem 1.25rem;
}

.legal-summary-card strong {
  color: var(--text-primary);
  font-weight: 750;
}

.legal-card {
  padding: clamp(1.75rem, 4vw, 2.85rem);
}

.legal-card h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card a {
  color: var(--brand-blue-soft);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-card a:hover {
  color: #FFFFFF;
}

/* =========================================================================
   Site Footer
   ========================================================================= */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 3.5rem;
  border-top: 1px solid var(--border-glass);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-brand strong {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.footer-brand p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-contact {
  color: var(--brand-blue-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-contact:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem !important;
  border: 1px solid var(--border-glass) !important;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary) !important;
  border-radius: 999px;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
}

.footer-play-btn:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: var(--border-accent) !important;
  transform: translateY(-1px);
}

/* =========================================================================
   Nocturnal Transit Stage & Dedicated Story-Scroll Architecture (Phase 01)
   ========================================================================= */

/* Preview Mode Invariant: The fixed header floats overlaying the stage with zero body padding-top shift.
   Use overflow-x: clip so position: sticky is never broken by an ancestor overflow clipping context.
   Scroll padding ensures header never obscures headlines when jumping to anchors */
html.preview-mode {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.5rem);
  overflow-x: clip;
}

body.preview-mode {
  padding-top: 0;
  overflow-x: clip;
}

body.preview-mode .site-header {
  background: rgba(8, 10, 20, 0.55);
  border-bottom: 1px solid rgba(138, 162, 214, 0.15);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.preview-mode .preview-header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

body.preview-mode .nav-links-list {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.preview-mode .nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: #94A3B8;
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 0.5rem;
  transition: color 150ms ease, background 150ms ease;
}

body.preview-mode .nav-link:hover,
body.preview-mode .nav-link:focus-visible {
  color: #F8FAFC;
  background: rgba(255, 255, 255, 0.06);
}

body.preview-mode .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
  white-space: nowrap;
}

body.preview-mode .nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
  filter: brightness(1.08);
}

/* Dedicated Story-Scroll Track for Continuous Nocturnal Transit Narrative (Phase 01-05) */
body.preview-mode .story-scroll-track {
  position: relative;
  width: 100%;
  height: 400vh; /* Dedicated story space; keeps footer and FAQ completely outside the transition mapping */
}

body.preview-mode .stage-viewport {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-sizing: border-box;
}

body.preview-mode .stage-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 35%, rgba(59, 130, 246, 0.18), transparent 45%),
    radial-gradient(circle at 20% 75%, rgba(139, 92, 246, 0.12), transparent 40%),
    linear-gradient(180deg, #060812 0%, #0B0E1B 60%, #101426 100%);
}

/* Atmospheric Mist Overlay for Bedtime Sanctuary (Moment 2) */
body.preview-mode .stage-atmosphere-mist {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 38%, rgba(139, 92, 246, 0.22) 0%, rgba(109, 40, 217, 0.10) 42%, transparent 70%),
    radial-gradient(circle at 22% 78%, rgba(30, 22, 56, 0.70) 0%, transparent 60%),
    linear-gradient(180deg, #0A0818 0%, #120D24 50%, #1E1638 100%);
  opacity: 0;
  will-change: opacity;
  transition: opacity 80ms linear;
}

/* Electric Cobalt Wake-Up Crucible Atmospheric Overlay (Moment 3) */
body.preview-mode .stage-atmosphere-crucible {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 75% 32%, rgba(37, 99, 235, 0.28) 0%, rgba(29, 78, 216, 0.12) 42%, transparent 70%),
    radial-gradient(circle at 20% 75%, rgba(16, 185, 129, 0.14) 0%, rgba(5, 150, 105, 0.04) 40%, transparent 60%),
    linear-gradient(180deg, #070B18 0%, #0E1630 50%, #121D40 100%);
  opacity: 0;
  will-change: opacity;
  transition: opacity 80ms linear;
}

/* Radiant Golden Dawn Horizon Atmospheric Overlay (Moment 4) */
body.preview-mode .stage-atmosphere-dawn {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 75% 25%, rgba(245, 158, 11, 0.28) 0%, rgba(244, 63, 94, 0.14) 40%, transparent 70%),
    radial-gradient(circle at 20% 80%, rgba(254, 243, 199, 0.12) 0%, rgba(245, 158, 11, 0.05) 35%, transparent 60%),
    linear-gradient(180deg, #0D0F1D 0%, #1A1325 35%, #2A1728 70%, #3B1D28 100%);
  opacity: 0;
  will-change: opacity;
  transition: opacity 80ms linear;
}

body.preview-mode .stage-scene {
  position: relative;
  width: 100%;
  max-width: var(--max-content-width);
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  /* Top padding exactly matches header height (4.75rem) + 1.25rem safe buffer */
  padding: calc(var(--header-height) + 1.25rem) var(--section-pad-x) 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
  align-items: center;
  box-sizing: border-box;
  z-index: 2;
}

/* Narrative Copy Container (Stacked Moments via CSS Grid Area) */
body.preview-mode .stage-copy-anchor {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  align-items: center;
}

body.preview-mode .narrative-moment {
  grid-area: 1 / 1 / 2 / 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  will-change: opacity, transform;
}

body.preview-mode .narrative-moment .preview-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 1.15rem 0;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 999px;
  color: #60A5FA;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

body.preview-mode .narrative-moment h1,
body.preview-mode .narrative-moment h2 {
  font-size: clamp(2.35rem, 4.6vw, 3.85rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  color: #F8FAFC;
}

body.preview-mode .narrative-moment p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #CBD5E1;
  max-width: 32rem;
  margin: 0 0 1.85rem;
}

body.preview-mode .narrative-moment.moment-1 {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

body.preview-mode .narrative-moment.moment-2 {
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
}

body.preview-mode .narrative-moment.moment-3 {
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
}

body.preview-mode .narrative-moment.moment-4 {
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
}

body.preview-mode .badge-sanctuary {
  color: #A78BFA;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.28);
}

body.preview-mode .badge-crucible {
  color: #34D399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
}

body.preview-mode .badge-dawn {
  color: #FBBF24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
}

body.preview-mode .moment-cta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

body.preview-mode .moment-subtext {
  color: #8A9AAD;
  font-size: 0.88rem;
  font-weight: 500;
}

/* Moment 3 Crucible Narrative Layout & Typography */
body.preview-mode .crucible-details {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-top: 0.25rem;
  width: 100%;
  max-width: 33rem;
}

body.preview-mode .missions-spectrum {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.85rem 1.15rem;
  border-radius: 1rem;
  background: rgba(22, 27, 51, 0.65);
  border: 1px solid rgba(138, 162, 214, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.preview-mode .mission-tier {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

body.preview-mode .tier-tag {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  flex-shrink: 0;
}

body.preview-mode .tier-free {
  color: #60A5FA;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

body.preview-mode .tier-pro {
  color: #FBBF24;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

body.preview-mode .tier-list {
  color: #E2E8F0;
  font-weight: 500;
}

body.preview-mode .accountability-pills {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

body.preview-mode .wakeup-check-pill {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.8rem 1.15rem;
  border-radius: 1rem;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.preview-mode .wakeup-check-pill .check-icon {
  color: #60A5FA;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

body.preview-mode .wakeup-check-text {
  font-size: 0.86rem;
  line-height: 1.5;
  color: #CBD5E1;
}

body.preview-mode .wakeup-check-text strong {
  color: #93C5FD;
}

body.preview-mode .streak-saver-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: #CBD5E1;
  padding: 0.3rem 0.2rem;
}

body.preview-mode .streak-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

body.preview-mode .streak-stat strong {
  color: #F8FAFC;
}

body.preview-mode .saver-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #FCD34D;
  font-weight: 600;
}

/* Sanctuary Restrained Sound Visualization & Voice Utility */
body.preview-mode .sanctuary-details {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 0.25rem;
}

body.preview-mode .sanctuary-sounds-row {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: rgba(22, 27, 51, 0.65);
  border: 1px solid rgba(138, 162, 214, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  width: fit-content;
}

body.preview-mode .sound-wave-indicator {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 16px;
}

body.preview-mode .sound-wave-indicator span {
  display: block;
  width: 3px;
  height: 12px;
  background: #A78BFA;
  border-radius: 999px;
  animation: soundWavePulse 1.2s ease-in-out infinite alternate;
}

body.preview-mode .sound-wave-indicator span:nth-child(2) {
  height: 16px;
  animation-delay: 0.25s;
}

body.preview-mode .sound-wave-indicator span:nth-child(3) {
  height: 9px;
  animation-delay: 0.5s;
}

@keyframes soundWavePulse {
  0% {
    transform: scaleY(0.45);
    opacity: 0.5;
  }
  100% {
    transform: scaleY(1.2);
    opacity: 1;
  }
}

body.preview-mode .sounds-list {
  color: #F8FAFC;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

body.preview-mode .sanctuary-voice-prompt {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.09);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #E2E8F0;
  width: fit-content;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

body.preview-mode .voice-mic-icon {
  color: #A78BFA;
  flex-shrink: 0;
}

body.preview-mode .voice-quote {
  font-size: 0.95rem;
  font-style: italic;
  color: #DDD6FE;
  font-weight: 500;
}

body.preview-mode .stage-device-anchor {
  position: relative;
  width: 100%;
  height: 100%;
  /* Max height constrained to available vertical space below the header */
  max-height: calc(100vh - var(--header-height) - 3rem);
  max-height: calc(100dvh - var(--header-height) - 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

/* Restrained Environmental Wave Ripples */
body.preview-mode .sanctuary-ambient-aura {
  position: absolute;
  inset: -50px;
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  will-change: opacity;
  transition: opacity 120ms ease;
}

body.preview-mode .aura-ripple {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(139, 92, 246, 0.28);
  box-shadow: 0 0 35px rgba(139, 92, 246, 0.15), inset 0 0 20px rgba(139, 92, 246, 0.08);
  pointer-events: none;
}

body.preview-mode .ripple-1 {
  width: 85%;
  height: 85%;
  animation: auraRippleExpand 4s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

body.preview-mode .ripple-2 {
  width: 110%;
  height: 110%;
  animation: auraRippleExpand 4s cubic-bezier(0.2, 0.8, 0.2, 1) infinite 1.35s;
}

body.preview-mode .ripple-3 {
  width: 135%;
  height: 135%;
  animation: auraRippleExpand 4s cubic-bezier(0.2, 0.8, 0.2, 1) infinite 2.7s;
}

@keyframes auraRippleExpand {
  0% {
    transform: scale(0.85);
    opacity: 0;
  }
  35% {
    opacity: 0.5;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

body.preview-mode .stage-phone-chassis {
  position: relative;
  /* Precisely sized against remaining available viewport height */
  height: min(calc(100vh - var(--header-height) - 4rem), 600px);
  height: min(calc(100dvh - var(--header-height) - 4rem), 600px);
  aspect-ratio: 1440 / 2954;
  width: auto;
  max-width: 90%;
  border-radius: 42px;
  background: #000000;
  padding: 8px;
  box-shadow:
    0 30px 70px -15px rgba(0, 0, 0, 0.9),
    0 0 50px -10px rgba(59, 130, 246, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 0 0 3px rgba(18, 22, 44, 0.85);
  border: 1px solid rgba(138, 162, 214, 0.4);
  transform-style: preserve-3d;
  transform: rotateY(-10deg) rotateX(6deg) translateZ(10px);
  transition: transform 120ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 300ms ease;
  will-change: transform;
  z-index: 2;
}

/* Glass screen gloss layer */
.stage-phone-chassis::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 34px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.03) 35%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 5;
}

.stage-phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #0B0E1B;
}

.stage-screen-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill; /* Exact 1:1 fit with 1440/2954 screen aspect ratio */
  display: block;
  will-change: opacity;
}

.stage-screen-img.screen-alarms {
  opacity: 1;
  z-index: 2;
}

.stage-screen-img.screen-sanctuary {
  opacity: 0;
  z-index: 3;
}

.stage-screen-img.screen-mission {
  opacity: 0;
  z-index: 4;
}

.stage-screen-img.screen-daytime {
  opacity: 0;
  z-index: 5;
}

/* Electric Cobalt Alert Aura (Moment 3) */
body.preview-mode .crucible-ambient-aura {
  position: absolute;
  inset: -45px;
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  will-change: opacity;
  transition: opacity 120ms ease;
}

body.preview-mode .crucible-pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(37, 99, 235, 0.40);
  box-shadow: 0 0 45px rgba(37, 99, 235, 0.25), inset 0 0 24px rgba(16, 185, 129, 0.12);
  width: 105%;
  height: 105%;
  animation: cruciblePulse 3.2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes cruciblePulse {
  0% {
    transform: scale(0.92);
    opacity: 0.25;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.70;
  }
  100% {
    transform: scale(0.92);
    opacity: 0.25;
  }
}

/* Radiant Dawn Amber Aura (Moment 4) */
body.preview-mode .dawn-ambient-aura {
  position: absolute;
  inset: -55px;
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  will-change: opacity;
  transition: opacity 120ms ease;
}

body.preview-mode .dawn-sun-bloom {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(244, 63, 94, 0.10) 50%, transparent 75%);
  filter: blur(24px);
}

/* Moment 4 Dawn Horizon & Daytime Utilities Layout */
body.preview-mode .moment-4 .moment-summary-body {
  font-size: 1.05rem;
  line-height: 1.55;
  color: #CBD5E1;
  max-width: 33rem;
  margin: 0 0 1.15rem;
}

body.preview-mode .dawn-utility-pills {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
  width: 100%;
  max-width: 33rem;
}

body.preview-mode .utility-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.75rem;
  background: rgba(22, 27, 51, 0.65);
  border: 1px solid rgba(138, 162, 214, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.84rem;
  color: #E2E8F0;
}

body.preview-mode .utility-icon {
  color: #F59E0B;
  flex-shrink: 0;
}

body.preview-mode .utility-pill strong {
  color: #FDE68A;
}

/* The Installation Resolution (High-Trust Closing CTA) */
body.preview-mode .dawn-resolution-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.15rem 1.35rem;
  border-radius: 1.15rem;
  background: linear-gradient(135deg, rgba(32, 24, 46, 0.85) 0%, rgba(18, 22, 44, 0.90) 100%);
  border: 1px solid rgba(245, 158, 11, 0.32);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6), 0 0 35px rgba(245, 158, 11, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  width: 100%;
  max-width: 33rem;
  box-sizing: border-box;
}

body.preview-mode .resolution-headline {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFBEB;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

body.preview-mode .resolution-sub {
  font-size: 0.86rem;
  color: #CBD5E1;
  margin: 0;
  line-height: 1.45;
}

body.preview-mode .resolution-action-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.2rem;
}

body.preview-mode .dawn-play-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #0A0A0A;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

body.preview-mode .dawn-play-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  filter: brightness(1.06);
}

body.preview-mode .dawn-play-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

body.preview-mode .btn-text-wrap {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.1;
}

body.preview-mode .btn-subtext {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

body.preview-mode .btn-title {
  font-size: 1.02rem;
  font-weight: 800;
}

body.preview-mode .dawn-trust-affirmations {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0;
  margin: 0.2rem 0 0 0;
  list-style: none;
}

body.preview-mode .dawn-trust-affirmations li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: #94A3B8;
}

body.preview-mode .dawn-trust-affirmations .check-mark {
  color: #10B981;
  font-weight: bold;
  font-size: 0.9rem;
}

/* High-Trust FAQ Section (Phase 06) */
body.preview-mode .faq-section {
  position: relative;
  z-index: 10;
  padding: 5.5rem var(--section-pad-x) 6.5rem;
  background: linear-gradient(180deg, #0B0E1B 0%, #070913 100%);
  border-top: 1px solid rgba(138, 162, 214, 0.12);
}

body.preview-mode .faq-container {
  max-width: 52rem;
  margin: 0 auto;
}

body.preview-mode .faq-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

body.preview-mode .badge-faq {
  color: #60A5FA;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.28);
  margin-bottom: 1.15rem;
}

body.preview-mode .faq-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #F8FAFC;
  margin: 0 0 1rem;
  line-height: 1.15;
}

body.preview-mode .faq-lead {
  font-size: 1.05rem;
  color: #94A3B8;
  max-width: 34rem;
  margin: 0 auto;
  line-height: 1.6;
}

body.preview-mode .faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.preview-mode .faq-accordion-item {
  border-radius: 1.15rem;
  background: rgba(18, 22, 44, 0.60);
  border: 1px solid rgba(138, 162, 214, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

body.preview-mode .faq-accordion-item[open] {
  background: rgba(22, 27, 54, 0.85);
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.5), 0 0 25px rgba(59, 130, 246, 0.08);
}

body.preview-mode .faq-accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 1.65rem;
  cursor: pointer;
  list-style: none;
  font-size: 1.1rem;
  font-weight: 700;
  color: #F8FAFC;
  transition: color 150ms ease;
  user-select: none;
}

body.preview-mode .faq-accordion-summary::-webkit-details-marker {
  display: none;
}

body.preview-mode .faq-accordion-summary:hover {
  color: #60A5FA;
}

body.preview-mode .faq-accordion-summary:focus-visible {
  outline: 2px solid #60A5FA;
  outline-offset: -2px;
}

body.preview-mode .faq-chevron {
  color: #8A9AAD;
  flex-shrink: 0;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), color 150ms ease;
}

body.preview-mode .faq-accordion-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: #60A5FA;
}

body.preview-mode .faq-accordion-content {
  padding: 0 1.65rem 1.5rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #CBD5E1;
}

body.preview-mode .faq-accordion-content p {
  margin: 0;
}

/* Minimalist Legal & Brand Footer (Phase 06) */
body.preview-mode .site-footer {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 3rem var(--section-pad-x);
  background: #060810;
  border-top: 1px solid rgba(138, 162, 214, 0.12);
  color: #94A3B8;
  font-size: 0.9rem;
}

body.preview-mode .footer-brand strong {
  display: block;
  font-size: 1.15rem;
  color: #F8FAFC;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

body.preview-mode .footer-brand p {
  margin: 0 0 0.25rem;
  color: #8A9AAD;
  line-height: 1.5;
}

body.preview-mode .footer-contact {
  color: #60A5FA;
  text-decoration: none;
  transition: color 150ms ease;
}

body.preview-mode .footer-contact:hover {
  color: #93C5FD;
  text-decoration: underline;
}

body.preview-mode .footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

body.preview-mode .footer-links a {
  color: #8A9AAD;
  text-decoration: none;
  font-weight: 500;
  transition: color 150ms ease;
}

body.preview-mode .footer-links a:hover {
  color: #F8FAFC;
}

body.preview-mode .footer-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(138, 162, 214, 0.25);
  color: #F8FAFC !important;
  font-weight: 600;
  transition: background 150ms ease, border-color 150ms ease !important;
}

body.preview-mode .footer-play-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(138, 162, 214, 0.4);
}


@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.motion-ready .feature-card,
.motion-ready .store-card,
.motion-ready .spotlight-card,
.motion-ready .bedtime-card,
.motion-ready .mission-simulator-card,
.motion-ready .mission-chaining-banner,
.motion-ready .accountability-card,
.motion-ready .aurora-console-card,
.motion-ready .split,
.motion-ready .faq-item {
  opacity: 0;
  transform: translateY(18px);
}

.motion-ready .feature-card.is-visible,
.motion-ready .store-card.is-visible,
.motion-ready .spotlight-card.is-visible,
.motion-ready .bedtime-card.is-visible,
.motion-ready .mission-simulator-card.is-visible,
.motion-ready .mission-chaining-banner.is-visible,
.motion-ready .accountability-card.is-visible,
.motion-ready .aurora-console-card.is-visible,
.motion-ready .split.is-visible,
.motion-ready .faq-item.is-visible {
  animation: rise-in 720ms var(--ease-smooth) both;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-celestial-moon,
  .hero-glow,
  .hero-device-wrapper,
  .phone-card,
  .preview-ai-dot,
  .moon-ring,
  .living-moon-sphere,
  .breathing-circle,
  .scan-laser-line,
  .maze-ball,
  .typing-cursor,
  .aurora-orb-sphere,
  .sw-bar {
    transform: none !important;
    animation: none !important;
  }
}
