/* AssembLeia — product site. Flat, light, dependency-free. */

:root {
  --green:       #2d7236;
  --green-dark:  #1b5e20;
  --green-light: #eef6ef;
  --gold:        #c9940a;
  --red-app:     #c14040;
  --ink:         #1a1c1a;
  --muted:       #5b635c;
  --bg:          #fafaf8;
  --border:      #e3e7e2;
  --surface:     #ffffff;
  --radius:      12px;
  --radius-lg:   20px;
  --maxw:        960px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* Rainbow arc colours — overridden in dark mode */
  --arc-green: #2d7236;
  --arc-gold:  #c9940a;
  --arc-red:   #c14040;
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

a { color: var(--green); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: 3rem; margin: 0 0 0.35em; }
h2 { font-size: 1.6rem; margin: 0 0 0.8em; }
h3 { font-size: 1.05rem; margin: 0 0 0.35em; }

p { margin: 0 0 1rem; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.muted  { color: var(--muted); }
.small  { font-size: 0.9rem; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(250, 250, 248, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
}
.brand svg { width: 28px; height: 28px; }
.brand-mark { width: 28px; height: 28px; border-radius: 6px; display: block; }
.nav { display: flex; gap: 20px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; transition: color 0.15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green-dark); }

/* ---- Hero ---- */
.hero {
  padding: 72px 0 64px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}
.hero-icon {
  width: 116px;
  height: 116px;
  border-radius: 26px;
  margin-bottom: 24px;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.10),
    0 8px 28px rgba(0,0,0,0.12);
}
.tagline {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.6em;
}
.hero p.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 2.2rem;
}

/* ---- Buttons ---- */
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  border: 1.5px solid var(--green-dark);
}
.btn-primary { background: var(--green-dark); color: #fff; }
.btn-primary:hover {
  background: #154a19;
  border-color: #154a19;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(27,94,32,0.28);
}
.btn-secondary { background: transparent; color: var(--green-dark); }
.btn-secondary:hover { background: var(--green-light); transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-disabled {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
  cursor: default;
}
.btn-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--green-light);
  color: var(--green-dark);
}
.btn-badge.badge-on-primary { background: rgba(255,255,255,0.22); color: #fff; }
.cta-note {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--muted);
}

.disclaimer-pill {
  display: inline-block;
  margin-top: 28px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---- Section scaffolding ---- */
.section { padding: 60px 0; }
.section-center { text-align: center; }
.section-soft {
  background: var(--green-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Constrains prose width inside centered sections for comfortable reading */
.measure { max-width: 46rem; margin: 0 auto; }
.measure p:last-child { margin-bottom: 0; }
.faq { text-align: left; }

/* ---- Feature cards ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.icon-chip {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.icon-chip svg { width: 22px; height: 22px; }
.chip-green { background: #d3ead8; color: #1b5e20; }
.chip-gold  { background: #fdefc3; color: #7c5800; }
.chip-red   { background: #f9dada; color: #832020; }
.chip-dark  { background: #252825; color: #fff; }

.card h3 { margin: 0 0 0.35em; }
.card p  { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* ---- Screenshots ---- */
.screenshots-section { background: var(--surface); }
.screenshots-intro { color: var(--muted); margin-top: -0.2rem; }

.screenshots-strip {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 20px 0 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  justify-content: center;
}
.phone-wrap { flex: 0 0 auto; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.phone-frame {
  width: 148px;
  aspect-ratio: 9 / 19.5;
  border: 6px solid #1c1c1e;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background: #1c1c1e;
  box-shadow: 0 8px 28px rgba(0,0,0,0.16);
}
.phone-frame picture { display: block; width: 100%; height: 100%; }
.phone-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.phone-label {
  font-size: 0.84rem;
  color: var(--muted);
  text-align: center;
  font-weight: 600;
}

/* ---- Prose (privacy / support pages) ---- */
.prose { padding: 48px 0 64px; }
.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.3rem; margin-top: 2.2rem; }
.prose h2:first-of-type { margin-top: 1.6rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose .updated { color: var(--muted); font-size: 0.9rem; margin-top: -0.4rem; }
.faq h3 { margin-top: 1.6rem; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--green-light);
  padding: 32px 0;
  font-size: 0.875rem;
  color: var(--muted);
}
.site-footer a { color: var(--green); }
.site-footer .footer-links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
.site-footer .footer-links a { text-decoration: none; }

/* ---- Responsive ---- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  h1 { font-size: 2.2rem; }
  .hero { padding: 48px 0 44px; }
  .hero-icon { width: 96px; height: 96px; border-radius: 22px; }
  .screenshots-strip { justify-content: flex-start; }
}

/* ---- Dark mode ---- */
@media (prefers-color-scheme: dark) {
  :root {
    --green:       #5ecb6a;  /* links, secondary btn text — 8.7:1 on bg */
    --green-dark:  #4ab856;  /* nav active — 7.2:1 on bg */
    --green-light: #1a2b1a;  /* soft section bg, distinctly tinted */
    --gold:        #f0b429;
    --red-app:     #e06060;
    --ink:         #f0f0ec;
    --muted:       #9a9a9f;  /* 5.3:1 on surface — passes AA */
    --bg:          #1c1c1e;
    --border:      #3a3a3c;
    --surface:     #2c2c2e;
    --arc-green:   #5ecb6a;
    --arc-gold:    #f0b429;
    --arc-red:     #e06060;
  }

  .site-header {
    background: rgba(28, 28, 30, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .hero {
    background: linear-gradient(180deg, #242426 0%, var(--bg) 100%);
  }

  /* Primary btn: bright green bg + dark text → 8.7:1 contrast (WCAG AAA) */
  .btn-primary {
    background: #5ecb6a;
    border-color: #5ecb6a;
    color: #1c1c1e;
  }
  .btn-primary:hover {
    background: #6dd677;
    border-color: #6dd677;
    box-shadow: 0 4px 16px rgba(94, 203, 106, 0.3);
    transform: translateY(-1px);
  }
  /* Secondary btn: bright green outline + text — 8.7:1 on dark bg */
  .btn-secondary {
    border-color: #5ecb6a;
    color: #5ecb6a;
  }
  .btn-secondary:hover { background: rgba(94, 203, 106, 0.1); }

  .disclaimer-pill {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.05);
  }

  .section-soft {
    background: #1a2b1a;
    border-color: #2c3a2c;
  }

  .chip-green { background: #172a1b; color: #5ecb6a; }
  .chip-gold  { background: #2e2300; color: #f0b429; }
  .chip-red   { background: #2e1616; color: #e06060; }
  .chip-dark  { background: #3a3c3a; color: #f0f0ec; }

  .phone-frame { border-color: #4a4a4c; background: #000; }
  .btn-badge { background: rgba(94,203,106,0.18); color: #6dd677; }

  .site-footer { background: #161618; }
}
