/* HoMe landing page — single stylesheet, no build step */

:root {
  /* brand hues (use for fills, icons, borders, large decorative numerals) */
  --color-primary: #0473c7;
  --color-primary-tint: #CBE7F5;
  --color-secondary: #c48b0c;
  --color-secondary-tint: #f2eddf;
  --color-danger: #c20411;
  --color-danger-tint: #FFDAD6;

  /* text-safe variants (WCAG AA) */
  --color-primary-text: #0463ab;
  --color-secondary-text: #8a6208;
  --color-danger-text: #a5040f;

  /* surfaces */
  --color-bg: #EBECF5;
  --color-surface: #FFFFFF;
  --color-surface-alt: #f5f2f2;

  /* text */
  --color-text: #181C22;
  --color-text-muted: #4b5058;
  --color-text-muted-on-surface: #707783;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-card: 16px;
  --radius-pill: 999px;
  --radius-frame: 34px;

  --shadow-card: 0 2px 10px rgba(24, 28, 34, 0.06);
  --shadow-lift: 0 20px 45px rgba(4, 115, 199, 0.18);

  --container: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-primary: #4db3ea;
    --color-primary-tint: #012b40;
    --color-secondary: #c48b0c;
    --color-secondary-tint: #3b2901;
    --color-danger: #ff6961;
    --color-danger-tint: #400104;

    --color-primary-text: #6cc3f2;
    --color-secondary-text: #e0ad3f;
    --color-danger-text: #ff8a83;

    --color-bg: #0D0F12;
    --color-surface: #13161a;
    --color-surface-alt: #22272e;

    --color-text: #E2E2E9;
    --color-text-muted: #b3b8c2;
    --color-text-muted-on-surface: #9AA0AC;

    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.35);
    --shadow-lift: 0 20px 45px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-primary-text); }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 800; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(24, 28, 34, 0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-text);
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.primary-nav a:hover { color: var(--color-primary-text); }

.header-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; }

/* mobile nav via <details> — zero JS required */
.mobile-nav-details { display: none; }

@media (max-width: 860px) {
  .primary-nav-links { display: none; }
  .mobile-nav-details { display: block; margin-left: auto; }
  .mobile-nav-details summary {
    list-style: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
  }
  .mobile-nav-details summary::-webkit-details-marker { display: none; }
  .mobile-nav-details summary svg { width: 24px; height: 24px; }
  .mobile-nav-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
    padding: 16px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .mobile-nav-panel a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    padding: 12px 4px;
    border-bottom: 1px solid var(--color-bg);
  }
  .header-cta { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary-text);
}
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  text-decoration: none;
}
.btn-store svg { width: 26px; height: 26px; flex-shrink: 0; }
.btn-store .store-text { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.btn-store .store-text small { font-size: 0.65rem; font-weight: 400; opacity: 0.85; }
.btn-store .store-text strong { font-size: 1.05rem; font-weight: 700; }

.btn-store-disabled {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 2px solid var(--color-text-muted-on-surface);
  color: var(--color-text-muted);
  padding: 9px 18px;
  border-radius: 12px;
  cursor: default;
}
.btn-store-disabled svg { width: 22px; height: 22px; opacity: 0.7; }
.btn-store-disabled .store-text { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.btn-store-disabled .store-text small { font-size: 0.65rem; }
.btn-store-disabled .store-text strong { font-size: 0.9rem; font-weight: 700; }

.pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.eyebrow {
  display: inline-block;
  color: var(--color-primary-text);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 12px;
}
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.section-head p { color: var(--color-text-muted); font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 40px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  letter-spacing: -0.01em;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 46ch;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 20px;
}
.hero-trust {
  color: var(--color-text-muted-on-surface);
  font-size: 0.88rem;
  font-weight: 600;
}
.hero-visual { display: flex; justify-content: center; }

/* ---------- Download card (store buttons + QR, unified) ---------- */
.download-card {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  margin-top: 22px;
  background: var(--color-surface);
  border-radius: 20px;
  padding: 20px 26px;
  box-shadow: var(--shadow-card);
  text-align: left;
}
.download-card .hero-ctas { margin: 0; }
.download-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  color: var(--color-text-muted-on-surface);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.download-divider::before,
.download-divider::after {
  content: "";
  flex: 1;
  width: 1px;
  background: currentColor;
  opacity: 0.2;
}
.qr-block {
  display: flex;
  align-items: center;
  gap: 12px;
}
.qr-block img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  flex-shrink: 0;
}
.qr-block span {
  font-size: 0.78rem;
  color: var(--color-text-muted-on-surface);
  max-width: 120px;
  line-height: 1.35;
}

/* ---------- Screenshot card ---------- */
.shot {
  display: block;
  width: 260px;
  max-width: 100%;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  flex-shrink: 0;
  line-height: 0;
}
.shot img {
  width: 100%;
  height: auto;
  display: block;
}
.shot.lg { width: 320px; }
.shot.sm { width: 190px; border-radius: 16px; box-shadow: var(--shadow-card); }

.hero-visual .shot { width: min(340px, 80vw); }

/* ---------- Problem / stat cards ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.stat-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
}
.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: var(--color-danger-tint);
  color: var(--color-danger-text);
}
.stat-card .stat-icon svg { width: 22px; height: 22px; }
.stat-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.stat-card p { color: var(--color-text-muted); font-size: 0.92rem; margin: 0; }

.problem-copy {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.08rem;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 56px;
}
.step-card {
  text-align: left;
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step-card p { color: var(--color-text-muted); font-size: 0.95rem; }

.how-visuals {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

/* ---------- Features grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-card .feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-primary-tint);
  color: var(--color-primary-text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-card .feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.1rem; margin: 0; }
.feature-card p { color: var(--color-text-muted); font-size: 0.93rem; margin: 0; }
.feature-card .shot { margin-top: auto; align-self: center; }

.score-ring {
  margin: auto auto 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--color-primary) 0% 85%, var(--color-surface-alt) 85% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.score-ring span {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--color-text);
}

.dot-grid {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  max-width: 200px;
}
.dot-grid span {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--color-primary-tint);
  border: 2px solid var(--color-primary);
}
.dot-grid span.dot-more {
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  border: none;
}

.mini-steps {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mini-steps li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
.mini-steps li span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary-tint);
  color: var(--color-primary-text);
  font-weight: 800;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- Split sections (lifespan / savings) ---------- */
.split-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split-visual { display: flex; justify-content: center; }
.split-copy ul { margin: 0 0 20px; padding-left: 20px; color: var(--color-text-muted); }
.split-copy li { margin-bottom: 10px; }
.split-copy p:not([class]) { color: var(--color-text-muted); }

.lifespan-note {
  display: inline-block;
  background: var(--color-primary-tint);
  color: var(--color-primary-text);
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
}
.savings-highlight {
  display: inline-block;
  background: var(--color-secondary-tint);
  color: var(--color-secondary-text);
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 780px;
  margin: 0 auto;
}
.price-card {
  background: var(--color-surface);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
}
.price-card.featured {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-lift);
}
.price-card .pill { background: var(--color-primary-tint); color: var(--color-primary-text); margin-bottom: 14px; }
.price-card.featured .pill { background: rgba(255,255,255,0.2); color: #fff; }
.price-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.price-amount { font-size: 2.1rem; font-weight: 800; margin: 10px 0 18px; }
.price-amount span { font-size: 0.95rem; font-weight: 400; opacity: 0.75; }
.price-list { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.price-list li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; }
.price-list svg { width: 20px; height: 20px; flex-shrink: 0; }
.price-card .btn { width: 100%; }
.price-card:not(.featured) .btn-primary { background: var(--color-surface-alt); color: var(--color-text); }
.price-card.featured .btn-primary { background: #fff; color: var(--color-primary-text); }

.pricing-visual { display: flex; justify-content: center; margin-top: 48px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--color-surface);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 4px 22px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform 0.2s ease; flex-shrink: 0; width: 20px; height: 20px; color: var(--color-primary-text); }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item p { color: var(--color-text-muted); padding-bottom: 18px; margin: 0; }

/* ---------- Final CTA band ---------- */
.cta-band {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 520px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 56px 0 32px;
  border-top: 1px solid rgba(24,28,34,0.08);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand { max-width: 320px; }
.footer-brand p { color: var(--color-text-muted); font-size: 0.9rem; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 14px; color: var(--color-text-muted-on-surface); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--color-text); text-decoration: none; font-size: 0.92rem; }
.footer-col a:hover { color: var(--color-primary-text); }
.footer-bottom {
  border-top: 1px solid rgba(24,28,34,0.08);
  padding-top: 24px;
  color: var(--color-text-muted-on-surface);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin: 0 auto; }
  .hero-ctas { justify-content: center; }
  .hero-visual { order: -1; margin-bottom: 8px; }
  .stat-row, .steps, .features-grid { grid-template-columns: 1fr 1fr; }
  .split-wrap { grid-template-columns: 1fr; }
  .split-wrap .split-visual { order: -1; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .stat-row, .steps, .features-grid, .pricing-grid { grid-template-columns: 1fr; }
  .download-card {
    flex-direction: column;
    width: 100%;
    padding: 22px;
  }
  .download-card .hero-ctas { justify-content: center; }
  .download-divider {
    flex-direction: row;
    width: 100%;
  }
  .download-divider::before, .download-divider::after {
    width: auto;
    height: 1px;
  }
  .qr-block { justify-content: center; }
}
