/* ===================================================================
   MasterPlan Landing Page
   =================================================================== */

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

/* --- Custom Properties --- */
:root {
  --bg-deep: #0a0c12;
  --bg-primary: #0f1117;
  --bg-card: #161922;
  --bg-card-hover: #1c1f2b;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --accent-glow-strong: rgba(99, 102, 241, 0.25);
  --success: #22c55e;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(148, 163, 184, 0.08);
  --border-accent: rgba(99, 102, 241, 0.2);
  --grid-color: rgba(99, 102, 241, 0.04);
  --grid-color-strong: rgba(99, 102, 241, 0.07);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.1);
  --checker-bg: #1a1d28;
  --checker-sq: #20232e;
  --mockup-frame: #111318;
  --mockup-bar: #333333;
  --mockup-canvas: #ffffff;
  --nav-scrolled-bg: rgba(10, 12, 18, 0.85);
  --radius-sm: 8px;
}

/* --- Light Theme --- */
[data-theme="light"] {
  --bg-deep: #f0f2f7;
  --bg-primary: #f8f9fc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f3f8;
  --accent: #6366f1;
  --accent-light: #4f46e5;
  --accent-glow: rgba(99, 102, 241, 0.1);
  --accent-glow-strong: rgba(99, 102, 241, 0.18);
  --success: #16a34a;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: rgba(30, 41, 59, 0.1);
  --border-accent: rgba(99, 102, 241, 0.25);
  --grid-color: rgba(99, 102, 241, 0.03);
  --grid-color-strong: rgba(99, 102, 241, 0.06);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.06);
  --checker-bg: #e8eaf0;
  --checker-sq: #d8dbe3;
  --mockup-frame: #1e293b;
  --mockup-bar: #334155;
  --mockup-canvas: #ffffff;
  --nav-scrolled-bg: rgba(248, 249, 252, 0.85);
}

/* --- Midnight Theme --- */
[data-theme="midnight"] {
  --bg-deep: #060d1f;
  --bg-primary: #0b1224;
  --bg-card: #111a33;
  --bg-card-hover: #162040;
  --accent: #38bdf8;
  --accent-light: #7dd3fc;
  --accent-glow: rgba(56, 189, 248, 0.12);
  --accent-glow-strong: rgba(56, 189, 248, 0.2);
  --success: #34d399;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(148, 163, 184, 0.06);
  --border-accent: rgba(56, 189, 248, 0.2);
  --grid-color: rgba(56, 189, 248, 0.03);
  --grid-color-strong: rgba(56, 189, 248, 0.06);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(56, 189, 248, 0.08);
  --checker-bg: #0e1830;
  --checker-sq: #142040;
  --mockup-frame: #0a1020;
  --mockup-bar: #1e2d50;
  --mockup-canvas: #e8ecf4;
  --nav-scrolled-bg: rgba(6, 13, 31, 0.85);
}

/* --- Base --- */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* --- Blueprint Grid Background --- */
.blueprint-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-color-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color-strong) 1px, transparent 1px),
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size:
    200px 200px,
    200px 200px,
    40px 40px,
    40px 40px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
  opacity: 0;
  animation: gridFadeIn 1.5s ease 0.3s forwards;
}

@keyframes gridFadeIn {
  to { opacity: 1; }
}

/* --- Layout --- */
.page-wrapper {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.scrolled {
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.nav-logo span {
  color: var(--accent);
}

/* Inline branded "MasterPlan" — use as: Master<span class="brand">Plan</span> */
.brand {
  font-weight: 700;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.nav-cta:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

/* Theme toggle (nav) */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.1875rem;
  margin-left: 0.5rem;
}

.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.theme-toggle-btn:hover {
  color: var(--text-secondary);
}

.theme-toggle-btn.active {
  background: var(--accent);
  color: #fff;
}

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

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.25rem;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  position: relative;
}

.hero-split {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-content {
  max-width: 560px;
  flex-shrink: 0;
}

.hero-device {
  flex: 1;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s ease 0.9s forwards;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.6s ease 0.4s forwards;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.7s ease 0.5s forwards;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.7s ease 0.65s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.7s ease 0.8s forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.35);
}

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

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(148, 163, 184, 0.05);
  transform: translateY(-2px);
}

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

/* Hero glow orb */
.hero-glow {
  position: absolute;
  right: -10%;
  top: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Section Headers --- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Sora', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* --- Features --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 10px;
  color: var(--accent-light);
  margin-bottom: 1.25rem;
}

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

.feature-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --- How It Works --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
  position: relative;
}

/* Connecting line between steps */
.steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 1px;
  background: linear-gradient(90deg, var(--border-accent), var(--accent), var(--border-accent));
  opacity: 0.5;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 2px solid var(--border-accent);
  border-radius: 50%;
  font-family: 'Sora', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.step h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.step p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 280px;
  margin: 0 auto;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  margin-top: 3.5rem;
  padding-left: 2rem;
}

.timeline-line {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--border-accent), transparent);
  border-radius: 1px;
}

.timeline-entry {
  position: relative;
  padding-bottom: 2.5rem;
  padding-left: 2rem;
}

.timeline-entry:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  z-index: 1;
  transition: all 0.3s ease;
}

.timeline-entry:hover .timeline-dot {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow-strong);
}

.timeline-date {
  font-family: 'Sora', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-light);
  margin-bottom: 0.5rem;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  transition: all 0.3s ease;
}

.timeline-entry:hover .timeline-card {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
}

.timeline-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.timeline-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Collapsible older entries */
.timeline-older {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}

.timeline-older-inner {
  min-height: 0;
  overflow: hidden;
}

.timeline-older.open {
  grid-template-rows: 1fr;
}

.timeline-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.6rem 1rem;
  margin-bottom: 2.5rem;
  margin-left: 2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.timeline-toggle:hover {
  color: var(--accent-light);
  border-color: var(--border-accent);
}

.timeline-toggle-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.timeline-toggle.open .timeline-toggle-icon {
  transform: rotate(180deg);
}

/* Completed entries */
.timeline-entry.completed .timeline-dot {
  background: var(--success);
  border-color: var(--success);
}

.timeline-entry.completed:hover .timeline-dot {
  background: var(--success);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.35);
}

/* Upcoming entries */
.timeline-entry.upcoming .timeline-dot {
  border-style: dashed;
  border-color: var(--text-muted);
  background: transparent;
}

.timeline-entry.upcoming:hover .timeline-dot {
  border-color: var(--accent);
  background: transparent;
  box-shadow: 0 0 12px var(--accent-glow);
}

.timeline-entry.upcoming .timeline-card {
  border-style: dashed;
  background: transparent;
}

.timeline-entry.upcoming:hover .timeline-card {
  background: var(--bg-card);
  border-style: dashed;
  border-color: var(--border-accent);
}

.timeline-entry.upcoming .timeline-card h3 {
  color: var(--text-secondary);
}

.timeline-entry.upcoming .timeline-card p {
  color: var(--text-muted);
}

/* Badges */
.timeline-badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 0.5rem;
}

.timeline-badge.done {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.timeline-badge.planned {
  background: var(--accent-glow);
  color: var(--accent-light);
  border: 1px solid var(--border-accent);
}

/* Release badge */
.timeline-badge.release {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  border: none;
  font-size: 0.7rem;
  padding: 0.2rem 0.65rem;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.4);
}

/* Release entry — special card */
.timeline-entry.timeline-release .timeline-dot {
  border-style: solid;
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.5);
}

.timeline-entry.timeline-release .timeline-card {
  border-style: solid;
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: var(--shadow-glow), 0 0 40px rgba(99, 102, 241, 0.08);
  position: relative;
  overflow: hidden;
}

.timeline-entry.timeline-release .timeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
}

.timeline-entry.timeline-release .timeline-card h3 {
  color: var(--accent-light);
  font-size: 1.25rem;
}

.timeline-entry.timeline-release .timeline-card p {
  color: var(--text-secondary);
}

.timeline-entry.timeline-release:hover .timeline-dot {
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.7);
}

.timeline-entry.timeline-release:hover .timeline-card {
  border-color: var(--accent-light);
  box-shadow: var(--shadow-glow), 0 0 60px rgba(99, 102, 241, 0.12);
}

.release-highlight {
  color: var(--accent-light);
  font-weight: 700;
}

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  max-width: 800px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow), 0 0 60px rgba(99, 102, 241, 0.06);
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.pricing-label {
  font-family: 'Sora', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.pricing-card.featured .pricing-label {
  color: var(--accent-light);
}

.pricing-price {
  font-family: 'Sora', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 0.375rem;
}

.pricing-price .period {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
}

.pricing-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pricing-features li svg {
  width: 18px;
  height: 18px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-features li.muted svg {
  color: var(--text-muted);
}

.pricing-btn {
  display: block;
  width: 100%;
  padding: 0.75rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.pricing-btn-outline {
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.pricing-btn-outline:hover {
  color: var(--text-primary);
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(148, 163, 184, 0.05);
}

.pricing-btn-filled {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.pricing-btn-filled:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.35);
}

/* ===================================================================
   GALLERY
   =================================================================== */
.gallery-filters {
  display: flex;
  gap: 0.5rem;
  margin-top: 2.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gallery-filters::-webkit-scrollbar { display: none; }

.gallery-tab {
  flex-shrink: 0;
  padding: 0.4rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.gallery-tab:hover {
  color: var(--text-secondary);
  border-color: rgba(148, 163, 184, 0.15);
}
.gallery-tab.active {
  color: var(--accent-light);
  border-color: var(--border-accent);
  background: var(--accent-glow);
}

.gallery-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}
.gallery-toolbar select {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.375rem 0.75rem;
  cursor: pointer;
  appearance: auto;
}
.gallery-count {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}
.gallery-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.gallery-card-img {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: var(--checker-bg);
  background-image:
    linear-gradient(45deg, var(--checker-sq) 25%, transparent 25%),
    linear-gradient(-45deg, var(--checker-sq) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--checker-sq) 75%),
    linear-gradient(-45deg, transparent 75%, var(--checker-sq) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}
.gallery-card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-card-info {
  padding: 0.75rem;
}
.gallery-card-name {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}
.gallery-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.gallery-card-category {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--accent-light);
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  padding: 0.125rem 0.5rem;
  text-transform: capitalize;
}
.gallery-card-fav {
  font-size: 0.75rem;
  color: var(--accent-light);
  white-space: nowrap;
}
.gallery-card-author {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-sentinel {
  height: 1px;
}

.gallery-loading,
.gallery-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.gallery-loading .spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto;
  animation: gallerySpin 0.7s linear infinite;
}
@keyframes gallerySpin { to { transform: rotate(360deg); } }

/* --- CTA Banner --- */
.cta-section {
  padding: 5rem 0 6rem;
}

.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.cta-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  position: relative;
}

.cta-box p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* --- Store Badges --- */
.store-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1.25rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-accent);
  border-radius: 10px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.store-badge:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.store-badge svg {
  width: 20px;
  height: 20px;
}

.store-badge .store-label {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-badge .store-label small {
  font-size: 0.625rem;
  color: var(--text-muted);
}

.store-badge .store-label strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.footer-logo span {
  color: var(--accent);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-link {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===================================================================
   PHONE FRAME
   =================================================================== */
.phone-frame {
  width: 280px;
  background: #111318;
  border: 2px solid rgba(148, 163, 184, 0.12);
  border-radius: 32px;
  padding: 8px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(148, 163, 184, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  position: relative;
}

.phone-frame.phone-sm {
  width: 260px;
}

.phone-notch {
  width: 80px;
  height: 6px;
  background: #111318;
  border-radius: 0 0 10px 10px;
  margin: 0 auto 4px;
  position: relative;
  z-index: 2;
}

.phone-screen {
  background: var(--bg-primary);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ===================================================================
   MOCK APP SCREEN (true to Flutter app)
   =================================================================== */

/* Top action bar: grey[900] */
.mock-topbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 10px;
  background: #333333;
  min-height: 36px;
}

.mock-topbar-sm {
  padding: 8px 8px;
  min-height: 30px;
}

.mock-topbar-title {
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.mock-topbar-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

/* Canvas: white bg */
.mock-canvas-light {
  flex: 1;
  background: #ffffff;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-floorplan {
  width: 100%;
  height: 100%;
}

/* Bottom toolbar: grey[900] */
.mock-bottombar {
  display: flex;
  justify-content: space-around;
  padding: 6px 4px 10px;
  background: #333333;
}

.mock-bottombar-sm {
  padding: 4px 2px 8px;
}

.mock-btool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.5625rem;
  font-weight: 400;
}

.mock-btool.active {
  color: #2196F3;
}

/* Screenshot placeholders (for when real screenshots aren't uploaded yet) */
.screenshot-placeholder {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-deep);
}

.screenshot-coming-soon {
  font-family: 'Sora', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  padding: 2rem 1rem;
}

/* ===================================================================
   BUILT FOR / AUDIENCE SECTION
   =================================================================== */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.audience-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.audience-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.audience-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  color: var(--accent-light);
  margin: 0 auto 1rem;
}

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

.audience-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.audience-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===================================================================
   APP PREVIEW SECTION
   =================================================================== */
.preview-row {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}

.preview-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.preview-label {
  font-family: 'Sora', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

/* --- Divider --- */
.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
  margin: 0;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 960px) {
  .hero-split {
    flex-direction: column;
    gap: 3rem;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-sub {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    max-width: 100%;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .preview-row {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-deep);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 200;
  }

  .nav-links.open .nav-link {
    font-size: 1.25rem;
  }

  .nav-links.open .nav-cta {
    font-size: 1.125rem;
    padding: 0.75rem 2rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 300;
  }

  .hero {
    min-height: auto;
    padding-top: 8rem;
    padding-bottom: 4rem;
  }

  .section {
    padding: 4rem 0;
  }

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

  .steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .steps::before {
    display: none;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .cta-box {
    padding: 3rem 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    justify-content: center;
  }

  .hero-device .phone-frame {
    width: 240px;
  }

  .hero-glow {
    display: none;
  }

  .audience-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .preview-row {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .store-badges {
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .feature-card {
    padding: 1.5rem 1.25rem;
  }

  .pricing-card {
    padding: 2rem 1.5rem;
  }

  .timeline {
    padding-left: 1.25rem;
  }

  .timeline-entry {
    padding-left: 1.25rem;
  }

  .timeline-card {
    padding: 1.25rem;
  }
}

/* ===================================================================
   Auth & Account Modals
   =================================================================== */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  position: relative;
}
.modal-wide { max-width: 500px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 0;
}
.modal-header h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  color: var(--text-primary);
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 0;
}
.modal-close:hover { color: var(--text-primary); }
.modal-close:focus-visible { outline: none; color: var(--text-primary); box-shadow: 0 0 0 2px var(--accent-glow-strong); border-radius: 4px; }

.modal-body { padding: 1.5rem; }

/* Tabs */
.modal-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin: 0 1.5rem;
}
.modal-tab {
  flex: 1;
  padding: 0.75rem 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.modal-tab:hover { color: var(--text-secondary); }
.modal-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Form inputs */
.modal-form { display: flex; flex-direction: column; gap: 1rem; }
.modal-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
}
.modal-field input, .modal-field select {
  width: 100%;
  padding: 0.625rem 0.75rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.modal-field input:focus, .modal-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.modal-field input::placeholder { color: var(--text-muted); }

.modal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.modal-btn {
  width: 100%;
  padding: 0.75rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s;
  margin-top: 0.5rem;
}
.modal-btn:hover { opacity: 0.9; }
.modal-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-glow-strong); }
.modal-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.modal-error {
  padding: 0.625rem 0.75rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-sm);
  color: #ef4444;
  font-size: 0.8125rem;
}

.modal-success {
  padding: 0.625rem 0.75rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius-sm);
  color: var(--success);
  font-size: 0.8125rem;
}

.modal-info {
  padding: 0.75rem;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.5;
  text-align: center;
}

/* Account sections */
.account-section {
  margin-bottom: 1.25rem;
}
.account-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.account-stat {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.account-stat:last-child { border-bottom: none; }
.account-stat-value {
  color: var(--text-primary);
  font-weight: 500;
}

.badge-pro-sm, .badge-free-sm {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 0.03em;
}
.badge-pro-sm {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
}
.badge-free-sm {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
}

/* Logo upload */
.logo-upload {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logo-preview {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.logo-placeholder {
  color: var(--text-muted);
  font-size: 0.75rem;
}
.logo-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.logo-btn {
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-secondary);
  transition: border-color 0.2s;
}
.logo-btn:hover { border-color: var(--accent); color: var(--text-primary); }
.logo-btn-danger:hover { border-color: #ef4444; color: #ef4444; }

/* Nav auth state */
.nav-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  color: var(--accent-light);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-user-btn:hover { background: var(--accent-glow-strong); }
.nav-user-btn svg { width: 16px; height: 16px; }

.nav-auth-links { display: contents; }
.nav-user-links { display: contents; }

/* Spinner */
.modal-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: mspin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 0.375rem;
}
@keyframes mspin { to { transform: rotate(360deg); } }

/* Privacy toggles */
.privacy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.375rem 0;
}
.privacy-row label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}
.privacy-toggle {
  position: relative;
  width: 36px;
  height: 20px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--text-muted);
  border-radius: 10px;
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
}
.privacy-toggle:checked { background: var(--accent); }
.privacy-toggle::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.privacy-toggle:checked::before { transform: translateX(16px); }
.privacy-toggle:focus-visible { box-shadow: 0 0 0 3px var(--accent-glow-strong); }

@media (max-width: 640px) {
  .modal { max-width: 100%; border-radius: var(--radius); }
  .modal-row { grid-template-columns: 1fr; }
}
