/* ===== Tokens ===== */
:root {
  --paper: #E8EEE9;
  --paper-2: #DCE5DE;
  --surface: #FFFFFF;
  --ink: #14262F;
  --muted: #4E6068;
  --pine: #2E5E4E;
  --pine-deep: #1F4438;
  --marigold: #F5B33B;
  --marigold-soft: #FCE7BF;
  --line: #C6D2CA;

  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 8px;

  --wrap: 1140px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }

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

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap--narrow { max-width: 820px; }
.nowrap { white-space: nowrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--pine-deep); border-color: var(--pine-deep); }
.btn:active { transform: scale(.97); }
.btn--small { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { background: var(--marigold); border-color: var(--marigold); color: var(--ink); }
.btn--light:hover { background: #ffc35f; border-color: #ffc35f; }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--block { width: 100%; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(232, 238, 233, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.brand__mark { flex: none; width: 36px; height: 36px; }
/* Signature monogram writes itself on load, and again on hover */
.brand__mark .sig { stroke-dasharray: 1 1.2; stroke-dashoffset: 0; }
.motion .brand__mark .sig { animation: sign .5s cubic-bezier(.6, 0, .3, 1) both; animation-delay: calc(var(--s) * .32s + .15s); }
.motion .brand:hover .brand__mark .sig { animation-name: resign; animation-delay: calc(var(--s) * .22s); }
@keyframes sign { from { stroke-dashoffset: 1.1; } }
@keyframes resign { from { stroke-dashoffset: 1.1; } }
.brand__name { font-size: 17px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav__links a:hover { color: var(--ink); }

/* ===== Hero ===== */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(44px, 7.2vw, 92px);
  line-height: .98;
  letter-spacing: -0.035em;
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  max-width: 11ch;
}
.lead {
  margin-top: 24px;
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--muted);
  max-width: 34em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__facts {
  list-style: none; padding: 0; margin: 36px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  color: var(--muted); font-size: 15px;
}
.hero__facts li { position: relative; padding-left: 18px; }
.hero__facts li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--marigold);
}
.hero__facts strong { color: var(--ink); font-weight: 600; }

/* Phone demo */
.phone { margin: 0; justify-self: center; width: 100%; max-width: 360px; }
.phone__frame {
  background: var(--surface);
  border: 10px solid var(--ink);
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(20, 38, 47, .45), 18px 18px 0 var(--marigold);
}
.phone__top {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 18px 14px;
  background: var(--pine);
  color: #fff;
}
.phone__avatar {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--marigold); color: var(--ink); font-weight: 800;
}
.phone__title { font-weight: 700; font-size: 15px; line-height: 1.2; }
.phone__status { font-size: 12.5px; opacity: .85; display: flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #7CE3A4; }

.chat {
  list-style: none; margin: 0; padding: 18px 14px 22px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 380px;
  background: #F4F7F5;
}
.msg {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.45;
}
.msg--in { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.msg--out { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg--out b { color: var(--pine); }
.msg--note {
  align-self: center; max-width: none;
  background: var(--marigold-soft); color: #6b4a0e;
  font-size: 12.5px; padding: 6px 12px; border-radius: 999px;
}
.phone figcaption { margin-top: 26px; font-size: 13.5px; color: var(--muted); text-align: center; }

/* Chat entrance — the page's one orchestrated motion */
.js .chat .msg { opacity: 0; transform: translateY(8px); }
.js .chat .msg.is-in { opacity: 1; transform: none; transition: opacity .35s ease, transform .35s ease; }
.typing {
  align-self: flex-start;
  display: inline-flex; gap: 4px;
  padding: 12px 14px; border-radius: 18px; border-bottom-left-radius: 6px;
  background: var(--surface); border: 1px solid var(--line);
}
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* ===== Sections ===== */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tint { background: var(--paper-2); }
.section__head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 60px; align-items: end; margin-bottom: 48px; }
.section__head .section__intro { margin: 0; }
.h2 {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
  font-variation-settings: "opsz" 72;
}
.section__intro { margin: 18px 0 48px; color: var(--muted); font-size: 18px; max-width: 36em; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.service {
  display: grid; grid-template-rows: auto 1fr; gap: 20px;
  padding: 32px 28px 8px 0;
}
.service + .service { padding-left: 28px; border-left: 1px solid var(--line); }
.service__icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center;
}
.service__icon svg { width: 32px; height: 32px; fill: none; stroke: var(--pine); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.service__icon svg circle { fill: var(--pine); stroke: none; }
.service h3 { font-size: 23px; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 10px; }
.service p { color: var(--muted); }

.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: 15.5px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--marigold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%2314262F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* Work */
.work { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px; }
.case {
  grid-column: span 6;
  min-width: 0;
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.case--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; }
.case--7 { grid-column: span 7; }
.case--5 { grid-column: span 5; }
.case__body { padding: 28px 30px 32px; }
.case--wide .case__body { align-self: center; padding: 40px; }
.case__body h3 { font-size: 26px; letter-spacing: -0.015em; margin: 6px 0 10px; }
.case__body p { color: var(--muted); }
.tag { font-size: 14px; font-weight: 600; color: var(--pine) !important; }
.case__list { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.case__list li { font-size: 14px; padding: 5px 12px; border-radius: 999px; background: var(--paper); font-weight: 500; }

/* Each concept sits on its own brand-coloured stage */
.stage { flex: 1 0 auto; display: flex; flex-direction: column; padding: 28px 28px 0; }
.case--wide .stage { padding: 36px 0 0 36px; }
.stage--dental {
  background:
    radial-gradient(120% 90% at 0% 0%, #BDE8E0 0, transparent 55%),
    radial-gradient(90% 80% at 100% 100%, #FFD2C2 0, transparent 60%),
    #DDF1EE;
}
.stage--reviews {
  position: relative; overflow: hidden; padding: 0;
  background:
    radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.5px) 0 0 / 18px 18px,
    linear-gradient(160deg, #3B5BEA 0%, #1B2C99 100%);
}

.browser {
  flex: 1; display: flex; flex-direction: column;
  container-type: inline-size;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .45);
}
.case--wide .browser { border-top-right-radius: 0; }
.browser__bar {
  display: flex; align-items: center; gap: 6px;
  background: #F1F4F2; padding: 9px 12px;
  border-bottom: 1px solid #E1E7E3;
}
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #CBD5CF; }
.browser__bar span { margin-left: 10px; font-size: 11.5px; color: var(--muted); background: #fff; padding: 2px 10px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser--dark .browser__bar { background: #1C1C20; border-bottom-color: #2A2A30; }
.browser--dark .browser__bar i { background: #3A3A42; }
.browser--dark .browser__bar span { background: #2A2A30; color: #9A9AA5; }

.site { position: relative; flex: 1; font-family: var(--font); font-size: 12px; line-height: 1.4; overflow: hidden; }
.site ul { list-style: none; margin: 0; padding: 0; }

/* Brightside Dental: calm, soft serif, teal + coral */
.dn { background: #F6FBFA; color: #0B3B3A; padding: 16px 22px 64px; }
.dn__nav { display: flex; align-items: center; gap: 16px; color: #3F6664; font-weight: 500; }
.dn__logo { display: flex; align-items: center; gap: 7px; margin-right: auto; font-family: "Fraunces", serif; font-size: 17px; font-weight: 600; color: #0B3B3A; }
.dn__logo span { width: 18px; height: 18px; border-radius: 50% 50% 45% 45%; background: #0F766E; box-shadow: inset -4px -3px 0 #14A394; }
.dn__cta { background: #0B3B3A; color: #fff; padding: 6px 12px; border-radius: 999px; font-weight: 600; }
.dn__hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: center; padding-top: 28px; }
.dn__rating { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #D5E9E5; padding: 4px 10px; border-radius: 999px; font-weight: 600; font-size: 11px; }
.dn__rating span { color: #F5A524; letter-spacing: 1px; }
.dn__h { margin-top: 14px; font-family: "Fraunces", serif; font-weight: 500; font-size: 36px; line-height: 1.02; letter-spacing: -0.02em; font-variation-settings: "opsz" 144; }
.dn__h em { color: #0F766E; }
.dn__p { margin-top: 10px; color: #4B6E6B; font-size: 12.5px; max-width: 28em; }
.dn__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.dn__btn { background: #FF7A59; color: #fff; padding: 8px 14px; border-radius: 999px; font-weight: 700; box-shadow: 0 8px 16px -8px #FF7A59; }
.dn__btn--ghost { background: transparent; color: #0B3B3A; box-shadow: inset 0 0 0 1.5px #BFD9D5; }
.dn__card { background: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 20px 40px -24px rgba(11, 59, 58, .5), 0 0 0 1px #E1EFEC; }
.dn__card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-family: "Fraunces", serif; font-weight: 600; font-size: 16px; }
.dn__card-h small { font-family: var(--font); font-size: 10.5px; font-weight: 500; color: #6B8C89; }
.dn__days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 12px; }
.dn__days span { display: grid; text-align: center; padding: 6px 0; border-radius: 10px; background: #F1F8F6; font-weight: 700; font-size: 13px; }
.dn__days small { font-size: 9px; font-weight: 500; color: #6B8C89; text-transform: uppercase; letter-spacing: .06em; }
.dn__days .is-on { background: #0B3B3A; color: #fff; }
.dn__days .is-on small { color: rgba(255, 255, 255, .7); }
.dn__slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 10px; }
.dn__slots span { text-align: center; padding: 6px 0; border-radius: 8px; border: 1.5px solid #CFE5E1; font-weight: 600; }
.dn__slots .is-off { color: #A9C1BE; border-style: dashed; text-decoration: line-through; }
.dn__slots .is-on { background: #0F766E; border-color: #0F766E; color: #fff; }
.dn__confirm { display: block; margin-top: 12px; text-align: center; background: #0B3B3A; color: #fff; padding: 9px; border-radius: 10px; font-weight: 700; }
.dn__chat {
  position: absolute; right: 18px; bottom: 16px;
  display: flex; align-items: center; gap: 8px;
  background: #fff; padding: 6px 14px 6px 6px; border-radius: 999px;
  font-weight: 600; box-shadow: 0 14px 30px -14px rgba(11, 59, 58, .55);
}
.dn__chat span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #FF7A59; color: #fff; font-weight: 800; }
@container (max-width: 540px) {
  .dn__hero { grid-template-columns: 1fr; }
  .dn__nav span:not(.dn__cta) { display: none; }
  .dn__h { font-size: 30px; }
}

/* Reviews on autopilot: the real objects, receipt → text → review */
.scene { position: relative; flex: 1; min-height: 400px; container-type: inline-size; font-family: var(--font); font-size: 12px; line-height: 1.4; }
.rv__day {
  position: absolute; top: -12px; right: -10px; z-index: 2;
  background: #fff; color: #1B2C99; font-weight: 800; font-size: 11px;
  padding: 4px 10px; border-radius: 999px; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .45);
}
.rv__day--hi { top: 34px; right: auto; left: -16px; background: #FFD84D; color: #1A1A1A; }

.rv__receipt { position: absolute; left: 7%; top: 44px; width: 36%; transform: rotate(-7deg); filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .35)); }
.rv__paper {
  --z: 8px;
  padding: 18px 14px 22px;
  background: #FBFAF6; color: #2A2A2A;
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  -webkit-mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--z) 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--z) 51% repeat-x;
  mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--z) 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--z) 51% repeat-x;
}
.rv__paper b { display: block; text-align: center; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.rv__paper small { display: block; text-align: center; color: #777; font-size: 9px; }
.rv__paper ul { list-style: none; margin: 10px 0; padding: 8px 0; display: grid; gap: 4px; border-top: 1px dashed #BBB; border-bottom: 1px dashed #BBB; }
.rv__paper li, .rv__total { display: flex; justify-content: space-between; gap: 6px; }
.rv__total { font-weight: 700; font-size: 11px; margin-bottom: 6px; }
.rv__barcode { display: block; height: 22px; margin-top: 10px; background: repeating-linear-gradient(90deg, #222 0 1px, transparent 1px 3px, #222 3px 5px, transparent 5px 6px, #222 6px 7px, transparent 7px 10px); }

.rv__phone { position: absolute; right: 8%; top: 28px; bottom: -40px; width: 42%; z-index: 2; background: #111; border-radius: 30px; padding: 9px; box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .6); }
.rv__screen { position: relative; height: 100%; overflow: hidden; padding: 26px 10px 10px; border-radius: 22px; background: #F2F2F7; color: #111; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; }
.rv__screen::before { content: ""; position: absolute; top: 7px; left: 33%; width: 34%; height: 12px; border-radius: 999px; background: #111; }
.rv__from { display: flex; flex-direction: column; align-items: center; gap: 3px; padding-bottom: 8px; border-bottom: 1px solid #DDD; font-size: 10.5px; font-weight: 600; }
.rv__from span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(160deg, #D27B4F, #9C4423); color: #fff; font-family: "Instrument Serif", serif; font-size: 15px; font-weight: 400; }
.rv__stamp { margin: 8px 0 6px; text-align: center; color: #8A8A8E; font-size: 9px; }
.rv__sms { max-width: 88%; padding: 7px 10px; border-radius: 14px 14px 14px 4px; background: #E5E5EA; font-size: 10.5px; line-height: 1.35; }
.rv__linkcard { display: flex; justify-content: space-between; align-items: center; gap: 6px; max-width: 88%; margin-top: 5px; padding: 7px 10px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #E0E0E5; font-size: 10px; }
.rv__linkcard span { color: #F5A524; }
.rv__sms--me { width: fit-content; margin: 8px 0 0 auto; border-radius: 14px 14px 4px 14px; background: #0A84FF; color: #fff; }

.rv__review {
  position: absolute; left: 4%; bottom: 28px; width: 50%; z-index: 3;
  padding: 12px 14px; border-radius: 14px;
  background: #fff; color: #1F1F1F;
  box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .55);
  transform: rotate(2.5deg);
  animation: bob 5s ease-in-out infinite;
}
@keyframes bob { 50% { translate: 0 -6px; } }
.rv__who { display: flex; align-items: center; gap: 8px; }
.rv__who span { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: #7E57C2; color: #fff; font-weight: 700; }
.rv__who b { font-size: 12px; }
.rv__who small { margin-left: auto; color: #888; font-size: 10px; white-space: nowrap; }
.rv__stars { margin-top: 6px; color: #FBBC04; letter-spacing: 2px; font-size: 13px; }
.rv__text { margin-top: 2px; color: #3C3C3C; font-size: 11.5px; }

.rv__sticker {
  position: absolute; right: 4%; bottom: 36px; z-index: 4;
  display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%;
  background: #FFD84D; color: #1A1A1A; text-align: center;
  font-weight: 800; font-size: 11px; line-height: 1.15;
  transform: rotate(-10deg); box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .45);
}
@container (max-width: 440px) {
  .rv__receipt { left: 4%; top: 40px; width: 52%; }
  .rv__phone { right: 4%; top: 120px; width: 54%; }
  .rv__review { left: 5%; bottom: 18px; width: 84%; }
  .rv__sticker { right: 5%; top: 18px; bottom: auto; width: 66px; height: 66px; font-size: 10px; }
}

/* Process */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.step { position: relative; padding: 0 24px 0 0; }
.step::before {
  content: ""; position: absolute; top: 22px; left: 48px; right: 0;
  height: 2px; background: var(--line);
}
.step:last-child::before { display: none; }
.step__n {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: var(--marigold);
  font-weight: 800; font-size: 18px;
  margin-bottom: 22px;
}
.step h3 { font-size: 20px; line-height: 1.25; margin-bottom: 8px; letter-spacing: -0.01em; }
.step p { color: var(--muted); font-size: 16px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  position: relative;
}
.plan h3 { font-size: 22px; }
.plan__price { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 4px; line-height: 1.1; }
.plan__price small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan__for { color: var(--muted); font-size: 15.5px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.plan--feature { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-12px); }
.plan--feature .plan__price small,
.plan--feature .plan__for { color: rgba(255,255,255,.7); }
.plan--feature .plan__for { border-bottom-color: rgba(255,255,255,.18); }
.plan__badge {
  position: absolute; top: -14px; left: 28px;
  background: var(--marigold); color: var(--ink);
  font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
}

/* FAQ */
.faq { margin-top: 36px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0;
  font-size: 19px; font-weight: 600; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%2314262F' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat;
  border: 1px solid var(--line);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); max-width: 40em; }

/* Contact */
.contact { background: var(--pine-deep); color: #fff; padding: clamp(64px, 9vw, 112px) 0; }
.contact__grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; }
.h2--light { color: #fff; max-width: 14ch; }
.contact__text { margin-top: 20px; color: rgba(255,255,255,.78); font-size: 18px; max-width: 34em; }
.contact__card {
  display: grid; gap: 12px;
  padding: 28px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
}
.contact__mail {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 6px 6px 6px 16px; border-radius: 999px;
  background: rgba(255,255,255,.08); font-size: 15px;
}
.contact__mail span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: all; }
.contact__mail button {
  flex: none; min-height: 36px; padding: 6px 14px; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.16); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
.contact__mail button:hover { background: rgba(255,255,255,.26); }
.contact__small { text-align: center; font-size: 14px; color: rgba(255,255,255,.65); margin-top: 4px; }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,.65); font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 26px; padding-bottom: 26px; flex-wrap: wrap; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ===== Motion ===== */
:root { --ease-out: cubic-bezier(.23, 1, .32, 1); --ease-in-out: cubic-bezier(.77, 0, .175, 1); }

/* Scroll progress line under the nav */
.nav__progress {
  position: absolute; left: 0; bottom: -1px;
  width: 100%; height: 2px;
  background: var(--marigold);
  transform: scaleX(0); transform-origin: left;
}

/* Highlighter swash under "24/7" */
.hero h1 { isolation: isolate; }
.hl { position: relative; }
.hl::after {
  content: ""; position: absolute; z-index: -1;
  left: -3%; right: -3%; bottom: .2em; height: .22em;
  border-radius: 999px; background: var(--marigold);
  transform-origin: left;
}

/* Buttons and cards respond to the cursor */
.btn { transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .16s var(--ease-out), box-shadow .2s ease; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgba(20, 38, 47, .6); }
    .service:hover .service__icon, .module:hover .service__icon { transform: rotate(-6deg) scale(1.08); }
}
.btn:active { transform: scale(.97); box-shadow: none; transition-duration: .1s; }
.plan { transition: translate .8s var(--ease-out), opacity .8s var(--ease-out), box-shadow .25s ease; }
.plan:hover { box-shadow: 0 26px 50px -30px rgba(20, 38, 47, .5); }
.service__icon { transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }

/* Example builds tilt toward the cursor (set by script.js) */
.stage > * { transform-origin: 50% 100%; will-change: transform; }
.case--wide .stage > * { transform-origin: 100% 100%; }

.motion .hero h1 .w {
  display: inline-block;
  animation: word .9s var(--ease-out) both;
  animation-delay: calc(var(--i) * 80ms + 100ms);
}
.motion .hl::after { animation: swash .7s var(--ease-out) .95s both; }
.motion .hero__copy > :not(h1) { animation: rise .8s var(--ease-out) both; }
.motion .hero__copy > .lead { animation-delay: .5s; }
.motion .hero__copy > .hero__actions { animation-delay: .62s; }
.motion .hero__copy > .hero__facts { animation-delay: .74s; }
.motion .phone { animation: phone-in 1.1s var(--ease-out) .35s both; }
.motion .phone__frame { animation: float 7s ease-in-out 1.6s infinite; }

@keyframes word { from { opacity: 0; transform: translateY(.45em) rotate(3deg); } }
@keyframes swash { from { transform: scaleX(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes phone-in { from { opacity: 0; transform: translateY(40px) rotate(4deg); } }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Scroll reveal: script.js adds .reveal, then .is-visible */
.motion .reveal {
  opacity: 0; translate: 0 28px;
  transition: opacity .8s var(--ease-out) var(--d, 0ms), translate .8s var(--ease-out) var(--d, 0ms), transform .25s ease, box-shadow .25s ease;
}
.motion .reveal.is-visible { opacity: 1; translate: none; }

/* Service icons draw themselves in */
.motion .module.reveal .service__icon svg :not(circle) { stroke-dasharray: 200; stroke-dashoffset: 200; }
.motion .module.is-visible .service__icon svg :not(circle) { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s ease calc(var(--d) + .2s); }

/* Process: numbers pop, connecting line draws across */
.motion .step.reveal .step__n { transform: scale(.3); }
.motion .step.is-visible .step__n { transform: none; transition: transform .6s cubic-bezier(.3, 1.6, .5, 1) calc(var(--d) + .1s); }
.motion .step.reveal::before { transform: scaleX(0); transform-origin: left; }
.motion .step.is-visible::before { transform: none; transition: transform .9s var(--ease-out) calc(var(--d) + .35s); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .phone { justify-self: start; }
  .services { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 28px 0; border-left: 0; }
  .service + .service { border-top: 1px solid var(--line); }
  .service { grid-template-rows: none; grid-template-columns: 56px 1fr; gap: 20px; }
  .section__head { grid-template-columns: 1fr; }
  .case--wide { grid-template-columns: 1fr; }
  .case--wide .stage { padding: 28px 28px 0; }
  .case--wide .browser { border-top-right-radius: 12px; }
  .case--wide .case__body { padding: 28px 30px 32px; }
  .case--7, .case--5 { grid-column: span 6; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .step::before { display: none; }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .plan--feature { transform: none; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav .btn--small { margin-left: auto; }
  .work { grid-template-columns: 1fr; }
  .case, .case--7, .case--5 { grid-column: auto; }
  .stage, .case--wide .stage { padding: 18px 18px 0; }
  .stage--reviews { padding: 0; }
  .steps { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; }
  .phone { justify-self: center; }
  .phone__frame { box-shadow: 0 30px 60px -30px rgba(20, 38, 47, .45), 10px 10px 0 var(--marigold); }
  .faq summary { font-size: 17px; }
  .faq details p { padding-right: 0; }
}

@media (max-width: 500px) {
  .scene { min-height: 560px; }
}

/* =========================================================
   Medical repositioning (Nov 2026)
   ========================================================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 18px; padding: 6px 12px 6px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--pine);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3BB273; box-shadow: 0 0 0 3px rgba(59, 178, 115, .18); }
.msg--missed { background: #FDE2DC; color: #8A2A14; }
.motion .hero__copy > .eyebrow { animation-delay: 0s; }

/* Where patients slip away */
.leaks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.leak { padding: 28px 28px 8px 0; min-width: 0; }
.leak + .leak { padding-left: 28px; border-left: 1px solid var(--line); }
.leak__n { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; font-weight: 600; color: var(--pine); }
.leak h3 { font-size: 23px; line-height: 1.2; letter-spacing: -0.01em; margin: 10px 0 10px; }
.leak p { color: var(--muted); }

/* Calculator */
.calc {
  margin-top: 56px;
  display: grid; grid-template-columns: 1.1fr .9fr;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -40px rgba(20, 38, 47, .45);
}
.calc__inputs { padding: 36px; display: grid; gap: 18px; align-content: start; min-width: 0; }
.calc__inputs h3 { font-size: 26px; letter-spacing: -0.015em; line-height: 1.15; }
.calc__hint { color: var(--muted); font-size: 15px; margin-top: -10px; }
.field { display: grid; grid-template-columns: 1fr 132px; align-items: center; gap: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 16px; font-weight: 500; }
.field input {
  width: 100%; min-height: 46px; padding: 8px 12px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper); color: var(--ink);
  font: 600 17px/1 "JetBrains Mono", ui-monospace, monospace; text-align: right;
  font-variant-numeric: tabular-nums;
  transition: border-color .15s ease, background-color .15s ease;
}
.field input:hover { border-color: #9FB3A6; }
.field input:focus { outline: none; border-color: var(--pine); background: var(--surface); box-shadow: 0 0 0 3px rgba(46, 94, 78, .15); }
.field__unit { position: relative; display: block; }
.field__unit i { position: absolute; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-weight: 600; pointer-events: none; }
.field__unit input { padding-right: 32px; }
.field__unit i { right: 12px; }
.field__unit--pre input { padding-right: 12px; padding-left: 28px; }
.field__unit--pre i { right: auto; left: 12px; }
.calc__out {
  position: relative; padding: 36px;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  background: var(--ink); color: #fff; min-width: 0;
}
.calc__out::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 60% at 100% 0%, rgba(245, 179, 59, .18), transparent 60%);
}
.calc__out > * { position: relative; }
.calc__label { font-size: 15px; color: rgba(255,255,255,.72); font-weight: 500; }
.calc__big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: clamp(48px, 6vw, 76px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--marigold); }
.calc__big small { font-size: 18px; font-weight: 500; letter-spacing: 0; color: rgba(255,255,255,.72); }
.calc__year { font-size: 16px; color: rgba(255,255,255,.88); font-variant-numeric: tabular-nums; }
.calc__note { font-size: 13.5px; color: rgba(255,255,255,.58); margin: 6px 0 14px; max-width: 34em; }
.calc__out .btn { align-self: flex-start; }

/* The system */
.modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.module {
  min-width: 0;
  display: grid; grid-template-rows: auto auto 1fr; gap: 14px;
  padding: 28px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.module h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; }
.module p { color: var(--muted); font-size: 16px; }
.module--note { background: var(--marigold-soft); border-color: #F1D49A; align-content: start; grid-template-rows: auto 1fr; }
.module--note h3::before {
  content: ""; display: inline-block; width: 20px; height: 20px; margin-right: 8px; vertical-align: -3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314262F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 8.5-7 10-4-1.5-7-5.5-7-10V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E") center/contain no-repeat;
}
.module--note p { color: #5A4613; }
.module .service__icon { transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.for { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.for li { padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--ink); font-weight: 600; font-size: 15px; }
.for li:first-child { background: var(--ink); color: #fff; }

/* Examples */
.stage--recall { background: radial-gradient(100% 80% at 100% 0%, #CFE3FF 0, transparent 60%), #E6EEF8; }
.stage--pharmacy { background: linear-gradient(160deg, #2E5E4E 0%, #173A30 100%); align-items: center; justify-content: flex-end; }
.case--reviews .stage { padding: 0; }
.case--reviews .scene { min-height: 420px; }

.rc { background: #fff; color: #14262F; padding: 16px 18px 20px; }
.rc__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rc__head b { font-size: 16px; letter-spacing: -0.01em; }
.rc__head span { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: #7A8B93; background: #F1F4F6; padding: 3px 8px; border-radius: 999px; }
.rc__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.rc__tiles div { padding: 10px 12px; border-radius: 10px; background: #F3F6F8; }
.rc__tiles small { display: block; font-size: 10px; color: #6A7B83; }
.rc__tiles b { font-size: 24px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.rc__tiles .is-hi { background: #E7F6EE; }
.rc__tiles .is-hi b { color: #1E7A4C; }
.rc__bar { height: 6px; border-radius: 999px; background: #EDF1F3; margin: 12px 0 6px; overflow: hidden; }
.rc__bar span { display: block; height: 100%; width: 15%; border-radius: inherit; background: linear-gradient(90deg, #3BB273, #1E7A4C); transform-origin: left; }
.motion .case.reveal .rc__bar span { transform: scaleX(0); }
.motion .case.is-visible .rc__bar span { transform: none; transition: transform 1.2s var(--ease-out) .4s; }
.rc__list li { display: grid; grid-template-columns: 26px 1fr auto auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #EEF2F4; font-size: 11.5px; }
.rc__list i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #E6EEF8; color: #2B4C7E; font-style: normal; font-weight: 700; font-size: 10px; }
.rc__list span { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc__list small { color: #7A8B93; font-size: 10.5px; white-space: nowrap; }
.rc__list em { font-style: normal; font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: #F3F6F8; color: #4E6068; white-space: nowrap; }
.rc__list em.ok { background: #E7F6EE; color: #1E7A4C; }
@container (max-width: 420px) { .rc__list small { display: none; } .rc__list li { grid-template-columns: 26px 1fr auto; } }

.mini-phone { width: min(78%, 250px); background: #0F0F10; border-radius: 30px 30px 0 0; padding: 9px 9px 0; box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .6); }
.mini-phone__screen { position: relative; overflow: hidden; padding: 26px 10px 18px; border-radius: 22px 22px 0 0; background: #F2F2F7; color: #111; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 12px; line-height: 1.4; display: grid; gap: 6px; }
.mini-phone__screen::before { content: ""; position: absolute; top: 7px; left: 33%; width: 34%; height: 12px; border-radius: 999px; background: #0F0F10; }
.mini-phone .rv__from span.mp__av { background: linear-gradient(160deg, #3B7A64, #1F4438); font-family: var(--font); font-weight: 700; font-size: 13px; }
.mp__missed { justify-self: center; font-size: 9.5px; font-weight: 600; color: #C0392B; background: #FDE2DC; padding: 2px 10px; border-radius: 999px; }
.mini-phone .rv__sms { margin: 0; }
.mini-phone .rv__sms--me { margin: 0 0 0 auto; }

/* Why me */
.about { display: grid; grid-template-columns: 140px 1fr; gap: 40px; align-items: center; max-width: 960px; }
.about__badge svg { width: 140px; height: 140px; }
.about__badge circle { fill: var(--marigold-soft); stroke: var(--marigold); stroke-width: 2; }
.about__badge path { fill: #fff; stroke: var(--ink); stroke-width: 3.5; stroke-linejoin: round; }
.about__text { margin-top: 18px; color: var(--muted); font-size: 19px; max-width: 38em; }

/* Pricing additions */
.plan__price { display: flex; align-items: baseline; gap: 8px; }
.plan__monthly { font-size: 17px; font-weight: 600; color: var(--pine); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.plan--feature .plan__monthly { color: var(--marigold); }
.founding { margin-top: 36px; padding: 16px 20px; border-radius: var(--r-md); background: var(--marigold-soft); border: 1px solid #F1D49A; color: #5A4613; max-width: 760px; }
.founding strong { color: var(--ink); }

/* Contact: form + alternatives */
.contact__alt { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; max-width: 420px; }
.contact__links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; }
.contact__links a { color: rgba(255,255,255,.86); text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,.35); }
.contact__links a:hover { color: #fff; text-decoration-color: #fff; }
.form { gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.86); min-width: 0; }
.form__field i { font-style: normal; font-weight: 400; color: rgba(255,255,255,.55); }
.form__field input, .form__field textarea {
  width: 100%; min-height: 46px; padding: 11px 14px;
  border-radius: var(--r-sm); border: 1.5px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.07); color: #fff;
  font: 400 16px/1.4 var(--font);
  transition: border-color .15s ease, background-color .15s ease;
}
.form__field textarea { resize: vertical; min-height: 84px; }
.form__field input::placeholder, .form__field textarea::placeholder { color: rgba(255,255,255,.4); }
.form__field input:hover, .form__field textarea:hover { border-color: rgba(255,255,255,.35); }
.form__field input:focus, .form__field textarea:focus { outline: none; border-color: var(--marigold); background: rgba(255,255,255,.1); box-shadow: 0 0 0 3px rgba(245, 179, 59, .22); }
.form__honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form button[disabled] { opacity: .75; cursor: progress; }
.form.is-sent button[disabled] { opacity: 1; cursor: default; background: #7CE3A4; border-color: #7CE3A4; }
.form__status { min-height: 1.4em; font-size: 15px; }
.form__status:empty { display: none; }
.form__status[data-kind="ok"] { color: #A8F0C4; }
.form__status[data-kind="error"] { color: #FFC9B8; }
.btn span { transition: filter .2s ease, opacity .2s ease; }
.form.is-sending .btn span { filter: blur(1px); opacity: .7; }

@media (max-width: 960px) {
  .leaks { grid-template-columns: 1fr; }
  .leak, .leak + .leak { padding: 24px 0; border-left: 0; }
  .leak + .leak { border-top: 1px solid var(--line); }
  .calc { grid-template-columns: 1fr; }
  .modules { grid-template-columns: 1fr 1fr; }
  .case--reviews .stage { padding: 0; }
}
@media (max-width: 720px) {
  .modules { grid-template-columns: 1fr; }
  .calc__inputs, .calc__out { padding: 26px 22px; }
  .field { grid-template-columns: 1fr 112px; gap: 12px; font-size: 15px; }
  .about { grid-template-columns: 1fr; gap: 20px; }
  .about__badge svg { width: 96px; height: 96px; }
  .form__row { grid-template-columns: 1fr; }
  .stage--pharmacy { padding-top: 24px; }
}
@media (max-width: 500px) {
  .case--reviews .scene { min-height: 560px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .chat .msg { opacity: 1; transform: none; }
}

/* Links to the live demo */
.phone figcaption a, .section__intro a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
