:root {
  color-scheme: light dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  line-height: 1.6;
  --background: #f4f8f6;
  --surface: #ffffff;
  --surface-soft: #e7f2ee;
  --surface-strong: #073f39;
  --text: #14211f;
  --muted: #53635f;
  --primary: #006a60;
  --primary-hover: #00564e;
  --on-primary: #ffffff;
  --accent: #9de9d9;
  --border: #cddbd7;
  --border-strong: #adc2bc;
  --focus: #cc5700;
  --shadow: 0 24px 70px rgb(13 56 50 / 12%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0d1917;
    --surface: #142421;
    --surface-soft: #18332e;
    --surface-strong: #b9f2e6;
    --text: #e6f2ee;
    --muted: #afc1bc;
    --primary: #79d8c7;
    --primary-hover: #9de9d9;
    --on-primary: #003730;
    --accent: #006a60;
    --border: #314944;
    --border-strong: #4c6861;
    --focus: #ffb77c;
    --shadow: 0 24px 70px rgb(0 0 0 / 28%);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 280px;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--text);
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--background);
  font-weight: 800;
  transform: translateY(-160%);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
  background: color-mix(in srgb, var(--background) 94%, transparent);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand img {
  flex: none;
  border-radius: 12px;
  box-shadow: 0 5px 16px rgb(0 74 65 / 18%);
}

.site-nav,
.footer-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.site-nav a,
.footer-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 720;
  text-decoration: none;
}

.site-nav a:hover,
.footer-nav a:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.site-nav a[aria-current="page"],
.footer-nav a[aria-current="page"] {
  background: var(--surface-soft);
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: clamp(36px, 7vw, 88px);
  padding-block: clamp(64px, 9vw, 120px);
}

.hero-copy {
  min-width: 0;
}

.eyebrow,
.kicker {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 0.79rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 16%, transparent);
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

h1,
h2 {
  margin-top: 0;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.hero h1 {
  max-width: 810px;
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 6.3vw, 5.7rem);
}

.hero-lede,
.page-lede {
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.hero-lede {
  max-width: 680px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-width: 0;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--primary) 23%, transparent);
}

.button-primary:hover {
  border-color: var(--primary-hover);
  background: var(--primary-hover);
}

.button-secondary {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--primary);
  background: var(--surface-soft);
}

.flow-card {
  padding: clamp(28px, 4vw, 42px);
  border-radius: 28px;
  background: var(--surface-strong);
  color: var(--background);
  box-shadow: var(--shadow);
}

.flow-card .kicker {
  color: color-mix(in srgb, var(--accent) 78%, var(--background));
}

.flow-card h2 {
  margin-bottom: 30px;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
}

.flow-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
  list-style: none;
}

.flow-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.flow-list > li > .step-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--background) 35%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--background) 9%, transparent);
  font-weight: 850;
}

.flow-list strong,
.flow-list small {
  display: block;
}

.flow-list strong {
  margin-bottom: 2px;
  font-size: 1.02rem;
}

.flow-list small {
  color: color-mix(in srgb, var(--background) 72%, transparent);
  font-size: 0.9rem;
  line-height: 1.5;
}

.flow-note {
  margin: 30px 0 0;
  padding-top: 22px;
  border-top: 1px solid color-mix(in srgb, var(--background) 22%, transparent);
  color: color-mix(in srgb, var(--background) 76%, transparent);
  font-size: 0.9rem;
}

.feature-section {
  padding-block: clamp(58px, 8vw, 96px);
  border-top: 1px solid var(--border);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 36px;
}

.section-heading h2,
.privacy-band h2,
.page-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.5vw, 3.7rem);
}

.section-heading > p:last-child,
.privacy-band p,
.site-footer p {
  color: var(--muted);
}

.section-heading > p:last-child {
  margin: 0;
  font-size: 1.08rem;
}

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

.feature-card,
.legal-stack > section,
.error-card {
  border: 1px solid var(--border);
  background: var(--surface);
}

.feature-card {
  min-height: 238px;
  padding: 26px;
  border-radius: 20px;
}

.feature-index {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.privacy-band {
  margin-block: clamp(36px, 7vw, 88px);
  padding: clamp(30px, 5vw, 54px);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 7vw, 88px);
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface-soft);
}

.privacy-band h2,
.privacy-band p {
  margin-bottom: 0;
}

.privacy-band p {
  margin-top: 0;
  font-size: 1.04rem;
}

.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-weight: 800;
}

.page-main {
  padding-block: clamp(54px, 8vw, 100px);
}

.page-hero {
  max-width: 800px;
  margin-bottom: clamp(36px, 6vw, 64px);
}

.page-hero h1 {
  margin-bottom: 20px;
}

.page-lede {
  max-width: 700px;
  margin: 0;
}

.effective-date {
  width: fit-content;
  margin: 24px 0 0;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.legal-stack {
  max-width: 850px;
  display: grid;
  gap: 16px;
}

.legal-stack > section {
  padding: clamp(24px, 4vw, 38px);
  border-radius: 20px;
}

.legal-stack h2 {
  margin-bottom: 16px;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  letter-spacing: -0.025em;
}

.legal-stack p {
  color: var(--muted);
}

.legal-stack p:last-child,
.legal-stack ol:last-child,
.legal-stack ul:last-child {
  margin-bottom: 0;
}

.legal-stack strong {
  color: var(--text);
}

.legal-stack .notice {
  border-left: 5px solid var(--primary);
  background: var(--surface-soft);
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.contact-card .kicker {
  margin-bottom: 10px;
}

.check-list {
  margin: 0 0 18px;
  padding-left: 1.35rem;
  color: var(--muted);
}

.check-list li {
  padding: 4px 0 4px 6px;
}

.error-page {
  min-height: min(680px, 70vh);
  display: grid;
  place-items: center;
  padding-block: 64px;
}

.error-card {
  width: min(650px, 100%);
  padding: clamp(32px, 7vw, 68px);
  border-radius: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

.error-code {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.error-card h1 {
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 7vw, 4rem);
}

.error-card > p:not(.error-code) {
  max-width: 470px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1.08rem;
}

.site-footer {
  margin-top: clamp(20px, 4vw, 52px);
  border-top: 1px solid var(--border);
}

.footer-inner {
  min-height: 180px;
  padding-block: 38px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 30px;
}

.brand-small {
  min-height: 44px;
  font-size: 1.08rem;
}

.site-footer p {
  margin: 5px 0 0;
  font-size: 0.88rem;
}

.footer-inner > p {
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow-card {
    width: min(650px, 100%);
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .privacy-band {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .footer-inner > p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 32px, 1120px);
  }

  .header-inner {
    min-height: 72px;
    align-items: flex-start;
    padding-block: 10px;
    gap: 10px;
  }

  .brand {
    flex: none;
  }

  .site-nav {
    justify-content: flex-end;
    gap: 0;
  }

  .site-nav a {
    padding-inline: 10px;
  }

  .hero {
    padding-block: 50px 66px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 14vw, 4rem);
  }

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

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .feature-index {
    margin-bottom: 24px;
  }

  .contact-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-card .button {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .footer-nav {
    margin-left: -10px;
  }

  .footer-inner > p {
    grid-column: auto;
  }
}

@media (max-width: 390px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .site-nav {
    justify-content: flex-start;
    margin-left: -10px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 13.5vw, 3.2rem);
  }

  .flow-card,
  .privacy-band,
  .error-card {
    border-radius: 22px;
  }
}

@media (forced-colors: active) {
  .button,
  .feature-card,
  .flow-card,
  .legal-stack > section,
  .privacy-band {
    border: 1px solid CanvasText;
  }
}
