/* Serenae onboarding: the light wlabs glass system (see wlabs/styles.css), with a display serif
   for headlines. Light only, like the rest of wlabs. */

:root {
  --field: #b0bafe;
  --ink: #0d0e1a;
  --ink-2: rgba(13, 14, 26, 0.72);
  --muted: rgba(13, 14, 26, 0.52);
  --faint: rgba(13, 14, 26, 0.34);
  --line: rgba(13, 14, 26, 0.10);
  --line-2: rgba(13, 14, 26, 0.18);
  --ok: #1f7a55;
  --warn: #a0611c;
  --bad: #b23a3a;
  --accent: #3d45c9;

  --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.40));
  --glass-strong: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62));
  --glass-border: 1px solid rgba(255, 255, 255, 0.72);
  --glass-blur: blur(32px) saturate(1.9) brightness(1.12);
  --glass-shadow: 0 24px 56px rgba(30, 36, 110, 0.14), inset 0 1px 3px rgba(255, 255, 255, 0.35), inset 0 -1px 2px rgba(0, 0, 0, 0.04);
  --lift: 0 10px 28px rgba(30, 36, 110, 0.16);

  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --pill: 999px;

  --mono: "Space Mono", ui-monospace, "Courier New", monospace;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--field); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--field);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ── Ambient light behind the glass ─────────────────────────────── */
.ambient { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 80% at 50% -10%, #e9ecff 0%, rgba(233, 236, 255, 0) 60%); }
.ambient i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.75; animation: drift 26s var(--ease) infinite alternate; }
.ambient i:nth-child(1) { width: 52vw; height: 52vw; left: -12vw; top: -14vw; background: #fff; opacity: 0.55; }
.ambient i:nth-child(2) { width: 40vw; height: 40vw; right: -10vw; top: 18vh; background: #ffd9e8; animation-delay: -8s; }
.ambient i:nth-child(3) { width: 46vw; height: 46vw; left: 22vw; bottom: -22vw; background: #cfe9ff; animation-delay: -15s; }
@keyframes drift { to { transform: translate3d(4vw, -3vw, 0) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .ambient i { animation: none; } }

/* ── Glass ──────────────────────────────────────────────────────── */
.glass {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 90% at 15% 0%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 50%);
}

/* ── Top bar ────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 12px; z-index: 10;
  display: flex; align-items: center; gap: 20px;
  width: min(1180px, calc(100% - 32px)); margin: 12px auto 0; padding: 12px 18px 12px 22px;
  border-radius: var(--pill);
}
.wordmark { font-family: var(--serif); font-size: 22px; font-weight: 400; letter-spacing: -0.01em; text-decoration: none; position: relative; }
.progress { flex: 1; height: 3px; border-radius: var(--pill); background: var(--line); overflow: hidden; position: relative; }
.progress-bar { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ink); border-radius: inherit; transition: width 0.6s var(--ease); }
.step-count { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; position: relative; min-width: 7ch; text-align: right; }

/* ── Layout ─────────────────────────────────────────────────────── */
.layout {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 460px); gap: 28px; align-items: start;
  width: min(1180px, calc(100% - 32px)); margin: 24px auto 64px;
}
.panel { border-radius: var(--radius-xl); padding: clamp(28px, 4vw, 48px); min-height: 560px; }
.preview { position: sticky; top: 96px; display: grid; gap: 16px; }

/* ── Steps ──────────────────────────────────────────────────────── */
.step { position: relative; animation: enter 0.55s var(--ease) both; }
.step.leaving { animation: leave 0.22s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes leave { to { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .step, .step.leaving { animation: none; } }

.eyebrow { margin: 0 0 14px; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
h1 {
  margin: 0 0 12px; font-family: var(--serif); font-weight: 350; font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.04; letter-spacing: -0.02em; font-variation-settings: "opsz" 120;
}
.lede { margin: 0 0 28px; max-width: 46ch; color: var(--ink-2); font-size: 13px; line-height: 1.75; }
.fine { margin: 16px 0 0; font-size: 11px; line-height: 1.7; color: var(--muted); }
.shimmer { background: linear-gradient(90deg, var(--ink) 30%, rgba(13, 14, 26, 0.35) 50%, var(--ink) 70%); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Buttons ────────────────────────────────────────────────────── */
.actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 36px; }
.actions.start { justify-content: flex-start; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: var(--pill); border: 1px solid transparent;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s, opacity 0.2s, border-color 0.2s;
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn.primary { background: var(--ink); color: #fff; box-shadow: 0 10px 24px rgba(13, 14, 26, 0.22); }
.btn.primary:hover:not(:disabled) { box-shadow: 0 14px 32px rgba(13, 14, 26, 0.30); transform: translateY(-1px); }
.btn.primary:disabled { opacity: 0.28; cursor: not-allowed; box-shadow: none; }
.btn.primary.busy { pointer-events: none; }
.btn.primary.busy span::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 10px; vertical-align: -2px;
  border: 1.5px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
.btn.ghost { background: rgba(255, 255, 255, 0.45); border-color: rgba(255, 255, 255, 0.8); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.75); }
.btn.quiet { background: none; color: var(--muted); padding: 0 6px; }
.btn.quiet:hover { color: var(--ink); }
.btn.small { min-height: 34px; padding: 0 14px; font-size: 10px; background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ── Choices (kind) ─────────────────────────────────────────────── */
.choices { display: grid; gap: 10px; }
.choice {
  display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: var(--radius-md); cursor: pointer;
  background: rgba(255, 255, 255, 0.42); border: 1px solid rgba(255, 255, 255, 0.75);
  transition: background 0.25s, box-shadow 0.25s, transform 0.25s var(--ease), border-color 0.25s;
}
.choice:hover { background: rgba(255, 255, 255, 0.7); transform: translateY(-1px); }
.choice input { appearance: none; width: 18px; height: 18px; margin: 0; flex: none; border-radius: 50%; border: 1.5px solid var(--line-2); transition: border 0.2s var(--ease); }
.choice input:checked { border: 6px solid var(--ink); }
.choice:has(input:checked) { background: rgba(255, 255, 255, 0.92); box-shadow: var(--lift); border-color: #fff; }
.choice-body { flex: 1; display: grid; gap: 2px; }
.choice-title { font-family: var(--serif); font-size: 21px; letter-spacing: -0.01em; }
.choice-text { font-size: 11px; color: var(--muted); }
.choice-price { font-family: var(--serif); font-size: 22px; }
.choice-price small { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-left: 2px; }
.assurances { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 11px; color: var(--ink-2); }
.assurances li::before { content: "✓"; margin-right: 8px; color: var(--ok); }

/* ── Fields ─────────────────────────────────────────────────────── */
.field { display: grid; gap: 8px; margin-top: 22px; }
.field:first-of-type { margin-top: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.field-row .field { margin-top: 0; }
.label { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.label em { font-style: normal; letter-spacing: 0.06em; text-transform: none; color: var(--faint); margin-left: 6px; }
.input {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); outline: none;
  background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 2px rgba(13, 14, 26, 0.04);
  transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.input:focus { background: rgba(255, 255, 255, 0.92); border-color: #fff; box-shadow: 0 0 0 4px rgba(61, 69, 201, 0.12); }
.input::placeholder { color: var(--faint); }
textarea.input { resize: vertical; min-height: 60px; line-height: 1.6; }
.input.display { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.015em; padding: 14px 18px; font-weight: 350; }
.input.inline { width: auto; min-width: 0; padding: 8px 10px; flex: 1; }
.search { position: relative; display: block; }
.search .spinner { position: absolute; right: 16px; top: 50%; margin-top: -8px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-2); border-top-color: var(--ink); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Live address under the name */
.address { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 9px 14px; border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.5); border: 1px solid rgba(255, 255, 255, 0.8); font-size: 12px; color: var(--muted); max-width: 100%; }
.address-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.address-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; transition: background 0.3s; }
.address[data-state="checking"] .address-dot { animation: pulse 1s ease-in-out infinite; }
.address[data-state="ok"] { color: var(--ink); }
.address[data-state="ok"] .address-dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(31, 122, 85, 0.14); }
.address[data-state="taken"] .address-dot { background: var(--warn); }
.address button { border: 0; background: none; padding: 0; text-decoration: underline; cursor: pointer; color: var(--ink); }
@keyframes pulse { 50% { opacity: 0.25; } }

/* ── Templates ──────────────────────────────────────────────────── */
.templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.template { position: relative; display: grid; gap: 10px; padding: 10px 10px 14px; border-radius: var(--radius-md); cursor: pointer;
  background: rgba(255, 255, 255, 0.4); border: 1px solid rgba(255, 255, 255, 0.75);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s; }
.template:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.65); }
.template input { position: absolute; opacity: 0; pointer-events: none; }
.template:has(input:checked) { background: rgba(255, 255, 255, 0.92); box-shadow: var(--lift), 0 0 0 2px var(--ink); }
.template:has(input:focus-visible) { box-shadow: 0 0 0 2px var(--accent); }
.template-meta { padding: 0 4px; display: grid; gap: 2px; }
.template-name { font-family: var(--serif); font-size: 18px; }
.template-text { font-size: 10px; line-height: 1.5; color: var(--muted); }
.template-check { position: absolute; top: 18px; right: 18px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: 12px; opacity: 0; transform: scale(0.6); transition: 0.25s var(--ease); }
.template:has(input:checked) .template-check { opacity: 1; transform: none; }

/* Mini site drawing, used by template cards and the preview canvas */
.mini { --bg: #fff; --ink: #111; --accent: #111; --soft: #eee; --display: var(--serif);
  position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 4 / 3; background: var(--bg); color: var(--ink);
  display: flex; flex-direction: column; padding: 9% 9% 0; font-family: var(--mono); }
.mini-nav { display: flex; justify-content: space-between; align-items: center; font-family: var(--display); font-size: 0.7em; }
.mini-nav .links { display: flex; gap: 6%; width: 40%; justify-content: flex-end; }
.mini-nav .links i { display: block; height: 2px; width: 22%; background: currentColor; opacity: 0.35; border-radius: 2px; }
.mini-hero { margin-top: 12%; }
.mini-kicker { font-size: 0.42em; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin: 0 0 4%; }
.mini-name { margin: 0; font-family: var(--display); font-weight: 350; font-size: 1.55em; line-height: 0.98; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.mini-brief { margin: 5% 0 0; font-size: 0.42em; line-height: 1.5; opacity: 0.6; max-width: 70%; }
.mini-blocks { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5%; height: 26%; }
.mini-blocks i { background: var(--soft); border-radius: 6px 6px 0 0; }
.mini[data-layout="grid"] .mini-hero { margin-top: 8%; }
.mini[data-layout="grid"] .mini-blocks { grid-template-columns: repeat(4, 1fr); height: 38%; gap: 3%; }
.mini[data-layout="grid"] .mini-blocks i { border-radius: 3px 3px 0 0; }
.mini[data-layout="split"] .mini-hero { margin-top: 10%; width: 56%; }
.mini[data-layout="split"]::after { content: ""; position: absolute; right: 8%; top: 24%; width: 30%; height: 52%; background: var(--soft); border-radius: 999px 999px 8px 8px; }
.mini[data-layout="split"] .mini-blocks { opacity: 0; }
.mini[data-layout="bold"] .mini-name { font-size: 2em; text-transform: uppercase; letter-spacing: -0.03em; }
.mini[data-layout="bold"] .mini-blocks { height: 20%; }
.template .mini { font-size: 15px; }

/* ── Segmented control ──────────────────────────────────────────── */
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin-bottom: 22px; border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.38); border: 1px solid rgba(255, 255, 255, 0.75); }
.segmented button { min-height: 40px; border: 0; border-radius: var(--pill); background: none; cursor: pointer;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); transition: background 0.25s, color 0.25s, box-shadow 0.25s; }
.segmented button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 4px 14px rgba(30, 36, 110, 0.12); }
.mode { animation: enter 0.4s var(--ease) both; }

/* Domain search results */
.results { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.result { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-sm); cursor: pointer;
  background: rgba(255, 255, 255, 0.42); border: 1px solid rgba(255, 255, 255, 0.75); transition: background 0.2s, box-shadow 0.2s; }
.result:hover { background: rgba(255, 255, 255, 0.7); }
.result input { appearance: none; width: 16px; height: 16px; margin: 0; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; transition: border 0.2s var(--ease); }
.result input:checked { border: 5px solid var(--ink); }
.result:has(input:checked) { background: rgba(255, 255, 255, 0.92); box-shadow: var(--lift); }
.result-name { flex: 1; font-size: 13px; overflow-wrap: anywhere; }
.result-name b { font-weight: 700; }
.result-price { font-family: var(--serif); font-size: 18px; white-space: nowrap; }
.result-price small { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.result.taken { cursor: default; opacity: 0.6; }
.result.taken .result-price { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.result .badge { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--pill); background: var(--ink); color: #fff; }
.skeleton { height: 50px; border-radius: var(--radius-sm); background: linear-gradient(90deg, rgba(255,255,255,0.35), rgba(255,255,255,0.7), rgba(255,255,255,0.35)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }

/* Connect my domain */
.connect { margin-top: 16px; padding: 18px; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.5); border: 1px solid rgba(255, 255, 255, 0.85); animation: enter 0.4s var(--ease) both; }
.connect-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.provider { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.04em; }
.provider b { font-family: var(--serif); font-size: 17px; font-weight: 400; letter-spacing: 0; }
.link { font-size: 11px; text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 1px; }
.link:hover { border-color: var(--ink); }
.connect-intro { margin: 10px 0 14px; font-size: 12px; color: var(--ink-2); }
.records { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.record { display: grid; grid-template-columns: 56px 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.75); border: 1px solid #fff; }
.record-type { font-size: 10px; letter-spacing: 0.12em; font-weight: 700; }
.record-fields { display: grid; gap: 2px; min-width: 0; }
.record-fields span { font-size: 11px; color: var(--muted); }
.record-fields code { font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; color: var(--ink); }
.copy { border: 0; background: rgba(13, 14, 26, 0.06); border-radius: var(--pill); padding: 6px 10px; font-size: 10px; cursor: pointer; letter-spacing: 0.06em; }
.copy:hover { background: rgba(13, 14, 26, 0.12); }
.copy.done { background: var(--ok); color: #fff; }
.status { grid-column: 2 / -1; display: inline-flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: 0.06em; color: var(--muted); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.status.connected { color: var(--ok); }
.status.connected::before { background: var(--ok); }
.status.wrong::before, .status.proxied::before { background: var(--warn); }
.status.wrong, .status.proxied { color: var(--warn); }
.status.missing::before { animation: pulse 1.4s ease-in-out infinite; }
.connected-banner { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(31, 122, 85, 0.1); color: var(--ok); font-size: 12px; }
.hint { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(160, 97, 28, 0.08); color: var(--warn); font-size: 11px; }

/* Toggles and options (email) */
.option { padding: 18px; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.45); border: 1px solid rgba(255, 255, 255, 0.8); display: grid; gap: 14px; }
.option + .option { margin-top: 12px; }
.option-body { display: grid; gap: 3px; flex: 1; }
.option-title { font-family: var(--serif); font-size: 19px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.option-text { font-size: 11px; color: var(--muted); }
.tag { font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--pill); background: rgba(31, 122, 85, 0.12); color: var(--ok); }
.tag.soft { background: rgba(13, 14, 26, 0.06); color: var(--ink-2); }
.toggle { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; }
.toggle.compact { margin-top: 14px; }
.toggle.compact .option-title { font-size: 15px; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-ui { position: relative; flex: none; width: 40px; height: 24px; margin-top: 2px; border-radius: var(--pill); background: rgba(13, 14, 26, 0.14); transition: background 0.25s var(--ease); }
.toggle-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(13, 14, 26, 0.2); transition: transform 0.3s var(--ease); }
.toggle input:checked + .toggle-ui { background: var(--ink); }
.toggle input:checked + .toggle-ui::after { transform: translateX(16px); }
.toggle input:focus-visible + .toggle-ui { outline: 2px solid var(--accent); outline-offset: 3px; }
.forward { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-left: 54px; font-size: 12px; }
.compose { display: inline-flex; align-items: center; gap: 0; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.75); border: 1px solid #fff; padding-right: 10px; max-width: 100%; }
.compose .input.inline { border: 0; background: none; box-shadow: none; width: 9ch; flex: none; }
.compose .at { color: var(--muted); font-size: 12px; white-space: nowrap; }
.compose.add { padding-right: 4px; gap: 8px; }
.forward-to { color: var(--ink-2); overflow-wrap: anywhere; }
.arrow { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 8px 7px 12px; border-radius: var(--pill); background: #fff; font-size: 12px; box-shadow: 0 2px 8px rgba(30, 36, 110, 0.08); animation: enter 0.3s var(--ease) both; }
.chip button { border: 0; width: 20px; height: 20px; border-radius: 50%; background: rgba(13, 14, 26, 0.07); cursor: pointer; line-height: 1; }

/* Review */
.summary { display: grid; margin: 0; border-radius: var(--radius-md); overflow: hidden; background: rgba(255, 255, 255, 0.45); border: 1px solid rgba(255, 255, 255, 0.8); }
.summary > div { display: grid; grid-template-columns: 120px 1fr auto; gap: 12px; align-items: baseline; padding: 14px 18px; }
.summary > div + div { border-top: 1px solid var(--line); }
.summary dt { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.summary dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.summary .edit { border: 0; background: none; padding: 0; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.summary .edit:hover { color: var(--ink); }
.totals { display: grid; gap: 6px; margin-top: 16px; padding: 0 4px; }
.total-line { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); }
.total-line.big { font-size: 13px; color: var(--ink); padding-top: 8px; border-top: 1px solid var(--line); }
.total-line.big b { font-family: var(--serif); font-size: 26px; font-weight: 400; }
.error { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(178, 58, 58, 0.08); color: var(--bad); font-size: 12px; }
.secure { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 10px; color: var(--muted); justify-content: flex-end; }
.secure svg { width: 12px; height: 12px; }

/* Claim */
.claim-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.claim-points li { padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.45); border: 1px solid rgba(255, 255, 255, 0.8); font-size: 12px; color: var(--ink-2); }
.claim-points strong { color: var(--ink); font-weight: 700; }
.claim-preview { display: none; }
.reasons { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; }
.pill span { display: inline-block; padding: 10px 16px; border-radius: var(--pill); background: rgba(255, 255, 255, 0.5); border: 1px solid rgba(255, 255, 255, 0.85); font-size: 12px; transition: 0.2s; }
.pill input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Done */
.timeline { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding-bottom: 22px; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 18px; bottom: 0; width: 1px; background: var(--line-2); }
.timeline-mark { width: 13px; height: 13px; margin-top: 5px; border-radius: 50%; border: 1.5px solid var(--ink); background: rgba(255,255,255,0.8); }
.timeline li.now .timeline-mark { background: var(--ink); box-shadow: 0 0 0 5px rgba(13, 14, 26, 0.1); }
.timeline strong { font-family: var(--serif); font-size: 19px; font-weight: 400; }
.timeline p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.note { padding: 16px 18px; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.5); border: 1px solid rgba(255, 255, 255, 0.85); font-size: 12px; }
.note p { margin: 0; }
.note .fine { margin-top: 6px; }
.note.test { margin-top: 18px; background: rgba(160, 97, 28, 0.08); border-color: transparent; color: var(--warn); }

/* ── Preview ────────────────────────────────────────────────────── */
.browser { border-radius: var(--radius-lg); overflow: hidden; padding: 0; }
.browser-bar { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.6); }
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(13, 14, 26, 0.12); }
.url { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; padding: 6px 12px; border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.6); font-size: 11px; color: var(--ink-2); }
.url svg { width: 11px; height: 11px; flex: none; color: var(--ok); }
.url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity 0.2s; }
.canvas { position: relative; }
.canvas .mini { border-radius: 0; aspect-ratio: 5 / 4; font-size: 24px; transition: background 0.5s var(--ease), color 0.5s var(--ease); }
.live { display: block; width: 100%; aspect-ratio: 5 / 4; border: 0; background: #fff; }
.ticket { border-radius: var(--radius-lg); padding: 18px 20px; display: grid; gap: 8px; }
.ticket-row { position: relative; display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--ink-2); animation: enter 0.35s var(--ease) both; }
.ticket-row span:last-child { white-space: nowrap; }
.ticket-total { position: relative; display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; margin-top: 2px; border-top: 1px solid var(--line); }
.ticket-total span { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.ticket-total b { font-family: var(--serif); font-size: 24px; font-weight: 400; }
.ticket-empty { position: relative; font-size: 11px; color: var(--muted); }

/* ── Mobile ─────────────────────────────────────────────────────── */
.mobile-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 20; display: none;
  padding: 12px 18px; border-radius: var(--pill); font-size: 11px; justify-content: center; }
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; margin-bottom: 96px; }
  .preview { position: static; order: -1; }
  .preview .ticket { display: none; }
  .preview .browser { max-width: 420px; width: 100%; margin: 0 auto; }
  .panel { min-height: 0; }
  .mobile-bar:not([hidden]) { display: flex; }
}
@media (max-width: 960px) {
  /* On phones the questions come first; only the claim screen leads with the real site. */
  body:not([data-step="claim"]) .preview { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 13px; }
  .top { gap: 12px; padding: 10px 14px 10px 18px; }
  .layout { width: calc(100% - 24px); gap: 14px; margin-top: 14px; }
  .panel { padding: 26px 20px; border-radius: var(--radius-lg); }
  .field-row { grid-template-columns: 1fr; }
  .summary > div { grid-template-columns: 1fr auto; }
  .summary dt { grid-column: 1 / -1; }
  .templates { grid-template-columns: 1fr 1fr; gap: 10px; }
  .template .mini { font-size: 11px; }
  .forward { padding-left: 0; }
  .actions { margin-top: 28px; }
  .btn { padding: 0 18px; }
  .choice { padding: 16px; gap: 14px; }
  .choice-title { font-size: 18px; }
  .record { grid-template-columns: 44px 1fr auto; padding: 12px; }
}
