:root {
  --rose: #8b5a62;
  --rose-dark: #5d383f;
  --blush: #f8ece9;
  --cream: #fffaf5;
  --gold: #c79a55;
  --ink: #2b2022;
  --muted: #796b6e;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(75, 39, 46, .16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; font: inherit; max-width: 100%; }
.hero {
  min-height: 92vh; padding: 20px;
  background: radial-gradient(circle at 80% 12%, rgba(255,255,255,.75), transparent 28%), linear-gradient(150deg, rgba(139,90,98,.98), rgba(93,56,63,.94)), url('https://images.unsplash.com/photo-1516975080664-ed2fc6a32937?auto=format&fit=crop&w=1200&q=80');
  background-size: cover; background-position: center; color: var(--white); display: flex; flex-direction: column;
}
.topbar, .hero-content, .section, footer { width: min(1080px, 100%); margin: 0 auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; }
.brand-mark { width: 48px; height: 48px; border-radius: 18px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.42); background: rgba(255,255,255,.14); font-weight: 800; letter-spacing: .08em; }
.version-pill { margin-left: 10px; margin-right: auto; border: 1px solid rgba(255,255,255,.32); background: rgba(255,255,255,.16); color: var(--white); border-radius: 999px; padding: 8px 11px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.hero-content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 48px 0 70px; }
.eyebrow { margin: 0 0 10px; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--gold); font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.4rem, 11vw, 5.2rem); line-height: .94; letter-spacing: -.06em; max-width: 780px; margin-bottom: 20px; }
h2 { font-size: clamp(1.7rem, 7vw, 3rem); line-height: 1.02; letter-spacing: -.04em; margin-bottom: 14px; }
h3 { font-size: 1.22rem; margin-bottom: 10px; }
.hero-text { max-width: 580px; color: rgba(255,255,255,.84); font-size: 1.1rem; line-height: 1.55; }
.hero-actions, .quick-card, .club-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.primary-button, .secondary-button, .ghost-button, .service-card button, .inline-form button, .agenda-options button, .secondary-light {
  border: 0; min-height: 48px; border-radius: 999px; padding: 14px 20px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; cursor: pointer; text-align: center; white-space: normal; line-height: 1.18;
}
.primary-button { background: var(--gold); color: #2b1d0a; box-shadow: 0 14px 34px rgba(199,154,85,.26); }
.secondary-button, .ghost-button { background: rgba(255,255,255,.14); color: var(--white); border: 1px solid rgba(255,255,255,.28); }
.secondary-light { background: var(--blush); color: var(--rose-dark); }
.full { width: 100%; }
.quick-card { width: min(980px, calc(100% - 32px)); margin: -40px auto 20px; padding: 14px; border-radius: 28px; background: var(--white); box-shadow: var(--shadow); position: relative; z-index: 2; }
.quick-card a { flex: 1 1 120px; min-width: 0; text-align: center; padding: 14px; border-radius: 18px; background: var(--blush); color: var(--rose-dark); font-weight: 800; overflow-wrap: anywhere; }
.section { padding: 54px 20px; }
.section-heading { max-width: 680px; margin-bottom: 24px; }
.centered { margin-inline: auto; text-align: center; }
.tinted { width: 100%; max-width: none; background: var(--blush); }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card, .coupon-card, .cta-box, .welcome-card, .club-card, .referral-card, .journey-card, .restricted-card { background: var(--white); border-radius: 30px; padding: 24px; box-shadow: var(--shadow); min-width: 0; overflow: hidden; }
.service-card p, .coupon-card p, .cta-box p, .club-card p, .referral-card p, .welcome-card p, .section-heading p, .journey-card p { color: var(--muted); line-height: 1.55; }
.tag { display: inline-flex; color: var(--rose-dark); background: var(--blush); border-radius: 999px; padding: 7px 11px; font-size: .78rem; font-weight: 800; margin-bottom: 16px; }
.service-card button { background: var(--rose); color: var(--white); width: 100%; margin-top: 8px; }
.welcome-card { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: end; }
.inline-form label { display: block; font-weight: 800; margin-bottom: 8px; color: var(--rose-dark); }
.inline-form div { display: flex; gap: 8px; }
.inline-form .stacked-fields { display: grid; grid-template-columns: 1fr; gap: 8px; }
.inline-form input { width: 100%; border: 1px solid #ead8d4; border-radius: 999px; padding: 0 16px; min-height: 48px; background: var(--cream); }
.inline-form button { background: var(--rose); color: var(--white); }
.active-patient-card { margin-top: 14px; padding: 14px; border-radius: 18px; background: var(--blush); color: var(--rose-dark); line-height: 1.45; }
.active-patient-card span { color: var(--muted); }
.coupon-card, .cta-box, .club-card, .referral-card, .journey-card, .restricted-card { width: min(760px, calc(100% - 32px)); margin: 0 auto; }
.coupon-code { margin: 22px 0 14px; padding: 18px; border: 2px dashed var(--gold); border-radius: 20px; text-align: center; font-size: 1.55rem; font-weight: 900; letter-spacing: .08em; color: var(--rose-dark); background: var(--cream); }
small { display: block; min-height: 22px; text-align: center; color: var(--rose-dark); margin-top: 10px; }
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 22px 0; }
.stamp { aspect-ratio: 1; border-radius: 20px; display: grid; place-items: center; background: var(--blush); color: var(--rose); border: 2px dashed rgba(139,90,98,.26); font-weight: 900; }
.stamp.active { background: var(--gold); color: #2b1d0a; border-style: solid; }
.benefit { font-weight: 800; color: var(--rose-dark) !important; }
.checklist { width: min(760px, calc(100% - 40px)); margin: 0 auto; display: grid; gap: 12px; }
.checklist label { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-radius: 20px; background: var(--white); box-shadow: 0 12px 34px rgba(75,39,46,.08); font-weight: 700; color: var(--rose-dark); }
.checklist input { width: 22px; height: 22px; accent-color: var(--rose); flex: 0 0 auto; }
.agenda-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px 0; }
.agenda-options button { background: var(--cream); color: var(--rose-dark); border: 1px solid #ead8d4; }
.agenda-options button.active { background: var(--rose); color: var(--white); }
footer { padding: 34px 20px 46px; color: var(--muted); font-size: .9rem; }
footer p { margin-bottom: 6px; }
@media (max-width: 780px) {
  .cards-grid, .welcome-card, .agenda-options { grid-template-columns: 1fr; }
  .hero { min-height: 88vh; }
  .secondary-button, .primary-button { width: 100%; }
  .inline-form div { flex-direction: column; }
  .stamps { grid-template-columns: repeat(5, minmax(42px, 1fr)); }
  .quick-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: calc(100% - 24px); padding: 12px; border-radius: 22px; }
  .quick-card a { flex: none; padding: 12px 8px; font-size: .9rem; }
  .version-pill { order: 3; width: 100%; margin: 10px 0 0; text-align: center; }
  .coupon-card, .cta-box, .club-card, .referral-card, .journey-card, .restricted-card, .planner-card, .checklist, .protocol-grid { width: calc(100% - 24px); }
  .section { padding-left: 12px; padding-right: 12px; }
}

.planner-card { width: min(760px, calc(100% - 40px)); margin: 0 auto; background: var(--white); border-radius: 30px; padding: 24px; box-shadow: var(--shadow); }
.planner-card p, .reminder-result { color: var(--muted); line-height: 1.55; }
.planner-form { display: grid; gap: 10px; margin: 18px 0; }
.planner-form label { font-weight: 800; color: var(--rose-dark); }
.planner-form input, .planner-form select { min-height: 48px; border: 1px solid #ead8d4; border-radius: 16px; padding: 0 14px; background: var(--cream); color: var(--ink); }
.reminder-result { background: var(--blush); border-radius: 18px; padding: 16px; margin: 14px 0; }
.planner-actions { display: grid; gap: 10px; }
.protocol-grid { width: min(980px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.protocol-card { background: var(--white); border-radius: 28px; padding: 22px; box-shadow: var(--shadow); }
.protocol-card ul { padding-left: 18px; margin-bottom: 0; color: var(--muted); line-height: 1.55; }
@media (max-width: 780px) { .protocol-grid { grid-template-columns: 1fr; } }

.journey-form { display: grid; gap: 10px; margin: 18px 0 20px; }
.journey-form label { font-weight: 800; color: var(--rose-dark); }
.journey-form select, .journey-form textarea { width: 100%; border: 1px solid #ead8d4; border-radius: 16px; padding: 14px; background: var(--cream); color: var(--ink); }
.journey-form textarea { resize: vertical; line-height: 1.45; }
.journey-summary { background: var(--blush); border-radius: 18px; padding: 16px; color: var(--rose-dark); line-height: 1.5; margin-bottom: 16px; }
.timeline { display: grid; gap: 12px; }
.timeline-step { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: start; padding: 16px; border: 1px solid #f0ded9; border-radius: 22px; background: linear-gradient(180deg, #fff, var(--cream)); }
.timeline-step span { width: 42px; height: 42px; border-radius: 16px; display: grid; place-items: center; background: var(--rose); color: var(--white); font-weight: 900; }
.timeline-step h3 { margin-bottom: 4px; }
.timeline-step p { margin-bottom: 0; }

.restricted-form { display: grid; gap: 10px; margin: 18px 0 20px; }
.restricted-form label { font-weight: 800; color: var(--rose-dark); }
.restricted-form div { display: flex; gap: 8px; }
.restricted-form input { width: 100%; min-height: 48px; border: 1px solid #ead8d4; border-radius: 999px; padding: 0 16px; background: var(--cream); }
.restricted-form button { border: 0; min-height: 48px; border-radius: 999px; padding: 14px 20px; background: var(--rose); color: var(--white); font-weight: 800; cursor: pointer; }
.restricted-panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.restricted-panel article { border: 1px solid #f0ded9; border-radius: 22px; padding: 18px; background: linear-gradient(180deg, #fff, var(--cream)); min-width: 0; }
.restricted-panel h3 { overflow-wrap: anywhere; }
.admin-controls { margin-top: 16px; padding-top: 16px; border-top: 1px solid #f0ded9; display: grid; gap: 10px; }
.admin-controls > p { margin-bottom: 6px; }
.admin-controls label { font-weight: 800; color: var(--rose-dark); }
.admin-controls select { width: 100%; min-height: 48px; border: 1px solid #ead8d4; border-radius: 16px; padding: 0 14px; background: var(--cream); color: var(--ink); }
.admin-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.admin-actions button { border: 0; min-height: 48px; border-radius: 18px; padding: 12px 14px; background: var(--rose); color: var(--white); font-weight: 800; cursor: pointer; line-height: 1.18; }
@media (max-width: 780px) {
  .restricted-form div, .restricted-panel { grid-template-columns: 1fr; display: grid; }
  .restricted-form button { width: 100%; }
  .admin-actions { grid-template-columns: 1fr; }
}
