:root {
  --ink: #172127;
  --muted: #5c6870;
  --line: #dfe7e2;
  --panel: #ffffff;
  --wash: #f7f5ef;
  --blue: #25607c;
  --blue-dark: #143e55;
  --green: #53715e;
  --gold: #b78a45;
  --clay: #956856;
  --shadow: 0 18px 60px rgba(23, 33, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(247, 245, 239, 0.92);
  border-bottom: 1px solid rgba(223, 231, 226, 0.85);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 700;
}

.brand img {
  width: 38px;
  height: 38px;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 0.94rem;
}

nav a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--blue);
}

.header-cta {
  justify-self: end;
  border: 1px solid var(--blue);
  border-radius: 999px;
  color: var(--blue-dark);
  font-weight: 700;
  padding: 10px 18px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: calc(100svh - 76px);
  padding: clamp(56px, 8vw, 110px) clamp(20px, 5vw, 72px) 48px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.2)),
    radial-gradient(circle at 94% 8%, rgba(183, 138, 69, 0.16), transparent 34%),
    var(--wash);
}

.hero-copy,
.section,
.closing-cta,
footer {
  max-width: 1180px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6.7rem);
  font-weight: 500;
  line-height: 0.96;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4.5vw, 4.25rem);
  font-weight: 500;
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.hero-lede {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 800;
}

.button.primary {
  background: var(--blue-dark);
  color: white;
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue-dark);
}

.hero-panel {
  border: 1px solid rgba(37, 96, 124, 0.18);
  border-radius: 8px;
  padding: clamp(18px, 2.4vw, 28px);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.signal-card {
  min-height: 128px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--panel);
}

.signal-card.large {
  min-height: 170px;
  background: var(--blue-dark);
  color: white;
}

.metric {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4.3rem);
  line-height: 1;
}

.label {
  display: block;
  margin-top: 10px;
  color: currentColor;
  opacity: 0.78;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  background: #fff;
}

.trust-band span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  border-right: 1px solid var(--line);
  color: var(--blue-dark);
  font-weight: 800;
  text-align: center;
}

.trust-band span:last-child {
  border-right: 0;
}

.section {
  padding: clamp(64px, 10vw, 132px) clamp(20px, 4vw, 40px);
}

.split,
.technology {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 6vw, 84px);
}

.stack,
.tech-list {
  display: grid;
  gap: 14px;
}

.feature,
.diagnostic-grid article,
.plan,
.family-pricing,
.tech-list article,
.faq-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: clamp(20px, 2.4vw, 30px);
}

.feature p,
.diagnostic-grid p,
.plan p,
.tech-list p,
.faq-grid p,
.section-heading p,
.portal-copy p,
.closing-cta p,
footer p {
  color: var(--muted);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.diagnostics {
  max-width: none;
  background: #ffffff;
}

.diagnostics .section-heading,
.diagnostic-grid {
  max-width: 1180px;
  margin-inline: auto;
}

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

.portal {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}

.portal-shell {
  overflow: hidden;
  border: 1px solid rgba(37, 96, 124, 0.18);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.portal-topbar {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #f3f6f4;
}

.portal-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gold);
}

.portal-topbar span:nth-child(2) {
  background: var(--green);
}

.portal-topbar span:nth-child(3) {
  background: var(--blue);
}

.portal-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 380px;
}

.portal-layout ul {
  margin: 0;
  padding: 18px;
  border-right: 1px solid var(--line);
  list-style: none;
  background: #fbfaf6;
}

.portal-layout li {
  margin-bottom: 8px;
  border-radius: 6px;
  padding: 9px 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.portal-layout li.active {
  background: var(--blue-dark);
  color: white;
}

.portal-main {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(18px, 3vw, 32px);
}

.trend-card {
  border-radius: 8px;
  padding: 26px;
  background: linear-gradient(135deg, var(--blue-dark), var(--green));
  color: white;
}

.trend-card span,
.trend-card strong {
  display: block;
}

.trend-card span {
  margin-bottom: 8px;
  opacity: 0.78;
}

.trend-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.04;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mini-grid div {
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  color: var(--blue-dark);
  font-weight: 800;
}

.membership {
  max-width: none;
  background: #f1f5f2;
}

.membership .section-heading,
.plan-grid,
.family-pricing {
  max-width: 1180px;
  margin-inline: auto;
}

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

.plan {
  display: flex;
  flex-direction: column;
  min-height: 310px;
}

.plan.featured {
  border-color: rgba(37, 96, 124, 0.42);
  background: var(--blue-dark);
  color: white;
}

.plan.featured p,
.plan.featured .plan-kicker,
.plan.featured .price span {
  color: rgba(255, 255, 255, 0.78);
}

.plan-kicker {
  margin-bottom: 10px;
  color: var(--clay);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1;
}

.price span {
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
}

.text-link {
  margin-top: auto;
  color: var(--blue-dark);
  font-weight: 900;
}

.family-pricing {
  margin-top: 14px;
}

.family-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 24px;
  margin-top: 16px;
}

.family-grid span {
  color: var(--muted);
}

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

.closing-cta {
  border-top: 1px solid var(--line);
  padding: clamp(64px, 10vw, 116px) clamp(20px, 4vw, 40px);
  text-align: center;
}

.closing-cta p {
  max-width: 680px;
  margin-inline: auto;
}

.closing-cta .hero-actions {
  justify-content: center;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(20px, 4vw, 40px) 48px;
  border-top: 1px solid var(--line);
}

footer p {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-weight: 800;
}

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

  nav {
    display: none;
  }

  .hero,
  .split,
  .portal,
  .technology {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .trust-band,
  .diagnostic-grid,
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    gap: 12px;
    padding: 14px 16px;
  }

  .brand span {
    max-width: 168px;
  }

  .header-cta {
    padding: 9px 12px;
    font-size: 0.88rem;
  }

  .hero {
    padding-inline: 16px;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

  .trust-band,
  .diagnostic-grid,
  .plan-grid,
  .faq-grid,
  .signal-grid,
  .mini-grid,
  .family-grid {
    grid-template-columns: 1fr;
  }

  .trust-band span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .portal-layout {
    grid-template-columns: 1fr;
  }

  .portal-layout ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  footer {
    flex-direction: column;
  }
}
