:root {
  --ink: #15231c;
  --muted: #3d5348;
  --paper: #f3f6f2;
  --leaf: #1f7a4d;
  --leaf-deep: #145c39;
  --sand: #d8e4d6;
  --hero-glow: #9bc9a8;
  --white: #f7fbf8;
  --shadow: rgba(21, 35, 28, 0.08);
  --shadow-lg: rgba(21, 35, 28, 0.14);
  font-family: "Sora", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
}

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

a {
  color: var(--leaf-deep);
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ── Header ── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(243, 246, 242, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
  border-color: var(--sand);
  box-shadow: 0 4px 24px var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.logo span {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
  background: var(--sand);
}

.nav-cta {
  margin-left: 0.5rem;
  padding: 0.55rem 1.1rem !important;
  background: var(--leaf) !important;
  color: var(--white) !important;
}

.nav-cta:hover {
  background: var(--leaf-deep) !important;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--leaf);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(31, 122, 77, 0.28);
}

.btn-primary:hover {
  background: var(--leaf-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(247, 251, 248, 0.35);
}

.btn-ghost:hover {
  background: rgba(247, 251, 248, 0.08);
}

.btn-light {
  background: var(--white);
  color: var(--leaf-deep);
}

.btn-outline {
  background: transparent;
  color: var(--leaf-deep);
  border: 1.5px solid var(--sand);
}

.btn-outline:hover {
  border-color: var(--leaf);
  background: rgba(31, 122, 77, 0.06);
}

/* ── Hero ── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  padding-top: 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, var(--hero-glow) 0%, transparent 55%),
    linear-gradient(160deg, #0d3d28 0%, #1a5c3c 42%, #0f2a1d 100%);
  animation: drift 18s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.45;
  animation: grain 12s linear infinite;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-block: clamp(3rem, 8vw, 6rem);
}

.hero-content {
  animation: rise 0.9s ease-out both;
}

.hero-tagline {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(247, 251, 248, 0.75);
  background: rgba(247, 251, 248, 0.1);
  border-radius: 999px;
  border: 1px solid rgba(247, 251, 248, 0.15);
}

.hero h1 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.hero-lede {
  margin: 1.25rem 0 0;
  font-size: 1.1rem;
  color: rgba(247, 251, 248, 0.82);
  max-width: 38ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  animation: rise 0.9s 0.15s ease-out both;
}

.phone-mock {
  width: min(280px, 90%);
  aspect-ratio: 9 / 19;
  border-radius: 32px;
  background: linear-gradient(180deg, #1a2e24 0%, #0d1a14 100%);
  border: 3px solid rgba(247, 251, 248, 0.15);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.phone-notch {
  width: 80px;
  height: 6px;
  margin: 0 auto 0.5rem;
  background: rgba(247, 251, 248, 0.12);
  border-radius: 999px;
}

.phone-card {
  background: rgba(247, 251, 248, 0.06);
  border: 1px solid rgba(247, 251, 248, 0.1);
  border-radius: 14px;
  padding: 0.85rem;
}

.phone-card-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(247, 251, 248, 0.5);
  margin-bottom: 0.35rem;
}

.phone-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.phone-card-meta {
  font-size: 0.72rem;
  color: rgba(247, 251, 248, 0.55);
}

.phone-progress {
  height: 4px;
  margin-top: 0.65rem;
  background: rgba(247, 251, 248, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.phone-progress-bar {
  height: 100%;
  width: 68%;
  background: var(--hero-glow);
  border-radius: 999px;
}

.phone-lock {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1rem;
}

.phone-lock-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(31, 122, 77, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.phone-lock-quote {
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(247, 251, 248, 0.75);
  max-width: 16ch;
}

/* ── Sections ── */

section {
  padding-block: clamp(4rem, 10vw, 6.5rem);
}

.section-header {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 3rem;
}

.section-label {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--leaf);
}

.section-header h2 {
  margin: 0 0 0.75rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ── Features ── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 16px;
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px var(--shadow);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 122, 77, 0.1);
  border-radius: 12px;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ── How it works ── */

.how-section {
  background: var(--white);
  border-block: 1px solid var(--sand);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  text-align: center;
  counter-increment: step;
}

.step-num {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--leaf);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.step p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ── Premium ── */

.premium-banner {
  background: linear-gradient(135deg, var(--leaf-deep) 0%, #0d3d28 100%);
  border-radius: 24px;
  padding: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.premium-badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(247, 251, 248, 0.15);
  border-radius: 999px;
}

.premium-banner h2 {
  margin: 0 0 0.75rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.premium-banner p {
  margin: 0;
  color: rgba(247, 251, 248, 0.8);
  max-width: 42ch;
}

.premium-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.premium-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: rgba(247, 251, 248, 0.9);
}

.premium-list li::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(247, 251, 248, 0.15);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Download ── */

.download-section {
  text-align: center;
}

.download-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 2.5rem 3rem;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 20px;
  box-shadow: 0 8px 32px var(--shadow);
}

.download-card img {
  width: 72px;
  border-radius: 16px;
}

.download-card h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.75rem;
}

.download-card p {
  margin: 0;
  color: var(--muted);
  max-width: 32ch;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
}

.store-badge svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.store-badge-text {
  text-align: left;
  line-height: 1.2;
}

.store-badge-text small {
  display: block;
  font-size: 0.65rem;
  opacity: 0.75;
}

.store-badge-text strong {
  font-size: 0.95rem;
}

/* ── Legal pages ── */

.legal-page {
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.legal-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--sand);
}

.legal-header h1 {
  margin: 0 0 0.5rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
}

.legal-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-content {
  max-width: 42rem;
}

.legal-content h2 {
  margin: 2.25rem 0 0.75rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.legal-content h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.25rem;
}

.legal-content li {
  margin-bottom: 0.4rem;
}

.legal-content a {
  color: var(--leaf);
}

/* ── Footer ── */

.site-footer {
  background: var(--ink);
  color: rgba(247, 251, 248, 0.65);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.9rem;
  max-width: 28ch;
}

.footer-col h4 {
  margin: 0 0 1rem;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(247, 251, 248, 0.65);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(247, 251, 248, 0.1);
  font-size: 0.85rem;
}

/* ── Animations ── */

@keyframes drift {
  from { transform: scale(1); }
  to { transform: scale(1.06) translate(-1.5%, 1%); }
}

@keyframes grain {
  from { background-position: 0 0; }
  to { background-position: 18px 18px; }
}

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

/* ── Responsive ── */

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

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

  .premium-banner {
    grid-template-columns: 1fr;
  }

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

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

  .site-nav {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--sand);
    padding: 1rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    padding: 0.75rem 1rem;
  }

  .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-lede {
    margin-inline: auto;
  }

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

  .hero-visual {
    order: -1;
  }

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

@media (max-width: 560px) {
  .features-grid,
  .steps {
    grid-template-columns: 1fr;
  }

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

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

  .download-card {
    padding: 2rem 1.5rem;
    width: 100%;
  }
}
