/* Matthew — landing page styles.
   Builds on the system tokens but adds a warmer paper for the marketing voice. */

:root, .theme-light {
  --bg: #F4F7F4;            /* whisper of mint — warm without the cream cast */
  --surface: #FFFFFF;
  --surface-2: #EAEFEA;
  --border: #DEE5DE;
  --border-strong: #C8D2C8;
  --text: #1A1F1B;
  --text-muted: #56615A;
  --text-subtle: #8E988F;

  --accent: #65B891;        /* mint-leaf */
  --accent-strong: #3E8B65; /* primary action */
  --accent-hover: #2F6A4E;
  --accent-fg: #FFFFFF;
  --accent-soft: #E2EDE5;
}

.theme-dark {
  --bg: #111827;
  --surface: #1F2937;
  --surface-2: #283344;
  --border: #2D3748;
  --border-strong: #4B5563;
  --text: #F9FAFB;
  --text-muted: #9CA3AF;
  --text-subtle: #6B7280;

  --accent: #93E5AB;
  --accent-strong: #65B891;
  --accent-hover: #B5FFE1;
  --accent-fg: #111827;
  --accent-soft: #1E3B30;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Geist", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
  transition: background 200ms ease, color 200ms ease;
}

a { color: inherit; }
/* .mono utility removed — mono fonts disabled */

/* ── Layout ─────────────────────────────────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 18px;
  border-radius: 6px; font: inherit;
  font-size: 14.5px; font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease;
}
.btn:active { transform: translateY(0.5px); }
.btn--primary {
  background: var(--accent-strong);
  color: var(--accent-fg);
  border-color: var(--accent-strong);
  font-weight: 600;
}
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--ghost {
  background: transparent;
  color: var(--text);
}
.btn--ghost:hover { background: var(--surface-2); }
.btn--lg { height: 52px; padding: 0 24px; font-size: 15.5px; }
.btn .arr { transition: transform 160ms ease; }
.btn:hover .arr { transform: translateX(2px); }

/* ── Nav ────────────────────────────────────────────────────────────── */
/* ── Nav ────────────────────────────────────────────────────────────── */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 247, 244, 0.78); /* fallback for browsers without color-mix() */
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 220ms ease, background 220ms ease;
}
.nav-bar.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(244, 247, 244, 0.88); /* fallback */
  background: color-mix(in oklab, var(--bg) 88%, transparent);
}
.theme-dark .nav-bar { background: rgba(17, 24, 39, 0.78); background: color-mix(in oklab, var(--bg) 78%, transparent); }
.theme-dark .nav-bar.is-scrolled { background: rgba(17, 24, 39, 0.88); background: color-mix(in oklab, var(--bg) 88%, transparent); }
.mark { display: block; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  max-width: 1120px; margin: 0 auto;
  transition: padding 220ms ease;
}
.nav-bar.is-scrolled .nav { padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name {
  font-weight: 600; font-size: 17px;
  letter-spacing: -0.018em;
  color: var(--text);
}
.beta-pill {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-strong);
  border: 1px solid var(--accent-strong);
  padding: 2px 7px 3px;
  border-radius: 4px;
  margin-left: 4px;
  background: transparent;
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
  font-size: 14px; color: var(--text-muted);
  text-decoration: none;
  padding: 8px 12px; border-radius: 6px;
  transition: color 160ms ease, background 160ms ease;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 24px 0 112px;
  position: relative;
}
.hero-eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.hero-mark {
  display: block;
  margin: 44px auto 40px;
}
.hero-title {
  font-size: clamp(44px, 7.4vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 auto;
  max-width: 16ch;
  text-wrap: balance;
}
.hero-title .em {
  color: var(--accent-strong);
  font-style: italic;
  font-weight: 600;
}
.hero-sub {
  margin: 28px auto 0;
  max-width: 54ch;
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}
.hero-cta {
  margin-top: 44px;
  display: inline-flex; align-items: center; gap: 0;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.hero-cta:focus-within {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.hero-cta input {
  height: 42px;
  border: 0; background: transparent;
  padding: 0 14px;
  font: inherit; font-size: 15px;
  color: var(--text);
  min-width: 280px;
  outline: none;
}
.hero-cta input::placeholder { color: var(--text-subtle); }
.hero-micro {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-subtle);
  letter-spacing: 0.005em;
}
.hero-micro span { color: var(--text-muted); }

/* Subtle ambient backdrop behind hero — two soft mint washes */
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden;
  z-index: -1;
}
.hero-bg::before, .hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.hero-bg::before {
  width: 600px; height: 600px;
  background: var(--accent);
  top: -160px; left: 50%;
  transform: translate(-75%, 0);
  opacity: 0.14;
  animation: hero-drift-a 32s ease-in-out infinite;
  will-change: transform;
}
.hero-bg::after {
  width: 540px; height: 540px;
  background: var(--accent-strong);
  top: 40px; left: 50%;
  transform: translate(40%, 0);
  opacity: 0.09;
  animation: hero-drift-b 38s ease-in-out infinite;
  will-change: transform;
}
.theme-dark .hero-bg::before { opacity: 0.18; }
.theme-dark .hero-bg::after  { opacity: 0.12; }
@keyframes hero-drift-a {
  0%, 100% { transform: translate(-75%, 0); }
  50%      { transform: translate(-69%, -18px); }
}
@keyframes hero-drift-b {
  0%, 100% { transform: translate(40%, 0); }
  50%      { transform: translate(34%, 16px); }
}

/* ── Brief / quiet feature row ─────────────────────────────────────── */
.brief {
  padding: 24px 0 96px;
  border-top: 1px solid var(--border);
}
.brief-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  padding-top: 72px;
}
.brief-item .num {
  font-size: 11px;
  color: var(--accent-strong);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 18px;
}
.brief-item h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  line-height: 1.2;
}
.brief-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* ── Features grid ──────────────────────────────────────────────────── */
.features {
  padding: 24px 0 96px;
  border-top: 1px solid var(--border);
}
.features-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 48px;
  align-items: end;
}
.features-eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 14px;
  font-weight: 500;
}
.features-title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
.features-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
  max-width: 52ch;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  position: relative;
}
.feature:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.feature-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.feature-num {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent-strong);
  font-weight: 600;
}
.feature-tag {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 500;
}
.feature-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.2;
  margin: 0;
}
.feature-body {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  text-wrap: pretty;
}
.feature-detail {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}
.feature-detail b {
  color: var(--text);
  font-weight: 500;
}

@media (max-width: 880px) {
  .features-head { grid-template-columns: 1fr; gap: 18px; padding-top: 56px; padding-bottom: 32px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ── About / letter ─────────────────────────────────────────────────── */
.about {
  padding: 112px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}
.about-aside {
  position: sticky; top: 32px;
}
.about-eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 14px;
}
.about-aside-rule {
  height: 1px; background: var(--border-strong);
  margin: 16px 0; width: 36px;
}
.about-aside-meta {
  font-size: 12px;
  color: var(--text-subtle);
  line-height: 1.7;
}
.about-aside-meta b { color: var(--text); font-weight: 500; }
.about-title {
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 36px;
  max-width: 20ch;
  text-wrap: balance;
}
.about-letter {
  max-width: 62ch;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
}
.about-letter p { margin: 0 0 20px; text-wrap: pretty; }
.about-letter p:last-of-type { margin-bottom: 0; }
.about-sig {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
}
.about-sig-name {
  font-weight: 600; font-size: 15px;
  letter-spacing: -0.01em;
}
.about-sig-role {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── Stewardship ────────────────────────────────────────────────────── */
.stewardship {
  padding: 120px 0;
  background: var(--bg);
  position: relative;
}
.stewardship-head {
  text-align: center;
  max-width: 56ch;
  margin: 0 auto 80px;
}
.stewardship-eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-block;
}
.stewardship-title {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 18px 0 20px;
  text-wrap: balance;
}
.stewardship-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  text-wrap: pretty;
}

.principles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto;
}
.principle {
  background: var(--surface);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.principle-num {
  font-size: 11px;
  color: var(--accent-strong);
  letter-spacing: 0.1em;
}
.principle-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.018em;
  margin: 0;
  line-height: 1.2;
}
.principle-gloss {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  text-wrap: pretty;
}

@media (max-width: 720px) {
  .stewardship { padding: 80px 0; }
  .stewardship-head { margin-bottom: 56px; }
  .steward-quote { padding: 40px 20px; margin-bottom: 64px; }
  .steward-quote .open, .steward-quote .close { font-size: 64px; }
  .steward-quote .open { top: 12px; left: 12px; }
  .steward-quote .close { bottom: -8px; right: 12px; }
  .principles-grid { grid-template-columns: 1fr; }
  .principle { padding: 28px 24px; }
}

/* ── Final CTA band ─────────────────────────────────────────────────── */
.cta-band {
  padding: 120px 0;
  text-align: center;
}
.cta-band-title {
  font-size: clamp(36px, 5.2vw, 60px);
  margin: 0 0 16px;
  letter-spacing: -0.03em;
  font-weight: 600;
  line-height: 1.06;
  max-width: 22ch;
  margin-left: auto; margin-right: auto;
  text-wrap: balance;
}
.cta-band p {
  font-size: 17px;
  color: var(--text-muted);
  margin: 0 0 36px;
  max-width: 48ch;
  margin-left: auto; margin-right: auto;
}
.cta-band p.cta-foot {
  margin: 32px auto 0;
  font-size: 13px;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.footer {
  padding: 56px 0 56px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-tag {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 28ch;
  margin: 0;
}
.footer-col h4 {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-weight: 500;
  margin: 4px 0 16px;
}
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 160ms ease;
}
.footer-col a:hover { color: var(--text); }

.footer-meta {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
}
.footer-meta-links { display: flex; gap: 18px; }
.footer-meta-links a {
  text-decoration: none; color: var(--text-subtle);
  transition: color 160ms ease;
}
.footer-meta-links a:hover { color: var(--text); }
.footer-status {
  display: inline-flex; align-items: center; gap: 6px;
}
.footer-status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 880px) {
  .brief-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; }
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-aside { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .nav { padding: 20px; }
  .nav-link[data-mobile-hide] { display: none; }
  .hero { padding: 32px 0 80px; }
  .hero-cta { flex-direction: column; gap: 6px; padding: 8px; width: 100%; }
  .hero-cta input { min-width: 0; width: 100%; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .about { padding: 72px 0; }
  .cta-band { padding: 80px 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-meta { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ── Utilities ──────────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.cta-band-mark { margin: 0 auto 28px; }

/* ── Scroll-reveal — drives [data-reveal] elements ──────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Legal pages (privacy, terms) ───────────────────────────────────── */
.legal {
  padding: 80px 0 96px;
  background: var(--bg);
}
.legal-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}
.legal-eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 12px;
  font-weight: 500;
}
.legal-title {
  font-size: clamp(32px, 4.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 8px;
  color: var(--text);
}
.legal-effective {
  font-size: 13px;
  color: var(--text-subtle);
  margin: 0 0 48px;
  letter-spacing: 0.02em;
}
.legal section {
  margin-bottom: 36px;
}
.legal section:last-of-type {
  margin-bottom: 0;
}
.legal h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0 0 14px;
  color: var(--text);
}
.legal h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.3;
  margin: 22px 0 10px;
  color: var(--text);
}
.legal p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 14px;
  text-wrap: pretty;
}
.legal p:last-child {
  margin-bottom: 0;
}
.legal ul {
  margin: 0 0 14px;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}
.legal ul li {
  margin-bottom: 6px;
}
.legal ul li::marker {
  color: var(--text-subtle);
}
.legal a {
  color: var(--accent-strong);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}
.legal a:hover {
  border-bottom-color: var(--accent-strong);
}
.legal a.btn--primary {
  color: var(--accent-fg);
  border-bottom: 0;
}
.legal a.btn--primary:hover {
  border-bottom: 0;
}
.legal b {
  font-weight: 600;
  color: var(--text);
}
.legal-contact {
  list-style: none;
  padding-left: 0;
}
.legal-contact li {
  margin-bottom: 4px;
}

/* Contact-page cards */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-card h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0;
  color: var(--text);
}
.contact-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
}
.contact-card .btn {
  align-self: flex-start;
  margin-top: 6px;
}
.contact-email a {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--accent-strong);
}
.contact-email a:hover {
  border-bottom-color: var(--accent-strong);
}
@media (max-width: 720px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
}

.footer--legal {
  padding: 32px 0;
  margin-top: 24px;
}
.footer--legal .footer-meta {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

@media (max-width: 560px) {
  .legal { padding: 56px 0 72px; }
  .legal-container { padding: 0 20px; }
  .legal-effective { margin-bottom: 36px; }
}

/* ── Reduced-motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-bg::before,
  .hero-bg::after { animation: none; }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .feature:hover { transform: none; }
  .btn .arr,
  .btn:hover .arr { transform: none; }
}
