/* ===================================================================
   DESIGN TOKENS — Warm & Organic
   =================================================================== */

:root {
  /* Type scale */
  --text-hero: 3rem;
  --text-section: 1.75rem;
  --text-body-lg: 1.125rem;
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-xs: 0.75rem;
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Font stacks */
  --font-heading: Georgia, 'Times New Roman', 'Noto Serif', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --duration-fast: 150ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* Colors — Light (Warm Cream) */
  --bg-primary: #FAF6F1;
  --bg-secondary: #FFFFFF;
  --bg-inset: #E8E1D5;
  --text-primary: #2D2A26;
  --text-secondary: #6B6560;
  --text-tertiary: #A39B8B;
  --border-color: #E8E0D4;
  --accent-primary: #D4654A;
  --accent-primary-rgb: 212, 101, 74;
  --accent-secondary: #E8A849;
  --accent-success: #6B9E7E;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(45, 42, 38, 0.06);
  --shadow-md: 0 4px 16px rgba(45, 42, 38, 0.08);
  --shadow-lg: 0 12px 40px rgba(45, 42, 38, 0.12);
  --shadow-demo: 0 8px 40px rgba(45, 42, 38, 0.10), 0 2px 8px rgba(45, 42, 38, 0.06);

  /* Neumorphic shadows — light mode */
  --neu-raised: 6px 6px 14px rgba(180, 170, 155, 0.45), -6px -6px 14px rgba(255, 255, 255, 0.8);
  --neu-raised-sm: 3px 3px 8px rgba(180, 170, 155, 0.35), -3px -3px 8px rgba(255, 255, 255, 0.7);
  --neu-inset: inset 3px 3px 8px rgba(180, 170, 155, 0.4), inset -3px -3px 8px rgba(255, 255, 255, 0.7);
  --neu-btn: 4px 4px 10px rgba(180, 170, 155, 0.4), -4px -4px 10px rgba(255, 255, 255, 0.75);
  --neu-btn-pressed: inset 2px 2px 5px rgba(180, 170, 155, 0.4), inset -2px -2px 5px rgba(255, 255, 255, 0.7);

  /* Phone mockup */
  --phone-bg: #1C1917;
  --phone-screen-bg: #292524;
  --phone-text: #F5F0EB;
  --phone-text-dim: #8A8078;
  --phone-border: #3D3632;
}

html.dark,
body.dark,
:root[data-theme="dark"] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --bg-inset: #1f1f1f;
  --text-primary: #e5e7eb;
  --text-secondary: #9ca3af;
  --text-tertiary: #6b7280;
  --border-color: #404040;
  --accent-primary: #D4654A;
  --accent-primary-rgb: 212, 101, 74;
  --accent-secondary: #E8A849;
  --accent-success: #10b981;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
  --shadow-demo: 0 8px 40px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);

  /* Neumorphic shadows — dark mode */
  --neu-raised: 6px 6px 14px rgba(0, 0, 0, 0.6), -6px -6px 14px rgba(60, 60, 60, 0.25);
  --neu-raised-sm: 3px 3px 8px rgba(0, 0, 0, 0.5), -3px -3px 8px rgba(60, 60, 60, 0.2);
  --neu-inset: inset 3px 3px 8px rgba(0, 0, 0, 0.5), inset -3px -3px 8px rgba(60, 60, 60, 0.15);
  --neu-btn: 4px 4px 10px rgba(0, 0, 0, 0.5), -4px -4px 10px rgba(60, 60, 60, 0.2);
  --neu-btn-pressed: inset 2px 2px 5px rgba(0, 0, 0, 0.5), inset -2px -2px 5px rgba(60, 60, 60, 0.15);

  --phone-bg: #0f0f0f;
  --phone-screen-bg: #1a1a1a;
  --phone-text: #e5e7eb;
  --phone-text-dim: #6b7280;
  --phone-border: #2d2d2d;
}

/* Chrome autofill override — match theme backgrounds */
html.dark input:-webkit-autofill,
html.dark input:-webkit-autofill:hover,
html.dark input:-webkit-autofill:focus,
html.dark select:-webkit-autofill,
:root[data-theme="dark"] input:-webkit-autofill,
:root[data-theme="dark"] input:-webkit-autofill:hover,
:root[data-theme="dark"] input:-webkit-autofill:focus,
:root[data-theme="dark"] select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px #2d2d2d inset !important;
  -webkit-text-fill-color: #e5e7eb !important;
  border-color: #404040 !important;
  caret-color: #e5e7eb;
}

/* ===================================================================
   RESET AND BASE STYLES
   =================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: var(--leading-normal);
  transition: background-color var(--duration-slow) var(--ease-smooth),
              color var(--duration-slow) var(--ease-smooth);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ===================================================================
   HEADER AND NAVIGATION
   =================================================================== */

.header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color var(--duration-slow) var(--ease-smooth),
              border-color var(--duration-slow) var(--ease-smooth);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: transform var(--duration-normal) var(--ease-smooth);
}

.logo:hover .logo-img {
  transform: scale(1.35);
}

.beta-badge {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.4;
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.nav-link,
.nav-btn-support,
.nav-btn-guide {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: var(--weight-medium);
  background: none;
  border: none;
  cursor: pointer;
  font-size: var(--text-body);
  padding: var(--space-xs) 0;
  transition: color var(--duration-normal) var(--ease-smooth);
  box-shadow: none;
  border-radius: 0;
}

.nav-link:hover,
.nav-btn-support:hover,
.nav-btn-guide:hover {
  color: var(--accent-primary);
}

.theme-toggle-btn {
  background: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: border-color var(--duration-normal) var(--ease-smooth),
              color var(--duration-normal) var(--ease-smooth),
              transform var(--duration-normal) var(--ease-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: var(--text-body);
}

.theme-toggle-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: rotate(15deg);
}

.theme-toggle-btn i {
  transition: transform var(--duration-slow) var(--ease-smooth);
}

.sign-in-btn {
  background: var(--accent-primary);
  color: white;
  padding: 10px var(--space-lg);
  border: none;
  border-radius: var(--radius-full);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  font-size: var(--text-small);
  box-shadow: var(--neu-btn);
  transition: box-shadow var(--duration-normal) var(--ease-smooth),
              transform var(--duration-normal) var(--ease-smooth);
}

.sign-in-btn:hover {
  box-shadow: var(--neu-raised);
  transform: translateY(-1px);
}

.sign-in-btn:active {
  box-shadow: var(--neu-btn-pressed);
  transform: translateY(0);
}

/* ===================================================================
   HERO SECTION — Split Layout
   =================================================================== */

.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-4xl) var(--space-xl);
  background: var(--bg-primary);
  transition: background-color var(--duration-slow) var(--ease-smooth);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  max-width: 1100px;
  width: 100%;
}

.hero-copy {
  text-align: left;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: var(--weight-bold);
  line-height: 1.2;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: var(--text-body-lg);
  color: var(--text-secondary);
  max-width: 480px;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-xl);
}

/* Hero Actions */
.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.btn-coral {
  background: var(--accent-primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 14px 32px;
  font-weight: var(--weight-semibold);
  cursor: pointer;
  font-size: var(--text-body);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  transition: background var(--duration-normal) var(--ease-smooth),
              transform var(--duration-normal) var(--ease-smooth);
}

.btn-coral:hover {
  background: #C25A42;
  transform: translateY(-2px);
}

/* Legacy class aliases for existing data-action bindings */
.btn-primary {
  background: var(--accent-primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 14px 32px;
  font-weight: var(--weight-semibold);
  cursor: pointer;
  font-size: var(--text-body);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  box-shadow: var(--neu-btn);
  transition: box-shadow var(--duration-normal) var(--ease-smooth),
              transform var(--duration-normal) var(--ease-smooth);
}

.btn-primary:hover {
  box-shadow: var(--neu-raised);
  transform: translateY(-2px);
}

.btn-primary:active {
  box-shadow: var(--neu-btn-pressed);
  transform: translateY(0);
}

.btn-outline,
.btn-secondary {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: none;
  border-radius: var(--radius-full);
  padding: 14px 30px;
  font-weight: var(--weight-semibold);
  cursor: pointer;
  font-size: var(--text-body);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  box-shadow: var(--neu-btn);
  transition: box-shadow var(--duration-normal) var(--ease-smooth),
              color var(--duration-normal) var(--ease-smooth),
              transform var(--duration-normal) var(--ease-smooth);
}

.btn-outline:hover,
.btn-secondary:hover {
  color: var(--accent-primary);
  box-shadow: var(--neu-raised);
  transform: translateY(-1px);
}

.btn-outline:active,
.btn-secondary:active {
  box-shadow: var(--neu-btn-pressed);
  transform: translateY(0);
}

/* Create Account nav button */
.nav-btn-create-account {
  color: var(--accent-primary);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  background: none;
  border: none;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
}

/* ===================================================================
   PHONE MOCKUP — Shared Frame
   =================================================================== */

.hero-demo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 280px;
  height: 400px;
  background: var(--phone-bg);
  border-radius: 36px;
  padding: 12px;
  position: relative;
  box-shadow: 12px 12px 30px rgba(0, 0, 0, 0.4), -8px -8px 24px rgba(80, 72, 64, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform var(--duration-slow) var(--ease-smooth),
              box-shadow var(--duration-slow) var(--ease-smooth);
}

.phone-mockup:hover {
  transform: perspective(1000px) rotateY(0deg);
  box-shadow: 16px 16px 40px rgba(0, 0, 0, 0.45), -10px -10px 30px rgba(80, 72, 64, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.phone-notch {
  width: 100px;
  height: 28px;
  background: var(--phone-bg);
  border-radius: 0 0 16px 16px;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--phone-screen-bg);
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 36px 16px 10px;
  border-bottom: 1px solid var(--phone-border);
}

.phone-header-title {
  font-size: 0.7rem;
  font-weight: var(--weight-semibold);
  color: var(--phone-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-header-voice {
  font-size: 0.65rem;
  color: var(--accent-primary);
  font-weight: var(--weight-medium);
  white-space: nowrap;
}

/* Phone text content */
.phone-text-content {
  padding: 14px 16px;
  overflow: hidden;
}

.phone-text-content--large {
  padding: 18px 16px;
}

.phone-text-paragraph {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  line-height: 1.9;
  color: var(--phone-text-dim);
}

.phone-text-paragraph--large {
  font-size: 0.85rem;
  line-height: 2;
}

/* Word highlight animation */
.hw {
  display: inline;
  padding: 2px 1px;
  border-radius: 3px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

/* 20 words, ~0.4s per word = 8s active, 2s pause = 10s total */
.hw-1  { animation: word-glow 10s ease-in-out 0.0s infinite; }
.hw-2  { animation: word-glow 10s ease-in-out 0.4s infinite; }
.hw-3  { animation: word-glow 10s ease-in-out 0.8s infinite; }
.hw-4  { animation: word-glow 10s ease-in-out 1.2s infinite; }
.hw-5  { animation: word-glow 10s ease-in-out 1.6s infinite; }
.hw-6  { animation: word-glow 10s ease-in-out 2.0s infinite; }
.hw-7  { animation: word-glow 10s ease-in-out 2.4s infinite; }
.hw-8  { animation: word-glow 10s ease-in-out 2.8s infinite; }
.hw-9  { animation: word-glow 10s ease-in-out 3.2s infinite; }
.hw-10 { animation: word-glow 10s ease-in-out 3.6s infinite; }
.hw-11 { animation: word-glow 10s ease-in-out 4.0s infinite; }
.hw-12 { animation: word-glow 10s ease-in-out 4.4s infinite; }
.hw-13 { animation: word-glow 10s ease-in-out 4.8s infinite; }
.hw-14 { animation: word-glow 10s ease-in-out 5.2s infinite; }
.hw-15 { animation: word-glow 10s ease-in-out 5.6s infinite; }
.hw-16 { animation: word-glow 10s ease-in-out 6.0s infinite; }
.hw-17 { animation: word-glow 10s ease-in-out 6.4s infinite; }
.hw-18 { animation: word-glow 10s ease-in-out 6.8s infinite; }
.hw-19 { animation: word-glow 10s ease-in-out 7.2s infinite; }
.hw-20 { animation: word-glow 10s ease-in-out 7.6s infinite; }
.hw-21 { animation: word-glow 10s ease-in-out 8.0s infinite; }

@keyframes word-glow {
  0%, 2% { background: transparent; color: var(--phone-text-dim); }
  4%     { background: rgba(var(--accent-primary-rgb), 0.3); color: var(--phone-text); }
  6%, 100% { background: transparent; color: var(--phone-text-dim); }
}

/* Phone playback controls */
.phone-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 8px 16px;
}

.phone-ctrl {
  background: none;
  border: none;
  color: var(--phone-text-dim);
  font-size: 0.75rem;
  cursor: default;
  padding: 6px;
}

.phone-ctrl--play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

/* Phone progress bar */
.phone-progress {
  padding: 8px 16px 6px;
}

.phone-progress-bar {
  height: 4px;
  background: var(--phone-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.phone-progress-fill {
  height: 100%;
  background: var(--accent-primary);
  border-radius: var(--radius-full);
  animation: phone-progress-anim 10s linear infinite;
}

.phone-progress-fill--slow {
  animation: phone-progress-anim 10s linear infinite;
}

@keyframes phone-progress-anim {
  0% { width: 0%; }
  80% { width: 100%; }
  80.1%, 100% { width: 0%; }
}

.phone-progress-time {
  font-size: 0.6rem;
  color: var(--phone-text-dim);
  text-align: right;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

/* Phone language pills */
.phone-lang-pills {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 6px 16px 14px;
}

/* ===================================================================
   FEATURE SECTIONS — Alternating Layout
   =================================================================== */

.feature-section {
  padding: var(--space-4xl) var(--space-xl);
  background: var(--bg-primary);
  transition: background-color var(--duration-slow) var(--ease-smooth);
}

.feature-section--alt {
  background: var(--bg-secondary);
}

.feature-section--alt .feature-copy {
  background: var(--bg-secondary);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-grid--reverse {
  direction: rtl;
}

.feature-grid--reverse > * {
  direction: ltr;
}

.feature-copy {
  text-align: left;
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-lg);
  box-shadow: var(--neu-raised);
}

.feature-title {
  font-family: var(--font-heading);
  font-size: var(--text-section);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: var(--text-body-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-lg);
  max-width: 440px;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: var(--space-sm) 0;
  color: var(--text-secondary);
  font-size: var(--text-small);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.feature-list li i {
  color: var(--accent-success);
  font-size: var(--text-xs);
  flex-shrink: 0;
}

.feature-phone {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===================================================================
   VOICE SWITCH DEMO
   =================================================================== */

.voice-switch-demo {
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 16px;
}

.voice-current {
  text-align: center;
  padding: 12px 0;
}

.voice-current-name {
  height: 36px;
  overflow: hidden;
  position: relative;
}

.voice-name-cycle {
  display: block;
  position: relative;
  height: 36px;
}

.voice-name-item {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: var(--weight-bold);
  color: var(--phone-text);
  opacity: 0;
  transform: translateY(8px);
}

/* 12s total: 4 voices x 3s each */
.voice-name-item--1 { animation: voice-fade 12s ease-in-out 0s infinite; }
.voice-name-item--2 { animation: voice-fade 12s ease-in-out 3s infinite; }
.voice-name-item--3 { animation: voice-fade 12s ease-in-out 6s infinite; }
.voice-name-item--4 { animation: voice-fade 12s ease-in-out 9s infinite; }

@keyframes voice-fade {
  0%, 4%   { opacity: 0; transform: translateY(8px); }
  8%, 20%  { opacity: 1; transform: translateY(0); }
  25%      { opacity: 0; transform: translateY(-8px); }
  100%     { opacity: 0; transform: translateY(8px); }
}

.voice-current-lang {
  height: 20px;
  overflow: hidden;
  position: relative;
  margin-top: 4px;
}

.voice-lang-cycle {
  display: block;
  position: relative;
  height: 20px;
}

.voice-lang-item {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  font-size: 0.7rem;
  color: var(--phone-text-dim);
  opacity: 0;
}

.voice-lang-item--1 { animation: voice-fade 12s ease-in-out 0s infinite; }
.voice-lang-item--2 { animation: voice-fade 12s ease-in-out 3s infinite; }
.voice-lang-item--3 { animation: voice-fade 12s ease-in-out 6s infinite; }
.voice-lang-item--4 { animation: voice-fade 12s ease-in-out 9s infinite; }

/* Equalizer bars */
.voice-equalizer {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 40px;
  padding: 0 24px;
}

.eq-bar {
  width: 6px;
  border-radius: 3px;
  background: var(--accent-primary);
  opacity: 0.7;
}

.eq-bar--1 { animation: eq-bounce 1.2s ease-in-out 0.0s infinite alternate; }
.eq-bar--2 { animation: eq-bounce 0.9s ease-in-out 0.1s infinite alternate; }
.eq-bar--3 { animation: eq-bounce 1.4s ease-in-out 0.2s infinite alternate; }
.eq-bar--4 { animation: eq-bounce 0.8s ease-in-out 0.0s infinite alternate; }
.eq-bar--5 { animation: eq-bounce 1.1s ease-in-out 0.3s infinite alternate; }
.eq-bar--6 { animation: eq-bounce 1.3s ease-in-out 0.1s infinite alternate; }
.eq-bar--7 { animation: eq-bounce 1.0s ease-in-out 0.2s infinite alternate; }

@keyframes eq-bounce {
  0%   { height: 6px; }
  100% { height: 32px; }
}

/* Voice list */
.voice-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.voice-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--phone-text-dim);
  transition: background var(--duration-fast) var(--ease-smooth);
}

.voice-option--active {
  background: rgba(var(--accent-primary-rgb), 0.15);
  color: var(--phone-text);
}

.voice-option-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--phone-text-dim);
  flex-shrink: 0;
}

.voice-option--active .voice-option-dot {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.voice-option-lang {
  margin-left: auto;
  font-size: 0.6rem;
  font-weight: var(--weight-semibold);
  color: var(--phone-text-dim);
  letter-spacing: 0.05em;
}

/* ===================================================================
   TRANSLATION DEMO
   =================================================================== */

.translate-demo {
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  gap: 20px;
}

.translate-text-container {
  position: relative;
  min-height: 160px;
  flex: 1;
  display: flex;
  align-items: flex-start;
}

.translate-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--phone-text);
  opacity: 0;
  padding: 8px 0;
}

/* 16s total: 4 languages x 4s each */
.translate-text--1 { animation: translate-fade 16s ease-in-out 0s infinite; }
.translate-text--2 { animation: translate-fade 16s ease-in-out 4s infinite; }
.translate-text--3 { animation: translate-fade 16s ease-in-out 8s infinite; }
.translate-text--4 { animation: translate-fade 16s ease-in-out 12s infinite; }

@keyframes translate-fade {
  0%, 3%   { opacity: 0; transform: translateY(6px); }
  6%, 20%  { opacity: 1; transform: translateY(0); }
  25%      { opacity: 0; transform: translateY(-6px); }
  100%     { opacity: 0; }
}

/* Translation language pills */
.translate-lang-pills {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.tlang-pill {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.05em;
  color: var(--phone-text-dim);
  border: 1px solid var(--phone-border);
  background: transparent;
}

/* Sync pill active state with text: each pill "lights up" during its text phase */
.tlang-pill--1 { animation: pill-active 16s ease-in-out 0s infinite; }
.tlang-pill--2 { animation: pill-active 16s ease-in-out 4s infinite; }
.tlang-pill--3 { animation: pill-active 16s ease-in-out 8s infinite; }
.tlang-pill--4 { animation: pill-active 16s ease-in-out 12s infinite; }

@keyframes pill-active {
  0%, 3%   { border-color: var(--phone-border); color: var(--phone-text-dim); }
  6%, 20%  { border-color: var(--accent-primary); color: var(--accent-primary); }
  25%      { border-color: var(--phone-border); color: var(--phone-text-dim); }
  100%     { border-color: var(--phone-border); color: var(--phone-text-dim); }
}

/* ===================================================================
   HOW IT WORKS SECTION
   =================================================================== */

.hiw-section {
  padding: var(--space-4xl) var(--space-xl);
  background: var(--bg-primary);
  transition: background-color var(--duration-slow) var(--ease-smooth);
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-section);
  font-weight: var(--weight-bold);
  text-align: center;
  margin-bottom: var(--space-3xl);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.hiw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* Connecting dotted line between step circles — desktop only */
.hiw-grid::after {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.66% + 28px);
  right: calc(16.66% + 28px);
  height: 2px;
  border-top: 2px dashed var(--border-color);
  background: none;
  z-index: 0;
}

.hiw-step {
  text-align: center;
  position: relative;
  z-index: 1;
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-lg);
  box-shadow: var(--neu-raised);
}

.hiw-step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: var(--weight-bold);
  color: var(--accent-primary);
  background: var(--bg-primary);
  margin: 0 auto var(--space-lg);
  border: none;
  box-shadow: var(--neu-inset);
  transition: background-color var(--duration-slow) var(--ease-smooth);
}

.hiw-step-title {
  font-family: var(--font-heading);
  font-size: var(--text-body-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.hiw-step-desc {
  font-size: var(--text-small);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 260px;
  margin: 0 auto;
}

/* ===================================================================
   SUPPORT SECTION
   =================================================================== */

.support-section {
  padding: var(--space-4xl) var(--space-xl);
  background: var(--bg-primary);
  transition: background-color var(--duration-slow) var(--ease-smooth);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  max-width: 900px;
  margin: 0 auto;
}

.support-card {
  background: var(--bg-primary);
  border: none;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--neu-raised);
  transition: transform var(--duration-normal) var(--ease-smooth),
              box-shadow var(--duration-normal) var(--ease-smooth);
}

.support-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--neu-raised), 0 8px 24px rgba(var(--accent-primary-rgb), 0.08);
}

.support-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: var(--accent-primary);
  font-size: 1.25rem;
  box-shadow: var(--neu-inset);
}

.support-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-body-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.support-card p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  font-size: var(--text-small);
  line-height: var(--leading-relaxed);
}

.support-btn {
  background: var(--accent-primary);
  color: white;
  padding: var(--space-sm) var(--space-lg);
  border: none;
  border-radius: var(--radius-full);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-small);
  box-shadow: var(--neu-btn);
  transition: box-shadow var(--duration-normal) var(--ease-smooth),
              transform var(--duration-normal) var(--ease-smooth);
}

.support-btn:hover {
  box-shadow: var(--neu-raised);
  transform: translateY(-1px);
}

.support-btn:active {
  box-shadow: var(--neu-btn-pressed);
  transform: translateY(0);
}

/* ===================================================================
   FOOTER
   =================================================================== */

.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: var(--space-xl) 0;
  text-align: center;
  color: var(--text-tertiary);
  font-size: var(--text-small);
  transition: background-color var(--duration-slow) var(--ease-smooth),
              border-color var(--duration-slow) var(--ease-smooth),
              color var(--duration-slow) var(--ease-smooth);
}

/* ===================================================================
   LANGUAGE PILLS (shared)
   =================================================================== */

.lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.6rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.05em;
  color: var(--phone-text-dim);
  border: 1px solid var(--phone-border);
  background: transparent;
}

.lang-pill--active {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* ===================================================================
   SCROLL REVEAL ANIMATIONS
   =================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms var(--ease-smooth), transform 400ms var(--ease-smooth);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--stagger > *:nth-child(1) { transition-delay: 0ms; }
.reveal--stagger > *:nth-child(2) { transition-delay: 80ms; }
.reveal--stagger > *:nth-child(3) { transition-delay: 160ms; }
.reveal--stagger > *:nth-child(4) { transition-delay: 240ms; }
.reveal--stagger > *:nth-child(5) { transition-delay: 320ms; }
.reveal--stagger > *:nth-child(6) { transition-delay: 400ms; }

/* ===================================================================
   ANIMATIONS AND EFFECTS
   =================================================================== */

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% { transform: translate3d(0,0,0); }
  40%, 43% { transform: translate3d(0, -30px, 0); }
  70% { transform: translate3d(0, -15px, 0); }
  90% { transform: translate3d(0, -4px, 0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Confetti */
.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--accent-success);
  animation: confetti-fall 3s linear infinite;
}

.confetti:nth-child(2n) { background: var(--accent-primary); animation-delay: 0.2s; }
.confetti:nth-child(3n) { background: var(--accent-secondary); animation-delay: 0.4s; }
.confetti:nth-child(4n) { background: #ef4444; animation-delay: 0.6s; }
.confetti:nth-child(5n) { background: #8b5cf6; animation-delay: 0.8s; }

@keyframes confetti-fall {
  0% { transform: translateY(-100px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(500px) rotate(720deg); opacity: 0; }
}

#deviceConfirmationModal .modal {
  animation: confirmationSlideIn 0.3s ease-out;
}

@keyframes confirmationSlideIn {
  from { opacity: 0; transform: translateY(-50px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.success-checkmark {
  display: inline-block;
  animation: checkmark-pop 0.3s ease-out;
}

@keyframes checkmark-pop {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ===================================================================
   EXTRACTED INLINE STYLES (from modals — kept for backwards compat)
   =================================================================== */

.tier-price-period {
  font-size: var(--text-body);
  font-weight: var(--weight-normal);
  color: var(--text-tertiary);
}

.otp-subtitle {
  color: var(--text-tertiary);
  margin-bottom: var(--space-lg);
}

.otp-resend-text {
  font-size: var(--text-small);
  color: var(--text-tertiary);
}

.success-title {
  color: #15803d;
  margin-bottom: var(--space-md);
}

.success-subtitle {
  color: var(--text-tertiary);
  margin-bottom: var(--space-lg);
}

.success-credentials-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.success-credentials-box h3 {
  color: #15803d;
  margin-bottom: var(--space-md);
}

.success-credential-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.success-credential-label {
  color: var(--text-tertiary);
  font-weight: var(--weight-semibold);
}

.success-credential-value {
  color: #15803d;
  font-weight: var(--weight-semibold);
}

.success-passkey-notice {
  margin-top: var(--space-md);
  padding: var(--space-sm);
  background: #e6fffa;
  border-radius: 6px;
  font-size: var(--text-small);
  color: #0d9488;
}

.guide-modal-title { text-align: center; margin-bottom: var(--space-xl); }
.guide-intro { margin-bottom: var(--space-xl); }
.guide-intro p { text-align: center; color: var(--text-tertiary); }
.guide-steps { margin-bottom: var(--space-xl); }

.guide-step {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.guide-step--green { border-left: 4px solid var(--accent-success); }
.guide-step--blue { border-left: 4px solid #1e40af; }

.guide-step-header {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-md);
}

.guide-step-number {
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-bold);
  margin-right: var(--space-md);
}

.guide-step-number--green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.guide-step-number--blue { background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%); }

.guide-step-title { margin: 0; color: var(--text-primary); }
.guide-step-text { color: var(--text-secondary); margin-bottom: var(--space-md); }

.guide-step-btn {
  color: white;
  padding: var(--space-sm) var(--space-md);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.guide-step-btn--green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.guide-step-btn--blue { background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%); }

.login-inline-guide-btn {
  color: white;
  text-decoration: none;
  font-size: var(--text-body);
  font-weight: var(--weight-bold);
  padding: var(--space-sm) var(--space-md);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  transition: transform var(--duration-normal) var(--ease-smooth),
              box-shadow var(--duration-normal) var(--ease-smooth);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  cursor: pointer;
}

.login-inline-guide-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.guide-modal-body {
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
}
