/* Statistics Problem Solver Pro — Landing Page
   Tokens mapped from DESIGN.md (AppTheme.swift)
   accent #3D7BF5 · accentGradEnd #7C5CFF · background #F4F6FA
   textPrimary #14171F · textSecondary #6B7280 · answerTint #E8F0FE
   success #22C55E · ratingYellow #FBBF24 · destructive #EF4444
*/

/* ---- Light (default, matches app v1) ---- */
:root,
html[data-theme="light"] {
  --accent: #3d7bf5;
  --accent-pressed: #1d4ed8;
  --gradient-start: #3d7bf5;
  --gradient-end: #7c5cff;
  --gradient: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  --bg: #f4f6fa;
  --bg-elevated: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.92);
  --nav-shell-bg: rgba(255, 255, 255, 0.78);
  --border: rgba(20, 23, 31, 0.08);
  --border-strong: rgba(61, 123, 245, 0.35);
  --text: #14171f;
  --text-muted: #6b7280;
  --text-faint: #9aa3b2;
  --answer-tint: #e8f0fe;
  --success: #22c55e;
  --rating: #fbbf24;
  --destructive: #ef4444;
  --surface-hover: rgba(61, 123, 245, 0.06);
  --btn-secondary-bg: rgba(61, 123, 245, 0.08);
  --pill-bg: rgba(61, 123, 245, 0.08);
  --section-alt: linear-gradient(180deg, rgba(232, 240, 254, 0.7) 0%, transparent 100%);
  --pricing-featured: linear-gradient(160deg, rgba(61, 123, 245, 0.10), rgba(255, 255, 255, 0.98));
  --cta-band-bg: linear-gradient(135deg, rgba(61, 123, 245, 0.12), rgba(124, 92, 255, 0.10));
  --cta-band-border: rgba(61, 123, 245, 0.22);
  --hero-glow-1: rgba(61, 123, 245, 0.20);
  --hero-glow-2: rgba(124, 92, 255, 0.16);
  --phone-ring: rgba(20, 23, 31, 0.08);
  --shadow: 0 24px 60px rgba(61, 123, 245, 0.20);
  --shadow-card: 0 4px 16px rgba(20, 23, 31, 0.06), 0 1px 3px rgba(20, 23, 31, 0.04);
  --backdrop: rgba(20, 23, 31, 0.35);
  --theme-color: #f4f6fa;
}

/* ---- Dark ---- */
html[data-theme="dark"] {
  --accent: #5b8cff;
  --accent-pressed: #3b6ae6;
  --gradient-start: #3d7bf5;
  --gradient-end: #7c5cff;
  --gradient: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  --bg: #0e1016;
  --bg-elevated: #181b24;
  --bg-card: rgba(24, 27, 36, 0.92);
  --nav-shell-bg: rgba(24, 27, 36, 0.72);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(91, 140, 255, 0.40);
  --text: #f4f6fa;
  --text-muted: #a3afbf;
  --text-faint: #6b7280;
  --answer-tint: rgba(91, 140, 255, 0.14);
  --success: #22c55e;
  --rating: #fbbf24;
  --destructive: #ef4444;
  --surface-hover: rgba(255, 255, 255, 0.05);
  --btn-secondary-bg: rgba(255, 255, 255, 0.06);
  --pill-bg: rgba(91, 140, 255, 0.10);
  --section-alt: linear-gradient(180deg, rgba(61, 123, 245, 0.08) 0%, transparent 100%);
  --pricing-featured: linear-gradient(160deg, rgba(61, 123, 245, 0.16), rgba(24, 27, 36, 0.95));
  --cta-band-bg: linear-gradient(135deg, rgba(61, 123, 245, 0.18), rgba(124, 92, 255, 0.12));
  --cta-band-border: rgba(91, 140, 255, 0.30);
  --hero-glow-1: rgba(61, 123, 245, 0.22);
  --hero-glow-2: rgba(124, 92, 255, 0.18);
  --phone-ring: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.35);
  --backdrop: rgba(0, 0, 0, 0.55);
  --theme-color: #0e1016;
}

:root {
  --radius: 20px;
  --radius-lg: 28px;
  --max: 1120px;
  --nav-h: 4.75rem;
  --font-rounded: "Space Grotesk", -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Display", system-ui, sans-serif;
  --font-mono: "Space Grotesk", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: var(--nav-h);
  font-family: var(--font-rounded);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Nav */
.glass-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 0.65rem 0.85rem 0;
  pointer-events: none;
}

.nav-shell {
  pointer-events: auto;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: var(--nav-shell-bg);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--shadow-card);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
}

.brand-title {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
}

.nav-links {
  display: none;
  gap: 1.35rem;
  margin-left: auto;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-actions { margin-left: 0; }
  .mobile-menu-btn { display: none !important; }
}

/* Phones — declutter the nav bar */
@media (max-width: 599px) {
  .nav-shell { padding: 0.5rem 0.6rem 0.5rem 0.7rem; }
  .nav-inner { gap: 0.5rem; }
  .brand { gap: 0.55rem; }
  .brand-title { font-size: 0.88rem; }
  .brand-sub { white-space: nowrap; }
  /* The mobile drawer already has a "Get the App" button */
  .nav-actions .btn-primary { display: none; }
  .nav-actions { gap: 0.35rem; }
}

@media (max-width: 360px) {
  .brand-sub { display: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 12px 28px rgba(61, 123, 245, 0.35);
}
.btn-primary:hover { box-shadow: 0 16px 36px rgba(61, 123, 245, 0.42); }
.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-sm { padding: 0.55rem 1rem; font-size: 0.82rem; }

.app-store-badge {
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s, opacity 0.2s;
}
.app-store-badge:hover { transform: translateY(-1px); opacity: 0.9; }
.app-store-badge img {
  height: 48px;
  width: auto;
  display: block;
}
html[data-theme="dark"] .app-store-badge img { filter: invert(1); }

.mobile-menu-btn {
  display: inline-flex;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--btn-secondary-bg);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
}

.theme-toggle {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--btn-secondary-bg);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}

.theme-toggle:hover {
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.theme-icon {
  width: 18px;
  height: 18px;
}

html[data-theme="dark"] .theme-icon-sun,
html:not([data-theme]) .theme-icon-sun { display: block; }
html[data-theme="dark"] .theme-icon-moon,
html:not([data-theme]) .theme-icon-moon { display: none; }
html[data-theme="light"] .theme-icon-sun { display: none; }
html[data-theme="light"] .theme-icon-moon { display: block; }

.mobile-menu-icon,
.mobile-menu-icon::before,
.mobile-menu-icon::after {
  display: block;
  width: 16px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
}
.mobile-menu-icon::before,
.mobile-menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}
.mobile-menu-icon::before { top: -5px; }
.mobile-menu-icon::after { top: 5px; }

.mobile-drawer {
  display: none;
  position: fixed;
  top: calc(var(--nav-h) + 0.25rem);
  left: 0.85rem; right: 0.85rem;
  z-index: 49;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.mobile-drawer.open { display: block; }
.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-drawer-nav a {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.mobile-drawer-nav a:hover { background: var(--surface-hover); color: var(--text); }
.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 48;
  background: var(--backdrop);
}
.mobile-nav-backdrop.open { display: block; }
body.nav-open { overflow: hidden; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 4rem;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-glow-1 {
  width: 360px; height: 360px;
  background: var(--hero-glow-1);
  top: -100px; left: -80px;
}
.hero-glow-2 {
  width: 300px; height: 300px;
  background: var(--hero-glow-2);
  top: 40px; right: -60px;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .hero { padding: 4.5rem 0 5rem; }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--pill-bg);
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.pill-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gradient-end);
  box-shadow: 0 0 10px var(--gradient-end);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 1.1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.chip {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--pill-bg);
  border: 1px solid var(--border);
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

.stars {
  color: var(--rating);
  letter-spacing: 0.05em;
  font-size: 1rem;
}

.phone-mock {
  position: relative;
  max-width: 300px;
  margin: 0 auto;
}

.phone-mock img {
  border-radius: 2rem;
  box-shadow: var(--shadow), 0 0 0 1px var(--phone-ring);
}

.phone-mock .hero-screenshot {
  display: none;
  width: 100%;
  height: auto;
}

html[data-theme="light"] .phone-mock #hero-screenshot-light,
html[data-theme="dark"] .phone-mock #hero-screenshot-dark {
  display: block;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--section-alt);
}

.section-title {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  letter-spacing: -0.03em;
  font-weight: 800;
}

.section-title p {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.grid-3 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.grid-2 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  padding: 1.35rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card h3 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.icon-badge {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--gradient);
  font-size: 1.2rem;
  box-shadow: 0 8px 20px rgba(61, 123, 245, 0.25);
  color: #fff;
}

.icon-badge.tinted {
  background: var(--answer-tint);
  color: var(--accent);
  box-shadow: none;
}

/* Screenshots */
.screenshots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 700px) {
  .screenshots { grid-template-columns: repeat(3, 1fr); }
}

.shot-btn {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform 0.25s;
}

.shot-btn:hover { transform: translateY(-4px) scale(1.02); }

.shot-btn img {
  width: 100%;
  border-radius: 1.25rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

/* Step list (how it works) */
.step-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.35rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.step-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.step h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.92rem; line-height: 1.55; }

/* Answer highlight box */
.answer-box {
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  background: var(--answer-tint);
  border: 1.5px solid var(--accent);
}

.answer-caption {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}

.answer-box .answer-text {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0.35rem;
}

/* Calculator list */
.calc-grid {
  display: grid;
  gap: 0.75rem;
  max-width: 640px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .calc-grid { grid-template-columns: 1fr 1fr; }
}

.calc-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.92rem;
}

.calc-item .check {
  color: var(--success);
  font-weight: 800;
  flex-shrink: 0;
}

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.pricing-featured {
  border-color: var(--border-strong);
  background: var(--pricing-featured);
  position: relative;
}

.badge {
  position: absolute;
  top: -0.7rem;
  right: 1rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(61, 123, 245, 0.35);
}

.price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.35rem 0;
}

.price-sub {
  font-size: 0.8rem;
  color: var(--text-faint);
  font-weight: 600;
}

.list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.list li {
  padding: 0.4rem 0 0.4rem 1.35rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-trigger {
  width: 100%;
  text-align: left;
  padding: 1.1rem 0;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-trigger::after {
  content: "›";
  font-size: 1.4rem;
  color: var(--text-faint);
  transition: transform 0.2s;
  font-weight: 400;
}

.faq-item.open .faq-trigger::after { transform: rotate(90deg); }

.faq-panel {
  display: none;
  padding: 0 0 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.faq-item.open .faq-panel { display: block; }

/* Stat band */
.stat-band {
  display: grid;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 700px) {
  .stat-band { grid-template-columns: repeat(3, 1fr); }
}

.stat-number {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

/* CTA band */
.cta-band {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--cta-band-bg);
  border: 1px solid var(--cta-band-border);
}

/* Legal pages */
.legal-page {
  padding: 2.5rem 0 4rem;
}

.legal-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.legal-meta {
  color: var(--text-faint);
  font-size: 0.88rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.legal-page ul { padding-left: 1.25rem; }

.legal-page a {
  color: var(--accent);
  font-weight: 600;
}

/* Buttons inside legal/support pages keep their own text color */
.legal-page a.btn-primary { color: #fff; }
.legal-page a.btn-secondary { color: var(--text); }

.contact-card {
  max-width: 520px;
  margin: 2rem auto 0;
  text-align: center;
}

/* Contact page — minimalist */
.contact-wrap { max-width: 560px; margin: 0 auto; }

.contact-primary {
  text-align: center;
  padding: 2.25rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.contact-primary .icon-badge { margin: 0 auto 1rem; }
.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.contact-email {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: clamp(1.2rem, 3.5vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.contact-email:hover { color: var(--accent); }

.contact-rows {
  margin-top: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  transition: background 0.2s;
}
.contact-row + .contact-row { border-top: 1px solid var(--border); }
.contact-row:hover { background: var(--surface-hover); }
.contact-row-icon {
  flex: none;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--answer-tint);
  color: var(--accent);
  font-size: 1.1rem;
}
.contact-row-body { flex: 1; min-width: 0; }
.contact-row-body h3 { margin: 0; font-size: 0.98rem; letter-spacing: -0.01em; color: var(--text); }
.contact-row-body p {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.contact-row-arrow {
  flex: none;
  color: var(--text-faint);
  font-size: 1.1rem;
  transition: transform 0.2s, color 0.2s;
}
.contact-row:hover .contact-row-arrow { color: var(--accent); transform: translateX(3px); }

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

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr auto auto;
    align-items: center;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

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

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.88);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

#lightbox.open { display: flex; }

#lightbox img {
  max-height: 90vh;
  border-radius: 1.25rem;
}

#lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}