/* Stittsville Dental Studio. Brand: deep indigo + clinic purple (#634ae8, from the
   site and social templates) + mint accent; the logo is white, so header and
   footer are dark. Mobile-first; small-phone rules per the global directive. */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/assets/fonts/inter-latin.woff2) format('woff2');
}
:root {
  --ink: #1b1838; --ink-2: #4a4766; --line: #e3e0f2; --bg: #fff; --bg-soft: #f6f4fd;
  --night: #15123a; --indigo: #221d6b; --purple: #634ae8; --purple-d: #4f37cf;
  --mint: #8ee6d8; --mint-d: #0f766e; --radius: 14px; --shadow: 0 10px 30px rgba(27,24,56,.08);
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 130px; }
body { margin: 0; font: 400 1.0625rem/1.65 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-d); text-underline-offset: 3px; }
a:hover { color: var(--indigo); }
a[href^="mailto:"] { overflow-wrap: anywhere; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; color: var(--ink); text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.2rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.22rem; font-weight: 700; }
p, ul, ol { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: #fff; padding: 10px 16px; z-index: 100; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.4em; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-d); color: #fff; }
.btn-mint { background: var(--mint); color: var(--night); }
.btn-mint:hover { background: #b4efe6; color: var(--night); }
.btn-ghost { border-color: currentColor; color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-line { border-color: var(--purple); color: var(--purple-d); background: #fff; }

/* top bar + header */
.topbar { background: var(--night); color: #cfcbf2; font-size: .86rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar-in { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar-links { display: flex; gap: 20px; white-space: nowrap; }
.site-head { background: var(--indigo); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 14px rgba(0,0,0,.18); }
.head-in { display: flex; align-items: center; gap: 24px; min-height: 76px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: block; flex: 0 0 auto; }
.brand img { height: 96px; width: auto; } /* same size as the old site (h-24) */
.nav { margin-left: auto; }
.menu { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.menu > li > a { display: block; padding: .6em .85em; color: #fff; text-decoration: none; font-weight: 600; font-size: .98rem; border-radius: 8px; white-space: nowrap; }
.menu > li > a:hover, .menu > li > a[aria-current="page"] { background: rgba(255,255,255,.1); color: #fff; }
.menu > li > a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--mint); }
.has-sub { position: relative; display: flex; align-items: center; }
.sub-toggle { display: none; }
.sub { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: #fff; border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(21,18,58,.25); padding: 22px 26px; gap: 30px; grid-template-columns: repeat(3, minmax(0, 210px)); }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: grid; }
.has-sub-1 .sub { grid-template-columns: 220px; padding: 16px 22px; }
.sub ul { list-style: none; margin: 0; padding: 0; min-width: 0; }
.sub a { display: block; padding: .35em 0; color: var(--ink); text-decoration: none; font-size: .95rem; }
.sub a:hover { color: var(--purple-d); }
.sub-head { font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-2); font-weight: 700; margin-bottom: 6px; }
.sub-all { font-weight: 700; color: var(--purple-d) !important; }
.head-cta { flex: 0 0 auto; }
.nav-toggle { display: none; }
.mobile-bar { display: none; }

/* breadcrumbs */
.crumbs { background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: .88rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; max-width: var(--wrap); margin: 0 auto; padding: 10px 24px; }
.crumbs li + li::before { content: '/'; margin-right: 4px; color: #a7a3c4; }
.crumbs a { color: var(--ink-2); }

/* hero */
.hero { position: relative; background: radial-gradient(1200px 500px at 85% 20%, #3b2fa6 0%, transparent 60%), linear-gradient(160deg, var(--indigo), var(--night)); color: #fff; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: end; padding-top: 64px; }
.hero-in > * { min-width: 0; }
.hero-copy { padding-bottom: 64px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--mint); }
.hero-lead { font-size: 1.15rem; color: #dcd9f7; max-width: 36em; }
.eyebrow { display: inline-block; font-size: .78rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; color: var(--mint); margin-bottom: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 28px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; font-size: .95rem; color: #e9e7fb; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2315123a' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 11-11-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat; flex: 0 0 auto; }
.hero-photo { position: relative; align-self: end; }
.hero-photo img { width: 100%; max-width: 520px; margin-left: auto; border-radius: 24px 24px 0 0; }
.hero-badge { position: absolute; left: 0; bottom: 28px; background: #fff; color: var(--ink); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); font-size: .9rem; line-height: 1.35; }
.hero-badge strong { display: block; font-size: 1rem; }
.page-hero { background: linear-gradient(160deg, var(--indigo), var(--night)); color: #fff; padding: 54px 0 50px; }
.page-hero h1 { color: #fff; margin-bottom: .35em; }
.page-hero p { color: #dcd9f7; font-size: 1.12rem; max-width: 46em; margin: 0; }
.page-hero .hero-actions { margin-bottom: 0; }

/* sections */
.sec { padding: 72px 0; }
.sec-soft { background: var(--bg-soft); }
.sec-head { max-width: 760px; margin-bottom: 36px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: block; font-size: .78rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; color: var(--purple-d); margin-bottom: 8px; }
.lead { font-size: 1.12rem; color: var(--ink-2); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-3 > *, .grid-2 > *, .split > *, .foot-grid > *, .form-grid > * { min-width: 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.svc-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); overflow: hidden; padding: 0; transition: transform .2s, box-shadow .2s; }
.svc-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(27,24,56,.14); color: var(--ink); }
.svc-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.svc-card .svc-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.svc-card p { color: var(--ink-2); font-size: .98rem; }
.svc-card .more { margin-top: auto; font-weight: 700; color: var(--purple-d); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips a { display: inline-block; padding: .5em 1em; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.chips a:hover { border-color: var(--purple); color: var(--purple-d); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.split-media img { border-radius: 20px; box-shadow: var(--shadow); }
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 32px; margin-bottom: .6em; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .28em; width: 20px; height: 20px; border-radius: 50%; background: #ece8ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234f37cf' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 11-11-1.4-1.4z'/%3E%3C/svg%3E") center/15px no-repeat; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; position: relative; padding: 18px 20px 18px 66px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--purple); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps strong { display: block; }
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.trust > div { background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); min-width: 0; }
.trust strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.trust span { color: var(--ink-2); font-size: .95rem; }
.quote { margin: 0; }
.quote blockquote { margin: 0 0 14px; font-size: 1.02rem; }
.quote figcaption { font-weight: 700; color: var(--ink-2); font-size: .95rem; }
.stars { color: #f5a524; letter-spacing: 2px; font-size: 1.05rem; margin-bottom: 8px; }
.note { background: #fff8e6; border: 1px solid #f3dd9b; border-radius: 12px; padding: 14px 18px; font-size: .96rem; }
.note-info { background: #eefbf8; border-color: #b6ebe1; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.content-grid > * { min-width: 0; }
.aside { position: sticky; top: 100px; display: grid; gap: 18px; }
.aside .card h2 { font-size: 1.2rem; }
.aside-cta { background: linear-gradient(160deg, var(--indigo), var(--night)); color: #fff; border: 0; }
.aside-cta h2, .aside-cta p { color: #fff; }
.aside-cta .btn { width: 100%; margin-top: 8px; }
.related { list-style: none; padding: 0; margin: 0; }
.related li { border-top: 1px solid var(--line); }
.related a { display: block; padding: .55em 0; text-decoration: none; font-weight: 600; }

/* FAQ */
.faqs { display: grid; gap: 12px; max-width: 860px; }
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
details.faq summary { cursor: pointer; font-weight: 700; padding: 16px 28px 16px 0; list-style: none; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; position: absolute; right: 0; top: 12px; font-size: 1.5rem; color: var(--purple); }
details.faq[open] summary::after { content: '\2212'; }
details.faq > div { padding-bottom: 14px; color: var(--ink-2); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--purple), var(--indigo)); color: #fff; padding: 56px 0; }
.cta-band-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .2em; }
.cta-band p { margin: 0; color: #e4e0ff; }
.cta-band .hero-actions { margin: 0; }

/* map + hours */
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); aspect-ratio: 4 / 3; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-wrap .map-load { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 20px; }
.hours { border-collapse: collapse; width: 100%; font-size: .96rem; }
.hours th, .hours td { text-align: left; padding: 6px 0; vertical-align: top; }
.hours th { font-weight: 600; padding-right: 14px; white-space: nowrap; }

/* forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label, .field .label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.req { color: #b42318; }
input[type=text], input[type=email], input[type=tel], input[type=date], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .7em .85em; border: 1.5px solid #cfcbe4; border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--purple); outline: 3px solid rgba(99,74,232,.18); outline-offset: 0; }
textarea { min-height: 120px; resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px 8px; margin: 0 0 22px; min-width: 0; }
legend { font-weight: 800; font-size: 1.15rem; padding: 0 8px; }
.q { padding: 14px 0; border-top: 1px solid var(--line); }
.q:first-of-type { border-top: 0; }
.q > p, .q > .label { font-weight: 600; margin-bottom: 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.opts label, .checks label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }
.checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 18px; }
.checks > * { min-width: 0; }
input[type=radio], input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--purple); flex: 0 0 auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; font-weight: 600; }
.form-msg.err { background: #fdecec; border: 1px solid #f5c2c0; color: #8a1c14; }
.form-foot { font-size: .9rem; color: var(--ink-2); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; }
.consent input { margin-top: 4px; }

/* footer */
.site-foot { background: var(--night); color: #cfcbf2; margin-top: 0; font-size: .96rem; }
.site-foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
.foot-brand img { height: 64px; width: auto; margin-bottom: 14px; }
.foot-col h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 8px; }
.foot-col a { text-decoration: none; }
.foot-col a:hover { text-decoration: underline; }
.foot-contact { font-style: normal; margin-bottom: 14px; line-height: 1.7; }
.site-foot .hours th { color: #fff; }
.foot-social { display: flex; gap: 16px; align-items: center; margin-top: 18px; }
.foot-social a { display: inline-flex; padding: 6px; border-radius: 8px; }
.foot-social a:hover { background: rgba(255,255,255,.08); }
.foot-base { border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; }
.foot-base-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }

/* tablet / phone */
@media (max-width: 72em) { /* em: switches sooner when the browser text size is larger */
  .head-cta { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: transparent; border: 0; cursor: pointer; }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 24px; height: 2px; background: #fff; position: relative; transition: transform .2s; }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ''; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -7px; } .nav-toggle-bar::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--indigo); flex-direction: column; align-items: stretch; padding: 8px 20px 20px; max-height: calc(100vh - 110px); overflow-y: auto; border-top: 1px solid rgba(255,255,255,.1); }
  .menu.open { display: flex; }
  .menu > li > a { padding: .85em .4em; font-size: 1.05rem; }
  .has-sub { flex-wrap: wrap; }
  .has-sub > a { flex: 1; }
  .sub-toggle { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; background: transparent; border: 0; cursor: pointer; }
  .sub-toggle span { width: 10px; height: 10px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); transition: transform .2s; }
  .sub-toggle[aria-expanded="true"] span { transform: rotate(-135deg); }
  .sub, .has-sub:hover .sub, .has-sub:focus-within .sub { display: none; position: static; transform: none; box-shadow: none; width: 100%; padding: 6px 12px 12px; grid-template-columns: minmax(0, 1fr); gap: 4px; background: rgba(255,255,255,.06); }
  .sub-toggle[aria-expanded="true"] + .sub { display: grid; }
  .sub a { color: #fff; }
  .sub-head { color: var(--mint); }
  .sub ul:last-child .sub-head { display: none; }
  .has-sub-1 .sub { grid-template-columns: minmax(0, 1fr); padding: 6px 12px 12px; }
  .hero-in { grid-template-columns: minmax(0, 1fr); padding-top: 44px; gap: 0; }
  .hero-copy { padding-bottom: 28px; }
  .hero-photo img { max-width: 360px; margin: 0 auto; }
  .hero-badge { left: 50%; transform: translateX(-50%); bottom: 18px; white-space: nowrap; }
  .grid-3, .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { padding-bottom: 64px; }
  .topbar-hours { display: none; }
  .topbar-in { justify-content: center; }
  .head-in { min-height: 66px; }
  .brand img { height: auto; width: min(264px, calc(100vw - 112px)); }
  .sec { padding: 52px 0; }
  .split, .grid-2, .form-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .form-grid { gap: 14px; }
  .split-media { order: -1; }
  .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-card { padding: 22px 18px; }
  fieldset { padding: 16px 14px 4px; }
  .mobile-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--night); border-top: 1px solid rgba(255,255,255,.12); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px; color: #fff; text-decoration: none; font-size: .78rem; font-weight: 600; }
  .mobile-bar a:nth-child(2) { background: var(--purple); }
}
@media (max-width: 560px) {
  .grid-3, .trust, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { gap: 28px; }
  .cta-band-in { flex-direction: column; align-items: flex-start; }
}
/* small phones (global directive) */
@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  h1, .hero h1 { font-size: clamp(1.5rem, 8vw, 2rem); }
  h2 { font-size: clamp(1.3rem, 6.4vw, 1.6rem); }
  .eyebrow, .kicker, .sub-head { font-size: min(.72rem, 3.3vw); letter-spacing: 1px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .checks { grid-template-columns: minmax(0, 1fr); }
  .topbar-links { gap: 14px; font-size: .82rem; }
  .hero-badge { white-space: normal; width: max-content; max-width: 90%; }
  .crumbs ol { padding: 8px 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .topbar, .site-head, .mobile-bar, .site-foot, .crumbs, .no-print { display: none !important; } }

.consent-text { overflow-wrap: anywhere; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: .94rem; color: var(--ink-2); margin: 0; }

/* signature pad (X-ray Release Form) */
.sig-pad { display: block; width: 100%; max-width: 700px; height: auto; aspect-ratio: 700 / 220; background: #fff; border: 1.5px dashed #9d97c9; border-radius: 10px; touch-action: none; cursor: crosshair; }
.sig.invalid .sig-pad { border-color: #b42318; }
.sig-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; margin: 8px 0 0; max-width: 700px; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--purple-d); text-decoration: underline; cursor: pointer; }

/* counter QR printout */
.qr-card { max-width: 640px; margin: 0 auto; text-align: center; border: 2px solid var(--line); border-radius: 22px; padding: 36px 28px; background: #fff; }
.qr-clinic { font-weight: 800; color: var(--purple-d); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.qr-card h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); text-wrap: balance; margin-bottom: 18px; }
.qr-img { width: min(320px, 100%); height: auto; margin: 0 auto 18px; }
.qr-steps { text-align: left; max-width: 420px; margin: 0 auto 16px; font-size: 1.05rem; }
.qr-url { overflow-wrap: anywhere; }
.qr-small { font-size: .9rem; color: var(--ink-2); margin: 0; }
.qr-sheet .note { margin-bottom: 22px; overflow-wrap: anywhere; }
@media print {
  @page { size: letter portrait; margin: 14mm; }
  body { background: #fff; }
  .qr-sheet { padding: 0; }
  .qr-card { border: 0; padding: 0; }
  .qr-img { width: 95mm; }
}
