/* ============================================================
   Stashly — brand system
   Palette drawn from the green squirrel logomark
   ============================================================ */
:root {
  --forest: #2E6B4E;        /* brand green (from logomark) */
  --pine: #17362A;          /* deep ink green */
  --moss: #4E8A6B;          /* lighter green for hovers */
  --acorn: #C6913F;         /* warm acorn amber accent */
  --acorn-soft: #F3E4C8;    /* amber tint */
  --paper: #F4F7F3;         /* sage-tinted paper background */
  --card: #FFFFFF;
  --line: #DCE5DD;
  --text: #1E2B24;
  --muted: #5C6E63;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, monospace;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(23, 54, 42, 0.06), 0 8px 28px rgba(23, 54, 42, 0.08);
  --maxw: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--forest); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--acorn);
  outline-offset: 2px;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 247, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 60px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.35rem; color: var(--pine);
  letter-spacing: -0.02em;
}
.brand {
  display: inline-flex;
  align-items: flex-end;   /* was center — this drops the text toward the logo's base */
  gap: 10px;
}
.brand-name {
  padding-bottom: 0px;     /* fine-tune: raise/lower this to sit exactly where you want */
}
.nav-links { display: flex; gap: 26px; align-items: center; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text); font-weight: 500; font-size: 0.95rem;
}
.nav-links a:hover { color: var(--forest); }
.nav-links a.active { color: var(--forest); font-weight: 600; }

.btn {
  display: inline-block; border: 0; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 12px 22px; border-radius: 999px;
  background: var(--forest); color: #fff; text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--moss); transform: translateY(-1px); }
.btn-acorn { background: var(--acorn); color: var(--pine); }
.btn-acorn:hover { background: #d6a352; }
.btn-ghost { background: transparent; color: var(--forest); border: 1.5px solid var(--forest); }
.btn-ghost:hover { background: var(--forest); color: #fff; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 56px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.eyebrow {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--forest);
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--acorn); }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08; letter-spacing: -0.03em; color: var(--pine);
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--forest); }
.hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 34rem; margin-bottom: 30px; }

/* Stash meter — the signature element */
.stash-card {
  background: var(--pine); color: #E9F2EC; border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow);
}
.stash-card h2 {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
  margin-bottom: 4px;
}
.stash-card .sub { font-size: 0.88rem; color: #A9C4B4; margin-bottom: 22px; }
.stash-row { margin-bottom: 18px; }
.stash-row label {
  display: flex; justify-content: space-between; font-size: 0.85rem;
  color: #A9C4B4; margin-bottom: 6px;
}
.stash-row output { font-family: var(--font-mono); color: var(--acorn-soft); }
input[type="range"] {
  width: 100%; accent-color: var(--acorn); height: 28px; cursor: pointer;
}
.stash-result {
  border-top: 1px solid rgba(233, 242, 236, 0.15);
  padding-top: 18px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.stash-result .big {
  font-family: var(--font-mono); font-size: 2rem; font-weight: 600; color: #fff;
}
.stash-result .tag { font-size: 0.82rem; color: #A9C4B4; }
.stash-note { font-size: 0.72rem; color: #7C9A89; margin-top: 14px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-title {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em; color: var(--pine); margin-bottom: 12px;
}
.section-sub { color: var(--muted); max-width: 40rem; margin-bottom: 40px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card .icon { font-size: 1.6rem; margin-bottom: 14px; }
.card h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--pine); margin-bottom: 8px; }
.card p { font-size: 0.94rem; color: var(--muted); }

/* ---------- Signup ---------- */
.signup { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.signup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.form-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px;
}
.field { margin-bottom: 20px; }
.field > label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; color: var(--pine); }
.field input[type="email"] {
  width: 100%; padding: 13px 16px; font-size: 1rem; font-family: var(--font-body);
  border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff;
}
.field input[type="email"]:focus { border-color: var(--forest); outline: none; }

.journey { display: grid; gap: 10px; }
.journey input { position: absolute; opacity: 0; }
.journey label {
  display: block; cursor: pointer; background: #fff; border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; transition: border-color 0.12s ease;
}
.journey label strong { display: block; color: var(--pine); font-size: 0.97rem; }
.journey label span { font-size: 0.85rem; color: var(--muted); }
.journey input:checked + label { border-color: var(--forest); background: #EFF6F1; }
.journey input:focus-visible + label { outline: 3px solid var(--acorn); outline-offset: 2px; }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-note { font-size: 0.78rem; color: var(--muted); margin-top: 14px; }
.form-status { margin-top: 14px; font-size: 0.92rem; font-weight: 600; display: none; }
.form-status.ok { display: block; color: var(--forest); }
.form-status.err { display: block; color: #A4442E; }

/* ---------- Page (about/contact/legal) ---------- */
.page-head { padding: 64px 0 8px; }
.page-head h1 {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em; color: var(--pine); margin-bottom: 14px;
}
.page-head p { color: var(--muted); max-width: 42rem; }
.prose { max-width: 46rem; padding-bottom: 64px; }
.prose h2 { font-family: var(--font-display); color: var(--pine); margin: 36px 0 12px; font-size: 1.35rem; }
.prose p { margin-bottom: 16px; }
.prose ul { margin: 0 0 16px 22px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 64px; }
.field textarea, .field input[type="text"], .field select {
  width: 100%; padding: 13px 16px; font-size: 1rem; font-family: var(--font-body);
  border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }

/* ---------- Disclaimer strip ---------- */
.disclaimer {
  background: var(--acorn-soft); border-top: 1px solid #E4CFA4;
  font-size: 0.82rem; color: #6B5223; padding: 14px 0; text-align: center;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--pine); color: #A9C4B4; padding: 48px 0 32px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { height: 34px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-brand span { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.15rem; }
.site-footer a { color: #DCEAE1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links { list-style: none; display: grid; gap: 8px; font-size: 0.92rem; }
.footer-small {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(233,242,236,0.12);
  font-size: 0.78rem; max-width: 60rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero, .signup-grid, .contact-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 18px 24px; gap: 16px; align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-toggle {
    display: inline-flex; background: none; border: 0; cursor: pointer;
    font-size: 1.6rem; color: var(--pine); line-height: 1;
  }
}
