/* ============================================================
   Yello — "warm clinical" design system
   Premium craft pass. Branding held: Yello yellow + teal.
   Signature: the "Yello hours" discount heat-grid.
   ============================================================ */

:root {
  /* type */
  --font-display: "Bricolage Grotesque", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* warm clinical surfaces */
  --paper: #fbf9f3;
  --paper-2: #f4f1e8;
  --panel: #ffffff;
  --ink: #1c1b18;
  --ink-2: #3a3934;
  --muted: #6c6e72;
  --faint: #9b9c9e;
  --line: #ece7db;
  --line-2: #ded8c9;

  /* brand — Yello yellow, used with restraint */
  --brand: #ffc40c;
  --brand-strong: #f2b300;
  --brand-deep: #785700;   /* legible amber text on light */
  --brand-wash: #fff6d6;
  --brand-wash-2: #ffeda6;

  /* trust / action */
  --teal: #0f766e;
  --teal-deep: #0b5a54;
  --teal-wash: #e7f1ef;

  --rose: #c24156;
  --rose-wash: #fae7ea;

  --radius-s: 10px;
  --radius: 14px;
  --radius-l: 22px;
  --pill: 999px;

  --shadow-s: 0 1px 2px rgba(28, 27, 24, .05), 0 3px 8px rgba(28, 27, 24, .045);
  --shadow: 0 8px 24px rgba(28, 27, 24, .08);
  --shadow-l: 0 26px 60px rgba(28, 27, 24, .14);
  --ring: 0 0 0 3px rgba(15, 118, 110, .30);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(255, 196, 12, .10), transparent 60%),
    radial-gradient(900px 500px at -6% 4%, rgba(15, 118, 110, .06), transparent 55%),
    var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; cursor: pointer; background: none; }
a { color: var(--teal); }

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 8px;
}

::selection { background: var(--brand-wash-2); color: var(--ink); }

/* ---------- type scale ---------- */

h1, h2, h3, h4, p { margin-top: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--ink);
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  font-weight: 800;
  line-height: 0.98;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 2.9vw, 2.3rem);
  line-height: 1.06;
}

h3 { margin-bottom: 8px; font-size: 1.1rem; line-height: 1.25; }

.lead {
  max-width: 62ch;
  color: var(--ink-2);
  font-size: 1.1rem;
  line-height: 1.55;
}

.muted { color: var(--muted); }
.small { margin: 0; font-size: 0.8rem; }
.strike { text-decoration: line-through; color: var(--faint); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: var(--brand-deep);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: var(--brand);
}

/* ---------- shell ---------- */

.shell { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 12px clamp(16px, 4vw, 46px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 249, 243, .82);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}
.brand img { height: 28px; width: auto; object-fit: contain; }
.brand span { color: var(--muted); font-weight: 600; }

.nav { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; align-items: center; }

.nav button {
  min-height: 38px;
  border-radius: var(--pill);
  padding: 8px 14px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav button:hover { background: var(--paper-2); color: var(--ink); }
.nav button.active { background: var(--teal-wash); color: var(--teal-deep); }

.header-tools {
  display: flex;
  order: 3;
  flex-basis: 100%;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.header-tools select { width: 152px; flex: none; }

.suggest-wrap { position: relative; flex: 1; min-width: 180px; }
.suggest-wrap input {
  padding-left: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236c6e72' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.2-3.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 13px center;
}

.suggest-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  z-index: 40;
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-l);
  overflow: hidden;
}
.suggest-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.suggest-item:last-child { border-bottom: 0; }
.suggest-item:hover { background: var(--brand-wash); }

.cart-button {
  position: relative;
  min-height: 38px;
  border-radius: var(--pill);
  padding: 8px 12px;
  font-size: 1.1rem;
  transition: background .18s var(--ease);
}
.cart-button:hover { background: var(--paper-2); }
.cart-count {
  position: absolute;
  top: 2px; right: 4px;
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: var(--pill);
  background: var(--rose);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 700;
}

.main {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 0 64px;
  flex: 1;
}

/* ---------- controls ---------- */

.field { display: grid; gap: 6px; }

label {
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 600;
}

input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-s);
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: var(--ring);
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c6e72' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

.primary, .secondary, .ghost, .danger, .link, .button-link {
  font-family: var(--font-sans);
  font-weight: 600;
  transition: transform .14s var(--ease), box-shadow .16s var(--ease),
              background .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}

.primary, .secondary, .danger, .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius-s);
  padding: 11px 18px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.primary {
  color: #241a00;
  background: linear-gradient(180deg, #ffce33, var(--brand) 55%, var(--brand-strong));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 6px 16px rgba(242, 179, 0, .32);
}
.primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 12px 24px rgba(242, 179, 0, .4); }
.primary:active { transform: translateY(0); }

.secondary {
  color: #fff;
  background: var(--teal);
  box-shadow: 0 6px 16px rgba(15, 118, 110, .22);
}
.secondary:hover { background: var(--teal-deep); transform: translateY(-1px); }
.secondary:active { transform: translateY(0); }

.danger { color: #fff; background: var(--rose); }
.danger:hover { filter: brightness(1.05); }

.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-s);
  padding: 10px 16px;
  color: var(--ink);
  background: transparent;
}
.ghost:hover { background: var(--panel); border-color: var(--ink-2); box-shadow: var(--shadow-s); }

.link {
  min-height: auto;
  padding: 0;
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link:hover { color: var(--teal-deep); }

.full { width: 100%; grid-column: 1 / -1; }
.big { min-height: 54px; padding: 14px 20px; font-size: 1.02rem; }

.inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* ---------- surfaces ---------- */

.panel, .package-card, .partner-tile, .lab-card, .booking-card, .hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-s);
}
.panel { padding: 22px; }

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: var(--pill);
  padding: 3px 11px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.pill.brand-pill { background: var(--brand-wash); color: var(--brand-deep); }
.pill.off-pill { background: var(--teal-wash); color: var(--teal-deep); font-weight: 700; }
.pill.warn-pill { background: var(--rose-wash); color: var(--rose); }

.meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }

.price { display: flex; align-items: baseline; gap: 10px; margin-top: auto; }
.price strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.price .strike { font-size: 1rem; }
.price.right { justify-content: flex-end; }

.empty {
  display: grid;
  place-items: center;
  gap: 4px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  padding: 34px 18px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, .5);
}

/* ---------- sections ---------- */

.section { padding: 30px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.section-head .eyebrow { margin-bottom: 6px; }

.band {
  border-radius: var(--radius-l);
  padding: clamp(22px, 3vw, 34px);
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 14px;
  margin: 0 -4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.slider > * { scroll-snap-align: start; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* ---------- hero ---------- */

.promo-banner {
  position: relative;
  margin-top: 20px;
  overflow: hidden;
  border-radius: var(--radius-l);
  padding: clamp(30px, 5vw, 66px);
  color: #fff;
  background:
    radial-gradient(680px 340px at 90% -20%, rgba(255, 196, 12, .55), transparent 62%),
    radial-gradient(520px 360px at 108% 120%, rgba(255, 196, 12, .18), transparent 60%),
    linear-gradient(150deg, #0f766e 0%, #0c5b55 46%, #10312f 100%);
  box-shadow: var(--shadow-l);
}
.promo-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: radial-gradient(680px 420px at 92% 0%, #000, transparent 70%);
  pointer-events: none;
}
.promo-banner > * { position: relative; z-index: 1; max-width: 40ch; }
.promo-banner h1 { color: #fff; }
.promo-banner .lead { color: rgba(255, 255, 255, .86); }
.promo-banner .inline { margin-top: 26px; }

.light { color: rgba(255, 255, 255, .82); }
.eyebrow.light { color: #ffe08a; }
.eyebrow.light::before { background: var(--brand); }
.ghost.light { color: #fff; border-color: rgba(255, 255, 255, .38); }
.ghost.light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* hero trust strip (markup enhancement) */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 26px;
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px 7px 11px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 0.83rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}
.hero-trust span::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 196, 12, .25);
}

/* ---------- package / partner / testimonial cards ---------- */

.package-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  min-height: 210px;
}
.package-card .meta { margin: 0 0 4px; }
.package-card h3 { margin: 2px 0 2px; }
.package-card .price { padding-top: 10px; }

/* lab-branded package card (wireframe node 2-2) */
.lab-branded-card { position: relative; overflow: hidden; gap: 8px; }
.lab-branded-card .price { padding-top: 2px; margin-top: 0; }
.lab-branded-card .price strong { font-size: 1.45rem; }
.yello-ribbon {
  position: absolute;
  top: 12px; left: -26px;
  transform: rotate(-45deg);
  width: 96px;
  text-align: center;
  padding: 3px 0;
  background: linear-gradient(180deg, #ffce33, var(--brand-strong));
  color: #241a00;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .72rem;
  box-shadow: 0 2px 6px rgba(36,26,0,.18);
}
.lab-branded-card h3 { margin: 4px 0 0 30px; }
.pkg-covers { margin: 2px 0 6px 30px; min-height: 40px; }
.lab-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding-top: 10px; border-top: 1px solid var(--line); }
.lab-line { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .88rem; color: var(--ink-2); }
.price-calm { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.price-calm strong { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.subscribe .light { max-width: 46ch; margin: 0 auto; }
.lab-mark {
  display: grid; place-items: center;
  min-width: 46px; height: 30px; padding: 0 8px;
  border-radius: 7px;
  border: 1px solid var(--line-2);
  background: var(--paper-2);
  color: var(--ink-2);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .04em;
}
.lab-rating { color: var(--ink); font-weight: 700; font-size: .92rem; }
.lab-branded-card > .pill.off-pill { align-self: flex-start; }
.pkg-inner {
  display: grid; gap: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--paper-2);
  padding: 12px 14px;
  margin: 4px 0 8px;
}
.pkg-inner strong { font-size: .95rem; }
.know-more { justify-self: start; font-size: .85rem; }

/* program hero price line */
.hero-price {
  margin: 2px 0 12px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 700;
}
.hero-price strong { font-weight: 800; font-variant-numeric: tabular-nums; }

.partner-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
}
.partner-logo {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--brand-wash), var(--brand-wash-2));
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.package-card, .partner-tile, .lab-card, .upsell-item, .chip, .slot-chip {
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease);
}
.package-card:hover, .partner-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.quote-card { display: flex; flex-direction: column; gap: 10px; }
.quote-mark {
  margin: 0;
  font-family: var(--font-display);
  color: var(--brand);
  font-size: 3rem;
  line-height: 0.6;
  font-weight: 800;
}
.quote-card p:nth-child(2) { color: var(--ink-2); font-size: 1.02rem; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line-2);
  border-radius: var(--pill);
  padding: 8px 14px;
  background: #fff;
  color: var(--ink-2);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
}
.chip:hover { border-color: var(--brand-strong); background: var(--brand-wash); color: var(--brand-deep); transform: translateY(-1px); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step-card { position: relative; padding: 24px 20px; }
.step-card h3 { margin-top: 6px; }
.step-number {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  margin-bottom: 12px;
  border-radius: 13px;
  background: linear-gradient(180deg, #ffce33, var(--brand-strong));
  color: #241a00;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 6px 14px rgba(242, 179, 0, .3);
}
.step-number.small {
  width: 27px; height: 27px;
  margin: 0 8px 0 0;
  border-radius: 8px;
  font-size: 0.85rem;
  box-shadow: none;
}

/* subscribe */
.subscribe {
  border-radius: var(--radius-l);
  padding: clamp(28px, 4vw, 44px);
  text-align: center;
  color: #fff;
  background: linear-gradient(150deg, #12403c, #0f766e);
  box-shadow: var(--shadow);
}
.subscribe h2 { color: #fff; }
.subscribe-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  max-width: 520px;
  margin: 18px auto 0;
}
.subscribe-form input { border-color: transparent; }

/* ---------- listing ---------- */

.listing-grid {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.filters { position: sticky; top: 90px; display: grid; gap: 14px; }
.filters h3 { margin-bottom: 4px; }

.upsell { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 2px; }
.upsell-item {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 11px 12px;
  background: #fff;
  text-align: left;
}
.upsell-item:hover { border-color: var(--teal); background: var(--teal-wash); }
.upsell-item strong { font-size: 0.94rem; }

.lab-list { display: grid; gap: 16px; }
.lab-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 20px;
  align-items: center;
  padding: 22px;
}
.lab-card:hover { box-shadow: var(--shadow); }
.listing-card { align-items: start; }
.listing-card h3 { font-size: 1.25rem; }
.lab-card-actions {
  display: grid;
  gap: 10px;
  justify-items: stretch;
  align-content: center;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.lab-card-actions strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.pagination { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 22px; }

/* ---------- SIGNATURE: Yello-hours heat grid ---------- */

.slot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.slot-day {
  display: grid;
  gap: 7px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 11px;
  background: linear-gradient(180deg, #fff, #fbfaf5);
}
.slot-day-head { margin: 0 0 2px; font-weight: 700; font-size: 0.82rem; font-family: var(--font-display); }
.slot-day-head .muted { font-family: var(--font-sans); font-weight: 500; font-size: 0.74rem; }

.slot-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  padding: 8px 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.slot-chip strong {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.slot-chip span {
  color: var(--teal-deep);
  font-weight: 700;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.slot-chip:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--teal); box-shadow: var(--shadow-s); }

/* discount heat tiers (data-tier set in app.js) */
.slot-chip[data-tier="2"] { background: #fffdf3; border-color: #f0e3b0; }
.slot-chip[data-tier="3"], .slot-chip.yello-hour {
  background: linear-gradient(180deg, var(--brand-wash), #fff0bd);
  border-color: var(--brand-strong);
}
.slot-chip[data-tier="3"] span, .slot-chip.yello-hour span { color: var(--brand-deep); }
.slot-chip.yello-hour::after {
  content: "";
  position: absolute;
  top: 7px; right: 7px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-strong);
  box-shadow: 0 0 0 3px rgba(242, 179, 0, .22);
}

.slot-chip.selected {
  border-color: var(--teal-deep);
  background: linear-gradient(180deg, #ffce33, var(--brand-strong));
  color: #241a00;
  box-shadow: var(--ring), 0 8px 18px rgba(242, 179, 0, .35);
}
.slot-chip.selected span { color: #241a00; }
.slot-chip.selected.yello-hour::after { background: var(--teal-deep); box-shadow: 0 0 0 3px rgba(15, 118, 110, .25); }

.slot-chip:disabled { opacity: 0.4; cursor: not-allowed; }
.slot-chip:disabled span { color: var(--faint); }

/* ---------- lab detail ---------- */

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 26px; align-items: start; }
.detail-grid > div:first-child { display: grid; gap: 18px; align-content: start; }
.detail-grid > div:first-child > .ghost { justify-self: start; }
.detail-grid h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }

.test-option, .patient-option {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-s);
  padding: 13px 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s var(--ease), background .16s var(--ease), box-shadow .16s var(--ease);
}
.test-option:hover, .patient-option:hover { border-color: var(--teal); }
.test-option:has(input:checked), .patient-option:has(input:checked) {
  border-color: var(--teal);
  background: var(--teal-wash);
  box-shadow: var(--ring);
}
.test-option input, .patient-option input { width: auto; min-height: auto; accent-color: var(--teal); }
.test-option .inline { gap: 8px; }

.booking-panel {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
}
.booking-panel .price { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }

/* ---------- login / payment cards ---------- */

.hero-panel { display: flex; flex-direction: column; padding: 30px; }
.login-card {
  width: min(460px, 100%);
  margin: 40px auto;
  padding: 34px;
  display: grid;
  gap: 14px;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
}
.login-card h2 { text-align: center; margin-bottom: 2px; }
.login-logo { height: 46px; width: auto; object-fit: contain; margin: 0 auto 8px; }
.payment-card { gap: 14px; }

/* ---------- checkout ---------- */

.checkout { display: grid; gap: 16px; max-width: 780px; margin: 0 auto; }
.summary-card { padding: 24px; }
.summary-card .summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 22px;
  margin: 16px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.summary-grid p { margin: 0; font-size: 0.95rem; }
.summary-grid .muted { font-size: 0.76rem; text-transform: uppercase; letter-spacing: .06em; }

.accordion { padding: 0; overflow: hidden; border-color: var(--line-2); }
.accordion.open { box-shadow: var(--shadow); border-color: var(--teal); }
.accordion-head {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  text-align: left;
}
.accordion-head > span:first-child { display: inline-flex; align-items: center; }
.accordion-head .muted { font-family: var(--font-sans); font-weight: 500; font-size: 0.85rem; margin-left: 6px; }
.accordion.open .accordion-head { border-bottom: 1px solid var(--line); }
.accordion-body { display: grid; gap: 14px; padding: 20px; }

.check {
  display: inline-grid;
  place-items: center;
  width: 27px; height: 27px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--pill);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}
.check.done { border-color: var(--teal); background: var(--teal); }

/* ---------- success ---------- */

.success { display: grid; gap: 16px; max-width: 780px; margin: 0 auto; }
.success .center { margin-top: 8px; }
h1.center {
  display: block;
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
}
.success h1.center::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  margin: 0 auto 16px;
  border-radius: var(--pill);
  background: var(--teal-wash);
  color: var(--teal);
  font-size: 1.8rem;
}
.center { display: flex; gap: 12px; justify-content: center; align-items: center; text-align: center; flex-wrap: wrap; }

/* ---------- account / portal ---------- */

.portal-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 22px; align-items: start; }
.portal-grid > div { display: grid; gap: 16px; }
.portal-grid aside { position: sticky; top: 90px; }
.portal-grid aside h3 { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

.stat {
  border-radius: var(--radius-s);
  padding: 16px;
  background: linear-gradient(150deg, var(--teal-wash), #fff);
  border: 1px solid var(--line);
}
.stat.slim { margin: 14px 0; }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  font-variant-numeric: tabular-nums;
  color: var(--teal-deep);
}

.booking-list { display: grid; gap: 16px; }
.booking-card { display: grid; gap: 6px; padding: 20px; }
.booking-card .meta { margin: 0 0 4px; }
.booking-card .inline { margin-top: 8px; justify-content: space-between; }

.question-row { border-bottom: 1px solid var(--line); padding: 14px 0; }
.question-row:last-child { border-bottom: 0; }

/* ---------- modals / chat ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(28, 27, 24, .5);
  backdrop-filter: blur(3px);
  animation: fade .2s var(--ease);
}
.modal { width: min(480px, 100%); padding: 26px; box-shadow: var(--shadow-l); animation: pop .24s var(--ease); }
.chat-window { display: grid; gap: 14px; width: min(620px, 100%); }
.chat-messages {
  display: grid;
  gap: 10px;
  max-height: 440px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 16px;
  background: var(--paper);
}
.chat-bubble {
  justify-self: start;
  max-width: 82%;
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 3px;
  padding: 10px 13px;
  background: #fff;
}
.chat-bubble.mine { justify-self: end; border-radius: 14px 14px 3px 14px; border-color: var(--brand-strong); background: var(--brand-wash); }
.chat-bubble p { margin: 0 0 4px; }
.chat-input { flex-wrap: nowrap; }
.chat-input input:not([type=file]) { flex: 1; }
.chat-file { max-width: 150px; }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 70;
  max-width: min(420px, calc(100vw - 40px));
  border-radius: var(--radius-s);
  padding: 14px 18px;
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow-l);
  font-weight: 500;
  animation: toast-in .32s var(--ease);
}

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--line); padding: 40px clamp(16px, 4vw, 46px) 30px; background: var(--panel); }
.footer-cloud { width: min(1200px, 100%); margin: 0 auto 22px; }
.footer-cloud h3 { text-align: center; font-size: 0.82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cloud { color: var(--faint); font-size: 0.82rem; line-height: 2; text-align: center; }
.cloud a { color: var(--muted); text-decoration: none; }
.cloud a:hover { color: var(--teal); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 22px;
  width: min(1200px, 100%);
  margin: 8px auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.footer-grid strong { font-family: var(--font-display); }
.footer-grid a { color: var(--muted); text-decoration: none; line-height: 1.9; }
.footer-grid a:hover { color: var(--teal); }
.copyright { width: min(1200px, 100%); margin: 22px auto 0; font-size: 0.8rem; color: var(--faint); }

/* ---------- static ---------- */

.static-page { max-width: 740px; margin: 0 auto; }
.how-list { display: grid; gap: 12px; padding-left: 20px; line-height: 1.6; }
.how-list strong { color: var(--ink); }

/* ---------- admin / doctor portals (shared sheet) ---------- */

.quick-grid, .stats, .portal-grid, .detail-grid { display: grid; gap: 16px; }
.quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quick-card { min-height: 116px; border-radius: var(--radius); padding: 20px; color: #fff; box-shadow: var(--shadow-s); }
.quick-card:nth-child(1) { background: linear-gradient(150deg, #0f766e, #0b5a54); }
.quick-card:nth-child(2) { background: linear-gradient(150deg, #3a3934, #1c1b18); }
.quick-card:nth-child(3) { background: linear-gradient(150deg, #c24156, #9d3446); }
.quick-card strong { display: block; font-family: var(--font-display); font-size: 1.9rem; }
.stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px; }

.tabs, .tab { display: inline-flex; }
.tabs { flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab {
  min-height: 40px;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: var(--pill);
  padding: 8px 16px;
  color: var(--ink-2);
  background: #fff;
  font-weight: 600;
}
.tab.active { border-color: var(--teal); background: var(--teal-wash); color: var(--teal-deep); }

table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--line); padding: 12px; text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 0.74rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }

.portal-login { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.portal-login .login-card { margin: 0; }

.sort-button { padding: 0; color: var(--muted); font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.sort-button.active { color: var(--teal-deep); }
.filter-bar { margin-bottom: 16px; }
.filter-bar input[type="date"] { width: auto; }
.chip.choice { cursor: pointer; }
.chip.choice.selected { border-color: var(--brand-strong); background: var(--brand-wash); color: var(--brand-deep); }
.chip.choice input { width: auto; min-height: auto; }
.closure-row { border-bottom: 1px solid var(--line); padding: 10px 0; }
.closure-lab { min-width: 180px; }
.closure-row input[type="date"], .closure-row input[type="number"] { width: auto; }
.closure-row input[type="number"] { width: 78px; }
.chat-layout { max-width: 780px; margin: 0 auto; }
.chat-timer { border: 1px solid var(--line-2); border-radius: var(--pill); padding: 8px 16px; background: #fff; font-weight: 700; }
.chat-timer.danger { border-color: var(--rose); color: var(--rose); background: var(--rose-wash); }
.button-link { text-decoration: none; color: #fff; background: var(--teal); }

/* ---------- motion ---------- */

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.promo-banner > * { animation: rise .6s var(--ease) both; }
.promo-banner .eyebrow { animation-delay: .02s; }
.promo-banner h1 { animation-delay: .08s; }
.promo-banner .lead { animation-delay: .16s; }
.promo-banner .inline { animation-delay: .24s; }
.promo-banner .hero-trust { animation-delay: .32s; }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .listing-grid { grid-template-columns: 1fr; }
  .filters { position: static; }
  .detail-grid { grid-template-columns: 1fr; }
  .booking-panel { position: static; }
  .portal-grid { grid-template-columns: 1fr; }
  .portal-grid aside { position: static; }
  .cards, .stats, .stats.three, .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .topbar { gap: 10px; }
  .nav { width: 100%; margin-left: 0; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .nav button { white-space: nowrap; }
  .header-tools { flex-wrap: wrap; }
  .header-tools select { width: 100%; }
  .lab-card { grid-template-columns: 1fr; }
  .lab-card-actions { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 14px; }
  .cards, .two-col, .form-grid, .steps, .stats, .stats.three, .quick-grid,
  .summary-card .summary-grid { grid-template-columns: 1fr; }
  .subscribe-form { flex-direction: column; }
  .promo-banner > * { max-width: none; }
  .slot-grid { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- centre onboarding wizard ---------- */

.wiz { display: grid; grid-template-columns: 244px minmax(0,1fr); gap: 22px; align-items: start; }
.wiz-rail { position: sticky; top: 90px; display: grid; gap: 3px; padding: 12px; }
.wiz-step { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 10px; text-align: left;
  color: var(--ink-2); font-weight: 600; font-size: .9rem; background: transparent; transition: background .15s var(--ease); }
.wiz-step:hover { background: var(--paper-2); }
.wiz-step.active { background: var(--teal-wash); color: var(--teal-deep); }
.wiz-num { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; flex: none;
  background: var(--paper-2); color: var(--muted); font-size: .76rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.wiz-step.active .wiz-num { background: var(--brand); color: #241a00; }
.wiz-step.done .wiz-num { background: var(--teal); color: #fff; }
.wiz-main { display: grid; gap: 16px; }
.wiz-foot { display: flex; justify-content: space-between; gap: 12px; }

.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tier-card { text-align: left; padding: 18px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: #fff; display: grid; gap: 9px; align-content: start; transition: border-color .15s var(--ease), background .15s var(--ease); }
.tier-card:hover { border-color: var(--teal); }
.tier-card.sel { border-color: var(--teal); background: var(--teal-wash); box-shadow: var(--ring); }
.tier-badge { justify-self: start; font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  padding: 4px 11px; border-radius: 8px; background: var(--brand-wash); color: var(--brand-deep); }

.in-wrap { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: #fff; overflow: hidden; }
.in-wrap:focus-within { border-color: var(--teal); box-shadow: var(--ring); }
.in-wrap input { border: 0; border-radius: 0; }
.in-wrap input:focus { box-shadow: none; }
.in-prefix, .in-suffix { display: flex; align-items: center; padding: 0 11px; color: var(--muted); font-weight: 600; background: var(--paper-2); }
.in-prefix { border-right: 1px solid var(--line); }
.in-suffix { border-left: 1px solid var(--line); }

.chk { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border: 1px solid var(--line-2);
  border-radius: var(--radius-s); cursor: pointer; font-weight: 500; color: var(--ink-2); }
.chk input { width: auto; min-height: auto; margin-top: 3px; accent-color: var(--teal); }
.file-drop input { padding: 12px; background: var(--paper-2); border-style: dashed; }
.req-star { color: var(--rose); font-weight: 700; }
.flagdot { color: var(--brand-strong); font-size: .7rem; vertical-align: middle; }
.fhelp { display: block; color: var(--muted); font-size: .78rem; margin: -1px 0 3px; }

.repeat { display: grid; gap: 8px; }
.repeat-row { display: flex; gap: 8px; align-items: center; }
.repeat-row input { flex: 1; min-width: 0; }
.rep-del { width: 34px; height: 34px; border-radius: 8px; flex: none; color: var(--muted); }
.rep-del:hover { background: var(--rose-wash); color: var(--rose); }
.add-row { justify-self: start; }

.months-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.month-cell { display: grid; gap: 3px; }
.month-cell span { font-size: .66rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.month-cell input { padding: 8px 9px; min-height: 38px; }
.exp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; }
.exp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.exp-row span { color: var(--ink-2); font-size: .9rem; }
.exp-row .in-wrap { width: 150px; flex: none; }

.deal-panel { border: 1px solid var(--brand); border-radius: var(--radius); padding: 18px;
  background: linear-gradient(180deg, var(--brand-wash), transparent); margin-bottom: 16px; }
.deal-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.deal-tile { display: grid; gap: 2px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; }
.deal-tile.hero { border-color: var(--brand-strong); background: var(--brand-wash); }
.dt-l { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.deal-tile strong { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: var(--teal-deep); }
.deal-tile.hero strong { color: var(--brand-deep); }
.dt-s { font-size: .74rem; color: var(--muted); }

.rev-list { display: grid; gap: 0; margin: 6px 0 12px; }
.rev-row { display: flex; justify-content: space-between; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.rev-row .ok { color: var(--teal-deep); font-weight: 600; }
.rev-row .todo { color: var(--faint); }
.callout-c { border-left: 3px solid var(--teal); background: var(--teal-wash); padding: 14px 16px;
  border-radius: 0 var(--radius-s) var(--radius-s) 0; color: var(--ink-2); }
.center-col { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 36px; }
.big-check { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%;
  background: var(--teal-wash); color: var(--teal); font-size: 1.9rem; }

/* centre console */
.tnum { font-variant-numeric: tabular-nums; }
.tblwrap { overflow-x: auto; }
.mis-bar { position: relative; height: 14px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); overflow: hidden; }
.mis-bar > span { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--brand-strong)); transition: width .5s var(--ease); }
.mis-scale { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .76rem; margin-top: 7px; }
.report-ready { margin: 4px 0 0; color: var(--teal-deep); font-weight: 600; font-size: .9rem; }

/* partner landing */
.prob-tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.prob-tag::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--rose); }
.tier-card strong { font-family: var(--font-display); font-size: 1.15rem; }
.tier-econ { margin: 0; padding-top: 10px; border-top: 1px solid var(--line); color: var(--brand-deep); font-weight: 600; font-size: .9rem; }
.hours-card { display: grid; gap: 8px; align-content: start; }
.hours-card .price { margin: 2px 0; }
.apply-panel { max-width: 660px; margin: 0 auto; }
.attached { margin: 8px 0 0; color: var(--teal-deep); font-weight: 600; font-size: .85rem; }
.doc-list { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.doc-list h3 { margin-bottom: 8px; }
.doc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.doc-row:last-child { border-bottom: 0; }
.doc-file { font-weight: 600; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; }
.doc-file:hover { color: var(--teal-deep); }
.doc-thumb { width: 40px; height: 28px; object-fit: cover; border-radius: 5px; border: 1px solid var(--line-2); margin-right: 8px; }

/* centre-side upload previews */
.file-field { display: grid; gap: 10px; }
.file-previews { display: flex; flex-wrap: wrap; gap: 12px; }
.file-prev { display: grid; gap: 5px; width: 116px; text-decoration: none; color: var(--ink-2); font-size: .72rem; text-align: center; }
.file-prev img, .file-prev .fp-ico { width: 116px; height: 80px; border-radius: 9px; border: 1px solid var(--line-2); background: #fff; }
.file-prev img { object-fit: cover; }
.file-prev .fp-ico { display: grid; place-items: center; background: var(--paper-2); font-size: 1.9rem; }
.file-prev span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-prev:hover img, .file-prev:hover .fp-ico { border-color: var(--teal); }

/* admin document viewer */
.modal { max-height: calc(100vh - 32px); overflow-y: auto; }
.doc-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.doc-item:last-child { border-bottom: 0; }
.doc-item-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; align-items: baseline; }
.doc-img { max-width: 100%; max-height: 260px; border-radius: 8px; border: 1px solid var(--line-2); display: block; }
.doc-frame { width: 100%; height: 340px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; }

@media (max-width: 900px) {
  .wiz { grid-template-columns: 1fr; }
  .wiz-rail { position: static; grid-auto-flow: column; overflow-x: auto; }
  .tier-grid, .deal-tiles { grid-template-columns: 1fr; }
  .months-grid { grid-template-columns: repeat(3, 1fr); }
  .exp-grid { grid-template-columns: 1fr; }
}

/* ---- Your health twin (account instrument panel) ---- */
.twin-panel {
  background: linear-gradient(155deg, #0c0f0e, #10201c 78%);
  color: #f2eee4;
  border-radius: 20px;
  padding: 26px;
  margin-bottom: 26px;
  border: 1px solid rgba(242, 238, 228, 0.1);
}
.twin-panel-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.twin-tag {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #ffc40c; margin: 0 0 8px;
}
.twin-panel h3 { margin: 0 0 8px; font-size: 20px; color: #f2eee4; }
.twin-sub { margin: 0; font-size: 13.5px; color: rgba(242, 238, 228, 0.6); max-width: 46ch; }
.twin-sub a { color: #2dd4bf; }
.twin-res { text-align: right; flex-shrink: 0; }
.twin-res-num {
  display: block; font-family: "Bricolage Grotesque", sans-serif;
  font-size: 40px; font-weight: 800; color: #ffc40c; line-height: 1;
}
.twin-res-label {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(242, 238, 228, 0.45);
}
.twin-timeline {
  display: flex; gap: 22px; margin-top: 22px; padding-top: 18px;
  border-top: 1px solid rgba(242, 238, 228, 0.1);
  overflow-x: auto; scrollbar-width: thin;
}
.twin-event { min-width: 150px; position: relative; }
.twin-dot-ui {
  display: block; width: 10px; height: 10px; border-radius: 50%;
  background: #ffc40c; box-shadow: 0 0 0 4px rgba(255, 196, 12, 0.16);
  margin-bottom: 10px;
}
.twin-event.next .twin-dot-ui { background: transparent; border: 2px dashed rgba(242, 238, 228, 0.4); box-shadow: none; }
.twin-event-name { display: block; font-size: 13.5px; font-weight: 600; color: #f2eee4; }
.twin-event-meta { display: block; font-size: 12px; color: rgba(242, 238, 228, 0.5); margin-top: 3px; }
.twin-members { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.twin-member {
  font-size: 12px; font-weight: 600; color: #2dd4bf;
  background: rgba(45, 212, 191, 0.1); border: 1px solid rgba(45, 212, 191, 0.25);
  padding: 4px 12px; border-radius: 999px;
}
.twin-empty { margin: 18px 0 0; font-size: 14px; color: rgba(242, 238, 228, 0.55); }
@media (max-width: 720px) {
  .twin-panel-head { flex-direction: column; }
  .twin-res { text-align: left; }
}

/* ---- How it works: the journey ---- */
.journey-head { padding-bottom: 8px; }
.journey-head h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.06; margin: 10px 0 14px; }
.journey-lede { font-size: 17px; max-width: 52ch; }
.journey { display: flex; flex-direction: column; gap: 18px; padding: 18px 0 8px; }
.station {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 34px; align-items: center;
  background: var(--paper-2, #faf7f0); border: 1px solid rgba(20, 25, 24, 0.08);
  border-radius: 22px; padding: 38px 40px;
}
.station.flip .station-copy { order: 2; }
.station.flip .station-art { order: 1; }
.station-no {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #b45309; margin: 0 0 10px;
}
.station h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 12px; }
.station-copy .muted { font-size: 15.5px; max-width: 48ch; }
.station-copy a { color: var(--teal-deep, #0f766e); }
.station-art { display: flex; justify-content: center; }

.art-program { display: flex; flex-direction: column; gap: 14px; width: min(320px, 100%); }
.art-package {
  position: relative; overflow: hidden; background: #fff; border: 1px solid rgba(20,25,24,0.1);
  border-radius: 16px; padding: 20px 20px 16px; box-shadow: 0 10px 24px rgba(20,25,24,0.06);
}
.art-package strong { display: block; font-size: 16px; }
.art-package .muted-line { font-size: 13px; color: #6b7280; }
.art-ribbon { position: absolute; top: 0; right: 0; width: 46px; height: 46px; background: linear-gradient(135deg, transparent 50%, #ffc40c 50%); }
.art-family { display: flex; gap: 8px; }
.member-chip {
  background: rgba(15, 118, 110, 0.09); color: #0f766e; border: 1px solid rgba(15, 118, 110, 0.25);
  font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px;
}
.art-slots { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.slot-chip {
  position: relative; font-weight: 700; font-size: 14px; padding: 14px 18px; border-radius: 14px;
  border: 1px solid rgba(20,25,24,0.1); background: #fff;
}
.slot-chip i {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  font-style: normal; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  background: #14181a; color: #ffc40c; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.slot-chip.t2 { background: #fff7e0; border-color: #f2d98c; }
.slot-chip.t3 { background: #ffc40c; border-color: #ffc40c; box-shadow: 0 10px 22px rgba(255, 196, 12, 0.35); }
.art-visit { display: flex; align-items: center; gap: 18px; }
.visit-opt {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: #fff; border: 1px solid rgba(20,25,24,0.1); border-radius: 16px;
  padding: 22px 26px; font-size: 13.5px; font-weight: 600; color: #14181a;
  box-shadow: 0 10px 24px rgba(20,25,24,0.06);
}
.visit-opt svg { width: 34px; height: 34px; color: #0f766e; }
.visit-or { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #9ca3af; font-weight: 700; }
.art-report {
  width: min(320px, 100%); background: #fff; border: 1px solid rgba(20,25,24,0.1);
  border-radius: 16px; padding: 20px; box-shadow: 0 10px 24px rgba(20,25,24,0.06);
}
.report-row { display: flex; justify-content: space-between; font-size: 15px; }
.report-row .warn { color: #b45309; }
.report-plain {
  margin: 10px 0 14px; font-size: 13.5px; line-height: 1.55; color: #374151;
  background: #fff7e0; border-left: 3px solid #ffc40c; padding: 10px 12px; border-radius: 0 10px 10px 0;
}
.report-consult {
  font-size: 12.5px; font-weight: 600; color: #0f766e;
  background: rgba(15, 118, 110, 0.09); padding: 5px 12px; border-radius: 999px;
}
.station.twin-station { background: linear-gradient(155deg, #0c0f0e, #10201c 78%); border-color: rgba(242,238,228,0.1); }
.station.twin-station h2, .station.twin-station .station-copy .muted { color: #f2eee4; }
.station.twin-station .station-copy .muted { color: rgba(242, 238, 228, 0.65); }
.station.twin-station .station-no { color: #ffc40c; }
.station.twin-station a { color: #2dd4bf; }
.art-twin { width: min(320px, 100%); }
.art-cal { display: flex; align-items: center; margin-top: 14px; }
.cal-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.cal-dot.on { background: #ffc40c; box-shadow: 0 0 0 4px rgba(255, 196, 12, 0.18); }
.cal-dot.next { background: transparent; border: 2px dashed rgba(242, 238, 228, 0.45); }
.cal-track { flex: 1; height: 2px; background: linear-gradient(90deg, #2dd4bf, #ffc40c); margin: 0 4px; }
.cal-track.dim { background: rgba(242, 238, 228, 0.2); }
.art-cal-labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(242,238,228,0.5); font-family: ui-monospace, Menlo, monospace; }
.art-spark { display: flex; align-items: flex-end; gap: 5px; height: 44px; margin-top: 18px; }
.art-spark i { flex: 1; background: rgba(45, 212, 191, 0.35); border-radius: 3px 3px 0 0; }
.art-spark i.hi { background: #ffc40c; }
.art-res {
  display: block; margin-top: 12px; font-family: ui-monospace, Menlo, monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(242,238,228,0.5);
}
.art-res strong { color: #ffc40c; }
.journey-cta .center-panel { text-align: center; padding: 38px; }
.journey-cta h2 { margin-bottom: 18px; }
.inline.center { justify-content: center; }

/* ---- Home hero: twin instrument preview ---- */
.hero-split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero-twin {
  display: block; text-decoration: none;
  background: linear-gradient(155deg, rgba(12, 15, 14, 0.92), rgba(16, 32, 28, 0.92));
  border: 1px solid rgba(242, 238, 228, 0.14); border-radius: 20px; padding: 26px;
  backdrop-filter: blur(6px);
  transition: transform .2s ease, border-color .2s ease;
}
.hero-twin:hover { transform: translateY(-3px); border-color: rgba(255, 196, 12, 0.45); }
.hero-twin .twin-tag { margin-bottom: 4px; }
.hero-twin-line { margin: 0 0 6px; font-family: "Bricolage Grotesque", sans-serif; font-size: 21px; font-weight: 700; color: #f2eee4; }
@media (max-width: 960px) {
  .hero-split { grid-template-columns: 1fr; }
  .station { grid-template-columns: 1fr; padding: 28px 24px; gap: 24px; }
  .station.flip .station-copy { order: 1; }
  .station.flip .station-art { order: 2; }
}

/* ---- Home: value band ---- */
.value-band { padding: 34px 0 8px; }
.value-band > .eyebrow { margin-bottom: 18px; }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.value-item {
  background: #fff; border: 1px solid rgba(20, 25, 24, 0.08); border-radius: 18px;
  padding: 22px; box-shadow: 0 8px 20px rgba(20, 25, 24, 0.04);
}
.value-item svg { width: 28px; height: 28px; color: #0f766e; margin-bottom: 12px; }
.value-item strong { display: block; font-size: 15.5px; margin-bottom: 6px; }
.value-item p { margin: 0; font-size: 13.5px; line-height: 1.55; color: #6b7280; }

/* ---- Home: drift panel (the preventive sell) ---- */
.drift-panel {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
  background: linear-gradient(155deg, #0c0f0e, #10201c 78%);
  border: 1px solid rgba(242, 238, 228, 0.1); border-radius: 22px; padding: 44px 46px;
}
.drift-copy h2 { color: #f2eee4; font-size: clamp(24px, 3vw, 34px); margin: 10px 0 14px; line-height: 1.15; }
.drift-copy p { color: rgba(242, 238, 228, 0.65); font-size: 15.5px; max-width: 46ch; margin: 0 0 22px; }
.drift-art svg { width: 100%; height: auto; }
.drift-label { fill: rgba(242, 238, 228, 0.5); font-size: 10px; font-family: ui-monospace, Menlo, monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.drift-year { fill: rgba(242, 238, 228, 0.45); font-size: 11px; font-family: ui-monospace, Menlo, monospace; }
.drift-tick { fill: #2dd4bf; font-size: 10.5px; font-weight: 600; }
.drift-tick.warn { fill: #ffc40c; }
@media (max-width: 960px) {
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .drift-panel { grid-template-columns: 1fr; padding: 30px 24px; }
}
@media (max-width: 620px) { .value-grid { grid-template-columns: 1fr; } }

/* ---- Contact page ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 26px; padding: 10px 0 40px; align-items: start; }
.contact-channels { display: flex; flex-direction: column; gap: 12px; }
.channel {
  display: flex; gap: 16px; align-items: flex-start; text-decoration: none;
  background: #fff; border: 1px solid rgba(20, 25, 24, 0.08); border-radius: 16px;
  padding: 18px 20px; transition: transform .15s ease, border-color .2s ease;
  color: inherit;
}
.channel:not(.still):hover { transform: translateY(-2px); border-color: rgba(15, 118, 110, 0.4); }
.channel svg { width: 26px; height: 26px; color: #0f766e; flex-shrink: 0; margin-top: 2px; }
.channel strong { display: block; font-size: 15.5px; }
.channel span { font-size: 13px; color: #6b7280; }
.contact-note {
  background: #fff7e0; border-left: 3px solid #ffc40c; border-radius: 0 14px 14px 0;
  padding: 16px 18px;
}
.contact-note strong { font-size: 14.5px; }
.contact-note p { margin: 4px 0 0; font-size: 13.5px; }
.contact-form h3 { margin-top: 0; }
.contact-promise { font-size: 12.5px; margin-top: 12px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
