/* Wasalea — wasalea.com
   Mobile-first. No build step: edit this file and redeploy. */

:root {
  --bg: #ffffff;
  --bg-alt: #f3f7f4;
  --bg-dark: #0b1c16;
  --ink: #0e1f19;
  --ink-soft: #4c6058;
  --accent: #0f7a56;
  --accent-ink: #0b5e42;
  --accent-wash: #e4f2eb;
  --border: #dde7e1;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(14, 31, 25, .06), 0 8px 24px -12px rgba(14, 31, 25, .18);
  --radius: 14px;
  --wrap: 1080px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1310;
    --bg-alt: #101d18;
    --bg-dark: #07100d;
    --ink: #e8f0ec;
    --ink-soft: #a0b3aa;
    --accent: #3fc08c;
    --accent-ink: #6fd3a9;
    --accent-wash: #11291f;
    --border: #1e332b;
    --card: #0f1b16;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);
  }
}

:root[data-theme="dark"] {
  --bg: #0b1310;
  --bg-alt: #101d18;
  --bg-dark: #07100d;
  --ink: #e8f0ec;
  --ink-soft: #a0b3aa;
  --accent: #3fc08c;
  --accent-ink: #6fd3a9;
  --accent-wash: #11291f;
  --border: #1e332b;
  --card: #0f1b16;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

h1, h2, h3 { line-height: 1.18; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 650; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.5rem, 4.6vw, 2.15rem); }
h3 { font-size: 1.08rem; font-weight: 640; }
p { margin: 0 0 1em; }
a { color: var(--accent-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }
.center { text-align: center; }

.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip:focus {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px;
}

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

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg); /* fallback where color-mix is unsupported */
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 62px; }

.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { width: 28px; height: 28px; color: var(--accent); flex: none; }
.brand-name { font-weight: 660; font-size: 1.1rem; letter-spacing: -.02em; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0;
  background: none; border: 1px solid var(--border); border-radius: 10px;
  color: var(--ink); cursor: pointer;
}
.nav-toggle-bars { display: block; width: 18px; }
.nav-toggle-bars span {
  display: block; height: 2px; background: currentColor; border-radius: 2px;
}
.nav-toggle-bars span + span { margin-top: 4px; }

.site-nav { display: none; }
.site-nav.open {
  display: flex; flex-direction: column; gap: 2px;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 10px 20px 18px;
}
.site-nav a {
  color: var(--ink); text-decoration: none; padding: 11px 2px;
  border-bottom: 1px solid var(--border); font-weight: 500;
}
.site-nav a:last-child { border-bottom: 0; }
.site-nav .nav-cta { color: var(--accent-ink); font-weight: 600; }

@media (min-width: 820px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open {
    display: flex; flex-direction: row; align-items: center; gap: 4px;
    position: static; padding: 0; border: 0; background: none;
  }
  .site-nav a { border: 0; padding: 8px 12px; border-radius: 9px; font-size: .95rem; }
  .site-nav a:hover { background: var(--bg-alt); }
  .site-nav .nav-cta {
    background: var(--accent); color: #fff; margin-left: 6px; padding: 9px 16px;
  }
  .site-nav .nav-cta:hover { background: var(--accent-ink); }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 11px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-light { background: #fff; color: #0b1c16; }
.btn-light:hover { background: #e9f3ee; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }

/* ---------- hero ---------- */

.hero {
  padding: 56px 0 48px;
  background:
    radial-gradient(120% 90% at 85% -10%, var(--accent-wash), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero-inner { max-width: 760px; }
.eyebrow {
  font-size: .82rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-ink); margin: 0 0 14px;
}
.lede { font-size: clamp(1.05rem, 2.6vw, 1.25rem); color: var(--ink-soft); max-width: 60ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.cta-row .btn { flex: 1 1 auto; min-width: 190px; }
.hero-meta { font-size: .88rem; color: var(--ink-soft); margin: 0; }

@media (min-width: 720px) {
  .hero { padding: 86px 0 74px; }
  .cta-row .btn { flex: 0 0 auto; }
}

/* ---------- sections ---------- */

.section { padding: 54px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-dark { background: var(--bg-dark); color: #eaf3ee; }
.section-dark .eyebrow { color: #7fd9b2; }
.section-dark .prose { color: #b9cfc5; }
.section-title { max-width: 30ch; }
.section-alt.center .section-title, .center .section-title { margin-inline: auto; }
.prose { color: var(--ink-soft); max-width: 62ch; }
.center .prose { margin-inline: auto; }
.fineprint { font-size: .88rem; color: var(--ink-soft); margin: 22px 0 0; }

@media (min-width: 720px) { .section { padding: 78px 0; } }

/* ---------- cards ---------- */

.grid { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 880px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.card h3 { margin-bottom: .35em; }
.card p { color: var(--ink-soft); margin: 0; font-size: .97rem; }

/* ---------- steps ---------- */

.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.step-num {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 680; font-size: .95rem;
  background: var(--accent); color: #fff;
}
.steps h3 { margin-bottom: .3em; }
.steps p { color: var(--ink-soft); margin: 0; font-size: .97rem; }

/* ---------- downloads ---------- */

.downloads { margin-top: 26px; }
.dl {
  display: flex; flex-direction: column; gap: 3px;
  padding: 20px 22px; text-decoration: none;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color .15s ease, transform .12s ease;
}
.dl:hover { border-color: var(--accent); transform: translateY(-2px); }
.dl-os { font-weight: 650; font-size: 1.06rem; }
.dl-file { font-size: .85rem; color: var(--ink-soft); }
.dl-go { margin-top: 8px; font-size: .92rem; font-weight: 620; color: var(--accent-ink); }

/* ---------- form ---------- */

.form { margin-top: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .92rem; font-weight: 600; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 1rem;
  color: var(--ink); background: var(--card);
  border: 1px solid var(--border); border-radius: 11px;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
.field textarea { resize: vertical; min-height: 120px; }
.field .invalid { border-color: #c0392b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 14px 0 0; font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: var(--accent-ink); font-weight: 600; }
.form-status.err { color: #c0392b; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .form-status.err { color: #ff8a7a; }
  :root:not([data-theme="light"]) .field .invalid { border-color: #ff8a7a; }
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--bg-dark); color: #c8ddd3;
  padding: 44px 0 38px; margin-top: 0;
}
.footer-inner { display: grid; gap: 22px; }
.footer-brand { display: flex; align-items: center; gap: 9px; font-weight: 650; color: #fff; }
.footer-brand .brand-mark { color: var(--accent); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-nav a { color: #c8ddd3; text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-legal { font-size: .82rem; color: #8aa89c; margin: 0; max-width: 62ch; line-height: 1.55; }

@media (min-width: 820px) {
  .footer-inner {
    grid-template-columns: auto 1fr; align-items: start; column-gap: 40px;
  }
  .footer-legal { grid-column: 1 / -1; }
}
