:root {
  --background: #141312;
  --surface: #201f1e;
  --surface-hover: #2b2a29;
  --primary: #e69500;
  --primary-light: #ffb95b;
  --text-primary: #f5f2eb;
  --text-secondary: #c9c6c0;
  --text-muted: #8c867a;
  --outline: #534434;
  --font-heading: "Lora", serif;
  --font-body: "Outfit", sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--background);
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, summary { font: inherit; }
:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 4px; }

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

.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}
.container--narrow { width: min(100% - 40px, 920px); }
.section { padding: clamp(72px, 8vw, 112px) 0; position: relative; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(20px, calc((100vw - var(--container)) / 2));
  background: color-mix(in srgb, var(--background) 88%, transparent);
  border-bottom: 1px solid rgba(83, 68, 52, 0.6);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
}
.brand img { width: 32px; height: 32px; object-fit: contain; }
.primary-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.primary-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.primary-nav a:hover { color: var(--text-primary); }
.store-link--compact {
  padding: 0 14px;
  color: var(--background);
  background: var(--primary);
  border-radius: 6px;
}
.store-link--compact + .store-link--compact {
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--outline);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--outline);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-primary);
}
.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  min-height: calc(100vh - 73px);
  display: grid;
  align-items: center;
  padding-top: clamp(64px, 8vw, 96px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto 35%;
  height: 70%;
  background: radial-gradient(circle, rgba(230, 149, 0, 0.08), transparent 62%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: clamp(44px, 7vw, 92px);
  align-items: center;
}
.hero__copy { max-width: 680px; }
.eyebrow {
  margin: 0 0 16px;
  color: var(--primary-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0;
}
h1 { font-size: clamp(2.75rem, 7vw, 4rem); max-width: 720px; }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; color: var(--text-secondary); }
.hero__lead {
  max-width: 620px;
  margin-top: 26px;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-primary);
}
.benefit-line {
  margin-top: 18px;
  color: var(--text-secondary);
  font-weight: 600;
}
.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}
.store-badges--center { justify-content: center; }
.store-badges a {
  display: inline-flex;
  align-items: center;
  min-width: 150px;
  min-height: 52px;
  transition: transform 180ms ease, opacity 180ms ease;
}
.store-badges a:hover { transform: translateY(-2px); opacity: 0.92; }
.store-badges img { height: 50px; width: auto; object-fit: contain; }
.store-badges a[href*="play.google.com"] img { height: 60px; }

.device-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
}
.device-glow {
  position: absolute;
  width: min(72vw, 560px);
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(230, 149, 0, 0.18), transparent 60%);
  filter: blur(40px);
}
.hero-device {
  position: relative;
  z-index: 1;
  transform: rotate(8deg);
}
.phone-frame {
  width: min(100%, 380px);
  aspect-ratio: 1284 / 2778;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 246, 229, 0.16);
  border-radius: 46px;
  background: #050403;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.05),
    inset 0 0 0 8px #080604,
    0 32px 60px rgba(0, 0, 0, 0.58);
}
.phone-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 36px;
  background: var(--background);
}
.phone-frame--hero {
  max-height: min(76vh, 760px);
}
.phone-frame--card {
  width: min(100%, 260px);
  margin-inline: auto;
  padding: 7px;
  border-radius: 32px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 0 0 6px #080604,
    0 22px 42px rgba(0, 0, 0, 0.34);
}
.phone-frame--card img {
  border-radius: 25px;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.split h2 + p, .section-heading p, .final-cta p { margin-top: 18px; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
}
.breadcrumb a { color: var(--primary-light); }
.breadcrumb span + span::before {
  content: "/";
  margin-right: 8px;
  color: var(--text-muted);
}
.seo-hero {
  min-height: 0;
  padding: clamp(56px, 7vw, 88px) 0 clamp(64px, 8vw, 104px);
}
.seo-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}
.seo-hero__copy { max-width: 740px; }
.seo-hero__lead {
  margin-top: 22px;
  color: var(--text-primary);
  font-size: clamp(1.08rem, 2vw, 1.22rem);
}
.seo-hero__note {
  margin-top: 16px;
  color: var(--text-secondary);
  font-weight: 600;
}
.seo-section { border-top: 1px solid rgba(83, 68, 52, 0.45); }
.seo-section--alt { background: #11100f; }
.seo-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1fr);
  gap: clamp(30px, 5vw, 68px);
  align-items: start;
}
.seo-copy--single {
  display: block;
  max-width: 880px;
}
.seo-copy p + p { margin-top: 14px; }
.content-stack {
  display: grid;
  gap: 18px;
}
.content-card,
.formula-card,
.mistake-card,
.related-card {
  background: var(--surface);
  border: 1px solid rgba(83, 68, 52, 0.85);
  border-radius: 8px;
}
.content-card,
.formula-card,
.mistake-card,
.related-card { padding: 22px; }
.formula-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-light);
  font-size: 0.92rem;
  text-transform: uppercase;
}
.formula-card code {
  display: block;
  overflow-x: auto;
  padding: 16px;
  color: var(--text-primary);
  background: var(--background);
  border: 1px solid rgba(83, 68, 52, 0.7);
  border-radius: 8px;
  white-space: nowrap;
}
.example-table { margin-top: 20px; }
.mistake-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.mistake-card h3,
.related-card h3 { margin-bottom: 10px; }
.related-card {
  display: flex;
  flex-direction: column;
  min-height: 170px;
}
.related-card a {
  margin-top: auto;
  color: var(--primary-light);
  font-weight: 700;
}
.app-solution {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.app-solution__list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.app-solution__list li {
  padding-left: 28px;
  position: relative;
  color: var(--text-secondary);
}
.app-solution__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-light);
  font-weight: 700;
}
.inline-link {
  color: var(--primary-light);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.value-grid article,
.feature-card,
.screenshot-card,
.table-wrap,
.faq details {
  background: var(--surface);
  border: 1px solid rgba(83, 68, 52, 0.85);
  border-radius: 8px;
}
.value-grid article { padding: 22px; }
.value-grid h3, .feature-card h3 { margin-bottom: 10px; }

.features, .comparison, .footer { background: #11100f; }
.section-heading {
  max-width: 700px;
  margin: 0 auto 48px;
  text-align: center;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.feature-card {
  min-height: 440px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.feature-card:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
  transform: translateY(-3px);
}
.feature-visual {
  min-height: 184px;
  margin-bottom: 30px;
  padding: 22px;
  display: grid;
  align-content: center;
  gap: 12px;
  color: var(--text-secondary);
  background: var(--background);
  border: 1px solid rgba(83, 68, 52, 0.7);
  border-radius: 8px;
}
.feature-visual strong { color: var(--primary-light); font: 500 2rem/1 var(--font-heading); }
.feature-visual small { color: var(--text-muted); }
.meter { height: 10px; overflow: hidden; border-radius: 999px; background: var(--surface-hover); }
.meter span { display: block; height: 100%; background: var(--primary); }
.feature-visual--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-visual--list span, .feature-visual--timeline span {
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid rgba(83, 68, 52, 0.7);
  border-radius: 6px;
}
.feature-visual--timeline strong {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary-light);
  background: rgba(230, 149, 0, 0.12);
  border-radius: 6px;
}
.feature-visual--scaling {
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  text-align: center;
}
.feature-visual--scaling button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  color: var(--text-primary);
  background: var(--surface-hover);
}
.feature-visual--scaling small { grid-column: 1 / -1; }
.feature-card p { margin-top: auto; }

.screenshot-carousel { position: relative; }
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.screenshot-card {
  padding: 18px;
  text-align: center;
}
.screenshot-card h3 {
  min-height: 2.8em;
  margin-top: 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}
.carousel-control { display: none; }

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}
th, td {
  padding: 18px;
  text-align: left;
  border-bottom: 1px solid rgba(83, 68, 52, 0.75);
}
thead th {
  color: var(--text-primary);
  font-weight: 600;
  background: #171615;
}
tbody th { font-weight: 600; color: var(--text-primary); }
td:nth-child(3), th:nth-child(3) {
  background: rgba(230, 149, 0, 0.05);
  border-left: 1px solid rgba(230, 149, 0, 0.32);
}
.state { color: var(--text-secondary); }
.state--yes::before { content: "✓ "; color: var(--primary-light); font-weight: 700; }
.state--no::before { content: "- "; color: var(--text-muted); }

.faq-list {
  display: grid;
  gap: 12px;
}
.faq details { padding: 0 22px; }
.faq summary {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  color: var(--text-primary);
  font-weight: 600;
}
.faq summary::after {
  content: "+";
  color: var(--primary-light);
  font-size: 1.5rem;
}
.faq details[open] summary::after { content: "-"; }
.faq details p { padding: 0 0 22px; }

.final-cta {
  text-align: center;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 10%, rgba(230, 149, 0, 0.12), transparent 50%);
  pointer-events: none;
}
.final-cta .container { position: relative; z-index: 1; }

.footer {
  padding: 48px 0;
  border-top: 1px solid rgba(83, 68, 52, 0.7);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 1.5fr;
  gap: 32px;
}
.footer__brand { margin-bottom: 8px; }
.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 22px;
  color: var(--text-secondary);
  font-weight: 600;
}
.footer__nav-group {
  display: grid;
  gap: 10px;
  align-content: start;
}
.footer__nav-group h2 {
  margin: 0 0 4px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}
.footer a:hover { color: var(--primary-light); }
.copyright {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal--visible { opacity: 1; transform: translateY(0); }
.reveal--delay-1 { transition-delay: 100ms; }
.reveal--delay-2 { transition-delay: 200ms; }
.reveal--delay-3 { transition-delay: 300ms; }

@media (max-width: 1024px) {
  .site-header { padding-inline: 20px; }
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed;
    inset: 73px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--outline);
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { justify-content: center; }
  .hero__grid, .split { grid-template-columns: 1fr; }
  .seo-hero__grid,
  .seo-copy,
  .app-solution { grid-template-columns: 1fr; }
  .hero__copy { text-align: center; margin-inline: auto; }
  .seo-hero__copy { margin-inline: auto; text-align: center; }
  .breadcrumb { justify-content: center; }
  .hero__lead { margin-inline: auto; }
  .store-badges { justify-content: center; }
  .device-stage { min-height: 460px; }
  .phone-frame--hero {
    max-width: min(88vw, 360px);
    max-height: 720px;
  }
}

@media (max-width: 768px) {
  .container, .container--narrow { width: min(100% - 32px, var(--container)); }
  .section { padding: 64px 0; }
  h1 { font-size: 2.55rem; }
  .value-grid, .feature-grid, .mistake-grid, .related-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; padding: 24px; }
  .screenshot-carousel {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 8px;
  }
  .screenshot-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 4px;
  }
  .screenshot-card {
    flex: 0 0 88%;
    scroll-snap-align: center;
  }
  .carousel-control {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--outline);
    border-radius: 8px;
    color: var(--text-primary);
    background: var(--surface);
    font-size: 2rem;
    line-height: 1;
  }
  .table-wrap {
    margin-inline: -16px;
    border-inline: 0;
    border-radius: 0;
  }
  table { min-width: 560px; }
  th, td { padding: 14px; }
  .footer__grid { grid-template-columns: 1fr; text-align: center; }
  .footer__brand { justify-content: center; }
  .footer nav { justify-content: center; }
}

@media (max-width: 420px) {
  h1 { font-size: 2.35rem; }
  .hero-device { transform: rotate(5deg); }
  .store-badges img { height: 46px; }
  .store-badges a[href*="play.google.com"] img { height: 55px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .hero-device { transform: none; }
}
