:root {
  color-scheme: light;
  --bg: #f6f7f5;
  --ink: #101418;
  --muted: #66706b;
  --line: rgba(16, 20, 24, 0.12);
  --panel: rgba(255, 255, 255, 0.86);
  --accent: #00a86b;
  --accent-dark: #007a54;
  --warm: #ffb84d;
  --blue: #2867d6;
  --shadow: 0 22px 80px rgba(16, 20, 24, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: inherit;
}

.landing {
  min-height: 100vh;
}

.hero {
  min-height: 88vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 48px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 24px;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 64px;
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.7);
}

.hero-media {
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #dfe8df;
}

.hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.feature-band article {
  min-height: 150px;
  padding: 28px;
  background: #fff;
}

.feature-band strong,
.feature-band span {
  display: block;
}

.feature-band strong {
  font-size: 22px;
}

.feature-band span {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.surface {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(0, 168, 107, 0.12), transparent 46%),
    linear-gradient(315deg, rgba(40, 103, 214, 0.11), transparent 42%),
    var(--bg);
}

.profile-shell,
.referral-shell,
.form-shell {
  align-content: center;
}

.profile-card,
.state-card {
  width: min(760px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.profile-hero {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 20px;
  align-items: center;
  padding: 26px;
}

.avatar {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 42px;
  font-weight: 800;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.stats-grid article {
  padding: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.stats-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.stats-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.state-card {
  padding: 28px;
  text-align: center;
}

.state-card.error,
.status.error {
  color: #b42318;
}

.referral-card h1,
.form-card h1 {
  font-size: 42px;
}

.code {
  display: inline-flex;
  margin: 12px 0 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: #eef6ef;
  font-weight: 800;
}

.form-card {
  text-align: left;
}

form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

.status {
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  background: #eef6ef;
}

.status.success {
  color: var(--accent-dark);
}

.link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--accent-dark);
  font-weight: 750;
}

.legal-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 34px 20px 72px;
}

.legal-locales {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.legal-locale {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #303a35;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  background: #fff;
}

.legal-locale.active {
  border-color: rgba(19, 117, 89, 0.32);
  color: var(--accent-dark);
  background: rgba(19, 117, 89, 0.08);
}

.legal-banner {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(180, 35, 24, 0.25);
  border-radius: 8px;
  color: #7a271a;
  background: #fff2ea;
  font-weight: 750;
}

.legal-doc {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.legal-doc h1 {
  font-size: 44px;
}

.legal-doc h2 {
  margin-top: 32px;
}

.legal-doc p,
.legal-doc li {
  color: #303a35;
  line-height: 1.65;
}

[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 26px;
  }

  h1 {
    font-size: 46px;
  }

  .lead {
    font-size: 18px;
  }

  .feature-band,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    grid-template-columns: 1fr;
  }

  .avatar {
    width: 96px;
    height: 96px;
  }

  .legal-doc {
    padding: 22px;
  }

  .legal-doc h1 {
    font-size: 34px;
  }
}
