/* ==========================================================================
   PoolChem Labs Product Website Stylesheet (Apple-esque Light Design)
   Clean, bright, high-contrast, modern UI for poolchemlabs.com
   ========================================================================== */

:root {
  /* Apple-inspired Light Surface Palette */
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f7;          /* Apple's signature light section gray */
  --bg-tertiary: #fbfbfd;
  --bg-card: #ffffff;
  --bg-card-subtle: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.82);

  --border-subtle: #e5e5ea;
  --border-medium: #d2d2d7;
  --border-highlight: #0284c7;

  /* Brand Accents (Aquatic California Sky / Pool Blue) */
  --cyan-400: #0ea5e9;
  --cyan-500: #0284c7;
  --cyan-600: #0369a1;
  --sky-400: #38bdf8;
  --sky-500: #0284c7;
  --apple-blue: #0071e3;           /* Apple action blue */

  --emerald-500: #10b981;
  --emerald-600: #059669;
  --amber-500: #f59e0b;
  --amber-700: #b45309;
  --rose-500: #ef4444;
  --rose-600: #dc2626;

  /* Typography (Apple HIG Charcoal & Grays) */
  --text-primary: #1d1d1f;          /* Deep rich charcoal */
  --text-secondary: #515154;        /* Readable neutral body */
  --text-muted: #86868b;            /* Caption / secondary neutral */

  /* Radii & Shadows */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
  --shadow-elevated: 0 14px 34px -10px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  color-scheme: light;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* Accessible focus ring */
:focus-visible {
  outline: 2px solid var(--apple-blue);
  outline-offset: 3px;
}

/* Screen reader only utility */
.visually-hidden {
  position: absolute;
  clip-path: inset(50%);
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  white-space: nowrap;
}

/* ==========================================================================
   Typography & Shared Layout Containers
   ========================================================================== */

.site-container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.section {
  padding-block: clamp(60px, 8vw, 104px);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-block-end: clamp(40px, 6vw, 56px);
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: clamp(0.72rem, 0.68rem + 0.2vw, 0.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(2, 132, 199, 0.08);
  color: var(--cyan-600);
  border: 1px solid rgba(2, 132, 199, 0.2);
  margin-block-end: 18px;
  max-width: 100%;
}

.eyebrow-badge.pulse::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-500);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.section-title {
  font-size: clamp(1.85rem, 1.3rem + 2.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-block-end: 16px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Announcement Bar & Header (Apple Clean Style)
   ========================================================================== */

.announcement-bar {
  background: #f0f7fc;
  border-bottom: 1px solid #dbeafe;
  color: #0369a1;
  padding: 9px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.announcement-link {
  color: var(--apple-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  transition: opacity 0.15s;
}

.announcement-link:hover {
  opacity: 0.85;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: background-color 0.2s;
}

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

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon-svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 8px;
}

.brand-name {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.beta-pill {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(2, 132, 199, 0.08);
  color: var(--cyan-600);
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-inline: auto;
}

.nav-link {
  color: var(--text-primary);
  opacity: 0.75;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: opacity 0.15s;
}

.nav-link:hover {
  opacity: 1;
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-menu-btn {
  display: none;
  background: #f5f5f7;
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Apple-style Pill Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  border: 1px solid transparent;
  min-height: 44px;
}

.btn-primary {
  background: #0071e3;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 113, 227, 0.25);
}

.btn-primary:hover {
  background: #0077ed;
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #f5f5f7;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background: #e8e8ed;
  border-color: #c7c7cc;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 7px 15px;
  font-size: 0.84rem;
  min-height: 36px;
}

.btn-lg {
  padding: 13px 26px;
  font-size: 1rem;
  font-weight: 700;
  min-height: 50px;
}

/* ==========================================================================
   Hero Section (Spacious, Crisp Apple Look)
   ========================================================================== */

.hero-section {
  padding-block: clamp(52px, 7vw, 92px);
  position: relative;
  background: #ffffff;
  overflow: hidden;
}

.hero-glow-bg {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle at center, rgba(2, 132, 199, 0.08) 0%, rgba(56, 189, 248, 0.03) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 6vw, 64px);
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-size: clamp(1.35rem, 1.1rem + 2.4vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-block-end: 20px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 40%, #0891b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.22rem);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-block-end: 32px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-end: 40px;
}

.hero-trust-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 560px;
  border-top: 1px solid var(--border-subtle);
  padding-block-start: 24px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.trust-icon {
  color: var(--cyan-500);
  font-size: 1.15rem;
  line-height: 1;
  margin-block-start: 2px;
}

.trust-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.trust-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Hero Phone Mockup: Silver/Aluminum Bezel */
.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.mockup-phone-frame {
  width: 100%;
  max-width: 370px;
  background: #ffffff;
  border-radius: 40px;
  border: 3px solid #d2d2d7;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.2);
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.mockup-phone-notch {
  width: 110px;
  height: 20px;
  background: #1d1d1f;
  border-radius: 10px;
  margin: -6px auto 14px auto;
}

.mockup-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block-end: 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-block-end: 12px;
}

.mockup-brand-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-primary);
}

.mockup-status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-600);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* Simulated Scan Viewfinder in Phone */
.mockup-viewfinder {
  background: #0c1626;
  border-radius: var(--radius-md);
  padding: 14px 12px;
  border: 1px solid #1a2a40;
  position: relative;
  margin-block-end: 12px;
}

.viewfinder-guide-overlay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: 10px;
}

.viewfinder-guide-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--sky-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.viewfinder-ribbon-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  background: #132238;
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  border: 1px dashed rgba(56, 189, 248, 0.4);
}

.viewfinder-pad-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.pad-swatch {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  position: relative;
}

.pad-swatch-core {
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(255, 255, 255, 0.9);
  border-radius: 2px;
}

.pad-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
  text-align: center;
}

.pad-val {
  font-size: 0.68rem;
  font-weight: 800;
  color: #ffffff;
}

/* Mockup Balance Score Output */
.mockup-result-card {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  margin-block-end: 10px;
}

.mockup-lsi-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: 8px;
}

.mockup-lsi-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--emerald-600);
}

.mockup-treatment-pill {
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.74rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0369a1;
  font-weight: 500;
}

/* ==========================================================================
   Interactive Live Demo Simulator Section (Clean Apple Surface)
   ========================================================================== */

.simulator-section {
  background: var(--bg-secondary);
  border-block: 1px solid var(--border-subtle);
}

.sim-controls-wrapper {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-block-end: 32px;
  flex-wrap: wrap;
}

.sim-tab-btn {
  background: #ffffff;
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-subtle);
}

.sim-tab-btn:hover {
  color: var(--text-primary);
  border-color: #a1a1a6;
}

.sim-tab-btn.active {
  background: #0071e3;
  color: #ffffff;
  border-color: #0071e3;
  box-shadow: 0 2px 10px rgba(0, 113, 227, 0.25);
}

.simulator-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-card);
}

.sim-display-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

/* Left side of Simulator: The 5 Strip Pads */
.sim-strip-panel {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.sim-panel-title {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cyan-600);
  margin-block-end: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sim-pads-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sim-pad-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  box-shadow: var(--shadow-subtle);
  transition: border-color 0.15s;
}

.sim-pad-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sim-pad-swatch {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: relative;
  flex-shrink: 0;
}

.sim-pad-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.sim-pad-target {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sim-pad-right {
  text-align: right;
}

.sim-pad-val {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-primary);
}

.sim-pad-status-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
  margin-block-start: 2px;
}

/* Right side of Simulator: LSI Gauge and Treatment Plan */
.sim-analysis-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sim-lsi-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.lsi-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: 14px;
}

.lsi-score-badge {
  font-size: 1.2rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
}

.lsi-gauge-track {
  height: 10px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 25%, #10b981 45%, #10b981 55%, #f59e0b 75%, #ef4444 100%);
  position: relative;
  margin-block: 16px 8px;
}

.lsi-needle {
  position: absolute;
  top: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #1d1d1f;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transform: translateX(-50%);
  transition: left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lsi-labels-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.sim-treatment-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.sim-treatment-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-block: 12px;
}

.sim-treatment-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--cyan-500);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  box-shadow: var(--shadow-subtle);
}

.sim-chem-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-block-end: 4px;
}

.sim-chem-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.sim-chem-amt {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--cyan-600);
}

.sim-chem-instr {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.sim-weather-alert {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.82rem;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.sim-footer-cta {
  margin-block-start: 28px;
  text-align: center;
}

/* ==========================================================================
   The 4 Core Pillars Section
   ========================================================================== */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.pillar-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  background: #ffffff;
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.pillar-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-600);
  font-size: 1.35rem;
  margin-block-end: 20px;
}

.pillar-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-block-end: 12px;
}

.pillar-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-block-end: 18px;
  flex-grow: 1;
}

.pillar-features-list {
  list-style: none;
  border-top: 1px solid var(--border-subtle);
  padding-block-start: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pillar-features-list li {
  font-size: 0.84rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pillar-features-list li::before {
  content: "✓";
  color: var(--cyan-600);
  font-weight: 800;
}

/* ==========================================================================
   How It Works (3 Steps)
   ========================================================================== */

.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  box-shadow: var(--shadow-subtle);
}

.step-number {
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--cyan-500);
  line-height: 1;
  margin-block-end: 14px;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-block-end: 10px;
}

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

/* ==========================================================================
   Beta Testing Program & Free Strip Kit Signup Form
   ========================================================================== */

.beta-signup-section {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
}

.beta-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: start;
}

.beta-info-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
}

.beta-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-block-end: 20px;
}

.beta-perk-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--emerald-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.beta-perk-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-block-end: 2px;
}

.beta-perk-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.mailer-preview-pill {
  margin-block-start: 24px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mailer-preview-text {
  font-size: 0.85rem;
  color: var(--cyan-600);
  font-weight: 700;
}

/* Accessible Form Styling (Apple HIG style) */
.beta-form-card {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 40px);
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-block-end: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

label {
  display: inline-block;
  padding: 3px 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-block-end: 4px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #f5f5f7;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

@media (pointer: coarse) {
  .form-input, .form-select, .form-textarea {
    min-height: 52px;
  }
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  background: #ffffff;
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
}

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

.gallon-preset-row {
  display: flex;
  gap: 8px;
  margin-block-start: 8px;
  flex-wrap: wrap;
}

.gallon-preset-btn {
  background: #f5f5f7;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.gallon-preset-btn:hover {
  background: #e8e8ed;
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.form-submit-btn {
  width: 100%;
  margin-block-start: 12px;
}

.form-feedback-message {
  padding: 16px;
  border-radius: var(--radius-md);
  margin-block-start: 16px;
  display: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.form-feedback-message.success {
  display: block;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.form-feedback-message.error {
  display: block;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* ==========================================================================
   Beta Tester Feedback Section
   ========================================================================== */

.tester-feedback-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.feedback-container {
  max-width: 760px;
  margin-inline: auto;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 40px);
  box-shadow: var(--shadow-card);
}

/* ==========================================================================
   FAQ Section (Semantic <details> and <summary>)
   ========================================================================== */

.faq-list {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.15s ease;
}

.faq-item[open] {
  background: #ffffff;
  border-color: var(--border-medium);
  box-shadow: var(--shadow-subtle);
}

.faq-question {
  padding: 18px 22px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

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

.faq-chevron {
  width: 18px;
  height: 18px;
  color: var(--cyan-600);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

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

.faq-answer {
  padding: 0 22px 20px 22px;
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.65;
  border-top: 1px solid var(--border-subtle);
  padding-block-start: 14px;
}

/* ==========================================================================
   Global Footer (Apple Clean Style)
   ========================================================================== */

.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding-block: 52px 32px;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-block-end: 44px;
}

.footer-brand-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-block: 12px 20px;
  max-width: 320px;
}

.footer-col-title {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-block-end: 14px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-nav-link:hover {
  color: var(--text-primary);
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-block-start: 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .hero-subtitle {
    margin-inline: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-trust-bar {
    margin-inline: auto;
  }
  .how-it-works-grid {
    grid-template-columns: 1fr;
  }
  .beta-grid {
    grid-template-columns: 1fr;
  }
  .sim-display-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .site-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .header-cta-group .btn-secondary {
    display: none;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 1.05rem;
  }
  .hero-title {
    font-size: 1.25rem;
    line-height: 1.22;
  }
  .header-cta-group .btn-primary {
    padding: 7px 14px;
    font-size: 0.82rem;
  }
  .announcement-bar {
    font-size: 0.76rem;
    padding: 8px 12px;
  }
}
