:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #edf4fb;
  --text: #172033;
  --muted: #657084;
  --line: #dbe5f0;
  --navy: #12345b;
  --navy-2: #0d2747;
  --blue: #d9ebff;
  --green: #16865f;
  --shadow: 0 20px 50px rgba(18, 52, 91, .09);
  color-scheme: light;
}

body.dark {
  --bg: #09111f;
  --surface: #111c2d;
  --surface-soft: #17263b;
  --text: #edf4ff;
  --muted: #aab7c8;
  --line: #293a52;
  --navy: #8fc2ff;
  --navy-2: #dbeeff;
  --blue: #183150;
  --green: #66d5a8;
  --shadow: 0 20px 50px rgba(0, 0, 0, .28);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(217, 235, 255, .75), transparent 34rem),
    linear-gradient(180deg, var(--bg), var(--bg));
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header,
.site-footer,
.section-shell {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  font-weight: 900;
  letter-spacing: .4px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
}

.top-nav {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.top-nav a {
  text-decoration: none;
}

.theme-toggle,
.button {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  min-height: 42px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.button.primary {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 20px;
  padding: 54px 0 28px;
}

.hero-copy,
.hero-panel,
.profile-card,
.family-card,
.app-card {
  background: rgba(255, 255, 255, .84);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(24px, 5vw, 46px);
}

.eyebrow,
.card-kicker {
  margin: 0 0 10px;
  color: var(--green);
  font-weight: 850;
  letter-spacing: .02em;
}

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(40px, 8vw, 76px);
  line-height: .98;
  letter-spacing: 0;
  color: var(--navy-2);
}

h2 {
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.1;
  margin-bottom: 12px;
}

h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 660px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-panel {
  padding: 22px;
  align-self: stretch;
  display: grid;
  gap: 14px;
}

.panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 12px;
  background: var(--surface-soft);
}

.panel-row span,
.panel-note,
.app-card p,
.profile-card p,
.family-card p {
  color: var(--muted);
}

.panel-row strong {
  font-size: 24px;
  color: var(--navy-2);
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}

.profile-card,
.family-card,
.app-card {
  padding: 24px;
}

.check-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.check-list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 900;
  margin-right: 8px;
}

.soft-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.soft-list span,
.status {
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.section-head {
  margin: 46px 0 14px;
}

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

.apps-grid .active {
  grid-column: span 2;
}

.status.live {
  background: #e8f7f0;
  color: #16865f;
}

.status.soon {
  background: #fff4cf;
  color: #9a6a00;
}

.app-card.disabled {
  opacity: .72;
}

.app-card .button {
  margin-top: 12px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 34px 0 24px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    grid-column: 1 / -1;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .section-grid,
  .apps-grid {
    grid-template-columns: 1fr;
  }

  .apps-grid .active {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .site-header,
  .site-footer,
  .section-shell {
    width: min(100% - 22px, 1120px);
  }

  .hero {
    padding-top: 20px;
  }

  .hero-copy,
  .hero-panel,
  .profile-card,
  .family-card,
  .app-card {
    border-radius: 12px;
    padding: 18px;
  }

  .hero-actions .button,
  .theme-toggle {
    width: 100%;
  }

  .site-header {
    align-items: start;
  }

  .site-footer {
    flex-direction: column;
  }
}
