:root {
  --bg-primary: #131313;
  --bg-surface: #1b1b1c;
  --bg-surface-elevated: #202020;
  --bg-surface-card: #252526;
  --text-primary: #FDFDFC;
  --text-secondary: #E5E2E1;
  --text-muted: #9E9E9E;
  --border-subtle: #333333;
  --border-strong: #444748;
  
  /* Brand Accents */
  --accent-green: #90D883;
  --accent-green-glow: rgba(144, 216, 131, 0.25);
  --accent-green-dark: #6eb962;
  --accent-amber: #DDA77B;
  --accent-amber-glow: rgba(221, 167, 123, 0.25);
  
  /* Jewel Tones for Color Guide */
  --jewel-blue: #64B5F6;
  --jewel-green: #81C784;
  --jewel-amber: #FFD54F;
  --jewel-coral: #FF8A80;
  
  --font-main: 'Lexend', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-reading: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light / Canvas Theme Variables */
body.theme-charcoal {
  --canvas-bg: #131313;
  --canvas-text: #FFFFFF;
  --canvas-anchor: #90D883;
  --canvas-accent: #90D883;
}
body.theme-bedtime {
  --canvas-bg: #110E0C;
  --canvas-text: #DDA77B;
  --canvas-anchor: #FFAA4C;
  --canvas-accent: #FF9F43;
}
body.theme-readers {
  --canvas-bg: #E2E2E0;
  --canvas-text: #111111;
  --canvas-anchor: #333333;
  --canvas-accent: #4A4A4A;
}
body.theme-cream {
  --canvas-bg: #FAFAC8;
  --canvas-text: #0A0A0A;
  --canvas-anchor: #333333;
  --canvas-accent: #1A1A1A;
}
body.theme-sepia {
  --canvas-bg: #EDD1B0;
  --canvas-text: #1E1E00;
  --canvas-anchor: #333333;
  --canvas-accent: #1E1E00;
}
body.theme-calmgreen {
  --canvas-bg: #A8F29A;
  --canvas-text: #1A1A1A;
  --canvas-anchor: #333333;
  --canvas-accent: #1A1A1A;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Grid Background */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(19, 19, 19, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  padding: 14px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo {
  height: 34px;
  width: auto;
  max-width: 34px;
  object-fit: contain;
  display: block;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.brand-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-green);
  background: rgba(144, 216, 131, 0.12);
  border: 1px solid rgba(144, 216, 131, 0.3);
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--accent-green);
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.btn-primary:hover {
  background-color: #E5E2E1;
  transform: translateY(-1px);
}

.btn-accent {
  background-color: var(--accent-green);
  color: #0c1a0a;
  border-color: var(--accent-green);
  box-shadow: 0 0 20px var(--accent-green-glow);
}

.btn-accent:hover {
  background-color: var(--accent-green-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
  background-color: rgba(144, 216, 131, 0.05);
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-store:hover {
  border-color: var(--accent-green);
  background: var(--bg-surface-elevated);
  transform: translateY(-1px);
}

.btn-store svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

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

.btn-store-text .caption {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-store-text .store-name {
  font-size: 0.95rem;
  font-weight: 700;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 84px 0 64px;
  text-align: center;
  background-image: 
    linear-gradient(180deg, rgba(17, 17, 17, 0.72) 0%, rgba(17, 17, 17, 0.88) 75%, var(--bg-primary) 100%),
    url('assets/images/hero_bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(144, 216, 131, 0.08);
  border: 1px solid rgba(144, 216, 131, 0.35);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-green);
  margin-bottom: 24px;
}

.hero-pill svg {
  width: 14px;
  height: 14px;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  max-width: 950px;
  margin: 0 auto 24px;
}

.hero-title .highlight-text {
  color: var(--accent-green);
  text-decoration: underline;
  text-decoration-color: rgba(144, 216, 131, 0.4);
  text-underline-offset: 6px;
}

.hero-subhead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-meta-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-meta-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta-badges svg {
  width: 16px;
  height: 16px;
  color: var(--accent-green);
}

/* Live Testing Sandbox Section */
.sandbox-section {
  padding: 60px 0 80px;
}

.sandbox-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.sandbox-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-green), var(--jewel-blue), var(--accent-amber));
}

.sandbox-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.sandbox-title-wrap h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.sandbox-title-wrap p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.char-counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--accent-green);
}

.char-counter-badge.limit-warning {
  color: var(--jewel-coral);
  border-color: var(--jewel-coral);
}

/* Sandbox Input Block */
.sandbox-input-block {
  margin-bottom: 24px;
}

.sandbox-textarea-wrap {
  position: relative;
}

.sandbox-textarea {
  width: 100%;
  height: 90px;
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: var(--text-primary);
  font-family: var(--font-reading);
  font-size: 1rem;
  resize: vertical;
  line-height: 1.5;
  transition: border-color var(--transition-fast);
}

.sandbox-textarea:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 2px var(--accent-green-glow);
}

.sample-prompts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.sample-prompts .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-sample {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-sample:hover {
  border-color: var(--accent-green);
  color: var(--text-primary);
}

/* Methods Tabs */
.method-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.method-tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.method-tab-btn:hover {
  background: var(--bg-surface-card);
  border-color: var(--border-strong);
}

.method-tab-btn.active {
  background: rgba(144, 216, 131, 0.08);
  border-color: var(--accent-green);
  color: var(--text-primary);
  box-shadow: 0 0 15px rgba(144, 216, 131, 0.12);
}

.method-icon-box {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--accent-green);
  flex-shrink: 0;
}

.method-tab-btn.active .method-icon-box {
  background: var(--accent-green);
  color: #0c1a0a;
}

.method-info .title {
  font-size: 0.95rem;
  font-weight: 700;
  display: block;
}

.method-info .subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Method Sub-Controls */
.sandbox-theme-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 10px 16px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
}

.theme-bar-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.method-subcontrols {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.control-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-green);
  background: rgba(144, 216, 131, 0.1);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(144, 216, 131, 0.25);
}

.control-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-item label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.color-picker-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.color-dot:hover {
  transform: scale(1.15);
}

.color-dot.active {
  border-color: #FFFFFF;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.theme-pill-selector {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
}

.theme-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 4px 6px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.theme-pill:hover {
  transform: translateY(-2px);
}

.theme-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: block;
  border: 2px solid transparent;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: all var(--transition-fast);
}

.theme-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
  transition: color var(--transition-fast);
}

.theme-pill:hover .theme-name {
  color: var(--text-secondary);
}

.theme-pill.active .theme-swatch {
  transform: scale(1.12);
  border-color: #FFFFFF !important;
  box-shadow: 0 0 0 2px var(--bg-surface, #1e1e1e), 0 0 0 4px var(--accent-green), 0 0 12px rgba(144, 216, 131, 0.4);
}

.theme-pill.active .theme-name {
  color: var(--accent-green);
  font-weight: 700;
}

body.theme-cream .theme-pill.active .theme-swatch,
body.theme-sepia .theme-pill.active .theme-swatch,
body.theme-readers .theme-pill.active .theme-swatch,
body.theme-calmgreen .theme-pill.active .theme-swatch {
  border-color: #111111 !important;
  box-shadow: 0 0 0 2px #f4f4f4, 0 0 0 4px var(--accent-green);
}

body.theme-cream .theme-pill.active .theme-name,
body.theme-sepia .theme-pill.active .theme-name,
body.theme-readers .theme-pill.active .theme-name,
body.theme-calmgreen .theme-pill.active .theme-name {
  color: #111111;
}

/* Color Guide Zebra Color Swatches */
.zebra-color-selector {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.zebra-color-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 4px 6px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.zebra-color-btn:hover {
  transform: translateY(-2px);
}

.zebra-color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: all var(--transition-fast);
}

.zebra-color-swatch.swatch-loop {
  background: conic-gradient(from 45deg, #1976D2, #2E7D32, #F57C00, #D84315, #1976D2);
  border-color: rgba(255, 255, 255, 0.35);
}

.zebra-color-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
  transition: color var(--transition-fast);
}

.zebra-color-btn:hover .zebra-color-name {
  color: var(--text-secondary);
}

.zebra-color-btn.active .zebra-color-swatch {
  transform: scale(1.12);
  border-color: #FFFFFF !important;
  box-shadow: 0 0 0 2px var(--bg-surface, #1e1e1e), 0 0 0 4px var(--accent-green), 0 0 12px rgba(144, 216, 131, 0.4);
}

.zebra-color-btn.active .zebra-color-name {
  color: var(--accent-green);
  font-weight: 700;
}

body.theme-cream .zebra-color-btn.active .zebra-color-swatch,
body.theme-sepia .zebra-color-btn.active .zebra-color-swatch,
body.theme-readers .zebra-color-btn.active .zebra-color-swatch,
body.theme-calmgreen .zebra-color-btn.active .zebra-color-swatch {
  border-color: #111111 !important;
  box-shadow: 0 0 0 2px #f4f4f4, 0 0 0 4px var(--accent-green);
}

body.theme-cream .zebra-color-btn.active .zebra-color-name,
body.theme-sepia .zebra-color-btn.active .zebra-color-name,
body.theme-readers .zebra-color-btn.active .zebra-color-name,
body.theme-calmgreen .zebra-color-btn.active .zebra-color-name {
  color: #111111;
}

body.theme-bedtime .zebra-color-btn.active .zebra-color-swatch {
  border-color: #FFAA4C !important;
  box-shadow: 0 0 0 2px #1e1e1e, 0 0 0 4px #FFAA4C, 0 0 12px rgba(255, 170, 76, 0.4);
}

body.theme-bedtime .zebra-color-btn.active .zebra-color-name {
  color: #FFAA4C;
}

/* Range Slider */
.slider-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slider-group input[type="range"] {
  accent-color: var(--accent-green);
  cursor: pointer;
  width: 130px;
}

/* Canvas Display Screen */
.canvas-display-wrapper {
  background-color: var(--canvas-bg, #131313);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  min-height: 220px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  transition: background-color var(--transition-smooth);
}

.canvas-reading-viewport {
  font-family: var(--font-reading);
  font-size: 1.5rem; /* ~24pt equivalent */
  line-height: 2.1;   /* Scientific Spacious 2.1x */
  color: var(--canvas-text, #FFFFFF);
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

/* Prefix Bold Span Styling */
.prefix-bold {
  font-weight: 800;
  color: var(--canvas-anchor, #90D883);
}

.method-feature-card .prefix-bold {
  color: var(--accent-green, #90D883);
  font-weight: 800;
}

/* Spotlight Reading Ruler Styling */
.ruler-overlay-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.ruler-focus-window {
  position: absolute;
  left: 0;
  right: 0;
  height: 52px;
  border-top: 2px solid var(--accent-green);
  border-bottom: 2px solid var(--accent-green);
  background: rgba(144, 216, 131, 0.08);
  box-shadow: 0 0 30px rgba(144, 216, 131, 0.15);
  pointer-events: none;
  transition: top 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ruler-blur-scrim-top,
.ruler-blur-scrim-bottom {
  position: absolute;
  left: 0;
  right: 0;
  background: rgba(19, 19, 19, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: height 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ruler-blur-scrim-top {
  top: 0;
}

.ruler-blur-scrim-bottom {
  bottom: 0;
}

/* Ruler Line Item */
.ruler-line-item {
  font-family: var(--font-reading);
  font-weight: 700 !important;
  line-height: 2.1;
}

/* Color Guide Zebra Lines */
.color-guide-container {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.color-guide-line {
  display: block;
  font-family: var(--font-reading);
  font-weight: 700 !important;
  line-height: 1.6;
  padding: 8px 14px;
  margin: 0 !important;
  border-radius: 0 !important;
  transition: background-color var(--transition-fast);
}

.color-guide-line.tint-blue {
  background-color: rgba(100, 181, 246, var(--guide-opacity, 0.5));
}
.color-guide-line.tint-green {
  background-color: rgba(129, 199, 132, var(--guide-opacity, 0.5));
}
.color-guide-line.tint-amber {
  background-color: rgba(255, 213, 79, var(--guide-opacity, 0.5));
}
.color-guide-line.tint-coral {
  background-color: rgba(255, 138, 128, var(--guide-opacity, 0.5));
}

/* RSVP Center Mode with In-Preview Controls */
.rsvp-stage {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  position: relative;
  user-select: none;
  padding: 8px 4px;
  color: var(--canvas-text, #FFFFFF);
}

.rsvp-inview-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.theme-cream .rsvp-inview-topbar,
body.theme-sepia .rsvp-inview-topbar,
body.theme-readers .rsvp-inview-topbar,
body.theme-calmgreen .rsvp-inview-topbar {
  border-bottom-color: rgba(0, 0, 0, 0.12);
}

body.theme-bedtime .rsvp-inview-topbar {
  border-bottom-color: rgba(221, 167, 123, 0.18);
}

.rsvp-inview-themes,
.rsvp-inview-colors {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rsvp-inview-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--canvas-text, #FFFFFF);
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rsvp-inview-themes .theme-name {
  color: var(--canvas-text, #FFFFFF);
  opacity: 0.75;
}

.rsvp-inview-themes .theme-pill:hover .theme-name {
  opacity: 1;
}

.rsvp-word-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 12px;
  min-height: 150px;
}

/* Super Bold RSVP Typography */
.rsvp-word-display {
  font-family: var(--font-reading);
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--canvas-text, #FFFFFF);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.15;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  -webkit-text-stroke: 1.3px currentColor;
  paint-order: stroke fill;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  max-width: 100%;
}

.rsvp-word-display .rsvp-prefix {
  font-weight: 900;
  display: inline-block;
  -webkit-text-stroke: 1.3px currentColor;
}

.rsvp-word-display .rsvp-rest {
  font-weight: 900;
  color: var(--canvas-text, #FFFFFF);
  display: inline-block;
  -webkit-text-stroke: 1.3px currentColor;
}

body.theme-cream .rsvp-word-display,
body.theme-sepia .rsvp-word-display,
body.theme-readers .rsvp-word-display,
body.theme-calmgreen .rsvp-word-display {
  text-shadow: none;
}

.rsvp-counter-badge {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--canvas-text, #FFFFFF);
  opacity: 0.85;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.rsvp-inview-bottombar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.theme-cream .rsvp-inview-bottombar,
body.theme-sepia .rsvp-inview-bottombar,
body.theme-readers .rsvp-inview-bottombar,
body.theme-calmgreen .rsvp-inview-bottombar {
  border-top-color: rgba(0, 0, 0, 0.12);
}

body.theme-bedtime .rsvp-inview-bottombar {
  border-top-color: rgba(221, 167, 123, 0.18);
}

.rsvp-playback-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.rsvp-speed-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--canvas-text, #FFFFFF);
}

.rsvp-speed-control label {
  color: var(--canvas-text, #FFFFFF);
  opacity: 0.85;
}

.rsvp-speed-control input[type="range"] {
  accent-color: var(--accent-green);
  cursor: pointer;
  width: 120px;
}

.rsvp-speed-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--canvas-text, #FFFFFF);
  min-width: 65px;
}

.rsvp-max-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-green);
  background: rgba(144, 216, 131, 0.12);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(144, 216, 131, 0.25);
}

.rsvp-stage .btn-outline {
  color: var(--canvas-text, #FFFFFF);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

.rsvp-stage .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

/* Light Theme Overrides for RSVP Controls & Labels */
body.theme-cream .rsvp-stage .btn-outline,
body.theme-sepia .rsvp-stage .btn-outline,
body.theme-readers .rsvp-stage .btn-outline,
body.theme-calmgreen .rsvp-stage .btn-outline {
  color: #111111;
  border-color: rgba(0, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.05);
}

body.theme-cream .rsvp-stage .btn-outline:hover,
body.theme-sepia .rsvp-stage .btn-outline:hover,
body.theme-readers .rsvp-stage .btn-outline:hover,
body.theme-calmgreen .rsvp-stage .btn-outline:hover {
  background: rgba(0, 0, 0, 0.12);
  color: #000000;
}

body.theme-cream .rsvp-max-tag,
body.theme-sepia .rsvp-max-tag,
body.theme-calmgreen .rsvp-max-tag {
  color: #1B5E20;
  background: rgba(27, 94, 32, 0.12);
  border-color: rgba(27, 94, 32, 0.3);
}

body.theme-readers .rsvp-max-tag {
  color: #222222;
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.25);
}

body.theme-cream .rsvp-speed-control input[type="range"],
body.theme-sepia .rsvp-speed-control input[type="range"],
body.theme-calmgreen .rsvp-speed-control input[type="range"] {
  accent-color: #1B5E20;
}

body.theme-readers .rsvp-speed-control input[type="range"] {
  accent-color: #333333;
}

body.theme-cream .rsvp-stage #rsvp-stage-play-btn,
body.theme-sepia .rsvp-stage #rsvp-stage-play-btn,
body.theme-calmgreen .rsvp-stage #rsvp-stage-play-btn {
  background: #1B5E20;
  color: #FFFFFF;
}

body.theme-readers .rsvp-stage #rsvp-stage-play-btn {
  background: #222222;
  color: #FFFFFF;
}

body.theme-cream .rsvp-stage .theme-pill.active .theme-name,
body.theme-sepia .rsvp-stage .theme-pill.active .theme-name,
body.theme-readers .rsvp-stage .theme-pill.active .theme-name,
body.theme-calmgreen .rsvp-stage .theme-pill.active .theme-name {
  color: #111111 !important;
  font-weight: 700;
}

body.theme-cream .rsvp-stage .theme-pill.active .theme-swatch,
body.theme-sepia .rsvp-stage .theme-pill.active .theme-swatch,
body.theme-readers .rsvp-stage .theme-pill.active .theme-swatch,
body.theme-calmgreen .rsvp-stage .theme-pill.active .theme-swatch {
  border-color: #111111 !important;
  box-shadow: 0 0 0 2px var(--canvas-bg), 0 0 0 4px #111111 !important;
}

body.theme-cream .rsvp-stage .color-dot.active,
body.theme-sepia .rsvp-stage .color-dot.active,
body.theme-readers .rsvp-stage .color-dot.active,
body.theme-calmgreen .rsvp-stage .color-dot.active {
  border-color: #000000 !important;
  box-shadow: 0 0 0 2px var(--canvas-bg), 0 0 0 4px #000000 !important;
}

/* Bedtime Theme Overrides for RSVP Controls & Labels */
body.theme-bedtime .rsvp-stage .btn-outline {
  color: #DDA77B;
  border-color: rgba(221, 167, 123, 0.4);
  background: rgba(221, 167, 123, 0.08);
}

body.theme-bedtime .rsvp-stage .btn-outline:hover {
  background: rgba(221, 167, 123, 0.18);
  color: #FFAA4C;
}

body.theme-bedtime .rsvp-max-tag {
  color: #FFAA4C;
  background: rgba(255, 170, 76, 0.15);
  border-color: rgba(255, 170, 76, 0.35);
}

body.theme-bedtime .rsvp-speed-control input[type="range"] {
  accent-color: #FFAA4C;
}

body.theme-bedtime .rsvp-stage #rsvp-stage-play-btn {
  background: #FFAA4C;
  color: #110E0C;
}

body.theme-bedtime .rsvp-stage .theme-pill.active .theme-name {
  color: #FFAA4C !important;
  font-weight: 700;
}

body.theme-bedtime .rsvp-stage .theme-pill.active .theme-swatch {
  border-color: #FFAA4C !important;
  box-shadow: 0 0 0 2px var(--canvas-bg), 0 0 0 4px #FFAA4C !important;
}

body.theme-bedtime .rsvp-stage .color-dot.active {
  border-color: #FFAA4C !important;
  box-shadow: 0 0 0 2px var(--canvas-bg), 0 0 0 4px #FFAA4C !important;
}

/* Charcoal Theme Active State in RSVP */
body.theme-charcoal .rsvp-stage .theme-pill.active .theme-name {
  color: #90D883 !important;
  font-weight: 700;
}

body.theme-charcoal .rsvp-stage .theme-pill.active .theme-swatch {
  border-color: #FFFFFF !important;
  box-shadow: 0 0 0 2px var(--canvas-bg), 0 0 0 4px #90D883 !important;
}

body.theme-charcoal .rsvp-stage .color-dot.active {
  border-color: #FFFFFF !important;
  box-shadow: 0 0 0 2px var(--canvas-bg), 0 0 0 4px #90D883 !important;
}

/* Sandbox Upsell Banner */
.sandbox-upsell-banner {
  background: linear-gradient(135deg, rgba(144, 216, 131, 0.08), rgba(100, 181, 246, 0.05));
  border: 1px solid rgba(144, 216, 131, 0.25);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.upsell-text {
  display: flex;
  align-items: center;
  gap: 14px;
}

.upsell-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(144, 216, 131, 0.15);
  border-radius: 50%;
  color: var(--accent-green);
  flex-shrink: 0;
}

.upsell-text h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.upsell-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.upsell-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Screenshots Showcase */
.showcase-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-surface) 100%);
}

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 50px;
}

.section-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-green);
  margin-bottom: 12px;
  display: inline-block;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-head p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.devices-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.device-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.device-card img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.device-card h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.device-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Methods Deep Dive Cards */
.methods-deepdive-section {
  padding: 80px 0;
}

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

.method-feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all var(--transition-fast);
}

.method-feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(144, 216, 131, 0.1);
  border: 1px solid rgba(144, 216, 131, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  margin-bottom: 20px;
}

.method-feature-card h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.method-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.method-tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.method-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-green);
  background: rgba(144, 216, 131, 0.08);
  border: 1px solid rgba(144, 216, 131, 0.2);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Comparison Table */
.comparison-section {
  padding: 80px 0;
  background: var(--bg-surface);
}

.comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.92rem;
}

.comparison-table th {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.comparison-table th.highlight-col,
.comparison-table td.highlight-col {
  background: rgba(144, 216, 131, 0.06);
  border-left: 1px solid rgba(144, 216, 131, 0.25);
  border-right: 1px solid rgba(144, 216, 131, 0.25);
}

.comparison-table th.highlight-col {
  color: var(--accent-green);
}

.check-yes {
  color: var(--accent-green);
  font-weight: bold;
}

.check-no {
  color: #ff5252;
  font-weight: bold;
}

/* Executive Press Brief & Collapsible Details */
.press-brief-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.press-brief-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  border-left: 3px solid var(--accent-green);
}

.press-brief-card h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.press-brief-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.press-details-toggle {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.press-details-toggle summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-green);
  outline: none;
}

.press-details-toggle summary::-webkit-details-marker {
  display: none;
}

.press-details-toggle[open] {
  background: var(--bg-primary);
  border-color: var(--accent-green);
}

.press-details-content {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

/* Site Fixation Toggle */
.fixation-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(144, 216, 131, 0.12);
  border: 1px solid var(--accent-green);
  border-radius: 999px;
  color: var(--accent-green);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.fixation-toggle-btn:hover {
  background: var(--accent-green);
  color: #0c1a0a;
}

.fixation-toggle-btn.active {
  background: var(--accent-green);
  color: #0c1a0a;
  box-shadow: 0 0 15px var(--accent-green-glow);
}

/* Scannable FAQ Bullets */
.faq-takeaway {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: block;
  font-size: 0.98rem;
}

.faq-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq-bullets li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.faq-bullets li::before {
  content: "•";
  position: absolute;
  left: 6px;
  color: var(--accent-green);
  font-weight: bold;
}

/* Press Release Section */
.press-release-section {
  padding: 80px 0;
}

.press-article {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.press-meta-header {
  border-bottom: 2px solid var(--border-strong);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.press-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(221, 167, 123, 0.15);
  border: 1px solid rgba(221, 167, 123, 0.4);
  color: var(--accent-amber);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.press-headline {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 14px;
}

.press-dateline {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.press-body {
  font-family: var(--font-reading);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.press-body p {
  margin-bottom: 20px;
}

.press-body h3 {
  font-family: var(--font-main);
  font-size: 1.35rem;
  color: var(--text-primary);
  margin: 32px 0 14px;
}

.press-quote {
  border-left: 3px solid var(--accent-green);
  padding: 16px 20px;
  background: rgba(144, 216, 131, 0.05);
  margin: 24px 0;
  font-style: italic;
  color: var(--text-primary);
}

.press-contact-card {
  margin-top: 36px;
  padding: 20px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background: var(--bg-surface);
}

.faq-grid {
  display: grid;
  gap: 16px;
  max-width: 850px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-strong);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--accent-green);
  transition: transform var(--transition-fast);
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  transition: all var(--transition-smooth);
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding-bottom: 20px;
}

/* Bottom CTA Banner */
.bottom-cta-section {
  padding: 90px 0;
  text-align: center;
  position: relative;
}

.bottom-cta-box {
  background: linear-gradient(135deg, #1b1b1c 0%, #172415 100%);
  border: 1px solid rgba(144, 216, 131, 0.4);
  border-radius: var(--radius-lg);
  padding: 60px 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  max-width: 900px;
  margin: 0 auto;
}

.bottom-cta-box h2 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  color: var(--text-primary);
  margin-bottom: 16px;
}

.bottom-cta-box p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 36px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-primary);
  padding: 40px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-green);
}

.footer-legal-section {
  width: 100%;
  padding-top: 20px;
  margin-top: 10px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.82rem;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.footer-legal-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
  color: var(--accent-green);
  text-decoration: underline;
}

.footer-legal-links .sep {
  color: var(--text-muted);
  opacity: 0.5;
}

.footer-legal-copy {
  color: var(--text-muted);
}

/* Responsive Breakpoints & Mobile Optimization */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .devices-showcase-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .press-article {
    padding: 28px 20px;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subhead {
    font-size: 1.05rem;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 10px 0;
  }
  .brand-badge {
    display: none; /* Conserve header space on small phones */
  }
  .brand-logo {
    height: 30px;
    width: auto;
    max-width: 30px;
    object-fit: contain;
  }
  .brand-name {
    font-size: 1.2rem;
  }
  .nav-cta-group .btn-store {
    padding: 6px 10px;
  }
  .nav-cta-group .btn-store svg {
    width: 18px;
    height: 18px;
  }
  .nav-cta-group .btn-store-text .caption {
    display: none;
  }
  .nav-cta-group .btn-store-text .store-name {
    font-size: 0.8rem;
  }
  
  .hero-section {
    padding: 48px 0 36px;
  }
  .hero-title {
    font-size: 2.1rem;
    letter-spacing: -0.8px;
  }
  .hero-meta-badges {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  .hero-cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-buttons .btn,
  .hero-cta-buttons .btn-store {
    width: 100%;
    justify-content: center;
  }

  /* Sandbox Mobile Optimization */
  .sandbox-section {
    padding: 30px 0 50px;
  }
  .sandbox-card {
    padding: 18px 14px;
    border-radius: var(--radius-md);
  }
  .sandbox-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .char-counter-badge {
    align-self: flex-start;
  }
  .method-tabs {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .method-tab-btn {
    padding: 10px 12px;
  }
  .method-subcontrols {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px;
  }
  .control-item {
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
  }
  .theme-pill-selector {
    gap: 8px;
    justify-content: flex-start;
  }
  .theme-pill {
    padding: 2px 4px;
  }
  .theme-swatch {
    width: 24px;
    height: 24px;
  }
  .theme-name {
    font-size: 0.68rem;
  }
  .zebra-color-selector {
    gap: 8px;
    justify-content: flex-start;
  }
  .zebra-color-btn {
    padding: 2px 4px;
  }
  .zebra-color-swatch {
    width: 24px;
    height: 24px;
  }
  .zebra-color-name {
    font-size: 0.68rem;
  }
  .slider-group input[type="range"] {
    width: 100px;
  }
  .canvas-display-wrapper {
    padding: 20px 14px;
    min-height: 180px;
  }
  .canvas-reading-viewport {
    font-size: 1.12rem;
    line-height: 1.65;
    word-break: normal;
    overflow-wrap: normal;
  }
  .ruler-line-item {
    font-size: 0.98rem;
    line-height: 1.45;
    padding: 7px 10px !important;
    margin: 4px 0 !important;
    white-space: normal;
    word-break: normal;
  }
  .color-guide-line {
    font-size: 0.98rem;
    line-height: 1.45;
    padding: 7px 10px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    white-space: normal;
    word-break: normal;
  }
  .rsvp-word-wrapper {
    padding: 24px 8px;
    min-height: 120px;
    max-width: 100%;
    overflow: hidden;
  }
  .rsvp-word-display {
    font-size: clamp(1.6rem, 7vw, 2.5rem);
    text-align: center;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    max-width: 100%;
  }
  .sandbox-upsell-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }
  .upsell-actions {
    width: 100%;
  }
  .upsell-actions .btn {
    width: 100%;
  }

  /* Comparison Table Mobile */
  .comparison-section {
    padding: 50px 0;
  }
  .comparison-table-wrap {
    -webkit-overflow-scrolling: touch;
  }
  .comparison-table th,
  .comparison-table td {
    padding: 12px 14px;
    font-size: 0.82rem;
  }

  /* Press Release & FAQ */
  .press-release-section,
  .faq-section {
    padding: 50px 0;
  }
  .press-headline {
    font-size: 1.45rem;
  }
  .press-body {
    font-size: 0.95rem;
  }
  .faq-question {
    padding: 16px;
    font-size: 0.95rem;
  }
  .faq-answer {
    font-size: 0.88rem;
    padding: 0 16px;
  }

  /* Footer */
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 360px) {
  .nav-cta-group .btn-store:nth-child(2) {
    display: none; /* Show primary store on ultra-narrow 320px screens */
  }
  .brand-name {
    font-size: 1.05rem;
  }
}

