/* ============ Evolyre design tokens ============ */
:root {
  --ink: #0f2038;        /* deep navy — headings, footer, nav, hero */
  --paper: #f8f4e9;      /* warm ivory background */
  --sprout: #b8902a;     /* rich gold — primary accent */
  --sprout-dark: #8f6f1a;
  --mist: #efe4c8;       /* pale gold tint */
  --slate: #57626f;      /* secondary text */
  --line: #ddd0a8;       /* hairlines */
  --white: #ffffff;
  --gold: #b8902a;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(15, 32, 56, 0.12);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

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

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { color: var(--slate); }
a  { color: var(--sprout-dark); }

.container { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

/* ============ Three-lines brand mark ============ */
.mark { display: inline-flex; flex-direction: column; gap: 4px; margin-right: 10px; }
.mark span { display: block; height: 3px; border-radius: 2px; background: var(--sprout); }
.mark span:nth-child(1) { width: 10px; }
.mark span:nth-child(2) { width: 16px; }
.mark span:nth-child(3) { width: 22px; }

.divider { display: flex; flex-direction: column; gap: 5px; margin: 0 auto 18px; width: 26px; }
.divider span { display: block; height: 3px; border-radius: 2px; background: var(--sprout); }
.divider span:nth-child(1) { width: 12px; }
.divider span:nth-child(2) { width: 19px; }
.divider span:nth-child(3) { width: 26px; }

/* ============ Nav ============ */
nav {
  background: var(--ink); backdrop-filter: none;
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid #223a5e;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--paper); text-decoration: none; display: flex; align-items: center; }
.nav-links { display: flex; gap: 22px; align-items: center; list-style: none; }
.nav-links a { text-decoration: none; color: #cdd8e6; font-size: 0.95rem; letter-spacing: 0.02em; }
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); font-weight: 700; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--paper); cursor: pointer; }
nav .mark span { background: var(--gold); }

/* ============ Buttons ============ */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px; border: none;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  cursor: pointer; text-decoration: none; text-align: center; transition: transform .12s, background .12s;
}
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--sprout); outline-offset: 2px;
}
.btn-primary { background: linear-gradient(135deg, #c9a227, #b08c1e); color: var(--ink); }
.btn-primary:hover { background: linear-gradient(135deg, #b08c1e, #9a7a16); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-small { padding: 8px 18px; font-size: 0.9rem; }

/* ============ Hero ============ */
.hero {
  padding: 64px 0 72px;
  background: linear-gradient(160deg, #13294b 0%, #0d1d38 100%);
  color: var(--paper);
}
.hero h1 { color: var(--paper); }
.hero p.lead { color: #c3cede; font-size: 1.15rem; margin: 18px 0 26px; max-width: 46ch; }
.hero .eyebrow { color: var(--gold); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .card { background: var(--white); }
.hero .card h3, .hero .card p { color: var(--ink); }
.hero .card p { color: var(--slate); }

/* ============ Goals card ============ */
.goal-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.goal-card h3 { margin-bottom: 4px; }
.goal-date { font-size: 0.85rem; color: var(--slate); margin-bottom: 16px; }
.goal-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.goal-row:last-of-type { border-bottom: none; }
.goal-check {
  width: 26px; height: 26px; min-width: 26px; border-radius: 8px; border: 2px solid var(--sprout);
  background: var(--white); cursor: pointer; font-size: 15px; color: var(--white); line-height: 1;
}
.goal-check.done { background: var(--sprout); color: var(--white); }
.goal-input {
  flex: 1; border: none; background: transparent; font-family: var(--font-body);
  font-size: 1rem; color: var(--ink); padding: 6px 2px;
}
.goal-input::placeholder { color: #9aa8ad; }
.goal-input.done { text-decoration: line-through; color: var(--slate); }
.goal-msg { margin-top: 14px; font-size: 0.95rem; color: var(--sprout-dark); font-weight: 700; min-height: 1.4em; }
.goal-save-note { font-size: 0.82rem; color: var(--slate); margin-top: 8px; }

/* ============ Sections ============ */
.section { padding: 68px 0; }
.section.tint { background: var(--mist); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head p { margin-top: 12px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); border-top: 3px solid var(--gold);
}
.card h3 { margin-bottom: 8px; }
.card .tag { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sprout-dark); background: var(--mist); padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.card .tag.locked { color: var(--gold); background: #f6eeda; }

/* ============ Chat (Maia) ============ */
.chat-wrap { max-width: 720px; margin: 0 auto; }
.chat-box {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); display: flex; flex-direction: column; height: 62vh; min-height: 420px;
}
.chat-log { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; }
.bubble { max-width: 82%; padding: 12px 16px; border-radius: 16px; font-size: 0.98rem; line-height: 1.55; }
.bubble.maia { background: var(--mist); color: var(--ink); border-bottom-left-radius: 4px; align-self: flex-start; white-space: pre-wrap; }
.bubble.user { background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; align-self: flex-end; white-space: pre-wrap; }
.chat-input-row { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.chat-input-row textarea {
  flex: 1; resize: none; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 10px 14px; font-family: var(--font-body); font-size: 1rem; height: 52px;
}
.typing { font-style: italic; color: var(--slate); }

/* ============ Pricing ============ */
.price-card { text-align: left; position: relative; }
.price-card.featured { border: 2px solid var(--sprout); }
.badge-popular { position: absolute; top: -13px; left: 24px; background: var(--sprout); color: var(--white); font-size: 0.75rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; margin: 10px 0 2px; }
.price small { font-size: 1rem; color: var(--slate); font-weight: 400; }
.feature-list { list-style: none; margin: 18px 0 24px; }
.feature-list li { padding: 7px 0 7px 28px; position: relative; color: var(--slate); }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--sprout); font-weight: 700; }

/* ============ Forms ============ */
.form-card { max-width: 420px; margin: 0 auto; }
.form-card label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.92rem; }
.form-card input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font-family: var(--font-body); font-size: 1rem; margin-bottom: 16px; background: var(--white);
}
.notice { background: var(--mist); border-radius: 12px; padding: 14px 18px; font-size: 0.92rem; color: var(--ink); margin-top: 16px; }
.notice.warn { background: #f6eeda; }

/* ============ Footer ============ */
footer { background: var(--ink); color: #aab8d0; padding: 44px 0; margin-top: 40px; }
footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; align-items: center; }
footer a { color: #e8ddb8; text-decoration: none; margin-left: 18px; font-size: 0.92rem; }
footer .logo { color: var(--paper); }
footer .mark span { background: #d9bc5e; }

/* ============ Responsive ============ */
@media (max-width: 840px) {
  .hero-grid, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 52px; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--paper); flex-direction: column; padding: 18px; gap: 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  footer .container { flex-direction: column; text-align: center; }
  footer a { margin: 0 9px; }
}
