:root {
  --ink: #132826;
  --muted: #5d6e6b;
  --paper: #f7f6f0;
  --card: #ffffff;
  --teal: #0c766e;
  --teal-dark: #084f4a;
  --mint: #b8e8d9;
  --lime: #dbe982;
  --line: #d9dfd9;
  --night: #102f2d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.hero {
  min-height: 760px;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 26%, rgba(219, 233, 130, .72), transparent 23%),
    radial-gradient(circle at 78% 58%, rgba(184, 232, 217, .85), transparent 32%),
    linear-gradient(135deg, #f6f4ea 16%, #e8f3e9 100%);
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  right: 4vw;
  top: 190px;
  border: 1px solid rgba(12, 118, 110, .18);
  border-radius: 49% 51% 44% 56%;
  transform: rotate(18deg);
  box-shadow: inset 0 0 0 90px rgba(255,255,255,.12), inset 0 0 0 91px rgba(12,118,110,.12);
  pointer-events: none;
}
.nav { height: 84px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.brand { display: flex; gap: 11px; align-items: center; font-weight: 700; text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; display: inline-grid; place-items: center;
  border-radius: 50%; background: var(--teal); color: white;
  font-family: "Fraunces", serif; font-weight: 700;
}
.nav-links { display: flex; gap: 30px; }
.nav-links a { text-decoration: none; color: #405754; font-size: 14px; font-weight: 600; }
.hero-inner { position: relative; z-index: 1; padding: 100px 0 70px; }
.eyebrow { margin: 0 0 18px; color: var(--teal); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; }
h1, h2 { font-family: "Fraunces", Georgia, serif; letter-spacing: -.035em; line-height: 1.03; }
h1 { margin: 0; font-size: clamp(52px, 7vw, 88px); max-width: 930px; }
h1 em { color: var(--teal); font-style: normal; }
.hero-copy { max-width: 650px; margin: 30px 0 32px; color: #48605c; font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { padding: 14px 20px; border-radius: 100px; font-weight: 700; text-decoration: none; font-size: 14px; }
.button.primary { background: var(--teal); color: white; }
.button.primary:hover { background: var(--teal-dark); }
.button.secondary { border: 1px solid #9eb4ae; background: rgba(255,255,255,.45); }
.hero-proof { display: flex; gap: 34px; margin-top: 65px; color: var(--muted); font-size: 13px; }
.hero-proof span { padding-right: 34px; border-right: 1px solid #bbcbc5; }
.hero-proof span:last-child { border: 0; }
.hero-proof strong { color: var(--ink); font-size: 20px; margin-right: 6px; }

.section { padding-top: 110px; padding-bottom: 110px; }
.section-heading { display: grid; grid-template-columns: 1.35fr .65fr; align-items: end; gap: 80px; margin-bottom: 54px; }
.section-heading h2 { margin: 0; font-size: clamp(42px, 5vw, 65px); }
.section-heading > p { color: var(--muted); margin: 0 0 5px; }
.score-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.score-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: 0 8px 30px rgba(24,58,54,.04); }
.score-card.featured { color: white; background: var(--teal); border-color: var(--teal); transform: translateY(-8px); box-shadow: 0 18px 42px rgba(12,118,110,.18); }
.card-top { min-height: 28px; display: flex; justify-content: space-between; font-weight: 700; }
.badge { background: var(--lime); color: var(--ink); border-radius: 100px; padding: 3px 9px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.big-score { font-family: "Fraunces", serif; font-size: 58px; font-weight: 700; line-height: 1; margin: 35px 0 5px; }
.metric-label { font-size: 13px; color: var(--muted); }
.featured .metric-label { color: rgba(255,255,255,.7); }
.bar { height: 5px; background: #e8ece8; border-radius: 10px; margin: 24px 0 27px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--teal); border-radius: inherit; }
.featured .bar { background: rgba(255,255,255,.2); }
.featured .bar span { background: var(--lime); }
dl { margin: 0; }
dl div { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13px; }
.featured dl div { border-color: rgba(255,255,255,.18); }
dt { color: var(--muted); }
.featured dt { color: rgba(255,255,255,.75); }
dd { margin: 0; font-weight: 700; }
.interpretation { display: grid; grid-template-columns: 180px 1fr auto; gap: 30px; align-items: center; margin-top: 28px; padding: 24px 28px; background: #e9eee9; border-radius: 14px; font-size: 14px; }
.interpretation p { margin: 0; color: var(--muted); }
.interpretation a, .memory-note a { color: var(--teal); font-weight: 700; text-decoration: none; white-space: nowrap; }

.memory-section { background: var(--night); color: #f4faf7; }
.section-heading.light .eyebrow { color: var(--lime); }
.section-heading.light > p { color: #acc2bd; }
.memory-results { display: grid; grid-template-columns: 1fr 60px 1fr; align-items: center; }
.memory-score { border: 1px solid rgba(255,255,255,.18); border-radius: 18px; padding: 34px; display: grid; grid-template-columns: 1fr auto; align-items: end; }
.memory-score > span { font-weight: 700; }
.memory-score strong { grid-column: 2; grid-row: 1 / span 2; font-family: "Fraunces", serif; font-size: clamp(48px, 7vw, 82px); line-height: 1; }
.memory-score small { color: #acc2bd; }
.memory-score.voyage-score { border-color: var(--lime); background: rgba(219,233,130,.08); }
.voyage-score strong { color: var(--lime); }
.reliability { grid-column: 1 / -1; margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); color: #acc2bd; }
.reliability b { color: white; }
.versus { text-align: center; color: #708d87; font-family: "Fraunces", serif; font-style: italic; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 25px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.13); border-radius: 12px; overflow: hidden; }
.category-grid div { background: var(--night); padding: 20px; display: flex; justify-content: space-between; font-size: 13px; }
.category-grid span { color: #acc2bd; }
.memory-note { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; margin-top: 36px; }
.memory-note p { max-width: 780px; color: #acc2bd; margin: 0; }
.memory-note a { color: var(--lime); }

.run-section { padding-bottom: 130px; }
.code-panel { background: #172522; color: #d8e9e3; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(19,40,38,.13); }
.code-title { display: flex; gap: 7px; align-items: center; padding: 14px 18px; background: #21332f; }
.code-title span { width: 9px; height: 9px; border-radius: 50%; background: #68807a; }
.code-title b { margin-left: 7px; color: #90a8a2; font-size: 11px; font-weight: 500; }
pre { margin: 0; padding: 28px; overflow: auto; font-size: 13px; line-height: 1.8; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 55px; }
.principles article { border-top: 2px solid var(--ink); padding-top: 18px; }
.principles article > span { color: var(--teal); font-size: 12px; font-weight: 700; }
.principles h3 { font-family: "Fraunces", serif; font-size: 24px; margin: 16px 0 8px; }
.principles p { margin: 0; color: var(--muted); font-size: 14px; }

footer { background: #e8ece6; border-top: 1px solid var(--line); }
.footer-inner { min-height: 130px; display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 20px; }
.footer-inner > div { display: flex; align-items: center; gap: 10px; }
.footer-inner p { color: var(--muted); font-size: 13px; }
.footer-inner a { font-size: 13px; font-weight: 700; text-decoration: none; margin-left: 18px; }

@media (max-width: 820px) {
  .hero { min-height: auto; }
  .hero::after { display: none; }
  .nav-links { display: none; }
  .hero-inner { padding-top: 65px; }
  .hero-proof { flex-wrap: wrap; gap: 15px; }
  .section { padding-top: 75px; padding-bottom: 75px; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .score-grid { grid-template-columns: 1fr; }
  .score-card.featured { transform: none; }
  .interpretation { grid-template-columns: 1fr; gap: 12px; }
  .memory-results { grid-template-columns: 1fr; gap: 15px; }
  .versus { display: none; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .memory-note { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; gap: 24px; }
  .footer-inner { padding: 32px 0; grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .wrap { width: min(100% - 26px, 1160px); }
  h1 { font-size: 44px; }
  .hero-proof span { border: 0; padding-right: 0; width: 100%; }
  .memory-score { grid-template-columns: 1fr; }
  .memory-score strong { grid-column: 1; grid-row: auto; margin-top: 20px; }
  .category-grid { grid-template-columns: 1fr; }
}
