/* ================================================================
   NADclinic Kiosk — 9:16 personalised protocol questionnaire
   Brand tokens sourced from nadclinic.com
   ================================================================ */

:root {
  --ink: #2c2c2c;
  --ink-2: #414042;
  --mute: #6a6869;
  --line: #e3e2e1;
  --bg: #ffffff;
  --bg-2: #f3f3f3;
  --bg-3: #fafafa;
  --near-black: #1d1d1b;
  --teal: #5abebc;
  --teal-2: #0dbfba;
  --teal-soft: rgba(90, 190, 188, 0.1);
  --hero-1: #2b8a92;
  --hero-2: #3aa4ac;
  --hero-3: #1f5f6a;
  --peach: #f8e5d0;
  --peach-2: #f0d4b3;
  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #0e1b1d;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------------- 9:16 stage & frame ---------------- */

.stage {
  height: 100dvh;
  display: grid;
  place-items: center;
  position: relative;
}

.frame {
  aspect-ratio: 9 / 16;
  height: min(100dvh, calc(100vw * 16 / 9));
  width: auto;
  max-width: 100vw;
  position: relative;
  overflow: hidden;
  background: var(--bg-3);
  container-type: size;
  box-shadow: 0 0 120px rgba(13, 191, 186, 0.12);
}

.fs-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  z-index: 50;
}
.fs-btn:hover { background: rgba(255, 255, 255, 0.18); }

/* ---------------- screens & transitions ---------------- */

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4cqh) scale(0.985);
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease),
    visibility 0s linear 0.55s;
}
.screen.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.6s var(--ease) 0.12s,
    transform 0.6s var(--ease) 0.12s,
    visibility 0s;
}
.screen.exit-up { transform: translateY(-4cqh) scale(0.985); }

/* ---------------- logo ---------------- */

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 5.4cqw;
  line-height: 1;
  user-select: none;
}
.logo .logo-plus {
  color: var(--teal);
  font-weight: 700;
  vertical-align: 0.35em;
  font-size: 0.62em;
  margin: 0 0.04em;
}
.logo .logo-clinic { font-weight: 300; letter-spacing: 0.01em; }
.logo-light { color: #fff; }
.logo-dark { color: var(--near-black); }

/* image wordmark (NADdirect) */
.brand-logo {
  height: 6cqw;
  width: auto;
  display: block;
  user-select: none;
}
.brand-logo-invert { filter: brightness(0) invert(1); }
.welcome-logo { height: 7cqw; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 2.7cqw;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.eyebrow-light { color: var(--peach); }
.eyebrow-teal { color: var(--teal-2); }

/* ---------------- buttons ---------------- */

.btn {
  font-family: var(--font-display);
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  transition: all 0.35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn-arrow { transition: transform 0.35s var(--ease); }
.btn:not(:disabled):hover .btn-arrow,
.btn:not(:disabled):active .btn-arrow { transform: translateX(0.3em); }

/* ---------------- WELCOME ---------------- */

.screen-welcome {
  background: #fff;
  color: var(--near-black);
  padding: 7cqw;
  justify-content: space-between;
  overflow: hidden;
}

/* fluid mesh gradient anchored to the bottom, white up top — kept very subtle */
.mesh {
  position: absolute;
  left: -18cqw;
  right: -18cqw;
  bottom: -30cqh;
  height: 82cqh;
  pointer-events: none;
  filter: blur(15cqw);
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 78%);
  mask-image: linear-gradient(to top, #000 0%, transparent 78%);
}
.mesh-blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
  animation: meshDrift 42s ease-in-out infinite alternate;
}
.mesh-1 { width: 66cqw; height: 66cqw; left: -6cqw;  bottom: -8cqh;  background: var(--hero-2); }
.mesh-2 { width: 60cqw; height: 60cqw; right: -8cqw; bottom: 2cqh;   background: var(--teal-2);  animation-delay: -11s; animation-duration: 52s; }
.mesh-3 { width: 50cqw; height: 50cqw; left: 24cqw;  bottom: -16cqh; background: var(--hero-3);  animation-delay: -23s; animation-duration: 47s; }
.mesh-4 { width: 44cqw; height: 44cqw; right: 16cqw; bottom: -12cqh; background: var(--footer-1, #5fc4be); animation-delay: -31s; animation-duration: 58s; }

@keyframes meshDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(2.5cqw, -2cqh) scale(1.08); }
}

/* burn-in prevention: content fades in, holds ~30s, fades out, repeats */
.welcome-header,
.welcome-body {
  animation: burnCycle 32s ease-in-out infinite;
}

@keyframes burnCycle {
  0%   { opacity: 0; transform: translateY(2cqh); }
  4%   { opacity: 1; transform: translateY(0); }
  95%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-2cqh); }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-header,
  .welcome-body { animation: none; }
}

.welcome-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3cqw;
}

.welcome-body { position: relative; }

.welcome-title {
  font-family: var(--font-display);
  font-size: 10.2cqw;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 3.4cqh 0 2.6cqh;
  color: var(--near-black);
}
.welcome-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--teal-2);
}

.welcome-copy {
  font-size: 3.6cqw;
  font-weight: 300;
  line-height: 1.65;
  color: var(--mute);
  max-width: 82cqw;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 2cqw;
  margin-top: 4cqh;
}
.chip {
  font-family: var(--font-display);
  font-size: 2.9cqw;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 1.7cqw 3.6cqw;
  border-radius: 100cqw;
  border: 1px solid var(--line);
  background: var(--bg-3);
  color: var(--ink-2);
  animation: chipFloat 5s ease-in-out infinite alternate;
}
.chip:nth-child(2n) { animation-delay: -1.6s; }
.chip:nth-child(3n) { animation-delay: -3.1s; }

@keyframes chipFloat {
  from { transform: translateY(0); }
  to   { transform: translateY(-0.8cqw); }
}

.welcome-footer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.6cqh;
}

.btn-begin {
  width: 100%;
  padding: 2.6cqh 0;
  font-size: 4.4cqw;
  letter-spacing: 0.06em;
  border-radius: 100cqw;
  color: #fff;
  background: linear-gradient(120deg, var(--hero-2) 0%, var(--teal-2) 55%, var(--hero-1) 100%);
  box-shadow: 0 14px 40px rgba(13, 191, 186, 0.35);
  animation: beginPulse 3.2s ease-in-out infinite;
}
.btn-begin:hover { filter: brightness(1.06); }

@keyframes beginPulse {
  0%, 100% { box-shadow: 0 14px 40px rgba(13, 191, 186, 0.32), 0 0 0 0 rgba(13, 191, 186, 0.4); }
  50%      { box-shadow: 0 14px 40px rgba(13, 191, 186, 0.32), 0 0 0 3.4cqw rgba(13, 191, 186, 0); }
}

/* welcome entrance stagger */
.reveal {
  opacity: 0;
  transform: translateY(3cqh);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.screen.active .reveal { opacity: 1; transform: translateY(0); }
.screen.active .r1 { transition-delay: 0.25s; }
.screen.active .r2 { transition-delay: 0.38s; }
.screen.active .r3 { transition-delay: 0.51s; }
.screen.active .r4 { transition-delay: 0.64s; }
.screen.active .r5 { transition-delay: 0.77s; }

/* ---------------- QUESTION ---------------- */

.screen-question { background: var(--bg-3); }

.q-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 5cqw 7cqw 3.4cqw;
}
.q-step {
  font-family: var(--font-display);
  font-size: 2.6cqw;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}

.progress {
  height: 0.9cqw;
  background: var(--line);
  margin: 0 7cqw;
  border-radius: 100cqw;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--teal-2));
  transition: width 0.7s var(--ease);
}

.q-content {
  flex: 1;
  padding: 3.6cqh 7cqw 0;
  overflow-y: auto;
  scrollbar-width: none;
}
.q-content::-webkit-scrollbar { display: none; }

.q-content { transition: opacity 0.28s var(--ease), transform 0.28s var(--ease); }
.q-content.swapping { opacity: 0; transform: translateY(1.6cqh); }

.q-content .eyebrow { margin-bottom: 1.6cqh; }

.q-title {
  font-family: var(--font-display);
  font-size: 6.6cqw;
  font-weight: 700;
  line-height: 1.22;
  color: var(--near-black);
  letter-spacing: -0.01em;
}
.q-help {
  font-size: 3.2cqw;
  font-weight: 300;
  line-height: 1.6;
  color: var(--mute);
  margin-top: 1.4cqh;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 1.6cqh;
  margin-top: 3cqh;
  padding-bottom: 2cqh;
}

.option {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 3.4cqw;
  background: var(--bg);
  padding: 2.2cqh 5cqw;
  cursor: pointer;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 4cqw;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease),
              transform 0.25s var(--ease), box-shadow 0.3s var(--ease);
  opacity: 0;
  transform: translateY(2.4cqh);
  animation: optionIn 0.6s var(--ease) forwards;
  animation-delay: var(--d, 0s);
  -webkit-tap-highlight-color: transparent;
}
@keyframes optionIn {
  to { opacity: 1; transform: translateY(0); }
}

.option:hover { border-color: var(--teal); transform: translateY(-0.3cqh); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06); }
.option:active { transform: scale(0.985); }

.option .option-mark {
  flex: none;
  width: 5.4cqw;
  height: 5.4cqw;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  color: transparent;
  font-size: 3cqw;
  font-weight: 700;
  transition: all 0.3s var(--ease);
}
.option .option-text { flex: 1; }
.option .option-title {
  display: block;
  font-family: var(--font-display);
  font-size: 3.7cqw;
  font-weight: 600;
  line-height: 1.35;
  color: var(--near-black);
}
.option .option-sub {
  display: block;
  font-size: 2.9cqw;
  font-weight: 300;
  line-height: 1.5;
  color: var(--mute);
  margin-top: 0.5cqh;
}

.option.selected {
  border-color: var(--teal-2);
  background: var(--teal-soft);
  box-shadow: 0 12px 30px rgba(13, 191, 186, 0.12);
}
.option.selected .option-mark {
  background: var(--teal-2);
  border-color: var(--teal-2);
  color: #fff;
}
.option.dimmed { opacity: 0.45; pointer-events: none; }

.q-footer {
  display: flex;
  gap: 3cqw;
  padding: 2.2cqh 7cqw 4cqh;
  background: linear-gradient(to top, var(--bg-3) 70%, transparent);
}

.btn-ghost {
  flex: none;
  padding: 2cqh 6cqw;
  font-size: 3.4cqw;
  border-radius: 100cqw;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--mute);
}
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }

.btn-next {
  flex: 1;
  padding: 2cqh 0;
  font-size: 3.8cqw;
  letter-spacing: 0.04em;
  border-radius: 100cqw;
  background: var(--near-black);
  color: #fff;
}
.btn-next:not(:disabled):hover { background: var(--teal-2); }
.btn-next:disabled { opacity: 0.25; cursor: not-allowed; }

/* ---------------- RESULTS ---------------- */

.screen-results { background: var(--bg-2); }

.results-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  scrollbar-width: none;
}
.results-scroll::-webkit-scrollbar { display: none; }

.results-hero {
  background:
    radial-gradient(110cqw 80cqh at 90% -20%, var(--hero-2) 0%, transparent 60%),
    linear-gradient(160deg, var(--hero-1) 0%, var(--hero-3) 100%);
  color: #fff;
  padding: 5cqw 7cqw 2.4cqh;
  border-radius: 0 0 6cqw 6cqw;
}
.results-hero .eyebrow { margin-top: 0.4cqh; }
.summary-hero { padding-bottom: 2cqh; }
.results-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}

.currency {
  display: flex;
  gap: 0.6cqw;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 100cqw;
  padding: 0.8cqw;
}
.currency-btn {
  width: 8.4cqw;
  height: 8.4cqw;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-display);
  font-size: 3.2cqw;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.currency-btn.active { background: var(--peach); color: var(--near-black); }

.results-title {
  font-family: var(--font-display);
  font-size: 8cqw;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 1.6cqh 0 2cqh;
}
.results-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--peach);
}
.results-products {
  display: flex;
  flex-direction: column;
  gap: 2.2cqh;
  padding: 2cqh 5cqw 0;
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.product-card {
  background: var(--bg);
  border-radius: 4.4cqw;
  padding: 3cqh 6cqw;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: translateY(3cqh);
  animation: optionIn 0.7s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
.product-card.core {
  border: 1.5px solid var(--teal);
  box-shadow: 0 18px 50px rgba(13, 191, 186, 0.16);
}

.product-media {
  margin: -3cqh -6cqw 2.4cqh;
  height: 26cqh;
  overflow: hidden;
  border-radius: calc(4.4cqw - 1.5px) calc(4.4cqw - 1.5px) 0 0;
  background: var(--teal-soft);
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.product-included {
  font-family: var(--font-display);
  font-size: 2.8cqw;
  font-weight: 600;
  color: var(--hero-1);
  background: var(--teal-soft);
  padding: 1.6cqw 3.4cqw;
  border-radius: 100cqw;
  white-space: nowrap;
}

.product-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 2.4cqw;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 1.2cqw 3cqw;
  border-radius: 100cqw;
  background: var(--teal-soft);
  color: var(--hero-1);
  margin-bottom: 1.6cqh;
}
.product-card.core .product-badge { background: var(--teal-2); color: #fff; }

.product-name {
  font-family: var(--font-display);
  font-size: 5.6cqw;
  font-weight: 700;
  color: var(--near-black);
  line-height: 1.2;
}
.product-spec {
  font-size: 2.9cqw;
  font-weight: 500;
  color: var(--teal-2);
  letter-spacing: 0.04em;
  margin-top: 0.7cqh;
}
.product-desc {
  font-size: 3.1cqw;
  font-weight: 300;
  line-height: 1.6;
  color: var(--mute);
  margin-top: 1.4cqh;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4cqw;
  margin-top: 2.2cqh;
  padding-top: 2cqh;
  border-top: 1px solid var(--line);
}
.product-price-wrap { line-height: 1.15; }
.product-price {
  font-family: var(--font-display);
  font-size: 6cqw;
  font-weight: 700;
  color: var(--near-black);
}
.product-b2b {
  display: block;
  font-size: 2.7cqw;
  font-weight: 500;
  color: var(--mute);
  margin-top: 0.5cqh;
}
/* ---------------- results CTA ---------------- */

.results-cta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6cqh;
  padding: 6cqh 5cqw 3cqh;
  background: linear-gradient(to top, var(--bg-2) 62%, transparent);
}
.screen-results .results-end-spacer { height: 18cqh; }
.btn-cta {
  width: 100%;
  padding: 2.4cqh 0;
  font-size: 4cqw;
  letter-spacing: 0.05em;
  border-radius: 100cqw;
  background: var(--near-black);
  color: #fff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}
.btn-cta:hover { background: var(--teal-2); }

.link-restart {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 3cqw;
  color: var(--mute);
  transition: color 0.3s;
}
.link-restart:hover { color: var(--ink); }

/* ---------------- upsell ---------------- */

.screen-upsell { background: var(--bg-3); }

.upsell-scroll {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
}
.upsell-scroll::-webkit-scrollbar { display: none; }

.upsell-banner {
  position: relative;
  height: 26cqh;
  overflow: hidden;
}
.upsell-banner > img:not(.upsell-logo) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.upsell-banner-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(29, 29, 27, 0.18) 0%, transparent 30%, transparent 55%, var(--bg-3) 100%);
}
.upsell-logo {
  position: absolute;
  top: 5cqw;
  left: 7cqw;
  height: 5.4cqw;
  width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.upsell-content { padding: 0 7cqw 2cqh; }
.upsell-content .eyebrow { margin-bottom: 1.4cqh; }

.upsell-list {
  display: flex;
  flex-direction: column;
  gap: 1.8cqh;
  margin-top: 2.6cqh;
}

.product-card.addon {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1.5px solid var(--line);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.addon-head {
  display: flex;
  align-items: center;
  gap: 3.4cqw;
  padding: 2.6cqh 5cqw 0;
}
.addon-media {
  flex: none;
  width: 18cqw;
  height: 18cqw;
  border-radius: 2.8cqw;
  overflow: hidden;
  background: var(--bg-3);
}
.addon-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 1cqw;
}
.addon-head-copy {
  flex: 1;
  min-width: 0;
}
.addon-head-copy .product-name {
  font-size: 4cqw;
  line-height: 1.25;
}
.addon-head-copy .product-spec {
  font-size: 2.7cqw;
  margin-top: 0.5cqh;
  line-height: 1.4;
}
.addon-badge {
  flex: none;
  align-self: flex-start;
  margin-top: 0.4cqh;
  font-size: 2.1cqw;
  padding: 1.1cqw 2.6cqw;
  letter-spacing: 0.14em;
}

.addon-subtitle {
  font-size: 3cqw;
  font-weight: 300;
  line-height: 1.6;
  color: var(--mute);
  padding: 1.8cqh 5cqw 0;
  margin: 0;
}

.addon-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4cqw;
  margin-top: 2.2cqh;
  padding: 2.2cqh 5cqw 2.6cqh;
  border-top: 1px solid var(--line);
  background: var(--bg-3);
}
.addon-foot .product-price { font-size: 5.2cqw; }
.addon-foot .product-b2b { font-size: 2.6cqw; }
.addon-foot .btn-add {
  flex: none;
  min-width: 22cqw;
  padding: 1.7cqh 5cqw;
}

.product-card.addon.added {
  border-color: var(--teal-2);
  box-shadow: 0 18px 50px rgba(13, 191, 186, 0.18);
}
.product-card.addon.added .addon-foot {
  background: var(--teal-soft);
  border-top-color: rgba(13, 191, 186, 0.25);
}
.product-card.addon.added .addon-badge {
  background: var(--teal-2);
  color: #fff;
}

.btn-add {
  padding: 1.6cqh 6cqw;
  font-size: 3.3cqw;
  border-radius: 100cqw;
  border: 1.5px solid var(--teal-2);
  background: transparent;
  color: var(--teal-2);
}
.btn-add .added-label { display: none; }
.product-card.addon.added .btn-add { background: var(--teal-2); color: #fff; }
.product-card.addon.added .btn-add .add-label { display: none; }
.product-card.addon.added .btn-add .added-label { display: inline; }

/* ---------------- summary ---------------- */

.screen-summary { background: var(--bg-2); }

.summary-body {
  display: flex;
  flex-direction: column;
  gap: 2.2cqh;
  padding: 2cqh 5cqw 0;
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.summary-card {
  background: var(--bg);
  border-radius: 4.4cqw;
  padding: 3cqh 6cqw;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}
.summary-heading {
  padding-bottom: 2cqh;
  margin-bottom: 0.6cqh;
}
.summary-title {
  font-family: var(--font-display);
  font-size: 5.4cqw;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--near-black);
}
.summary-goal {
  font-size: 3.3cqw;
  font-weight: 300;
  color: var(--mute);
  margin-top: 0.9cqh;
}
.summary-goal em {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: normal;
  color: var(--hero-1);
}

.order-line {
  display: grid;
  grid-template-columns: 14cqw 1fr auto;
  align-items: center;
  gap: 3.4cqw;
  padding: 1.6cqh 0;
  border-top: 1px solid var(--line);
}
.order-thumb {
  width: 14cqw;
  height: 14cqw;
  border-radius: 2.4cqw;
  object-fit: contain;
  background: var(--bg-3);
  padding: 0.8cqw;
}
.order-line-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 3.5cqw;
  font-weight: 600;
  color: var(--near-black);
}
.order-line-text span {
  font-size: 2.7cqw;
  font-weight: 400;
  color: var(--mute);
}
.order-line-price {
  font-family: var(--font-display);
  font-size: 3.8cqw;
  font-weight: 600;
  color: var(--near-black);
}
.order-line.total {
  grid-template-columns: 1fr auto;
  border-top: 2px solid var(--near-black);
  padding-bottom: 0;
}
.order-line.total .total-label { grid-column: 1; }
.order-line.total .order-line-price {
  font-size: 5cqw;
  font-weight: 700;
  color: var(--teal-2);
}

.summary-qr {
  display: flex;
  align-items: center;
  gap: 5cqw;
  padding: 3.2cqh 6cqw;
  border-radius: 4.4cqw;
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(90cqw 70cqh at 90% -20%, var(--hero-2) 0%, transparent 60%),
    linear-gradient(150deg, var(--hero-1) 0%, var(--hero-3) 100%);
  box-shadow: 0 18px 44px rgba(13, 191, 186, 0.28);
}
.summary-qr-code {
  flex: none;
  width: 30cqw;
  height: 30cqw;
  border-radius: 3cqw;
  background: #fff;
  padding: 2cqw;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}
.summary-qr-code img {
  width: 100%;
  height: 100%;
  display: block;
}
.summary-qr-text {
  font-size: 3cqw;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}
.summary-qr-text strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 4cqw;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 1cqh;
}

/* ---------------- clinician panel ---------------- */

.summary-body .clinician-panel { margin: 0; }
.summary-body .btn-restart { margin: 0.6cqh auto 0; }

.clinician-panel {
  margin: 3cqh 5cqw 0;
  background: var(--near-black);
  border-radius: 4.4cqw;
  padding: 3.4cqh 6cqw;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.clinician-panel::after {
  content: '';
  position: absolute;
  width: 46cqw;
  height: 46cqw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 191, 186, 0.28), transparent 70%);
  top: -18cqw;
  right: -14cqw;
  pointer-events: none;
}
.clinician-title {
  font-family: var(--font-display);
  font-size: 4.6cqw;
  font-weight: 700;
}
.clinician-copy {
  font-size: 3cqw;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 1cqh;
}
.clinician-form {
  display: flex;
  flex-direction: column;
  gap: 1.4cqh;
  margin-top: 2.2cqh;
}
.clinician-input {
  padding: 2cqh 5cqw;
  border-radius: 100cqw;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--font-body);
  font-size: 3.4cqw;
  outline: none;
  transition: border-color 0.3s;
}
.clinician-input::placeholder { color: rgba(255, 255, 255, 0.4); }
.clinician-input:focus { border-color: var(--teal); }
.clinician-input.error { border-color: #e07a5f; animation: shake 0.4s; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-1.4cqw); }
  75% { transform: translateX(1.4cqw); }
}

.btn-send {
  padding: 2cqh 0;
  font-size: 3.6cqw;
  border-radius: 100cqw;
  background: var(--teal-2);
  color: #fff;
  letter-spacing: 0.03em;
}
.btn-send:hover { background: var(--teal); }

.clinician-success {
  display: none;
  align-items: center;
  gap: 3cqw;
  margin-top: 2.2cqh;
  font-size: 3.2cqw;
  font-weight: 500;
  color: var(--teal);
}
.clinician-panel.sent .clinician-form { display: none; }
.clinician-panel.sent .clinician-success { display: flex; animation: optionIn 0.5s var(--ease); }
.success-check {
  flex: none;
  width: 7cqw;
  height: 7cqw;
  border-radius: 50%;
  background: var(--teal-2);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 3.6cqw;
}

.btn-restart {
  display: flex;
  margin: 3cqh auto 0;
  padding: 1.6cqh 8cqw;
  font-size: 3.2cqw;
  border-radius: 100cqw;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--mute);
}
.btn-restart:hover { border-color: var(--ink-2); color: var(--ink); }

.results-end-spacer { height: 4cqh; }

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

.faq-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: rgba(14, 27, 29, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}
.faq-overlay.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s var(--ease);
}
.faq-sheet {
  width: 100%;
  max-height: 78cqh;
  background: var(--bg);
  border-radius: 6cqw 6cqw 0 0;
  padding: 3cqh 7cqw 4cqh;
  overflow-y: auto;
  scrollbar-width: none;
  transform: translateY(100%);
  transition: transform 0.5s var(--ease);
}
.faq-sheet::-webkit-scrollbar { display: none; }
.faq-overlay.open .faq-sheet { transform: translateY(0); }

.faq-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4cqw;
  margin-bottom: 2cqh;
}
.faq-title {
  font-family: var(--font-display);
  font-size: 4.6cqw;
  font-weight: 700;
  color: var(--near-black);
}
.faq-close {
  flex: none;
  width: 9cqw;
  height: 9cqw;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-3);
  color: var(--mute);
  font-size: 3.4cqw;
  cursor: pointer;
  transition: all 0.3s;
}
.faq-close:hover { color: var(--ink); border-color: var(--ink-2); }

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.8cqh 0;
}
.faq-item summary {
  font-family: var(--font-display);
  font-size: 3.5cqw;
  font-weight: 600;
  color: var(--near-black);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 8cqw;
  line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--teal-2);
  font-size: 5cqw;
  font-weight: 400;
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p {
  font-size: 3cqw;
  font-weight: 300;
  line-height: 1.65;
  color: var(--mute);
  padding-top: 1.2cqh;
}
