@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,650&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --navy: #13294b;
  --navy-soft: #2b4166;
  --coral: #c8372d;
  --coral-dark: #a82b22;
  --sky: #dbe9f6;
  --cream: #fbf7f1;
  --sand: #f1e9dd;
  --ink: #1a1f2b;
  --muted: #55607a;
  --line: #e2dacd;
  --white: #ffffff;
  --destructive: #b3261e;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-control: 999px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--font-display); color: var(--navy); line-height: 1.12; margin: 0 0 .5em; font-weight: 650; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.kicker { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--coral); margin-bottom: 14px; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--pad);
  background: rgba(251, 247, 241, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.1rem; }
.brand img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--navy-soft); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--coral); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; font: inherit; font-weight: 700; color: var(--navy); padding: 8px; cursor: pointer; }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px var(--pad) 20px; background: var(--cream); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 8px 0; font-size: 1.05rem; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px;
  border-radius: var(--radius-control); border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--coral); color: var(--white); }
.btn-primary:hover { background: var(--coral-dark); }
.btn-primary:disabled { background: #d9b3ae; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.text-link { font-weight: 700; color: var(--coral); text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: min(86vh, 760px); }
.hero-copy { padding: clamp(48px, 8vw, 110px) var(--pad); display: flex; flex-direction: column; justify-content: center; }
.hero-copy .sub { font-size: 1.2rem; color: var(--navy-soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; align-items: center; }
.hero-media { position: relative; overflow: hidden; background: var(--sand); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-note { margin-top: 26px; font-size: .9rem; color: var(--muted); }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { height: 300px; order: -1; }
  .hero-copy { padding-top: 36px; }
}

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) var(--pad); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.section-head p { max-width: 38em; margin: 0; color: var(--muted); }
.band-navy { background: var(--navy); color: #e8eef7; }
.band-navy h2, .band-navy h3 { color: var(--white); }
.band-navy .kicker { color: #ff9b8f; }
.band-sky { background: var(--sky); }

.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(255,255,255,.18); }
.pillar { padding: 28px 26px 8px 0; border-right: 1px solid rgba(255,255,255,.18); }
.pillar + .pillar { padding-left: 26px; }
.pillar:last-child { border-right: 0; }
.pillar .num { font-family: var(--font-display); font-size: 2.4rem; color: #ff9b8f; line-height: 1; margin-bottom: 14px; }
.pillar p { color: #c9d4e5; font-size: .98rem; }
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar, .pillar + .pillar { padding: 24px 18px 8px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
}
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

/* Service cards */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; }
.card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit; border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(19, 41, 75, .12); }
.card-media { aspect-ratio: 16 / 10; background: var(--sand); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media.empty { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--sky), var(--sand)); color: var(--navy-soft); font-family: var(--font-display); font-size: 1.4rem; padding: 20px; text-align: center; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--coral); }
.card h3 { margin: 0; }
.card .tag { color: var(--muted); font-size: .97rem; margin: 0; }
.card-meta { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 700; color: var(--navy); }
.card-meta .dur { font-weight: 500; color: var(--muted); font-size: .92rem; }
.card-staff { font-size: .9rem; color: var(--navy-soft); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip { min-height: 40px; padding: 0 18px; border-radius: var(--radius-control); border: 1.5px solid var(--navy); background: transparent; color: var(--navy); font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--white); }

.state { padding: 40px 0; color: var(--muted); }
.error { color: var(--destructive); font-weight: 600; }
.skeleton { background: linear-gradient(90deg, var(--sand), #f7f1e8, var(--sand)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius-lg); height: 340px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Doctor band */
.doctor { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.doctor img { border-radius: var(--radius-lg); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
@media (max-width: 820px) { .doctor { grid-template-columns: 1fr; } .doctor img { max-width: 360px; } }

/* Service page */
.svc-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; background: var(--white); border-bottom: 1px solid var(--line); }
.svc-hero .media { background: var(--sand); min-height: 260px; }
.svc-hero .media img { width: 100%; height: 100%; object-fit: cover; max-height: 520px; }
.svc-hero .copy { padding: clamp(28px, 5vw, 64px) var(--pad); }
.svc-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 700; color: var(--navy); margin: 8px 0 18px; }
.svc-facts span.dim { font-weight: 500; color: var(--muted); }
.svc-desc { color: var(--navy-soft); }
.staff-list { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.staff { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--sky); color: var(--navy); display: flex; align-items: center; justify-content: center; font-weight: 800; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .svc-hero { grid-template-columns: 1fr; } .svc-hero .media { min-height: 0; } .svc-hero .media img { max-height: 240px; } }

.booker { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .booker { grid-template-columns: 1fr; } }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); }
.panel h2 { font-size: 1.6rem; }
.week { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.week .days { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.day { min-width: 52px; border: 1.5px solid var(--line); background: var(--cream); border-radius: var(--radius-md); padding: 8px 2px; font: inherit; font-size: .8rem; font-weight: 600; color: var(--navy); cursor: pointer; text-align: center; line-height: 1.25; }
.day[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: var(--white); }
.day:disabled { opacity: .45; cursor: default; }
.day .n { display: block; font-size: .7rem; font-weight: 500; opacity: .8; }
.arrow { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1.5px solid var(--navy); background: transparent; color: var(--navy); font-size: 1.1rem; cursor: pointer; }
.arrow:disabled { opacity: .35; cursor: default; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; min-height: 52px; }
.slot { min-height: 44px; border-radius: var(--radius-control); border: 1.5px solid var(--navy); background: var(--white); color: var(--navy); font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; }
.slot[aria-pressed="true"] { background: var(--coral); border-color: var(--coral); color: var(--white); }
.slot:disabled { border-color: var(--line); color: #a3a9b6; cursor: not-allowed; text-decoration: line-through; }
.tz { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--navy); }
.field input, .field select { min-height: 46px; border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 0 14px; font: inherit; background: var(--cream); color: var(--ink); }
.field input:focus, .field select:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.summary { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; margin-bottom: 14px; font-weight: 600; color: var(--navy); }
.confirmed { background: var(--sky); border-radius: var(--radius-md); padding: 18px; font-weight: 600; color: var(--navy); }
.staff-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

/* Footer */
.site-footer { background: var(--navy); color: #c9d4e5; padding: 48px var(--pad) 36px; font-size: .93rem; }
.site-footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.site-footer a { color: var(--white); }
.site-footer .disclaimer { border-top: 1px solid rgba(255,255,255,.15); margin-top: 28px; padding-top: 18px; font-size: .85rem; color: #9fb0c8; }

/* Programmes */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; }
.plan h3 { font-size: 1.55rem; margin-bottom: 6px; }
.plan-desc { color: var(--muted); font-size: .95rem; min-height: 3em; }
.plan-price { font-family: var(--font-display); font-size: 2.1rem; color: var(--navy); line-height: 1.1; margin-top: 6px; }
.plan-price .cadence { font-family: var(--font-body); font-size: .95rem; color: var(--muted); font-weight: 600; }
.plan-dur { font-size: .9rem; color: var(--navy-soft); font-weight: 600; margin-top: 4px; }
.perks { list-style: none; padding: 0; margin: 18px 0 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.perks li { position: relative; padding-left: 24px; font-size: .95rem; }
.perks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 6px; border-left: 2.5px solid var(--coral); border-bottom: 2.5px solid var(--coral); transform: rotate(-45deg); }
.plan .btn { width: 100%; }
.plans .skeleton { height: 460px; }

/* Members */
.session { display: inline-flex; align-items: center; gap: 14px; min-width: 70px; }
.session a { font-weight: 700; }
.session .who { font-size: .85rem; color: var(--muted); }
.session-ph { display: inline-block; width: 70px; height: 1em; }
.linklike { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--coral); cursor: pointer; }
.linklike:hover { text-decoration: underline; }
.auth-wrap { display: flex; justify-content: center; }
.auth { width: 100%; max-width: 460px; }
.auth h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.auth .panel { margin: 18px 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }
.tier-pill { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 10px; border-radius: var(--radius-control); background: var(--sky); color: var(--navy); }
.tier-pill.locked { background: var(--sand); color: var(--muted); }
.weeks { display: flex; flex-direction: column; gap: 14px; }
.week-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; }
.week-card.closed { background: transparent; border-style: dashed; }
.week-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; }
.week-head h2 { font-size: 1.4rem; margin: 0; }
.week-num { font-family: var(--font-display); color: var(--coral); font-size: 1.1rem; margin-right: 8px; }
.habit { margin: 8px 0 0; color: var(--navy-soft); font-size: .95rem; }
.lessons { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.lessons a, .lessons .lesson-locked { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--cream); border: 1px solid var(--line); text-decoration: none; color: var(--ink); height: 100%; }
.lessons a:hover { border-color: var(--navy); }
.lessons .kind { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--coral); }
.lessons .t { font-weight: 700; color: var(--navy); }
.lessons .lesson-locked .t { color: var(--muted); }
.upsell { margin-top: 26px; background: var(--navy); color: #e8eef7; border-radius: var(--radius-lg); padding: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.upsell h3 { color: #fff; margin: 0 0 4px; }
.upsell p { margin: 0; color: #c9d4e5; }
.article { max-width: 760px; margin: 0 auto; }
.article-body { font-size: 1.08rem; color: var(--ink); }
.article-body h2 { font-size: 1.6rem; margin-top: 1.4em; }
.article-body h3 { font-size: 1.25rem; margin-top: 1.2em; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li { margin: .35em 0; }
.article-body table { border-collapse: collapse; width: 100%; margin: 1em 0; }
.article-body td, .article-body th { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.article-body img { border-radius: var(--radius-md); }
.article-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius-lg); margin: 18px 0 28px; }
.lock-box { margin-top: 26px; border: 1.5px solid var(--navy); border-radius: var(--radius-lg); padding: 24px; background: var(--white); }
.lock-box h2 { font-size: 1.4rem; }
.fade { position: relative; max-height: 260px; overflow: hidden; }
.fade::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(rgba(251,247,241,0), var(--cream)); }
.choices { display: flex; flex-direction: column; gap: 8px; }
.choice { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--ink); cursor: pointer; }
.choice input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--coral); flex: none; }
.consent { font-size: .95rem; }
.flabel { font-weight: 600; font-size: .92rem; color: var(--navy); }
.req { color: var(--coral); }
.field textarea { min-height: 96px; border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 10px 14px; font: inherit; background: var(--cream); }
.field [aria-invalid="true"] { border-color: var(--destructive); }
.field .error { margin: 0; font-size: .88rem; }
.steps-cue { font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--coral); margin-top: 20px; }
.form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }

.field { min-width: 0; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; box-sizing: border-box; }
.row2 > .field { min-width: 0; }
.social { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 6px; }
.btn-social { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border-radius: var(--radius-control); border: 1.5px solid var(--line); background: var(--white); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.btn-social:hover { border-color: var(--navy); }
.btn-social:disabled { opacity: .6; cursor: wait; }
.btn-social svg { width: 20px; height: 20px; flex: none; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .9rem; margin: 10px 0 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* Joining form (welcome.html), phone-first */
#form-root { scroll-margin-top: 84px; }
.jf-progress { display: flex; gap: 6px; margin: 22px 0 10px; }
.jf-progress span { flex: 1; height: 6px; border-radius: var(--radius-control); background: var(--line); }
.jf-progress span.on { background: var(--coral); }
.jf-step { font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--coral); margin: 0 0 12px; }
.panel.jf { padding: 22px 16px; }
@media (min-width: 560px) { .panel.jf { padding: 32px; } }
.jf .field { display: flex; flex-direction: column; gap: 8px; margin: 0 0 22px; min-width: 0; }
.jf fieldset.field { border: 0; padding: 0; }
.jf legend { padding: 0; margin: 0 0 8px; }
.jf .flabel { font-weight: 700; font-size: .95rem; color: var(--navy); }
.jf .slabel { font-weight: 600; font-size: .88rem; color: var(--navy-soft); }
.jf .opt { font-weight: 500; color: var(--muted); }
.jf .hint { margin: 0; font-size: .88rem; color: var(--muted); }
.jf .error { margin: 0; font-size: .88rem; }
.jf .error:empty { display: none; }
.jf .field input:not([type="radio"]):not([type="checkbox"]),
.jf .field select,
.jf .field textarea {
  display: block; width: 100%; min-width: 0; min-height: 52px; margin: 0;
  padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--radius-md);
  background: var(--cream); color: var(--ink); font: inherit; font-size: 1rem;
  -webkit-appearance: none; appearance: none;
}
.jf .field textarea { padding: 12px 14px; min-height: 110px; }
.jf .field input[type="date"] { line-height: 50px; text-align: left; }
.jf .field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.jf .field select {
  padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2313294b' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.jf .field input:focus, .jf .field select:focus, .jf .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.jf .field input[aria-invalid="true"]:not([type="radio"]):not([type="checkbox"]), .jf .field select[aria-invalid="true"], .jf .field textarea[aria-invalid="true"] { border-color: var(--destructive); }
.jf .pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.jf .pair > .field, .jf .pair > .sub { margin-bottom: 0; }
.jf .pair.names { margin-bottom: 22px; }
.jf .pair.pc { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
@media (max-width: 359px) { .jf .pair.names { grid-template-columns: 1fr; gap: 0; } .jf .pair.names > .field { margin-bottom: 22px; } .jf .pair.names { margin-bottom: 0; } }
.jf .addr { gap: 14px; }
.jf .sub { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

/* phone: country code + number */
.jf .tel { display: flex; gap: 8px; }
.jf .tel > input { flex: 1; }
.jf .dial { position: relative; flex: none; width: 104px; }
.jf .dial-face {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  min-height: 52px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: var(--radius-md);
  background: var(--cream); font-weight: 700; color: var(--navy); white-space: nowrap;
}
.jf .dial .chev { width: 8px; height: 8px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg) translate(-2px, -2px); }
.jf .dial select { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; opacity: 0; cursor: pointer; }
.jf .dial:focus-within .dial-face { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }

/* answers as big tap targets */
.jf .opts { display: grid; gap: 8px; grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); }
.jf .opt-box {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-md); background: var(--white);
  font-weight: 600; color: var(--ink); line-height: 1.35; cursor: pointer;
}
.jf .opt-box input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--coral); }
.jf .field .opt-box input:focus { outline: none; }
.jf .opt-box:has(input:checked) { border-color: var(--navy); background: var(--sky); }
.jf .opt-box:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: 1px; }
.jf .opt-box.consent { align-items: flex-start; font-weight: 500; font-size: .95rem; line-height: 1.5; }
.jf .opt-box.consent input { margin-top: 1px; }
.jf .field.invalid .opt-box { border-color: var(--destructive); }

/* buttons: full width on phones, side by side on wider screens */
.jf-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.jf-actions .btn { width: 100%; min-height: 54px; }
@media (min-width: 560px) {
  .jf-actions { flex-direction: row-reverse; justify-content: space-between; }
  .jf-actions .btn { width: auto; min-width: 180px; }
}
.jf .preview-note { margin-top: 12px; font-weight: 600; color: var(--navy); }
@media (max-width: 419px) { .jf .opts[data-cols="3"] { grid-template-columns: 1fr; } }

/* Logged-in header: upgrade button */
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .92rem; }
.session { flex-wrap: wrap; }
.nav a.btn-primary[hidden] { display: none; }
.upsell-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.upsell-link { color: var(--white); font-weight: 700; }
@media (max-width: 560px) { .upsell-actions { width: 100%; } .upsell-actions .btn { width: 100%; } }
.plan-note { margin: 10px 0 0; font-size: .85rem; color: var(--muted); line-height: 1.45; }
.upsell-note { flex-basis: 100%; margin: 0; font-size: .85rem; color: #c9d4e5; }
.plan.current { border: 2px solid var(--navy); }
.plan-badge { align-self: flex-start; margin-bottom: 10px; }
.code-box { margin-top: 12px; }
.code-box form { display: flex; gap: 8px; }
.code-box input { flex: 1; min-width: 0; min-height: 40px; border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 0 12px; font: inherit; font-size: 1rem; background: var(--cream); }
.code-toggle { font-size: .92rem; }
.code-msg { margin: 8px 0 0; font-size: .88rem; font-weight: 600; color: var(--destructive); }
.code-msg.ok { color: var(--navy); }

/* Health log (log.html) */
.hl { max-width: 640px; margin: 0 auto; }
.hl-sample { font-size: .85rem; color: var(--muted); background: var(--sand); border-radius: var(--radius-md); padding: 10px 14px; }
.hl-day { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 14px; }
.hl-day h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); margin: 0; text-align: center; flex: 1; }
.hl-free { font-size: .92rem; color: var(--navy); background: var(--sky); border-radius: var(--radius-md); padding: 10px 14px; }
.hl-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.hl-stats div, .cgm-grid div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px 10px; text-align: center; }
.hl-stats b, .cgm-grid b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); line-height: 1.1; }
.hl-stats span, .cgm-grid span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.hl-add { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hl-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 88px; border-radius: var(--radius-lg); border: 1.5px solid var(--line); background: var(--white); font: inherit; font-weight: 700; color: var(--navy); cursor: pointer; }
.hl-btn span { font-size: 1.5rem; line-height: 1; color: var(--coral); }
.hl-btn:active { background: var(--sky); }
.hl-cgm-link { text-align: center; margin: 12px 0 6px; font-size: .95rem; }
.hl-form { margin: 6px 0 14px; }
.hl-form-title { font-size: 1.4rem; margin-bottom: 14px; }
.hl-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hl-item { display: flex; align-items: flex-start; gap: 12px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--radius-md); padding: 12px 10px 12px 12px; }
.hl-sugar { border-left-color: var(--coral); }
.hl-food { border-left-color: var(--navy-soft); }
.hl-exercise { border-left-color: var(--navy); }
.hl-cgm { border-left-color: var(--coral-dark); }
.hl-time { font-weight: 700; color: var(--navy); min-width: 46px; font-variant-numeric: tabular-nums; }
.hl-body { flex: 1; min-width: 0; }
.hl-detail { display: block; color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.hl-del { background: none; border: 0; font-size: 1.4rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 2px 6px; }
.hl-empty { text-align: center; margin: 22px 0; }
.g-pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-control); vertical-align: 1px; }
.g-pill.in { background: var(--sky); color: var(--navy); }
.g-pill.low, .g-pill.high { background: var(--sand); color: var(--destructive); }
.cgm-sum { margin-bottom: 8px; }
.cgm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hl-form input[type="file"] { padding: 12px 14px !important; line-height: 1.3; }
.hl-tabs { display: inline-flex; gap: 4px; background: var(--sand); border-radius: var(--radius-control); padding: 4px; margin: 4px 0 6px; }
.hl-tabs button { min-height: 40px; padding: 0 18px; border: 0; border-radius: var(--radius-control); background: transparent; font: inherit; font-weight: 700; color: var(--navy-soft); cursor: pointer; }
.hl-tabs button[aria-selected="true"] { background: var(--white); color: var(--navy); box-shadow: 0 1px 3px rgba(19, 41, 75, .12); }
.hl-photo-btn { display: flex; align-items: center; justify-content: center; min-height: 52px; border: 1.5px dashed var(--navy-soft); border-radius: var(--radius-md); background: var(--cream); font-weight: 700; color: var(--navy); cursor: pointer; text-align: center; padding: 0 14px; }
.hl-photo-prev { margin-top: 10px; max-height: 220px; width: auto; border-radius: var(--radius-md); }
.hl-thumb { margin-top: 8px; width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius-sm); }
.hl-file { display: inline-block; margin-top: 6px; font-size: .92rem; }
.hl-table-wrap { overflow-x: auto; margin-top: 8px; }
.hl-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-md); font-size: .95rem; }
.hl-table th, .hl-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.hl-table th:first-child { text-align: left; }
.hl-table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.hl-table tfoot th, .hl-table tfoot td { font-weight: 800; color: var(--navy); border-bottom: 0; }
.hl-cgm-latest { margin-top: 12px; font-size: .95rem; }
.hl-card { display: flex; flex-direction: column; gap: 4px; margin: 0 0 22px; padding: 18px 20px; background: var(--white); border: 1.5px solid var(--navy); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink); }
.hl-card b { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); }
.hl-card-k { font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--coral); }
.hl-table th, .hl-table td { padding: 10px 6px; }
.hl-table thead th { white-space: normal; vertical-align: bottom; line-height: 1.25; font-size: .72rem; }

/* Header: Health log button for members */
.nav a.nav-log { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 2px solid var(--navy); border-radius: var(--radius-control); color: var(--navy); font-weight: 700; }
.nav a.nav-log span { color: var(--coral); font-weight: 800; }
.nav a.nav-log:hover { background: var(--sky); color: var(--navy); }
.nav a.nav-log.on { background: var(--navy); color: var(--white); }
.nav a.nav-log.on span { color: var(--white); }
@media (max-width: 820px) { .nav a.nav-log { padding: 0 16px; margin: 4px 0; } }
@media (max-width: 1180px) {
  body.member .nav-toggle { display: block; }
  body.member .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px var(--pad) 20px; background: var(--cream); border-bottom: 1px solid var(--line); }
  body.member .nav.open { display: flex; }
  body.member .nav a { padding: 8px 0; font-size: 1.05rem; }
  body.member .nav a.nav-log { padding: 0 16px; margin: 4px 0; }
}