/* Devinci Tattoo booking funnel. Tokens mirror the design system's tokens.css. */
:root {
  --bg: #0b0b0d; --surface: #111113; --surface-2: #1b1b1e; --surface-3: #232327;
  --line: #37373b; --line-soft: #26262a; --line-strong: #6a6a72;
  --ink: #f0efed; --ink-dim: #a4a4ab; --ink-faint: #8a8a92; --ink-on-ember: #140a07;
  --ember: #c94a2a; --ember-bright: #e8603a; --ember-text: #ee6b3f; --ember-tint: #2a1611;
  --teal: #5ccbdc; --teal-tint: #0f2428; --blood: #e0344a; --error: #ffadb2;
  --glow-ember: 0 0 24px -4px rgba(201,74,42,0.55);
  --font-body: "Outfit", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; display: flex; justify-content: center; }
.shell { width: 100%; max-width: 440px; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
@media (min-width: 600px) { .shell { border-left: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); } }

.topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; border-bottom: 1px solid var(--line-soft); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 16px; letter-spacing: -0.03em; }
.brand img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.where { font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim); }

.progress { display: flex; gap: 4px; padding: 16px 24px 0; }
.progress span { flex: 1; height: 3px; background: var(--line); }
.progress span.on { background: var(--ink); }

.screen { display: none; flex-direction: column; flex: 1; }
.screen.active { display: flex; }
.pad { display: flex; flex-direction: column; gap: 24px; padding: 32px 24px 24px; flex: 1; }
.head { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.kicker { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ember-text); }
h1 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
h1.hero { font-size: 34px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; }
.helper { font-size: 14px; line-height: 1.5; color: var(--ink-dim); }
.lede { font-size: 16px; line-height: 1.5; color: var(--ink-dim); }
.meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim); }
.center { text-align: center; }
.grow { flex: 1; }

.hero-img { width: 100%; height: 220px; object-fit: cover; object-position: 50% 30%; display: block; }
.start { gap: 16px; padding-top: 24px; }

.cta { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; border: 0; cursor: pointer; background: var(--ember-bright); color: var(--ink-on-ember); font-family: inherit; font-weight: 600; font-size: 16px; border-radius: 4px; box-shadow: var(--glow-ember); transition: background .15s, color .15s; }
.cta:hover { background: var(--ember); color: var(--ink); }
.cta:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }

.opts { display: flex; flex-direction: column; gap: 12px; }
.opt { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 60px; padding: 12px 16px; text-align: left; cursor: pointer; background: var(--surface-2); border: 1.5px solid var(--line-strong); border-radius: 4px; color: var(--ink); font-family: inherit; transition: background .15s, border-color .15s; }
.opt:hover { border-color: var(--ink); background: var(--surface-3); }
.opt.picked { border-color: var(--ember-text); background: var(--ember-tint); }
.opt .key { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); width: 16px; flex-shrink: 0; }
.opt .label { font-size: 16px; font-weight: 600; line-height: 1.3; }
.opt .sub { font-size: 13px; color: var(--ink-dim); line-height: 1.4; margin-top: 2px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
.tile img { width: 100%; height: 190px; object-fit: cover; object-position: 50% 25%; display: block; }
.tile .label { padding: 12px; font-size: 15px; }

.back, .link { align-self: flex-start; background: none; border: 0; padding: 12px 0; cursor: pointer; font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim); text-decoration: none; }
.back:hover, .link:hover { color: var(--ink); }

.fields { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label-mono { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.field input, .field textarea { width: 100%; min-height: 48px; background: var(--surface-2); border: 1.5px solid var(--line-strong); border-radius: 2px; padding: 12px; font-family: inherit; font-size: 16px; line-height: 1.5; color: var(--ink); outline: none; resize: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus { border-color: var(--ember-text); box-shadow: 0 0 0 3px var(--ember-tint); }
.field.invalid input { border-color: var(--blood); }
.field .error { display: none; font-family: var(--font-mono); font-size: 11.5px; color: var(--error); }
.field.invalid .error { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 2px; border: 1px solid; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.fit { color: var(--teal); border-color: var(--teal); background: var(--teal-tint); }
.badge.fit::before { box-shadow: 0 0 6px currentColor; }
.badge.nofit { color: var(--ink-dim); border-color: var(--line-strong); background: var(--surface-2); }

.calendar { min-height: 660px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.calendar.empty { min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; border-style: dashed; border-color: var(--line-strong); }
.steps { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.step { display: flex; gap: 16px; }
.step .n { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); padding-top: 3px; }
.step .t { font-size: 15px; font-weight: 600; line-height: 1.4; }
.step .d { font-size: 13px; line-height: 1.45; color: var(--ink-dim); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.stats .v { font-size: 20px; font-weight: 600; line-height: 1.3; }
.photo { width: 100%; height: 240px; object-fit: cover; object-position: 50% 20%; display: block; }
.ghost { display: flex; align-items: center; justify-content: center; min-height: 52px; border: 1.5px solid var(--line-strong); border-radius: 4px; color: var(--ink); font-weight: 600; font-size: 16px; text-decoration: none; }
.ghost:hover { border-color: var(--ink); background: var(--surface-3); }

:focus-visible { outline: 2px solid var(--ember-text); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
