/* OptiMED Elite: readiness check, membership enquiry buttons, timeline progress */

/* Readiness check */
.check { max-width: 46rem; border: 1px solid var(--line-soft); background: var(--paper-hi); border-radius: 4px; padding: clamp(1.5rem, 4vw, 2.5rem); }
.check__bar { height: 3px; background: var(--mist-2); margin-bottom: 1.75rem; border-radius: 2px; overflow: hidden; }
.check__bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.4s var(--ease); }
.check__panel[hidden] { display: none; }
.check__step { margin: 0 0 0.75rem; font: 500 0.75rem/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-ink); }
.check__q { margin: 0 0 1.5rem; font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.3; }
.check__answers { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.check__answers .btn { min-width: 7rem; }
.check__back { margin-top: 1.25rem; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.check__line { margin: 0 0 1rem; color: var(--ink-2); max-width: 52ch; }
.check__flags { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.check__flags li { padding: 0.4rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.8rem; color: var(--accent-ink); background: rgba(61, 122, 184, 0.07); }
.check__cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }

/* Membership cards */
.tier { display: flex; flex-direction: column; }
.tier__price { align-self: flex-start; margin-top: auto; padding-top: 1rem; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); text-decoration: none; border-bottom: 1px solid currentColor; }
.tier__price:hover { color: var(--ink); }
.tiers__note { margin: 1.5rem 0 0; font-size: 0.88rem; color: var(--ink-3); max-width: 70ch; }
.tier--flag .tier__price { color: inherit; }

/* Journey: steps light up as you reach them */
.timeline li { transition: border-color 0.4s var(--ease); }
.timeline li::before { transition: background 0.4s var(--ease), transform 0.4s var(--ease); background: var(--accent-soft); }
.timeline li.is-lit { border-top-color: var(--accent); }
.timeline li.is-lit::before { background: var(--accent); transform: rotate(45deg) scale(1.35); }
.timeline li:not(.is-lit) h3, .timeline li:not(.is-lit) p:not(.step__idx) { opacity: 0.88; }
.timeline li h3, .timeline li p { transition: opacity 0.4s var(--ease); }


/* M·E·D·S: four even, aligned cards */
.meds { counter-reset: meds; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; border-top: 0; align-items: stretch; }
.meds li {
  display: grid; grid-template-rows: auto auto 1fr; row-gap: 0.75rem; align-content: start;
  padding: 1.75rem 1.5rem 1.9rem; border: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft);
  border-radius: 6px; background: var(--paper-hi);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.meds li:last-child { border-right: 1px solid var(--line-soft); padding-right: 1.5rem; }
.meds li:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 14px 34px rgba(13, 36, 64, 0.1); }
.meds__letter {
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem; margin: 0 0 0.5rem;
  border-radius: 50%; background: var(--blue-900); color: var(--n-ink);
  font: 400 1.6rem/1 var(--serif);
}
.meds h3 { margin: 0; font-size: 1.3rem; }
.meds p { font-size: 0.95rem; line-height: 1.6; }
@media (max-width: 1100px) { .meds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .meds { grid-template-columns: 1fr; } }

/* M·E·D·S refinements: split header, accent rule, ghost letter */
#meds .sec-head { max-width: none; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: clamp(2rem, 6vw, 6rem); align-items: end; }
#meds .sec-head .eyebrow { grid-column: 1 / -1; }
#meds .sec-head .h2 { margin: 0; max-width: 18ch; }
#meds .sec-head__lede { margin: 0; max-width: 46ch; padding-bottom: 0.5rem; }
@media (max-width: 900px) { #meds .sec-head { display: block; } #meds .sec-head__lede { margin-top: 1.25rem; } }
.meds li { position: relative; overflow: hidden; padding-top: 2rem; border-top: 3px solid var(--blue-900); }
.meds li::after { content: attr(data-l); position: absolute; right: -0.35rem; bottom: -1.6rem; font: 300 9rem/1 var(--serif); color: var(--blue-900); opacity: 0.05; pointer-events: none; }
.meds__letter { width: 3.5rem; height: 3.5rem; }
.meds h3 { font-size: 1.4rem; }

/* M·E·D·S: cards fill dark blue on hover */
.meds li, .meds li h3, .meds li p, .meds .meds__letter { transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.meds li:hover, .meds li:focus-within { background: var(--blue-900); border-color: var(--blue-900); border-top-color: var(--accent); box-shadow: 0 18px 40px rgba(13, 36, 64, 0.28); }
.meds li:hover h3, .meds li:focus-within h3 { color: var(--n-ink); }
.meds li:hover p, .meds li:focus-within p { color: var(--n-ink-2); }
.meds li:hover .meds__letter, .meds li:focus-within .meds__letter { background: var(--accent-lite); color: var(--blue-900); }
.meds li:hover::after { color: #fff; opacity: 0.07; }

/* Readable body text on dark sections */
.on-deep .ruled p, .on-deep .ruled li p, .on-deep .stat p, .on-deep .sec-head__lede { color: var(--n-ink-2); }
.on-deep .ruled h3 { color: var(--n-ink); }

/* Small details */
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.nav__links a, .footer a, .txtlink { background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px; transition: background-size 0.35s var(--ease); }
.nav__links a:hover, .footer a:hover, .txtlink:hover { background-size: 100% 1px; }
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%); transform: translateX(-120%); transition: transform 0.7s var(--ease); pointer-events: none; }
.btn:hover::after { transform: translateX(120%); }
.figure img, .framed img { transition: transform 1.2s var(--ease); }
.figure:hover img, .framed:hover img { transform: scale(1.025); }
.figure, .framed { overflow: hidden; }
html { scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
@media (prefers-reduced-motion: reduce) { .btn::after { display: none; } }

/* Section titles: short, light slide so nothing sits blank */
.h2.reveal { transform: translateY(18px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.h2.reveal.is-in { transform: none; }

/* Touch targets: at least 44px on touch screens */
@media (pointer: coarse), (max-width: 1023px) {
  .txtlink, .check__back { display: inline-flex; align-items: center; min-height: 44px; }
  .btn--sm { min-height: 44px; }
  .nav__toggle { width: 44px; height: 44px; }
  .radio span { min-height: 44px; display: inline-flex; align-items: center; }
  .consent { padding-block: 0.4rem; }
}

/* Phones and tablets: thin reading-progress line in place of the helix */
.progress-line { display: none; }
@media (max-width: 1023px) {
  .progress-line { display: block; position: fixed; left: 0; top: 0; bottom: 0; width: 3px; z-index: 40; background: rgba(61, 122, 184, 0.14); pointer-events: none; }
  .progress-line i { display: block; width: 100%; height: 100%; background: linear-gradient(var(--blue-700), var(--accent)); transform-origin: top; transform: scaleY(0); will-change: transform; }
}
@media print { .progress-line { display: none; } }

/* Contrast fixes found by the accessibility audit */
.form .field__opt, .field--radios .field__opt { color: var(--ink-3); }
.wa-region { display: contents; }

/* Hero: the founder's quote leads */
.hero__inner { padding-top: clamp(6.5rem, 14vh, 9rem); }
.hero__quote { margin: 0 0 clamp(1.5rem, 3.5vh, 2.25rem); max-width: min(44rem, 100%); }
.hero__quote p { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(1.9rem, 3.7vw, 3.5rem); line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); }
.hero__quote p em { color: var(--accent-ink); font-weight: 400; }
.hero__quote footer { margin-top: 1.6rem; font-size: 0.95rem; letter-spacing: 0.04em; color: var(--ink-2); max-width: none; }
.hero__quote footer strong { color: var(--ink); font-weight: 500; }
.hero__terms { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem; }
.hero__terms li { padding: 0.5rem 0.95rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); background: rgba(255, 255, 255, 0.55); }
.hero__tag { margin: 0 0 2rem; font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2vw, 1.65rem); color: var(--ink); }
@media (max-width: 700px) { .hero__quote { max-width: none; } }

/* Readiness check: 0 to 10 scale */
.check__scale { margin: 0.5rem 0 1.5rem; }
.check__val { display: block; margin-bottom: 0.4rem; font: 300 clamp(3rem, 7vw, 4.5rem)/1 var(--serif); color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.check input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; outline-offset: 8px; cursor: pointer; --p: 50%; background: linear-gradient(to right, var(--accent) var(--p), var(--mist-2) var(--p)); }
.check input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--blue-900); border: 3px solid var(--paper-hi); box-shadow: 0 2px 10px rgba(13, 36, 64, 0.35); }
.check input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--blue-900); border: 3px solid var(--paper-hi); box-shadow: 0 2px 10px rgba(13, 36, 64, 0.35); }
.check input[type="range"]::-moz-range-track { height: 6px; background: transparent; }
.check__ends { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.9rem; font-size: 0.85rem; color: var(--ink-3); }
.check__ends span:last-child { text-align: right; }
.check__nav { display: flex; align-items: center; gap: 1.5rem; }
.check__nav .check__back { margin: 0; }
.check__score { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 0.9rem; }
.check__score b { font: 300 clamp(3.4rem, 8vw, 5rem)/1 var(--serif); color: var(--blue-900); font-variant-numeric: tabular-nums; }
.check__score span { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.check__meter { height: 8px; border-radius: 4px; background: linear-gradient(to right, #7fb4e0, var(--accent) 50%, var(--blue-900)); position: relative; margin-bottom: 1.5rem; }
.check__meter i { position: absolute; top: -5px; width: 4px; height: 18px; margin-left: -2px; border-radius: 2px; background: var(--blue-900); box-shadow: 0 0 0 2px var(--paper-hi); transition: left 0.9s var(--ease); left: 0; }
.check__route { display: grid; gap: 0.25rem; margin: 0 0 1.5rem; padding: 1rem 1.2rem; border-left: 3px solid var(--accent); background: var(--mist); border-radius: 0 6px 6px 0; }
.check__route span { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-ink); }
.check__route b { font: 400 1.5rem/1.2 var(--serif); color: var(--ink); }
.check__route em { font-style: normal; color: var(--ink-2); font-size: 0.95rem; }
.check__focus-label { margin: 0 0 0.6rem; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }

/* Credibility strip under the hero */
.proof { background: var(--blue-900); color: var(--n-ink); padding-block: 1.6rem; }
.proof__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; }
.proof__lead { margin: 0; font: 400 1.05rem/1.3 var(--serif); font-style: italic; color: var(--accent-lite); }
.proof__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem 2.25rem; flex: 1 1 auto; }
.proof__list li { display: grid; gap: 0.15rem; padding-left: 1rem; border-left: 1px solid var(--line-deep); }
.proof__list b { font-weight: 500; font-size: 0.95rem; color: #fff; }
.proof__list span { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--n-ink-3); }
.proof__link { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--n-ink); text-decoration: none; border-bottom: 1px solid var(--accent-lite); padding-bottom: 2px; }
.proof__link:hover { color: #fff; }

/* The founder's record */
.record__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: stretch; }
.record__feature { position: relative; overflow: hidden; padding: clamp(2rem, 4vw, 3rem); border: 1px solid var(--line-deep); border-radius: 8px; background: linear-gradient(160deg, rgba(61, 122, 184, 0.22), rgba(13, 36, 64, 0) 70%); }
.record__kicker { margin: 0 0 1rem; font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-lite); }
.record__big { margin: 0 0 1rem; font: 300 clamp(5rem, 11vw, 8.5rem)/0.9 var(--serif); color: #fff; letter-spacing: -0.03em; }
.record__feature h3 { margin: 0 0 1rem; font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.2; color: var(--n-ink); max-width: 22ch; }
.record__feature p:last-child { margin: 0; color: var(--n-ink-2); max-width: 46ch; }
.record__stats { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.record__stat { display: grid; grid-template-columns: 7.5rem 1fr; align-items: center; gap: 1.25rem; }
.record__stat b { margin-bottom: 0 !important; }
.record__stat { padding: 1.5rem 1.4rem; border: 1px solid var(--line-deep); border-radius: 8px; background: rgba(255, 255, 255, 0.03); transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease); }
.record__stat:hover { border-color: var(--accent-lite); background: rgba(156, 198, 234, 0.07); }
.record__stat b { display: block; margin-bottom: 0.6rem; font: 300 clamp(2.4rem, 4vw, 3.2rem)/1 var(--serif); color: #fff; font-variant-numeric: tabular-nums; }
.record__stat p { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--n-ink-2); }
.record__src { margin-top: 1.5rem; color: var(--n-ink-3); }
@media (max-width: 900px) { .record__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .record__stat { grid-template-columns: 1fr; gap: 0.5rem; } .proof__list { gap: 0.75rem 1.5rem; } }
@media (max-width: 700px) { .proof__list { display: grid; grid-template-columns: 1fr 1fr; width: 100%; } }

.tier__save { margin: 0.6rem 0 0; padding: 0.55rem 0.8rem; border-radius: 4px; background: rgba(61, 122, 184, 0.1); color: var(--accent-ink); font-size: 0.85rem; font-weight: 500; }
