/* =========================================================================
   ClinicGreet — POC / walkthrough / pricing page styles
   wo_20260626_medspa_ai_sales_saas_trial
   Loads AFTER styles.css; reuses the same tokens (--teal, --mint, --graphite,
   --sharp, --shadow, etc.), buttons, topbar, hero, pilot band, and footer.
   ========================================================================= */

/* ---- Scroll-reveal utility (guarded by .js so no-JS shows everything) ---- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}

.js .reveal.is-revealed {
  opacity: 1;
  transform: none;
}

/* gentle stagger inside grids */
.value-grid .reveal:nth-child(2),
.price-grid .reveal:nth-child(2),
.flow .reveal:nth-child(3) {
  transition-delay: 0.08s;
}
.value-grid .reveal:nth-child(3),
.price-grid .reveal:nth-child(3),
.flow .reveal:nth-child(4) {
  transition-delay: 0.16s;
}
.value-grid .reveal:nth-child(4),
.flow .reveal:nth-child(5) {
  transition-delay: 0.24s;
}

/* anchor offset so the fixed topbar never hides a section heading */
.walkthrough,
.value,
.demo,
.pricing,
.pilot {
  scroll-margin-top: 96px;
}

/* ---- Hero capture console (sits inside the reused .main-device frame) ---- */
.capture-console {
  padding: 20px;
  color: var(--ink);
}

.console-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.console-tag {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: var(--sharp);
  background: var(--mint);
  color: var(--graphite);
  font-size: 0.75rem;
  font-weight: 900;
}

.console-time {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.console-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
  font-weight: 700;
}

.console-line em {
  flex: 0 0 72px;
  color: var(--muted);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.console-line.flag {
  color: var(--clay);
}

.console-line.flag em {
  color: var(--clay);
}

.console-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 900;
}

.console-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(12, 119, 110, 0.4);
  animation: pulse 1.8s infinite;
}

/* ======================= SYSTEM WALKTHROUGH (light) ======================= */
.walkthrough {
  padding: clamp(72px, 9vw, 132px) clamp(18px, 4vw, 58px);
  background: var(--paper);
}

.walkthrough .eyebrow,
.demo .eyebrow,
.pricing .eyebrow {
  color: var(--clay);
}

.walkthrough .section-kicker p:not(.eyebrow) {
  max-width: 720px;
  font-size: 1.05rem;
}

.flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-rail {
  position: absolute;
  top: 31px;
  left: 12.5%;
  right: 12.5%;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 24, 22, 0.1);
}

.flow-rail-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--mint));
  transition: width 1.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.flow.is-on .flow-rail-fill {
  width: 100%;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.flow-node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid rgba(17, 24, 22, 0.12);
  box-shadow: 0 10px 26px rgba(17, 24, 22, 0.12);
  transition: border-color 0.5s ease, background 0.5s ease, transform 0.5s ease;
}

.flow-step.is-revealed .flow-node {
  border-color: var(--teal);
  background: var(--graphite);
  transform: scale(1.04);
}

.flow-num {
  color: var(--graphite);
  font-size: 1.05rem;
  font-weight: 950;
  transition: color 0.5s ease;
}

.flow-step.is-revealed .flow-num {
  color: var(--mint);
}

.flow-card {
  width: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--sharp);
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: left;
}

.flow-card h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.12;
}

.flow-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.flow-tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: var(--sharp);
  background: var(--sage);
  color: var(--graphite);
  font-size: 0.72rem;
  font-weight: 900;
}

.guardrail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 18px;
  align-items: start;
  margin-top: 28px;
  padding: 22px clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--sharp);
  background: var(--white);
}

.guardrail strong {
  align-self: center;
  padding: 7px 12px;
  border-radius: var(--sharp);
  background: var(--graphite);
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.guardrail p {
  margin: 0;
  align-self: center;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* ========================== VALUE PROPS (dark) ========================== */
.value {
  padding: clamp(72px, 9vw, 132px) clamp(18px, 4vw, 58px);
  color: #fff;
  background:
    linear-gradient(120deg, rgba(12, 119, 110, 0.22), transparent 50%),
    var(--graphite);
}

.value .eyebrow {
  color: var(--mint);
}

.value .section-kicker h2 {
  color: #fff;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.value-prop {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--sharp);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.vp-figure {
  display: block;
  margin-bottom: 16px;
  color: var(--mint);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 950;
  line-height: 0.9;
}

.value-prop h3 {
  margin-bottom: 10px;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.14;
}

.value-prop p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.96rem;
  line-height: 1.55;
}

.vp-tag,
.vp-link {
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 900;
}

.vp-tag {
  display: inline-flex;
  width: fit-content;
  padding: 7px 11px;
  border-radius: var(--sharp);
  background: rgba(155, 215, 200, 0.16);
  color: var(--mint);
}

.vp-link {
  color: var(--mint);
  text-decoration: none;
}

.vp-link:hover {
  text-decoration: underline;
}

.value-note {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.86rem;
}

/* ===================== PROOF-OF-CONCEPT DEMO (light) ===================== */
.demo {
  padding: clamp(72px, 9vw, 132px) clamp(18px, 4vw, 58px);
  background: var(--cream);
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.demo .section-kicker {
  margin-bottom: 30px;
}

.demo-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo-step {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(17, 24, 22, 0.14);
}

.demo-step:last-child {
  border-bottom: 1px solid rgba(17, 24, 22, 0.14);
}

.demo-time {
  color: var(--clay);
  font-size: 0.92rem;
  font-weight: 950;
}

.demo-step p {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
}

.demo-step strong {
  color: var(--graphite);
}

/* sticky consult-summary card (mirrors index .handoff-card treatment) */
.demo-visual {
  position: sticky;
  top: 110px;
}

.summary-card {
  padding: clamp(24px, 3vw, 30px);
  border-radius: var(--sharp);
  background: var(--graphite);
  color: #fff;
  box-shadow: var(--shadow);
}

.summary-tag {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 10px;
  border-radius: var(--sharp);
  background: var(--mint);
  color: var(--graphite);
  font-size: 0.75rem;
  font-weight: 900;
}

.summary-title {
  display: block;
  margin-bottom: 20px;
  font-size: 1.5rem;
  line-height: 1.05;
}

.summary-rows {
  display: grid;
  gap: 0;
  margin: 0;
}

.summary-rows > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.summary-rows dt {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.86rem;
  font-weight: 800;
}

.summary-rows dd {
  margin: 0;
  color: #fff;
  font-size: 0.96rem;
  font-weight: 800;
  text-align: right;
}

.summary-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--mint);
  font-size: 0.88rem;
  font-weight: 900;
}

.summary-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(155, 215, 200, 0.45);
  animation: pulse 1.9s infinite;
}

.demo-caption {
  margin: 14px 2px 0;
  color: var(--muted);
  font-size: 0.84rem;
}

/* ============================ PRICING (light) ============================ */
.pricing {
  padding: clamp(72px, 9vw, 132px) clamp(18px, 4vw, 58px);
  background: var(--paper);
}

.intro-note {
  display: inline-block;
  margin-top: 6px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: var(--sharp);
  background: var(--white);
  color: var(--clay) !important;
  font-size: 0.86rem;
  font-weight: 800;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.price-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--sharp);
  background: var(--white);
  box-shadow: var(--shadow);
}

.price-card.featured {
  border-color: transparent;
  background: var(--graphite);
  color: #fff;
}

@media (min-width: 901px) {
  .price-card.featured {
    transform: translateY(-14px);
  }
}

.price-flag {
  position: absolute;
  top: -13px;
  left: clamp(24px, 3vw, 34px);
  padding: 7px 12px;
  border-radius: var(--sharp);
  background: var(--mint);
  color: var(--graphite);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.price-head {
  min-height: 92px;
}

.price-name {
  display: block;
  margin-bottom: 8px;
  font-size: 1.4rem;
  font-weight: 950;
}

.price-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.featured .price-desc {
  color: rgba(255, 255, 255, 0.74);
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin: 18px 0 4px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.featured .price-amount {
  border-color: rgba(255, 255, 255, 0.16);
}

.price-from {
  margin-right: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.featured .price-from {
  color: rgba(255, 255, 255, 0.66);
}

.price-currency {
  color: var(--teal);
  font-size: 1.8rem;
  font-weight: 950;
}

.featured .price-currency {
  color: var(--mint);
}

.price-value {
  font-size: clamp(3rem, 5vw, 3.8rem);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: -0.01em;
}

.price-period {
  margin-left: 4px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 900;
}

.featured .price-period {
  color: rgba(255, 255, 255, 0.7);
}

.setup-fee {
  margin: 0;
  color: var(--clay);
  font-size: 0.9rem;
  font-weight: 950;
}

.featured .setup-fee {
  color: var(--mint);
}

.custom-price .price-value {
  color: var(--graphite);
  font-size: clamp(2rem, 3.2vw, 3rem);
}

.price-list {
  display: grid;
  gap: 11px;
  margin: 22px 0 26px;
  padding: 0;
  list-style: none;
}

.price-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.4;
}

.featured .price-list li {
  color: rgba(255, 255, 255, 0.9);
}

.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 11px no-repeat,
    var(--teal);
}

.featured .price-list li::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317201f' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 11px no-repeat,
    var(--mint);
}

.price-cta {
  margin-top: auto;
  width: 100%;
}

.featured .price-cta.secondary {
  border-color: rgba(255, 255, 255, 0.25);
}

.price-fineprint {
  max-width: 90ch;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
  text-align: center;
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1060px) {
  .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-grid {
    grid-template-columns: 1fr;
  }

  .demo-visual {
    position: relative;
    top: 0;
    max-width: 480px;
  }

  .price-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .price-grid.four {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    order: -1;
  }
}

@media (min-width: 1061px) and (max-width: 1260px) {
  .price-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .flow {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .flow-rail {
    display: none;
  }

  .flow-step {
    flex-direction: row;
    align-items: stretch;
    gap: 18px;
    text-align: left;
    padding-bottom: 22px;
  }

  .flow-node {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
  }

  /* vertical connector between stacked steps */
  .flow-step:not(:last-child) {
    position: relative;
  }

  .flow-step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 28px;
    top: 56px;
    bottom: 0;
    width: 2px;
    background: rgba(17, 24, 22, 0.12);
  }
}

@media (max-width: 720px) {
  .value-grid {
    grid-template-columns: 1fr;
  }

  .console-line em {
    flex-basis: 64px;
  }

  .summary-rows dd {
    text-align: left;
  }

  .price-head {
    min-height: 0;
  }

  .guardrail {
    grid-template-columns: 1fr;
  }

  .guardrail strong {
    justify-self: start;
  }
}
