/* Improva — shared theme
   Palette: primary green #39D353, accent indigo #5B5FEF, light base.
   Mobile-first, system fonts, no web-font / third-party dependency. */

:root {
  --green: #39D353;
  --green-600: #2ba641;
  --green-700: #1f7d30;
  --indigo: #5B5FEF;
  --indigo-600: #4a4ed6;
  --ink: #0f1720;
  --ink-soft: #384250;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f6f8f7;
  --dark: #0f1720;
  --dark-soft: #1b2430;
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* ---------- Skip link / a11y ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 2px;
  border-radius: 4px;
}

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

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

a { color: var(--indigo-600); }
a:hover { color: var(--indigo); }

h1, h2, h3 { line-height: 1.2; color: var(--ink); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green), var(--indigo));
  flex: 0 0 auto;
}
/* When a real logo image is used inside .brand-mark, drop the gradient fallback */
.brand-mark.has-img { background: none; border-radius: 0; }
.brand-mark img { width: 26px; height: 26px; border-radius: 8px; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--green-700); font-weight: 600; }
/* A4-WEB-DES-04: below ~480 px the brand plus four links wrapped into a
   2 x 2 block and the sticky header grew to ~110 px. "Home" goes (the brand
   already links home), the padding tightens, and the header scrolls away
   rather than sticking if a long word still forces a second line. */
@media (max-width: 479px) {
  .site-header { position: static; }
  .nav { padding: 10px 14px; gap: 8px; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 8px 7px; font-size: 0.9rem; }
  .nav-links a[href="index.html"] { display: none; }
}
@media (max-width: 359px) {
  .nav { padding: 10px 12px; gap: 6px; }
  .nav-links a { padding: 8px 5px; }
}

/* ---------- Buttons / badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}
.btn-primary {
  background: var(--green);
  color: #04310f;
  border-color: var(--green-600);
}
.btn-primary:hover { background: var(--green-600); color: #04310f; }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--indigo); color: var(--indigo); }

/* App-Store-style placeholder badge (not a live link) */
.badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 10px 20px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  text-decoration: none;
  cursor: default;
  line-height: 1.15;
}
.badge small { font-size: 0.7rem; opacity: 0.75; font-weight: 500; }
.badge strong { font-size: 1.05rem; font-weight: 700; }
.badge[aria-disabled="true"] { opacity: 0.85; }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 40px;
  background:
    radial-gradient(1200px 400px at 80% -50px, rgba(91, 95, 239, 0.10), transparent),
    radial-gradient(900px 380px at 0% 0%, rgba(57, 211, 83, 0.12), transparent);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.1rem);
  letter-spacing: -0.02em;
  margin: 8px 0 14px;
}
.hero .subhead {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 26px;
}
.eyebrow {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--green-700);
  font-size: 0.95rem;
  text-transform: none;
}
.hero .hero-offer {
  font-size: 1rem;
  color: var(--ink);
  max-width: 46ch;
  margin: -14px 0 22px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Placeholder media slots ---------- */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  background:
    repeating-linear-gradient(45deg, var(--bg-soft), var(--bg-soft) 12px,
      #eef2f0 12px, #eef2f0 24px);
  border: 2px dashed #c7d0cb;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
}
.hero-art {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.hero-art .app-icon {
  grid-column: 1 / -1;
  height: 96px;
  max-width: 220px;
}
.phone-shot { aspect-ratio: 9 / 19; }

/* ---------- Real app screenshots ---------- */
.shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 660 / 1434;
  border: 5px solid var(--dark);
  border-radius: 28px;
  background: var(--dark);
  box-shadow: 0 12px 32px rgba(15, 23, 32, 0.16);
}
.hero-art .app-icon-img {
  grid-column: 1 / -1;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(15, 23, 32, 0.10);
}
.gallery .shot-fig { margin: 0 auto; width: 100%; max-width: 300px; }
.gallery figcaption {
  margin-top: 14px;
  text-align: center;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-soft); }
.section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.section .lede { color: var(--ink-soft); max-width: 58ch; margin: 0 0 32px; }

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.feature {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.section-alt .feature { background: #fff; }
.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(57,211,83,0.18), rgba(91,95,239,0.18));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
  font-weight: 700;
  border: 1px solid var(--line);
  font-size: 0.7rem;
}
.feature h3 { font-size: 1.15rem; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--ink-soft); }

/* How it works — dark accent band */
.steps-band {
  background: var(--dark);
  color: #eef2f0;
}
.steps-band h2 { color: #fff; }
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  counter-reset: step;
}
.step {
  background: var(--dark-soft);
  border: 1px solid #2a3644;
  border-radius: var(--radius);
  padding: 22px;
}
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--green);
  color: #04310f;
  font-weight: 800;
  margin-bottom: 12px;
}
.step h3 { color: #fff; font-size: 1.1rem; margin: 0 0 4px; }
.step p { margin: 0; color: #c3ccd6; }

/* ---------- Legal / long-form content ---------- */
.doc { padding: 48px 0 64px; }
.doc-wrap { max-width: 760px; margin: 0 auto; }
.doc h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin: 0 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 28px; font-size: 0.95rem; }
.doc-content h2 { font-size: 1.4rem; margin: 32px 0 10px; }
.doc-content h3 { font-size: 1.1rem; margin: 22px 0 8px; }
.doc-content p { margin: 0 0 14px; color: var(--ink-soft); }
.doc-content ul, .doc-content ol { margin: 0 0 16px; padding-left: 22px; color: var(--ink-soft); }
.doc-content li { margin: 6px 0; }
.doc-content a { color: var(--indigo-600); }

.insert-note {
  background: #fff8e6;
  border: 1px dashed #e6c34a;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  color: #6b551b;
  font-size: 0.95rem;
}

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  background: #fff;
}
.faq-item h3 { font-size: 1.05rem; margin: 0 0 6px; }
.faq-item p { margin: 0; color: var(--ink-soft); }

.support-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 22px 0 8px;
}

/* ---------- "Everything inside" compact grid ---------- */
.everything {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.ev-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.section-alt .ev-item { background: var(--bg); }
.ev-item h3 {
  font-size: 1.02rem;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ev-item p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.ev-item .dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--green), var(--indigo));
  flex: 0 0 auto;
}

/* ---------- Notify-at-launch (optional, static-friendly) ---------- */
.notify {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.notify h2 { font-size: 1.35rem; margin: 0 0 6px; }
.notify p { color: var(--ink-soft); margin: 0 0 18px; }
.notify-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Health / fitness disclaimer ---------- */
.disclaimer {
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 640px;
  margin: 4px auto 0;
  text-align: center;
  line-height: 1.5;
}
.footer-disclaimer {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 14px 0 0;
  max-width: 640px;
}

/* ---------- 404 ---------- */
.notfound {
  padding: 80px 0;
  text-align: center;
}
.notfound .code {
  font-size: clamp(3rem, 12vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--green-700), var(--indigo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}
.notfound h1 { font-size: clamp(1.4rem, 4vw, 1.9rem); margin: 6px 0 10px; }
.notfound p { color: var(--ink-soft); max-width: 44ch; margin: 0 auto 24px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 32px 0;
  margin-top: 8px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  justify-content: space-between;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 4px; align-items: center; }
.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}
.footer-links a:hover { background: #eef2f0; color: var(--ink); }
.footer-sep { color: var(--muted); }
.copyright { color: var(--muted); font-size: 0.9rem; }

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .everything { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .hero { padding: 88px 0 56px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .everything { grid-template-columns: repeat(3, 1fr); }
  .hero-art .app-icon { height: 110px; }
  .hero-art .app-icon-img { width: 110px; height: 110px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
