/* Money By Age Premium App
   Clean, isolated, no external dependencies.
*/

:root {
  --bg: #081224;
  --bg-2: #0d1c34;
  --surface: #ffffff;
  --surface-soft: #f6f9fc;
  --surface-strong: #edf3f8;
  --text: #102033;
  --muted: #617489;
  --muted-2: #8aa0b3;
  --line: #dfe8f0;
  --brand: #52e0c4;
  --brand-2: #4aa7ff;
  --gold: #f7cc69;
  --orange: #ff9f2f;
  --danger: #f06464;
  --shadow: 0 22px 60px rgba(7, 20, 39, 0.15);
  --shadow-soft: 0 12px 30px rgba(7, 20, 39, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

body::selection {
  background: rgba(82, 224, 196, 0.35);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: #fff;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 999;
}

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

.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 86px 0;
  overflow: hidden;
}

.section--light {
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 18, 36, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar__inner {
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  min-width: 0;
}

.brand__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.brand__mark img,
.brand__mark svg {
  width: 44px;
  height: 44px;
  display: block;
}

.brand__text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand__text strong {
  font-size: 16px;
  letter-spacing: -0.2px;
}

.brand__text small {
  color: #a8bbcb;
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  color: #c9d8e5;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 999px;
}

.nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.nav .nav__cta {
  color: #081224;
  background: linear-gradient(135deg, var(--gold), #ffe69f);
  padding-inline: 16px;
  margin-left: 4px;
}

.nav .nav__cta:hover {
  color: #081224;
  background: linear-gradient(135deg, #ffe69f, var(--gold));
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  border-radius: 14px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  margin: 5px auto;
  border-radius: 2px;
}

.hero {
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 15% 20%, rgba(82, 224, 196, 0.22), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(74, 167, 255, 0.22), transparent 32%),
    linear-gradient(145deg, #081224 0%, #0d1f3a 48%, #07111f 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.04));
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 54px;
  align-items: center;
}

.hero__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.55;
  pointer-events: none;
}

.hero__glow--one {
  width: 420px;
  height: 420px;
  left: -170px;
  top: 100px;
  background: radial-gradient(circle, rgba(82,224,196,0.19), transparent 70%);
}

.hero__glow--two {
  width: 520px;
  height: 520px;
  right: -220px;
  bottom: 80px;
  background: radial-gradient(circle, rgba(247,204,105,0.13), transparent 70%);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #6b5a19;
  background: rgba(247, 204, 105, 0.18);
  border: 1px solid rgba(247, 204, 105, 0.28);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.hero .eyebrow {
  color: #ffe7a0;
  background: rgba(247, 204, 105, 0.12);
  border-color: rgba(247, 204, 105, 0.25);
}

.eyebrow__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 5px rgba(82,224,196,0.16);
}

.hero h1 {
  max-width: 780px;
  margin: 22px 0 18px;
  color: #fff;
  font-size: clamp(46px, 6.2vw, 84px);
  line-height: 0.94;
  letter-spacing: -4px;
}

.hero__lead {
  max-width: 720px;
  margin: 0;
  font-size: clamp(18px, 2.1vw, 25px);
  color: #d3e4f2;
}

.hero__actions,
.buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 19px;
  border: 0;
  border-radius: 16px;
  font-weight: 900;
  letter-spacing: -0.1px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: #071427;
  background: linear-gradient(135deg, var(--gold), #fff0b2);
  box-shadow: 0 16px 40px rgba(247, 204, 105, 0.22);
}

.button--secondary {
  color: #071427;
  background: linear-gradient(135deg, var(--brand), #9ffff0);
  box-shadow: 0 14px 34px rgba(82,224,196,0.18);
}

.button--ghost {
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.trust-row span {
  color: #c5d8e8;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  padding: 8px 10px;
  border-radius: 999px;
}

.device {
  position: relative;
  max-width: 510px;
  margin-inline: auto;
  padding: 14px;
  border-radius: 42px;
  background: linear-gradient(145deg, rgba(255,255,255,0.24), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 34px 100px rgba(0,0,0,0.36);
}

.device::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 42px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(82,224,196,0.6), rgba(247,204,105,0.38), rgba(74,167,255,0.42));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.device__top {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding-left: 12px;
}

.device__top span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.44);
}

.device__screen {
  min-height: 520px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 0%, rgba(82,224,196,0.18), transparent 35%),
    linear-gradient(180deg, #ffffff, #eff5f8);
  padding: 22px;
  color: var(--text);
  overflow: hidden;
}

.mini-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: #0b1a31;
  color: #fff;
}

.mini-header small,
.mini-card__label {
  display: block;
  color: #9fb3c6;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.mini-header strong {
  font-size: 22px;
  line-height: 1.1;
}

.mini-badge {
  color: #071427;
  background: var(--gold);
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 900;
  white-space: nowrap;
}

.mini-age-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin: 20px 0;
}

.mini-age-grid button {
  border: 1px solid #dce8f0;
  background: #fff;
  color: #0c2e4f;
  border-radius: 16px;
  padding: 14px 8px;
  font-weight: 950;
  box-shadow: var(--shadow-soft);
}

.mini-age-grid button:nth-child(5) {
  background: linear-gradient(135deg, #0d365b, #0f6d80);
  color: #fff;
  border-color: transparent;
}

.mini-card {
  padding: 20px;
  border-radius: 24px;
  background: #0b1a31;
  color: #fff;
}

.mini-card strong {
  display: block;
  font-size: 22px;
  line-height: 1.16;
  margin-top: 8px;
}

.mini-card p {
  margin: 10px 0 0;
  color: #bfd1df;
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin-top: 16px;
}

.mini-metrics div {
  padding: 14px 10px;
  text-align: center;
  border: 1px solid #dfe8f0;
  background: #fff;
  border-radius: 18px;
}

.mini-metrics strong {
  display: block;
  font-size: 25px;
  color: #0e4168;
}

.mini-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading h2,
.split h2,
.app-sidebar h2,
.app-content h2,
.final-cta h2 {
  margin: 14px 0 12px;
  color: var(--text);
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.02;
  letter-spacing: -2.2px;
}

.section-heading p,
.lead {
  color: var(--muted);
  font-size: 19px;
  margin: 0;
}

.value-grid,
.toolkit-grid,
.resource-grid {
  display: grid;
  gap: 18px;
}

.value-grid {
  grid-template-columns: repeat(3, 1fr);
}

.value-card,
.toolkit-card,
.resource-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.82);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.value-card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #071427;
  background: linear-gradient(135deg, var(--brand), #9ffff0);
  border-radius: 16px;
  font-weight: 950;
  margin-bottom: 18px;
}

.value-card h3,
.toolkit-card strong,
.resource-card strong {
  display: block;
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--text);
}

.value-card p,
.resource-card p,
.toolkit-card span {
  color: var(--muted);
  margin: 0;
}

.app-section {
  background:
    radial-gradient(circle at 80% 0%, rgba(82,224,196,0.12), transparent 32%),
    linear-gradient(180deg, #081224 0%, #0c1d36 100%);
}

.app-shell {
  display: grid;
  grid-template-columns: 355px 1fr;
  min-height: 700px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 34px 100px rgba(0,0,0,0.28);
}

.app-sidebar {
  background:
    radial-gradient(circle at 0% 0%, rgba(82,224,196,0.17), transparent 40%),
    #0b1a31;
  color: #fff;
  padding: 26px;
  border-right: 1px solid rgba(255,255,255,0.10);
}

.app-sidebar .section-kicker {
  color: #dffff7;
  background: rgba(82,224,196,0.12);
  border-color: rgba(82,224,196,0.24);
}

.app-sidebar h2 {
  color: #fff;
  font-size: 32px;
  letter-spacing: -1.2px;
}

.app-sidebar p {
  color: #b7cad9;
  margin: 0;
}

.search-box {
  margin: 26px 0 20px;
}

.search-box label {
  display: block;
  margin-bottom: 8px;
  color: #dbe9f3;
  font-weight: 850;
  font-size: 13px;
}

.search-box__field {
  position: relative;
}

.search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 20px;
  transform: translateY(-50%);
  color: #93aabd;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px 0 40px;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.13);
  background: rgba(255,255,255,0.08);
  border-radius: 16px;
  outline: none;
}

.search-box input:focus {
  border-color: rgba(82,224,196,0.62);
  box-shadow: 0 0 0 4px rgba(82,224,196,0.11);
}

.age-tabs {
  display: grid;
  gap: 9px;
}

.age-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 17px;
  color: #dcebf4;
  background: rgba(255,255,255,0.06);
  text-align: left;
}

.age-tab strong {
  display: block;
  color: #fff;
  font-size: 15px;
}

.age-tab span {
  color: #aac0d0;
  font-size: 12px;
  font-weight: 750;
}

.age-tab:hover,
.age-tab.active {
  background: linear-gradient(135deg, rgba(82,224,196,0.18), rgba(74,167,255,0.16));
  border-color: rgba(82,224,196,0.36);
}

.age-tab .age-number {
  flex: 0 0 auto;
  width: 48px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #071427;
  background: var(--gold);
  font-weight: 950;
}

.progress-card {
  margin-top: 22px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.11);
}

.progress-card span {
  color: #aac0d0;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.progress-card strong {
  display: block;
  color: #fff;
  margin: 5px 0 10px;
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
}

.progress-track div {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  border-radius: inherit;
  transition: width 0.3s ease;
}

.text-button {
  border: 0;
  background: transparent;
  color: #b7cad9;
  padding: 12px 0 0;
  font-size: 13px;
  font-weight: 800;
}

.text-button:hover {
  color: #fff;
}

.app-content {
  background:
    radial-gradient(circle at 100% 0%, rgba(82,224,196,0.14), transparent 30%),
    #f8fbfd;
  padding: 30px;
  min-width: 0;
}

.app-content__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.app-content h2 {
  font-size: clamp(32px, 4.4vw, 52px);
}

.app-content p {
  color: var(--muted);
  margin: 0;
  max-width: 780px;
  font-size: 18px;
}

.content-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 26px 0 18px;
}

.content-tabs__button {
  border: 1px solid var(--line);
  background: #fff;
  color: #30475c;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
}

.content-tabs__button.active {
  color: #071427;
  background: linear-gradient(135deg, var(--brand), #bffff2);
  border-color: transparent;
  box-shadow: var(--shadow-soft);
}

.guide-panel {
  min-height: 420px;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.info-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.info-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}

.info-card strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  margin-bottom: 7px;
}

.info-card p {
  font-size: 15px;
  color: var(--muted);
}

.mistake-card::before {
  background: linear-gradient(180deg, var(--orange), var(--danger));
}

.lesson-card::before {
  background: linear-gradient(180deg, var(--gold), var(--orange));
}

.checklist {
  display: grid;
  gap: 12px;
}

.check-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 13px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.check-item input {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: #0e8f78;
}

.check-item strong {
  display: block;
  margin-bottom: 4px;
}

.check-item p {
  font-size: 14px;
}

.resource-list {
  display: grid;
  gap: 12px;
}

.resource-link {
  display: block;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.resource-link:hover {
  border-color: rgba(82,224,196,0.5);
}

.resource-link span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.resource-link strong {
  display: block;
  margin: 3px 0;
  font-size: 18px;
}

.no-results {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  color: var(--muted);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.timeline-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.timeline-card__age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 40px;
  color: #071427;
  background: linear-gradient(135deg, var(--gold), #fff0b2);
  border-radius: 999px;
  font-weight: 950;
  margin-bottom: 14px;
}

.timeline-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

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

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: center;
}

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

.toolkit-card {
  background: linear-gradient(180deg, #ffffff, #f6f9fc);
}

.resource-grid {
  grid-template-columns: repeat(3, 1fr);
}

.resource-card {
  min-height: 175px;
  transition: transform 0.2s ease, border 0.2s ease;
}

.resource-card:hover {
  transform: translateY(-3px);
  border-color: rgba(82,224,196,0.55);
}

.resource-card span {
  display: inline-flex;
  color: #0d6c5a;
  background: #e9fbf6;
  border-radius: 999px;
  padding: 6px 10px;
  margin-bottom: 13px;
  font-size: 12px;
  font-weight: 950;
}

.final-cta {
  background:
    radial-gradient(circle at 20% 0%, rgba(82,224,196,0.16), transparent 32%),
    radial-gradient(circle at 80% 10%, rgba(247,204,105,0.12), transparent 32%),
    #081224;
}

.final-cta__card {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 62px);
  text-align: center;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 30px 90px rgba(0,0,0,0.25);
}

.final-cta h2,
.final-cta p {
  color: #fff;
}

.final-cta p {
  max-width: 720px;
  margin: 0 auto 26px;
  color: #c7d9e6;
  font-size: 19px;
}

.footer {
  background: #06101e;
  color: #fff;
  padding: 30px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.brand--footer {
  color: #fff;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer__links a {
  color: #c8d9e5;
  font-weight: 800;
  font-size: 13px;
}

.fine-print {
  grid-column: 1 / -1;
  color: #91a9ba;
  font-size: 12px;
  margin: 0;
}

.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(100px);
  max-width: calc(100% - 32px);
  background: #071427;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.16);
  padding: 12px 16px;
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
  opacity: 0;
  transition: all 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal--delay {
  transition-delay: 0.12s;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .hero__grid,
  .app-shell,
  .split {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.10);
  }

  .age-tabs {
    grid-template-columns: repeat(3, 1fr);
  }

  .age-tab {
    display: grid;
    justify-items: start;
  }

  .value-grid,
  .timeline,
  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .topbar__inner {
    height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(8,18,36,0.98);
    box-shadow: 0 22px 50px rgba(0,0,0,0.35);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
  }

  .section {
    padding: 62px 0;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    letter-spacing: -2.6px;
  }

  .device__screen {
    min-height: auto;
  }

  .value-grid,
  .timeline,
  .toolkit-grid,
  .resource-grid,
  .panel-grid {
    grid-template-columns: 1fr;
  }

  .age-tabs {
    grid-template-columns: 1fr;
  }

  .app-content {
    padding: 22px;
  }

  .app-content__top {
    display: grid;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__links {
    justify-content: flex-start;
  }
}

@media (max-width: 500px) {
  .container {
    width: min(100% - 26px, var(--max));
  }

  .hero__actions,
  .buttons {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .mini-age-grid,
  .mini-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .app-shell,
  .device,
  .final-cta__card {
    border-radius: 24px;
  }

  .brand__text small {
    display: none;
  }
}


/* v2 buyer-facing polish: app delivery experience, not a sales page. */
.hero__actions--center {
  justify-content: center;
}

.final-section {
  background:
    radial-gradient(circle at 20% 20%, rgba(82, 224, 196, 0.14), transparent 32%),
    linear-gradient(180deg, #071427 0%, #0b1d35 100%);
}

.final-section .button--ghost {
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.final-card p + p {
  margin-top: 12px;
}

.app-content__top .button {
  white-space: nowrap;
}

.resource-card p,
.timeline-card p,
.guide-card p,
.value-card p,
.toolkit-card span {
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .hero__actions--center {
    display: grid;
  }

  .app-content__top {
    gap: 18px;
  }

  .app-content__top .button {
    width: 100%;
  }
}


/* v3 fixes: working age buttons, closer footer actions, removed dark final block */
.mini-age-grid button[data-jump-age] {
  position: relative;
}

.mini-age-grid button[data-jump-age]:hover,
.mini-age-grid button[data-jump-age]:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(82, 224, 196, 0.75);
  box-shadow: 0 10px 24px rgba(82, 224, 196, 0.18);
}

.timeline-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-card p {
  flex: 1;
}

.timeline-card__button {
  margin-top: 18px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  color: #071427;
  background: linear-gradient(135deg, var(--brand), #a6fff1);
  font-weight: 950;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-card__button:hover,
.timeline-card__button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(82, 224, 196, 0.22);
}

.resource-actions {
  max-width: 900px;
  margin: 34px auto 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.resource-actions h3 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.9px;
  color: var(--text);
}

.resource-actions p {
  max-width: 760px;
  margin: 0 auto 18px;
  color: var(--muted);
}

.button--outline {
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: none;
}

.button--outline:hover,
.button--outline:focus-visible {
  border-color: rgba(82, 224, 196, 0.7);
  box-shadow: 0 12px 26px rgba(7, 20, 39, 0.08);
}

.final-section {
  display: none;
}

@media (max-width: 760px) {
  .resource-actions {
    padding: 22px;
  }
}

