:root {
  --porcelain: #f2f5f4;
  --surface: #ffffff;
  --ink: #1b2528;
  --ink-2: #3f4e54;
  --ink-3: #56656b;
  --line: #d3dcda;
  --line-strong: #aebebb;
  --stage: #0d1a1f;
  --ok: #24875a;
  --ok-bright: #52d398;
  --error: #b3261e;
  --accent: #1c6ea4;
  --accent-soft: color-mix(in oklab, var(--accent) 14%, white);
  --enamel-natural: #e9dcc0;
  --enamel-bright: #f1ebdc;
  --enamel-brilliant: #fbfaf6;
  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-ui: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.15rem, 1.5rem + 2.4vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
}

h2 {
  font-size: clamp(1.65rem, 1.35rem + 1vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.006em;
}

p {
  margin: 0 0 1em;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--accent) 55%, white);
  outline-offset: 2px;
}

/* Step headings take focus for screen readers; they aren't controls. */
[tabindex="-1"]:focus {
  outline: none;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--surface);
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 10;
}

.skip:focus {
  left: 8px;
}

/* Masthead ---------------------------------------------------------------- */

.masthead {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px 6px;
}

.wordmark {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 14px;
}

.wordmark-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.2;
}

.wordmark-place {
  color: var(--ink-3);
  font-size: 0.9375rem;
}

/* Studio layout ------------------------------------------------------------ */

.studio {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

@media (min-width: 920px) {
  .studio {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: 60px;
    align-items: start;
  }

  .stage {
    position: sticky;
    top: 20px;
  }

  .panel {
    padding-top: 28px;
  }
}

.stage {
  min-width: 0;
}

.compare,
.camera {
  position: relative;
  width: min(100%, calc((100dvh - 120px) * 0.8));
  aspect-ratio: 4 / 5;
  margin-inline: auto;
  border-radius: 28px;
  overflow: hidden;
  background: var(--stage);
  isolation: isolate;
}

.stage-caption {
  margin: 10px 0 0;
  text-align: center;
  color: var(--ink-3);
  font-size: 0.875rem;
}

/* Before / after ------------------------------------------------------------ */

.layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.layer.after {
  clip-path: inset(0 0 0 var(--pos));
}

.layer.overlay {
  pointer-events: none;
}

.compare.is-sweeping .layer.after,
.compare.is-sweeping .handle {
  transition: clip-path 1.3s var(--ease), left 1.3s var(--ease);
}

.tag {
  position: absolute;
  top: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(13, 26, 31, 0.58);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.tag-before {
  left: 14px;
}

.tag-after {
  right: 14px;
}

.handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 48px;
  margin-left: -24px;
  display: grid;
  place-items: center;
  cursor: ew-resize;
  touch-action: none;
  z-index: 2;
}

.handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.15);
}

.handle-knob {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.handle:focus-visible {
  outline: none;
}

.handle:focus-visible .handle-knob {
  outline: 3px solid color-mix(in oklab, var(--accent) 55%, white);
  outline-offset: 2px;
}

.compare[data-mode="single"] .after,
.compare[data-mode="single"] .handle,
.compare[data-mode="single"] .tag,
.compare[data-mode="locked"] .handle,
.compare[data-mode="locked"] .tag-before {
  display: none;
}

.compare[data-mode="locked"] .after {
  clip-path: none;
  filter: blur(16px) saturate(0.9);
  transform: scale(1.06);
}

.compare[data-mode="locked"] .tag-after {
  left: 50%;
  right: auto;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.9375rem;
  padding: 8px 16px;
}

/* Scan across the mouth while the AI works. */
.scan {
  position: absolute;
  left: var(--mx, 30%);
  top: var(--my, 55%);
  width: var(--mw, 40%);
  height: var(--mh, 18%);
  border-radius: 40% / 50%;
  box-shadow: 0 0 0 999px rgba(13, 26, 31, 0.42);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.compare.is-working .scan {
  opacity: 1;
}

.scan-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 34%;
  left: -34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: scan 1.4s var(--ease) infinite;
}

@keyframes scan {
  to {
    left: 100%;
  }
}

/* Camera --------------------------------------------------------------------- */

.camera-feed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.camera-guide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.guide-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 0.5;
  stroke-dasharray: 1.6 1.4;
  transition: stroke 0.2s;
}

.camera[data-ready] .guide-ring {
  stroke: var(--ok-bright);
  stroke-dasharray: none;
}

.guide-progress {
  fill: none;
  stroke: var(--ok-bright);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--hold, 0) * 100);
}

.camera-status {
  position: absolute;
  left: 50%;
  bottom: 104px;
  transform: translateX(-50%);
  margin: 0;
  max-width: calc(100% - 32px);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(13, 26, 31, 0.72);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shutter {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 68px;
  height: 68px;
  margin-left: -34px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: transparent;
  padding: 4px;
  cursor: pointer;
}

.shutter span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s var(--ease);
}

.shutter:active span {
  transform: scale(0.88);
}

.camera.is-flash::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  animation: flash 0.35s ease-out forwards;
}

@keyframes flash {
  from {
    opacity: 0.9;
  }
  to {
    opacity: 0;
  }
}

/* Panel ---------------------------------------------------------------------- */

.panel {
  min-width: 0;
  max-width: 540px;
}

.panel:focus {
  outline: none;
}

.step:not(.is-active) {
  display: none;
}

.step.is-active {
  animation: step-in 0.35s var(--ease);
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.lede {
  font-size: 1.125rem;
  color: var(--ink-2);
  max-width: 44ch;
}

.muted {
  color: var(--ink-3);
}

.fine {
  font-size: 0.875rem;
  color: var(--ink-3);
  margin-top: 14px;
}

.link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.1s;
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.btn.primary:hover {
  background: color-mix(in oklab, var(--accent) 86%, black);
}

.btn.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn.secondary:hover {
  border-color: var(--ink-3);
}

.btn.ghost {
  background: transparent;
  color: var(--ink-2);
  padding: 0 14px;
}

.btn.ghost:hover {
  color: var(--ink);
  background: rgba(27, 37, 40, 0.05);
}

.btn[aria-disabled="true"],
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 560px) {
  .actions .btn {
    flex: 1 1 100%;
  }
}

/* Intro ---------------------------------------------------------------------- */

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  font-size: 0.9375rem;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.2s;
}

.consent:has(input:checked) {
  border-color: var(--accent);
}

.consent.is-nudged {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.consent input,
.check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--accent);
}

.consent-hint {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9375rem;
  margin: -2px 0 0;
}

.privacy-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--ink-2);
  margin-top: 18px;
}

.privacy-note svg {
  flex: none;
  margin-top: 3px;
  color: var(--ok);
}

.samples {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.samples-title {
  font-weight: 600;
  margin-bottom: 12px;
}

.samples-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sample {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 500;
}

.sample:hover {
  border-color: var(--line-strong);
}

.sample img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

/* Camera checklist and progress ------------------------------------------- */

.checks,
.progress {
  list-style: none;
  margin: 8px 0 18px;
  padding: 0;
}

.checks li,
.progress li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
}

.checks li::before,
.progress li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: center / 13px no-repeat;
}

.checks li.is-ok,
.progress li.is-done {
  color: var(--ink);
}

.checks li.is-ok::before,
.progress li.is-done::before {
  border-color: var(--ok);
  background-color: var(--ok);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.5 3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.checks li.is-now {
  color: var(--ink);
  font-weight: 600;
}

.checks li.is-now::before {
  border-color: var(--accent);
}

.progress li.is-active {
  color: var(--ink);
  font-weight: 600;
}

.progress li.is-active::before {
  border-color: var(--line);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error {
  color: var(--error);
  font-weight: 600;
}

.notice {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff6e8;
  border: 1px solid #f0d5a8;
  color: #6b4613;
  font-size: 0.9375rem;
}

/* Treatments ------------------------------------------------------------------ */

.treatments {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.treat {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 2px 12px;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.treat input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--accent);
}

.treat:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.treat:has(input:disabled) {
  opacity: 0.5;
  cursor: not-allowed;
}

.treat-label {
  font-weight: 600;
}

.treat-detail {
  grid-column: 2;
  color: var(--ink-3);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.treatments.compact {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  margin-top: 12px;
}

.treatments.compact .treat {
  padding: 10px 12px;
  border-radius: 12px;
}

.treatments.compact .treat-detail {
  display: none;
}

/* Shade guide: the picker borrows the shape of a dentist's shade tabs. ----- */

.shades {
  border: 0;
  margin: 6px 0 18px;
  padding: 0;
}

.shades legend {
  font-weight: 600;
  margin-bottom: 10px;
  padding: 0;
}

.shade-row {
  display: flex;
  gap: 12px;
}

.shade {
  position: relative;
  flex: 1 1 0;
  max-width: 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px 10px;
  border-radius: 18px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.15s, box-shadow 0.15s;
}

.shade input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.shade svg {
  width: 44px;
  height: 66px;
  overflow: visible;
}

.shade .crown {
  stroke: rgba(27, 37, 40, 0.18);
  stroke-width: 1;
}

.shade .stem {
  fill: var(--line);
  transition: fill 0.15s;
}

.shade .code {
  font: 700 9px/1 var(--font-ui);
  fill: var(--ink-2);
  text-anchor: middle;
}

.shade-name {
  font-size: 0.9375rem;
  font-weight: 600;
}

.shade:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  transform: translateY(-3px);
}

.shade:has(input:checked) .stem {
  fill: var(--accent);
}

.shade:has(input:checked) .code {
  fill: #fff;
}

.shade:has(input:focus-visible) {
  outline: 3px solid color-mix(in oklab, var(--accent) 55%, white);
  outline-offset: 2px;
}

/* Result view controls ------------------------------------------------------- */

.view-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: #e4ebe9;
}

.seg {
  border: 0;
  background: transparent;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink-2);
  cursor: pointer;
}

.seg[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
}

.tool:hover {
  border-color: var(--line-strong);
}

.tool:disabled {
  opacity: 0.5;
  cursor: progress;
}

.again {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.again summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-2);
}

.start-over {
  margin-top: 6px;
  font-size: 0.9375rem;
}

/* Forms ------------------------------------------------------------------------ */

.field {
  margin: 0 0 16px;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.optional {
  font-weight: 400;
  color: var(--ink-3);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  font-size: 1.0625rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea {
  resize: vertical;
  min-height: 92px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field input[aria-invalid="true"] {
  border-color: var(--error);
}

.field-error {
  color: var(--error);
  font-size: 0.9375rem;
  margin: 6px 0 0;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 12px;
  font-size: 0.9375rem;
  color: var(--ink-2);
  cursor: pointer;
}

form .btn.primary {
  width: 100%;
  margin-top: 10px;
}

form .btn.ghost {
  width: 100%;
  margin-top: 6px;
}

.hp {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.chips {
  border: 0;
  margin: 0 0 18px;
  padding: 0;
}

.chips legend {
  font-weight: 600;
  margin-bottom: 8px;
  padding: 0;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  font-weight: 600;
  cursor: pointer;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip:has(input:checked) {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.chip:has(input:focus-visible) {
  outline: 3px solid color-mix(in oklab, var(--accent) 55%, white);
  outline-offset: 2px;
}

.sent-address {
  font-style: normal;
  color: var(--ink-2);
  margin-bottom: 8px;
}

/* Footer ------------------------------------------------------------------------ */

.site-foot {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 48px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px 40px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

@media (min-width: 760px) {
  .site-foot {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .foot-legal {
    grid-column: 1 / -1;
  }
}

.site-foot p {
  margin: 0 0 4px;
}

.foot-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
}

.foot-address {
  font-style: normal;
}

.foot-hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  margin: 0;
}

.foot-hours dt {
  color: var(--ink-3);
}

.foot-hours dd {
  margin: 0;
}

.foot-legal {
  color: var(--ink-3);
  font-size: 0.875rem;
}

.foot-legal .link {
  margin-left: 8px;
}

/* Sheets and toast ------------------------------------------------------------- */

.sheet {
  width: min(560px, calc(100% - 24px));
  max-height: min(86dvh, 760px);
  border: 0;
  border-radius: 24px;
  padding: 26px 24px 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(13, 26, 31, 0.35);
}

.sheet::backdrop {
  background: rgba(13, 26, 31, 0.55);
}

.sheet-body h2 {
  margin-top: 0;
}

.sheet-body h3 {
  font-size: 1.0625rem;
  margin: 1.2em 0 0.3em;
}

.sheet-body ul {
  padding-left: 1.2em;
  margin: 0 0 1em;
}

.sheet-body li {
  margin-bottom: 0.35em;
}

.sheet .actions {
  margin-top: 14px;
}

.video-frame {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background: var(--stage);
}

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.video-progress {
  position: absolute;
  inset: auto 0 0;
  margin: 0;
  padding: 12px;
  text-align: center;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(transparent, rgba(13, 26, 31, 0.8));
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  z-index: 20;
}

.human-hint {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 600;
}

/* Turnstile only shows itself when Cloudflare needs a click. */
.human-check {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 30;
}

/* Embedded in a practice website ---------------------------------------------- */

.embed .masthead,
.embed .site-foot {
  display: none;
}

.embed .studio {
  padding-top: 16px;
}

@media (max-width: 919px) {
  .studio {
    padding: 8px 16px 40px;
    gap: 22px;
  }

  .masthead {
    padding: 14px 16px 2px;
  }

  .site-foot {
    padding: 24px 16px 40px;
  }

  .compare,
  .camera {
    border-radius: 22px;
    width: min(100%, calc((100dvh - 150px) * 0.8));
  }

  .studio[data-step="camera"] .compare,
  .studio[data-step="camera"] .camera {
    width: min(100%, calc((100dvh - 90px) * 0.8));
  }

  /* On phones the first screen leads with the ask; the sample sits below as proof. */
  .studio[data-step="intro"] .panel {
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
