/* Walu marketing site — shared styles */

:root {
  --bg: #f8fafc;          /* slate-50 */
  --bg-soft: #ffffff;
  --ink: #0f172a;         /* slate-900 */
  --ink-2: #1e293b;       /* slate-800 */
  --ink-3: #334155;       /* slate-700 — body text on light */
  --muted: #475569;       /* slate-600 — captions, ≥4.5:1 on white */
  --line: #e2e8f0;        /* slate-200 */
  --line-2: #cbd5e1;      /* slate-300 */
  --accent: #047857;      /* emerald-700 — links/buttons on light bg, AA on white */
  --accent-strong: #065f46;/* emerald-800 — hover */
  --accent-on-dark: #34d399; /* emerald-400 — links on dark */
  --dark: #0b1220;        /* darker slate */
  --dark-2: #111c2e;
  --on-dark: #e2e8f0;     /* slate-200 — body on dark, ≥4.5:1 */
  --on-dark-muted: #94a3b8;/* slate-400 — only for ≥18px on dark */
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 30px rgba(15,23,42,.06);
  --shadow-lg: 0 10px 40px rgba(15,23,42,.12);
}

html { width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body {
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
  margin: 0;
  background: var(--bg);
  color: var(--ink-3);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }

* { box-sizing: border-box; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 650;
}
h1 { font-size: clamp(2rem, 5vw + 0.5rem, 3.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw + 0.5rem, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.2vw + 0.7rem, 1.35rem); }
p { margin: 0 0 1em; }
strong { color: var(--ink-2); font-weight: 600; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  min-height: 44px;
  padding: 4px 0;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background-color: #047857;
  background-image: linear-gradient(135deg, #059669 0%, #047857 100%);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(5,150,105,.3);
}
.nav-desktop { display: none; gap: 28px; align-items: center; }
.nav-desktop a { color: var(--ink-3); font-size: 0.95rem; font-weight: 500; display: inline-flex; align-items: center; min-height: 44px; }
.nav-desktop a.btn-primary { color: #fff; }
.nav-desktop a.btn-primary:hover { color: #fff; }
.nav-desktop a.btn-accent { color: #fff; }
.nav-desktop a:hover { color: var(--ink); text-decoration: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 44px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease, color .15s ease, border-color .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-primary:hover { background: var(--ink-2); color: #fff; }
.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 700;
}
.btn-accent:hover { background: var(--accent-strong); color: #fff; }
.btn-primary { font-weight: 700; }
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--line-2);
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-3); }

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 48px;
  background:
    radial-gradient(1100px 540px at 75% -10%, rgba(5,150,105,.10), transparent 60%),
    radial-gradient(900px 460px at -10% 110%, rgba(99,102,241,.08), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) { .hero { padding: 96px 0 72px; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid #d1fae5;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16,185,129,.18);
}
.hero h1 { color: var(--ink); }
.hero .lede {
  font-size: 1.15rem;
  color: var(--ink-3);
  max-width: 640px;
  margin: 0 0 28px;
}
@media (min-width: 768px) { .hero .lede { font-size: 1.25rem; } }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  font-size: 0.9rem;
  color: var(--muted);
}
.hero-meta .item { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { color: var(--accent); flex-shrink: 0; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.section-dark {
  background: var(--dark);
  color: var(--on-dark);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: var(--on-dark); }
.section-dark a { color: var(--accent-on-dark); }
.section-dark a:hover { color: #6ee7b7; }
.section-dark a.btn-accent, .section-dark a.btn-primary { color: #fff; }
.section-dark a.btn-accent:hover, .section-dark a.btn-primary:hover { color: #fff; }
.section-soft { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head .kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #065f46; /* emerald-800 — AA on white at small size */
  margin-bottom: 12px;
}
.section-dark .section-head .kicker { color: #34d399; } /* emerald-400 on dark */
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--ink-3); font-size: 1.05rem; }
.section-dark .section-head p { color: var(--on-dark); }

/* ---------- Problem strip ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 768px) { .problem-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.problem-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.problem-card .stat {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 10px;
}
.problem-card p { color: var(--ink-3); margin: 0; }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  counter-reset: step;
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.step {
  position: relative;
  background: #0f1a2c;
  border: 1px solid #1e293b;
  border-radius: var(--radius);
  padding: 28px 24px 24px;
}
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: #064e3b;          /* emerald-900 — solid for contrast */
  color: #6ee7b7;               /* emerald-300 — ~6:1 on emerald-900 */
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 16px;
  border: 1px solid #047857;
}
.step h3 { color: #fff; font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--on-dark); margin: 0; font-size: 0.97rem; }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 480px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .15s ease, transform .15s ease;
}
.feature:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feature .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #ecfdf5;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--ink); }
.feature p { color: var(--ink-3); font-size: 0.95rem; margin: 0; }

/* ---------- See it live ---------- */
.preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) { .preview { grid-template-columns: 1fr 1fr; gap: 64px; } }
.preview-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #1e293b;
  box-shadow: var(--shadow-lg);
  background: #0f1a2c;
}
.preview-image img { width: 100%; height: auto; display: block; }

/* ---------- Pricing ---------- */
.pricing-card {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  position: relative;
}
.pricing-card .tag {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.pricing-card .price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 12px 0 6px;
}
.pricing-card .price .amount {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
}
.pricing-card .price .per { color: var(--muted); font-size: 1rem; }
.pricing-card .sub { color: var(--ink-3); margin-bottom: 22px; }
.pricing-list { list-style: none; padding: 0; margin: 0 0 22px; }
.pricing-list li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  color: var(--ink-2);
  font-size: 0.97rem;
  align-items: flex-start;
}
.pricing-list li::before {
  content: "";
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 4px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23059669'><path fill-rule='evenodd' d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.5 7.5a1 1 0 0 1-1.4 0L3.3 9.7a1 1 0 1 1 1.4-1.4L8.5 12 15.3 5.3a1 1 0 0 1 1.4 0z' clip-rule='evenodd'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
}
.pricing-card .btn { width: 100%; padding: 14px 20px; font-size: 1rem; }
.pricing-card .fineprint {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 14px 0 0;
}

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
  list-style: none;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 14px; height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230f172a'><path fill-rule='evenodd' d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4z' clip-rule='evenodd'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq .answer {
  padding: 0 22px 18px;
  color: var(--ink-3);
  font-size: 0.97rem;
}
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: var(--on-dark);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; } }
.footer-grid h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 700;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 4px; }
.footer-grid a { color: var(--on-dark); font-size: 0.95rem; display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { color: var(--on-dark); font-size: 0.93rem; margin: 0 0 8px; }
.site-footer .brand-block .brand { color: #fff; }
.site-footer .brand-block p { max-width: 320px; margin-top: 14px; }
.site-footer .legalrow {
  border-top: 1px solid #1e293b;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--on-dark);
}
.site-footer .tbd {
  color: #fbbf24;
  font-weight: 600;
}

/* ---------- Legal pages (terms/privacy/refunds) ---------- */
.legal { padding: 48px 0 96px; }
.legal-wrap { max-width: 720px; margin: 0 auto; }
.legal h1 { font-size: 2.2rem; margin-bottom: 10px; }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 32px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; color: var(--ink); }
.legal h3 { font-size: 1.05rem; margin: 22px 0 8px; color: var(--ink-2); }
.legal p, .legal li { color: var(--ink-3); font-size: 1rem; line-height: 1.7; }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 18px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); }
.legal a:hover { color: var(--accent-strong); }
.legal .callout {
  background: #ecfdf5;
  border: 1px solid #d1fae5;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 22px 0;
  color: #065f46;
}
.legal .callout p { color: #065f46; margin: 0; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 32px 0;
}
@media (min-width: 700px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.contact-card .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #ecfdf5;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.contact-card h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--ink); }
.contact-card p { margin: 0 0 4px; color: var(--ink-3); font-size: 0.97rem; }
.contact-card a { font-weight: 600; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Skip link ---------- */
.skip {
  position: absolute; top: -40px; left: 12px;
  background: var(--ink); color: #fff;
  padding: 8px 12px; border-radius: 6px;
  font-size: 0.9rem; z-index: 100;
}
.skip:focus { top: 12px; color: #fff; text-decoration: none; }
