/* Basma Dental: calm and clean. Shared by index.html, booking.html and admin.html. */
:root {
  --canvas: #F3F5F2;
  --paper: #FBFCFA;
  --ink: #15302D;
  --ink-2: #4E625E;
  --line: #DAE2DE;
  --teal: #1D6B66;
  --teal-2: #155652;
  --mint: #DCEEEA;
  --mint-2: #C3E2DB;
  --smile: #E08E6D;
  --peach: #F6DED3;
  --warn: #9A3B26;
  --warn-bg: #F8E3DC;
  --ok-bg: #DDF0E4;
  --r-lg: 28px;
  --r: 20px;
  --r-sm: 14px;
  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "DM Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(21, 48, 45, .05), 0 18px 40px -18px rgba(21, 48, 45, .22);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--canvas); color: var(--ink); scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 17px/1.6 var(--f-body); background: var(--canvas); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--smile); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 40px, 1160px); margin-inline: auto; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* one fixed background layer: two faint glows */
.env { position: fixed; inset: 0; height: 100lvh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55vmax 45vmax at 92% -8%, rgba(195, 226, 219, .55), transparent 62%),
    radial-gradient(48vmax 40vmax at -12% 46%, rgba(246, 222, 211, .5), transparent 62%),
    var(--canvas); }

.eyebrow { font: 500 13px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 0; }
h1, h2 { font-family: var(--f-display); font-weight: 500; font-variation-settings: "SOFT" 100, "opsz" 144; letter-spacing: -.02em; }
h3 { font-family: var(--f-body); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--teal); color: #fff; font: 600 16px/1.1 var(--f-body); text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:hover { background: var(--teal-2); }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--mint-2); }
.btn.light { background: var(--mint); color: var(--ink); }
.btn.light:hover { background: #fff; }
.btn.small { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn.danger { background: var(--warn); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(243, 245, 242, .94); border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s; }
.top.scrolled { border-color: var(--line); background: rgba(243, 245, 242, .98); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 22px/1 var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 48; letter-spacing: -.01em; min-width: 0; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand em { font-style: normal; color: var(--ink-2); font-weight: 400; }
.top nav { margin-left: auto; }
.top nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.top nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.top nav a:hover { color: var(--ink); }
@media (max-width: 860px) { .top nav { display: none; } .top .btn { margin-left: auto; } }
@media (max-width: 380px) { .brand em { display: none; } }

/* hero */
.hero { padding: 48px 0 92px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(42px, 6vw, 76px); line-height: 1.02; margin: 16px 0 22px; }
.smile-word { position: relative; display: inline-block; }
.smile { position: absolute; left: -3%; width: 106%; height: .36em; bottom: -.2em; overflow: visible; }
.smile path, .big-smile path { fill: none; stroke: var(--smile); stroke-width: 7; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 33em; margin: 0; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 24px; }
.trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; color: var(--ink-2); }
.trust li { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.trust svg { width: 18px; height: 18px; color: var(--teal); flex: none; }

.hero-media { position: relative; min-width: 0; }
.hero-photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5 / 4.4; background: var(--mint); box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.deposit-chip { position: absolute; top: 18px; right: 18px; margin: 0; padding: 8px 14px; border-radius: 999px; background: rgba(251, 252, 250, .94); font: 500 13px/1.2 var(--f-mono); color: var(--ink); }
.slot-card { position: absolute; left: -30px; bottom: -34px; width: min(300px, 78%); padding: 18px 20px; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.slot-card p { margin: 0; }
.slot-label { display: flex; align-items: center; gap: 8px; font: 500 12px/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #3BA37A; box-shadow: 0 0 0 0 rgba(59, 163, 122, .45); animation: breathe 2.6s ease-in-out infinite; flex: none; }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(59, 163, 122, .4); } 50% { box-shadow: 0 0 0 7px rgba(59, 163, 122, 0); } }
.slot-when { font: 500 26px/1.15 var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 72; margin-top: 6px !important; }
.slot-sub { color: var(--ink-2); font-size: 15px; }
.slot-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; font-size: 15px; text-decoration: none; }
.slot-go svg { width: 16px; height: 16px; }
@media (max-width: 900px) {
  .hero { padding: 28px 0 80px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .hero-photo { aspect-ratio: 4 / 3.2; }
  .slot-card { left: 14px; bottom: -30px; }
}
@media (max-width: 520px) { .lead { font-size: 17.5px; } .ctas .btn { flex: 1 1 auto; } }

/* sections */
.section { padding: 92px 0; }
.section.tight { padding: 24px 0; }
.sec-head { max-width: 40em; margin-bottom: 40px; min-width: 0; }
.sec-head h2 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.06; margin: 12px 0 14px; font-variation-settings: "SOFT" 100, "opsz" 96; }
.sec-head p:not(.eyebrow) { color: var(--ink-2); margin: 0; }
@media (max-width: 700px) { .section { padding: 68px 0; } .sec-head { margin-bottom: 28px; } }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step { min-width: 0; padding: 28px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.step-ico { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--mint); overflow: visible; }
.step-ico path { fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .step.rv .step-ico path { stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease) .25s; }
.js .step.rv.in .step-ico path { stroke-dashoffset: 0; }
.step .num { font: 500 13px var(--f-mono); color: var(--teal); margin: 18px 0 0; }
.step h3 { font-size: 21px; line-height: 1.25; margin: 6px 0 8px; }
.step p:last-child { margin: 0; color: var(--ink-2); }
@media (max-width: 820px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* treatments */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--mint-2); }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card h3 { font-size: 20px; line-height: 1.25; margin: 0; min-width: 0; }
.card .price { margin: 0; font: 500 26px/1 var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 72; white-space: nowrap; color: var(--teal); }
.card .meta { margin: 0; font: 500 13px/1.4 var(--f-mono); color: var(--ink-2); }
.card p:not(.meta):not(.price) { margin: 0; color: var(--ink-2); font-size: 16px; flex: 1; }
.card .btn { align-self: flex-start; margin-top: 8px; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* booking */
.book { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.book-form { min-width: 0; padding: 30px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
.book fieldset { border: 0; margin: 0 0 30px; padding: 0; min-width: 0; }
.book fieldset.last { margin-bottom: 0; }
.book legend { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 0; margin-bottom: 14px; font-weight: 600; font-size: 17px; }
.book legend .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--mint); color: var(--teal); font: 500 13px var(--f-mono); }
.legend-note { font: 500 13px var(--f-mono); color: var(--ink-2); font-weight: 400; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .choice-grid, .choice-grid.three { grid-template-columns: minmax(0, 1fr); } }
.choice { position: relative; display: block; min-width: 0; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 12px 16px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--canvas); transition: border-color .2s, background-color .2s, box-shadow .2s; min-width: 0; }
.opt b { font-weight: 600; min-width: 0; }
.opt small { font: 500 13px/1.3 var(--f-mono); color: var(--ink-2); white-space: nowrap; }
.opt .sub { display: block; font: 400 13px/1.3 var(--f-body); color: var(--ink-2); }
.choice:hover .opt { border-color: var(--mint-2); }
.choice input:checked + .opt { border-color: var(--teal); background: var(--mint); box-shadow: inset 0 0 0 1px var(--teal); }
.choice input:focus-visible + .opt { outline: 3px solid var(--smile); outline-offset: 2px; }
.choice input:disabled { cursor: not-allowed; }
.choice input:disabled + .opt { opacity: .42; }

.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day .opt { flex-direction: column; justify-content: center; gap: 1px; min-height: 64px; padding: 8px 2px; text-align: center; }
.day .wd { font: 500 12px/1.2 var(--f-mono); color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.day .dn { font: 600 19px/1.15 var(--f-body); }
.day .dot { width: 5px; height: 5px; border-radius: 50%; background: #3BA37A; margin-top: 3px; }
.day input:disabled + .opt .dot { background: transparent; }
.day input:disabled + .opt .dn { text-decoration: line-through; text-decoration-thickness: 1px; }
@media (max-width: 400px) { .days { gap: 4px; } .day .opt { padding: 6px 0; border-radius: 10px; } .day .wd { font-size: 11px; letter-spacing: 0; } .day .dn { font-size: 17px; } }
.tgroup + .tgroup { margin-top: 14px; }
.tgroup h4 { margin: 0 0 8px; font: 500 12px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.time .opt { justify-content: center; min-height: 46px; padding: 8px 4px; font: 500 15px/1 var(--f-mono); }
.hint { margin: 0; color: var(--ink-2); font-size: 15px; }
.skeleton { height: 64px; border-radius: var(--r-sm); background: linear-gradient(90deg, var(--canvas), var(--mint), var(--canvas)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.retry { margin-top: 10px; }
.span-all { grid-column: 1 / -1; }
.days { transition: opacity .2s; }
.day.today .wd { color: var(--teal); font-weight: 600; }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 560px) { .two { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field label { font-weight: 600; font-size: 15px; }
.opt-l { font-weight: 400; color: var(--ink-2); }
.field input, .field textarea, .field select { width: 100%; min-width: 0; padding: 13px 14px; font-size: 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--canvas); transition: border-color .2s, background-color .2s; }
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); background: #fff; }
.field input[aria-invalid="true"] { border-color: var(--warn); background: var(--warn-bg); }

.summary { position: sticky; top: 90px; min-width: 0; padding: 28px; border-radius: var(--r-lg); background: var(--ink); color: #E7F0ED; }
.summary h3 { margin: 0 0 16px; font: 500 26px/1.1 var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 72; color: #fff; }
.sum-list { margin: 0; display: grid; gap: 12px; }
.sum-list div { display: grid; gap: 2px; min-width: 0; }
.sum-list dt { font: 500 12px/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: #9DB7B1; }
.sum-list dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.sum-list dd.muted { color: #9DB7B1; font-weight: 400; }
.sum-pay { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 20px 0 16px; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.sum-pay div { display: grid; min-width: 0; }
.sum-pay span { font-size: 14px; color: #9DB7B1; }
.sum-pay b { font: 500 26px/1.2 var(--f-display); color: #fff; }
.summary .fine { margin: 12px 0 0; font-size: 14px; color: #9DB7B1; }
.msg { margin: 0 0 12px; font-size: 15px; font-weight: 500; }
.msg:empty { display: none; }
.summary .msg { color: #FFD2C2; }
@media (max-width: 960px) { .book { grid-template-columns: minmax(0, 1fr); } .summary { position: static; } }
@media (max-width: 520px) { .book-form, .summary { padding: 22px 18px; border-radius: 22px; } }

/* team */
.team { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px; align-items: stretch; }
.doc { min-width: 0; padding: 28px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.avatar { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 0 18px; border-radius: 50%; background: var(--mint); color: var(--teal); font: 500 30px/1 var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 72; }
.avatar.peach { background: var(--peach); color: #A2553A; }
.doc h3 { margin: 0; font: 500 26px/1.1 var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 72; }
.doc .role { margin: 4px 0 12px; font: 500 13px var(--f-mono); color: var(--teal); }
.doc p:last-child { margin: 0; color: var(--ink-2); }
.team-photo { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.team-photo img { flex: 1; min-height: 220px; width: 100%; object-fit: cover; border-radius: var(--r); }
.team-photo figcaption { font-size: 15px; color: var(--ink-2); }
@media (max-width: 960px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } .team-photo { grid-column: 1 / -1; } .team-photo img { aspect-ratio: 16 / 9; } }
@media (max-width: 600px) { .team { grid-template-columns: minmax(0, 1fr); } }

/* the room */
.room { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; min-height: clamp(320px, 48vw, 560px); background: var(--mint); }
.room img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.room figcaption { position: absolute; left: 20px; bottom: 20px; max-width: min(420px, calc(100% - 40px)); padding: 18px 20px; border-radius: 18px; background: rgba(251, 252, 250, .95); font: 500 22px/1.25 var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 48; }
.room figcaption .eyebrow { display: block; margin-bottom: 6px; }

/* faq */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 48px; align-items: start; }
.qa { min-width: 0; border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 2px; cursor: pointer; list-style: none; font-weight: 600; font-size: 18px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 14px; height: 14px; background:
  linear-gradient(var(--teal), var(--teal)) center / 14px 2px no-repeat,
  linear-gradient(var(--teal), var(--teal)) center / 2px 14px no-repeat; transition: transform .3s var(--ease); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p { margin: 0 0 20px; color: var(--ink-2); max-width: 36em; }
@media (max-width: 860px) { .faq { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

/* visit */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 36px; align-items: stretch; }
.visit-info { min-width: 0; }
.visit-info h2 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.06; margin: 12px 0 10px; }
.visit-info > p:not(.eyebrow) { color: var(--ink-2); margin: 0; }
.hours { margin: 22px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours dt { color: var(--ink-2); }
.hours dd { margin: 0; font: 500 15px var(--f-mono); white-space: nowrap; }
.map-wrap { position: relative; min-height: 360px; border-radius: var(--r-lg); overflow: hidden; background: var(--mint); min-width: 0; }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.55) contrast(.98); }
.map-pin { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; transform: translate(-50%, -92%); pointer-events: none; filter: drop-shadow(0 4px 6px rgba(21, 48, 45, .3)); }
.map-open { position: absolute; left: 14px; bottom: 14px; padding: 10px 16px; border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; box-shadow: var(--shadow); }
@media (max-width: 860px) { .visit { grid-template-columns: minmax(0, 1fr); } .map-wrap { min-height: 300px; } }

/* footer */
.foot { padding: 56px 0 44px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1.4fr); gap: 32px; }
.foot-grid > * { min-width: 0; }
.foot p { margin: 14px 0 0; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot nav a { color: var(--ink-2); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.made-up { margin: 0 !important; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; } }

/* deposit dialog */
dialog { width: min(480px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--paper); color: var(--ink); box-shadow: 0 40px 90px -30px rgba(21, 48, 45, .55); overflow: auto; overscroll-behavior: contain; }
dialog::backdrop { background: rgba(21, 48, 45, .5); }
dialog[open] { animation: pop .45s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.dlg { padding: 28px; }
.dlg h3 { margin: 14px 0 16px; font: 500 30px/1.1 var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 72; }
.dlg > p { color: var(--ink-2); }
.timer { display: inline-flex; margin: 0; padding: 6px 12px; border-radius: 999px; background: var(--mint); color: var(--teal); font: 500 14px/1.2 var(--f-mono); }
.timer.low { background: var(--warn-bg); color: var(--warn); }
.mini { margin: 0 0 16px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.mini div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.mini dt { color: var(--ink-2); flex: none; }
.mini dd { margin: 0; font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.mini dd.code { font: 500 16px var(--f-mono); letter-spacing: .04em; }
.demo-note { margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: var(--peach); color: #5B3324 !important; font-size: 15px; }
.dlg .msg { color: var(--warn); }
.dlg-actions { display: grid; gap: 10px; }
.dlg-actions.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 14px; }
@media (max-width: 420px) { .dlg { padding: 22px 18px; } .dlg-actions.two { grid-template-columns: minmax(0, 1fr); } }
.done { text-align: center; }
.done .mini { text-align: left; }
.big-smile { width: 150px; height: 50px; margin: 6px auto 0; display: block; overflow: visible; }
.big-smile path { stroke-width: 9; }
.js dialog .big-smile path { stroke-dashoffset: 1; }
.js dialog .done.drawn .big-smile path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease) .15s; }
.done h3 { outline: none; }
.done-line { margin: 0 0 18px; font-size: 17px; }
.manage { display: inline-block; margin: 2px 0 6px; font-weight: 600; }
.fine { font-size: 14px; color: var(--ink-2); }
.done .fine { margin: 6px 0 18px; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite; }
.btn.light .spin, .btn.ghost .spin { border-color: rgba(21, 48, 45, .2); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

/* first-load intro + reveal on scroll */
.js .intro { opacity: 0; }
.go .intro { animation: rise 1s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 80ms); }
.go .hero-media.intro { animation-name: settle; animation-duration: 1.3s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.js .smile path { stroke-dashoffset: 1; }
.go .smile path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--ease) .75s; }
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .rv.in { opacity: 1; transform: none; }
.iab-still .intro, .iab-still .rv { opacity: 1 !important; transform: none !important; animation: none !important; }
.iab-still .smile path, .iab-still .step-ico path { stroke-dashoffset: 0 !important; }
@media (prefers-reduced-motion: reduce) {
  .go .intro, .go .hero-media.intro { animation: fade .5s both; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  .js .rv { transform: none; transition: opacity .5s; }
  .live-dot, .skeleton { animation: none; }
  .js .smile path, .js .step-ico path, .js dialog .big-smile path { stroke-dashoffset: 0; transition: none; }
  dialog[open] { animation: none; }
}
