/* ==========================================================================
   VoiceDiary - Soft Neo-Brutalist Design System
   Exact Warm Terracotta Theme Tokens from theme_colours.dart:
   - shadowColor: Color(0x201A1208) -> rgba(26, 18, 8, 0.125)
   - shadowTerracottaColor: Color(0xFFD95D39) -> #D95D39
   - hardShadow: [ BoxShadow(color: Color(0x201A1208), offset: Offset(3, 4), blurRadius: 0) ]
   - cardShadow: [ BoxShadow(color: Color(0x201A1208), offset: Offset(4, 5), blurRadius: 0) ]
   - hardShadowSm: [ BoxShadow(color: Color(0x201A1208), offset: Offset(2, 2.5), blurRadius: 0) ]
   - hardShadowTerracotta: [ BoxShadow(color: Color(0xFFD95D39), offset: Offset(3, 4), blurRadius: 0) ]
   - border: Color(0x201A1208) / borderLight: Color(0xFFD4C9B5)
   ========================================================================== */

:root {
  /* Canvas & Surfaces */
  --bg-canvas: #FFFBF0;           /* Warm Linen & Cream Canvas */
  --bg-canvas-soft: #F5EFE6;      /* Soft Oatmeal / Sand */
  --bg-card: #FFFFFF;             /* Crisp White Card Canvas */
  --bg-card-soft: #FAF7F2;        /* Soft Off-White */
  --bg-card-selected: #FFF7ED;    /* Selected Warm Terracotta Tint */
  --bg-dark-ink: #18120A;         /* Deep Espresso Ink */
  
  /* Whimsical Pastel Surfaces */
  --pastel-peach: #FFECE8;
  --pastel-mint: #E1F5EC;
  --pastel-yellow: #FFF4D8;
  --pastel-lavender: #EDE6FB;
  --pastel-sky: #E0F1FD;

  /* Theme Borders from warmTerracotta */
  --border-soft: rgba(26, 18, 8, 0.125);  /* Color(0x201A1208) */
  --border-light: #D4C9B5;                 /* Color(0xFFD4C9B5) */
  --border-medium: rgba(26, 18, 8, 0.22);
  --border-ink: #18120A;                   /* Ink Border */
  --border-terracotta: #D95D39;            /* Terracotta Border */

  /* Typography Colors */
  --text-primary: #18120A;        /* Color(0xFF18120A) textPrimary */
  --text-secondary: #6B5E4E;      /* Color(0xFF6B5E4E) textSecondary */
  --text-body: #52463A;           /* Color(0xFF52463A) textBody */
  --text-muted: #9E8F7A;          /* Color(0xFF9E8F7A) textMuted */
  --text-pencil: #786E65;         /* Color(0xFF786E65) pencil note */
  --text-white: #FFFFFF;

  /* Primary Brand Accents */
  --primary: #D95D39;             /* Color(0xFFD95D39) signature Terracotta */
  --primary-dark: #B84423;        /* Color(0xFFB84423) primaryDark */
  --accent-yellow: #FFE135;       /* Color(0xFFFFE135) */
  --accent-green: #059669;        /* Color(0xFF059669) */
  --accent-green-mint: #10B981;   /* Color(0xFF10B981) */
  --accent-amber: #D97706;        /* Color(0xFFD97706) */
  --accent-blue: #2563EB;         /* Color(0xFF2563EB) */
  --accent-purple: #7C3AED;       /* Color(0xFF7C3AED) */
  --accent-red: #DC2626;          /* Color(0xFFDC2626) */

  /* ========================================================================
     Warm Terracotta Exact Shadow Presets (theme_colours.dart lines 181-211)
     ======================================================================== */
  --shadow-color: rgba(26, 18, 8, 0.125);       /* Color(0x201A1208) */
  --shadow-color-hover: rgba(26, 18, 8, 0.20);
  --shadow-terracotta-color: #D95D39;           /* Color(0xFFD95D39) */
  --shadow-red-color: #DC2626;                  /* Color(0xFFDC2626) */

  --card-shadow: 4px 5px 0px var(--shadow-color);
  --card-shadow-hover: 5px 6.5px 0px var(--shadow-color-hover);
  --hard-shadow: 3px 4px 0px var(--shadow-color);
  --hard-shadow-hover: 4px 5px 0px var(--shadow-color-hover);
  --hard-shadow-sm: 2px 2.5px 0px var(--shadow-color);
  --hard-shadow-xs: 1px 1.5px 0px var(--shadow-color);
  --hard-shadow-lg: 6px 8px 0px var(--shadow-color);
  --hard-shadow-xl: 8px 10px 0px var(--shadow-color);

  /* Terracotta Functional Shadows */
  --hard-shadow-terracotta: 3px 4px 0px var(--shadow-terracotta-color);
  --hard-shadow-terracotta-lg: 4px 5.5px 0px var(--shadow-terracotta-color);
  --hard-shadow-red: 3px 4px 0px var(--shadow-red-color);

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* Layout */
  --max-width: 1220px;
  --header-height: 78px;
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-hand: 'Caveat', cursive, sans-serif;
  --transition-tactile: 0.15s ease-out;
}

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

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: radial-gradient(rgba(26, 18, 8, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Accessibility Focus */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

::selection {
  background: var(--pastel-yellow);
  color: var(--text-primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

p {
  color: var(--text-body);
  font-size: 1.02rem;
}

a {
  color: inherit;
  text-decoration: none;
}

.handwritten {
  font-family: var(--font-hand);
  color: var(--text-pencil);
  font-weight: 700;
  line-height: 1.15;
}

.mono-tag {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: var(--bg-canvas);
  border-bottom: 1.6px solid var(--border-light);
  box-shadow: 0 2px 0px var(--shadow-color);
  transition: background-color var(--transition-tactile);
}

.header.scrolled {
  background-color: rgba(255, 251, 240, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 0px var(--shadow-color);
}

.nav-container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-icon-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1.6px solid var(--border-light);
  box-shadow: var(--hard-shadow-sm);
  background-color: #ffffff;
  transition: transform var(--transition-tactile), box-shadow var(--transition-tactile);
}

.brand-logo:hover .brand-icon-img {
  transform: translate(-1px, -1px);
  box-shadow: var(--hard-shadow);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.brand-title .brand-voice {
  color: var(--text-primary);
}

.brand-title .brand-diary {
  color: var(--primary);
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition-tactile);
  border: 1.5px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: var(--pastel-yellow);
  border-color: var(--border-light);
  box-shadow: var(--hard-shadow-sm);
  transform: translate(-1px, -1px);
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: var(--bg-card);
  border: 1.6px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--hard-shadow-sm);
  padding: 0.5rem;
  color: var(--text-primary);
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-tactile);
}

.mobile-nav-toggle:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--hard-shadow);
}

.mobile-nav-toggle:active {
  transform: translate(1px, 1px);
  box-shadow: var(--hard-shadow-xs);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: var(--bg-canvas);
  border-bottom: 2px solid var(--border-light);
  box-shadow: 0 8px 0px var(--shadow-color);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: translateY(-120%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
  z-index: 99;
}

.mobile-nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mobile-nav-links a {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-primary);
  display: block;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1.6px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--hard-shadow-sm);
}

/* ==========================================================================
   Buttons & Store Badges (Soft Neo-Brutalist Tactile Styles)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 0.98rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform var(--transition-tactile), box-shadow var(--transition-tactile);
  text-decoration: none;
  user-select: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-white);
  border: 1.6px solid rgba(26, 18, 8, 0.16);
  box-shadow: var(--hard-shadow-terracotta);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translate(-1px, -1px);
  box-shadow: var(--hard-shadow-terracotta-lg);
}

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

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1.6px solid var(--border-light);
  box-shadow: var(--hard-shadow);
}

.btn-secondary:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--card-shadow);
  border-color: var(--border-medium);
}

.btn-secondary:active {
  transform: translate(1.5px, 1.5px);
  box-shadow: var(--hard-shadow-xs);
}

/* Store Download Badges */
.store-badges-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
}

.store-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: transform var(--transition-tactile), box-shadow var(--transition-tactile);
}

.store-badge-btn.google-play {
  background-color: var(--primary);
  color: var(--text-white);
  border: 1.6px solid rgba(26, 18, 8, 0.18);
  box-shadow: var(--hard-shadow-terracotta);
}

.store-badge-btn.google-play:hover {
  background-color: var(--primary-dark);
  transform: translate(-1.5px, -1.5px);
  box-shadow: var(--hard-shadow-terracotta-lg);
}

.store-badge-btn.google-play:active {
  transform: translate(1.5px, 1.5px);
  box-shadow: 1px 1.5px 0px var(--shadow-terracotta-color);
}

.store-badge-btn.app-store {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1.6px solid var(--border-light);
  box-shadow: var(--hard-shadow);
}

.store-badge-btn.app-store:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--card-shadow);
}

.store-icon-wrap {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.store-icon-wrap svg {
  width: 100%;
  height: 100%;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.store-btn-subtitle {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.store-btn-title {
  font-size: 1.05rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.coming-soon-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  background-color: var(--pastel-mint);
  color: var(--text-primary);
  border: 1.2px solid var(--border-light);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--hard-shadow-xs);
}

/* ==========================================================================
   Hero Section: Full-Bleed Artwork Backdrop
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: auto;
  padding: 3.5rem 0 5rem;
  overflow: hidden;
  background-color: #FEFBF3;
}

.hero-full-backdrop {
  display: none;
}

.hero-full-bg-img {
  display: none;
}

.hero-container-wide {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Scene Content Grid */
.hero-scene-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 3.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0 2rem;
}

/* Left Column: Copy & Actions */
.hero-scene-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 580px;
  padding-top: 0;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background-color: var(--pastel-yellow);
  border: 1.6px solid var(--border-light);
  border-radius: var(--radius-pill);
  box-shadow: var(--hard-shadow-sm);
  font-size: clamp(0.7rem, 2.2vw, 0.86rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  max-width: 100%;
  box-sizing: border-box;
  line-height: 1.3;
}

.soundwave-icon {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 14px;
}

.soundwave-bar {
  width: 3px;
  background-color: var(--primary);
  border-radius: 2px;
  animation: soundwave 1.2s ease-in-out infinite;
}

.soundwave-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.soundwave-bar:nth-child(2) { height: 14px; animation-delay: 0.3s; }
.soundwave-bar:nth-child(3) { height: 9px; animation-delay: 0.2s; }
.soundwave-bar:nth-child(4) { height: 12px; animation-delay: 0.4s; }

@keyframes soundwave {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

.hero-title-scene {
  font-size: clamp(2.1rem, 3.8vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
  text-align: left;
}

.mobile-break {
  display: none;
}

.hero-title-scene .title-accent-slashes {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 0.35rem;
  transform: translateY(-4px);
}

.hero-title-scene .highlight-terracotta {
  color: #D95D39;
  display: inline-block;
  font-weight: 800;
}

.hero-scene-subtitle {
  font-size: clamp(0.98rem, 1.3vw, 1.12rem);
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.85rem;
  font-weight: 600;
}

.hero-scene-cta {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.hero-trust-lock {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.hero-trust-lock svg {
  color: var(--primary);
}

/* Right Column: Visual Artwork & Feature Flow */
.hero-scene-right {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  position: relative;
  z-index: 2;
}

.hero-composition-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-composition-img {
  width: 100%;
  height: auto;
  max-height: 580px;
  object-fit: contain;
  display: block;
  border-radius: 28px;
  border: 2.5px solid var(--ink);
  box-shadow: 8px 8px 0px var(--ink);
  background-color: #FDFBF3;
  transition: transform var(--transition-tactile), box-shadow var(--transition-tactile);
}

.hero-composition-img:hover {
  transform: translateY(-4px) scale(1.008);
  box-shadow: 12px 12px 0px var(--ink);
}

/* Smartphone Live Listening Card */
.scene-phone-card {
  background: #FFFFFF;
  border: 1.5px solid #EAE7E0;
  border-radius: 22px;
  box-shadow: 0 12px 28px -6px rgba(45, 36, 30, 0.08), 0 4px 12px rgba(45, 36, 30, 0.04);
  padding: 0.95rem 1.25rem 1.05rem;
  width: 100%;
  max-width: 410px;
  transition: transform var(--transition-tactile), box-shadow var(--transition-tactile);
  position: relative;
  z-index: 2;
}

.scene-phone-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -6px rgba(45, 36, 30, 0.12), 0 6px 14px rgba(45, 36, 30, 0.06);
}

.scene-rec-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4rem;
}

.scene-rec-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: #D95D39;
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  padding: 0.32rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 6px rgba(217, 93, 57, 0.3);
}

.scene-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #FFFFFF;
  display: inline-block;
  animation: recDotBlink 1.4s ease-in-out infinite;
}

.scene-rec-text {
  letter-spacing: 0.08em;
}

.scene-waveform-container {
  position: relative;
  width: 100%;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.2rem 0 0.55rem;
}

.waveform-polar-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.85;
}

.scene-waveform-display {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.wave-mic-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1E293B;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.05);
  margin: 0 8px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.wave-mic-icon:hover {
  transform: scale(1.08);
}

.wave-col {
  width: 4px;
  border-radius: 9999px;
  animation: soundwave 1.2s ease-in-out infinite;
}

/* Alternating terracotta and teal bars */
.wc-o1 { height: 14px; background-color: #D95D39; animation-delay: 0.05s; }
.wc-t1 { height: 22px; background-color: #0D9488; animation-delay: 0.12s; }
.wc-o2 { height: 28px; background-color: #D95D39; animation-delay: 0.2s; }
.wc-t2 { height: 18px; background-color: #0D9488; animation-delay: 0.28s; }
.wc-o3 { height: 24px; background-color: #D95D39; animation-delay: 0.35s; }
.wc-t3 { height: 15px; background-color: #0D9488; animation-delay: 0.42s; }

.wc-t4 { height: 16px; background-color: #0D9488; animation-delay: 0.42s; }
.wc-o4 { height: 25px; background-color: #D95D39; animation-delay: 0.35s; }
.wc-t5 { height: 30px; background-color: #0D9488; animation-delay: 0.28s; }
.wc-o5 { height: 19px; background-color: #D95D39; animation-delay: 0.2s; }
.wc-t6 { height: 22px; background-color: #0D9488; animation-delay: 0.12s; }
.wc-o6 { height: 14px; background-color: #D95D39; animation-delay: 0.05s; }

.scene-transcript-bubble {
  font-size: 0.84rem;
  line-height: 1.48;
  color: #334155;
  font-weight: 500;
  background-color: #FAFAF8;
  border: 1.2px solid #EAE7E0;
  border-radius: 14px;
  padding: 0.7rem 0.95rem;
  text-align: left;
}

/* AI Transition Arrow & Badge Connector */
.scene-ai-flow-connector {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
  width: 100%;
  padding-right: 4.5rem;
  margin: 0.15rem 0;
  position: relative;
  z-index: 6;
}

.scene-ai-arrow-wrap {
  display: inline-flex;
  align-items: center;
}

.scene-ai-arrow-svg {
  width: 58px;
  height: 60px;
  display: block;
}

.scene-ai-badge-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.scene-ai-badge-disc {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #FFE4E6;
  border: 2px solid #FDA4AF;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.16), 0 2px 5px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.12rem;
  color: #881337;
  letter-spacing: -0.02em;
}

.ai-sparkle-star {
  position: absolute;
  color: #D95D39;
  line-height: 1;
}

.sparkle-primary {
  top: -9px;
  left: -10px;
  font-size: 1.05rem;
  animation: recDotBlink 2.2s ease-in-out infinite;
}

.sparkle-secondary {
  top: 4px;
  left: -15px;
  font-size: 0.75rem;
  animation: recDotBlink 2.2s ease-in-out infinite 0.7s;
}

.ai-rays {
  position: absolute;
  top: -12px;
  right: -10px;
  display: block;
}

/* Floating "Connected Insights" Knowledge Graph Card */
.scene-insights-card {
  background: #FFFFFF;
  border: 1.5px solid #EAE7E0;
  border-radius: 24px;
  box-shadow: 0 12px 28px -6px rgba(45, 36, 30, 0.08), 0 4px 12px rgba(45, 36, 30, 0.04);
  padding: 1.25rem 1.35rem 1.65rem;
  width: 100%;
  max-width: 485px;
  transition: transform var(--transition-tactile), box-shadow var(--transition-tactile);
  position: relative;
  z-index: 2;
}

.scene-insights-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -6px rgba(45, 36, 30, 0.12), 0 6px 14px rgba(45, 36, 30, 0.06);
}

.scene-insights-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.scene-insights-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: #0F172A;
  letter-spacing: -0.02em;
}

.scene-graph-canvas {
  position: relative;
  width: 100%;
  height: 300px;
}

.scene-graph-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Shared graph node base styles */
.graph-node {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

.graph-node:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.node-icon-svg {
  flex-shrink: 0;
  display: block;
}

.node-label {
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.2;
}

.node-label-multi {
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1.25;
  text-align: center;
}

/* Center topic node: Mini Journal Entry Card (inspired by Home Screen) */
.node-mini-journal-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 18px;
  box-shadow: 0 10px 25px -5px rgba(45, 36, 30, 0.1), 0 4px 10px rgba(45, 36, 30, 0.05);
  padding: 0.65rem 0.8rem 0.65rem 0.65rem;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.65rem;
  width: 250px;
  max-width: 250px;
  z-index: 4;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.node-mini-journal-card:hover {
  transform: translate(-50%, -50%) scale(1.03);
  box-shadow: 0 14px 30px -5px rgba(45, 36, 30, 0.14), 0 6px 12px rgba(45, 36, 30, 0.06);
}

/* Left Timeline Column */
.mini-journal-timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  padding-right: 0.5rem;
  border-right: 1.2px dashed #E2E8F0;
}

.mini-journal-time {
  font-size: 0.62rem;
  font-weight: 800;
  color: #64748B;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.mini-mood-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
}

.mini-mood-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: block;
  transition: transform 0.2s ease;
}

.mini-mood-avatar:hover {
  transform: scale(1.2);
}

.mini-mood-text {
  font-size: 0.56rem;
  font-weight: 700;
  color: #475569;
}

/* Right Main Content */
.mini-journal-body {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
  flex: 1;
}

.mini-journal-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.2rem;
}

.mini-journal-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.mini-journal-arrow {
  font-size: 0.85rem;
  font-weight: 700;
  color: #94A3B8;
  line-height: 1;
  flex-shrink: 0;
}

.mini-journal-audio-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.62rem;
  font-weight: 700;
  color: #64748B;
}

.mini-journal-chips {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-top: 0.05rem;
}

.mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 9999px;
  padding: 0.12rem 0.4rem;
  font-size: 0.62rem;
  font-weight: 700;
}

.chip-activity {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #334155;
}

.chip-activity img {
  display: block;
}

.mini-journal-snippet {
  font-size: 0.64rem;
  line-height: 1.35;
  color: #64748B;
  margin: 0.15rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Surrounding Node Styles */
/* Mother - top left - mint green */
.node-mother {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #DCFCE7;
  border: 1.5px solid #86EFAC;
  padding: 0.38rem 0.8rem;
  border-radius: var(--radius-pill);
  color: #14532D;
  z-index: 3;
}

/* Consult doctor - top right - sky blue */
.node-consult {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #DBEAFE;
  border: 1.5px solid #93C5FD;
  padding: 0.38rem 0.8rem;
  border-radius: var(--radius-pill);
  color: #1E3A8A;
  z-index: 3;
}

/* Schedule repeat X-ray - middle right - amber */
.node-xray {
  position: absolute;
  top: 130px;
  right: 2px;
  background: #FEF3C7;
  border: 1.5px solid #FCD34D;
  padding: 0.42rem 0.75rem;
  border-radius: 16px;
  color: #78350F;
  z-index: 3;
  text-align: left;
}

/* Post-surgery care plan - bottom left - soft lavender */
.node-postsurgery {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: #EDE9FE;
  border: 1.5px solid #C4B5FD;
  padding: 0.42rem 0.75rem;
  border-radius: 16px;
  color: #4C1D95;
  z-index: 3;
  text-align: left;
}

/* Sikha - bottom right - warm pink */
.node-sikha {
  position: absolute;
  bottom: 8px;
  right: 22px;
  background: #FCE7F3;
  border: 1.5px solid #F472B6;
  padding: 0.38rem 0.8rem;
  border-radius: var(--radius-pill);
  color: #831843;
  z-index: 3;
}

@keyframes recDotBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}




/* ==========================================================================
   5-Capability Feature Icons Row (theme_colours + intro_screen)
   ========================================================================== */
.feature-tiles-section {
  padding: 2.5rem 0;
  border-top: 1.6px solid var(--border-light);
  border-bottom: 1.6px solid var(--border-light);
  background-color: var(--bg-card);
  box-shadow: 0 3px 0px var(--shadow-color);
}

.feature-tiles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.feature-tile-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
}

.feature-tile-icon-box {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  box-shadow: var(--hard-shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  transition: transform var(--transition-tactile), box-shadow var(--transition-tactile);
}

.feature-tile-item:hover .feature-tile-icon-box {
  transform: translate(-1.5px, -1.5px);
  box-shadow: var(--hard-shadow);
}

.tile-peach { background-color: var(--pastel-peach); }
.tile-mint { background-color: var(--pastel-mint); }
.tile-yellow { background-color: var(--pastel-yellow); }
.tile-lavender { background-color: var(--pastel-lavender); }
.tile-sky { background-color: var(--pastel-sky); }

.feature-tile-label {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
}

/* ==========================================================================
   Section Universal Styles
   ========================================================================== */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  background-color: var(--bg-card-selected);
  border: 1.5px solid rgba(217, 93, 57, 0.35);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--hard-shadow-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1.15rem;
}

.section-title {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 900;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Screenshots Gallery Section
   ========================================================================== */
.screenshots-section {
  background-color: var(--bg-canvas-soft);
  border-top: 1.6px solid var(--border-light);
  border-bottom: 1.6px solid var(--border-light);
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 3rem;
}

.gallery-tab-btn {
  padding: 0.65rem 1.4rem;
  background-color: var(--bg-card);
  border: 1.6px solid var(--border-light);
  border-radius: var(--radius-pill);
  box-shadow: var(--hard-shadow-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition-tactile);
}

.gallery-tab-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--hard-shadow);
  border-color: var(--border-medium);
}

.gallery-tab-btn.active {
  background-color: var(--primary);
  color: var(--text-white);
  border-color: rgba(26, 18, 8, 0.2);
  box-shadow: var(--hard-shadow-terracotta);
  transform: translate(-1px, -1px);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
}

.screenshot-card {
  position: relative;
  border-radius: var(--radius-lg);
  background-color: var(--bg-card);
  border: 1.8px solid var(--border-light);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform var(--transition-tactile), box-shadow var(--transition-tactile), border-color var(--transition-tactile);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.screenshot-card:hover {
  transform: translate(-2px, -3px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--border-medium);
}

.screenshot-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 941 / 1672;
  overflow: hidden;
  background-color: #f0ebe1;
  border-bottom: 1.6px solid var(--border-light);
}

.screenshot-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.screenshot-card:hover .screenshot-img-wrap img {
  transform: scale(1.02);
}

.screenshot-zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 18, 8, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.screenshot-card:hover .screenshot-zoom-overlay {
  opacity: 1;
}

.zoom-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background-color: var(--bg-card);
  border: 1.6px solid var(--border-light);
  border-radius: var(--radius-pill);
  box-shadow: var(--hard-shadow);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 800;
}

.screenshot-meta {
  padding: 1.35rem 1.4rem;
  background-color: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.screenshot-title {
  font-size: 1.18rem;
  font-weight: 900;
  color: var(--text-primary);
}

.screenshot-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   Features Deep Dive
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-box {
  background-color: var(--bg-card);
  border: 1.8px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 2.25rem 1.85rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  transition: transform var(--transition-tactile), box-shadow var(--transition-tactile);
}

.feature-box:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--card-shadow-hover);
}

.feature-icon-circle {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  box-shadow: var(--hard-shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
}

.feature-box h3 {
  font-size: 1.35rem;
  font-weight: 900;
}

.feature-box p {
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ==========================================================================
   Workflow / Steps
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
}

.step-card {
  background-color: var(--bg-card);
  border: 1.8px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform var(--transition-tactile), box-shadow var(--transition-tactile);
}

.step-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--card-shadow-hover);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  box-shadow: var(--hard-shadow-sm);
  background-color: var(--pastel-yellow);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
}

.step-card h3 {
  font-size: 1.35rem;
  font-weight: 900;
}

.step-card p {
  font-size: 1rem;
  line-height: 1.6;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1.8px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--hard-shadow);
  overflow: hidden;
  transition: transform var(--transition-tactile), box-shadow var(--transition-tactile);
}

.faq-item:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--card-shadow);
}

.faq-question {
  width: 100%;
  padding: 1.4rem 1.85rem;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  cursor: pointer;
  gap: 1.25rem;
  font-family: inherit;
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.4px solid var(--border-light);
  background-color: var(--pastel-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-icon svg {
  width: 18px;
  height: 18px;
  color: var(--text-primary);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background-color: var(--primary);
}

.faq-item.active .faq-icon svg {
  color: #ffffff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.85rem;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 320px;
  padding: 0 1.85rem 1.6rem;
}

/* ==========================================================================
   Bottom CTA Banner
   ========================================================================== */
.cta-banner-section {
  padding: 5rem 0;
}

.cta-banner-card {
  position: relative;
  background-color: var(--pastel-yellow);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--hard-shadow-lg);
  padding: 4.5rem 3rem;
  text-align: center;
  overflow: hidden;
}

.cta-title {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 1.25rem;
}

.cta-subtitle {
  font-size: 1.2rem;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  color: var(--text-secondary);
}

.cta-store-group {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Lightbox Modal
   ========================================================================== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(26, 18, 8, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal.open {
  display: flex;
  opacity: 1;
}

.modal-content-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-light);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  background-color: #ffffff;
}

.modal-caption {
  margin-top: 1.25rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  background-color: var(--primary);
  padding: 0.45rem 1.3rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--hard-shadow-terracotta);
}

.modal-close-btn {
  position: absolute;
  top: -48px;
  right: -10px;
  background-color: var(--bg-card);
  border: 1.6px solid var(--border-light);
  box-shadow: var(--hard-shadow-sm);
  color: var(--text-primary);
  font-size: 1.8rem;
  font-weight: 900;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-tactile);
}

.modal-close-btn:hover {
  background-color: var(--pastel-peach);
  transform: scale(1.05);
}

/* ==========================================================================
   Auxiliary Legal & Contact Pages
   ========================================================================== */
.legal-page-header {
  padding: 4rem 0 2.5rem;
  text-align: center;
}

.legal-card {
  background-color: var(--bg-card);
  border: 1.8px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow);
  padding: 3.5rem;
  margin-bottom: 5rem;
}

.legal-block {
  margin-bottom: 2.75rem;
}

.legal-block:last-child {
  margin-bottom: 0;
}

.legal-block h2,
.legal-block h3 {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.legal-block p,
.legal-block li {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 0.85rem;
}

.legal-block ul,
.legal-block ol {
  padding-left: 1.75rem;
  margin-bottom: 1.15rem;
}

.badge-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  background-color: var(--pastel-lavender);
  color: var(--text-primary);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1.2px solid var(--border-light);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.form-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.25rem;
  background-color: var(--bg-canvas);
  border: 1.6px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--hard-shadow-xs);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition-tactile);
}

.form-control:focus {
  outline: none;
  background-color: #ffffff;
  box-shadow: var(--hard-shadow-sm);
  border-color: var(--primary);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 600;
}

.form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  margin-top: 0.2rem;
  flex-shrink: 0;
  cursor: pointer;
}

.alert {
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  box-shadow: var(--hard-shadow-sm);
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: none;
}

.alert-success {
  background-color: var(--pastel-mint);
  color: var(--text-primary);
}

.alert-error {
  background-color: var(--pastel-peach);
  color: var(--accent-red);
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.75rem;
}

.contact-card {
  background-color: var(--bg-card);
  border: 1.8px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow);
  padding: 2.75rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--bg-canvas-soft);
  border-top: 1.6px solid var(--border-light);
  box-shadow: 0 -2px 0px var(--shadow-color);
  padding: 4.5rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

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

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand-logo img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1.4px solid var(--border-light);
  box-shadow: var(--hard-shadow-sm);
}

.footer-brand-title {
  font-size: 1.35rem;
  font-weight: 900;
}

.footer-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 900;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all var(--transition-tactile);
}

.footer-col a:hover {
  color: var(--primary);
  transform: translateX(3px);
  display: inline-block;
}

/* Bottom Mandatory Legal Links Bar */
.footer-legal-bar {
  padding-top: 2rem;
  border-top: 1.5px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
}

.footer-legal-links a {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal-links a:hover {
  color: var(--primary);
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-scene-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 2rem 3.5rem;
  }

  .hero-scene-left {
    align-items: center;
    text-align: center;
    max-width: 100%;
  }

  .hero-title-scene {
    text-align: center;
  }

  .hero-scene-cta {
    align-items: center;
  }

  .hero-scene-cta .store-badges-group {
    justify-content: center;
  }

  .hero-scene-right {
    align-items: center;
  }

  .hero-scene-overlay-scrim {
    background: linear-gradient(
      180deg,
      rgba(254, 251, 243, 0.96) 0%,
      rgba(254, 251, 243, 0.88) 38%,
      rgba(254, 251, 243, 0.45) 65%,
      rgba(254, 251, 243, 0.94) 100%
    );
  }

  .store-badges-group {
    justify-content: center;
  }

  .floating-badge-1 { left: 0; }
  .floating-badge-2 { right: 0; }

  .feature-tiles-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

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

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

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .mobile-break {
    display: block;
  }

  .nav-links,
  .header-cta-group {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .feature-tiles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .screenshots-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }

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

  .cta-banner-card {
    padding: 3rem 1.5rem;
  }

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

  .footer-legal-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-card,
  .contact-card {
    padding: 2rem 1.5rem;
  }

  /* Hero Scene Mobile Optimization */
  .hero-section {
    padding: 2.5rem 0 3.5rem;
    min-height: auto;
  }

  .hero-scene-grid {
    grid-template-columns: 1fr;
    padding: 1rem 0 2rem;
    gap: 2.5rem;
  }

  .hero-scene-left {
    max-width: 100%;
    align-items: center;
    text-align: center;
  }

  .hero-title-scene {
    text-align: center;
  }

  .hero-scene-right {
    max-width: 100%;
    align-items: center;
  }

  .scene-phone-card,
  .scene-insights-card {
    max-width: 100%;
  }

  .scene-ai-flow-connector {
    justify-content: center;
    padding-right: 0;
  }

  .mascot-speech-bubble {
    display: none;
  }


  /* Mobile Button and Trust Stacking */
  .store-badges-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

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

  .hero-trust-list {
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
  }

  .brand-title {
    font-size: 1.25rem;
  }

  .brand-tagline {
    font-size: 0.68rem;
  }
}

html {
  overflow-x: hidden;
}

