﻿:root {
  color-scheme: light;
  --bg: #f7f2ea;
  --bg-accent: #fff5d6;
  --bg-deep: #f0dbc3;
  --ink: #1e1b18;
  --muted: #5f5650;
  --accent: #e06a2b;
  --accent-deep: #b64b1a;
  --mint: #3e7f6d;
  --card: #fff8ee;
  --card-strong: #fffdf8;
  --card-muted: #fffaf2;
  --panel: #fff4e0;
  --panel-2: #f5efe4;
  --line: rgba(30, 27, 24, 0.12);
  --shadow: 0 18px 45px rgba(30, 27, 24, 0.12);
  --hero-grad-1: #fff7ea;
  --hero-grad-2: #ffe6c6;
  --callout-bg: #1e1b18;
  --callout-text: #f9f4ed;
  --download-bg-1: #1e1b18;
  --download-bg-2: #3f3028;
  --toggle-track: #f0e1cf;
  --toggle-ball: #fffdf8;
  --toggle-shadow: 0 6px 16px rgba(30, 27, 24, 0.15);
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #15110d;
  --bg-accent: #2a2119;
  --bg-deep: #1f1812;
  --ink: #f6efe7;
  --muted: #b6a79c;
  --accent: #f08a4b;
  --accent-deep: #d76b2e;
  --mint: #6fb7a2;
  --card: #201913;
  --card-strong: #241c16;
  --card-muted: #1b1511;
  --panel: #2a2119;
  --panel-2: #2f261d;
  --line: rgba(246, 239, 231, 0.12);
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
  --hero-grad-1: #2a2119;
  --hero-grad-2: #3a2a1d;
  --callout-bg: #0f0b08;
  --callout-text: #f6efe7;
  --download-bg-1: #0f0b08;
  --download-bg-2: #251c15;
  --toggle-track: #2a2119;
  --toggle-ball: #f6efe7;
  --toggle-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: radial-gradient(
    circle at top left,
    var(--bg-accent) 0%,
    var(--bg) 35%,
    var(--bg-deep) 70%,
    var(--bg-deep) 100%
  );
  min-height: 100vh;
  transition: background 0.7s ease, color 0.7s ease;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.7" numOctaves="2" stitchTiles="stitch"/></filter><rect width="120" height="120" filter="url(%23n)" opacity="0.04"/></svg>');
  mix-blend-mode: multiply;
  z-index: 0;
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3 {
  font-family: 'Fraunces', 'Times New Roman', serif;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.6rem, 3vw + 1.2rem, 4rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(2rem, 2vw + 1rem, 3rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 16px;
}

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mint);
  margin-bottom: 12px;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 540px;
}

.muted {
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.5s ease,
    color 0.5s ease, border-color 0.5s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 60px rgba(30, 27, 24, 0.16);
}

.button-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button-disabled {
  background: #d7cbbb;
  color: #6f655d;
  cursor: not-allowed;
  box-shadow: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 7vw 0;
  gap: 20px;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-weight: 500;
}

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

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card-strong);
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.4s ease, background 0.4s ease, border 0.4s ease;
}

.theme-switch-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.5s ease;
}

.theme-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.6s ease;
}

.theme-switch-track {
  position: relative;
  width: 46px;
  height: 24px;
  background: var(--toggle-track);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  transition: background 0.3s ease;
}

.theme-switch-ball {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--toggle-ball);
  box-shadow: var(--toggle-shadow);
  transform: translateX(0);
  transition: transform 0.3s ease;
}

:root[data-theme='dark'] .theme-switch {
  color: var(--ink);
}

:root:not([data-theme='dark']) .theme-switch-label--light {
  color: var(--ink);
}

:root:not([data-theme='dark']) .theme-switch-label--dark {
  color: var(--muted);
}

:root[data-theme='dark'] .theme-switch-label--light {
  color: var(--muted);
}

:root[data-theme='dark'] .theme-switch-label--dark {
  color: var(--ink);
}

:root:not([data-theme='dark']) .theme-switch-label--light .theme-icon {
  transform: rotate(15deg);
}

:root[data-theme='dark'] .theme-switch-label--dark .theme-icon {
  transform: rotate(-15deg);
}

:root[data-theme='dark'] .theme-switch-ball {
  transform: translateX(22px);
}

.logo {
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hero {
  padding: 24px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  padding: 60px 7vw 0;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fadeUp 0.9s ease forwards;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 10px;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat {
  font-size: 1.3rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-card {
  display: grid;
  gap: 24px;
  justify-items: center;
}

.phone {
  width: min(320px, 90vw);
  padding: 18px;
  border-radius: 36px;
  border: 1px solid var(--line);
  background: linear-gradient(140deg, var(--hero-grad-1), var(--hero-grad-2));
  box-shadow: var(--shadow);
  animation: float 4s ease-in-out infinite;
  transition: background 0.7s ease, border-color 0.7s ease, box-shadow 0.7s ease;
}

.phone-screen {
  background: var(--card-strong);
  border-radius: 28px;
  padding: 20px;
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  transition: background 0.7s ease, border-color 0.7s ease;
}

.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

.pill {
  background: var(--mint);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.capture-card {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--card);
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  transition: background 0.7s ease, border-color 0.7s ease;
}

.capture-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: conic-gradient(from 120deg, #f7b46a, #f48b53, #e06a2b);
}

.label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 6px;
}

.title {
  font-weight: 600;
}

.subtitle {
  font-size: 0.85rem;
  color: var(--muted);
}

.macro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.macro-grid div {
  background: var(--panel);
  padding: 12px;
  border-radius: 14px;
  text-align: center;
  transition: background 0.7s ease;
}

.value {
  font-weight: 700;
  font-size: 1.1rem;
}

.recommendation {
  background: var(--panel-2);
  padding: 14px;
  border-radius: 14px;
  transition: background 0.7s ease;
}

.callout {
  background: var(--callout-bg);
  color: var(--callout-text);
  padding: 16px 20px;
  border-radius: 18px;
  max-width: 320px;
  text-align: center;
  transition: background 0.7s ease, color 0.7s ease;
}

.section {
  padding: 80px 7vw;
}

.section-header {
  max-width: 640px;
  margin-bottom: 36px;
}

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

.step {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card-muted);
  box-shadow: var(--shadow);
  animation: fadeUp 1s ease forwards;
  transition: background 0.7s ease, border-color 0.7s ease, box-shadow 0.7s ease;
}

.step-number {
  font-weight: 700;
  color: var(--accent);
}

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

.feature-grid article {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card-strong);
  transition: background 0.7s ease, border-color 0.7s ease;
}

.form-card {
  background: var(--card-muted);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--line);
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: background 0.7s ease, border-color 0.7s ease, box-shadow 0.7s ease;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
}

.honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

input,
select,
textarea {
  font: inherit;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(30, 27, 24, 0.2);
  background: var(--card-strong);
  color: var(--ink);
  transition: background 0.7s ease, color 0.7s ease, border-color 0.7s ease;
}

textarea {
  resize: vertical;
}

.form-status {
  margin: 0;
  color: var(--mint);
  font-weight: 600;
}

.download {
  padding-top: 20px;
}

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(120deg, var(--download-bg-1), var(--download-bg-2));
  color: var(--callout-text);
  padding: 36px;
  border-radius: 32px;
  transition: background 0.7s ease, color 0.7s ease;
}

.store-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer {
  padding: 40px 7vw 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}

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

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 900px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .download-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-bottom: 40px;
  }

  .hero-stats {
    gap: 16px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .theme-switch {
    width: 100%;
    justify-content: space-between;
  }
}
