/* ClearPulse — a boutique med spa after dark. Mobile-first. */

:root {
  --bg: #121214;
  --surface: #1B1B1F;
  --surface-raised: #232328;
  --line: rgba(244, 239, 230, 0.08);
  --line-strong: rgba(244, 239, 230, 0.16);
  --text: #F4EFE6;
  --muted: #A9A39A;
  --gold: #C9A96E;
  --gold-bright: #D9BC85;
  --on-gold: #121214;
  /* pastel iridescence, used sparingly for glass highlights */
  --iri: linear-gradient(120deg, #C9D4FF, #F2D5EA 30%, #F6EBD6 50%, #BFE2EE 72%, #D8CBFA);

  --radius: 16px;
  --gutter: 20px;
  --max: 1120px;
  --section-y: 72px;
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(60rem 40rem at 85% -10%, rgba(201, 169, 110, 0.07), transparent 60%),
    linear-gradient(180deg, #121214 0%, #0B0B0C 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 27px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: 40px; line-height: 44px; letter-spacing: -0.03em; }
h2 { font-size: 28px; line-height: 34px; }
h3 { font-size: 19px; line-height: 26px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 62ch; }

a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-bright); }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.gold { color: var(--gold); }
.muted { color: var(--muted); }
.small { font-size: 15px; line-height: 23px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--on-gold);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--on-gold); }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.demo-inner { max-width: 720px; }

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn-primary { background: var(--gold); color: var(--on-gold); border: 1px solid var(--gold); }
.btn-primary:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--on-gold); }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn-secondary:hover { color: var(--text); border-color: var(--gold); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}
.cta-row .btn { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 18, 20, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}
.wordmark {
  color: var(--text);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
a.wordmark { display: inline-flex; align-items: center; min-height: 44px; }
a.wordmark:hover { color: var(--text); }
.header-nav { display: none; }

/* ---------- Sections ---------- */

.section { padding: var(--section-y) 0; border-top: 1px solid var(--line); }
.section-head { margin-bottom: 36px; }
.section-head h2 { max-width: 22ch; }
.section-head h2 + p { margin-top: 16px; }
.demo-inner h2, .cta-inner h2 { margin-bottom: 16px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 28px 0 var(--section-y);
  isolation: isolate;
  overflow: hidden;
}
.hero::before {
  /* the empty reception, after closing — dimmed far down so it reads as mood, not content */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(18,18,20,.88) 0%, rgba(18,18,20,.9) 55%, #121214 100%),
    url("assets/clinic.webp") center 30% / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(40rem 26rem at 78% 40%, rgba(201,169,110,.10), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; gap: 48px; }
.hero h1 { margin-bottom: 16px; }
.hero h1 .gold { display: block; }
.lede { color: var(--text); opacity: 1; margin-bottom: 0; }
.hero .cta-row { margin-top: 24px; }
.offer-line { margin: 16px 0 0; color: var(--muted); font-size: 15px; line-height: 22px; }

/* Phone mockup */
.hero-visual {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.halo {
  position: absolute;
  z-index: 0;
  width: 150%;
  max-width: 560px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  opacity: .62;
  filter: drop-shadow(0 30px 70px rgba(191, 196, 255, .22));
  pointer-events: none;
}
.example-label {
  position: relative;
  z-index: 1;
  margin: 0 0 32px;
  font-size: 13px;
  line-height: 18px;
  color: var(--muted);
}
.phone {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 320px;
  padding: 14px 12px 20px;
  border-radius: 40px;
  background: #0E0E10;
  border: 1px solid var(--line-strong);
  box-shadow:
    0 0 0 6px #19191C,
    0 0 0 7px rgba(244,239,230,.10),
    0 40px 80px -20px rgba(0,0,0,.7);
}
.phone::before {
  /* a hairline of iridescent glass along the top edge */
  content: "";
  position: absolute;
  left: 22%; right: 22%; top: -1px;
  height: 1px;
  background: var(--iri);
  opacity: .7;
}
.phone-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 12px;
  border-bottom: 1px solid var(--line);
}
.phone-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
}
.phone-title { font-size: 14px; font-weight: 600; line-height: 20px; }
.thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 4px 0;
}
.thread p { margin: 0; }
.thread-time {
  align-self: center;
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}
.bubble {
  max-width: 84%;
  padding: 10px 14px;
  font-size: 15px;
  line-height: 21px;
  border-radius: 20px;
}
.bubble-in {
  align-self: flex-start;
  background: var(--surface-raised);
  border-bottom-left-radius: 6px;
}
.bubble-out-wrap {
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  max-width: 86%;
}
.bubble-out {
  max-width: 100%;
  background: #2A261F;
  border: 1px solid rgba(201,169,110,.35);
  border-bottom-right-radius: 6px;
}
.auto-tag {
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.link-chip {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
}
.thread-status, .booked-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}
.thread-status { align-self: flex-end; }
.booked-chip {
  align-self: center;
  margin-top: 6px !important;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-weight: 500;
}
.icon-check { width: 16px; height: 16px; flex: none; color: var(--gold); }
.phone-caption {
  position: relative;
  z-index: 1;
  margin-top: 36px;
  font-size: 15px;
  line-height: 22px;
  color: var(--muted);
  text-align: center;
}

/* ---------- Demo ---------- */

.section-demo .cta-row { margin-top: 20px; }

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.step { padding: 28px 24px; }
.step h3 { margin-bottom: 10px; }
.step p { margin: 0; color: var(--muted); }
.step-num {
  display: block;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(201,169,110,.35);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--gold);
}

/* ---------- Clinical gate ---------- */

.gate-grid { display: grid; gap: 48px; }
.gate-copy h2 { margin-bottom: 18px; }
.list-title {
  margin: 32px 0 14px;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.gated-list { list-style: none; margin: 0; padding: 0; }
.gated-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.gated-list li:last-child { border-bottom: 1px solid var(--line); }
.icon { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--gold); }

.fixed-reply {
  margin: 32px 0 0;
  padding: 22px 22px 20px;
  border-radius: var(--radius);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
}
.fixed-reply-label {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 18px;
  color: var(--muted);
}
.fixed-reply blockquote { margin: 0; }
.fixed-reply blockquote p { margin: 0; font-size: 18px; line-height: 27px; font-weight: 500; }

.flow {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.flow-node {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line-strong);
}
.flow-kicker, .flow-tag {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.flow-name { font-size: 17px; line-height: 24px; font-weight: 600; }
.flow-sub { font-size: 14px; line-height: 20px; color: var(--muted); }
.flow-node-screen { border-color: rgba(201,169,110,.5); }
.flow-arrow {
  position: relative;
  align-self: center;
  width: 1px;
  height: 36px;
  background: rgba(201,169,110,.6);
}
.flow-arrow::after {
  content: "";
  position: absolute;
  left: -4px; bottom: 0;
  width: 7px; height: 7px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: rotate(45deg);
}
.flow-branches { display: grid; gap: 12px; }
.flow-allow .flow-tag { color: var(--gold); }
.flow-redirect { background: var(--surface-raised); }
.flow-redirect .flow-tag { color: #E5B8A8; }

.fine-print {
  margin: 48px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 23px;
  color: var(--muted);
  max-width: 72ch;
}

/* ---------- Pricing ---------- */

.price-card {
  position: relative;
  max-width: 640px;
  padding: 32px 24px;
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  overflow: hidden;
}
.price-card::before {
  content: "";
  position: absolute;
  left: 24px; right: 24px; top: 0;
  height: 1px;
  background: var(--iri);
  opacity: .55;
}
.price-top { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.price { display: flex; align-items: baseline; gap: 6px; margin: 0 0 6px; }
.price-amount {
  font-size: 56px;
  line-height: 60px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--gold);
}
.price-unit { font-size: 18px; color: var(--muted); }
.price-terms { margin: 0; color: var(--text); font-weight: 500; }
.checklist { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon-check { width: 18px; height: 18px; margin-top: 5px; }
.price-foot { margin: 16px 0 0; }

/* ---------- About ---------- */

.about-grid { display: grid; gap: 36px; align-items: center; }
.about-photo { max-width: 360px; width: 100%; }
.about-photo img, .monogram {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--line);
}
.about-photo img { filter: saturate(.95) sepia(.06); }
.monogram {
  display: grid;
  place-items: center;
  background:
    radial-gradient(20rem 14rem at 50% 30%, rgba(201,169,110,.12), transparent 70%),
    var(--surface-raised);
}
.monogram span {
  font-size: 88px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--gold);
}
.about-copy h2 { margin-bottom: 16px; }
.about-links {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}
.about-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

/* ---------- Offer line ---------- */

.offer-line strong { color: var(--gold); font-weight: 600; }

/* ---------- Proof ---------- */

.proof-grid { display: grid; gap: 36px; }
.proof-copy p:last-child { margin-bottom: 0; }
.proof-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 20px; }
.stat-num {
  font-size: 32px;
  line-height: 36px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--gold);
}
.stat-label { font-size: 15px; line-height: 22px; color: var(--muted); }

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

.faq-list { border-bottom: 1px solid var(--line); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:hover { color: var(--gold-bright); }
.faq-item p { margin: 0 0 20px; color: var(--muted); }

/* ---------- Next step ---------- */

.cta-inner { max-width: 720px; }
.section-cta .cta-row { margin-top: 20px; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 56px 0 64px;
  border-top: 1px solid var(--line);
  background: #0D0D0F;
  font-size: 15px;
  line-height: 23px;
}
.footer-inner p { margin: 0 0 8px; }
.footer-brand { color: var(--text); }
.footer-brand .wordmark { font-size: 17px; }
.footer-meta, .footer-note, .footer-copy { color: var(--muted); }
.footer-links {
  list-style: none;
  margin: 12px 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
}
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-copy { margin-top: 16px !important; }

/* ---------- Privacy page ---------- */

.legal { padding: 56px 0 var(--section-y); }
.legal-inner { max-width: calc(720px + var(--gutter) * 2); }
.legal h1 { margin-bottom: 10px; }
.legal section { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal h2 { font-size: 22px; line-height: 30px; margin-bottom: 12px; }
.legal ul { padding-left: 20px; margin: 0; max-width: 62ch; }
.legal li { margin-bottom: 10px; }
.legal li::marker { color: var(--gold); }
.legal strong { font-weight: 600; }

/* ---------- Motion ---------- */

.motion .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s ease-out, transform .3s ease-out;
}
.motion .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .motion .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* ---------- Larger screens ---------- */

@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .cta-row { flex-direction: row; flex-wrap: wrap; }
  .cta-row .btn { width: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .proof-stats { grid-template-columns: 1fr 1fr; }
  .flow-branches { grid-template-columns: 1fr 1fr; }
  .price-card { padding: 40px; }
  .price-card::before { left: 40px; right: 40px; }
  .about-grid { grid-template-columns: minmax(220px, 320px) 1fr; gap: 56px; }
}

@media (min-width: 960px) {
  :root { --section-y: 120px; }
  body { font-size: 18px; line-height: 29px; }
  h1 { font-size: 64px; line-height: 68px; }
  h2 { font-size: 40px; line-height: 46px; }
  h3 { font-size: 20px; line-height: 28px; }
  .header-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
  .header-nav a {
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex; align-items: center; min-height: 44px;
  }
  .header-nav a:hover { color: var(--text); }
  .header-inner { min-height: 68px; }
  .hero { padding: 80px 0 var(--section-y); }
  .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 64px; }
  .hero .cta-row { margin-top: 32px; }
  .halo { width: 140%; max-width: 600px; transform: translate(-34%, -56%); }
  .example-label { margin-bottom: 40px; }
  .phone-caption { margin-top: 44px; }
  .hero { padding-bottom: 96px; }
  .section-head { margin-bottom: 48px; }
  .gate-grid { grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
  .flow-branches { grid-template-columns: 1fr; }
  .fixed-reply blockquote p { font-size: 19px; line-height: 29px; }
  .about-grid { grid-template-columns: 360px 1fr; gap: 80px; }
  .pricing-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
  .pricing-grid .price-card { max-width: none; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .proof-grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
  .faq-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
  .faq-item summary { font-size: 18px; line-height: 26px; }
  .legal { padding-top: 88px; }
}
