:root {
  color-scheme: light;
  --background: #f7f8f5;
  --surface: #ffffff;
  --surface-raised: #f0f4ee;
  --ink: #16201c;
  --muted: #59655f;
  --line: #d9e0da;
  --brand: #176b52;
  --brand-strong: #0d4d3b;
  --gold: #c99a2e;
  --blue: #315b8c;
  --danger: #9f3f32;
  --focus: #0d65c7;
  --shadow: 0 24px 80px rgb(22 32 28 / 12%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--background);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}

body,
button,
input,
textarea {
  letter-spacing: 0;
}

a {
  color: var(--brand-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  background: var(--ink);
  color: white;
  left: 1rem;
  padding: 0.75rem 1rem;
  position: fixed;
  top: 1rem;
  transform: translateY(-160%);
  z-index: 10;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  align-items: center;
  display: flex;
  gap: 1.25rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 1rem clamp(1rem, 4vw, 2rem);
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-weight: 750;
  gap: 0.7rem;
  text-decoration: none;
}

.brand img {
  border-radius: 10px;
  box-shadow: 0 8px 24px rgb(22 32 28 / 14%);
}

.site-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.9rem;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

.hero {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(2.5rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem);
}

.hero-product {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.85fr);
  min-height: auto;
  padding-bottom: clamp(2rem, 5vw, 3rem);
  padding-top: clamp(2rem, 6vw, 4.5rem);
}

.hero-docs {
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.hero-docs > div {
  max-width: 850px;
}

.eyebrow {
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 0.85rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(2.75rem, 8vw, 6.8rem);
  max-width: 10ch;
}

.hero-docs h1,
.document-header h1 {
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  max-width: 13ch;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-top: 2.4rem;
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  margin-top: 1.8rem;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  margin: 1.1rem 0 0;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  min-height: 48px;
  padding: 0.72rem 1rem;
  text-decoration: none;
}

.button.primary {
  background: var(--brand);
  color: white;
}

.button.primary:hover {
  background: var(--brand-strong);
  color: white;
}

.button.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--brand);
  color: var(--brand-strong);
}

.microcopy {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 1rem;
  max-width: 42rem;
}

.hero-media {
  justify-self: center;
  width: min(100%, 390px);
}

.phone-frame {
  background: #101714;
  border: 1px solid #2d3834;
  border-radius: 38px;
  box-shadow: var(--shadow);
  padding: 0.8rem;
}

.phone-screen {
  background: linear-gradient(180deg, #f9faf7, #e8efe9);
  border-radius: 30px;
  color: var(--ink);
  min-height: 460px;
  overflow: hidden;
  padding: 1.1rem;
}

.phone-top,
.phone-actions {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.phone-top {
  font-weight: 800;
  margin-bottom: 1rem;
}

.pill {
  background: rgb(23 107 82 / 12%);
  border-radius: 999px;
  color: var(--brand-strong);
  font-size: 0.78rem;
  padding: 0.22rem 0.56rem;
}

.balance-panel {
  background: var(--ink);
  border-radius: 8px;
  color: white;
  display: grid;
  gap: 0.2rem;
  margin-bottom: 1rem;
  padding: 1.2rem;
}

.balance-panel span {
  color: rgb(255 255 255 / 70%);
  font-size: 0.86rem;
}

.balance-panel strong {
  color: #f2c14e;
  font-size: 3.2rem;
  line-height: 1;
}

.box-row {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 0.85rem;
  margin-top: 0.75rem;
  padding: 0.9rem;
}

.box-row-copy strong,
.box-row-copy span {
  display: block;
}

.box-row-copy span {
  color: var(--muted);
  font-size: 0.9rem;
}

.box-icon {
  align-items: center;
  background: #f1c24b;
  border-radius: 999px;
  color: #2a210c;
  display: inline-grid;
  flex: 0 0 auto;
  font-size: 0.95rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  height: 44px;
  justify-content: center;
  line-height: 1;
  place-items: center;
  text-align: center;
  width: 44px;
}

.box-icon > span {
  transform: translateY(0.04em);
}

.box-icon.muted {
  background: #dbe5df;
  color: var(--brand-strong);
}

.phone-actions {
  gap: 0.6rem;
  margin-top: 1rem;
}

.phone-actions span {
  background: var(--brand);
  border-radius: 8px;
  color: white;
  flex: 1;
  font-size: 0.88rem;
  font-weight: 750;
  min-height: 42px;
  padding: 0.45rem;
  text-align: center;
}

.phone-actions span:last-child {
  background: #315b8c;
}

.content-band {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.prose,
.document-shell {
  margin: 0 auto;
  max-width: 860px;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2rem);
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose strong {
  color: var(--ink);
}

.prose ul,
.prose ol {
  padding-left: 1.35rem;
}

.prose li + li {
  margin-top: 0.45rem;
}

.docs-home h2 + ul {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  padding-left: 0;
}

.docs-home h2 + ul li {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.ecosystem-section {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 clamp(1rem, 4vw, 2rem) clamp(3.5rem, 8vw, 6rem);
}

.ecosystem-header {
  max-width: 760px;
}

.ecosystem-header h2 {
  margin-top: 0;
  max-width: 20ch;
}

.ecosystem-header > p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0.9rem 0 0;
  max-width: 60ch;
}

.product-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2rem;
}

.product-card {
  --product-accent: var(--brand);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--product-accent);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.product-card-learning {
  --product-accent: var(--blue);
}

.product-card-time {
  --product-accent: var(--gold);
}

.product-card-blessings {
  --product-accent: var(--danger);
}

.product-card-heading {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.product-card-heading p {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
  margin: 0;
  max-width: 24ch;
}

.status-label {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 750;
  padding: 0.22rem 0.58rem;
}

.product-card h3 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-top: 1.8rem;
}

.product-description {
  color: var(--ink);
  font-size: 1.05rem;
  margin: 0.7rem 0 0;
}

.product-trust {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  margin: 1.3rem 0 0;
  padding-top: 1rem;
}

.product-action {
  font-weight: 750;
  margin-top: auto;
  padding-top: 1.35rem;
  text-decoration: none;
}

.product-action-muted {
  color: var(--muted);
  font-weight: 650;
}

.document-shell {
  max-width: 920px;
}

.document-header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.25rem;
  padding-bottom: 1.6rem;
}

.document-meta {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.6rem 0 0;
}

.document-meta div {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem;
}

.document-meta dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.document-meta dd {
  margin: 0.1rem 0 0;
}

.app-review-shell {
  border-left: 5px solid var(--gold);
}

.intake-shell {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 4vw, 2rem);
}

.intake-header {
  max-width: 820px;
}

.intake-header h1 {
  font-size: clamp(2.55rem, 6vw, 4.9rem);
  max-width: 18ch;
}

.intake-type-switcher {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2rem;
}

.intake-type-switcher button {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  min-height: 48px;
  padding: 0.7rem 1rem;
}

.intake-type-switcher button:first-child {
  border-radius: 8px 0 0 8px;
}

.intake-type-switcher button:last-child {
  border-left: 0;
  border-radius: 0 8px 8px 0;
}

.intake-type-switcher button.selected {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

.intake-grid {
  align-items: start;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 350px);
  margin-top: 1rem;
}

.intake-form-card,
.intake-next-card,
.intake-trust-strip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.intake-form-card {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.intake-form-heading {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.intake-form-heading h2,
.intake-next-card h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0;
}

.intake-form-heading p,
.intake-fieldset > p {
  color: var(--muted);
  margin: 0.45rem 0 0;
}

.intake-form-heading > span {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 0.82rem;
}

.intake-field strong,
.intake-form-heading strong {
  color: var(--danger);
}

.intake-field-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.25rem;
}

.intake-field {
  color: var(--ink);
  display: grid;
  font-size: 0.92rem;
  font-weight: 750;
  gap: 0.42rem;
}

.intake-field-wide {
  grid-column: 1 / -1;
}

.intake-field small {
  color: var(--muted);
  font-weight: 500;
}

.intake-field input,
.intake-field select,
.intake-field textarea {
  background: var(--surface);
  border: 1px solid #c9d3cc;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  min-height: 48px;
  padding: 0.72rem 0.8rem;
  width: 100%;
}

.intake-field textarea {
  min-height: 132px;
  resize: vertical;
}

.intake-field input:hover,
.intake-field select:hover,
.intake-field textarea:hover {
  border-color: var(--brand);
}

.intake-fieldset {
  border: 0;
  display: grid;
  gap: 1rem;
  margin: 1.7rem 0 0;
  padding: 1.5rem 0 0;
  position: relative;
}

.intake-fieldset::before {
  border-top: 1px solid var(--line);
  content: "";
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.intake-fieldset legend {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 800;
  padding: 0;
}

.intake-fieldset .intake-field-grid {
  margin-top: 0;
}

.intake-check {
  align-items: start;
  color: var(--ink);
  display: flex;
  font-size: 0.92rem;
  gap: 0.7rem;
}

.intake-check input {
  accent-color: var(--brand);
  height: 20px;
  margin: 0.2rem 0 0;
  width: 20px;
}

.intake-security-note {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  display: grid;
  gap: 0.25rem;
  margin-top: 1.5rem;
  padding: 1rem;
}

.intake-security-note span,
.intake-legal {
  color: var(--muted);
  font-size: 0.9rem;
}

.intake-legal {
  margin: 1.2rem 0 0;
}

.intake-submit {
  cursor: pointer;
  margin-top: 1rem;
  width: 100%;
}

.intake-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.intake-status {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.25rem;
  margin-top: 1rem;
  padding: 1rem;
}

.intake-status[data-tone="success"] {
  background: #edf8f0;
  border-color: #a9cfb5;
}

.intake-status[data-tone="error"] {
  background: #fff3f2;
  border-color: #ddb7b1;
  color: var(--danger);
}

.intake-status span {
  color: var(--muted);
}

.intake-next-card {
  background: var(--surface-raised);
  padding: 1.5rem;
  position: sticky;
  top: 1rem;
}

.intake-steps {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.intake-steps li {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 32px minmax(0, 1fr);
  padding: 1.1rem 0;
}

.intake-steps li + li {
  border-top: 1px solid var(--line);
}

.intake-steps li > span {
  align-items: center;
  background: var(--brand);
  border-radius: 999px;
  color: white;
  display: flex;
  font-size: 0.84rem;
  font-weight: 800;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.intake-steps p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.25rem 0 0;
}

.intake-next-note {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  padding-top: 1rem;
}

.intake-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.5rem;
  padding: 1.25rem;
}

.intake-trust-strip div {
  display: grid;
  gap: 0.2rem;
  padding: 0 1.25rem;
}

.intake-trust-strip div + div {
  border-left: 1px solid var(--line);
}

.intake-trust-strip span {
  color: var(--muted);
  font-size: 0.9rem;
}

.intake-honeypot {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.site-footer {
  align-items: flex-start;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 2rem clamp(1rem, 4vw, 2rem);
}

.site-footer p {
  color: var(--muted);
  margin: 0.35rem 0 0;
  max-width: 46rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: flex-end;
}

.site-footer a {
  color: var(--muted);
  font-size: 0.94rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 840px) {
  .site-header,
  .site-footer,
  .hero-product {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header,
  .site-footer {
    display: flex;
  }

  .site-nav,
  .site-footer nav {
    justify-content: flex-start;
  }

  .hero-product {
    display: flex;
    gap: 1.5rem;
    min-height: auto;
  }

  .hero-media {
    width: min(100%, 300px);
  }

  .phone-screen {
    min-height: auto;
  }

  .docs-home h2 + ul,
  .product-grid,
  .document-meta {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 0;
  }

  .intake-grid,
  .intake-trust-strip {
    grid-template-columns: 1fr;
  }

  .intake-next-card {
    position: static;
  }

  .intake-trust-strip div {
    padding: 1rem 0;
  }

  .intake-trust-strip div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 430px) {
  body {
    font-size: 16px;
  }

  .button {
    flex: 1 1 9rem;
    min-height: 44px;
    padding: 0.6rem 0.72rem;
  }

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

  .product-card-heading {
    display: grid;
  }

  .status-label {
    justify-self: start;
  }

  .phone-frame {
    border-radius: 30px;
    max-height: 208px;
    overflow: hidden;
    padding: 0.55rem;
  }

  .phone-screen {
    border-radius: 24px;
    min-height: auto;
    padding: 0.85rem;
  }

  .balance-panel strong {
    font-size: 2.7rem;
  }

  .intake-type-switcher,
  .intake-field-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .intake-type-switcher button:first-child {
    border-radius: 8px 8px 0 0;
  }

  .intake-type-switcher button:last-child {
    border-left: 1px solid var(--line);
    border-radius: 0 0 8px 8px;
    border-top: 0;
  }

  .intake-form-heading {
    display: grid;
  }

  .intake-field-wide {
    grid-column: auto;
  }
}
