:root {
  --ink: #172033;
  --muted: #5b6577;
  --paper: #fffaf0;
  --white: #ffffff;
  --line: rgba(23, 32, 51, .13);
  --blue: #2563eb;
  --teal: #0f9f8f;
  --green: #16a34a;
  --coral: #f9735b;
  --yellow: #f9c74f;
  --violet: #7c3aed;
  --shadow: 0 22px 70px rgba(23, 32, 51, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .09), transparent 30%),
    linear-gradient(225deg, rgba(15, 159, 143, .11), transparent 32%),
    var(--paper);
}
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 250, 240, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  font-weight: 900;
}
.brand-mark img {
  width: 46px;
  height: 46px;
  display: block;
  border-radius: 14px;
}
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 12px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-weight: 750; }
.nav-links a { text-decoration: none; color: #2b3448; }
.menu-toggle { display: none; }

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(320px, .85fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
  padding: clamp(32px, 7vw, 92px) clamp(18px, 5vw, 72px);
}
.home-hero {
  min-height: calc(100vh - 76px);
  padding-top: clamp(28px, 5vw, 58px);
}
.hero-copy { max-width: 780px; }
.powered-strip {
  display: grid;
  gap: 6px;
  margin-bottom: 28px;
  padding: 16px 18px;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 18px 44px rgba(23, 32, 51, .08);
}
.powered-strip span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.powered-strip strong {
  color: var(--ink);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.35;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 22px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: .96;
  letter-spacing: 0;
}
h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4.3vw, 58px);
  line-height: 1.03;
  letter-spacing: 0;
}
h3 { margin-bottom: 10px; font-size: 22px; }
.hero-text, section p, li { color: var(--muted); font-size: 18px; line-height: 1.65; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 30px; }
.hero-actions.center { justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.btn.primary { background: var(--blue); color: white; box-shadow: 0 12px 26px rgba(37, 99, 235, .25); }
.btn.secondary { background: white; color: var(--ink); border: 1px solid var(--line); }
.btn.success { background: var(--green); color: white; }
.text-link { color: var(--blue); font-weight: 900; text-decoration: none; }

.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.trust-row span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .65);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.hero-art {
  min-height: 560px;
  position: relative;
  border-radius: 34px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .54)),
    linear-gradient(135deg, rgba(37, 99, 235, .18), rgba(15, 159, 143, .18));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.learning-stage {
  min-height: 600px;
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 24% 20%, rgba(249, 199, 79, .42), transparent 22%),
    radial-gradient(circle at 80% 28%, rgba(15, 159, 143, .24), transparent 26%),
    linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(238, 250, 247, .76));
  box-shadow: var(--shadow);
}
.learning-stage::before {
  content: "";
  position: absolute;
  inset: 56px;
  border: 2px dashed rgba(37, 99, 235, .24);
  border-radius: 999px;
  animation: slow-spin 28s linear infinite;
}
.orbit-ring {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  right: 46px;
  bottom: 48px;
  background: conic-gradient(from 130deg, var(--blue), var(--teal), var(--yellow), var(--coral), var(--blue));
  opacity: .18;
  animation: pulse-ring 5s ease-in-out infinite;
}
.stage-card {
  position: absolute;
  display: grid;
  gap: 8px;
  width: min(280px, 42%);
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(23, 32, 51, .12);
  box-shadow: 0 24px 70px rgba(23, 32, 51, .13);
}
.stage-card strong { font-size: clamp(22px, 3vw, 32px); line-height: 1; }
.stage-card small { color: var(--muted); font-weight: 800; }
.stage-card-main { left: 48px; top: 66px; animation: float-card 5s ease-in-out infinite; }
.stage-card-two { right: 42px; top: 225px; animation: float-card 5.8s ease-in-out infinite reverse; }
.stage-card-three { left: 96px; bottom: 72px; animation: float-card 6.2s ease-in-out infinite; }
.stage-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--blue);
  color: white;
  font-weight: 1000;
}
.stage-icon.calm { background: var(--teal); }
.stage-icon.safe { background: var(--green); }
.floating-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #172033;
  color: white;
  font-weight: 950;
  box-shadow: 0 16px 34px rgba(23, 32, 51, .18);
}
.chip-one { left: 52%; top: 88px; animation: bob-chip 4s ease-in-out infinite; }
.chip-two { left: 38%; top: 300px; background: var(--coral); animation: bob-chip 5s ease-in-out infinite reverse; }
.chip-three { right: 78px; bottom: 88px; background: var(--violet); animation: bob-chip 4.5s ease-in-out infinite; }
@keyframes slow-spin { to { transform: rotate(360deg); } }
@keyframes pulse-ring { 0%, 100% { transform: scale(.96); opacity: .16; } 50% { transform: scale(1.05); opacity: .25; } }
@keyframes float-card { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes bob-chip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(12px); } }
.sun {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: var(--yellow);
  top: 44px;
  right: 52px;
  box-shadow: 0 0 0 22px rgba(249, 199, 79, .18);
}
.play-card {
  position: absolute;
  width: 210px;
  height: 132px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: white;
  font-size: 26px;
  font-weight: 950;
  box-shadow: 0 18px 45px rgba(23, 32, 51, .18);
}
.card-one { left: 48px; top: 105px; background: var(--blue); transform: rotate(-7deg); }
.card-two { right: 82px; top: 240px; background: var(--coral); transform: rotate(6deg); }
.card-three { left: 118px; bottom: 82px; background: var(--teal); transform: rotate(3deg); }
.path-dot {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--violet);
  border: 6px solid white;
}
.dot-one { left: 290px; top: 210px; }
.dot-two { left: 250px; top: 330px; background: var(--green); }
.dot-three { right: 110px; bottom: 100px; background: var(--yellow); }

section { padding: clamp(54px, 8vw, 105px) clamp(18px, 5vw, 72px); }
.mission-band {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(300px, 1.2fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  background: #172033;
  color: white;
}
.mission-modern {
  background:
    linear-gradient(135deg, rgba(23, 32, 51, .96), rgba(20, 43, 78, .96)),
    #172033;
}
.animated-card {
  transition: transform .22s ease, box-shadow .22s ease;
}
.animated-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(23, 32, 51, .12);
}
.impact-quote {
  background:
    radial-gradient(circle at 20% 20%, rgba(249, 199, 79, .24), transparent 24%),
    linear-gradient(135deg, var(--teal), var(--blue));
}
.mission-band p { color: rgba(255, 255, 255, .78); }
.mission-band .eyebrow { color: var(--yellow); }

.split-section, .parent-section, .platform-row {
  display: grid;
  grid-template-columns: minmax(280px, .75fr) minmax(320px, 1.25fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.section-copy { position: sticky; top: 104px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.feature-card, .parent-panel, .quote-panel, .wide-card, .form-card, .admin-card, .donation-card {
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 12px 40px rgba(23, 32, 51, .08);
}
.feature-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 13px;
  background: rgba(37, 99, 235, .11);
  color: var(--blue);
  font-weight: 950;
}
.parent-section { background: white; }
.check-list { padding-left: 20px; margin: 22px 0 28px; }
.quote-panel {
  min-height: 360px;
  display: grid;
  align-content: center;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: white;
}
.quote-panel blockquote { margin: 0 0 22px; font-size: clamp(28px, 4vw, 46px); line-height: 1.05; font-weight: 950; }
.quote-panel span { color: rgba(255, 255, 255, .8); font-weight: 800; }
.platform-row { grid-template-columns: 1fr 1fr; }
.wide-card.accent { background: #172033; color: white; }
.wide-card.accent p { color: rgba(255, 255, 255, .76); }
.cta-section { text-align: center; background: rgba(37, 99, 235, .08); }
.cta-section h2 { max-width: 900px; margin-left: auto; margin-right: auto; }

.page-hero {
  padding: clamp(44px, 7vw, 88px) clamp(18px, 5vw, 72px) clamp(24px, 4vw, 44px);
  text-align: center;
}
.page-hero p { max-width: 780px; margin-left: auto; margin-right: auto; }
.portal-grid, .admin-grid, .donation-grid {
  display: grid;
  grid-template-columns: minmax(310px, .85fr) minmax(320px, 1.15fr);
  gap: 24px;
  align-items: start;
}
label { display: block; margin: 16px 0 7px; color: #30394d; font-weight: 850; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  font: inherit;
}
textarea { min-height: 112px; resize: vertical; }
.fine-print, .status-note { color: var(--muted); font-size: 14px; line-height: 1.55; }
.status-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(37, 99, 235, .08);
}
.warning-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(249, 199, 79, .2);
  color: #6b4e00;
  font-size: 14px;
  line-height: 1.55;
}
.otp-box { display: none; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.otp-box.show { display: block; }
.kid-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  margin-top: 12px;
  border-radius: 16px;
  background: rgba(15, 159, 143, .09);
  border: 1px solid rgba(15, 159, 143, .22);
}
.record-table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 16px; }
.record-table th, .record-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.record-table th { background: rgba(23, 32, 51, .06); color: #30394d; }
.record-table td { color: var(--muted); }
.admin-tools {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(280px, 1.2fr);
  gap: 18px;
  margin-top: 22px;
}
.game-draft-list {
  display: grid;
  gap: 12px;
}
.game-draft {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .7);
}
.game-draft strong { display: block; }
.game-draft span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.metric { padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, .82); border: 1px solid var(--line); }
.metric strong { display: block; font-size: 28px; }
.donation-card .amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.amounts button { min-height: 48px; border: 1px solid var(--line); border-radius: 12px; background: white; font-weight: 900; cursor: pointer; }
.impact-list { display: grid; gap: 12px; }
.impact-list div { padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); }
.donation-hero, .thank-you-hero {
  background:
    radial-gradient(circle at 20% 0%, rgba(249, 199, 79, .24), transparent 26%),
    radial-gradient(circle at 80% 10%, rgba(15, 159, 143, .18), transparent 30%);
}
.donation-checkout {
  position: relative;
  overflow: hidden;
}
.donation-checkout::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .08);
}
.donation-checkout > * { position: relative; z-index: 1; }
.proof-section {
  padding-top: 24px;
}
.proof-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.proof-card {
  background: rgba(255, 255, 255, .84);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 12px 40px rgba(23, 32, 51, .08);
}
.proof-card h2 {
  font-size: clamp(24px, 3vw, 34px);
}
.proof-image {
  min-height: 220px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(23, 32, 51, .22);
  color: var(--muted);
  font-weight: 900;
}
.placeholder-proof {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .10), rgba(15, 159, 143, .12)),
    white;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 72px);
  background: #101827;
  color: white;
}
.site-footer p { margin: 6px 0 0; color: rgba(255, 255, 255, .68); font-size: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: white; text-decoration: none; font-weight: 800; }

@media (max-width: 920px) {
  .menu-toggle { display: inline-flex; border: 1px solid var(--line); background: white; border-radius: 10px; padding: 10px 12px; font-weight: 900; }
  .nav-links { display: none; position: absolute; top: 76px; left: 16px; right: 16px; padding: 18px; border-radius: 18px; background: white; box-shadow: var(--shadow); }
  .nav-links.open { display: grid; gap: 14px; }
  .hero, .mission-band, .split-section, .parent-section, .platform-row, .portal-grid, .admin-grid, .donation-grid { grid-template-columns: 1fr; }
  .proof-grid, .proof-summary { grid-template-columns: 1fr; }
  .admin-tools { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-art { min-height: 420px; order: 2; }
  .learning-stage { min-height: 500px; order: 2; }
  .section-copy { position: static; }
  .feature-grid { grid-template-columns: 1fr; }
  .platform-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-header { align-items: flex-start; }
  .brand small { display: none; }
  .hero-art { min-height: 340px; }
  .learning-stage { min-height: 420px; }
  .stage-card { width: 70%; padding: 18px; }
  .stage-card-main { left: 22px; top: 42px; }
  .stage-card-two { right: 18px; top: 184px; }
  .stage-card-three { left: 38px; bottom: 42px; }
  .floating-chip { display: none; }
  .play-card { width: 150px; height: 96px; font-size: 20px; }
  .card-two { right: 28px; }
  .card-three { left: 38px; }
  .metric-row, .donation-card .amounts { grid-template-columns: 1fr; }
  .site-footer { display: grid; }
}

/* 2026 home rebuild */
.home-page {
  background: #f7fbff;
}
.home-header {
  background: rgba(255, 255, 255, .94);
}
.home-brand .brand-mark {
  background: white;
}
.home-brand strong {
  font-size: 27px;
  line-height: .95;
}
.home-brand small {
  color: var(--teal);
  font-weight: 900;
}
.home-nav {
  gap: 18px;
  font-size: 14px;
  font-weight: 900;
}
.nav-pill {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  color: white !important;
  background: linear-gradient(135deg, var(--violet), #4f46e5);
  box-shadow: 0 14px 30px rgba(124, 58, 237, .22);
}
.home-landing {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(420px, 1.1fr);
  gap: 34px;
  align-items: stretch;
  padding: clamp(28px, 5vw, 62px) clamp(18px, 5vw, 72px) 30px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .98) 0 42%, rgba(255, 255, 255, .72)),
    radial-gradient(circle at 88% 18%, rgba(15, 159, 143, .18), transparent 26rem);
}
.landing-copy {
  align-self: center;
  max-width: 620px;
}
.landing-copy h1 {
  color: #10204a;
  font-size: clamp(44px, 6.4vw, 78px);
}
.landing-copy h1::first-line {
  color: #173a8f;
}
.landing-copy p {
  color: #20304c;
  font-weight: 650;
}
.support-note {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  color: #4c1d95;
  background: #f3edff;
  border: 1px solid rgba(124, 58, 237, .18);
}
.support-note strong {
  color: #5b21b6;
}
.support-note span {
  color: #3f2f63;
  line-height: 1.55;
  font-weight: 750;
}
.donate-btn {
  color: white;
  background: linear-gradient(135deg, var(--violet), var(--teal));
  box-shadow: 0 12px 26px rgba(124, 58, 237, .22);
}
.landing-visual {
  position: relative;
  min-height: 500px;
  border-radius: 0 0 0 80px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(23, 32, 51, .13);
}
.landing-visual img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  display: block;
  object-fit: cover;
}
.parent-quote {
  position: absolute;
  right: 24px;
  bottom: 34px;
  width: min(270px, calc(100% - 48px));
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 42px rgba(23, 32, 51, .16);
}
.parent-quote span {
  color: var(--teal);
  font-weight: 950;
  text-transform: uppercase;
  font-size: 12px;
}
.parent-quote strong {
  display: block;
  margin-top: 8px;
  font-size: 21px;
  line-height: 1.15;
}
.home-quick-talk {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 120px;
  gap: 12px;
  align-items: center;
  padding: 18px clamp(18px, 5vw, 72px);
  background: #e8f8ff;
  border-top: 1px solid rgba(23, 32, 51, .08);
  border-bottom: 1px solid rgba(23, 32, 51, .08);
}
.quick-label strong,
.quick-label span {
  display: block;
}
.quick-label strong {
  color: #10204a;
  font-size: 20px;
  font-weight: 1000;
  text-transform: uppercase;
}
.quick-label span {
  color: #24334e;
  font-weight: 850;
  font-size: 13px;
}
.home-aac-buttons {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}
.home-aac-buttons button {
  min-height: 84px;
  border: 1px solid rgba(23, 32, 51, .1);
  border-radius: 16px;
  background: white;
  color: #10204a;
  box-shadow: 0 8px 20px rgba(23, 32, 51, .06);
}
.home-aac-buttons button::before {
  content: "";
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
}
.home-aac-buttons button:nth-child(3)::before,
.home-aac-buttons button:nth-child(8)::before {
  background: var(--coral);
}
.home-aac-buttons button:nth-child(7)::before {
  background: var(--green);
}
.open-board-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 74px;
  padding: 10px;
  border-radius: 16px;
  background: white;
  color: var(--blue);
  text-align: center;
  text-decoration: none;
  font-weight: 1000;
  box-shadow: 0 8px 20px rgba(23, 32, 51, .06);
}
.age-mode-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 150px repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}
.age-mode-row span {
  color: #24334e;
  font-weight: 900;
}
.age-mode-row button {
  min-height: 52px;
  border: 2px solid rgba(124, 58, 237, .26);
  border-radius: 999px;
  background: white;
  color: #10204a;
  font-weight: 1000;
}
.age-mode-row button:last-child {
  color: white;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  border-color: transparent;
}
.center-text {
  text-align: center;
}
.app-includes {
  padding-top: 24px;
  background: #ecfbff;
}
.include-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}
.include-grid article {
  min-height: 210px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 12px;
  text-align: center;
  padding: 22px 16px;
  border-radius: 18px;
  background: white;
  border: 1px solid rgba(23, 32, 51, .12);
  box-shadow: 0 10px 28px rgba(23, 32, 51, .06);
}
.include-grid h3 {
  margin-bottom: 0;
  color: #12204a;
  font-size: 18px;
}
.include-grid p {
  font-size: 14px;
  line-height: 1.45;
}
.include-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: white;
  font-size: 13px;
  font-weight: 1000;
}
.include-icon.teal { background: #14b8a6; }
.include-icon.purple { background: #8b5cf6; }
.include-icon.orange { background: #f59e0b; }
.include-icon.yellow { background: #facc15; color: #3b2f02; }
.include-icon.green { background: #22c55e; }
.include-icon.blue { background: #2563eb; }
.app-preview-band {
  display: grid;
  grid-template-columns: minmax(250px, .42fr) minmax(420px, 1fr);
  gap: 28px;
  align-items: center;
  background: linear-gradient(90deg, #dbfbf5, #f7fbff);
}
.access-copy h2 {
  font-size: clamp(28px, 3.4vw, 44px);
}
.device-preview {
  padding: 24px;
  border: 14px solid #101827;
  border-radius: 38px;
  background: #f8fbff;
  box-shadow: 0 28px 70px rgba(23, 32, 51, .18);
}
.quick-talk-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}
.quick-talk-row button {
  min-height: 86px;
  border: 1px solid rgba(23, 32, 51, .14);
  border-radius: 14px;
  background: white;
  color: #15213f;
  font-weight: 950;
}
.preview-panels {
  display: grid;
  grid-template-columns: 1.1fr 1fr .8fr;
  gap: 12px;
  margin-top: 16px;
}
.preview-panels article {
  padding: 16px;
  border-radius: 16px;
  background: white;
  border: 1px solid rgba(23, 32, 51, .12);
}
.preview-panels span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}
.preview-panels strong {
  display: block;
  margin: 8px 0 12px;
  line-height: 1.35;
}
.preview-panels a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 12px;
  border-radius: 10px;
  color: white;
  background: var(--teal);
  text-decoration: none;
  font-weight: 900;
}
.mini-progress {
  height: 12px;
  border-radius: 999px;
  background: #dbe4ef;
  overflow: hidden;
}
.mini-progress i {
  display: block;
  width: 38%;
  height: 100%;
  background: linear-gradient(90deg, var(--yellow), var(--green));
}
.games-library-preview {
  background: white;
}
.section-title {
  max-width: 860px;
  margin: 0 auto 24px;
  text-align: center;
}
.section-title h2 {
  font-size: clamp(34px, 4.6vw, 58px);
}
.game-column-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.game-column {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(23, 32, 51, .1);
}
.game-column h3 {
  font-size: 18px;
  margin: 4px 0 8px;
}
.game-column div {
  min-height: 126px;
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .8);
}
.game-column strong,
.game-column span {
  display: block;
}
.game-column span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 750;
}
.game-column a {
  align-self: end;
  justify-self: end;
  min-width: 70px;
  min-height: 36px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  background: white;
  color: var(--blue);
  text-decoration: none;
  font-weight: 950;
}
.blue-soft { background: #eaf4ff; }
.green-soft { background: #eafaf0; }
.purple-soft { background: #f3edff; }
.orange-soft { background: #fff3df; }
.teal-soft { background: #e8fbfb; }
.learning-support-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  background: #f7fbff;
}
.how-card, .reward-home-card, .tip-home-card {
  padding: 28px;
  border: 1px solid rgba(23, 32, 51, .1);
  border-radius: 22px;
  background: white;
  box-shadow: 0 12px 34px rgba(23, 32, 51, .06);
}
.steps-row {
  display: flex;
  gap: 18px;
  margin: 20px 0;
}
.steps-row span {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: var(--teal);
  font-size: 24px;
  font-weight: 1000;
}
.mini-copy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.mini-copy-grid p {
  font-size: 14px;
  line-height: 1.35;
}
.mini-copy-grid strong {
  display: block;
  color: var(--ink);
}
.star-row {
  display: flex;
  gap: 8px;
  margin: 18px 0;
}
.star-row span,
.star-row i {
  width: 36px;
  height: 36px;
  clip-path: polygon(50% 0, 61% 34%, 97% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 3% 35%, 39% 34%);
  background: var(--yellow);
}
.star-row i {
  background: #cbd5e1;
}
.giveback-section {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, .75fr);
  gap: 28px;
  align-items: stretch;
  background:
    linear-gradient(90deg, rgba(255, 250, 240, .92), rgba(255, 255, 255, .9)),
    radial-gradient(circle at 40% 20%, rgba(249, 199, 79, .28), transparent 24rem);
}
.giveback-copy,
.giveback-panel {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(23, 32, 51, .12);
  border-radius: 28px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 16px 46px rgba(23, 32, 51, .08);
}
.giveback-panel {
  background: #fff7e6;
}
.giveback-panel ul {
  display: grid;
  gap: 14px;
  padding-left: 20px;
}
.donation-tracker-home {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(400px, 1.1fr);
  gap: 18px;
  background: #ffffff;
}
.tracker-card,
.tier-card {
  border: 1px solid rgba(23, 32, 51, .12);
  border-radius: 22px;
  background: white;
  box-shadow: 0 14px 38px rgba(23, 32, 51, .07);
}
.tracker-card {
  padding: clamp(24px, 4vw, 38px);
}
.goal-line strong {
  display: block;
  color: var(--teal);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}
.goal-line span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 900;
}
.goal-meter {
  height: 22px;
  margin: 22px 0 12px;
  border-radius: 999px;
  background: #d9e8ee;
  overflow: hidden;
}
.goal-meter i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--green));
}
.donation-tier-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.tier-card {
  min-height: 220px;
  display: grid;
  grid-template-rows: auto auto auto minmax(74px, 1fr) auto;
  align-content: stretch;
  justify-items: center;
  gap: 10px;
  padding: 18px 12px;
  text-align: center;
  text-decoration: none;
}
.tier-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: white;
  font-size: 15px;
  font-style: normal;
  font-weight: 1000;
  letter-spacing: 0;
  box-shadow: 0 12px 26px rgba(23, 32, 51, .15);
}
.tier-friend { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.tier-aac { background: linear-gradient(135deg, #0f9f8f, #22c55e); }
.tier-coach { background: linear-gradient(135deg, #f97316, #f59e0b); }
.tier-giveback { background: linear-gradient(135deg, #2563eb, #38bdf8); }
.tier-partner { background: linear-gradient(135deg, #6d28d9, #db2777); }
.tier-card strong {
  color: var(--violet);
  font-size: 30px;
}
.tier-card span {
  color: #10204a;
  font-weight: 950;
}
.tier-card small {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.4;
}
.tier-picture {
  position: relative;
  width: 86px;
  height: 72px;
  display: block;
  align-self: center;
  font-style: normal;
}
.tier-picture::before,
.tier-picture::after {
  content: "";
  position: absolute;
  display: block;
}
.picture-heart::before {
  left: 25px;
  top: 18px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #6d3edb;
  transform: rotate(45deg);
}
.picture-heart::after {
  left: 18px;
  top: 12px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #6d3edb;
  box-shadow: 24px 0 0 #6d3edb;
}
.picture-aac::before {
  left: 8px;
  top: 14px;
  width: 50px;
  height: 36px;
  border-radius: 18px;
  background: #0f9f8f;
}
.picture-aac::after {
  left: 48px;
  top: 24px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: -22px -1px 0 4px #ffffff;
}
.picture-family::before {
  left: 13px;
  top: 12px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #f97316;
  box-shadow: 24px 0 0 #f97316, 48px 0 0 #f97316;
}
.picture-family::after {
  left: 8px;
  top: 34px;
  width: 70px;
  height: 28px;
  border-radius: 20px 20px 10px 10px;
  background: #f97316;
}
.picture-horseshoe::before {
  left: 20px;
  top: 8px;
  width: 46px;
  height: 54px;
  border: 10px solid #2563eb;
  border-top: 0;
  border-radius: 0 0 42px 42px;
}
.picture-horseshoe::after {
  left: 18px;
  bottom: 8px;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: #2563eb;
  box-shadow: 38px 0 0 #2563eb;
}
.picture-community::before {
  left: 33px;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #7c3aed;
  box-shadow: -26px 13px 0 -2px #7c3aed, 26px 13px 0 -2px #7c3aed;
}
.picture-community::after {
  left: 16px;
  top: 38px;
  width: 54px;
  height: 26px;
  border-radius: 24px 24px 10px 10px;
  background: #7c3aed;
  box-shadow: -22px 4px 0 -7px #7c3aed, 22px 4px 0 -7px #7c3aed;
}
.tier-card b {
  width: 100%;
  min-height: 42px;
  display: grid;
  place-items: center;
  align-self: end;
  margin-top: 8px;
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 1000;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  box-shadow: 0 12px 24px rgba(37, 99, 235, .18);
}
.tier-card:nth-child(2) b { background: linear-gradient(135deg, var(--teal), var(--green)); }
.tier-card:nth-child(3) b { background: linear-gradient(135deg, var(--coral), #f59e0b); }
.tier-card:nth-child(4) b { background: linear-gradient(135deg, var(--blue), #38bdf8); }
.tier-card:nth-child(5) b { background: linear-gradient(135deg, #7c3aed, #db2777); }
.impact-icons {
  padding-top: 40px;
  padding-bottom: 40px;
  background: #f7fbff;
  text-align: center;
}
.impact-icons h2 {
  font-size: clamp(26px, 3vw, 40px);
}
.impact-icons div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.impact-icons span {
  min-height: 86px;
  display: grid;
  place-items: center;
  padding: 16px;
  border-radius: 18px;
  background: white;
  color: #20304c;
  font-weight: 900;
  border: 1px solid rgba(23, 32, 51, .1);
}
.updates-band {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, .9fr);
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, #f3edff, #e8fbfb);
}
.updates-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(23, 32, 51, .12);
}
.home-support-bar {
  position: sticky;
  bottom: 0;
  z-index: 25;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(18px, 5vw, 72px);
  color: white;
  background: linear-gradient(90deg, #0f766e, #0f9f8f);
  box-shadow: 0 -10px 30px rgba(23, 32, 51, .14);
}
.home-support-bar a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  color: #10204a;
  background: var(--yellow);
  text-decoration: none;
  font-weight: 1000;
}

@media (max-width: 1180px) {
  .include-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game-column-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .donation-tracker-home, .app-preview-band, .giveback-section, .updates-band { grid-template-columns: 1fr; }
  .donation-tier-grid, .impact-icons div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .home-landing { grid-template-columns: 1fr; }
  .landing-visual, .landing-visual img { min-height: 360px; }
  .include-grid, .game-column-grid, .learning-support-row, .donation-tier-grid, .impact-icons div, .updates-form { grid-template-columns: 1fr; }
  .home-quick-talk { grid-template-columns: 1fr; }
  .home-aac-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .age-mode-row { grid-template-columns: 1fr; }
  .device-preview { border-width: 8px; border-radius: 26px; padding: 14px; }
  .quick-talk-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview-panels { grid-template-columns: 1fr; }
  .mini-copy-grid { grid-template-columns: 1fr; }
  .home-support-bar { display: grid; text-align: center; }
}

/* Reference homepage rebuild */
.reference-home {
  --ref-ink: #111c44;
  --ref-blue: #2563eb;
  --ref-purple: #6d3edb;
  --ref-teal: #0f9f8f;
  --ref-soft: #f4fbff;
  --ref-line: rgba(17, 28, 68, .12);
  color: var(--ref-ink);
  background: #f7fbff;
}
.reference-home main {
  max-width: 1480px;
  margin: 0 auto;
}
.reference-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 190px;
  gap: 18px;
  align-items: center;
  padding: 12px clamp(14px, 3vw, 34px);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--ref-line);
  box-shadow: 0 6px 20px rgba(17, 28, 68, .05);
  backdrop-filter: blur(16px);
}
.reference-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.reference-logo {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: white;
  box-shadow: 0 10px 24px rgba(17, 28, 68, .1);
}
.reference-logo img { width: 48px; height: 48px; }
.reference-brand strong,
.reference-brand small { display: block; }
.reference-brand strong {
  color: var(--ref-ink);
  font-size: 28px;
  line-height: .95;
}
.reference-brand small {
  color: var(--ref-teal);
  font-size: 12px;
  font-weight: 950;
}
.reference-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.reference-nav a {
  min-width: 84px;
  min-height: 74px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 18px;
  color: var(--ref-ink);
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 1000;
}
.reference-nav a.active {
  background: #eaf3ff;
  color: #1d4ed8;
}
.nav-icon,
.stack-icon,
.large-icon {
  position: relative;
  width: 34px;
  height: 34px;
  display: inline-block;
  border-radius: 12px;
  background: #e8f1ff;
}
.nav-icon::before,
.nav-icon::after,
.stack-icon::before,
.stack-icon::after,
.large-icon::before,
.large-icon::after {
  content: "";
  position: absolute;
  display: block;
}
.home-icon::before {
  left: 7px;
  top: 14px;
  width: 20px;
  height: 14px;
  border: 4px solid #2563eb;
  border-top: 0;
  border-radius: 3px;
}
.home-icon::after {
  left: 8px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-left: 4px solid #2563eb;
  border-top: 4px solid #2563eb;
  transform: rotate(45deg);
}
.games-icon { background: #e7fff2; }
.games-icon::before {
  left: 7px;
  top: 11px;
  width: 20px;
  height: 14px;
  border-radius: 8px;
  background: #0f9f8f;
}
.games-icon::after {
  left: 11px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #111c44;
  box-shadow: 10px 10px 0 #111c44;
}
.rewards-icon { background: #fff7d6; }
.rewards-icon::before {
  left: 7px;
  top: 5px;
  width: 20px;
  height: 20px;
  clip-path: polygon(50% 0, 61% 34%, 97% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 3% 35%, 39% 34%);
  background: #f59e0b;
}
.progress-icon { background: #e9fff7; }
.progress-icon::before {
  left: 8px;
  bottom: 7px;
  width: 5px;
  height: 12px;
  border-radius: 4px;
  background: #0f9f8f;
  box-shadow: 8px -7px 0 #22c55e, 16px -15px 0 #16a34a;
}
.coach-icon { background: #f4edff; }
.coach-icon::before {
  left: 8px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #7c3aed;
  box-shadow: 12px 0 0 #7c3aed;
}
.coach-icon::after {
  left: 6px;
  top: 18px;
  width: 22px;
  height: 10px;
  border-radius: 12px 12px 4px 4px;
  background: #7c3aed;
}
.community-icon { background: #ffeef5; }
.community-icon::before {
  left: 8px;
  top: 8px;
  width: 18px;
  height: 18px;
  background: #ef4770;
  transform: rotate(45deg);
  border-radius: 4px;
}
.community-icon::after {
  left: 7px;
  top: 7px;
  width: 20px;
  height: 20px;
  border-radius: 999px 999px 0 999px;
  background: #ef4770;
}
.reference-support {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px 16px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(145deg, #6d3edb, #8b5cf6);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 16px 30px rgba(109, 62, 219, .25);
}
.reference-support span {
  font-size: 13px;
  font-weight: 900;
}
.reference-support strong {
  color: #fff;
  font-size: 15px;
}
.reference-hero {
  display: grid;
  grid-template-columns: minmax(320px, .78fr) minmax(420px, 1fr) 250px;
  gap: 18px;
  align-items: stretch;
  padding: 22px clamp(14px, 3vw, 34px) 16px;
  background: linear-gradient(90deg, white 0 48%, #f6fbff 48% 100%);
}
.hero-copy {
  align-self: center;
  padding: 22px 0 22px 4px;
}
.hero-copy h1 {
  max-width: 540px;
  margin-bottom: 16px;
  color: #111c44;
  font-size: clamp(44px, 5.6vw, 76px);
  line-height: .95;
}
.hero-copy h1::first-line { color: #1f4aa8; }
.hero-copy p {
  max-width: 560px;
  color: #273450;
  font-size: 18px;
  font-weight: 760;
  line-height: 1.48;
}
.hero-checks {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 18px 0;
  list-style: none;
}
.hero-checks li {
  position: relative;
  padding-left: 30px;
  color: #26324d;
  font-weight: 950;
}
.hero-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, #6d3edb, #0f9f8f);
}
.reference-hero .hero-actions { margin-top: 20px; }
.hero-family-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 28px;
  background: #eaf8f6;
  box-shadow: 0 18px 48px rgba(17, 28, 68, .12);
}
.hero-family-card img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  display: block;
}
.reference-hero .parent-quote {
  right: 22px;
  top: 48%;
  bottom: auto;
  transform: translateY(-50%);
  width: 240px;
}
.hero-side {
  display: grid;
  gap: 14px;
}
.support-mini-card,
.mission-mini-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px;
  border-radius: 24px;
  background: white;
  border: 1px solid var(--ref-line);
  box-shadow: 0 14px 36px rgba(17, 28, 68, .08);
}
.support-mini-card {
  color: white;
  background: linear-gradient(145deg, #6d3edb, #8b5cf6);
}
.support-mini-card span,
.mission-mini-card span {
  color: inherit;
  font-weight: 820;
  line-height: 1.45;
}
.support-mini-card a,
.mission-mini-card a {
  min-height: 46px;
  display: grid;
  place-items: center;
  margin-top: auto;
  border-radius: 13px;
  text-decoration: none;
  font-weight: 1000;
}
.support-mini-card a {
  color: #6d3edb;
  background: white;
}
.mission-mini-card a {
  color: white;
  background: #6d3edb;
}
.quick-talk-strip {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 115px;
  gap: 12px;
  align-items: stretch;
  padding: 14px clamp(14px, 3vw, 34px);
  background: #e7f8ff;
  border-top: 1px solid var(--ref-line);
  border-bottom: 1px solid var(--ref-line);
}
.quick-talk-label {
  display: grid;
  align-content: center;
}
.quick-talk-label strong {
  color: #111c44;
  font-size: 20px;
  font-weight: 1000;
  text-transform: uppercase;
}
.quick-talk-label span {
  color: #26324d;
  font-size: 13px;
  font-weight: 900;
}
.quick-talk-buttons {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}
.quick-talk-buttons button {
  min-height: 100px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border: 1px solid var(--ref-line);
  border-radius: 18px;
  background: white;
  color: #111c44;
  font-weight: 1000;
  box-shadow: 0 8px 18px rgba(17, 28, 68, .06);
}
.aac-mini {
  position: relative;
  width: 46px;
  height: 46px;
  display: block;
}
.aac-mini::before,
.aac-mini::after {
  content: "";
  position: absolute;
  display: block;
}
.aac-mini.person::before,
.aac-mini.body::before {
  left: 14px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #2f80ed;
}
.aac-mini.person::after,
.aac-mini.body::after {
  left: 8px;
  top: 24px;
  width: 30px;
  height: 20px;
  border-radius: 18px 18px 6px 6px;
  background: #2f80ed;
}
.aac-mini.break::before {
  left: 5px;
  top: 21px;
  width: 36px;
  height: 22px;
  border-radius: 0 0 999px 999px;
  background: #16a34a;
}
.aac-mini.break::after {
  left: 15px;
  top: 10px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 4px solid #16a34a;
}
.aac-mini.stop::before {
  inset: 5px;
  clip-path: polygon(30% 0,70% 0,100% 30%,100% 70%,70% 100%,30% 100%,0 70%,0 30%);
  background: #ef4444;
}
.aac-mini.stop::after {
  content: "STOP";
  left: 8px;
  top: 17px;
  color: white;
  font-size: 11px;
  font-weight: 1000;
}
.aac-mini.bathroom::before {
  left: 11px;
  top: 6px;
  width: 24px;
  height: 34px;
  border-radius: 5px 5px 10px 10px;
  background: #3b82f6;
}
.aac-mini.food::before {
  left: 3px;
  top: 12px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 6px solid #f97316;
}
.aac-mini.food::after {
  right: 5px;
  top: 8px;
  width: 5px;
  height: 34px;
  border-radius: 999px;
  background: #111c44;
  box-shadow: 8px 0 0 #111c44;
}
.aac-mini.yes::before,
.aac-mini.no::before {
  inset: 4px;
  border-radius: 999px;
  background: #16a34a;
}
.aac-mini.yes::after {
  left: 13px;
  top: 14px;
  width: 22px;
  height: 12px;
  border-left: 7px solid white;
  border-bottom: 7px solid white;
  transform: rotate(-45deg);
}
.aac-mini.no::before { background: #ef4444; }
.aac-mini.no::after {
  left: 11px;
  top: 20px;
  width: 25px;
  height: 7px;
  border-radius: 999px;
  background: white;
  transform: rotate(45deg);
}
.aac-mini.no {
  background: linear-gradient(45deg, transparent 45%, white 45% 55%, transparent 55%);
}
.open-board-card {
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: 18px;
  color: #1d4ed8;
  background: white;
  text-align: center;
  text-decoration: none;
  font-weight: 1000;
  box-shadow: 0 8px 18px rgba(17, 28, 68, .06);
}
.age-mode-panel {
  display: grid;
  grid-template-columns: 190px repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
  padding: 12px clamp(14px, 3vw, 34px);
  background: white;
}
.age-mode-panel span {
  color: #26324d;
  font-weight: 1000;
}
.age-mode-panel a {
  min-height: 58px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(109, 62, 219, .24);
  border-radius: 999px;
  color: #111c44;
  background: #fafcff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 1000;
}
.age-mode-panel a.active {
  color: white;
  background: linear-gradient(135deg, #2563eb, #5b7cfa);
  border-color: transparent;
}
.games-board {
  padding: 18px clamp(14px, 3vw, 34px) 20px;
  background: white;
}
.board-title {
  text-align: center;
  margin-bottom: 16px;
}
.board-title h2 {
  margin-bottom: 4px;
  color: #111c44;
  font-size: 34px;
}
.board-title p {
  color: #42506a;
  font-size: 16px;
  font-weight: 850;
}
.game-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.game-stack {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid var(--ref-line);
  box-shadow: 0 10px 26px rgba(17, 28, 68, .06);
}
.game-stack h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 4px;
  color: #111c44;
  font-size: 18px;
}
.game-stack div {
  position: relative;
  min-height: 144px;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 15px 74px 14px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(17, 28, 68, .08);
}
.game-stack strong,
.game-stack small,
.game-stack p { display: block; }
.game-stack small {
  color: #42506a;
  font-weight: 900;
}
.game-stack p {
  margin: 0;
  color: #42506a;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.32;
}
.game-stack div a {
  width: 74px;
  min-height: 34px;
  display: grid;
  place-items: center;
  margin-top: 8px;
  border-radius: 10px;
  color: #1d4ed8;
  background: #dbeafe;
  text-decoration: none;
  font-weight: 1000;
}
.requests { background: #eaf4ff; }
.feelings { background: #eafaf0; }
.safety { background: #f4edff; }
.social { background: #fff3df; }
.teen { background: #e8fbfb; }
.view-all {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #0f766e;
  background: rgba(255, 255, 255, .72);
  text-decoration: none;
  font-weight: 1000;
}
.stack-icon {
  width: 30px;
  height: 30px;
}
.hand::before { inset: 7px 8px 5px 10px; border-radius: 10px; background: #2f80ed; }
.smile::before { inset: 5px; border-radius: 999px; background: #22c55e; }
.shield::before { left: 7px; top: 4px; width: 16px; height: 22px; clip-path: polygon(50% 0,100% 18%,84% 82%,50% 100%,16% 82%,0 18%); background: #7c3aed; }
.people::before { left: 4px; top: 8px; width: 8px; height: 8px; border-radius: 999px; background: #f97316; box-shadow: 12px 0 0 #f97316; }
.people::after { left: 3px; top: 18px; width: 24px; height: 10px; border-radius: 10px 10px 4px 4px; background: #f97316; }
.star::before { inset: 5px; clip-path: polygon(50% 0, 61% 34%, 97% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 3% 35%, 39% 34%); background: #0f9f8f; }
.card-art {
  position: absolute;
  right: 16px;
  top: 34px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
}
.gift { background: linear-gradient(90deg, #ef4444 45%, #facc15 45% 55%, #ef4444 55%); }
.snack { background: linear-gradient(135deg, #f59e0b 50%, #60a5fa 50%); }
.car { background: #ef4444; border-radius: 20px 20px 12px 12px; }
.face { border-radius: 999px; background: #facc15; }
.puzzle { background: #f97316; clip-path: polygon(18% 0,82% 0,82% 28%,100% 28%,100% 72%,82% 72%,82% 100%,18% 100%,18% 72%,0 72%,0 28%,18% 28%); }
.cloud { background: #c7e8ff; border-radius: 999px; }
.body { background: #f0b6d8; clip-path: polygon(50% 0,66% 24%,58% 100%,42% 100%,34% 24%); }
.toilet { background: #93c5fd; border-radius: 8px 8px 18px 18px; }
.question { border-radius: 999px; background: #0f9f8f; }
.binoculars { background: #2f80ed; border-radius: 999px 999px 12px 12px; }
.blocks { background: linear-gradient(135deg, #f59e0b 0 33%, #22c55e 33% 66%, #3b82f6 66%); }
.bubbles { background: radial-gradient(circle at 30% 50%, #f97316 0 30%, transparent 31%), radial-gradient(circle at 70% 50%, #60a5fa 0 30%, transparent 31%); }
.heart { background: #ef4770; transform: rotate(45deg); }
.target { border: 8px solid #ef4444; border-radius: 999px; background: white; }
.chat { background: #93c5fd; border-radius: 18px; }
.dashboard-card-row,
.mission-row,
.donation-reference {
  display: grid;
  gap: 16px;
  padding: 12px clamp(14px, 3vw, 34px);
  background: white;
}
.dashboard-card-row { grid-template-columns: 1fr 1fr 1fr; }
.reference-card,
.small-mission-card {
  min-height: 250px;
  border: 1px solid var(--ref-line);
  border-radius: 22px;
  background: white;
  box-shadow: 0 12px 30px rgba(17, 28, 68, .07);
}
.work-flow {
  display: grid;
  grid-template-columns: 70px 70px 70px;
  gap: 18px;
  margin: 22px 0;
}
.work-flow span {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: #20b9b1;
  font-size: 26px;
  font-weight: 1000;
}
.work-flow span:last-child {
  background: #facc15;
  clip-path: polygon(50% 0, 61% 34%, 97% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 3% 35%, 39% 34%);
}
.coach-art {
  width: 128px;
  height: 94px;
  margin: 16px 0;
  border-radius: 24px;
  background:
    radial-gradient(circle at 72% 32%, #f5c9a8 0 18%, transparent 19%),
    radial-gradient(circle at 35% 52%, #ffd6b8 0 16%, transparent 17%),
    linear-gradient(135deg, #8b5cf6 0 55%, #f3edff 55%);
}
.mission-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.small-mission-card {
  min-height: 190px;
  padding: 24px;
}
.small-mission-card h2 { font-size: 24px; }
.small-mission-card p {
  color: #42506a;
  font-size: 16px;
  font-weight: 760;
}
.small-mission-card a {
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0 18px;
  border-radius: 12px;
  color: white;
  background: #0f9f8f;
  text-decoration: none;
  font-weight: 1000;
}
.large-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 10px;
}
.heart-icon { background: #dff8f7; }
.heart-icon::before { inset: 16px; background: #0f9f8f; transform: rotate(45deg); border-radius: 4px; }
.horse-icon { background: #f3edff; }
.horse-icon::before { left: 14px; top: 14px; width: 28px; height: 20px; border-radius: 50% 40% 40% 50%; background: #8b5cf6; }
.group-icon { background: #e8fbfb; }
.group-icon::before { left: 10px; top: 13px; width: 10px; height: 10px; border-radius: 999px; background: #0f9f8f; box-shadow: 14px 0 0 #0f9f8f, 28px 0 0 #0f9f8f; }
.group-icon::after { left: 8px; top: 28px; width: 38px; height: 14px; border-radius: 14px 14px 6px 6px; background: #0f9f8f; }
.donation-reference {
  grid-template-columns: minmax(320px, .9fr) minmax(560px, 1.1fr);
  align-items: start;
  padding-top: 16px;
  padding-bottom: 20px;
}
.donation-reference .tracker-card { min-height: 270px; }
.donation-reference .donation-tier-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
}
.donation-reference .tier-card {
  min-height: 292px;
}
.reference-footer {
  position: sticky;
  bottom: 0;
  z-index: 35;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 14px clamp(14px, 3vw, 34px);
  color: white;
  background: linear-gradient(90deg, #102345, #6d3edb);
}
.reference-footer span { font-weight: 900; }
.reference-footer a {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 0 18px;
  border-radius: 12px;
  color: #102345;
  background: #facc15;
  text-decoration: none;
  font-weight: 1000;
}

@media (max-width: 1260px) {
  .reference-header { grid-template-columns: 1fr; }
  .reference-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .reference-support {
    justify-self: start;
    min-width: 240px;
  }
  .reference-hero { grid-template-columns: 1fr 1fr; }
  .hero-side {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }
  .game-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick-talk-strip,
  .donation-reference { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .reference-hero,
  .hero-side,
  .dashboard-card-row,
  .mission-row,
  .donation-reference .donation-tier-grid {
    grid-template-columns: 1fr;
  }
  .quick-talk-buttons,
  .game-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .age-mode-panel { grid-template-columns: 1fr; }
  .hero-family-card,
  .hero-family-card img { min-height: 340px; }
  .reference-hero .parent-quote {
    position: static;
    width: auto;
    transform: none;
    margin: 12px;
  }
  .reference-footer {
    position: static;
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .quick-talk-buttons,
  .game-category-grid { grid-template-columns: 1fr; }
  .reference-nav a { min-width: 76px; }
  .hero-copy h1 { font-size: 42px; }
}

/* Reference homepage proportion pass */
.reference-home main {
  max-width: 1360px;
}
.reference-header {
  grid-template-columns: 250px minmax(0, 1fr) 220px;
  padding: 10px clamp(14px, 2.4vw, 28px);
}
.reference-logo {
  width: 48px;
  height: 48px;
}
.reference-logo img {
  width: 42px;
  height: 42px;
}
.reference-brand strong {
  font-size: 25px;
}
.reference-nav a {
  min-width: 76px;
  min-height: 64px;
  font-size: 12px;
  border-radius: 16px;
}
.nav-icon {
  width: 30px;
  height: 30px;
}
.reference-support {
  min-height: 64px;
  overflow: hidden;
}
.reference-support span {
  white-space: nowrap;
}
.reference-support strong {
  white-space: nowrap;
}
.reference-hero {
  grid-template-columns: minmax(300px, .78fr) minmax(420px, 1fr) 240px;
  padding: 18px clamp(14px, 2.4vw, 28px) 12px;
}
.hero-copy {
  padding-top: 8px;
  padding-bottom: 8px;
}
.hero-copy h1 {
  max-width: 440px;
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1.04;
}
.hero-copy p {
  max-width: 450px;
  font-size: 15px;
  line-height: 1.4;
}
.hero-checks {
  gap: 6px;
  margin: 12px 0;
}
.hero-checks li {
  font-size: 13px;
}
.reference-hero .hero-actions {
  gap: 10px;
  margin-top: 14px;
}
.reference-hero .btn {
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
}
.hero-family-card {
  min-height: 360px;
  border-radius: 22px;
}
.hero-family-card img {
  min-height: 360px;
}
.reference-hero .parent-quote {
  width: 220px;
  padding: 16px;
}
.reference-hero .parent-quote strong {
  font-size: 18px;
}
.support-mini-card,
.mission-mini-card {
  padding: 18px;
  border-radius: 20px;
  min-width: 0;
  overflow: hidden;
}
.support-mini-card strong,
.mission-mini-card strong {
  font-size: 18px;
}
.support-mini-card span,
.mission-mini-card span {
  font-size: 14px;
}
.support-mini-card a,
.mission-mini-card a {
  min-height: 42px;
  font-size: 14px;
}
.quick-talk-strip {
  padding-top: 10px;
  padding-bottom: 10px;
}
.quick-talk-buttons button {
  min-height: 86px;
}
.age-mode-panel a {
  min-height: 50px;
  font-size: 18px;
}
.board-title h2 {
  font-size: 30px;
}
.game-stack div {
  min-height: 132px;
}

@media (max-width: 1260px) {
  .reference-header {
    grid-template-columns: 1fr;
  }
  .reference-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .reference-support {
    justify-self: start;
    width: min(100%, 260px);
  }
  .reference-hero {
    grid-template-columns: 1fr 1fr;
  }
  .hero-side {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }
  .game-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .quick-talk-strip,
  .donation-reference {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .reference-home main {
    max-width: 100%;
  }
  .reference-header,
  .reference-hero,
  .hero-side,
  .quick-talk-strip,
  .age-mode-panel,
  .dashboard-card-row,
  .mission-row,
  .donation-reference,
  .donation-reference .donation-tier-grid {
    grid-template-columns: 1fr;
  }
  .reference-hero,
  .quick-talk-strip,
  .age-mode-panel,
  .games-board,
  .dashboard-card-row,
  .mission-row,
  .donation-reference {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
  .quick-talk-buttons,
  .game-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-copy h1 {
    max-width: 100%;
    font-size: 34px;
  }
  .hero-family-card,
  .hero-family-card img {
    min-height: 320px;
  }
  .reference-hero .parent-quote {
    position: static;
    width: auto;
    transform: none;
    margin: 12px;
  }
  .reference-footer {
    position: static;
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .quick-talk-buttons,
  .game-category-grid {
    grid-template-columns: 1fr;
  }
  .reference-nav a {
    min-width: 76px;
  }
}

/* Parent Community Hub */
.community-page {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .08), transparent 28%),
    linear-gradient(225deg, rgba(124, 58, 237, .08), transparent 34%),
    #f7fbff;
}
.community-main {
  width: min(1360px, 100%);
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 48px) 92px;
}
.community-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 22px;
}
.community-hero > div,
.community-safety-card,
.community-shell,
.community-card,
.community-feed-card {
  border: 1px solid rgba(23, 32, 51, .12);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 24px 70px rgba(23, 32, 51, .10);
}
.community-hero > div {
  padding: clamp(26px, 5vw, 54px);
  border-radius: 28px;
}
.community-hero h1 {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: clamp(42px, 5.7vw, 76px);
  line-height: .98;
}
.community-hero p:not(.eyebrow) {
  max-width: 760px;
  color: #41506a;
  font-size: 18px;
  line-height: 1.6;
}
.community-safety-card {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 28px;
  border-radius: 28px;
  color: white;
  background:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,.32), transparent 24%),
    linear-gradient(135deg, #2563eb, #7c3aed 58%, #0f9f8f);
}
.community-safety-card::before {
  content: "";
  width: 70px;
  height: 70px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, transparent 42%, #fff 43% 57%, transparent 58%),
    linear-gradient(45deg, transparent 42%, #fff 43% 57%, transparent 58%),
    rgba(255,255,255,.18);
}
.community-safety-card strong {
  font-size: 28px;
  line-height: 1.05;
}
.community-safety-card span {
  color: rgba(255,255,255,.9);
  line-height: 1.5;
}
.community-shell {
  overflow: hidden;
  border-radius: 30px;
}
.community-tabs {
  display: flex;
  gap: 10px;
  padding: 14px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(23, 32, 51, .10);
  background: rgba(235, 248, 255, .78);
}
.community-tabs button {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(23, 32, 51, .12);
  border-radius: 16px;
  background: white;
  color: #172033;
  font-weight: 950;
  cursor: pointer;
  white-space: nowrap;
}
.community-tabs button.active {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 14px 30px rgba(37, 99, 235, .24);
}
.community-panel {
  padding: clamp(16px, 3vw, 30px);
}
.panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.panel-heading h2,
.community-card h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 3vw, 42px);
}
.privacy-pill {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: #0f766e;
  background: #dff9f3;
  font-weight: 950;
  white-space: nowrap;
}
.community-feed-card,
.community-card {
  border-radius: 24px;
  padding: clamp(18px, 3vw, 28px);
}
.community-compose,
.community-card form {
  display: grid;
  gap: 10px;
}
.community-compose {
  padding: 18px;
  border: 1px solid rgba(37, 99, 235, .13);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .05), rgba(15, 159, 143, .06));
}
.community-compose label,
.community-card label {
  color: #172033;
  font-size: 13px;
  font-weight: 950;
}
.community-compose input,
.community-compose textarea,
.community-card select,
.community-card textarea {
  width: 100%;
  border: 1px solid rgba(23, 32, 51, .16);
  border-radius: 14px;
  background: white;
  color: #172033;
  font: inherit;
}
.community-compose input,
.community-card select {
  min-height: 48px;
  padding: 0 14px;
}
.community-compose textarea,
.community-card textarea {
  min-height: 130px;
  padding: 14px;
  resize: vertical;
}
.compose-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.compose-actions span {
  color: #53627b;
  font-weight: 800;
}
.compose-actions span.is-ok {
  color: #0f766e;
}
.compose-actions span.is-blocked {
  color: #be123c;
}
.community-feed {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.community-post {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(23, 32, 51, .10);
  border-radius: 20px;
  background: white;
}
.community-avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, #2563eb, #0f9f8f);
  font-weight: 950;
}
.community-post strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}
.community-post small {
  display: block;
  margin-bottom: 8px;
  color: #71809a;
  font-weight: 850;
}
.community-post p {
  margin: 0;
  color: #2f3d55;
  line-height: 1.55;
}
.community-two-column,
.updates-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
  gap: 18px;
}
.updates-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.idea-list {
  display: grid;
  gap: 12px;
}
.idea-item {
  padding: 14px;
  border: 1px solid rgba(23, 32, 51, .10);
  border-radius: 16px;
  background: #f8fbff;
}
.idea-item strong,
.idea-item span {
  display: block;
}
.idea-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.safety-rules ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: #41506a;
  line-height: 1.5;
}
.update-card span {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #0f766e;
  background: #dff9f3;
  font-weight: 950;
}

@media (max-width: 900px) {
  .community-hero,
  .community-two-column,
  .updates-grid {
    grid-template-columns: 1fr;
  }
  .community-hero h1 {
    font-size: 40px;
  }
  .panel-heading {
    display: grid;
  }
}

@media (max-width: 560px) {
  .community-main {
    padding-left: 12px;
    padding-right: 12px;
  }
  .community-panel {
    padding: 12px;
  }
  .community-post {
    grid-template-columns: 1fr;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.chat-app-card {
  width: min(860px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(23, 32, 51, .12);
  border-radius: 30px;
  background: #f7fbff;
  box-shadow: 0 28px 80px rgba(23, 32, 51, .14);
}
.chat-header {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  color: white;
  background: linear-gradient(135deg, #0f2447, #2563eb 62%, #0f9f8f);
}
.chat-room-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,.18);
  color: white;
  font-weight: 950;
}
.chat-header strong,
.chat-header span {
  display: block;
}
.chat-header strong {
  font-size: 20px;
}
.chat-header span {
  color: rgba(255,255,255,.82);
  font-size: 13px;
  font-weight: 800;
}
.chat-header em {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  font-style: normal;
  font-weight: 950;
}
.chat-safety-strip {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(23, 32, 51, .08);
  background: #eaf8ff;
}
.chat-safety-strip span {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: #0f766e;
  background: white;
  font-size: 12px;
  font-weight: 950;
}
.chat-feed {
  height: min(58vh, 620px);
  min-height: 460px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 22px;
  background:
    radial-gradient(circle at 14% 18%, rgba(37, 99, 235, .08), transparent 22%),
    radial-gradient(circle at 86% 22%, rgba(15, 159, 143, .08), transparent 20%),
    linear-gradient(135deg, #f8fbff, #fffaf0);
}
.chat-message {
  max-width: min(78%, 590px);
  display: grid;
  gap: 5px;
}
.chat-message.is-own {
  align-self: end;
}
.chat-message.is-other {
  align-self: start;
}
.chat-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7892;
  font-size: 12px;
  font-weight: 900;
}
.chat-message.is-own .chat-meta {
  justify-content: flex-end;
  padding-right: 8px;
}
.chat-avatar-dot {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #2563eb, #0f9f8f);
  font-size: 10px;
  font-weight: 950;
}
.chat-bubble {
  position: relative;
  padding: 14px 16px;
  border-radius: 20px;
  color: #172033;
  background: white;
  box-shadow: 0 10px 26px rgba(23, 32, 51, .08);
  font-size: 16px;
  line-height: 1.45;
}
.chat-message.is-own .chat-bubble {
  color: white;
  border-bottom-right-radius: 7px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}
.chat-message.is-own .chat-bubble p {
  color: #ffffff;
  font-weight: 850;
}
.chat-message.is-other .chat-bubble p {
  color: #172033;
}
.chat-message.is-other .chat-bubble {
  border-bottom-left-radius: 7px;
}
.chat-bubble p {
  margin: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}
.chat-time {
  display: block;
  margin-top: 6px;
  color: rgba(91, 101, 119, .8);
  font-size: 11px;
  font-weight: 850;
  text-align: right;
}
.chat-message.is-own .chat-time {
  color: rgba(255,255,255,.72);
}
.chat-composer {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border-top: 1px solid rgba(23, 32, 51, .10);
  background: rgba(255,255,255,.96);
}
.chat-composer input,
.chat-composer textarea {
  width: 100%;
  border: 1px solid rgba(23, 32, 51, .14);
  border-radius: 18px;
  background: #f8fbff;
  color: #172033;
  font: inherit;
  font-weight: 800;
}
.chat-composer input {
  min-height: 50px;
  padding: 0 14px;
}
.chat-composer textarea {
  min-height: 50px;
  max-height: 120px;
  padding: 14px 16px;
  resize: vertical;
}
.chat-send {
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 12px 28px rgba(37, 99, 235, .24);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}
.chat-composer #communityStatus {
  grid-column: 1 / -1;
  min-height: 18px;
  color: #53627b;
  font-size: 12px;
  font-weight: 900;
}
.chat-composer #communityStatus.is-ok {
  color: #0f766e;
}
.chat-composer #communityStatus.is-blocked {
  color: #be123c;
}

@media (max-width: 720px) {
  .chat-header {
    grid-template-columns: 46px minmax(0, 1fr);
  }
  .chat-header em {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .chat-room-mark {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }
  .chat-feed {
    height: 58vh;
    min-height: 380px;
    padding: 16px;
  }
  .chat-message {
    max-width: 88%;
  }
  .chat-composer {
    grid-template-columns: 1fr;
  }
}
