:root {
  --bg: #f6f4ee;
  --surface: #ffffff;
  --surface-2: #ece7db;
  --surface-3: #fbf8f1;
  --navy: #12263a;
  --navy-dark: #0b1a28;
  --navy-soft: #1c3550;
  --gold: #c9a227;
  --gold-dark: #a88415;
  --gold-soft: #f3e7bf;
  --ink: #12263a;
  --muted: #5a6b78;
  --line: #d9d2c3;
  --line-dark: #c4baa7;
  --cream: #f6f4ee;
  --white: #ffffff;
  --shadow-sm: 0 8px 22px rgba(18, 38, 58, 0.06);
  --shadow: 0 20px 50px rgba(18, 38, 58, 0.1);
  --shadow-lg: 0 32px 80px rgba(18, 38, 58, 0.18);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 18px;
  --font-body: "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Noto Kufi Arabic", "Tajawal", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}

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

a {
  color: var(--navy);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--gold-dark);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.container.narrow {
  width: min(860px, calc(100% - 2rem));
}

.skip-link {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-start: 1rem;
  z-index: 1000;
  padding: 0.7rem 1.1rem;
  border-radius: 8px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  inset-block-start: 1rem;
  color: var(--navy);
}

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 78px;
  padding-block: 0.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--cream);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--cream);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--gold);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cream);
}

.brand-text small {
  color: #a9bac7;
  font-size: 0.66rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  margin-inline-start: auto;
}

.main-nav a {
  color: #d8e1e7;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  padding-block: 0.3rem;
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.main-nav a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--gold);
  border-radius: 6px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease;
}

.header-cta:hover {
  background: transparent;
  color: var(--gold);
}

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 5rem 4.5rem;
  background:
    radial-gradient(circle at 85% 15%, rgba(201, 162, 39, 0.16), transparent 30%),
    radial-gradient(circle at 10% 90%, rgba(28, 53, 80, 0.9), transparent 45%),
    var(--navy);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 70% 35%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 70% 35%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
}

.eyebrow-line {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--gold);
}

.hero h1 {
  max-width: 16ch;
  color: var(--cream);
  font-size: clamp(2.2rem, 4.8vw, 4.1rem);
  font-weight: 700;
  line-height: 1.35;
}

.hero-lead {
  max-width: 60ch;
  margin-top: 1.2rem;
  color: #b9c8d2;
  font-size: clamp(1rem, 1.6vw, 1.08rem);
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

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

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 12px 28px rgba(201, 162, 39, 0.2);
}

.btn-gold:hover {
  background: var(--gold-dark);
  color: var(--navy);
}

.btn-outline {
  border-color: rgba(246, 244, 238, 0.45);
  background: transparent;
  color: var(--cream);
}

.btn-outline:hover {
  border-color: var(--cream);
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
}

.btn-navy {
  background: var(--navy);
  color: var(--cream);
}

.btn-navy:hover {
  background: var(--navy-dark);
  color: var(--cream);
}

.btn-line {
  border-color: var(--line);
  background: transparent;
  color: var(--navy);
}

.btn-line:hover {
  border-color: var(--line-dark);
  background: var(--surface-2);
  color: var(--navy);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  margin-top: 2rem;
  list-style: none;
}

.hero-points li {
  position: relative;
  padding-inline-start: 1rem;
  color: #a9bac7;
  font-size: 0.78rem;
}

.hero-points li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-panel-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-panel {
  width: min(100%, 430px);
  padding: 1.5rem;
  border-top: 6px solid var(--gold);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--navy);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1deg);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.panel-kicker {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.panel-year {
  color: var(--gold-dark);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
}

.panel-age {
  padding-block: 1.4rem;
}

.panel-age > p:first-child {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.panel-age div {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-block: 0.2rem;
}

.panel-age strong {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 4.2rem;
  font-weight: 700;
  line-height: 1;
}

.panel-age span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.panel-sub {
  color: var(--gold-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.panel-track {
  position: relative;
  padding-block: 0.6rem 1.2rem;
  border-top: 1px solid var(--line);
}

.track-line {
  position: absolute;
  inset-inline: 8%;
  inset-block-start: 1.1rem;
  height: 2px;
  background: linear-gradient(90deg, var(--line-dark), var(--gold), var(--line-dark));
}

.track-points {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: 4%;
}

.track-points span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.track-points i {
  display: block;
  width: 12px;
  height: 12px;
  border: 2px solid var(--line-dark);
  border-radius: 50%;
  background: var(--cream);
}

.track-points b {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
}

.track-points small {
  color: var(--muted);
  font-size: 0.62rem;
}

.track-points .active i {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.18);
}

.track-points .active b {
  color: var(--navy);
}

.panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.panel-foot span {
  color: var(--muted);
  font-size: 0.72rem;
}

.panel-foot strong {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
}

.section {
  padding-block: 4.5rem;
  scroll-margin-top: 92px;
}

.section-alt {
  background: var(--surface-2);
  border-block: 1px solid var(--line);
}

.section-calc {
  background: var(--bg);
}

.section-head {
  max-width: 780px;
  margin-bottom: 2rem;
}

.section-head .eyebrow {
  margin-bottom: 0.55rem;
  color: var(--gold-dark);
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 700;
}

.section-head > p:last-child {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 1rem;
}

.prose p {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.95;
}

.prose p:last-child {
  margin-bottom: 0;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1.6rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.info-strip div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1.1rem 1.2rem;
  background: var(--navy);
}

.info-strip strong {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
}

.info-strip span {
  color: #b9c8d2;
  font-size: 0.78rem;
}

.calc-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 1.2rem;
  align-items: start;
}

.calc-form {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.calc-form-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.calc-number {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
}

.calc-form-head h3 {
  font-size: 1rem;
}

.calc-form-head p {
  color: var(--muted);
  font-size: 0.76rem;
}

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

.field-full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.86rem;
  font-weight: 800;
}

.required {
  color: var(--gold-dark);
}

.field input {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.94rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input[type="date"],
.field input[type="number"] {
  direction: ltr;
  text-align: right;
}

.field input:hover {
  border-color: var(--line-dark);
}

.field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.14);
  outline: none;
}

.hint {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.6;
}

.quick-ages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.chip {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.chip:hover {
  background: var(--gold-soft);
}

.chip.active {
  background: var(--gold);
  color: var(--navy);
}

.chip-ghost {
  border-color: var(--line);
  color: var(--muted);
}

.chip-ghost:hover {
  background: var(--surface-2);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.form-error {
  margin-top: 1rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid #e3b4a8;
  border-radius: var(--radius-sm);
  background: #fbe9e5;
  color: #8a2f1e;
  font-size: 0.86rem;
  font-weight: 700;
}

.form-privacy {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.74rem;
}

.calc-results {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: var(--cream);
  box-shadow: var(--shadow);
}

.results-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.results-label {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
}

.results-badge {
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
}

.result-main {
  padding-block: 1.2rem;
}

.result-main > p:first-child {
  color: #a9bac7;
  font-size: 0.76rem;
  font-weight: 700;
}

.age-display {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-block: 0.3rem 0.4rem;
}

.age-display span {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.age-display strong {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
}

.age-display small {
  color: #c8d4dc;
  font-size: 0.72rem;
  font-weight: 700;
}

.result-sub {
  color: #b9c8d2;
  font-size: 0.82rem;
  line-height: 1.7;
}

.result-list {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.result-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-list span {
  color: #a9bac7;
  font-size: 0.78rem;
}

.result-list strong {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: left;
}

.result-list small {
  display: block;
  color: #a9bac7;
  font-size: 0.7rem;
  text-align: left;
}

.result-milestones {
  margin-top: 1.2rem;
}

.result-milestones h3 {
  margin-bottom: 0.6rem;
  color: var(--cream);
  font-size: 0.86rem;
}

.calc-results .table-wrap {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  overflow-x: auto;
}

.calc-results table {
  width: 100%;
  min-width: 380px;
  border-collapse: collapse;
  text-align: right;
}

.calc-results th,
.calc-results td {
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.74rem;
}

.calc-results th {
  background: rgba(255, 255, 255, 0.06);
  color: #a9bac7;
  font-weight: 800;
}

.calc-results td {
  color: #d8e1e7;
}

.calc-results tr:last-child td {
  border-bottom: 0;
}

.status-done {
  color: var(--gold);
  font-weight: 800;
}

.status-next {
  color: #9ec5d8;
  font-weight: 800;
}

.result-note {
  margin-top: 1rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 8px;
  background: rgba(201, 162, 39, 0.1);
  color: var(--gold-soft);
  font-size: 0.74rem;
  line-height: 1.7;
}

.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2rem;
  align-items: start;
}

.steps {
  list-style: none;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}

.steps li:first-child {
  padding-top: 0;
}

.steps li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.step-number {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
}

.steps h3 {
  margin-bottom: 0.1rem;
  font-size: 0.94rem;
}

.steps p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.75;
}

.example-panel {
  padding: 1.5rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: var(--gold-soft);
  color: var(--navy);
}

.example-kicker {
  color: #7a5c0a;
  font-size: 0.72rem;
  font-weight: 800;
}

.example-panel h3 {
  margin-top: 0.15rem;
  font-size: 1.05rem;
}

.example-rows {
  margin-top: 0.9rem;
  border-top: 1px solid rgba(122, 92, 10, 0.22);
}

.example-rows div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.5rem;
  border-bottom: 1px solid rgba(122, 92, 10, 0.18);
  font-size: 0.8rem;
}

.example-rows span {
  color: #6b5a2a;
}

.example-rows strong {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.example-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
  padding: 0.8rem 0.9rem;
  border-radius: 8px;
  background: var(--navy);
}

.example-result span {
  color: #a9bac7;
  font-size: 0.72rem;
  font-weight: 700;
}

.example-result strong {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
}

.example-note {
  margin-top: 0.7rem;
  color: #6b5a2a;
  font-size: 0.76rem;
  line-height: 1.7;
}

.edge-note {
  margin-top: 1.4rem;
  padding: 1rem 1.1rem;
  border-inline-start: 4px solid var(--gold);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.edge-note h3 {
  font-size: 0.94rem;
}

.edge-note p {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.85rem;
}

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

.factor-card {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.factor-number {
  color: var(--gold-dark);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
}

.factor-card h3 {
  margin-block: 0.1rem 0.25rem;
  font-size: 0.98rem;
}

.factor-card p {
  color: var(--muted);
  font-size: 0.85rem;
}

.note {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid #e2d4a5;
  border-radius: 8px;
  background: #fbf6e8;
  color: #6b5a2a;
  font-size: 0.82rem;
  line-height: 1.75;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: start;
}

.question-box {
  margin-top: 1.5rem;
  padding: 1.4rem;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--cream);
}

.question-box h3 {
  color: var(--cream);
  font-size: 1rem;
}

.question-box ul {
  margin-top: 0.7rem;
  list-style: none;
}

.question-box li {
  position: relative;
  padding-block: 0.45rem;
  padding-inline-start: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #c8d4dc;
  font-size: 0.85rem;
}

.question-box li:last-child {
  border-bottom: 0;
}

.question-box li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.9rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.check-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.check-item:hover {
  border-color: var(--line-dark);
}

.check-item input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.check-box {
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 0.15rem;
  border: 2px solid var(--line-dark);
  border-radius: 5px;
  background: #fff;
  transition: background 160ms ease, border-color 160ms ease;
}

.check-box::after {
  content: "";
  width: 6px;
  height: 11px;
  border: solid var(--navy);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 160ms ease;
}

.check-item input:checked + .check-box {
  border-color: var(--gold);
  background: var(--gold);
}

.check-item input:checked + .check-box::after {
  transform: rotate(45deg) scale(1);
}

.check-item input:focus-visible + .check-box {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.check-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.check-text strong {
  font-size: 0.86rem;
  font-weight: 800;
}

.check-text small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

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

.mistake-card {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.mistake-number {
  color: var(--gold-dark);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
}

.mistake-card h3 {
  margin-block: 0.1rem 0.25rem;
  font-size: 0.96rem;
}

.mistake-card p {
  color: var(--muted);
  font-size: 0.84rem;
}

.faq-list {
  display: grid;
  gap: 0.6rem;
}

.faq-item {
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--gold-dark);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform 160ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.85;
}

.final-cta {
  padding-block: 3rem;
  background: var(--navy);
}

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.final-cta .eyebrow {
  margin-bottom: 0.4rem;
}

.final-cta h2 {
  color: var(--cream);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.final-cta p {
  margin-top: 0.3rem;
  color: #b9c8d2;
  font-size: 0.9rem;
}

.site-footer {
  padding-block: 3rem 1.2rem;
  background: var(--navy-dark);
  color: #c8d4dc;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 2rem;
}

.site-footer .brand {
  color: var(--cream);
}

.site-footer .brand-text small {
  color: #8fa2b0;
}

.footer-brand p {
  max-width: 52ch;
  margin-top: 0.8rem;
  color: #8fa2b0;
  font-size: 0.84rem;
  line-height: 1.85;
}

.footer-nav h3,
.footer-links h3 {
  margin-bottom: 0.7rem;
  color: var(--gold);
  font-size: 0.8rem;
}

.footer-nav a,
.footer-links a {
  display: block;
  margin-bottom: 0.4rem;
  color: #c8d4dc;
  font-size: 0.84rem;
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-nav a:hover,
.footer-links a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #7f93a1;
  font-size: 0.74rem;
}

.footer-disclaimer {
  max-width: 62ch;
  text-align: start;
}

.not-found-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 80% 20%, rgba(201, 162, 39, 0.16), transparent 30%),
    var(--navy);
  color: var(--cream);
}

.not-found {
  width: 100%;
  padding-block: 4rem;
}

.not-found .eyebrow {
  color: var(--gold);
}

.not-found h1 {
  max-width: 22ch;
  color: var(--cream);
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.not-found p {
  max-width: 62ch;
  margin-top: 0.9rem;
  color: #b9c8d2;
  font-size: 0.96rem;
}

.not-found .hero-actions {
  margin-top: 1.5rem;
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-panel-wrap {
    width: min(100%, 560px);
    margin-inline: auto;
  }

  .calc-shell {
    grid-template-columns: 1fr;
  }

  .calc-results {
    max-width: none;
  }

  .method-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .example-panel {
    max-width: 620px;
  }

  .factor-grid,
  .mistake-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    padding-block: 0.65rem 0.45rem;
  }

  .main-nav {
    order: 3;
    width: 100%;
    gap: 1rem;
    padding-bottom: 0.3rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    flex-shrink: 0;
    font-size: 0.8rem;
  }

  .header-cta {
    margin-inline-start: auto;
    padding: 0.45rem 0.8rem;
    font-size: 0.76rem;
  }

  .hero {
    padding-block: 3rem 3.2rem;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2rem, 8.5vw, 2.9rem);
  }

  .hero-points {
    flex-direction: column;
    gap: 0.35rem;
  }

  .hero-panel {
    padding: 1.1rem;
    transform: none;
  }

  .panel-age strong {
    font-size: 3.4rem;
  }

  .section {
    padding-block: 3rem;
  }

  .section-head {
    margin-bottom: 1.5rem;
  }

  .section-head h2 {
    font-size: clamp(1.45rem, 6.5vw, 2rem);
  }

  .info-strip {
    grid-template-columns: 1fr;
  }

  .calc-form,
  .calc-results {
    padding: 1.1rem;
  }

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

  .field-full {
    grid-column: auto;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

  .age-display strong {
    font-size: 1.9rem;
  }

  .result-list > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
  }

  .result-list strong,
  .result-list small {
    text-align: start;
  }

  .factor-grid,
  .mistake-grid,
  .checklist {
    grid-template-columns: 1fr;
  }

  .final-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

@media (max-width: 420px) {
  .brand-text small {
    display: none;
  }

  .brand-text strong {
    font-size: 0.95rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .panel-age strong {
    font-size: 3rem;
  }

  .track-points small {
    display: none;
  }

  .age-display {
    gap: 0.3rem 0.7rem;
  }

  .age-display strong {
    font-size: 1.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .hero-panel-wrap,
  .hero-actions,
  .form-actions,
  .btn,
  .final-cta {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero,
  .section,
  .final-cta {
    padding-block: 1rem;
  }

  .hero h1,
  .hero-lead,
  .hero .eyebrow {
    color: #000;
  }

  .calc-results {
    background: #fff;
    color: #000;
  }
}
