/* Comeback After 40 — shared styles
   Palette matches the kit PDF: navy / teal / warm ochre / cream.
   Mobile-first. No frameworks. Fonts self-hosted (SIL OFL). */

@font-face { font-family: "Source Sans"; src: url("assets/fonts/SourceSansPro-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans"; src: url("assets/fonts/SourceSansPro-It.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans"; src: url("assets/fonts/SourceSansPro-Semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans"; src: url("assets/fonts/SourceSansPro-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("assets/fonts/SourceSerifPro-Semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("assets/fonts/SourceSerifPro-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --navy: #1F2A44;
  --navy-deep: #18213A;
  --teal: #2F6F73;
  --teal-dark: #24585B;
  --ochre: #C9792B;
  --ochre-dark: #A9611E;
  --ochre-soft: #E7C9A3;
  --cream: #F6F1E8;
  --cream-2: #FAF7F1;
  --mist: #EAF2F2;
  --line: #D9D4CA;
  --grey: #5B6472;
  --ink: #22262E;
  --white: #FFFFFF;

  --serif: "Source Serif", Georgia, "Times New Roman", serif;
  --sans: "Source Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 68rem;
  --narrow: 42rem;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(31, 42, 68, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;          /* 18px — comfortable for 40+ readers */
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.25rem, 7vw, 3.75rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.25rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
small, .small { font-size: .9rem; }
.muted { color: var(--grey); }

.skip { position: absolute; left: -999px; top: 0; background: var(--ochre); color: var(--white); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: var(--narrow); }
.section { padding: 3.5rem 0; }
.section--white { background: var(--white); }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: #E9ECF2; }
.section--navy h2, .section--navy h3 { color: var(--white); }

/* Eyebrow + ochre rule (from the kit cover) */
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ochre-soft); margin: 0 0 1rem;
}
.eyebrow::before { content: ""; display: block; width: 3.5rem; height: 5px; background: var(--ochre); margin-bottom: 1rem; }
.eyebrow--dark { color: var(--ochre-dark); }

/* Header */
.site-header { background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .85rem; padding-bottom: .85rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--white); text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.brand:hover { color: var(--white); }
.brand-mark { width: 2rem; height: 2rem; flex: none; }
.nav { display: flex; align-items: center; gap: 1rem; }
.nav a { color: #DCE2EC; text-decoration: none; font-weight: 600; font-size: 1rem; }
.nav a:hover { color: var(--white); }
.nav .nav-hide-sm { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3.25rem; padding: .8rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--sans); font-size: 1.1rem; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--buy { background: var(--ochre); color: var(--white); box-shadow: 0 6px 18px rgba(201,121,43,.35); }
.btn--buy:hover { background: var(--ochre-dark); color: var(--white); }
.btn--teal { background: var(--teal); color: var(--white); }
.btn--teal:hover { background: var(--teal-dark); color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { border-color: var(--white); color: var(--white); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--sm { min-height: 2.5rem; padding: .45rem 1.1rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* Hero */
.hero { background: var(--navy); color: #E9ECF2; padding: 3rem 0 3.5rem; }
.hero h1 { color: var(--white); }
.hero .subtitle { font-family: var(--serif); font-weight: 600; color: var(--ochre-soft); font-size: clamp(1.2rem, 3.5vw, 1.6rem); margin-bottom: 1.25rem; }
.hero .lede { font-size: 1.2rem; color: #E9ECF2; max-width: 36rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-cover { max-width: 22rem; margin: 0 auto; }
.hero-cover img { border-radius: 6px; box-shadow: 0 20px 50px rgba(0,0,0,.45); transform: rotate(-1.5deg); }
.price-line { display: flex; align-items: baseline; gap: .6rem; margin: 1.5rem 0 1rem; }
.price { font-family: var(--serif); font-size: 2.5rem; font-weight: 700; color: var(--white); }
.price-note { color: #C7CEDA; font-size: 1rem; }
.hero .fine { color: #AEB7C6; font-size: .95rem; margin-top: 1rem; }

/* Three-phase strip (mirrors cover) */
.phases { display: grid; gap: 1rem; margin-top: 2.5rem; }
.phase { border-top: 3px solid var(--teal); padding-top: .75rem; }
.phase strong { display: block; font-family: var(--serif); color: var(--white); font-size: 1.15rem; }
.phase span { color: #C7CEDA; font-size: 1rem; }

/* Cards / lists */
.grid-2, .grid-3 { display: grid; gap: 1.25rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card--cream { background: var(--cream-2); }
.card h3 { margin-bottom: .4rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 2rem; margin-bottom: .7rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 700; font-size: 1.15rem; }
.crosses { list-style: none; padding: 0; }
.crosses li { position: relative; padding-left: 2rem; margin-bottom: .7rem; }
.crosses li::before { content: "×"; position: absolute; left: .1rem; top: -.15rem; color: var(--ochre-dark); font-weight: 700; font-size: 1.4rem; }

.benefit { display: grid; grid-template-columns: 2.5rem 1fr; gap: .9rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.benefit:last-child { border-bottom: 0; }
.benefit-num { font-family: var(--serif); font-weight: 700; color: var(--ochre); font-size: 1.5rem; line-height: 1.1; }
.benefit h3 { margin-bottom: .25rem; }
.benefit p { margin: 0; color: #3A404B; }

.prompt-list { counter-reset: p; list-style: none; padding: 0; columns: 1; }
.prompt-list li { counter-increment: p; position: relative; padding-left: 2.25rem; margin-bottom: .6rem; break-inside: avoid; }
.prompt-list li::before { content: counter(p); position: absolute; left: 0; top: .1rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--teal); color: var(--white); font-size: .85rem; font-weight: 700; display: grid; place-items: center; }

.callout { background: var(--mist); border-left: 5px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.25rem 1.5rem; }
.callout--ochre { background: #FBF1E4; border-left-color: var(--ochre); }
.callout p:last-child { margin-bottom: 0; }

.disclaimer { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; font-size: .95rem; color: #3A404B; }

/* Buy box */
.buy-box { background: var(--white); border-radius: 14px; box-shadow: var(--shadow); padding: 2rem 1.5rem; text-align: center; max-width: 34rem; margin: 0 auto; }
.buy-box h2 { margin-bottom: .25rem; }
.buy-box .price { color: var(--navy); }
.buy-box .price-line { justify-content: center; }
.buy-box .price-note { color: var(--grey); }
.buy-box ul { text-align: left; }

/* PREVIEW-ONLY notices — delete when going live (see README) */
.preview-note {
  display: block; margin-top: .75rem; padding: .55rem .8rem; border: 2px dashed var(--ochre);
  border-radius: 8px; background: #FFF7EC; color: #7A4612; font-size: .9rem; font-weight: 600; text-align: left;
}
.hero .preview-note { background: rgba(201,121,43,.12); color: var(--ochre-soft); }

/* Forms */
.form-card { background: var(--white); border-radius: 14px; box-shadow: var(--shadow); padding: 1.75rem 1.5rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: .35rem; }
.field input[type="text"], .field input[type="email"] {
  width: 100%; min-height: 3.25rem; padding: .7rem .9rem; font: inherit; color: var(--ink);
  border: 2px solid #C9CFD6; border-radius: 8px; background: var(--white);
}
.field input:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(47,111,115,.2); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-fine { font-size: .9rem; color: var(--grey); margin-top: .9rem; margin-bottom: 0; }

/* Download block */
.download { display: grid; gap: 1.25rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; box-shadow: var(--shadow); }
.download img { max-width: 11rem; border-radius: 4px; box-shadow: 0 8px 20px rgba(31,42,68,.2); }

.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 2.75rem; margin-bottom: 1rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ochre); color: var(--white); font-weight: 700; display: grid; place-items: center; }

/* Legal pages */
.legal h2 { font-size: 1.4rem; margin-top: 2rem; }
.legal h3 { font-size: 1.1rem; margin-top: 1.25rem; }
.legal-draft { background: #FFF7EC; border: 2px dashed var(--ochre); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 2rem; font-size: .98rem; }
.legal-draft p:last-child { margin-bottom: 0; }
.placeholder { background: #FDEBD3; color: #7A4612; padding: 0 .25em; border-radius: 3px; font-weight: 600; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #AEB7C6; padding: 2.25rem 0; font-size: 1rem; }
.site-footer a { color: #DCE2EC; }
.site-footer a:hover { color: var(--white); }
.footer-row { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.footer-brand { color: var(--white); font-family: var(--serif); font-weight: 700; }
.footer-sep { color: #5B6680; }
.footer-fine { margin-top: 1rem; font-size: .88rem; color: #8F99AB; max-width: 48rem; }
.footer-fine p { margin-bottom: .5em; }

/* Tablet + */
@media (min-width: 40rem) {
  .nav .nav-hide-sm { display: inline; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .phases { grid-template-columns: repeat(3, 1fr); }
  .prompt-list { columns: 2; column-gap: 2rem; }
  .download { grid-template-columns: auto 1fr; }
  .buy-box { padding: 2.5rem; }
  .form-card { padding: 2rem; }
}
@media (min-width: 60rem) {
  .section { padding: 5rem 0; }
  .hero { padding: 4.5rem 0 5rem; }
  .hero-grid { grid-template-columns: 1.35fr 1fr; gap: 3.5rem; }
  .hero-cover { max-width: 24rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover { transition: none; transform: none; }
  .hero-cover img { transform: none; }
}
@media print {
  .site-header, .site-footer, .btn, .preview-note { display: none !important; }
  body { background: #fff; }
}

/* Buy box sits inside a navy section: reset colours */
.section--navy .buy-box { color: var(--ink); }
.section--navy .buy-box h2 { color: var(--navy); }
.hero .preview-note a { color: var(--white); }
