:root {
  color-scheme: light;
  --ink: #122e2a;
  --muted: #495d55;
  --accent: #14624f;
  --cream: #f8f7f1;
  --paper: #fffefa;
  --line: #d6ded5;
  font: 16px/1.6 system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .15em; }
:focus-visible { outline: 3px solid #b45b27; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { letter-spacing: -.045em; line-height: 1.09; }
h1 { font-size: clamp(2.55rem, 6vw, 5.15rem); font-weight: 730; }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
h3 { line-height: 1.24; font-size: 1.05rem; letter-spacing: -.015em; }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.shell { width: min(76rem, calc(100% - 3rem)); margin-inline: auto; }
.sr-only, .skip:not(:focus) {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.skip:focus { position: absolute; z-index: 10; inset: .5rem auto auto .5rem; padding: .5rem 1rem; background: var(--paper); }

header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .8rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; }
.brand img { object-fit: contain; }
.brand span { font-size: 1.24rem; line-height: 1.1; font-weight: 800; letter-spacing: -.045em; white-space: nowrap; }
.brand small { display: block; margin-top: .23rem; color: var(--muted); font-size: .69rem; letter-spacing: .02em; font-weight: 600; }
nav { display: flex; flex-wrap: wrap; gap: .42rem clamp(.7rem, 2.5vw, 1.75rem); }
nav a { font-size: .88rem; color: var(--ink); font-weight: 595; text-decoration: none; }
nav a:hover { text-decoration: underline; }

.hero { display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: clamp(2rem, 5.75vw, 6rem); padding-block: clamp(3rem, 6vw, 6.3rem); }
.hero-content { min-width: 0; }
.preview-tag { display: inline-block; background: #e5ede2; color: #234d3e; border: 1px solid #cddaCE; border-radius: 100px; padding: .29rem .78rem; margin-bottom: 1.55rem; font-size: .8rem; font-weight: 700; }
.hero h1 { max-width: 16ch; font-size: clamp(2.55rem, 5.3vw, 4.78rem); }
.hero-lead { max-width: 36ch; margin-top: 1.4rem; color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.23rem); }
.programme-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; padding: 0; margin: 1.5rem 0 1.8rem; list-style: none; font-size: .88rem; color: var(--muted); }
.programme-meta li { white-space: nowrap; }
.programme-meta li::before { content: ''; display: inline-block; width: .34rem; height: .34rem; border-radius: 50%; background: #2d7a65; margin-inline-end: .43rem; vertical-align: .13em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.3rem; }
.hero-actions div { font-size: .9rem; }
.hero-actions div b { font-size: 1.1rem; }
.hero-actions div span { color: var(--muted); }
.button { display: inline-flex; align-items: center; gap: 1.1rem; background: var(--accent); border: 1px solid var(--accent); border-radius: .62rem; color: white; padding: .7rem 1.13rem; min-height: 2.9rem; font-weight: 680; text-decoration: none; }
.button:hover { background: #0b4e3e; }
.programme-cover { position: relative; display: grid; place-items: center; min-width: 0; padding: 7%; border: 1px solid #d0dacd; border-radius: 1.25rem; background: radial-gradient(ellipse at 63% 19%, #eef5e8 0, #e0ebde 52%, #c9dbd0 100%); box-shadow: inset 0 0 0 7px #ffffff4d; }
.programme-cover img { display: block; max-width: 100%; height: auto; max-height: min(33rem, 65vh); object-fit: contain; border-radius: .38rem; box-shadow: 0 1.05rem 2.4rem #12362b3b; }

.levels { border-top: 1px solid var(--line); padding-block: 2.6rem 4.1rem; }
.section-lead { color: var(--muted); max-width: 63ch; margin-top: .65rem; }
.level-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .87rem; padding: 0; margin: 1.6rem 0 1.35rem; list-style: none; }
.level-grid li, .panel { background: var(--paper); border: 1px solid var(--line); border-radius: .9rem; }
.level-grid li { display: flex; flex-direction: column; gap: .62rem; padding: 1rem; }
.level-index { min-height: 1.5rem; font-size: .78rem; font-weight: 740; color: var(--accent); }
.level-grid li p { color: var(--muted); font-size: .85rem; line-height: 1.57; }
.level-bottom { margin-top: auto; padding-top: .45rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .35rem .55rem; }
.level-link { font-size: .85rem; font-weight: 700; }
.care-note { font-size: .86rem; color: var(--muted); max-width: 75ch; }
footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer-inner { padding-block: 1.2rem; }
.footer-inner nav { justify-content: flex-end; }

.checkout, .policy { padding-block: 2.6rem 4.75rem; }
.checkout h1, .policy h1 { font-size: clamp(2.15rem, 5.5vw, 4rem); }
.back { display: inline-block; margin-bottom: 1rem; font-size: .9rem; font-weight: 650; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; margin-top: 1.5rem; }
.panel { padding: clamp(1rem, 3vw, 1.9rem); }
.summary h2 { font-size: 1.46rem; margin-bottom: .75rem; }
#selected-level { font-weight: 750; }
.muted { color: var(--muted); font-size: .88rem; }
.field-label { display: block; font-weight: 690; margin-bottom: .35rem; }
input[type=text], select { color: var(--ink); background: var(--paper); border: 1px solid #83988d; padding: .55rem .6rem; border-radius: .4rem; width: 100%; min-width: 0; }
.summary .field-label { margin-top: 1.35rem; }
.coupon-row { display: flex; gap: .55rem; margin-bottom: .42rem; }
.coupon-row button { background: #e5eee4; border: 1px solid #adbdab; color: var(--ink); border-radius: .4rem; padding-inline: .8rem; font-weight: 670; }
.coupon-row button:hover { background: #d4e6d3; }
#coupon-status { font-size: .86rem; color: var(--accent); font-weight: 660; margin-top: .25rem; min-height: 1.4rem; }
.total { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem; border-top: 1px solid var(--line); padding-block: .85rem; margin-top: .5rem; }
.total strong { font-size: 1.55rem; }
button[data-payment] { width: 100%; min-height: 2.75rem; padding: .5rem; background: #eaece6; color: #3a4c44; border: 1px solid var(--line); border-radius: .4rem; font-size: .9rem; cursor: default; }
.sample-details { margin-block: 1.3rem; }
.sample-details summary { color: var(--accent); cursor: pointer; font-weight: 670; }
.sample-details dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem; color: var(--muted); padding: .7rem; background: var(--cream); }
.sample-details dd { margin: 0; overflow-wrap: anywhere; }
.sample-details dt { font-weight: 670; }
.consent { padding: 1rem 0 1.25rem; border: 0; border-top: 1px solid var(--line); min-inline-size: 0; }
.consent legend { padding-inline-end: .6rem; font-weight: 725; }
.consent p { margin-bottom: .7rem; }
.consent p:last-child { font-size: .87rem; color: var(--muted); }
.consent input { accent-color: var(--accent); inline-size: 1rem; block-size: 1rem; vertical-align: -.14em; }
.result { margin-top: 1.2rem; background: #e9f2e6; color: #1e4938; border-radius: .55rem; padding: 1rem; }
.result h2 { font-size: 1.25rem; }
.result p { margin-top: .42rem; }
.policy { max-width: 55rem; }
.policy .panel p { margin-top: 1.15rem; }
.policy-note { background: #e8f0e5; border-radius: .5rem; padding: .8rem 1rem; color: #254839; }

@media (max-width: 67rem) { .level-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 46rem) {
  .shell { width: calc(100% - 2rem); }
  .hero, .checkout-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 2rem 2.5rem; }
  .hero h1 { max-width: 14ch; }
  .programme-cover { padding: 6%; }
  .programme-cover img { max-height: 28rem; }
  .level-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { align-items: start; flex-direction: column; }
  .footer-inner nav { justify-content: flex-start; }
}
@media (max-width: 27rem) {
  .header-inner { gap: .5rem; }
  .header-inner .brand { gap: .36rem; }
  .header-inner .brand img { width: 34px; height: 34px; }
  .header-inner nav { column-gap: .65rem; }
  .header-inner nav a { font-size: .77rem; }
  .level-grid { grid-template-columns: minmax(0, 1fr); }
}
