:root {
  --ink: #25233d;
  --muted: #66647b;
  --paper: #fffdfb;
  --canvas: #fff9f5;
  --line: rgba(50, 43, 82, .11);
  --plum: #7451c8;
  --plum-deep: #5a38af;
  --coral: #ee6e62;
  --teal: #188f89;
  --shadow: 0 18px 48px rgba(69, 48, 104, .09);
  --radius: 1.4rem;
  --shell: 76rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Segoe UI Variable", "Aptos", "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}
a { color: inherit; }
svg { display: block; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.shell { width: min(calc(100% - 2rem), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: .75rem; left: .75rem; padding: .7rem 1rem; border-radius: .75rem; background: var(--ink); color: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #f0a545; outline-offset: 3px; }

.hero { position: relative; min-height: 37rem; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 50% -20%, #fff 0, transparent 55%), linear-gradient(150deg, #fffaf6, #f9f4ff 54%, #f2fbfa); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 8rem; background: linear-gradient(transparent, var(--canvas)); pointer-events: none; }
.hero__content { position: relative; z-index: 1; display: grid; justify-items: center; padding: 5.6rem 0 6.5rem; text-align: center; }
.brand-mark { display: grid; width: 3.5rem; height: 3.5rem; margin-bottom: 1.1rem; place-items: center; border: 1px solid rgba(116,81,200,.2); border-radius: 1.15rem; color: var(--plum); background: rgba(255,255,255,.75); box-shadow: 0 12px 30px rgba(116,81,200,.12); transform: rotate(-5deg); }
.brand-mark svg { width: 1.8rem; height: 1.8rem; }
.eyebrow, .group-kicker { margin: 0; color: var(--plum); font-size: .8rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
h1 { max-width: 11ch; margin: .25rem 0 .65rem; font-size: clamp(3.6rem, 11vw, 7.4rem); font-weight: 760; letter-spacing: -.065em; line-height: .92; }
h1 span { color: var(--plum); }
.hero__lead { max-width: 48rem; margin: 1.2rem auto .45rem; font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 560; line-height: 1.4; }
.hero__support { max-width: 42rem; margin: 0 auto; color: var(--muted); font-size: 1.05rem; }
.hero__glow { position: absolute; border-radius: 50%; opacity: .35; filter: blur(2px); }
.hero__glow--one { width: 23rem; height: 23rem; top: -9rem; left: -8rem; background: radial-gradient(circle, #ffb68f, transparent 68%); }
.hero__glow--two { width: 28rem; height: 28rem; right: -13rem; bottom: -10rem; background: radial-gradient(circle, #86d9d1, transparent 68%); }
.section-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; margin-top: 2rem; }
.section-nav a { display: inline-flex; align-items: center; gap: .55rem; padding: .65rem 1rem; border: 1px solid var(--line); border-radius: 99rem; background: rgba(255,255,255,.76); font-size: .9rem; font-weight: 650; text-decoration: none; box-shadow: 0 8px 20px rgba(40,31,72,.05); transition: transform .2s ease, background .2s ease; }
.section-nav a:hover { background: #fff; transform: translateY(-2px); }
.nav-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--plum); }
.nav-dot--join { background: var(--coral); }
.nav-dot--check { background: var(--teal); }

.resource-map { position: relative; z-index: 2; margin-top: -2.5rem; padding-bottom: 2rem; }
.resource-group { --accent: var(--plum); --tint: #f1eafa; padding: clamp(2.1rem, 5vw, 4rem) 0; scroll-margin-top: 1rem; }
.resource-group--join { --accent: #d95850; --tint: #fff0ec; }
.resource-group--check { --accent: #147d78; --tint: #e8f7f4; }
.group-heading { display: grid; grid-template-columns: minmax(12rem, .55fr) 1fr; align-items: end; gap: 2rem; margin-bottom: 1.5rem; }
.group-heading h2 { margin: .05rem 0 0; font-size: clamp(2.2rem, 4vw, 3.25rem); line-height: 1; letter-spacing: -.04em; }
.group-heading > p { max-width: 38rem; margin: 0 0 .25rem auto; color: var(--muted); font-size: 1.05rem; }
.group-kicker { color: var(--accent); }
.card-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.card-grid--four { grid-template-columns: repeat(4, 1fr); }
.card-grid--four .resource-card { grid-column: auto; }
.resource-card { grid-column: span 2; display: flex; min-height: 22rem; padding: 1.35rem; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.88); box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card-grid .resource-card:nth-last-child(2):nth-child(4) { grid-column: 2 / span 2; }
.resource-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 28%, transparent); box-shadow: 0 24px 56px rgba(69,48,104,.13); }
.card-icon { display: grid; width: 3rem; height: 3rem; margin-bottom: 1.3rem; place-items: center; border-radius: 1rem; color: var(--accent); background: var(--tint); }
.card-icon svg { width: 1.55rem; height: 1.55rem; }
.card-copy { flex: 1; }
.card-copy h3 { margin: 0 0 .55rem; font-size: 1.18rem; line-height: 1.25; letter-spacing: -.015em; }
.card-copy h3 span { white-space: nowrap; }
.card-copy p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.availability { display: flex; min-height: 2.8rem; margin: 1.25rem 0 1rem; align-items: center; gap: .55rem; color: color-mix(in srgb, var(--accent) 80%, var(--ink)); font-size: .8rem; font-weight: 680; line-height: 1.35; }
.availability span { flex: 0 0 auto; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 .28rem var(--tint); }
.card-actions { display: grid; gap: .55rem; }
.card-action { display: flex; min-height: 2.75rem; padding: .7rem .85rem; align-items: center; justify-content: space-between; gap: .75rem; border-radius: .85rem; color: #fff; background: var(--accent); font-size: .9rem; font-weight: 700; text-decoration: none; transition: filter .2s ease, transform .2s ease; }
.card-action svg { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; transition: transform .2s ease; }
.card-action:hover { filter: brightness(.93); }
.card-action:hover svg { transform: translateX(3px); }
.card-action[aria-disabled="true"] { cursor: default; color: var(--muted); background: #efedf1; }
.card-action[aria-disabled="true"] svg { display: none; }
.action-label { display: grid; line-height: 1.25; }
.action-label small { margin-top: .15rem; font-size: .72rem; font-weight: 560; }
.inline-resource-link { color: var(--plum-deep); font-weight: 700; text-underline-offset: .18em; }

.start-here { margin-top: 2rem; padding: 1rem 0 4rem; }
.start-here__inner { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1.2rem; overflow: hidden; padding: clamp(1.5rem, 4vw, 2.4rem); border: 1px solid rgba(116,81,200,.18); border-radius: 1.8rem; background: linear-gradient(130deg, #f2eafa, #fff 55%, #eaf8f5); box-shadow: var(--shadow); }
.start-here__inner::after { content: "?"; position: absolute; right: 16rem; color: rgba(116,81,200,.045); font-size: 12rem; font-weight: 800; line-height: 1; transform: rotate(8deg); pointer-events: none; }
.start-here__icon { z-index: 1; display: grid; width: 3.5rem; height: 3.5rem; place-items: center; border-radius: 1.1rem; color: var(--plum); background: #fff; box-shadow: 0 10px 28px rgba(70,46,123,.12); }
.start-here__icon svg { width: 1.7rem; height: 1.7rem; }
.start-here h2 { margin: 0 0 .25rem; font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.025em; }
.start-here p { max-width: 47rem; margin: 0; color: var(--muted); }
footer { padding: 1.5rem 0 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
footer .shell { display: flex; justify-content: space-between; gap: 1rem; }
footer p { margin: 0; }
footer p span { color: var(--coral); }
footer a { font-weight: 650; text-decoration: none; }

@media (max-width: 60rem) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .resource-card, .card-grid .resource-card:nth-last-child(2):nth-child(4) { grid-column: auto; }
  .card-grid .resource-card:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 19rem; }
  .start-here__inner { grid-template-columns: auto 1fr; }
}

@media (max-width: 42rem) {
  .shell { width: min(calc(100% - 1.25rem), var(--shell)); }
  .hero { min-height: 34rem; }
  .hero__content { padding-top: 4rem; }
  h1 { font-size: clamp(3.45rem, 18vw, 5.2rem); }
  .hero__lead { font-size: 1.2rem; }
  .section-nav { gap: .45rem; }
  .section-nav a { padding: .6rem .8rem; font-size: .84rem; }
  .resource-map { margin-top: -1.75rem; }
  .group-heading { grid-template-columns: 1fr; gap: .75rem; }
  .group-heading > p { margin-left: 0; }
  .card-grid { grid-template-columns: 1fr; }
  .resource-card, .card-grid .resource-card:last-child:nth-child(odd) { grid-column: auto; min-height: 19.5rem; }
  .start-here__inner { grid-template-columns: 1fr; }
  .start-here__icon { width: 3rem; height: 3rem; }
  footer .shell { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
