/* ============================================================
   Harmonova marketing site — styles
   Colour palette (from Docs/colour-palette):
     #5A2D82  Dark Purple  — buttons, logo, primary
     #7B4BB3  Purple       — accents, subtle highlights
     #C25BAF  Pink         — star ratings (sparingly)
     #E4D3F5  Light Lilac  — site background
     #FFFFFF  White        — text on dark backgrounds
   ============================================================ */

:root {
  --dark-purple: #5A2D82;
  --purple: #7B4BB3;
  --pink: #C25BAF;
  --lilac: #E4D3F5;
  --white: #FFFFFF;

  --ink: #2a1840;            /* readable dark text on light bg */
  --ink-muted: #5b4a72;
  --bg: var(--lilac);
  --maxw: 1080px;
  --radius: 14px;
}

* { box-sizing: border-box; }

/* Images never overflow their container (keeps the hero GIF on-screen on mobile). */
img { max-width: 100%; height: auto; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

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

h1, h2, h3 { line-height: 1.2; color: var(--dark-purple); }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }

a { color: var(--purple); }
a:hover { color: var(--dark-purple); }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid rgba(90, 45, 130, 0.12);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-name { font-weight: 700; font-size: 1.25rem; color: var(--dark-purple); }
.site-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-weight: 500; color: var(--ink); }
.site-nav a:hover { color: var(--dark-purple); }

/* On narrow screens (phones) stack the brand above the nav so the logo
   and menu links never overlap; centre both and let the links wrap. */
@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: center; gap: 0.5rem; }
  .site-nav { width: 100%; justify-content: center; gap: 0.6rem 1rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.05s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--dark-purple); color: var(--white); }
.btn-primary:hover { background: var(--purple); color: var(--white); }
.btn-disabled { background: var(--purple); opacity: 0.55; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--dark-purple); border: 2px solid var(--dark-purple); }
.btn-ghost:hover { background: var(--dark-purple); color: var(--white); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 3.5rem 0 2.5rem; }
.hero-logo { height: auto; margin-bottom: 1rem; }
.hero-sub {
  font-size: 1.2rem;
  color: var(--ink-muted);
  max-width: 640px;
  margin: 1rem auto 1.75rem;
}
.cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-visual { margin-top: 2.5rem; }

.placeholder {
  border: 2px dashed var(--purple);
  border-radius: var(--radius);
  background: rgba(123, 75, 179, 0.06);
  color: var(--purple);
  padding: 1rem 1rem;
  text-align: center;
  font-style: italic;
}

/* ---------- Sections ---------- */
section { padding: 3rem 0; }
.pitch p {
  font-size: 1.3rem;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  color: var(--dark-purple);
}

/* ---------- Features ---------- */
.features h2, .how h2, .faq h2, .trust h2, .platforms h2, .final-cta h2 {
  text-align: center;
  margin-bottom: 2rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}
.feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 18px rgba(90, 45, 130, 0.08);
}
.feature h3 { margin-top: 0; font-size: 1.15rem; }
.feature p { margin-bottom: 0; color: var(--ink-muted); }

/* ---------- Trust ---------- */
.trust {
  background: var(--dark-purple);
  color: var(--white);
  border-radius: var(--radius);
  margin: 2rem auto;
  max-width: var(--maxw);
}
.trust h2 { color: var(--white); }
.trust p { max-width: 720px; margin: 0.75rem auto; text-align: center; }
.trust a { color: var(--lilac); font-weight: 600; }

/* ---------- Platforms ---------- */
.platforms { text-align: center; }
.muted { color: var(--ink-muted); }

/* ---------- How it works ---------- */
.steps { list-style: none; padding: 0; max-width: 640px; margin: 0 auto; }
.steps li { display: flex; gap: 1.25rem; align-items: flex-start; margin-bottom: 1.5rem; }
.step-num {
  flex: 0 0 auto;
  width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  background: var(--purple); color: var(--white);
  border-radius: 50%; font-weight: 700;
}
.steps h3 { margin: 0.2rem 0 0.25rem; }
.steps p { margin: 0; color: var(--ink-muted); }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  max-width: 760px;
  margin-left: auto; margin-right: auto;
}
.faq summary { font-weight: 600; cursor: pointer; color: var(--dark-purple); }
.faq p { margin: 0.75rem 0 0; color: var(--ink-muted); }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; }

/* ---------- Prose (privacy page) ---------- */
.prose { padding: 3rem 0; }
.prose .container { max-width: 760px; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; color: var(--purple); }
.prose a { font-weight: 500; }
/* Images never overflow the text column; height scales to keep them sharp. */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.25rem 0;
}

.prose p img { margin: 0; } /* inline images don't get extra margin */
.prose ul img { margin: 0; } /* inline images don't get extra margin */
.prose ol img { margin: 0; } /* inline images don't get extra margin */
/* Optional: ![alt](img.png?class=center) to centre an image. */
.prose img.center { margin-left: auto; margin-right: auto; display: block; }

/* ---------- Alerts / callouts (GitHub-style) ---------- */
.alert {
  border-left: 4px solid var(--purple);
  background: rgba(123, 75, 179, 0.08);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.85rem 1.1rem;
  margin: 1.5rem 0;
}
.alert > p { margin: 0.35rem 0 0; }
.alert .alert-title {
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.85rem;
  color: var(--purple);
}
.alert-note      { border-color: var(--purple);      background: rgba(123, 75, 179, 0.08); }
.alert-note      .alert-title { color: var(--purple); }
.alert-tip       { border-color: #2e7d52; background: rgba(46, 125, 82, 0.09); }
.alert-tip       .alert-title { color: #2e7d52; }
.alert-important { border-color: var(--dark-purple); background: rgba(90, 45, 130, 0.08); }
.alert-important .alert-title { color: var(--dark-purple); }
.alert-warning   { border-color: #c98a00; background: rgba(201, 138, 0, 0.10); }
.alert-warning   .alert-title { color: #b07c00; }
.alert-caution   { border-color: #c0392b; background: rgba(192, 57, 43, 0.08); }
.alert-caution   .alert-title { color: #c0392b; }

/* ---------- Instructions / docs list ---------- */
.doc-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.doc-list li {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 18px rgba(90, 45, 130, 0.08);
}
.doc-list a { font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.doc-list-desc { display: block; color: var(--ink-muted); margin-top: 0.2rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark-purple);
  color: var(--white);
  padding: 2.5rem 0;
  margin-top: 2rem;
}
.footer-inner { display: flex; flex-direction: column; gap: 1rem; align-items: center; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: var(--lilac); text-decoration: none; }
.footer-nav a:hover { color: var(--white); }
.footer-copy { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; margin: 0; }
