/* ==========================================================================
   InsulinMe Beta — Website Styles
   ========================================================================== */

/* Design Tokens
   ========================================================================== */
:root {
  /* Colors */
  --color-bg: #0A1628;
  --color-bg-light: #0F1D30;
  --color-blue-deep: #0050B8;
  --color-blue: #007AFF;
  --color-blue-light: #3A9BFF;
  --color-orange: #FF9500;
  --color-orange-deep: #C45E00;
  --color-white: #FFFFFF;
  --color-text: #E8EDF3;
  --color-text-muted: #8899AB;
  --color-text-dim: #5A6B7D;

  /* Beta-specific colors */
  --color-green: #34C759;
  --color-green-deep: #248A3D;
  --color-beta-glow: rgba(52, 199, 89, 0.15);
  --gradient-beta: linear-gradient(135deg, var(--color-blue), var(--color-green));
  --gradient-beta-border: linear-gradient(135deg, var(--color-blue), var(--color-green), var(--color-blue));

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(255, 255, 255, 0.18);
  --glass-highlight: rgba(255, 255, 255, 0.06);
  --glass-blur: 20px;

  /* Spacing (8px scale) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
  --space-9: 4rem;
  --space-10: 5rem;
  --space-11: 6rem;
  --space-12: 8rem;

  /* Typography — fluid clamp sizes */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.8125rem, 0.775rem + 0.2vw, 0.9375rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.8vw, 2.75rem);
  --text-4xl: clamp(2.25rem, 1.8rem + 2.2vw, 3.5rem);
  --text-5xl: clamp(2.75rem, 2rem + 3.5vw, 4.5rem);

  /* Font */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.35);
  --shadow-glow-blue: 0 0 60px rgba(0, 122, 255, 0.15);
  --shadow-glow-orange: 0 0 60px rgba(255, 149, 0, 0.1);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Nav */
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-normal);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Layered background with radial glows */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(0, 80, 184, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(255, 149, 0, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 100% 60% at 50% 100%, rgba(0, 50, 120, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #0A1628 0%, #0D1F38 50%, #0A1628 100%);
  pointer-events: none;
}

/* Subtle noise overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* Skip to content */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 1000;
  padding: var(--space-3) var(--space-5);
  background: var(--color-blue);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-weight: var(--font-weight-semibold);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* Section */
.section {
  padding: var(--space-11) 0;
}

.section__label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-blue-light);
  margin-bottom: var(--space-4);
}

.section__title {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  line-height: 1.15;
  margin-bottom: var(--space-5);
  color: var(--color-white);
}

.section__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  line-height: 1.6;
}

.section--center {
  text-align: center;
}

.section--center .section__subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Glass Card
   ========================================================================== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  transition:
    transform var(--transition-base),
    background var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

/* Inset top highlight */
.glass-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-highlight), transparent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-2px);
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-md);
}

/* Backdrop-filter fallback */
@supports not (backdrop-filter: blur(1px)) {
  .glass-card {
    background: rgba(15, 29, 48, 0.95);
  }
  .nav--scrolled {
    background: rgba(10, 22, 40, 0.98) !important;
  }
}

/* Animations
   ========================================================================== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

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

@keyframes shimmer {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(52, 199, 89, 0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }
.reveal-delay-7 { transition-delay: 0.7s; }
.reveal-delay-8 { transition-delay: 0.8s; }
.reveal-delay-9 { transition-delay: 0.9s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__icon {
    animation: none !important;
  }

  .hero__beta-badge::before {
    animation: none !important;
  }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: rgba(10, 22, 40, 0.8);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom-color: var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  z-index: 101;
}

.nav__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}

/* Nav Beta Badge */
.nav__beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-green);
  background: rgba(52, 199, 89, 0.1);
  border: 1px solid rgba(52, 199, 89, 0.2);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--color-white);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: var(--color-blue);
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-full);
  transition: background var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

.nav__cta:hover {
  background: var(--color-blue-light);
  transform: translateY(-1px);
}

.nav__cta svg {
  width: 16px;
  height: 16px;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  z-index: 101;
  cursor: pointer;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav__hamburger {
    display: flex;
  }

  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-7);
    background: rgba(10, 22, 40, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
  }

  .nav__links.open {
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    font-size: var(--text-xl);
  }

  .nav__cta {
    font-size: var(--text-lg);
    padding: var(--space-3) var(--space-7);
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--nav-height) var(--space-5) var(--space-9);
  overflow: hidden;
}

/* Decorative IOB curve background */
.hero__bg-curve {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.06;
}

.hero__content {
  position: relative;
  max-width: 720px;
}

/* Hero Beta Badge */
.hero__beta-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  margin-bottom: var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-green);
  background: rgba(52, 199, 89, 0.08);
  border: 1px solid rgba(52, 199, 89, 0.2);
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.hero__beta-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-green);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

.hero__icon {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-7);
  border-radius: 26px;
  box-shadow: var(--shadow-xl), var(--shadow-glow-blue);
  animation: float 5s ease-in-out infinite;
}

.hero__title {
  font-size: var(--text-5xl);
  font-weight: var(--font-weight-bold);
  line-height: 1.08;
  color: var(--color-white);
  margin-bottom: var(--space-5);
  letter-spacing: -0.02em;
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-deep) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-8);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero CTA Buttons */
.hero__cta-group {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  white-space: nowrap;
  flex: 1 1 0;
  max-width: 280px;
  background: linear-gradient(135deg, var(--color-blue), var(--color-blue-deep));
  color: var(--color-white);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md), var(--shadow-glow-blue);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
}

.hero__cta--secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-md);
}

.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(0, 122, 255, 0.25);
}

.hero__cta--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(255, 255, 255, 0.08);
}

.hero__cta svg {
  width: 20px;
  height: 20px;
}

.hero__cta-note {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-dim);
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-5);
  margin-top: var(--space-7);
  font-size: var(--text-sm);
  color: var(--color-text-dim);
}

.hero__badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero__badge svg {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

/* Hero sentinel (for nav scroll observer) */
.hero__sentinel {
  position: absolute;
  top: 0;
  height: 1px;
  width: 1px;
}

@media (max-width: 640px) {
  .hero__cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__cta {
    max-width: none;
    justify-content: center;
  }
}

/* ==========================================================================
   Features
   ========================================================================== */
.features__grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.feature-card {
  padding: var(--space-7);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  font-size: 1.5rem;
  background: rgba(0, 122, 255, 0.1);
  border: 1px solid rgba(0, 122, 255, 0.15);
  color: var(--color-blue-light);
}

.feature-card__icon--orange {
  background: rgba(255, 149, 0, 0.1);
  border-color: rgba(255, 149, 0, 0.15);
  color: var(--color-orange);
}

.feature-card__title {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.feature-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

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

@media (min-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Platforms
   ========================================================================== */
.platforms__text {
  max-width: 600px;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-top: var(--space-5);
}

.platforms__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-8);
}

.platform-card {
  text-align: center;
  padding: var(--space-7) var(--space-5);
}

.platform-card__icon {
  margin: 0 auto var(--space-5);
  width: 56px;
  height: 56px;
  color: var(--color-blue-light);
}

.platform-card__name {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  margin-bottom: var(--space-1);
}

.platform-card__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  margin-top: var(--space-2);
}

.platform-card__tag--included {
  background: rgba(52, 199, 89, 0.15);
  color: #34C759;
}

@media (min-width: 640px) {
  .platforms__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .platforms__grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ==========================================================================
   What to Expect (Beta Program)
   ========================================================================== */
.beta-expect__grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.beta-expect-card {
  padding: var(--space-7);
}

.beta-expect-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  font-size: 1.5rem;
  background: rgba(0, 122, 255, 0.1);
  border: 1px solid rgba(0, 122, 255, 0.15);
  color: var(--color-blue-light);
}

.beta-expect-card__icon--orange {
  background: rgba(255, 149, 0, 0.1);
  border-color: rgba(255, 149, 0, 0.15);
  color: var(--color-orange);
}

.beta-expect-card__title {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.beta-expect-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .beta-expect__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Our Story
   ========================================================================== */
.story {
  position: relative;
}

.story::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(255, 149, 0, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.story__content {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.story__text {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.story__text:last-of-type {
  margin-bottom: var(--space-4);
}

.story__text--accent {
  color: var(--color-white);
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-xl);
}

.story__signature {
  font-size: var(--text-base);
  color: var(--color-orange);
  font-weight: var(--font-weight-medium);
  font-style: italic;
  margin-top: var(--space-5);
  text-align: center;
}

/* ==========================================================================
   Help Shape InsulinMe (Feedback)
   ========================================================================== */
.feedback-section {
  text-align: center;
}

.feedback__grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.feedback-card {
  padding: var(--space-7);
  text-align: left;
}

.feedback-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  font-size: 1.5rem;
  background: rgba(0, 122, 255, 0.1);
  border: 1px solid rgba(0, 122, 255, 0.15);
  color: var(--color-blue-light);
}

.feedback-card__icon--orange {
  background: rgba(255, 149, 0, 0.1);
  border-color: rgba(255, 149, 0, 0.15);
  color: var(--color-orange);
}

.feedback-card__title {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.feedback-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.feedback__cta-group {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.feedback__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  white-space: nowrap;
  flex: 1 1 0;
  max-width: 280px;
  background: linear-gradient(135deg, var(--color-blue), var(--color-blue-deep));
  color: var(--color-white);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md), var(--shadow-glow-blue);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
}

.feedback__cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(0, 122, 255, 0.25);
}

.feedback__cta--secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-md);
}

.feedback__cta--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(255, 255, 255, 0.08);
}

.feedback__cta svg {
  width: 20px;
  height: 20px;
}

.feedback__cta-note {
  display: block;
  text-align: center;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-dim);
}

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

@media (max-width: 640px) {
  .feedback__cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .feedback__cta {
    max-width: none;
    justify-content: center;
  }
}

/* ==========================================================================
   Privacy / Trust
   ========================================================================== */
.privacy__grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.privacy-block {
  padding: var(--space-7);
}

.privacy-block__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  font-size: 1.5rem;
  background: rgba(0, 122, 255, 0.1);
  border: 1px solid rgba(0, 122, 255, 0.15);
  color: var(--color-blue-light);
}

.privacy-block__title {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.privacy-block__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.privacy__disclaimer {
  margin-top: var(--space-8);
  padding: var(--space-6);
  border-left: 3px solid var(--color-orange);
  background: rgba(255, 149, 0, 0.04);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.privacy__disclaimer p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.privacy__disclaimer strong {
  color: var(--color-orange);
  font-weight: var(--font-weight-semibold);
}

.privacy__read-more {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-dim);
}

.privacy__read-more a {
  color: var(--color-blue-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(58, 155, 255, 0.3);
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.privacy__read-more a:hover {
  color: var(--color-white);
  text-decoration-color: var(--color-white);
}

@media (min-width: 768px) {
  .privacy__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq__list {
  max-width: 760px;
  margin: var(--space-8) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.faq-item {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.faq-item[open] {
  border-color: var(--glass-border-hover);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-white);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color var(--transition-fast);
}

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

.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-left: var(--space-4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238899AB' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform var(--transition-base);
}

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

.faq-item summary:hover {
  color: var(--color-blue-light);
}

.faq-item__content {
  padding: 0 var(--space-6) var(--space-5);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height var(--transition-slow), opacity var(--transition-base), padding var(--transition-base);
  padding-top: 0;
  padding-bottom: 0;
}

.faq-item[open] .faq-item__content {
  max-height: 400px;
  opacity: 1;
  padding-bottom: var(--space-5);
}

.faq-item__answer {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Legal Sections (Privacy Policy & Medical Disclaimer)
   ========================================================================== */
.legal-section {
  border-top: 1px solid var(--glass-border);
}

.legal-section--page {
  padding-top: calc(var(--nav-height) + var(--space-9));
  border-top: none;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-blue-light);
  margin-bottom: var(--space-6);
  transition: color var(--transition-fast);
}

.legal-back:hover {
  color: var(--color-white);
}

.legal-section__date {
  font-size: var(--text-sm);
  color: var(--color-text-dim);
  margin-bottom: var(--space-6);
}

.legal-content {
  max-width: 800px;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.8;
}

.legal-content h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-content h3:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content h4 {
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.legal-content p {
  margin-bottom: var(--space-4);
}

.legal-content ul,
.legal-content ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.legal-content ul {
  list-style: disc;
}

.legal-content ol {
  list-style: decimal;
}

.legal-content li {
  margin-bottom: var(--space-2);
  padding-left: var(--space-2);
}

.legal-content strong {
  color: var(--color-text);
  font-weight: var(--font-weight-semibold);
}

.legal-content a {
  color: var(--color-blue-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(58, 155, 255, 0.3);
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.legal-content a:hover {
  color: var(--color-white);
  text-decoration-color: var(--color-white);
}

.legal-content__highlight {
  margin: var(--space-6) 0;
  padding: var(--space-6);
  border-radius: var(--radius-md);
  background: rgba(0, 122, 255, 0.06);
  border-left: 3px solid var(--color-blue);
}

.legal-content__highlight h4 {
  color: var(--color-blue-light);
}

.legal-content__highlight--orange {
  background: rgba(255, 149, 0, 0.06);
  border-left-color: var(--color-orange);
}

.legal-content__highlight--orange h4 {
  color: var(--color-orange);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: var(--space-9) 0 var(--space-8);
  background: rgba(0, 0, 0, 0.15);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.footer__brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
}

.footer__brand-name {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.footer__brand-copy {
  font-size: var(--text-sm);
  color: var(--color-text-dim);
}

.footer__heading {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--color-text-dim);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-white);
}

.footer__contact-email {
  font-size: var(--text-sm);
  color: var(--color-blue-light);
  transition: color var(--transition-fast);
}

.footer__contact-email:hover {
  color: var(--color-white);
}

.footer__disclaimer {
  margin-top: var(--space-5);
  font-size: var(--text-xs);
  color: var(--color-text-dim);
  line-height: 1.6;
}

.footer__bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--glass-border);
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-dim);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.body--no-scroll {
  overflow: hidden;
}