/* Senior Night & Mind Club — Senior-First A++ (>=7:1 contrast, >=18px text, >=60px CTAs, 0 overflow) */
:root {
  --warm: #f4efe3;
  --paper: #fffdf8;
  --white: #ffffff;
  --ink: #162c3b;
  --muted: #263b49;
  --green: #164d43;
  --green-hover: #0f3a32;
  --blue: #163e63;
  --blue-hover: #0e2c48;
  --soft-green: #eaf2ef;
  --soft-blue: #e9f0f6;
  --amber-bg: #fff6e0;
  --amber-border: #6e4714;
  --amber-ink: #2a1b08;
  --night-bg: #0f1113;
  --night-ink: #f4efe3;
  --border: #5a6b75;
}

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

[hidden] {
  display: none !important;
}

html {
  background: var(--warm);
  color: var(--ink);
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--warm);
  overflow-wrap: anywhere;
}

h1, h2, h3, p, ul {
  margin-top: 0;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  line-height: 1.24;
}

a {
  color: var(--blue);
  text-underline-offset: 4px;
}

:focus-visible {
  outline: 3px solid #0c3f67;
  outline-offset: 4px;
  box-shadow: 0 0 0 7px #ffffff;
}

.skip-link {
  position: absolute;
  top: -140px;
  left: 16px;
  z-index: 999;
  background: var(--white);
  color: var(--ink);
  padding: 14px 18px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.top-strip {
  background: var(--ink);
  color: var(--white);
  border-bottom: 4px solid #b6d1c6;
  padding: 12px 0;
}

.top-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}

.top-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.top-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 2px solid #d5e2df;
  background: #1f394c;
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.top-link:hover {
  background: #2c4e66;
}

main {
  padding: 22px 0 40px;
}

.lang-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.lang-bar-label {
  font-size: 18px;
  font-weight: 800;
}

.lang-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.lang-pill.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.hero-card {
  background: var(--paper);
  border: 2px solid var(--border);
  border-left: 8px solid var(--green);
  border-radius: 16px;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 26px;
  align-items: start;
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-block;
  background: var(--soft-green);
  color: var(--green);
  border: 1px solid #597c70;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
}

h1 {
  font-size: 36px;
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 20px;
  color: var(--muted);
  margin-bottom: 18px;
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.trust-pills li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 18px;
  font-weight: 700;
}

.cta-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.cta,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  min-width: 56px;
  padding: 14px 22px;
  border-radius: 12px;
  border: 2px solid transparent;
  font-family: inherit;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: anywhere;
}

.btn-primary-green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.btn-primary-green:hover {
  background: var(--green-hover);
}

.btn-secondary-dark {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn-secondary-dark:hover {
  background: var(--blue-hover);
}

.btn-demo {
  background: var(--white);
  color: var(--blue);
  border-color: var(--blue);
}

.btn-demo:hover {
  background: var(--soft-blue);
}

.disclosure-box {
  background: var(--amber-bg);
  border: 2px solid var(--amber-border);
  border-radius: 12px;
  padding: 16px 18px;
  color: var(--amber-ink);
  font-size: 18px;
  line-height: 1.5;
}

.status-banner {
  margin-top: 14px;
  padding: 16px;
  border-radius: 12px;
  border: 2px solid var(--blue);
  background: var(--soft-blue);
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.night-preview-card {
  background: var(--night-bg);
  color: var(--night-ink);
  border: 2px solid #414850;
  border-top: 6px solid #e4cf96;
  border-radius: 16px;
  padding: 22px;
}

.night-preview-card h2,
.night-preview-card p {
  color: var(--night-ink);
}

.night-preview-card h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.night-badge {
  display: inline-block;
  background: #20252a;
  color: #f4dfaa;
  border: 1px solid #8f825b;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
}

.sample-switcher {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 16px 0;
}

.sample-btn {
  background: #1c2228;
  color: #f4efe3;
  border: 2px solid #6b737c;
  font-size: 18px;
}

.sample-btn.active {
  background: #f4dfaa;
  color: #0f1113;
  border-color: #f4dfaa;
}

.audio-player {
  width: 100%;
  min-height: 54px;
  margin-top: 6px;
}

.audio-caption {
  margin: 10px 0 0;
  font-size: 18px;
  color: #f4dfaa;
}

.section-card {
  background: var(--paper);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  margin-bottom: 24px;
}

.section-title {
  font-size: 28px;
  margin-bottom: 18px;
}

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

.pillar-card,
.step-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-top: 6px solid var(--green);
  border-radius: 14px;
  padding: 20px;
}

.pillar-card.blue-top {
  border-top-color: var(--blue);
}

.pillar-card.night-card {
  background: var(--night-bg);
  color: var(--night-ink);
  border-color: #464e56;
  border-top-color: #e4cf96;
}

.pillar-card.night-card h3,
.pillar-card.night-card p {
  color: var(--night-ink);
}

.pillar-card h3,
.step-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.pillar-card p,
.step-card p {
  font-size: 18px;
  margin-bottom: 0;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
}

.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 32px 0;
  border-top: 6px solid var(--green);
}

.site-footer p,
.site-footer a {
  color: var(--white);
  font-size: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 60px;
  font-weight: 700;
}

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

@media (max-width: 600px) {
  .container { padding: 0 14px; }
  .hero-card, .section-card { padding: 18px; }
  h1 { font-size: 29px; }
  .cta, button, .top-link { width: 100%; }
  .lang-pill { flex: 1 1 42%; }
}
