/* MedSpa Connections Group — shared base styles (tokens, header, footer) */

:root {
  --msc-cream: #F5EFE5;
  --msc-ink: #2B2722;
  --msc-red: #D70812;
  --msc-red-hover: #A8060E;
  --msc-red-tint: #FCEAEA;
  --msc-red-border: #F4CFCF;
  --msc-error: #B4493C;
  --msc-gold: #D9A441;

  --msc-heading: #241F1A;
  --msc-body: #3A352D;
  --msc-secondary: #5A544A;
  --msc-tertiary: #9A9183;
  --msc-input-text: #2B2722;

  --msc-card: #ffffff;
  --msc-card-alt: #EFE7D7;
  --msc-bubble: #F6F1E7;
  --msc-border: #E7DECE;
  --msc-border-alt: #EDE4D3;
  --msc-input-border: #E2D8C6;

  --font-body: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --font-display: 'Spectral', Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: hidden; }
body {
  background: var(--msc-cream);
  color: var(--msc-ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  position: relative;
}
h1, h2, h3, .font-display { font-family: var(--font-display); }
a { color: inherit; }
img { max-width: 100%; }

/* ---------- Header ---------- */
.mschdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 239, 229, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--msc-border);
  font-family: var(--font-body);
}
.mschdr-bar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 13px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
}
.mschdr-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; }
.mschdr-logo img { height: 30px; width: auto; display: block; }
.mschdr-right { display: flex; align-items: center; gap: 20px; }
.mschdr-nav { display: flex; align-items: center; gap: 20px; }
.mschdr-nav a { text-decoration: none; color: var(--msc-body); font-size: 16.2px; font-weight: 500; white-space: nowrap; padding: 4px 2px; border-radius: 6px; }
.mschdr-nav a:hover { color: var(--msc-red); }
.mschdr-cta {
  text-decoration: none; font-family: inherit; font-size: 16.2px; font-weight: 600;
  color: #fff; background: var(--msc-red); padding: 11px 18px; border-radius: 999px;
  white-space: nowrap; box-shadow: 0 2px 10px -3px rgba(215, 8, 18, .6); display: inline-block;
}
.mschdr-cta:hover { background: var(--msc-red-hover); }
.mschdr-toggle { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.mschdr-burger { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; background: #fff; border: 1px solid var(--msc-input-border); border-radius: 10px; cursor: pointer; }
.mschdr-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--msc-border); box-shadow: 0 24px 44px -20px rgba(74, 30, 30, .4); z-index: 70; padding: 6px 8px 10px; }
.mschdr-menu a { display: block; text-decoration: none; color: var(--msc-ink); font-size: 17.9px; font-weight: 600; padding: 14px 18px; border-bottom: 1px solid #F1E9DA; border-radius: 6px; }
.mschdr-menu a:hover { background: #FAF6EE; }
@media (max-width: 1019px) {
  .mschdr-nav { display: none; }
  .mschdr-burger { display: inline-flex; }
  .mschdr-toggle:checked ~ .mschdr-menu { display: block; }
}

/* ---------- Footer ---------- */
.mscftr {
  background: #221C1B;
  color: #C9BFBC;
  padding: clamp(48px, 6vw, 72px) 22px 32px;
  font-family: var(--font-body);
  line-height: 1.5;
}
.mscftr a:hover { color: #fff !important; }
.mscftr-inner { max-width: 1180px; margin: 0 auto; }
.mscftr-brand { max-width: 340px; margin-bottom: 40px; }
.mscftr-logo { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.mscftr-logo img { height: 36px; width: auto; display: block; }
.mscftr-tagline { font-size: 15.7px; line-height: 1.6; color: #9A8E8B; margin: 0; }
.mscftr-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 36px 24px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.mscftr-col-title { font-size: 14.6px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.mscftr-col-links { display: flex; flex-direction: column; gap: 11px; }
.mscftr-col-links a, .mscftr-popular-grid a { font-size: 16.2px; color: #C9BFBC; text-decoration: none; }
.mscftr-popular { padding-top: 30px; }
.mscftr-popular-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 13px 24px; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.mscftr-popular-grid a { font-size: 15.7px; }
.mscftr-legal { padding-top: 26px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-start; }
.mscftr-legal p { font-size: 14px; line-height: 1.6; margin: 0; max-width: 620px; color: #8F8683; }
.mscftr-copyright { font-size: 14px; color: #7A716E; white-space: nowrap; }

/* ---------- FAQ accordion ---------- */
.msc-faq-item { border-bottom: 1px solid var(--msc-border); }
.msc-faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; font-family: inherit; font-size: 17.5px; font-weight: 600; color: var(--msc-heading); padding: 20px 4px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.msc-faq-icon { flex: none; font-size: 20px; color: var(--msc-red); }
.msc-faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; font-size: 16.2px; line-height: 1.6; color: var(--msc-body); }
.msc-faq-a-inner { padding: 0 4px 20px; }
.msc-faq-item.open .msc-faq-a { max-height: 600px; }

/* ---------- Roy widget ---------- */
.roy-card { max-width: 680px; margin: 0 auto; background: var(--msc-card); border-radius: 26px; box-shadow: 0 30px 70px -34px rgba(74, 30, 30, .55); border: 1px solid var(--msc-border); overflow: hidden; }
.roy-progress { display: flex; gap: 6px; padding: 18px 24px 0; }
.roy-progress-seg { flex: 1; height: 4px; border-radius: 99px; background: var(--msc-border); }
.roy-progress-seg.reached { background: var(--msc-red); }
.roy-body { padding: 24px; }
.roy-msg { display: flex; gap: 10px; margin-bottom: 14px; align-items: flex-start; }
.roy-msg.user { flex-direction: row-reverse; }
.roy-avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--msc-red-tint); color: var(--msc-red); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; }
.roy-bubble { padding: 11px 15px; font-size: 16.8px; line-height: 1.5; max-width: 84%; }
.roy-msg.roy .roy-bubble { background: var(--msc-bubble); border: 1px solid var(--msc-border-alt); border-radius: 4px 16px 16px 16px; color: var(--msc-body); }
.roy-msg.user .roy-bubble { background: var(--msc-red); color: #fff; border-radius: 16px 16px 4px 16px; }
.roy-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.roy-chip { font-family: inherit; font-size: 15.1px; font-weight: 600; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--msc-input-border); background: #fff; cursor: pointer; color: var(--msc-body); }
.roy-chip:hover { border-color: var(--msc-red); color: var(--msc-red); }
.roy-chip.small { padding: 8px 13px; font-size: 14.5px; }
.roy-cta { width: 100%; font-family: inherit; font-size: 17.9px; font-weight: 700; padding: 15px; border-radius: 12px; border: none; background: var(--msc-red); color: #fff; cursor: pointer; box-shadow: 0 6px 18px -6px rgba(215, 8, 18, .7); }
.roy-cta:hover { background: var(--msc-red-hover); }
.roy-cta.small { font-size: 15.5px; padding: 13px; box-shadow: 0 4px 16px -5px rgba(215, 8, 18, .7); }
.roy-input { width: 100%; font-family: inherit; font-size: 16px; padding: 13px 15px; border-radius: 10px; border: 1px solid var(--msc-input-border); color: var(--msc-input-text); margin-bottom: 10px; }
.roy-back { font-family: inherit; font-size: 15.1px; color: var(--msc-secondary); background: none; border: none; cursor: pointer; white-space: nowrap; }
.roy-back:hover { color: var(--msc-heading); }
.roy-err { color: var(--msc-error); font-size: 14.5px; margin: 8px 0; }
.roy-teaser-grid { display: grid; gap: 12px; margin: 14px 0; }
.roy-teaser-card { position: relative; border: 1px solid var(--msc-border-alt); border-radius: 14px; padding: 14px; background: #fff; }
.roy-teaser-blur-name { filter: blur(4.5px); user-select: none; font-weight: 600; }
.roy-teaser-blur-area { filter: blur(4px); user-select: none; color: var(--msc-tertiary); font-size: 14.5px; }
.roy-teaser-lock { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--msc-red-tint); display: flex; align-items: center; justify-content: center; }
.roy-done-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.roy-done-chip { font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--msc-card-alt); color: var(--msc-secondary); }

/* ---------- Quiz ---------- */
.quiz-card { max-width: 680px; margin: 0 auto; background: var(--msc-card); border-radius: 26px; box-shadow: 0 30px 70px -34px rgba(74, 30, 30, .55); border: 1px solid var(--msc-border); padding: 28px; }
.quiz-progress-track { height: 5px; border-radius: 99px; background: var(--msc-card-alt); overflow: hidden; margin-bottom: 20px; }
.quiz-progress-fill { height: 100%; background: var(--msc-red); border-radius: 99px; transition: width .2s ease; }
.quiz-step-label { font-size: 14.5px; color: var(--msc-tertiary); margin-bottom: 8px; }
.quiz-question { font-family: var(--font-display); font-size: 24px; color: var(--msc-heading); margin: 0 0 18px; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.quiz-option { text-align: left; font-family: inherit; font-size: 16.5px; font-weight: 600; padding: 15px 18px; border-radius: 12px; border: 1px solid var(--msc-input-border); background: #fff; cursor: pointer; color: var(--msc-body); }
.quiz-option:hover { border-color: var(--msc-red); color: var(--msc-red); }
.quiz-result-headline { font-family: var(--font-display); font-size: 26px; margin: 0 0 10px; }
.quiz-checklist-item, .quiz-gap-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--msc-border); }
.quiz-badge { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--msc-red); }
.quiz-badge.ok { border-color: #3F8F5F; color: #3F8F5F; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.quiz-badge.review { border-color: var(--msc-gold); color: var(--msc-gold); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.quiz-restart { font-family: inherit; font-size: 15.5px; font-weight: 600; color: var(--msc-secondary); background: none; border: none; cursor: pointer; margin-top: 10px; }
