/* StatRise landing site — palette derived from app icon:
   near-black navy #0A1320 + glowing emerald bell curve #17C97B */
:root {
  --bg: #f6faf8;
  --bg-alt: #eaf3ee;
  --surface: #ffffff;
  --ink: #0c1a24;
  --ink-soft: #3d5260;
  --accent: #0d7a52;        /* AA on light backgrounds */
  --accent-bright: #17c97b; /* glow green, used on dark panels */
  --accent-ink: #08573a;
  --hero-bg: #081018;       /* icon background navy */
  --hero-ink: #e8f5ee;
  --hero-soft: #9db8ac;
  --line: #d5e2da;
  --card-shadow: 0 1px 2px rgba(10, 19, 32, .06), 0 8px 24px rgba(10, 19, 32, .07);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #081018;
    --bg-alt: #0c1722;
    --surface: #101d2a;
    --ink: #e6f0ec;
    --ink-soft: #a7bcb2;
    --accent: #2fdd92;
    --accent-bright: #2fdd92;
    --accent-ink: #7fe9bd;
    --hero-bg: #050b11;
    --line: #1e2f3d;
    --card-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .35);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent-bright); color: #06130c; padding: .6rem 1rem;
  font-weight: 700; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

/* Header / nav */
.site-header {
  background: var(--hero-bg); color: var(--hero-ink);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(23, 201, 123, .18);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; color: var(--hero-ink); text-decoration: none; letter-spacing: .01em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand .rise { color: var(--accent-bright); }
.nav-toggle {
  display: none; background: none; border: 1px solid rgba(23, 201, 123, .4);
  color: var(--hero-ink); border-radius: 8px; padding: .45rem .7rem; font-size: 1rem; cursor: pointer;
}
.nav-links { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--hero-ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent-bright); }

/* Hero */
.hero { background: var(--hero-bg); color: var(--hero-ink); padding: 3.5rem 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center; }
.hero h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.15; margin: 0 0 1rem; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--accent-bright); }
.hero .lede { font-size: 1.15rem; color: var(--hero-soft); max-width: 34em; margin: 0 0 1.6rem; }
.hero .fineprint { color: var(--hero-soft); font-size: .85rem; margin-top: 1rem; }
.badges { display: flex; flex-wrap: wrap; gap: .8rem; }
.store-badge {
  display: inline-flex; align-items: center; gap: .6rem; text-decoration: none;
  background: #f3f8f5; color: #081018; border-radius: 12px; padding: .55rem 1.1rem;
  font-weight: 600; line-height: 1.15; border: 1px solid rgba(23,201,123,.35);
}
.store-badge svg { flex: none; }
.store-badge .small { display: block; font-size: .68rem; font-weight: 500; opacity: .75; }
.store-badge .big { display: block; font-size: 1.02rem; font-weight: 800; }
.store-badge.ghost { background: transparent; color: var(--hero-ink); }
.store-badge:hover { border-color: var(--accent-bright); }
.hero-art { text-align: center; }
.hero-art .app-icon { width: 132px; height: 132px; border-radius: 28px; box-shadow: 0 0 0 1px rgba(23,201,123,.35), 0 12px 40px rgba(23,201,123,.25); }
.curve-band { display: block; width: 100%; margin-top: 2.2rem; }

/* Stat strip */
.stat-strip { background: var(--hero-bg); border-top: 1px solid rgba(23,201,123,.18); padding: 1.3rem 0 2rem; }
.stat-strip ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; list-style: none; margin: 0; padding: 0; text-align: center; }
.stat-strip .num { display: block; font-size: 1.7rem; font-weight: 800; color: var(--accent-bright); }
.stat-strip .lbl { color: var(--hero-soft); font-size: .88rem; }

/* Sections */
section { padding: 3.5rem 0; }
section.alt { background: var(--bg-alt); }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 800; color: var(--accent); margin: 0 0 .4rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; margin: 0 0 1rem; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; margin: 0 0 .5rem; }
.section-intro { max-width: 44em; color: var(--ink-soft); margin-bottom: 2rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--card-shadow);
}
.card h3 { display: flex; align-items: center; gap: .5rem; }
.card p, .card ul { color: var(--ink-soft); font-size: .97rem; margin-bottom: 0; }
.card ul { padding-left: 1.2rem; margin-top: .4rem; }
.card li { margin: .2rem 0; }
.tag { display: inline-block; background: var(--bg-alt); color: var(--accent-ink); border: 1px solid var(--line); font-size: .78rem; font-weight: 700; padding: .12rem .55rem; border-radius: 999px; }
.icon-dot {
  flex: none; width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--hero-bg); color: var(--accent-bright); font-weight: 800; font-size: .95rem;
}

/* Problem / solution */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding-left: 1.8rem; position: relative; margin: .7rem 0; color: var(--ink-soft); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800; }
.x-list li::before { content: "✕"; color: #b4443c; }
@media (prefers-color-scheme: dark) { .x-list li::before { color: #f08a80; } }

/* FAQ */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: .8rem; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--ink); padding: 1rem 3rem 1rem 1.2rem; position: relative;
}
.faq-q::after { content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent); font-weight: 400; }
.faq-q[aria-expanded="true"]::after { content: "–"; }
.faq-a { padding: 0 1.2rem 1.1rem; color: var(--ink-soft); }
.faq-a[hidden] { display: none; }

/* Guides cards */
.guide-card { text-decoration: none; display: block; }
.guide-card h3 { color: var(--ink); }
.guide-card:hover { border-color: var(--accent); }
.guide-card .read { color: var(--accent); font-weight: 700; font-size: .92rem; }

/* CTA band */
.cta-band { background: var(--hero-bg); color: var(--hero-ink); text-align: center; }
.cta-band h2 { color: var(--hero-ink); }
.cta-band p { color: var(--hero-soft); max-width: 38em; margin: 0 auto 1.6rem; }
.cta-band .badges { justify-content: center; }

/* Footer */
.site-footer { background: var(--hero-bg); color: var(--hero-soft); padding: 2.5rem 0; font-size: .92rem; border-top: 1px solid rgba(23,201,123,.18); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 1.5rem; }
.site-footer h3 { color: var(--hero-ink); font-size: .95rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .35rem 0; }
.site-footer a { color: var(--hero-soft); }
.site-footer a:hover { color: var(--accent-bright); }
.footer-note { border-top: 1px solid rgba(23,201,123,.15); padding-top: 1.2rem; font-size: .84rem; }

/* Article / guide pages */
.article-header { background: var(--hero-bg); color: var(--hero-ink); padding: 2.6rem 0 2.2rem; }
.article-header h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.18; margin: .6rem 0 .5rem; letter-spacing: -.02em; }
.article-header .meta { color: var(--hero-soft); font-size: .92rem; }
.breadcrumb { font-size: .85rem; color: var(--hero-soft); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: .35rem; }
.breadcrumb a { color: var(--hero-soft); }
.breadcrumb a:hover { color: var(--accent-bright); }
.article { max-width: 46em; margin: 0 auto; padding: 2.5rem 1.25rem 3.5rem; }
.article h2 { margin-top: 2.2rem; }
.article h3 { margin-top: 1.6rem; }
.article p, .article li { color: var(--ink); }
.article .note {
  background: var(--bg-alt); border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0; padding: .9rem 1.1rem; margin: 1.4rem 0; color: var(--ink-soft); font-size: .97rem;
}
.article table { border-collapse: collapse; width: 100%; margin: 1.2rem 0; font-size: .95rem; }
.article th, .article td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; vertical-align: top; }
.article th { background: var(--bg-alt); }
.table-scroll { overflow-x: auto; }
.app-box {
  background: var(--hero-bg); color: var(--hero-ink); border-radius: var(--radius);
  padding: 1.5rem; margin: 2.2rem 0;
}
.app-box h2, .app-box h3 { color: var(--hero-ink); margin-top: 0; }
.app-box p { color: var(--hero-soft); }
.app-box a.btn {
  display: inline-block; background: var(--accent-bright); color: #06130c; font-weight: 800;
  text-decoration: none; padding: .6rem 1.2rem; border-radius: 10px; margin-top: .4rem;
}
.related { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.5rem; }
.related ul { padding-left: 1.2rem; }

/* Responsive */
@media (max-width: 860px) {
  .hero-grid, .split, .grid-3, .footer-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stat-strip ul { grid-template-columns: repeat(2, 1fr); row-gap: 1.4rem; }
  .hero { padding-top: 2.5rem; }
  .hero-art { order: -1; }
  .hero-art .app-icon { width: 96px; height: 96px; }
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--hero-bg); flex-direction: column; gap: 0; padding: .5rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(23,201,123,.25);
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: .45rem 0; }
  .nav-bar { position: relative; }
}
@media (min-width: 861px) and (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
