/* BettaHabit design system
   Colours come from the logo: navy #071830, leaf #5DAFFE.
   Type: Jost (display, echoes the wordmark's geometry) and
   Atkinson Hyperlegible Next (text, designed for legibility). */

@font-face {
  font-family: "Jost";
  src: url(../fonts/jost-var.woff2) format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url(../fonts/atkinson-400.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url(../fonts/atkinson-400-italic.woff2) format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url(../fonts/atkinson-700.woff2) format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #071830;
  --ink-2: #33425C;
  --ink-3: #56647C;
  --leaf: #5DAFFE;
  --leaf-deep: #1460B8;
  --leaf-soft: #CFE5FD;
  --wash: #EEF5FD;
  --mist: #F5F7FA;
  --rule: #D7DFEA;
  --paper: #FFFFFF;

  --tint-build: #E6EAF1;
  --tint-settle: #EAF4EC;
  --tint-hydrate: #E9F3FE;
  --tint-restore: #FBEEE9;

  --good: #17704A;
  --good-wash: #E8F4EE;
  --warn: #8A5300;
  --warn-wash: #FDF3E3;
  --stop: #A8261B;
  --stop-wash: #FCECEA;

  --font-display: "Jost", "Futura", "Avenir Next", "Century Gothic", system-ui, sans-serif;
  --font-text: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --text-s: 0.9375rem;
  --text-m: 1.0625rem;
  --text-l: 1.25rem;
  --h1: clamp(2.375rem, 1.55rem + 3.3vw, 4.125rem);
  --h2: clamp(1.75rem, 1.35rem + 1.7vw, 2.625rem);
  --h3: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 8.5vw, 120px);
}

@media (min-width: 900px) {
  :root { --text-m: 1.125rem; }
}

/* ---------- Base ---------- */

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

[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--text-m);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--h1); line-height: 1.03; letter-spacing: -0.022em; font-weight: 600; }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); line-height: 1.25; letter-spacing: -0.005em; }
h4 { font-size: var(--text-l); }

p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.35em; }
strong { font-weight: 700; }
small, .small { font-size: var(--text-s); color: var(--ink-3); }

a {
  color: var(--leaf-deep);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--ink); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--leaf);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-s);
}
.skip:focus { top: 12px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 52px;
  padding: 0.8em 1.4em;
  border-radius: 12px;
  border: 2px solid var(--ink);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #17305A; border-color: #17305A; color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--wash); color: var(--ink); }
.btn-small { min-height: 44px; padding: 0.55em 1.05em; font-size: 1rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

.text-link {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--rule);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); }
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}
.brand { flex: none; display: block; padding: 6px 0; }
.brand img { width: 152px; height: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-s);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--ink);
  text-decoration: none;
}
.nav a:hover { background: var(--wash); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--leaf); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.header-cta { flex: none; }

.menu-btn {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform .2s ease, background-color .2s ease;
}
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav { border-top: 1px solid var(--rule); background: #fff; }
.mobile-nav ul { list-style: none; padding: 8px 0 16px; margin: 0; }
.mobile-nav li { margin: 0; border-bottom: 1px solid var(--rule); }
.mobile-nav a:not(.btn) {
  display: block;
  padding: 14px 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}
.mobile-nav .btn { width: 100%; margin-bottom: 20px; }

@media (max-width: 1080px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (min-width: 1081px) {
  .mobile-nav { display: none !important; }
}

/* ---------- Breadcrumbs ---------- */

.crumbs { padding-top: 22px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; font-size: var(--text-s); color: var(--ink-3); }
.crumbs li { margin: 0; display: flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "/"; color: var(--rule); }
.crumbs a { color: var(--ink-3); }

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section-tight { padding-block: calc(var(--section) * .6); }
.section-wash { background: var(--wash); }
.section-mist { background: var(--mist); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p { font-size: var(--text-l); color: var(--ink-2); }

.lede { font-size: clamp(1.1875rem, 1.1rem + .4vw, 1.375rem); line-height: 1.5; color: var(--ink-2); max-width: 40ch; }

.page-intro { padding-block: clamp(36px, 5vw, 64px) clamp(40px, 5vw, 72px); }
.page-intro h1 { max-width: 18ch; }
.page-intro .lede { max-width: 52ch; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(36px, 6vw, 88px) clamp(40px, 5vw, 72px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.hero h1 { max-width: 14ch; margin-bottom: 0.4em; }
.hero .lede { margin-bottom: 32px; }

.start { border-top: 1px solid var(--rule); padding-top: 24px; max-width: 560px; }
.start-q { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; margin-bottom: 14px; }
.start-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0 0 14px; }
.start-options li { margin: 0; }
.start-options a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  height: 100%;
  min-height: 104px;
  padding: 16px 16px 14px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-m);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1875rem;
  line-height: 1.15;
  background: #fff;
  transition: background-color .15s ease;
}
.start-options a span { font-family: var(--font-text); font-weight: 400; font-size: var(--text-s); color: var(--ink-3); }
.start-options a:hover { background: var(--wash); }
.start-note { font-size: var(--text-s); color: var(--ink-3); margin: 0; }
.start-note a { color: var(--ink-3); }

.hero-figure { margin: 0; }
.hero-figure .grid-frame {
  background: var(--wash);
  border-radius: var(--radius-l);
  padding: clamp(18px, 2.4vw, 30px);
}
.habit-grid { width: 100%; height: auto; overflow: visible; }
.hg-label { font-family: var(--font-text); font-size: 11.5px; fill: var(--ink-3); }
.dot-habit { fill: var(--leaf); }
.dot-doctor { fill: var(--ink); }
.dot-coach { fill: #fff; stroke: var(--ink); stroke-width: 3; }
.dot-missed { fill: none; stroke: #B9C7D8; stroke-width: 1.5; stroke-dasharray: 3 3; }
.hero-figure figcaption { margin-top: 16px; font-size: var(--text-s); color: var(--ink-2); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 0 0 8px; }
.legend li { display: flex; align-items: center; gap: 8px; margin: 0; }
.legend svg { width: 16px; height: 16px; flex: none; }

@media (prefers-reduced-motion: no-preference) {
  .grid-anim .dot-habit, .grid-anim .dot-doctor, .grid-anim .dot-coach {
    opacity: 0;
    transform: scale(.3);
    transform-box: fill-box;
    transform-origin: center;
    animation: pop .38s cubic-bezier(.2, .9, .3, 1.25) forwards;
    animation-delay: calc(var(--d) + 250ms);
  }
}
@keyframes pop { to { opacity: 1; transform: scale(1); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
}
@media (max-width: 560px) {
  .start-options { grid-template-columns: 1fr; }
  .start-options a { min-height: 0; flex-direction: row; align-items: center; padding: 14px 16px; }
}

/* ---------- Programme rows ---------- */

.progs { border-top: 1px solid var(--rule); }
.prog {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) max-content;
  gap: 24px clamp(24px, 4vw, 56px);
  padding-block: clamp(28px, 3.6vw, 44px);
  border-bottom: 1px solid var(--rule);
}
.prog-name { font-size: clamp(1.625rem, 1.3rem + 1.1vw, 2.125rem); margin-bottom: .35em; }
.prog-name a { color: var(--ink); text-decoration: none; }
.prog-name a:hover { text-decoration: underline; text-decoration-color: var(--leaf); text-decoration-thickness: 3px; }
.prog-main > p { color: var(--ink-2); }
.prog-rhythm { margin-top: 18px; max-width: 300px; }
.prog-rhythm p { font-size: var(--text-s); color: var(--ink-3); margin: 6px 0 0; }
.rhythm { width: 100%; height: auto; }
.rh-doctor { fill: var(--ink); }
.rh-coach { fill: var(--leaf-soft); }
.rh-label { font-family: var(--font-text); font-size: 11px; fill: var(--ink-3); }
.prog-list { margin-top: 6px; }
.prog-cta { display: flex; flex-direction: column; align-items: flex-start; }
.prog-cta .btn { white-space: nowrap; }
.price { font-size: 1.0625rem; margin: 0; color: var(--ink-2); }
.price strong { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.price-from { font-size: var(--text-s); }
.price-note { font-size: var(--text-s); color: var(--ink-3); margin: 0 0 18px; }
.rhythm-key { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: var(--text-s); color: var(--ink-3); margin-top: 18px; }
.key { display: inline-block; width: 22px; height: 10px; border-radius: 5px; }
.key-item { display: inline-flex; align-items: center; gap: 8px; margin-right: 18px; white-space: nowrap; }
.key-doctor { background: var(--ink); }
.key-coach { background: var(--leaf-soft); }

@media (max-width: 960px) {
  .prog { grid-template-columns: 1fr 1fr; }
  .prog-main { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .prog { grid-template-columns: 1fr; }
}

/* Tick lists */
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: .6em; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .38em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--leaf-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.6 3.6L17.5 8.6' fill='none' stroke='%23071830' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ---------- Steps (a real sequence) ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  counter-reset: step;
}
.steps li { position: relative; margin: 0; counter-increment: step; padding-top: 64px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  display: grid;
  place-items: center;
}
.steps li::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 56px;
  right: -16px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--leaf) 0 6px, transparent 6px 12px);
}
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: .4em; }
.steps p { color: var(--ink-2); font-size: var(--text-m); margin: 0; }

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(2)::after { display: none; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 0 0 28px 64px; }
  .steps li::after { top: 52px; bottom: 6px; left: 21px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--leaf) 0 6px, transparent 6px 12px); }
  .steps li:nth-child(2)::after { display: block; }
}

/* ---------- Who does what ---------- */

.roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 2px solid var(--ink);
}
.role { padding: 28px clamp(16px, 2.6vw, 36px) 8px 0; }
.role + .role { border-left: 1px solid var(--rule); padding-left: clamp(16px, 2.6vw, 36px); }
.role-icon { width: 40px; height: 40px; color: var(--ink); margin-bottom: 14px; }
.role-icon.leaf { width: 26px; height: 36px; }
.role h3 { margin-bottom: .2em; }
.role .who { font-size: var(--text-s); color: var(--ink-3); margin-bottom: 14px; }
.role ul { padding-left: 1.1em; color: var(--ink-2); }

@media (max-width: 860px) {
  .roles { grid-template-columns: 1fr; }
  .role, .role + .role { border-left: 0; padding-left: 0; border-bottom: 1px solid var(--rule); padding-bottom: 12px; }
}

/* ---------- Won't do ---------- */

.wont { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px clamp(24px, 4vw, 56px); list-style: none; padding: 0; margin: 0; }
.wont li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; margin: 0; }
.wont svg { width: 32px; height: 32px; color: var(--ink); }
.wont strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; line-height: 1.3; margin-bottom: 4px; }
.wont p { margin: 0; color: var(--ink-2); font-size: var(--text-m); }
@media (max-width: 760px) { .wont { grid-template-columns: 1fr; } }

/* ---------- Packs ---------- */

.packs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.pack-card { display: flex; flex-direction: column; border-radius: var(--radius-l); overflow: hidden; background: var(--mist); }
.pack-card.tint-build { background: var(--tint-build); }
.pack-card.tint-settle { background: var(--tint-settle); }
.pack-card.tint-hydrate { background: var(--tint-hydrate); }
.pack-card.tint-restore { background: var(--tint-restore); }
.pack-art { display: block; padding: 22px 26px 0; }
.pack { width: 100%; max-width: 230px; margin: 0 auto; height: auto; }
.pk-name { font-family: var(--font-display); font-weight: 600; font-size: 30px; fill: var(--ink); letter-spacing: -0.01em; }
.pk-desc { font-family: var(--font-text); font-size: 11.5px; fill: var(--ink-2); }
.pk-size { font-family: var(--font-display); font-weight: 600; font-size: 11px; letter-spacing: .02em; }
.pack-body { padding: 8px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.pack-name { font-size: 1.625rem; margin-bottom: 0; }
.pack-name a { color: var(--ink); text-decoration: none; }
.pack-name a::after { content: ""; position: absolute; inset: 0; }
.pack-card { position: relative; }
.pack-card:hover .pack-name a { text-decoration: underline; text-decoration-color: var(--leaf); text-decoration-thickness: 3px; }
.pack-desc { font-family: var(--font-display); font-weight: 500; color: var(--ink-2); margin-bottom: 10px; }
.pack-line { font-size: var(--text-s); color: var(--ink-2); flex: 1; }
.pack-price { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pack-price strong { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; }
.pack-price span { font-size: var(--text-s); color: var(--ink-3); }
.packs-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tint-panel-build { background: var(--tint-build); }
.tint-panel-settle { background: var(--tint-settle); }
.tint-panel-hydrate { background: var(--tint-hydrate); }
.tint-panel-restore { background: var(--tint-restore); }
@media (max-width: 1000px) { .packs, .packs-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .packs, .packs-3 { grid-template-columns: 1fr; }
  .pack-card { display: grid; grid-template-columns: 120px 1fr; align-items: center; }
  .pack-art { padding: 14px 0 10px 12px; }
  .pack-body { padding: 16px 18px 16px 8px; }
}

.bundle {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px 32px;
  padding: 24px clamp(20px, 3vw, 32px);
  border: 2px solid var(--ink);
  border-radius: var(--radius-l);
}
.bundle h3 { margin-bottom: .2em; }
.bundle p { margin: 0; color: var(--ink-2); }
.bundle .bundle-buy { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.bundle .bundle-price { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; }
.bundle .bundle-price s { font-size: 1.0625rem; color: var(--ink-3); font-weight: 500; margin-left: 6px; }
@media (max-width: 700px) { .bundle { grid-template-columns: 1fr; } }

/* ---------- Two-column content ---------- */

.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split-even { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .split, .split-even { grid-template-columns: 1fr; } }

.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { max-width: 66ch; }
.prose li::marker { color: var(--leaf-deep); }

/* Facts table */
.facts { width: 100%; border-collapse: collapse; font-size: var(--text-m); }
.facts caption { text-align: left; font-family: var(--font-display); font-weight: 600; font-size: var(--h3); padding-bottom: 12px; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); }
.facts thead th { font-family: var(--font-display); font-weight: 600; font-size: var(--text-s); color: var(--ink-3); border-bottom: 2px solid var(--ink); }
.facts tbody th { font-weight: 400; color: var(--ink-2); }
.facts td { font-variant-numeric: tabular-nums; }
.facts td.num { white-space: nowrap; font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) {
  .facts-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .facts-stack tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .facts-stack tbody tr:first-child { border-top: 2px solid var(--ink); }
  .facts-stack th, .facts-stack td { display: block; border: 0; padding: 2px 0; }
  .facts-stack tbody th { font-family: var(--font-display); font-weight: 600; color: var(--ink); margin-bottom: 4px; }
  .facts-stack td[data-label]::before { content: attr(data-label) ": "; color: var(--ink-3); }
}

/* Notes */
.note { background: var(--wash); border-radius: var(--radius-m); padding: 22px 24px; }
.note h3 { font-size: var(--text-l); margin-bottom: .4em; }
.note p { color: var(--ink-2); }
.note p:last-child { margin-bottom: 0; }
.note-warn { background: var(--warn-wash); }
.note-stop { background: var(--stop-wash); }

.aside-card { border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 24px; }
.aside-card h3 { font-size: var(--text-l); }
.sticky-aside { position: sticky; top: 100px; }

/* Timeline (dated sequence on programme pages) */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--leaf-soft); }
.timeline li { position: relative; padding: 0 0 26px 28px; margin: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--leaf);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--leaf-soft);
}
.timeline li.doc::before { background: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.timeline .when { font-family: var(--font-display); font-weight: 600; color: var(--ink); display: block; }
.timeline p { margin: 2px 0 0; color: var(--ink-2); }

/* Cost card */
.costs { list-style: none; padding: 0; margin: 0; }
.costs li { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.costs li:first-child { border-top: 2px solid var(--ink); }
.costs .what { font-family: var(--font-display); font-weight: 600; }
.costs .amount { font-family: var(--font-display); font-weight: 600; white-space: nowrap; text-align: right; }
.costs .who { grid-column: 1 / -1; font-size: var(--text-s); color: var(--ink-3); }

/* ---------- FAQ ---------- */

.faq { border-top: 2px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-q { font-size: var(--text-l); margin: 0; font-weight: 600; line-height: 1.3; }
.faq-icon { width: 24px; height: 24px; flex: none; color: var(--ink); transition: transform .2s ease; }
.faq details[open] .faq-icon { transform: rotate(45deg); }
.faq-a { padding: 0 0 22px; }
.faq-a p { color: var(--ink-2); margin: 0; }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group > h2 { font-size: var(--h3); margin-bottom: 14px; }

/* ---------- Guides list ---------- */

.guide-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.guide-list li { margin: 0; border-bottom: 1px solid var(--rule); }
.guide-list a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px 40px; padding: 22px 0; text-decoration: none; color: var(--ink); }
.guide-list .g-title { font-family: var(--font-display); font-weight: 600; font-size: var(--text-l); line-height: 1.3; }
.guide-list .g-sum { color: var(--ink-2); font-size: var(--text-m); }
.guide-list a:hover .g-title { text-decoration: underline; text-decoration-color: var(--leaf); text-decoration-thickness: 3px; text-underline-offset: .2em; }
@media (max-width: 760px) { .guide-list a { grid-template-columns: 1fr; } }

/* ---------- Article ---------- */

.article { max-width: 760px; }
.article-meta { font-size: var(--text-s); color: var(--ink-3); margin-bottom: 28px; }
.article h1 { max-width: 20ch; }
.article .lede { max-width: none; }
.article h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); margin-top: 1.8em; }
.article p, .article li { color: var(--ink-2); }
.article li { margin-bottom: .5em; }
.article .sources { font-size: var(--text-s); }
.article .sources li { color: var(--ink-3); }
.key-points { background: var(--wash); border-radius: var(--radius-m); padding: 22px 24px 8px; margin: 28px 0 8px; }
.key-points h2 { font-size: var(--text-l); margin: 0 0 .6em !important; }

/* ---------- Product page ---------- */

.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.product-art { border-radius: var(--radius-l); padding: clamp(28px, 4vw, 56px); display: grid; place-items: center; }
.product-art .pack { max-width: 340px; }
.product-info h1 { font-size: clamp(2.5rem, 1.9rem + 2.4vw, 3.75rem); margin-bottom: .1em; }
.product-info .descriptor { font-family: var(--font-display); font-weight: 500; font-size: var(--text-l); color: var(--ink-2); margin-bottom: 18px; }
.product-info .lede { max-width: 44ch; }
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 22px 0; margin: 24px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.buy-price { font-family: var(--font-display); font-weight: 600; font-size: 2.25rem; line-height: 1; }
.buy-size { display: block; font-family: var(--font-text); font-weight: 400; font-size: var(--text-s); color: var(--ink-3); margin-top: 6px; }
.buy-notes { list-style: none; padding: 0; margin: 0; font-size: var(--text-s); color: var(--ink-2); }
.buy-notes li { display: flex; gap: 10px; align-items: flex-start; }
.buy-notes svg { width: 20px; height: 20px; flex: none; color: var(--ink); margin-top: 2px; }
.claims { list-style: none; padding: 0; }
.claims li { padding: 12px 0 12px 16px; border-left: 3px solid var(--leaf); margin-bottom: 10px; color: var(--ink); background: linear-gradient(90deg, var(--wash), transparent); }
.disclaimer { font-size: var(--text-s); color: var(--ink-3); border-top: 1px solid var(--rule); padding-top: 18px; margin-top: 32px; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */

.cta-band { background: var(--wash); padding-block: clamp(48px, 6vw, 84px); }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 56px; align-items: center; }
.cta-inner h2 { margin-bottom: .3em; }
.cta-inner p { color: var(--ink-2); margin: 0; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
@media (max-width: 800px) { .cta-inner { grid-template-columns: 1fr; } }

/* ---------- The check ---------- */

.check-wrap { max-width: 680px; padding-block: clamp(28px, 4vw, 48px) var(--section); }
.check-head h1 { font-size: clamp(2.125rem, 1.6rem + 2vw, 3rem); }
.check-privacy { display: flex; gap: 12px; align-items: flex-start; font-size: var(--text-s); color: var(--ink-2); background: var(--mist); border-radius: var(--radius-m); padding: 14px 16px; margin: 20px 0 32px; }
.check-privacy svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.check-privacy p { margin: 0; }
.progress { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; font-size: var(--text-s); color: var(--ink-3); }
.progress-bar { flex: 1; height: 6px; background: var(--leaf-soft); border-radius: 3px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 3px; transition: width .3s ease; }
.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step[hidden] { display: none; }
.step legend { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem); line-height: 1.2; padding: 0; margin-bottom: 8px; }
.step .hint { color: var(--ink-2); margin-bottom: 20px; }
.choices { display: grid; gap: 10px; margin-bottom: 28px; }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 14px 18px;
  border: 2px solid var(--rule);
  border-radius: var(--radius-m);
  background: #fff;
  cursor: pointer;
  font-size: var(--text-m);
  line-height: 1.35;
  transition: border-color .12s ease, background-color .12s ease;
}
.choice span::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink-3);
  border-radius: 50%;
  background: #fff;
}
.choice input[type="checkbox"] + span::before { border-radius: 6px; }
.choice:hover span { border-color: var(--ink-3); }
.choice input:checked + span { border-color: var(--ink); background: var(--wash); }
.choice input:checked + span::before {
  border-color: var(--ink);
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.choice input:focus-visible + span { outline: 3px solid var(--leaf); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; margin-bottom: 6px; }
.field .unit { position: relative; }
.field input {
  width: 100%;
  min-height: 56px;
  padding: 12px 52px 12px 16px;
  border: 2px solid var(--rule);
  border-radius: var(--radius-m);
  font: inherit;
  font-size: 1.25rem;
  color: var(--ink);
  background: #fff;
}
.field input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--leaf-soft); }
.field .unit::after { content: attr(data-unit); position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.field-error { color: var(--stop); font-size: var(--text-s); margin: -14px 0 18px; }
.step-nav { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btn-back { background: none; border: 0; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; padding: 12px 8px; }

.result { border-radius: var(--radius-l); padding: clamp(24px, 4vw, 40px); }
.result:focus { outline: none; }
.result h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.375rem); }
.result p, .result li { color: var(--ink-2); }
.result-good { background: var(--good-wash); }
.result-neutral { background: var(--wash); }
.result-warn { background: var(--warn-wash); }
.result-stop { background: var(--stop-wash); }
.result .tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: var(--text-s); margin-bottom: 12px; }
.result-good .tag { color: var(--good); }
.result-warn .tag { color: var(--warn); }
.result-stop .tag { color: var(--stop); }
.result-neutral .tag { color: var(--leaf-deep); }
.result .tag::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.bmi-readout { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; padding: 14px 0; margin: 4px 0 18px; border-top: 1px solid rgba(7, 24, 48, .14); border-bottom: 1px solid rgba(7, 24, 48, .14); }
.bmi-readout strong { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--ink); }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.restart { margin-top: 24px; }

/* ---------- Calculator ---------- */

.article .calc h2 { margin-top: 0; }
.calc { background: var(--wash); border-radius: var(--radius-l); padding: clamp(22px, 3.4vw, 36px); margin: 28px 0 8px; }
.calc .fields { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 18px; }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc-out > div { background: #fff; border-radius: var(--radius-m); padding: 18px 20px; }
.calc-out .label { font-size: var(--text-s); color: var(--ink-3); margin: 0; }
.calc-out .value { font-family: var(--font-display); font-weight: 600; font-size: 2.25rem; line-height: 1.1; margin: 4px 0; color: var(--ink); }
.calc-out .meaning { margin: 0; color: var(--ink-2); font-size: var(--text-s); }
@media (max-width: 640px) {
  .calc .fields, .fields { grid-template-columns: 1fr; }
  .calc-out { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */

.contact-ways { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.contact-ways li { padding: 18px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.contact-ways .how { font-family: var(--font-display); font-weight: 600; display: block; }
.form { display: grid; gap: 16px; }
.form label { font-family: var(--font-display); font-weight: 600; display: block; margin-bottom: 6px; }
.form input, .form textarea, .form select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 2px solid var(--rule);
  border-radius: var(--radius-m);
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--leaf-soft); }
.form .hp { position: absolute; left: -9999px; }
.form .consent-line { display: flex; gap: 10px; align-items: flex-start; font-size: var(--text-s); color: var(--ink-2); }
.form .consent-line input { width: 20px; min-height: 20px; height: 20px; margin-top: 3px; flex: none; }

/* ---------- Legal ---------- */

.legal { max-width: 780px; }
.legal h2 { font-size: clamp(1.375rem, 1.2rem + .7vw, 1.75rem); margin-top: 1.8em; }
.legal p, .legal li { color: var(--ink-2); }
.legal .updated { font-size: var(--text-s); color: var(--ink-3); }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #DCE5F2; padding-block: clamp(48px, 6vw, 80px) 36px; margin-top: 0; }
.site-footer a { color: #FFFFFF; text-decoration-color: rgba(255, 255, 255, .35); }
.site-footer a:hover { color: var(--leaf); text-decoration-color: var(--leaf); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 40px clamp(32px, 5vw, 72px); padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.footer-brand img { width: 160px; height: auto; margin-bottom: 18px; }
.footer-brand p { color: #C3CFE0; }
.footer-contact { list-style: none; padding: 0; margin: 18px 0 0; font-size: var(--text-s); }
.footer-contact li { margin-bottom: 8px; color: #C3CFE0; }
.footer-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.footer-nav h2 { font-size: 1.0625rem; color: #fff; margin-bottom: 14px; letter-spacing: 0; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 10px; font-size: var(--text-s); line-height: 1.4; }
.footer-nav a { text-decoration: none; color: #DCE5F2; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-legal { padding-top: 28px; font-size: 0.875rem; color: #A9B8CD; }
.footer-legal p { max-width: 100ch; margin-bottom: .7em; }
.footer-company { margin-top: 16px; color: #8FA0B8; }
@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Consent ---------- */

.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  max-width: 560px;
  margin-inline: auto;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-m);
  padding: 18px 20px;
}
.consent p { font-size: var(--text-s); margin-bottom: 12px; }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 404 ---------- */

.notfound { padding-block: var(--section); }
.notfound h1 { max-width: 16ch; }

/* ---------- Utilities ---------- */

.h-small { font-size: var(--text-l); }
.h3 { font-size: var(--h3); line-height: 1.25; letter-spacing: -0.005em; }
.steps h2 { margin-bottom: .4em; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center-text { text-align: center; }
.max-760 { max-width: 760px; }
.stack > * + * { margin-top: 24px; }
.muted { color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer, .cta-band, .crumbs, .skip { display: none !important; }
  body { font-size: 12pt; }
  a { color: inherit; }
}
