/* Meridian brand tokens (dark only, one sage accent). */
:root {
  color-scheme: dark;
  --canvas: #0d0f0f;
  --card: #161a19;
  --sage: #7a9d96;
  --sage-deep: #62847d;
  --sage-light: #8fb3ab;
  --text-body: rgba(255, 255, 255, 0.66);
  --text-meta: rgba(255, 255, 255, 0.55);
  --text-micro: rgba(255, 255, 255, 0.38);
  --label: #9aa6a2;
  --line: rgba(254, 254, 255, 0.08);
  --line-strong: rgba(254, 254, 255, 0.14);
  --wine-text: #c08585;
  --accent-text: linear-gradient(115deg, #7a9d96 0%, #a8c5bf 45%, #7a9d96 100%);
  --shadow-cta: 0 10px 28px -10px rgba(122, 157, 150, 0.55);
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: #fff;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.container {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 18px;
  text-decoration: none;
}

.brand img { width: 28px; height: 28px; }

.hero { padding-block: clamp(48px, 9vw, 112px) clamp(56px, 8vw, 96px); }

.eyebrow {
  margin: 0 0 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--label);
}

h1 {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.accent {
  display: block;
  background: var(--accent-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 28px 0 0;
  max-width: 56ch;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-body);
}

.lead-form { margin-top: 36px; max-width: 560px; }

.lead-form .row { display: flex; gap: 10px; flex-wrap: wrap; }

.lead-form input {
  flex: 1 1 240px;
  min-width: 0;
  height: 54px;
  padding-inline: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--card);
  color: #fff;
  font: inherit;
}

.lead-form input::placeholder { color: var(--text-micro); }

.lead-form input:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--sage-light);
  outline-offset: 2px;
}

.lead-form input[aria-invalid="true"] { border-color: var(--wine-text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding-inline: 26px;
  border: 0;
  border-radius: 4px;
  background: var(--sage-deep);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--shadow-cta);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover:not(:disabled) { background: var(--sage); transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-pill { border-radius: 56px; }

.form-note { margin: 12px 0 0; font-size: 13px; color: var(--text-meta); }
.form-error { margin: 12px 0 0; font-size: 14px; color: var(--wine-text); }

section { padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }

h2 {
  margin: 0 0 36px;
  max-width: 22ch;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.card h3 { margin: 0 0 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--text-body); font-size: 15px; }

.step {
  display: block;
  margin-bottom: 14px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  color: var(--sage-light);
}

.cta-band { text-align: center; }
.cta-band h2 { margin-inline: auto; }

.links { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 28px; font-size: 15px; }
.links a { color: var(--sage-light); text-underline-offset: 4px; }

footer {
  padding-block: 36px 56px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-micro);
}

footer p { margin: 0 0 12px; max-width: 80ch; }
footer a { color: var(--text-meta); }

.notice { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: var(--gutter); }
.notice h1 { font-size: clamp(30px, 5vw, 48px); max-width: none; }
.notice p { color: var(--text-body); max-width: 52ch; margin: 20px auto 0; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
