:root {
  --am-bg: #f8fafc;
  --am-surface: #ffffff;
  --am-text: #0f172a;
  --am-muted: #475569;
  --am-border: #e2e8f0;
  --am-primary: #2563eb;
  --am-primary-hover: #1d4ed8;
  --am-on-primary: #ffffff;
  --am-brand-blue: #0a6eb6;
  --am-brand-green: #42ac33;
  --am-hero: linear-gradient(135deg, #dbeafe 0%, #bae6fd 100%);
  --am-shadow: 0 4px 6px rgba(15, 23, 42, 0.08);
  --am-shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.1);
  --am-font:
    system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
    'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--am-bg);
  color: var(--am-text);
  font-family: var(--am-font);
  line-height: 1.55;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--am-primary);
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  background: var(--am-surface);
  padding: 8px 12px;
  z-index: 20;
}

.wrap {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.wrap-wide {
  max-width: 68rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 8;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--am-border);
}

.header-inner,
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  min-height: 44px;
}

.brand img {
  width: 2.6rem;
  height: auto;
  display: block;
}

.wordmark {
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.wordmark .appraise {
  color: var(--am-brand-blue);
}

.wordmark .mint {
  color: var(--am-brand-green);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.2rem;
}

nav a {
  text-decoration: none;
  color: var(--am-muted);
  min-height: 44px;
  padding: 0 0.65rem;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

nav a:hover,
nav a[aria-current='page'] {
  color: var(--am-text);
  background: #eff6ff;
}

.hero {
  background: var(--am-hero);
  padding: 2.75rem 0 2.4rem;
  text-align: center;
  border-bottom: 1px solid #93c5fd;
}

.hero-mark {
  width: 7.5rem;
  margin: 0 auto 0.35rem;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.28));
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.85rem);
  line-height: 1.12;
  margin: 0 0 0.85rem;
  letter-spacing: -0.03em;
}

.hero .lede {
  max-width: 42rem;
  margin: 0 auto;
  font-size: clamp(1.02rem, 2.4vw, 1.22rem);
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--am-primary);
  margin: 0 0 0.55rem;
}

.lede,
.muted {
  color: var(--am-muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.5rem 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.2rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  box-shadow: var(--am-shadow);
}

.btn-primary,
button[type='submit'] {
  background: var(--am-primary);
  color: var(--am-on-primary);
}

.btn-primary:hover,
button[type='submit']:hover {
  background: var(--am-primary-hover);
}

.btn-secondary {
  background: var(--am-surface);
  color: var(--am-text);
  border-color: var(--am-border);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.1rem;
  margin-top: 1.35rem;
  color: var(--am-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.section {
  padding: 2.4rem 0 0;
}

.section h2 {
  font-size: clamp(1.3rem, 3.5vw, 1.7rem);
  margin: 0 0 0.7rem;
  letter-spacing: -0.02em;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.1rem 0 0;
}

@media (min-width: 720px) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  border-radius: 14px;
  padding: 1.15rem 1.2rem;
  box-shadow: var(--am-shadow);
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.waitlist h2,
.card > h2 {
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

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

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--am-primary);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 0.55rem;
}

.page-hero {
  background: var(--am-hero);
  padding: 2rem 0 1.6rem;
  border-bottom: 1px solid #93c5fd;
}

.page-hero h1 {
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
  line-height: 1.18;
  margin: 0 0 0.65rem;
  letter-spacing: -0.03em;
}

.page-main {
  padding: 1.75rem 0 2.5rem;
  flex: 1;
}

.page-main h2 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.5rem;
  letter-spacing: -0.02em;
}

.video-frame {
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
  margin: 0.4rem 0 0;
  box-shadow: var(--am-shadow-lg);
}

.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  background: #0f172a;
}

.waitlist {
  margin-top: 2rem;
  position: relative;
}

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

label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

input[type='email'],
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--am-border);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  font: inherit;
  background: var(--am-surface);
  color: var(--am-text);
}

.state-picker {
  margin: 0 0 1.25rem;
}

.state-picker select {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 0.35rem;
  border: 1px solid var(--am-border);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  font: inherit;
  background: var(--am-surface);
  color: var(--am-text);
}

.state-result {
  margin: 0 0 1.75rem;
}

.state-result h3 {
  margin: 0 0 0.5rem;
}

.state-result p {
  margin: 0 0 0.75rem;
}

.state-result p:last-child {
  margin-bottom: 0;
}

button[type='submit'] {
  margin-top: 0.75rem;
  min-height: 44px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button[type='submit']:disabled {
  opacity: 0.7;
  cursor: wait;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--am-border);
  padding: 1.35rem 0 1.8rem;
  font-size: 0.92rem;
  color: var(--am-muted);
  background: var(--am-surface);
}

.contact-status {
  flex-basis: 100%;
  margin: 0;
  min-height: 1.2em;
}

.contact-status.is-set {
  color: var(--am-text);
  font-weight: 700;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid var(--am-border);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
}

.legal-meta {
  color: var(--am-muted);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.legal-toc a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.crumbs {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
}

.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.2rem;
  margin: 0;
  padding: 0;
  color: var(--am-muted);
}

.crumbs li {
  display: inline-flex;
  align-items: center;
}

.crumbs li:not(:last-child)::after {
  content: '/';
  margin: 0 0.4rem;
  color: var(--am-border);
}

.crumbs a {
  color: var(--am-muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.crumbs [aria-current='page'] {
  color: var(--am-text);
  font-weight: 600;
}

.faq dt {
  font-weight: 700;
  margin-top: 1.15rem;
}

.faq dt:first-child {
  margin-top: 0;
}

.faq dd {
  margin: 0.35rem 0 0;
  color: var(--am-muted);
}

ul {
  padding-left: 1.15rem;
}

.related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.edu-note {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--am-border);
  border-radius: 10px;
  background: var(--am-surface);
  color: var(--am-muted);
  font-size: 0.95rem;
}

.state-directory {
  columns: 2;
  column-gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.state-directory li {
  break-inside: avoid;
  margin: 0 0 0.45rem;
}

.state-directory a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.state-neighbors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 1.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--am-border);
}

.state-neighbors a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.state-article h2 {
  margin-top: 1.6rem;
}

@media (max-width: 640px) {
  .state-directory {
    columns: 1;
  }

  nav a {
    padding: 0 0.45rem;
    font-size: 0.88rem;
  }

  .hero {
    padding: 2rem 0 1.75rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --am-bg: #0f172a;
    --am-surface: #1e293b;
    --am-text: #f8fafc;
    --am-muted: #cbd5e1;
    --am-border: #334155;
    --am-hero: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --am-shadow: 0 10px 24px rgba(2, 6, 23, 0.35);
  }

  .site-header {
    background: rgba(15, 23, 42, 0.92);
  }

  .hero,
  .page-hero {
    border-bottom-color: #334155;
  }

  .edu-note {
    background: #1e293b;
  }

  nav a:hover,
  nav a[aria-current='page'] {
    background: rgba(37, 99, 235, 0.2);
    color: #dbeafe;
  }

  .step-num {
    background: rgba(37, 99, 235, 0.2);
    color: #93c5fd;
  }
}
