/* ===== Mäuse Marketing Website — Liquid Glass Design System ===== */

/* --- Font --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties: Light Mode (Default) --- */
:root {
  /* Colors */
  --bg: #f0efe9;
  --bg-gradient: linear-gradient(165deg, #f4f3ef 0%, #eae8e1 40%, #e4e2db 100%);
  --surface: rgba(255, 255, 255, 0.52);
  --surface-solid: #ffffff;
  --surface-elevated: rgba(255, 255, 255, 0.68);
  --glass: rgba(255, 255, 255, 0.42);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-border-outer: rgba(0, 0, 0, 0.06);
  --text: #1a1a1a;
  --text-secondary: #636366;
  --text-tertiary: #aeaeb2;
  --text-inverse: #ffffff;
  --primary: #01696f;
  --primary-light: #e6f4f5;
  --primary-hover: #015358;
  --border: rgba(0, 0, 0, 0.06);
  --input-bg: rgba(118, 118, 128, 0.05);
  --destructive: #ff3b30;
  --success: #34c759;

  /* Glass Effects */
  --glass-blur: saturate(200%) blur(28px);
  --glass-specular: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.15) 100%);
  --glass-inner-glow: inset 0 1px 0 0 rgba(255,255,255,0.7), inset 0 -1px 0 0 rgba(255,255,255,0.1);

  /* Shadows */
  --shadow-glass: 0 4px 16px rgba(0,0,0,0.04), 0 12px 40px rgba(0,0,0,0.06);

  /* Radius */
  --radius-sm: 0.625rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.125rem;
  --radius-xl: 1.375rem;
  --radius-2xl: 1.75rem;
  --radius-full: 9999px;

  /* Spacing (4px grid) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Type Scale */
  --text-xs: clamp(0.6875rem, 0.65rem + 0.2vw, 0.75rem);
  --text-sm: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --text-2xl: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-glass: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Font */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
}

/* --- Dark Mode --- */
[data-theme="dark"] {
  --bg: #000000;
  --bg-gradient: linear-gradient(165deg, #0a0a0a 0%, #050505 40%, #000000 100%);
  --surface: rgba(38, 38, 40, 0.55);
  --surface-solid: #1c1c1e;
  --surface-elevated: rgba(50, 50, 52, 0.65);
  --glass: rgba(38, 38, 40, 0.45);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-outer: rgba(255, 255, 255, 0.04);
  --text: #f5f5f7;
  --text-secondary: #98989d;
  --text-tertiary: #636366;
  --text-inverse: #000000;
  --primary: #5ac8cd;
  --primary-light: rgba(90, 200, 205, 0.12);
  --primary-hover: #47a5aa;
  --border: rgba(255, 255, 255, 0.08);
  --input-bg: rgba(118, 118, 128, 0.18);
  --destructive: #ff453a;
  --success: #30d158;
  --glass-blur: saturate(180%) blur(28px);
  --glass-specular: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.04) 100%);
  --glass-inner-glow: inset 0 1px 0 0 rgba(255,255,255,0.12), inset 0 -1px 0 0 rgba(255,255,255,0.03);
  --shadow-glass: 0 4px 16px rgba(0,0,0,0.2), 0 12px 40px rgba(0,0,0,0.3);
}

/* System preference fallback */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --bg-gradient: linear-gradient(165deg, #0a0a0a 0%, #050505 40%, #000000 100%);
    --surface: rgba(38, 38, 40, 0.55);
    --surface-solid: #1c1c1e;
    --surface-elevated: rgba(50, 50, 52, 0.65);
    --glass: rgba(38, 38, 40, 0.45);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-border-outer: rgba(255, 255, 255, 0.04);
    --text: #f5f5f7;
    --text-secondary: #98989d;
    --text-tertiary: #636366;
    --text-inverse: #000000;
    --primary: #5ac8cd;
    --primary-light: rgba(90, 200, 205, 0.12);
    --primary-hover: #47a5aa;
    --border: rgba(255, 255, 255, 0.08);
    --input-bg: rgba(118, 118, 128, 0.18);
    --destructive: #ff453a;
    --success: #30d158;
    --glass-blur: saturate(180%) blur(28px);
    --glass-specular: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.04) 100%);
    --glass-inner-glow: inset 0 1px 0 0 rgba(255,255,255,0.12), inset 0 -1px 0 0 rgba(255,255,255,0.03);
    --shadow-glass: 0 4px 16px rgba(0,0,0,0.2), 0 12px 40px rgba(0,0,0,0.3);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image: var(--bg-gradient);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

a:hover {
  color: var(--primary-hover);
}

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

/* --- Glass Surface Classes --- */
.glass-surface {
  background: var(--surface);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-inner-glow), var(--shadow-glass);
  border-radius: var(--radius-2xl);
  position: relative;
  overflow: hidden;
}

.glass-surface::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-specular);
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

.glass-surface > * {
  position: relative;
  z-index: 1;
}

.glass-elevated {
  background: var(--surface-elevated);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-inner-glow), var(--shadow-glass);
  border-radius: var(--radius-2xl);
  position: relative;
  overflow: hidden;
}

.glass-elevated::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-specular);
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

.glass-elevated > * {
  position: relative;
  z-index: 1;
}

.glass-inset {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

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

section {
  padding: var(--space-16) 0;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-elevated);
  -webkit-backdrop-filter: saturate(200%) blur(32px);
  backdrop-filter: saturate(200%) blur(32px);
  border-bottom: 1px solid var(--glass-border-outer);
  box-shadow: var(--glass-inner-glow);
  padding: var(--space-3) 0;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-specular);
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text);
}

.header-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.header-title {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

.header-github {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.header-github:hover {
  background: var(--input-bg);
  color: var(--text);
}

.header-github svg {
  width: 20px;
  height: 20px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--input-bg);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text-secondary);
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.theme-toggle:hover {
  background: var(--border);
  color: var(--text);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

/* System dark mode: show sun when no explicit theme set */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle .icon-moon {
    display: none;
  }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle .icon-sun {
    display: block;
  }
}

/* --- Hero Section --- */
.hero {
  padding: var(--space-12) 0 var(--space-16);
  overflow: visible;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-12);
}

.hero-text {
  text-align: center;
  max-width: 540px;
}

.hero-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.hero-logo {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.hero-app-name {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
}

.hero-name-meaning {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: var(--space-4);
}

.hero-tagline {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: var(--space-4);
}

.hero-subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

.hero-voice-hint {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: var(--primary-light);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-8);
}

.hero-voice-hint svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.hero-voice-hint span {
  font-size: var(--text-sm);
  color: var(--primary);
  font-weight: 500;
  font-style: italic;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-inverse);
  background:
    radial-gradient(ellipse at 30% 0%, rgba(255,255,255,0.18) 0%, transparent 70%),
    linear-gradient(135deg, #01696f 0%, #018a8f 50%, #01696f 100%);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.2s var(--ease-out);
  box-shadow: 0 2px 12px rgba(1, 105, 111, 0.25);
}

[data-theme="dark"] .btn-primary {
  background:
    radial-gradient(ellipse at 30% 0%, rgba(255,255,255,0.12) 0%, transparent 70%),
    linear-gradient(135deg, #5ac8cd 0%, #47a5aa 50%, #5ac8cd 100%);
  color: #000000;
  box-shadow: 0 2px 12px rgba(90, 200, 205, 0.3);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-primary {
    background:
      radial-gradient(ellipse at 30% 0%, rgba(255,255,255,0.12) 0%, transparent 70%),
      linear-gradient(135deg, #5ac8cd 0%, #47a5aa 50%, #5ac8cd 100%);
    color: #000000;
    box-shadow: 0 2px 12px rgba(90, 200, 205, 0.3);
  }
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 20px rgba(1, 105, 111, 0.35);
  color: var(--text-inverse);
}

[data-theme="dark"] .btn-primary:hover {
  color: #000000;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.2s var(--ease-out), background 0.2s var(--ease-out);
  box-shadow: var(--glass-inner-glow), var(--shadow-glass);
}

.btn-secondary svg {
  width: 18px;
  height: 18px;
}

.btn-secondary:hover {
  transform: translateY(-1px) scale(1.02);
  background: var(--surface-elevated);
  color: var(--text);
}

.hero-actions {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- Phone Mockup --- */
.phone-mockup {
  width: 260px;
  flex-shrink: 0;
  border-radius: 36px;
  border: 3px solid var(--glass-border-outer);
  background: var(--surface-solid);
  box-shadow: var(--shadow-glass), 0 0 0 1px var(--glass-border);
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

.phone-notch {
  width: 100px;
  height: 22px;
  background: var(--text);
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

[data-theme="dark"] .phone-notch {
  background: #000;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .phone-notch {
    background: #000;
  }
}

.phone-screen {
  padding: var(--space-3);
  background: var(--bg);
  background-image: var(--bg-gradient);
  min-height: 420px;
}

.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-1);
  margin-bottom: var(--space-3);
}

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

.phone-header-brand svg {
  width: 24px;
  height: 24px;
}

.phone-header-brand span {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}

.phone-header-actions {
  display: flex;
  gap: var(--space-2);
}

.phone-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-icon-btn svg {
  width: 14px;
  height: 14px;
  color: var(--text-secondary);
}

.phone-month-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-2) 0;
  margin-bottom: var(--space-3);
}

.phone-month-nav .arrow {
  width: 24px;
  height: 24px;
  color: var(--primary);
  cursor: default;
}

.phone-month-nav span {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  min-width: 100px;
  text-align: center;
}

.phone-summary {
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}

.phone-summary-total {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-1);
}

.phone-summary-total .label {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.phone-summary-partner {
  font-size: var(--text-sm);
  color: var(--primary);
  font-weight: 500;
}

.phone-summary-partner .label {
  color: var(--text-secondary);
  font-weight: 400;
}

.phone-expense-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.phone-expense-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.phone-expense-name {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text);
}

.phone-expense-date {
  font-size: 0.625rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.phone-expense-amounts {
  text-align: right;
}

.phone-expense-total {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text);
}

.phone-expense-share {
  font-size: 0.625rem;
  color: var(--primary);
  margin-top: 2px;
}

/* --- Section Titles --- */
.section-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
  text-align: center;
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  text-align: center;
  max-width: 480px;
  margin: 0 auto var(--space-10);
  line-height: 1.6;
}

/* --- Features Section --- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

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

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--primary);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- How It Works --- */
.how-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-12);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background:
    radial-gradient(ellipse at 30% 0%, rgba(255,255,255,0.18) 0%, transparent 70%),
    linear-gradient(135deg, #01696f 0%, #018a8f 50%, #01696f 100%);
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: 700;
  flex-shrink: 0;
}

[data-theme="dark"] .step-number {
  background:
    radial-gradient(ellipse at 30% 0%, rgba(255,255,255,0.12) 0%, transparent 70%),
    linear-gradient(135deg, #5ac8cd 0%, #47a5aa 50%, #5ac8cd 100%);
  color: #000000;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .step-number {
    background:
      radial-gradient(ellipse at 30% 0%, rgba(255,255,255,0.12) 0%, transparent 70%),
      linear-gradient(135deg, #5ac8cd 0%, #47a5aa 50%, #5ac8cd 100%);
    color: #000000;
  }
}

.step-content h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-1);
  letter-spacing: -0.01em;
}

.step-content p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Voice Phone Mockups --- */
.voice-phones {
  position: relative;
  width: 300px;
  height: 400px;
  margin: 0 auto;
  flex-shrink: 0;
}

.voice-phone {
  position: absolute;
  width: 200px;
  border-radius: 24px;
  border: 2.5px solid var(--glass-border-outer);
  background: var(--surface-solid);
  box-shadow: var(--shadow-glass), 0 0 0 1px var(--glass-border);
  overflow: hidden;
}

.voice-phone-record {
  top: 30px;
  right: 0;
  z-index: 2;
  transform: rotate(3deg);
}

.voice-phone-review {
  top: 0;
  left: 0;
  z-index: 1;
  transform: rotate(-4deg);
}

.vp-notch {
  width: 72px;
  height: 16px;
  background: var(--text);
  border-radius: 0 0 12px 12px;
  margin: 0 auto;
}

[data-theme="dark"] .vp-notch {
  background: #000;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .vp-notch {
    background: #000;
  }
}

.vp-screen {
  padding: var(--space-3);
  background: var(--bg);
  background-image: var(--bg-gradient);
  min-height: 280px;
}

.vp-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) 0;
  margin-bottom: var(--space-4);
}

.vp-cancel {
  font-size: 0.625rem;
  color: var(--primary);
  font-weight: 500;
}

.vp-title {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text);
}

.vp-done {
  font-size: 0.625rem;
  color: var(--primary);
  font-weight: 600;
}

.vp-done-placeholder {
  width: 30px;
}

/* Capture Zone (Recording) */
.vp-capture-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-8) 0 var(--space-4);
}

.vp-mic-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.vp-mic-recording {
  animation: vp-pulse 2s ease-in-out infinite;
}

.vp-mic-glow {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.18;
  animation: vp-glow 2s ease-in-out infinite;
}

@keyframes vp-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes vp-glow {
  0%, 100% { opacity: 0.1; transform: scale(1); }
  50% { opacity: 0.25; transform: scale(1.15); }
}

.vp-mic-icon {
  width: 28px;
  height: 28px;
  color: white;
  position: relative;
  z-index: 1;
}

[data-theme="dark"] .vp-mic-icon {
  color: #000;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .vp-mic-icon {
    color: #000;
  }
}

.vp-capture-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--primary);
}

.vp-capture-hint {
  font-size: 0.5625rem;
  color: var(--text-tertiary);
}

/* Review Zone */
.vp-review-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.vp-amount {
  display: flex;
  align-items: baseline;
  gap: 2px;
  padding: var(--space-2) 0;
}

.vp-amount-currency {
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--text-secondary);
}

.vp-amount-value {
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}

.vp-result-fields {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.vp-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-2) var(--space-3);
  background: var(--input-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.vp-field-label {
  font-size: 0.5625rem;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vp-field-value {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text);
}

.vp-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding-top: var(--space-3);
}

.vp-footer-btn {
  font-size: 0.5625rem;
  color: var(--primary);
  font-weight: 500;
}

.vp-footer-dot {
  font-size: 0.5625rem;
  color: var(--text-tertiary);
}

/* Install link style */
.install-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.install-link:hover {
  color: var(--primary-hover);
}

/* --- Privacy Section --- */
.privacy-card {
  padding: var(--space-8);
  max-width: 640px;
  margin: 0 auto;
}

.privacy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.privacy-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.privacy-check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--success);
  margin-top: 2px;
}

.privacy-check-cloud {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 2px;
}

.privacy-list li strong {
  color: var(--text);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.privacy-list li div {
  line-height: 1.5;
}

/* --- Open Source Section --- */
.opensource-section {
  text-align: center;
}

.opensource-card {
  padding: var(--space-8);
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.opensource-content {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.opensource-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.opensource-icon svg {
  width: 24px;
  height: 24px;
}

.opensource-text h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}

.opensource-text p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

.opensource-files {
  display: block;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
  background: none;
  word-break: break-word;
  overflow-wrap: break-word;
}

.opensource-btn {
  width: 100%;
  text-align: center;
}

/* --- Install Section --- */
.install-section {
  text-align: center;
}

.install-card {
  padding: var(--space-8);
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.install-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.install-steps li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.install-step-num {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 600;
  flex-shrink: 0;
}

.install-badge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.install-badge svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
}

.install-badge span {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
}

.install-perks {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-5);
  padding-bottom: var(--space-4);
  border-top: 1px solid var(--border);
}

.install-perk {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.install-perk svg {
  width: 18px;
  height: 18px;
  color: var(--success);
  flex-shrink: 0;
}

.install-note {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.install-hint {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-style: italic;
}

/* --- Footer --- */
.site-footer {
  padding: var(--space-8) 0 var(--space-6);
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.footer-links a {
  color: var(--text-tertiary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-links a:hover {
  color: var(--text-secondary);
}

.footer-dot {
  opacity: 0.4;
}

/* --- Scroll Reveal Animation --- */
/* Default: visible. JS adds 'reveal-init' class to enable animation. */
.reveal-init .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal-init .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Desktop Layout (768px+) --- */
@media (min-width: 768px) {
  section {
    padding: var(--space-16) 0 calc(var(--space-16) + var(--space-8));
  }

  .hero {
    padding: calc(var(--space-16) + var(--space-12)) 0 calc(var(--space-16) + var(--space-8));
  }

  .hero-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-12);
  }

  .hero-text {
    text-align: left;
    flex: 1;
    max-width: 500px;
  }

  .hero-logo-row {
    justify-content: flex-start;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-logo {
    width: 72px;
    height: 72px;
  }

  .phone-mockup {
    width: 300px;
    margin: 0;
  }

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

  .steps {
    max-width: none;
  }

  .how-layout {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--space-16);
  }

  .how-layout .steps {
    max-width: 380px;
    margin: 0;
  }

  .voice-phones {
    width: 320px;
    height: 420px;
  }

  .voice-phone {
    width: 220px;
  }
}

/* Large desktop */
@media (min-width: 1024px) {
  .hero-logo {
    width: 80px;
    height: 80px;
  }

  .phone-mockup {
    width: 320px;
    margin: 0;
  }
}
