:root {
  color-scheme: light;
  --bg: #f7f5ef;
  --surface: #fffdf7;
  --surface-strong: #ffffff;
  --ink: #16201d;
  --muted: #5d6863;
  --line: #d9ded6;
  --green: #13473a;
  --green-2: #21614f;
  --copper: #a8663f;
  --blue: #345b73;
  --danger-bg: #f9e9e4;
  --danger: #8a3321;
  --success-bg: #e7f2eb;
  --success: #1b6547;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #fbfaf5 0%, var(--bg) 55%, #edf2ee 100%);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  width: calc(100vw - 32px);
  max-width: 1180px;
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 20px;
}

.top-nav,
.site-footer nav,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-nav a,
.site-footer a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.top-nav a:hover,
.site-footer a:hover {
  color: var(--green);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 760;
  text-decoration: none;
  padding: 0 18px;
  cursor: pointer;
}

.button:hover {
  background: var(--green-2);
}

.button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.button-secondary {
  background: transparent;
  color: var(--green);
}

.button-secondary:hover {
  background: #eef4ef;
}

.button-small {
  min-height: 38px;
  padding: 0 14px;
  color: #fff !important;
  font-size: 0.86rem !important;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  width: calc(100vw - 32px);
  max-width: 1180px;
  min-height: calc(100vh - 86px);
  margin: 0 auto;
  padding: 36px 0 58px;
}

.hero-copy {
  max-width: 700px;
}

.hero-copy,
.product-visual,
.feature-card,
.auth-card,
.legal-card {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
.section-heading h2,
.route-strip h2,
.auth-card h1,
.legal-card h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 560;
  line-height: 1.02;
}

h1 {
  max-width: 760px;
  font-size: clamp(4rem, 12vw, 8.8rem);
}

.hero-lede {
  max-width: 660px;
  margin: 24px 0 30px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.7vw, 1.28rem);
}

.product-visual {
  border: 1px solid rgba(19, 71, 58, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(244, 239, 228, 0.86)),
    repeating-linear-gradient(90deg, rgba(19, 71, 58, 0.05) 0 1px, transparent 1px 80px);
  box-shadow: 0 24px 70px rgba(22, 32, 29, 0.12);
  padding: 18px;
}

.visual-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.journey-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.journey-row:last-child {
  padding-bottom: 2px;
}

.step-index {
  color: var(--copper);
  font-family: var(--font-serif);
  font-size: 1.4rem;
}

.journey-row h2,
.feature-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.journey-row p,
.feature-card p,
.legal-card p,
.auth-card p {
  margin: 0;
  color: var(--muted);
}

.state-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 5px 9px;
}

.section-band,
.route-strip,
.shell-page {
  width: calc(100vw - 32px);
  max-width: 1180px;
  margin: 0 auto;
}

.section-band {
  padding: 74px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 780px;
}

.section-heading h2,
.route-strip h2 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.feature-card,
.auth-card,
.legal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.88);
}

.feature-card {
  padding: 22px;
}

.route-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 28px;
  align-items: start;
  padding: 70px 0 86px;
}

.route-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-list a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 750;
  text-decoration: none;
  padding: 14px;
}

.route-list a:hover {
  border-color: var(--green);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.shell-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 178px);
  padding: 54px 0 80px;
}

.auth-card,
.legal-card {
  width: 100%;
  max-width: 560px;
  padding: clamp(24px, 5vw, 42px);
  box-shadow: 0 18px 54px rgba(22, 32, 29, 0.08);
}

.legal-card {
  max-width: 760px;
}

.auth-card h1,
.legal-card h1 {
  font-size: clamp(2.5rem, 7vw, 4.8rem);
  margin-bottom: 18px;
}

.auth-copy {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.form-stack {
  display: grid;
  gap: 16px;
}

.auth-divider {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}

.reset-request h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.1rem;
}

.compact-copy {
  margin-bottom: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 760;
}

.field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink);
  font: inherit;
  padding: 0 13px;
}

.field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(19, 71, 58, 0.14);
  outline: none;
}

.status-message {
  display: none;
  border-radius: 8px;
  padding: 13px 14px;
  font-size: 0.92rem;
}

.status-message.show {
  display: grid;
  gap: 4px;
}

.status-action {
  justify-self: start;
  margin-top: 8px;
}

.status-message.error {
  background: var(--danger-bg);
  color: var(--danger);
}

.status-message.success {
  background: var(--success-bg);
  color: var(--success);
}

.quiet-note {
  margin-top: 18px !important;
  font-size: 0.9rem;
}

.legal-status {
  border: 1px solid #d9b69e;
  border-radius: 8px;
  background: #fff6ef;
  color: #693b22;
  padding: 16px;
  margin-bottom: 22px;
}

.legal-status strong {
  display: block;
  margin-bottom: 6px;
}

.legal-list {
  margin: 22px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.legal-list li + li {
  margin-top: 8px;
}

@media (max-width: 820px) {
  .site-header,
  .site-footer,
  .top-nav,
  .hero-actions {
    align-items: stretch;
  }

  .site-header,
  .site-footer,
  .hero-section,
  .section-band,
  .shell-page,
  .route-strip {
    grid-template-columns: 1fr;
    flex-direction: column;
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }

  .top-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    max-width: 100%;
  }

  .hero-section {
    min-height: auto;
    padding-top: 22px;
  }

  h1 {
    font-size: clamp(3.3rem, 18vw, 5.2rem);
  }

  .feature-grid,
  .route-list {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .product-visual {
    width: 100%;
    overflow: hidden;
    padding: 16px;
  }

  .visual-topline {
    flex-direction: column;
  }

  .journey-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .state-pill {
    grid-column: 2;
    justify-self: start;
  }

  .auth-card,
  .legal-card {
    padding: 24px;
  }
}

.waitlist-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.waitlist-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}

.waitlist-consent {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

.waitlist-consent p {
  margin: 0 0 4px;
}

.waitlist-consent p:last-child {
  margin-bottom: 0;
}

.waitlist-consent a {
  color: var(--green-2);
  text-decoration: underline;
}

.waitlist-processing-card {
  margin-top: 24px;
}
