/* ---------- Design tokens ---------- */
:root {
  --bg: #faf8f3;
  --bg-cream: #f3eee2;
  --bg-dark: #0f2a20;
  --surface: #ffffff;
  --ink: #14251c;
  --ink-soft: #3e544a;
  --muted: #7a8a82;
  --line: #e5ded0;

  --primary: #1f5a3d;
  --primary-deep: #14402b;
  --primary-soft: #e6efe8;
  --accent: #e58a3c;
  --accent-soft: #fbe7ce;
  --warn: #c0502a;

  --header-bg: rgba(250, 248, 243, 0.72);
  --phone-shell: #0f2a20;
  --phone-bg-1: #fdfbf5;
  --phone-bg-2: #f3eee2;
  --phone-card: #ffffff;
  --phone-ink: #14251c;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(20, 37, 28, 0.04),
    0 4px 14px rgba(20, 37, 28, 0.06);
  --shadow-md: 0 6px 20px rgba(20, 37, 28, 0.08),
    0 24px 60px rgba(20, 37, 28, 0.1);
  --shadow-lg: 0 30px 80px rgba(20, 37, 28, 0.18);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

/* ---------- Dark theme ---------- */
[data-theme="dark"] {
  --bg: #0c1511;
  --bg-cream: #121d18;
  --bg-dark: #050c09;
  --surface: #16231c;
  --ink: #eef3ee;
  --ink-soft: #b6c5bd;
  --muted: #7a8a82;
  --line: #223029;

  --primary: #5cb37f;
  --primary-deep: #78c796;
  --primary-soft: #1c3124;
  --accent: #f0a35a;
  --accent-soft: #3b2a17;
  --warn: #e57a52;

  --header-bg: rgba(12, 21, 17, 0.72);
  --phone-shell: #050c09;
  --phone-bg-1: #17241d;
  --phone-bg-2: #111b15;
  --phone-card: #1c2a22;
  --phone-ink: #eef3ee;
}

[data-theme="dark"] .eyebrow {
  background: var(--primary-soft);
  color: var(--primary-deep);
}
[data-theme="dark"] .hero::before {
  background: radial-gradient(
      1200px 600px at 85% 0%,
      rgba(240, 163, 90, 0.14),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 0% 80%,
      rgba(92, 179, 127, 0.12),
      transparent 60%
    );
}
[data-theme="dark"] .hero-blob-1 {
  background: rgba(240, 163, 90, 0.22);
}
[data-theme="dark"] .hero-blob-2 {
  background: rgba(92, 179, 127, 0.18);
}
[data-theme="dark"] .btn-primary {
  color: #0c1511;
  box-shadow: 0 8px 20px rgba(92, 179, 127, 0.2);
}
[data-theme="dark"] .btn-primary:hover {
  color: #0c1511;
}
[data-theme="dark"] .why {
  background: #050c09;
}
[data-theme="dark"] .cta {
  background: linear-gradient(135deg, #14402b 0%, #092014 100%);
}
[data-theme="dark"] .problem-card,
[data-theme="dark"] .feature,
[data-theme="dark"] .step {
  background: var(--surface);
  border-color: var(--line);
}
[data-theme="dark"] .phone-screen {
  background: linear-gradient(180deg, var(--phone-bg-1) 0%, var(--phone-bg-2) 100%);
}

html {
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
body,
.site-header,
.problem-card,
.feature,
.step,
.phone-screen,
.why,
.cta,
.site-footer,
.btn,
.nav-links a,
.section-head h2,
.brand {
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease),
    border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.4em;
  color: var(--ink);
}
h1 em,
h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--primary);
}

p {
  margin: 0 0 1em;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
}

.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.bold {
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(31, 90, 61, 0.25);
}
.btn-primary:hover {
  background: var(--primary-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(20, 64, 43, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--primary-soft);
  border-color: var(--primary-soft);
  color: var(--primary-deep);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  font-size: 17px;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
.brand-mark.sm {
  width: 36px;
  height: 36px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a {
  color: var(--ink-soft);
}
.nav-links a:hover {
  color: var(--primary);
}
.nav-links .btn-ghost {
  padding: 10px 18px;
  font-size: 14px;
}

@media (max-width: 720px) {
  .nav-links a:not(.btn) {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      1200px 600px at 85% 0%,
      rgba(229, 138, 60, 0.14),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 0% 80%,
      rgba(31, 90, 61, 0.1),
      transparent 60%
    );
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(31, 90, 61, 0.18);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(31, 90, 61, 0.35);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(31, 90, 61, 0);
  }
}

.hero h1 {
  font-size: clamp(38px, 5.6vw, 68px);
  margin-bottom: 20px;
  font-weight: 700;
}
.lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 32px;
}
.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.trust-row {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--line);
  padding-left: 14px;
}
.trust-item strong {
  font-size: 15px;
  color: var(--ink);
}
.trust-item span {
  font-size: 13px;
  color: var(--muted);
}
.trust-link {
  text-decoration: none;
  transition: border-color 0.2s var(--ease);
}
.trust-link:hover {
  border-left-color: var(--primary);
}
.trust-link:hover strong {
  color: var(--primary);
}

/* ---------- Phone mockup ---------- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 620px;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
}
.hero-blob-1 {
  width: 360px;
  height: 360px;
  background: rgba(229, 138, 60, 0.28);
  top: -40px;
  right: -40px;
}
.hero-blob-2 {
  width: 320px;
  height: 320px;
  background: rgba(31, 90, 61, 0.22);
  bottom: -30px;
  left: -30px;
}
.phone {
  position: relative;
  width: 300px;
  height: 610px;
  background: var(--phone-shell);
  border-radius: 44px;
  padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, 0.05);
  z-index: 1;
  transform: rotate(-2deg);
  transition: transform 0.6s var(--ease);
}
.phone:hover {
  transform: rotate(0deg) translateY(-4px);
}
.phone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 26px;
  background: var(--phone-shell);
  border-radius: 999px;
  z-index: 3;
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--phone-bg-1) 0%, var(--phone-bg-2) 100%);
  border-radius: 34px;
  padding: 48px 18px 18px;
  overflow: hidden;
  color: var(--phone-ink);
}
/* ---------- Generic section bits ---------- */
.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head.center {
  margin: 0 auto 48px;
  text-align: center;
}
.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
}

/* ---------- Problem ---------- */
.problem {
  padding: 100px 24px;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.problem-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s;
}
.problem-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.problem-icon {
  width: 54px;
  height: 54px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.problem-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}
.problem-card p {
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- How ---------- */
.how {
  background: var(--bg-cream);
  padding: 120px 0;
  position: relative;
}
.steps {
  display: grid;
  gap: 28px;
}
.step {
  display: grid;
  grid-template-columns: 100px 1fr 200px;
  gap: 36px;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.step-num {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  opacity: 0.25;
}
.step-body h3 {
  font-size: 26px;
  margin-bottom: 8px;
}
.step-body p {
  color: var(--ink-soft);
  margin: 0;
  max-width: 520px;
}
.step-visual {
  color: var(--primary);
  width: 140px;
  height: 140px;
  margin-left: auto;
  background: var(--primary-soft);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* ---------- Features ---------- */
.features {
  padding: 120px 24px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.feature-icon {
  width: 54px;
  height: 54px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature h3 {
  font-size: 20px;
  margin-bottom: 6px;
}
.feature p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 15px;
}

/* ---------- Why ---------- */
.why {
  background: var(--bg-dark);
  color: #f1ebdb;
  padding: 120px 0;
}
.why h2,
.why .kicker,
.why em {
  color: #f9f4e6;
}
.why .kicker {
  color: var(--accent);
}
.why em {
  color: var(--accent);
}
.why-lede {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
  font-size: 20px;
  color: rgba(241, 235, 219, 0.85);
}
.why-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 880px;
  margin: 0 auto;
}
.why-stat {
  text-align: center;
  padding: 32px 20px;
  border: 1px solid rgba(249, 244, 230, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}
.why-num {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}
.why-label {
  color: rgba(241, 235, 219, 0.7);
  font-size: 14px;
}

/* ---------- FAQ ---------- */
.faq {
  padding: 120px 24px;
}
.faq-list {
  max-width: 780px;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq details:first-child {
  border-top: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-size: 28px;
  color: var(--primary);
  flex-shrink: 0;
  font-weight: 400;
  transition: transform 0.3s var(--ease);
  line-height: 1;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq summary:hover {
  color: var(--primary);
}
.faq details p {
  margin: 14px 0 4px;
  color: var(--ink-soft);
  max-width: 640px;
}

/* ---------- CTA ---------- */
.cta {
  padding: 120px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(229, 138, 60, 0.25) 0%,
    transparent 70%
  );
  top: -200px;
  right: -200px;
  border-radius: 50%;
}
.cta-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.cta h2 {
  color: #fff;
  font-size: clamp(34px, 4.4vw, 52px);
  margin-bottom: 14px;
}
.cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  margin-bottom: 32px;
}
/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 44px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
}
.footer-nav a {
  color: var(--ink-soft);
}
.footer-nav a:hover {
  color: var(--primary);
}
.footer-meta {
  order: 3;
  flex-basis: 100%;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
  .eyebrow .dot {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual {
    min-height: 560px;
    order: -1;
  }
  .problem-grid,
  .feature-grid,
  .why-stats {
    grid-template-columns: 1fr 1fr;
  }
  .step {
    grid-template-columns: 70px 1fr;
    padding: 32px 28px;
    gap: 20px;
  }
  .step-visual {
    display: none;
  }
  .step-num {
    font-size: 48px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }
  .hero {
    padding: 32px 0 72px;
  }
  .problem,
  .how,
  .features,
  .why,
  .faq,
  .cta {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  .problem-grid,
  .feature-grid,
  .why-stats {
    grid-template-columns: 1fr;
  }
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    justify-content: center;
  }
  .trust-row {
    gap: 20px;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .phone {
    width: 270px;
    height: 550px;
  }
  .hero-visual {
    min-height: 560px;
  }
  .step {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }
  .step-num {
    font-size: 40px;
  }
}

/* ---------- Theme toggle ---------- */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.3s var(--ease);
  position: relative;
}
.theme-toggle:hover {
  background: var(--primary-soft);
  color: var(--primary-deep);
  border-color: var(--primary-soft);
  transform: rotate(-12deg);
}
.theme-toggle svg {
  position: absolute;
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}
.theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(-45deg) scale(0.6);
}
.theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}
[data-theme="dark"] .theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(45deg) scale(0.6);
}
[data-theme="dark"] .theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* ---------- Screens / Carousel ---------- */
.screens {
  padding: 120px 0 80px;
  background: var(--bg);
  overflow: hidden;
}
.section-sub {
  color: var(--ink-soft);
  font-size: 18px;
  margin-top: 8px;
}
.carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.car-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: 24px;
  padding: 40px 0;
}
.car-track {
  display: flex;
  transition: transform 0.7s var(--ease);
  will-change: transform;
}
.car-slide {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 0 16px;
}
.car-slide .phone {
  width: 280px;
  height: 570px;
  transform: rotate(0) !important;
}
.car-slide .phone:hover {
  transform: translateY(-4px) !important;
}
.car-caption {
  text-align: center;
  max-width: 340px;
}
.car-caption h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0 0 6px;
}
.car-caption p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 15px;
}
.car-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: 2;
  box-shadow: var(--shadow-sm);
}
.car-arrow:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: scale(1.08);
}
[data-theme="dark"] .car-arrow:hover {
  color: #0c1511;
}
.car-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}
.car-dot {
  width: 36px;
  height: 6px;
  border-radius: 999px;
  border: none;
  background: var(--line);
  cursor: pointer;
  transition: background 0.25s var(--ease), width 0.3s var(--ease);
  padding: 0;
}
.car-dot.active {
  background: var(--primary);
  width: 56px;
}
.car-note {
  text-align: center;
  margin: 24px 0 0;
}

/* ---------- Real-app carousel screens ----------
   Faithful recreations of the actual app (blue accent, system-font feel,
   white background). The phone shell stays brand green; everything inside
   the screen mirrors what the native app renders.
*/

.app-screen {
  /* Mirrors the app's Default theme (light palette). */
  --app-bg: #faf8f3;
  --app-surface: #ffffff;
  --app-surface-raised: #f3eee2;
  --app-border: #e8e2d1;
  --app-ink: #14251c;
  --app-muted: #7a8a82;
  --app-accent: #e58a3c;
  --app-danger: #a8553a;
  --app-warn: #b07a1e;

  background: var(--app-bg) !important;
  padding: 46px 14px 14px !important;
  color: var(--app-ink);
  font-family: var(--font-sans);
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .app-screen {
  /* Mirrors the app's Default theme (dark palette). */
  --app-bg: #0c1511;
  --app-surface: #16231c;
  --app-surface-raised: #1d2e24;
  --app-border: #253530;
  --app-ink: #eef3ee;
  --app-muted: #7a8a82;
  --app-accent: #f0a35a;
  --app-danger: #c47a5a;
  --app-warn: #d4a04a;
}
.app-scroll {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.app-screen-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.app-sub {
  font-size: 11px;
  color: var(--app-muted);
  margin-bottom: 4px;
}
.app-h4 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--app-ink);
  letter-spacing: -0.005em;
  margin: 6px 0 10px;
  line-height: 1.2;
}
.app-h4-spaced {
  margin-top: 20px;
}

/* Dashboard task card (rounded border, pill on right) */
.app-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 12px;
  padding: 11px 13px;
  margin-bottom: 6px;
}
.app-card-body {
  flex: 1;
  min-width: 0;
}
.app-card-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--app-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-card-sub {
  font-size: 11px;
  color: var(--app-muted);
  margin-top: 1px;
  text-transform: capitalize;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--app-muted);
  background: var(--app-surface-raised);
  padding: 3px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}
.app-pill.pill-today {
  color: var(--app-accent);
}

/* Category grid (Your home) */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cat-card {
  position: relative;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 12px;
  padding: 14px 13px;
}
.cat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--app-ink);
}
.cat-count {
  font-size: 10px;
  color: var(--app-muted);
  margin-top: 2px;
}
.cat-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--app-danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* FAB — uses actual app accent */
.app-fab {
  position: absolute;
  bottom: 20px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--app-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(229, 138, 60, 0.32);
}

/* Capture step (Add an item) */
.capture-head {
  text-align: center;
  margin-bottom: 28px;
}
.capture-title {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--app-ink);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.capture-sub {
  font-size: 13px;
  color: var(--app-muted);
  margin: 0;
  line-height: 1.4;
}
.capture-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* App-style buttons (used in capture and review) */
.app-btn {
  text-align: center;
  padding: 13px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--app-ink);
  border: 1.5px solid transparent;
}
.app-btn-solid {
  background: var(--app-accent);
  color: #fff;
  border-color: var(--app-accent);
}
.app-btn-outline-accent {
  border-color: var(--app-accent);
  color: var(--app-accent);
}
.app-btn-outline {
  border-color: var(--app-border);
  color: var(--app-ink);
}
.app-btn-text {
  text-align: center;
  font-size: 13px;
  color: var(--app-muted);
  padding: 10px;
}
.app-btn-spaced {
  margin-top: 14px;
}

/* Review results screen */
.review-photo {
  height: 78px;
  width: 100%;
  border-radius: 12px;
  background: var(--app-surface-raised);
  color: var(--app-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.form-field {
  margin-bottom: 10px;
}
.form-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--app-ink);
  margin-bottom: 4px;
}
.form-input {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 13px;
  color: var(--app-ink);
  line-height: 1.2;
}
.seg-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 5px;
}
.seg-opt {
  text-align: center;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 10px;
  padding: 8px 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--app-ink);
}
.seg-opt-active {
  background: var(--app-surface-raised);
  border-color: var(--app-accent);
  color: var(--app-accent);
}

/* Task toggle rows (Review results) */
.task-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 10px;
  padding: 8px 11px;
  margin-bottom: 5px;
}
.task-toggle-body {
  flex: 1;
  min-width: 0;
}
.task-toggle-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--app-ink);
}
.task-toggle-sub {
  font-size: 10px;
  color: var(--app-muted);
  margin-top: 1px;
}
.switch {
  width: 30px;
  height: 18px;
  border-radius: 999px;
  background: var(--app-border);
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
}
.switch-on {
  background: rgba(229, 138, 60, 0.45);
}
.switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--app-muted);
  transition: transform 0.2s, background 0.2s;
}
.switch-on .switch-knob {
  transform: translateX(12px);
  background: var(--app-accent);
}

/* Tasks tab — section headers */
.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 6px;
}
.sec-head:first-of-type {
  margin-top: 10px;
}
.sec-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--app-muted);
}
.sec-head-danger .sec-title {
  color: var(--app-danger);
}
.sec-count {
  font-size: 10px;
  font-weight: 700;
  color: var(--app-muted);
  background: var(--app-surface-raised);
  border-radius: 999px;
  padding: 1px 7px;
}
.sec-count-danger {
  color: var(--app-danger);
  background: rgba(168, 85, 58, 0.14);
}
[data-theme="dark"] .sec-count-danger {
  background: rgba(196, 122, 90, 0.18);
}

/* Tasks tab — task row */
.task-real {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-left: 4px solid var(--app-border);
  border-radius: 10px;
  padding: 10px 11px;
  margin-bottom: 6px;
}
.task-real-overdue {
  border-left-color: var(--app-danger);
}
.task-real-warn {
  border-left-color: var(--app-warn);
}
.task-real-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.task-real-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--app-ink);
  flex: 1;
}
.pri-badge {
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.pri-critical { background: #fee2e2; color: #b91c1c; }
.pri-high     { background: #ffedd5; color: #c2410c; }
.pri-med      { background: #fef3c7; color: #a16207; }
.pri-low      { background: #dcfce7; color: #15803d; }
[data-theme="dark"] .pri-critical { background: #7f1d1d; color: #fecaca; }
[data-theme="dark"] .pri-high     { background: #7c2d12; color: #fed7aa; }
[data-theme="dark"] .pri-med      { background: #713f12; color: #fde68a; }
[data-theme="dark"] .pri-low      { background: #14532d; color: #bbf7d0; }

.task-real-meta {
  font-size: 10px;
  color: var(--app-muted);
  margin-top: 4px;
}
.meta-danger { color: var(--app-danger); font-weight: 500; }
.meta-warn   { color: var(--app-warn); font-weight: 500; }

.task-real-btn-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}
.task-real-btn {
  background: var(--app-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 7px;
}

/* Carousel responsive */
@media (max-width: 720px) {
  .car-arrow {
    width: 40px;
    height: 40px;
  }
  .carousel {
    gap: 8px;
  }
  .car-slide .phone {
    width: 260px;
    height: 530px;
  }
  .car-viewport {
    padding: 20px 0 30px;
  }
}

/* ---------- Legal pages ---------- */
.legal-page {
  padding: 64px 0 100px;
  max-width: 820px;
}
.legal-page h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 12px;
}
.legal-meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 40px;
}
.legal-page h2 {
  font-size: 26px;
  margin: 48px 0 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.legal-page h2:first-of-type {
  border-top: none;
  padding-top: 0;
}
.legal-page h3 {
  font-size: 19px;
  margin: 28px 0 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--ink);
}
.legal-page p,
.legal-page li {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}
.legal-page ul {
  padding-left: 20px;
}
.legal-page li {
  margin-bottom: 8px;
}
.legal-page strong {
  color: var(--ink);
  font-weight: 600;
}
.legal-page a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(31, 90, 61, 0.3);
  text-underline-offset: 3px;
}
[data-theme="dark"] .legal-page a {
  text-decoration-color: rgba(92, 179, 127, 0.4);
}
.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}
.legal-page th,
.legal-page td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.legal-page th {
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-weight: 600;
}
.legal-page td {
  color: var(--ink-soft);
}
.legal-page blockquote {
  border-left: 3px solid var(--primary);
  padding: 4px 18px;
  margin: 16px 0;
  color: var(--ink-soft);
  font-style: italic;
  background: var(--primary-soft);
  border-radius: 0 8px 8px 0;
}
.legal-contact {
  background: var(--bg-cream);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 32px;
}
[data-theme="dark"] .legal-contact {
  background: var(--surface);
  border: 1px solid var(--line);
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
}

/* ---------- About page ---------- */
.about-hero {
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}
.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      900px 500px at 80% 0%,
      rgba(229, 138, 60, 0.12),
      transparent 60%
    ),
    radial-gradient(
      700px 400px at 0% 100%,
      rgba(31, 90, 61, 0.08),
      transparent 60%
    );
  z-index: -1;
}
[data-theme="dark"] .about-hero::before {
  background: radial-gradient(
      900px 500px at 80% 0%,
      rgba(240, 163, 90, 0.14),
      transparent 60%
    ),
    radial-gradient(
      700px 400px at 0% 100%,
      rgba(92, 179, 127, 0.1),
      transparent 60%
    );
}
.about-hero-inner {
  max-width: 820px;
}
.about-hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  margin: 18px 0 22px;
}
.about-hero .lede {
  max-width: 640px;
}

.about {
  padding: 40px 24px 120px;
  max-width: 1060px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 80px;
}
.about-col h2 {
  font-size: 28px;
  margin-bottom: 16px;
}
.about-col p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
}

.about-currently {
  margin-bottom: 80px;
}
.about-currently-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 18px;
}
.about-currently-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.about-currently-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.brand-mark.lg {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}
.about-currently-body h3 {
  font-family: var(--font-display);
  font-size: 32px;
  margin: 0 0 10px;
}
.about-currently-body p {
  color: var(--ink-soft);
  margin-bottom: 22px;
  font-size: 16px;
}
.about-currently-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.about-facts {
  margin-bottom: 80px;
}
.about-facts h2 {
  font-size: 28px;
  margin-bottom: 24px;
}
.facts-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.fact {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.fact dt {
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fact dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}
.fact dd a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-contact {
  text-align: center;
  padding: 56px 32px;
  background: var(--bg-cream);
  border-radius: var(--radius-lg);
}
[data-theme="dark"] .about-contact {
  background: var(--surface);
  border: 1px solid var(--line);
}
.about-contact h2 {
  font-size: 32px;
  margin-bottom: 10px;
}
.about-contact p {
  color: var(--ink-soft);
  font-size: 17px;
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 820px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 56px;
  }
  .about-currently-card {
    grid-template-columns: 1fr;
    padding: 32px 28px;
    gap: 20px;
  }
  .brand-mark.lg {
    width: 72px;
    height: 72px;
  }
  .facts-list {
    grid-template-columns: 1fr;
  }
  .fact {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
