/* Northlake Dental Studio — design system from approved mockup C.
   Ground paper, ink pine, mint surfaces, one coral accent. Grotesk display,
   tabular figures on every number. */

:root {
  --paper: #FAFAF6;
  --ink: #0F2E28;
  --ink-soft: #3C554E;
  --mint: #DCEFE9;
  --mint-soft: #EEF6F2;
  --mint-line: #C6E0D6;
  --coral: #FF5A3C;        /* decorative only */
  --coral-deep: #C2371B;   /* text + button ground: white on this = 5.4:1 */
  --line: #E2E4DC;
  --card: #FFFFFF;
  --radius: 14px;
  --radius-sm: 9px;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Public Sans", system-ui, sans-serif;
  --shadow: 0 10px 30px -12px rgba(15, 46, 40, 0.18);
  --wrap: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
strong { font-weight: 600; }
.muted { color: var(--ink-soft); font-weight: 400; }

h1, h2, h3, h4, .stat strong, .sum-cost strong {
  font-family: var(--display);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

/* numbers read like a printed tariff, everywhere */
body { font-variant-numeric: tabular-nums; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

/* ---------- reveal contract: opt-in via .js, never strands content -------- */
.rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
  .js .rv.in { opacity: 1; transform: none; }
}

/* ---------- ribbon + header ---------------------------------------------- */
.demo-ribbon {
  background: var(--ink); color: #E9F2EE;
  font-size: 12.5px; text-align: center; padding: 6px 12px;
}
.demo-ribbon a { color: #A8E6D2; margin-left: 8px; }

.site-head {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 12px clamp(16px, 4vw, 32px);
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 17px; }
.brand-mark { width: 30px; height: 30px; }
.site-nav { display: flex; gap: 20px; margin-inline: auto; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: 14.5px; color: var(--ink-soft); padding: 6px 2px; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--coral); }
.head-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.head-phone { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap; }

.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.big { width: 44px; height: 44px; color: var(--coral-deep); }

/* ---------- buttons ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); font-weight: 600; font-size: 15.5px;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease;
  min-height: 44px;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--coral-deep); color: #fff; }
.btn-primary:hover { background: #A82D14; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--mint-soft); }
.btn-sm { padding: 9px 16px; font-size: 14px; min-height: 40px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 4px; }

/* ---------- hero ---------------------------------------------------------- */
.hero { border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); min-height: 560px; }
.hero-copy {
  padding: clamp(28px, 5vw, 64px);
  padding-right: clamp(20px, 3vw, 48px);
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  max-width: 640px; margin-left: auto;
}
.hero-photo { position: relative; min-height: 320px; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }

.bubble {
  border-radius: 18px; padding: 14px 18px; font-size: 16.5px; line-height: 1.45;
  max-width: 44ch; box-shadow: var(--shadow);
}
.bubble-q { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble-a { background: var(--mint); border-bottom-right-radius: 4px; margin-left: 34px; display: grid; gap: 10px; justify-items: start; }
.hero h1 { font-size: clamp(30px, 3.6vw, 46px); margin-top: 8px; }
.lede { font-size: 17px; color: var(--ink-soft); max-width: 46ch; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }

.statband {
  background: var(--ink); color: #E9F2EE;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}
.stat { padding: 18px 20px; text-align: center; display: grid; gap: 2px; }
.stat strong { font-size: 22px; color: #fff; }
.stat span { font-size: 13px; color: #B9CEC7; }

/* ---------- bands + question headings ------------------------------------ */
.band { padding: clamp(48px, 7vw, 88px) 0; }
.band-tint { background: var(--mint-soft); }
.q { font-size: clamp(26px, 3vw, 36px); margin-bottom: 10px; }
.q::before { content: ""; display: block; width: 44px; height: 4px; background: var(--coral); border-radius: 2px; margin-bottom: 14px; }
.q-light::before { background: var(--coral); }
.sub { color: var(--ink-soft); max-width: 62ch; margin-bottom: 26px; }
.two-col { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.two-col > *, .wizard-grid > * { min-width: 0; }

/* ---------- prices -------------------------------------------------------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filter {
  font: 600 13.5px var(--display); padding: 8px 15px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--card); cursor: pointer; color: var(--ink-soft);
  min-height: 36px;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

.price-table { border-top: 2px solid var(--ink); }
.price-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 8px 16px; align-items: baseline;
  padding: 13px 4px; border-bottom: 1px solid var(--line);
}
.price-row .name { font-weight: 600; }
.price-row .desc { grid-column: 1 / -1; font-size: 13.5px; color: var(--ink-soft); margin-top: -4px; display: none; }
.price-row.is-open .desc { display: block; }
.price-row .dur { font-size: 13.5px; color: var(--ink-soft); white-space: nowrap; }
.price-row .price { font: 600 16.5px var(--display); color: var(--coral-deep); white-space: nowrap; }
.price-row .book-link {
  font: 600 13.5px var(--display); color: var(--ink); background: none; border: none; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 3px; padding: 6px;
}
.price-row .book-link:hover { color: var(--coral-deep); }
.name-btn { background: none; border: none; font: inherit; text-align: left; cursor: pointer; color: inherit; padding: 0; }
.name-btn:hover { color: var(--coral-deep); }
.fineprint { font-size: 13px; color: var(--ink-soft); margin-top: 14px; max-width: 62ch; }
.teaser-cta { margin-top: 18px; }

/* ---------- price CTA + dentists ------------------------------------------ */
.price-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--mint); border-radius: var(--radius); padding: clamp(22px, 3.5vw, 36px);
  margin-bottom: clamp(40px, 6vw, 64px);
}
.price-cta > div { max-width: 62ch; }
.price-cta .q { margin-bottom: 6px; font-size: clamp(22px, 2.4vw, 30px); }
.price-cta .sub { margin-bottom: 0; }
.price-cta .btn { flex: none; }

.dentist-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dentist-card {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.dentist-card picture { align-self: start; }
.dentist-card img { border-radius: var(--radius-sm); aspect-ratio: 1; height: auto; width: 100%; object-fit: cover; }
.dentist-card h3 { font-size: 19px; }
.dentist-card .role { font-size: 13.5px; color: var(--ink-soft); margin: 2px 0 10px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tags li { font-size: 12.5px; font-weight: 600; background: var(--mint); padding: 4px 10px; border-radius: 999px; }
.days { font-size: 13.5px; display: flex; align-items: center; gap: 7px; color: var(--ink-soft); }

/* ---------- wizard -------------------------------------------------------- */
.band-book { background: var(--mint-soft); border-block: 1px solid var(--line); }
.wizard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(18px, 3vw, 32px); }
.steps { list-style: none; display: flex; gap: 6px 22px; flex-wrap: wrap; margin-bottom: 24px; }
.step { display: flex; align-items: center; gap: 8px; font: 600 14px var(--display); color: var(--ink-soft); }
.step span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); font-size: 13px; background: var(--paper);
}
.step.is-current { color: var(--ink); }
.step.is-current span { background: var(--ink); border-color: var(--ink); color: #fff; }
.step.is-done span { background: var(--mint); border-color: var(--mint-line); color: var(--ink); }

.wizard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(20px, 3vw, 36px); }
.wz-block + .wz-block { margin-top: 22px; }
.wz-label { display: block; font: 600 13px var(--display); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); margin-bottom: 9px; }
.wz-rowhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wz-note { font-size: 13.5px; color: var(--ink-soft); margin-top: 10px; }

.input {
  width: 100%; font: 500 15px var(--body); color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
  min-height: 44px;
}
.input:focus-visible { outline: 3px solid var(--coral); outline-offset: 1px; border-color: var(--ink); }

.dentist-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pick {
  display: grid; gap: 2px; text-align: left; padding: 13px 16px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
  font: 500 13.5px var(--body); color: var(--ink-soft); min-height: 44px;
}
.pick strong { font: 600 15.5px var(--display); color: var(--ink); }
.pick:hover { border-color: var(--ink); }
.pick[aria-pressed="true"] { border-color: var(--ink); background: var(--mint); }
.pick[disabled] { opacity: .45; cursor: not-allowed; }

.week-nav { display: flex; align-items: center; gap: 10px; }
.week-range { font: 600 14px var(--display); min-width: 120px; text-align: center; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper);
  font-size: 18px; cursor: pointer; line-height: 1;
}
.icon-btn:hover:not([disabled]) { border-color: var(--ink); }
.icon-btn[disabled] { opacity: .4; cursor: not-allowed; }

.day-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.day {
  display: grid; gap: 1px; justify-items: center; padding: 10px 4px 9px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
  cursor: pointer; font: 600 12px var(--display); color: var(--ink-soft); min-height: 44px;
}
.day .dnum { font-size: 17px; color: var(--ink); }
.day .dfree { font-size: 11px; font-weight: 600; color: var(--coral-deep); }
.day .dfree.none { color: var(--ink-soft); }
.day:hover:not([disabled]) { border-color: var(--ink); }
.day.is-on { border-color: var(--ink); background: var(--mint); }
.day[disabled] { opacity: .45; cursor: not-allowed; }

.time-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.time {
  font: 600 14px var(--display); padding: 10px 15px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; min-height: 40px;
}
.time:hover { border-color: var(--ink); }
.time.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

.details .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.details label { font-size: 13.5px; font-weight: 600; display: grid; gap: 6px; }
.form-error { color: var(--coral-deep); font-weight: 600; font-size: 14px; margin-bottom: 12px; }

.summary {
  background: var(--mint-soft); border: 1px solid var(--mint-line); border-radius: var(--radius);
  padding: 22px; position: sticky; top: 96px; align-self: start;
}
.summary h3 { font-size: 17px; margin-bottom: 14px; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--mint-line); font-size: 14px; }
.summary dt { color: var(--ink-soft); }
.summary dd { font-weight: 600; text-align: right; }
.sum-cost { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; }
.sum-cost span { font: 600 12px var(--display); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); }
.sum-cost strong { font-size: 30px; color: var(--coral-deep); }

.success { text-align: center; padding: 28px 12px 8px; display: grid; gap: 10px; justify-items: center; }
.success h3 { font-size: 26px; }
.code-line { font-size: 17px; }
.code-line strong { font-family: var(--display); background: var(--mint); padding: 4px 12px; border-radius: 8px; letter-spacing: .06em; }

.manage { margin-top: 22px; }
.manage summary { cursor: pointer; font: 600 15px var(--display); padding: 10px 2px; }
.manage-body { padding: 14px 2px; }
.manage-row { display: flex; gap: 10px; max-width: 380px; margin-bottom: 14px; }
.appt-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; max-width: 560px; display: grid; gap: 8px; }
.appt-card .row-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

/* ---------- assistant ----------------------------------------------------- */
.band-assistant { background: var(--ink); color: #E9F2EE; }
.band-assistant .q { color: #fff; }
.sub-light { color: #B9CEC7; }
.transcript { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 12px; margin-bottom: 20px; max-width: 56ch; }
.transcript .who { font: 600 11.5px var(--display); text-transform: uppercase; letter-spacing: .08em; color: #8FB8AA; display: block; margin-bottom: 2px; }
.transcript .who-studio { color: #FFB4A1; }
.transcript strong { color: #fff; }

.agent-slot {
  display: flex; gap: 16px; align-items: center;
  border: 1.5px dashed rgba(255, 255, 255, 0.35); border-radius: var(--radius); padding: 16px 18px; max-width: 56ch;
}
.agent-slot p { font-size: 13.5px; color: #B9CEC7; }
.agent-slot strong { color: #fff; font-family: var(--display); }
.mic-btn {
  width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer; flex: none;
  background: var(--coral); color: #2B0B03; display: grid; place-items: center;
}
.mic-btn .ic { width: 24px; height: 24px; }
.mic-btn:hover { background: #FF7052; }
@media (prefers-reduced-motion: no-preference) {
  .mic-btn { animation: pulse 2.6s ease-in-out infinite; }
  @keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 60, .45); } 50% { box-shadow: 0 0 0 12px rgba(255, 90, 60, 0); } }
}

.agent-calendar { display: grid; gap: 18px; }
.agent-cal-title { font: 600 15px var(--display); color: #B9CEC7; }
.mini-week { background: var(--paper); color: var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); max-width: 420px; }
.mini-head { font: 600 13px var(--display); text-transform: uppercase; letter-spacing: .07em; background: var(--mint); padding: 10px 16px; }
.mini-rows { padding: 6px 0; }
.mini-row { display: flex; gap: 14px; align-items: baseline; padding: 9px 16px; border-bottom: 1px dashed var(--line); font-size: 14px; }
.mini-row:last-child { border-bottom: none; }
.mini-row span { font: 600 13.5px var(--display); min-width: 64px; }
.mini-row em { font-style: normal; }
.mini-row .taken { color: var(--ink-soft); }
.mini-row .free { color: var(--coral-deep); font-weight: 600; }
.mini-row.is-write { background: var(--mint-soft); }
.mini-row.is-write b { color: var(--coral-deep); font-weight: 600; margin-left: 6px; }
.waiting-photo img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- reviews ------------------------------------------------------- */
.review-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 12px; align-content: start; }
.review .stars { color: var(--coral-deep); font-size: 15px; letter-spacing: 2px; }
.review .stars .muted { letter-spacing: 0; font-size: 12px; }
.review footer { font-size: 13px; color: var(--ink-soft); }

/* ---------- faq + visit --------------------------------------------------- */
.faq-list { border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center;
  font: 600 16px var(--display); padding: 15px 2px; min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 21px; color: var(--coral-deep); flex: none; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .a { padding: 0 2px 16px; color: var(--ink-soft); max-width: 60ch; }

address { font-style: normal; margin-bottom: 18px; }
.map { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--mint-line); margin-bottom: 18px; }
.map svg { width: 100%; height: auto; display: block; }
.map-label { font: 600 11px var(--body); fill: var(--ink-soft); }
.map-pin-label {
  position: absolute; left: 50%; top: 24%; transform: translateX(-2%);
  background: var(--ink); color: #fff; font: 600 12px var(--display);
  padding: 5px 10px; border-radius: 7px; white-space: nowrap;
}
.hours { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.hours th { text-align: left; font-weight: 600; padding: 8px 0; }
.hours td { text-align: right; padding: 8px 0; color: var(--ink-soft); }
.hours tr + tr { border-top: 1px dashed var(--line); }

/* ---------- footer -------------------------------------------------------- */
.site-foot { background: var(--ink); color: #B9CEC7; padding: 48px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 32px; margin-bottom: 30px; }
.site-foot h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.site-foot nav { display: grid; gap: 8px; align-content: start; }
.site-foot a { color: #B9CEC7; text-decoration: none; font-size: 14px; display: block; margin-bottom: 6px; }
.site-foot a:hover { color: #fff; }
.brand-light { color: #fff; margin-bottom: 12px; }
.site-foot p { font-size: 13.5px; }
.foot-legal { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 18px; font-size: 12.5px; }
.foot-legal a { display: inline; color: #A8E6D2; }

/* ---------- voice dock ---------------------------------------------------- */
.voice-dock {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; align-items: center; gap: 9px;
  background: var(--coral); color: #2B0B03; border: none; cursor: pointer;
  font: 600 14.5px var(--display); padding: 13px 19px; border-radius: 999px;
  box-shadow: 0 12px 28px -8px rgba(194, 55, 27, 0.5); min-height: 48px;
}
.voice-dock:hover { background: #FF7052; }
.voice-dock .ic { width: 19px; height: 19px; }

/* ---------- responsive ---------------------------------------------------- */
@media (max-width: 1024px) {
  .two-col { grid-template-columns: 1fr; }
  .dentist-row { grid-template-columns: 1fr; }
  .wizard-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .review-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .site-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; min-height: 300px; }
  .hero-photo img { position: static; height: 300px; }
  .hero-copy { margin-left: 0; max-width: none; }
  .statband { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-head { gap: 12px; }
  .brand { font-size: 15px; }
  .phone-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .day-strip { grid-template-columns: repeat(7, minmax(42px, 1fr)); overflow-x: auto; }
  .details .form-grid { grid-template-columns: 1fr; }
  .dentist-card { grid-template-columns: 96px 1fr; }
  .price-row { grid-template-columns: minmax(0, 1fr) auto; }
  .price-row .dur { display: none; }
  .voice-dock span { display: none; }
  .voice-dock { padding: 14px; }
}
