:root {
  /* Colors */
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-raised: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #b8c4d0;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent: #00a4a6;
  --accent-hover: #007f81;
  --accent-dim: #e0f5f5;
  --accent-glow: rgba(0, 164, 166, 0.15);
  --success: #16a34a;
  --success-dim: #f0fdf4;
  --danger: #dc2626;
  --danger-dim: #fef2f2;
  --warning: #d97706;
  --warning-dim: #fffbeb;
  --c-brandable: #00a4a6;
  --c-literal: #64748b;
  --c-compound: #16a34a;
  --c-wordplay: #ea580c;

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 48px;
  --sp-9: 64px;

  /* Type */
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-md: 16px;
  --text-lg: 18px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.10), 0 4px 8px rgba(15, 23, 42, 0.06);
}

html { scroll-behavior: smooth; scroll-padding-top: 40px; }

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--sp-8) var(--sp-6) var(--sp-9);
}

/* ═══════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════ */

.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0a1628 0%, #0f172a 55%, #071818 100%);
  padding: 72px 24px 80px;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(0, 164, 166, 0.14) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
}

/* ── Logo ── */

.hero-logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  line-height: 1;
}

.hero-logo-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0, 164, 166, 0.7);
}

/* ── Badge ── */

.hero-badge {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(0, 164, 166, 0.9);
  background: rgba(0, 164, 166, 0.1);
  border: 1px solid rgba(0, 164, 166, 0.25);
  border-radius: 99px;
  padding: 5px 16px;
}

/* ── Headline ── */

.hero-headline {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0;
}

.hero-word {
  color: var(--accent);
  display: inline-block;
  min-width: 2ch;
}

.hero-cursor {
  display: inline-block;
  color: var(--accent);
  font-weight: 300;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Sub ── */

.hero-sub {
  font-size: clamp(14px, 2vw, 16px);
  color: rgba(148, 163, 184, 0.9);
  line-height: 1.65;
  max-width: 520px;
  margin: 0;
}

/* ── Preview domain cards ── */

.hero-preview-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #4ade80;
  background: rgba(22, 163, 74, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 99px;
  padding: 6px 14px 6px 12px;
  margin: 0 0 2px;
}

.hero-preview-label-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: hero-preview-pulse 1.8s ease-out infinite;
}

@keyframes hero-preview-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70%  { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.hero-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 580px;
}

.hp-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  text-decoration: none;
  color: inherit;
  cursor: default;
}

a.hp-card.hp-avail {
  cursor: pointer;
}

.hp-card.hp-avail:hover {
  border-color: rgba(0, 164, 166, 0.35);
  background: rgba(0, 164, 166, 0.06);
}

a.hp-card.hp-avail:hover {
  transform: translateY(-1px);
}

a.hp-card.hp-avail:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hp-card.hp-taken {
  opacity: 0.45;
}

.hp-left {
  display: flex;
  align-items: baseline;
  gap: 0;
  min-width: 0;
}

.hp-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hp-tld {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 11px;
  color: var(--accent);
  white-space: nowrap;
}

.hp-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 99px;
  flex-shrink: 0;
  white-space: nowrap;
}

.hp-badge.avail {
  background: rgba(22, 163, 74, 0.18);
  color: #4ade80;
}

.hp-badge.taken {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.3);
}

/* ── CTA button ── */

.btn-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(0, 164, 166, 0.45), 0 0 0 0 rgba(0, 164, 166, 0);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.01em;
}

.btn-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(0, 164, 166, 0.55), 0 0 0 6px rgba(0, 164, 166, 0.12);
}

.btn-hero-cta:active {
  transform: translateY(0);
}

/* ── Meta stats ── */

.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: rgba(148, 163, 184, 0.6);
  flex-wrap: wrap;
  justify-content: center;
}

.hero-meta-sep {
  opacity: 0.4;
}

/* ── Partner / affiliate disclosure note ── */
/* Plain text, not a branded "certified partner" badge -- the affiliate
   application is still pending approval, so nothing here should read as an
   endorsement from Dynadot. See terms.html's "Affiliate relationship"
   section for the same wording. */

.hero-partner-note {
  width: 100%;
  max-width: 580px;
  padding: 13px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.65);
  text-align: center;
}

.hero-partner-note a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.hero-partner-note a:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════
   HOW IT WORKS SECTION
═══════════════════════════════════════════════ */

.how-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 24px;
  text-align: center;
}

.how-inner {
  max-width: 860px;
  margin: 0 auto;
}

.how-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--sp-3);
}

.how-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 3.5vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 var(--sp-8);
}

.how-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.how-step {
  flex: 1;
  max-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding: 0 var(--sp-2);
}

.how-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid rgba(0, 164, 166, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.how-step-num {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  line-height: 1;
}

.how-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.how-step-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.how-step-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.how-arrow {
  flex-shrink: 0;
  color: var(--border-strong);
  padding-top: 44px;
  display: flex;
  align-items: center;
}

/* ═══════════════════════════════════════════════
   JOURNEY SECTION HEADER
═══════════════════════════════════════════════ */

.journey-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--border);
}

.journey-header-text {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.journey-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.journey-sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
}

/* ── Mobile overrides ── */

@media (max-width: 640px) {
  .hero-section { padding: 56px 20px 64px; }
  .hero-inner { gap: var(--sp-4); }
  .hero-headline { letter-spacing: -0.02em; }

  .hero-preview {
    grid-template-columns: repeat(2, 1fr);
    max-width: 340px;
  }
  .hero-preview .hp-card:last-child {
    display: none;
  }

  .how-section { padding: 56px 20px; }
  .how-title-br { display: none; }

  .how-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6) var(--sp-4);
  }
  .how-arrow { display: none; }
  .how-step { max-width: none; }

  .journey-header { flex-direction: column; }
}

/* ─── Demo banner ─────────────────────────────────────────── */

.demo-banner {
  font-family: 'IBM Plex Mono', monospace;
  font-size: var(--text-xs);
  color: var(--accent-hover);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 164, 166, 0.25);
  border-radius: var(--radius-sm);
  padding: var(--sp-2) var(--sp-3);
  width: fit-content;
  align-self: flex-start;
}

/* ─── Start over ──────────────────────────────────────────── */

.start-over-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: var(--text-xs);
  padding: var(--sp-2) var(--sp-3);
  cursor: pointer;
  transition: all 0.15s ease;
  align-self: flex-start;
}
.start-over-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--surface-raised);
}
.start-over-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.start-over-btn.is-confirming {
  color: var(--danger);
  border-color: var(--danger);
  background: var(--danger-dim);
}

/* ─── Resume banner (state restored after refresh) ───────────── */

.resume-banner {
  font-size: var(--text-sm);
  color: var(--accent-hover);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 164, 166, 0.25);
  border-radius: var(--radius-sm);
  padding: var(--sp-3);
  margin: calc(-1 * var(--sp-3)) 0 var(--sp-6);
}

.resume-banner-offer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: space-between;
}

.resume-banner-text { margin: 0; }

.resume-banner-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}

.resume-banner-continue {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-hover);
  background: var(--surface);
  border: 1px solid var(--accent-hover);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.resume-banner-continue:hover { background: var(--accent-dim); }

.resume-banner-dismiss {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: none;
  border: none;
  border-radius: 50%;
  color: var(--accent-hover);
  cursor: pointer;
}

.resume-banner-dismiss:hover { background: rgba(0, 164, 166, 0.15); }
.resume-banner-dismiss:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.resume-banner-status { margin: 0; display: flex; align-items: center; gap: var(--sp-2); }

@media (max-width: 480px) {
  .resume-banner-offer { flex-direction: column; align-items: flex-start; }
  .resume-banner-actions { width: 100%; justify-content: space-between; }
}

/* ─── Shared shortlist (Phase 3: no-backend share links) ──── */

.shared-list-panel {
  background: var(--surface);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow-md);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-6);
}

.shared-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.shared-list-head h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--text-primary);
  margin: 0;
}

.shared-list-count {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.shared-list-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: none;
  border: none;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}
.shared-list-dismiss:hover { background: var(--surface-raised); color: var(--text-primary); }
.shared-list-dismiss:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.shared-list-sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 6px 0 var(--sp-4);
}

.shared-list-items {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.shared-list-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
}

.shared-list-item-name {
  flex: 1;
  min-width: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.shared-list-item-name .shared-list-item-tld {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  color: var(--accent);
}

.shared-list-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.shared-list-save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.shared-list-save-btn:hover { border-color: var(--accent); color: var(--accent); }
.shared-list-save-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shared-list-save-btn.is-saved { background: var(--accent); border-color: var(--accent); color: #fff; }

.shared-list-register {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 164, 166, 0.3);
  transition: background 0.15s ease;
}
.shared-list-register:hover { background: var(--accent-dim); }
.shared-list-register:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 480px) {
  .shared-list-item { flex-wrap: wrap; }
  .shared-list-item-name { width: 100%; }
}

/* ─── Progress bar ────────────────────────────────────────── */

.progress-overview {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}

.progress-track {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 3px;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ─── Form elements ───────────────────────────────────────── */

label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--sp-2);
  letter-spacing: 0.01em;
}

.optional { color: var(--text-muted); font-weight: 400; }

textarea, input, select {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: var(--text-base);
  padding: var(--sp-3) var(--sp-4);
  resize: vertical;
  margin-bottom: var(--sp-4);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-xs);
  -webkit-appearance: none;
  appearance: none;
}

textarea:focus, input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow-xs);
}

textarea.is-invalid, input.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.field-error {
  color: var(--danger);
  font-size: var(--text-xs);
  margin: calc(var(--sp-4) * -1) 0 var(--sp-4);
  font-weight: 500;
}

.description-meta {
  display: flex;
  align-items: flex-start;
  margin: calc(var(--sp-4) * -1) 0 var(--sp-4);
}

.description-meta .field-error {
  margin: 0;
}

.char-counter {
  margin-left: auto;
  padding-left: var(--sp-3);
  font-size: var(--text-xs);
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.char-counter.is-near-limit {
  color: var(--warning);
  font-weight: 600;
}

/* ─── Example starter chips (Phase A blank-page helper) ──── */

.example-chips-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--sp-4);
}

.example-chips-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  flex-shrink: 0;
}

.example-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.example-chip {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.example-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.example-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.field-help {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.55;
  margin: calc(var(--sp-3) * -1) 0 0;
  padding-left: 2px;
}

/* ─── Tone cards ──────────────────────────────────────────── */

.tone-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

@media (max-width: 560px) {
  .tone-cards { grid-template-columns: repeat(2, 1fr); }
}

.tone-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--sp-3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  user-select: none;
}

.tone-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.tone-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.tone-card:has(input:checked) {
  border-color: var(--accent);
  background: linear-gradient(135deg, #f0fdfd, var(--surface));
  box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow-xs);
}

.tone-card:has(input:checked) .tone-check {
  opacity: 1;
  transform: scale(1);
}

.tone-card:hover:not(:has(input:checked)) {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.tc-name {
  font-family: 'Poppins', sans-serif;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.tc-example {
  font-family: 'IBM Plex Mono', monospace;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--accent);
}

.tc-tag {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 2px;
}

.row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }

/* ─── Buttons ─────────────────────────────────────────────── */

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: var(--text-base);
  padding: 11px var(--sp-6);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 2px 8px rgba(0, 164, 166, 0.35);
  letter-spacing: 0.01em;
  line-height: 1.4;
}
.btn-primary:hover:not(:disabled) {
  filter: brightness(1.07);
  box-shadow: 0 4px 18px rgba(0, 164, 166, 0.45);
  transform: translateY(-1px);
}
.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 164, 166, 0.35);
}
.btn-primary:disabled {
  background: var(--surface-raised);
  color: var(--text-muted);
  opacity: 1;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-primary:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 3px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  background: var(--surface);
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: var(--text-xs);
  padding: var(--sp-1) var(--sp-3);
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--surface-raised);
}
.btn-secondary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ─── Inline edit mode (step 1 done + editing) ───────────── */

/* Show step-content while keeping the done summary visible */
.step.is-done.is-editing .step-content {
  display: block;
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1.5px dashed var(--border);
  animation: fadeSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Keep the done card frame while editing */
.step.is-done.is-editing .step-body {
  background: var(--surface);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: var(--sp-3) var(--sp-6) var(--sp-5);
  box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow-md);
  margin-bottom: var(--sp-6);
}

/* Button row: cancel on the left, submit on the right */
.edit-form-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

/* Hide cancel button unless in edit mode */
#edit-cancel-btn {
  display: none;
}

.step.is-editing #edit-cancel-btn {
  display: inline-flex;
}

/* Step 3 (TLD selection) re-uses the same inline edit-mode styling as
   step 1, but the recheck/cancel row only makes sense once the step is
   already done and the user re-opens it — hidden on first pass, where
   availability checks run automatically without a manual submit. */
#step3-edit-actions {
  display: none;
  margin-top: var(--sp-4);
}
.step.is-editing #step3-edit-actions {
  display: flex;
}

/* Submit button fills remaining space when in edit mode */
.step.is-editing #describe-submit {
  flex: 1;
}

@media (max-width: 620px) {
  .step.is-done.is-editing .step-body {
    padding: var(--sp-3) var(--sp-4) var(--sp-4);
  }
  .edit-form-actions {
    flex-direction: column-reverse;
  }
  .step.is-editing #describe-submit,
  .step.is-editing #edit-cancel-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ─── Edit / Change button (step summaries) ──────────────── */

.btn-edit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface);
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: var(--text-xs);
  padding: 5px var(--sp-3);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

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

.btn-edit:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ─── Stepper ─────────────────────────────────────────────── */

.stepper { display: flex; flex-direction: column; }

.step { display: flex; gap: 22px; }

/* Track: circle + connector line */
.step-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 48px;
}

.step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface);
  flex-shrink: 0;
  transition: background 0.25s ease, border-color 0.25s ease,
              color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  z-index: 1;
  /* Punches a halo through the connector line behind it, so the rail reads
     as running continuously through the whole journey rather than stopping
     and restarting awkwardly at each circle. */
  box-shadow: 0 0 0 6px var(--bg);
}

.step-circle .step-check { display: none; font-style: normal; }

.step-line {
  flex: 1;
  width: 2px;
  min-height: 28px;
  background: var(--border);
  border-radius: 1px;
  margin: 6px 0;
  transition: background 0.35s ease;
}

/* Body: the content area next to the track */
.step-body {
  flex: 1;
  min-width: 0;
  padding-bottom: var(--sp-2);
}

.step-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.step-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: var(--text-lg);
  line-height: 1.25;
  margin: 0;
  color: var(--text-muted);
  transition: color 0.2s ease, font-size 0.2s ease;
}

.step-help {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 5px 0 0;
  line-height: 1.55;
}

.step-help strong {
  color: var(--text-secondary);
  font-weight: 600;
}

/* Kept visually separate from .step-help on purpose -- this is a legal
   disclosure, not a usage tip, and reads as clutter when it's crammed onto
   the same line/sentence as the "how this screen works" instructions. */
.step-disclosure {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.75;
  margin: 3px 0 0;
  line-height: 1.5;
}

.step-summary {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.step-content {
  display: none;
  margin-top: var(--sp-4);
}

/* ── Active state ─────────────────────── */

.step.is-active .step-circle {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 11px var(--accent-glow), var(--shadow-sm);
}

.step.is-active .step-title {
  color: var(--text-primary);
  font-size: 22px;
}

.step.is-active .step-help { color: var(--text-secondary); }

.step.is-active .step-content {
  display: block;
  animation: fadeSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Card elevation for the active step body.
   12px top keeps the title ~aligned with the circle center (20px). */
.step.is-active .step-body {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-3) var(--sp-6) var(--sp-5);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--sp-6);
}

.step.is-last.is-active .step-body { margin-bottom: 0; }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Done state ───────────────────────── */

.step.is-done .step-circle {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
  box-shadow: 0 0 0 6px var(--bg);
}

.step.is-done .step-circle .step-num  { display: none; }
.step.is-done .step-circle .step-check { display: inline; }

.step.is-done .step-line { background: var(--success); }

.step.is-done .step-title {
  color: var(--text-secondary);
  font-size: var(--text-md);
  font-weight: 600;
}

.step.is-done .step-summary { display: flex; }
.step.is-done .step-help    { display: none; }
.step.is-done .step-body    { padding-bottom: var(--sp-2); }

/* ── Pending state ────────────────────── */

.step.is-pending .step-title { color: var(--text-muted); }
.step.is-pending .step-help  { display: none; }
.step.is-pending .step-body  { padding-bottom: var(--sp-2); }

/* ─── Spinner / progress block ───────────────────────────── */

.progress-block {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-base);
  color: var(--text-secondary);
  background: var(--surface-raised);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--shadow-xs);
}

.progress-block.is-error {
  color: var(--danger);
  border-color: rgba(220, 38, 38, 0.3);
  background: var(--danger-dim);
}

.progress-block .btn-secondary { margin-left: auto; flex-shrink: 0; }

.progress-block-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.progress-subtext {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Same conic-gradient ring language as the brand-score gauge, instead of a
   plain border-spin -- one visual idea ("a ring shows progress/status")
   used consistently for both a literal loading state and a score. */
.spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  background: conic-gradient(var(--accent) 0deg 270deg, var(--border) 270deg 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
}

@media (prefers-reduced-motion: no-preference) {
  .spinner { animation: spin 0.75s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Post-register upsell banner ────────────────────────── */
/* Shown once someone has actually clicked to register a domain -- "you
   just picked a name" is the moment building-the-site next makes sense,
   not before. Dismissible so it doesn't nag on repeat visits. */

.upsell-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-3);
  background: var(--accent-dim);
  border: 1.5px solid rgba(0, 164, 166, 0.3);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-4);
}

.upsell-banner-icon { font-size: 18px; line-height: 1; flex-shrink: 0; }

.upsell-banner-text {
  flex: 1;
  min-width: 200px;
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.upsell-banner-actions {
  display: flex;
  gap: var(--sp-2);
  flex-shrink: 0;
}

.upsell-banner-actions a {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent-hover);
  background: var(--surface);
  border: 1px solid rgba(0, 164, 166, 0.3);
  border-radius: var(--radius-sm);
  padding: 6px 11px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.upsell-banner-actions a:hover { background: var(--accent-dim); }
.upsell-banner-actions a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.upsell-banner-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: none;
  border: none;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.upsell-banner-close:hover { background: rgba(0, 164, 166, 0.15); color: var(--accent-hover); }
.upsell-banner-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ─── Name cards grid ─────────────────────────────────────── */

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.results-toolbar-sort {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.results-toolbar-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
}

.hide-taken-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.hide-taken-toggle input {
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
  cursor: pointer;
}

.hide-taken-toggle:hover { color: var(--text-primary); }

.sort-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2px;
  background: var(--surface-raised);
  gap: 2px;
}

.sort-btn {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: calc(var(--radius-md) - 3px);
  padding: 6px 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.sort-btn:hover { color: var(--text-primary); }

.sort-btn.is-active {
  background: var(--surface);
  color: var(--accent-hover);
  box-shadow: var(--shadow-xs);
}

@media (max-width: 560px) {
  .results-toolbar { justify-content: space-between; flex-wrap: wrap; }
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
@media (min-width: 1000px) { .results-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .results-grid { grid-template-columns: 1fr; } }

.results-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
  background: var(--surface-raised);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--sp-7) var(--sp-6);
  margin: 0;
}

.name-card {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.name-card:hover:not(.is-taken) {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.name-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.name-card.is-taken {
  opacity: 0.36;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.card-top-row { display: flex; align-items: center; }

.card-style-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.card-style-tag.brandable { color: var(--c-brandable); }
.card-style-tag.literal   { color: var(--c-literal); }
.card-style-tag.compound  { color: var(--c-compound); }
.card-style-tag.wordplay  { color: var(--c-wordplay); }

.card-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.card-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  overflow-wrap: anywhere;
  min-width: 0;
}

/* A partial-ring gauge (conic-gradient) instead of a text pill -- glanceable
   at 50-card scale, and it frees the name row from competing with a wide
   label for space. --pct and the color are set inline per score/band. */
.brand-score-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: conic-gradient(var(--ring-color) calc(var(--pct) * 1%), var(--border) 0);
  transition: filter 0.12s ease;
}
.brand-score-badge:hover,
.brand-score-badge:focus-visible {
  filter: brightness(0.94);
}
.brand-score-badge:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.brand-score-badge[aria-expanded="true"] {
  filter: brightness(0.9);
}
.brand-score-badge.good { --ring-color: var(--success); }
.brand-score-badge.ok   { --ring-color: var(--warning); }
.brand-score-badge.low  { --ring-color: var(--danger); }

.brand-score-ring-inner {
  width: calc(100% - 7px);
  height: calc(100% - 7px);
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.brand-score-num {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  color: var(--ring-color);
}

.brand-score-label {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 7px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1;
}

/* ─── Brand score popover (click-to-open, works on touch) ───── */

.score-popover {
  position: fixed;
  z-index: 1000;
  width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-3);
  animation: score-popover-in 0.12s ease-out;
}

@keyframes score-popover-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.score-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--border);
}

.score-popover-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.score-popover-total {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.score-popover-total small { font-weight: 600; opacity: 0.65; }
.score-popover-total.good { color: var(--success); }
.score-popover-total.ok   { color: var(--warning); }
.score-popover-total.low  { color: var(--danger); }

/* ─── Brand score breakdown (saved panel) ────────────────── */

.score-breakdown {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 2px;
}

.score-bar-row {
  display: grid;
  grid-template-columns: 78px 1fr 22px;
  align-items: center;
  gap: 6px;
}

.score-bar-label {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.score-bar-track {
  height: 4px;
  border-radius: 99px;
  background: var(--border);
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--accent);
}

.score-bar-val {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  text-align: right;
}

/* ─── Domain intelligence (second popover section) ────────── */

.score-popover-section {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
}

.score-popover-section .score-popover-head {
  margin-bottom: var(--sp-2);
  padding-bottom: 0;
  border-bottom: none;
}

.domain-intel-competition {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--sp-2);
}

.competition-pill {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
}

.competition-pill.low    { background: rgba(22, 163, 74, 0.14);  color: var(--success); }
.competition-pill.medium { background: rgba(217, 119, 6, 0.14);  color: var(--warning); }
.competition-pill.high   { background: rgba(220, 38, 38, 0.14);  color: var(--danger); }

.domain-intel-tlds {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: var(--sp-2);
}

.domain-intel-tld {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  white-space: nowrap;
}

.domain-intel-tld.good { color: var(--success); }
.domain-intel-tld.ok   { color: var(--warning); }
.domain-intel-tld.low  { color: var(--text-muted); }

.score-popover-hint {
  margin-top: var(--sp-2);
  font-size: 10px;
  line-height: 1.4;
  color: var(--text-muted);
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 99px;
  width: fit-content;
}
.availability-badge.available { background: var(--success-dim); color: var(--success); }
.availability-badge.taken     { background: var(--danger-dim); color: var(--danger); }
.availability-badge.unknown   { background: var(--surface-raised); color: var(--text-muted); }
.availability-badge svg       { flex-shrink: 0; }

/* ─── Name card insight + tags ───────────────────────────── */

.card-insight {
  color: var(--text-secondary);
  font-size: var(--text-xs);
  margin: 0;
  line-height: 1.6;
  flex: 1;
}

/* A quiet text line instead of a row of bordered pills -- descriptive
   metadata, not something that should compete visually with the name,
   the score, or the availability/price strip below it. */
.card-tags-line {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ─── Name card footer (Dynadot CTA) ─────────────── */

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-top: var(--sp-1);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
}

.card-footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.name-card:hover:not(.is-taken) .card-footer-cta {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.card-footer-taken { justify-content: flex-start; }

.card-taken-label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
}

/* Marks the single highest-scoring available card in the grid -- not
   everything should compete equally for attention, and it reuses the same
   accent rather than introducing a second "featured" color. */
.card-ribbon {
  position: absolute;
  top: -11px;
  left: var(--sp-4);
  background: var(--accent);
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 99px;
  box-shadow: 0 2px 6px rgba(0, 164, 166, 0.4);
}


/* ─── Mobile ──────────────────────────────────────────────── */

@media (max-width: 620px) {
  .page {
    padding: var(--sp-6) var(--sp-4) var(--sp-8);
  }

  .progress-overview { margin-bottom: var(--sp-6); }

  /* Tighter step track */
  .step { gap: 16px; }

  .step-circle {
    width: 40px;
    height: 40px;
    font-size: 13px;
    box-shadow: 0 0 0 4px var(--bg);
  }

  .step-track { width: 40px; }

  /* Active step card — tighter padding */
  .step.is-active .step-body {
    padding: var(--sp-3) var(--sp-4) var(--sp-4);
  }

  .step.is-active .step-title { font-size: var(--text-lg); }

  /* Full-width primary buttons */
  .btn-primary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  h1 { letter-spacing: -0.01em; }
}

@media (max-width: 400px) {
  .step-circle {
    width: 34px;
    height: 34px;
    font-size: 12px;
    box-shadow: 0 0 0 3px var(--bg);
  }
  .step-track { width: 34px; }
  .step { gap: 12px; }
  .step.is-active .step-circle {
    box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent-glow);
  }
  .step.is-done .step-circle {
    box-shadow: 0 0 0 3px var(--bg);
  }
}

/* ─── TLD chip picker (Step 1) ───────────────────────────── */

.tld-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.tld-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--sp-3) var(--sp-3) 10px;
  min-width: 68px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  user-select: none;
}

.tld-chip input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  pointer-events: none;
}

.tld-chip:has(input:checked):not(.is-locked) {
  border-color: var(--accent);
  background: linear-gradient(135deg, #f0fdfd, var(--surface));
  box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow-xs);
}

.tld-chip.is-locked {
  border-color: var(--accent);
  background: linear-gradient(135deg, #f0fdfd, var(--surface));
  cursor: default;
}

.tld-chip:hover:not(:has(input:checked)):not(.is-locked) {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

/* Disabled (non-editing) chips: still show which extensions are checked,
   but read as inert rather than clickable -- avoids implying a toggle will
   change anything when nothing is listening for it outside edit mode. */
.tld-chip:has(input:disabled):not(.is-locked) {
  cursor: default;
  opacity: 0.6;
  box-shadow: none;
}
.tld-chip:has(input:disabled):not(.is-locked):hover {
  border-color: var(--border);
  box-shadow: none;
}

.tld-ext {
  font-family: 'IBM Plex Mono', monospace;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.tld-chip.is-locked .tld-ext,
.tld-chip:has(input:checked) .tld-ext {
  color: var(--accent);
}

.tld-ctx {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.3;
}

.tld-price {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}

#tld-chips { margin-bottom: var(--sp-4); }

.tld-chips-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin: calc(-1 * var(--sp-2)) 0 var(--sp-4);
}
.tld-chips-hint strong { color: var(--text-secondary); font-weight: 600; }
.step.is-editing .tld-chips-hint { display: none; }

/* ─── TLD status pills (Step 4 name cards) ───────────────── */

.tld-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tld-pill {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 4px 9px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tld-pill.available { background: var(--success-dim); color: var(--success); }
/* Muted, not alarm-red: a taken name isn't an error, just information --
   red was reading as a warning for something entirely routine. */
.tld-pill.taken {
  background: var(--surface-raised);
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: var(--border-strong);
}
.tld-pill.unknown { background: var(--surface-raised); color: var(--text-muted); }

/* Price, shown only where a verified USD figure exists (see TLD_PRICING) --
   quieter than the extension itself so the hierarchy stays name-first. */
.tld-pill-price {
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
  font-weight: 600;
}

/* Unresolvable TLDs (no public registry RDAP -- e.g. .io/.co) still get a
   real CTA instead of reading as a dead end: these are often the highest
   commercial-intent extensions, so "Unknown" shouldn't mean "don't click." */
.tld-pill.unknown-cta {
  background: var(--accent-dim);
  color: var(--accent-hover);
  border: 1px solid rgba(0, 164, 166, 0.3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.tld-pill.unknown-cta:hover,
.tld-pill.unknown-cta:focus-visible {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.tld-pill.unknown-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.tld-pill.unknown-cta svg { width: 8px; height: 8px; flex-shrink: 0; }


/* ─── Accessibility ───────────────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Name card wrap ──────────────────────────────────────── */

.name-card-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
}

.name-card-wrap .name-card {
  width: 100%;
  /* flex (not height:100%) so a taken card's footer sibling below it can
     take its own natural height, with the card filling the rest -- an
     available card (no footer sibling) still fills the wrap exactly as
     before. */
  flex: 1 1 auto;
}

.name-card-wrap .card-top-row {
  padding-right: 64px;
  min-height: 20px;
}

/* A taken card's footer lives outside the button as a real sibling -- see
   the JS comment where it's built -- but reads as one seamless card by
   removing the shared edge and matching the corners. */
.name-card.is-taken {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: none;
  padding-bottom: var(--sp-3);
}

.card-taken-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  flex-wrap: wrap;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-top: 1px dashed var(--border-strong);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  padding: var(--sp-3) var(--sp-4);
}

.card-taken-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.card-taken-footer-link:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  background: var(--accent-dim);
}
.card-taken-footer-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ─── Save (bookmark) button on name cards ───────────────── */

.save-btn {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  z-index: 2;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.save-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.08);
}

.save-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.save-btn.is-saved {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.save-btn.is-saved:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

/* ─── Brand risk-check button on name cards ──────────────── */

.risk-btn {
  position: absolute;
  top: var(--sp-3);
  right: calc(var(--sp-3) + 28px + 6px);
  z-index: 2;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.risk-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.08);
}

.risk-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════
   BRAND RISK CHECK — modal panel
═══════════════════════════════════════════════ */

.risk-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 75;
  background: rgba(15, 23, 42, 0.4);
}

.risk-panel-backdrop[hidden] { display: none; }

.risk-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 80;
  width: 400px;
  max-width: calc(100vw - 32px);
  max-height: min(80vh, 480px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: fadeSlideIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.risk-panel[hidden] { display: none; }

#risk-panel-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.risk-panel-note {
  margin: 0;
  padding: 0 var(--sp-5) var(--sp-3);
  font-size: var(--text-xs);
  color: var(--text-muted);
  flex-shrink: 0;
}

.risk-panel-body {
  overflow-y: auto;
  padding: 0 var(--sp-3) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.risk-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: var(--sp-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
}

.risk-link-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.risk-link-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.risk-link-sub {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.risk-link-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.risk-link-open {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.risk-link-open:hover { background: var(--accent-dim); }

.risk-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  cursor: pointer;
  white-space: nowrap;
}

.risk-copy-btn:hover { border-color: var(--border-strong); color: var(--text-primary); }
.risk-copy-btn.is-copied { color: var(--success); border-color: var(--success); }

@media (max-width: 460px) {
  .risk-link-row { flex-direction: column; align-items: flex-start; }
  .risk-link-actions { width: 100%; }
  .risk-link-open, .risk-copy-btn { flex: 1; justify-content: center; }
}

/* ═══════════════════════════════════════════════
   SAVED DOMAINS — floating icon + panel
═══════════════════════════════════════════════ */

.saved-fab {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 70;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.72);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease,
              box-shadow 0.2s ease, transform 0.15s ease;
}

.saved-fab:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.saved-fab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.saved-fab.has-items {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 164, 166, 0.5);
}

.saved-fab.has-items:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 26px rgba(0, 164, 166, 0.6);
}

.saved-fab-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
}

.saved-fab-badge[hidden] {
  display: none;
}

.saved-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: transparent;
}

.saved-panel {
  position: fixed;
  top: 68px;
  right: 18px;
  z-index: 70;
  width: 340px;
  max-width: calc(100vw - 36px);
  max-height: min(70vh, 520px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: fadeSlideIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.saved-panel[hidden] {
  display: none;
}

.saved-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-4) var(--sp-3) var(--sp-5);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.saved-panel-header h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: var(--text-md);
  color: var(--text-primary);
  margin: 0;
}

.saved-panel-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: none;
  border: none;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.saved-panel-close:hover {
  background: var(--surface-raised);
  color: var(--text-primary);
}

.saved-panel-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.saved-panel-body {
  overflow-y: auto;
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.saved-panel-footer {
  flex-shrink: 0;
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.saved-panel-bulk-btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: var(--text-sm);
  padding: var(--sp-2) var(--sp-3);
  cursor: pointer;
  transition: background 0.15s ease;
}
.saved-panel-bulk-btn:hover { background: var(--accent-hover); }
.saved-panel-bulk-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.saved-panel-bulk-btn.is-copied { background: var(--success); }

.saved-panel-bulk-hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-muted);
}

.saved-panel-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background: var(--surface);
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: var(--text-xs);
  padding: var(--sp-2) var(--sp-3);
  cursor: pointer;
  transition: all 0.15s ease;
}
.saved-panel-share-btn:hover { color: var(--text-primary); border-color: var(--border-strong); background: var(--surface-raised); }
.saved-panel-share-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.saved-panel-share-btn.is-copied { color: var(--success); border-color: var(--success); }

.saved-panel-empty {
  padding: var(--sp-7) var(--sp-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.saved-panel-empty svg {
  color: var(--border-strong);
}

.saved-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  transition: border-color 0.15s ease;
}

.saved-item:hover {
  border-color: var(--border-strong);
}

.saved-item-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.saved-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.saved-item-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-item-name .saved-item-tld {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  color: var(--accent);
}

.saved-item-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* The score ring is sized for a 2-3 column results grid; in this much
   narrower (340px) panel, full size crowds the register link and remove
   button, and reads oddly next to the smaller circular remove button. */
.saved-item-actions .brand-score-badge {
  width: 30px;
  height: 30px;
}
.saved-item-actions .brand-score-num { font-size: 10px; }
.saved-item-actions .brand-score-label { font-size: 6px; }

.saved-item-register {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.saved-item-register:hover {
  background: var(--accent-dim);
}

.saved-item-register:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.saved-item-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: none;
  border: none;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.saved-item-remove:hover {
  background: var(--danger-dim);
  color: var(--danger);
}

.saved-item-remove:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .saved-fab { top: 12px; right: 12px; width: 40px; height: 40px; }
  .saved-panel { top: 60px; right: 10px; left: 10px; width: auto; max-width: none; }
}

/* ─── Step 1 description preview bar ─────────────────────── */

.desc-preview-bar {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  background: var(--surface-raised);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-5);
}

.desc-preview-text {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  font-style: italic;
  word-break: break-word;
}

/* ─── Category section label ──────────────────────────────── */

.category-section-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 0 var(--sp-3);
  letter-spacing: 0.01em;
}

/* ─── Category cards grid ─────────────────────────────────── */

.category-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

@media (max-width: 560px) {
  .category-cards { grid-template-columns: 1fr; }
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  text-align: left;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cat-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.category-card.is-selected .cat-check {
  opacity: 1;
  transform: scale(1);
}

.category-card:hover:not(.is-selected) {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.category-card.is-selected {
  border-color: var(--accent);
  background: linear-gradient(135deg, #f0fdfd, var(--surface));
  box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow-xs);
}

.category-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.cat-icon {
  font-size: 22px;
  line-height: 1;
}

.cat-name {
  font-family: 'Poppins', sans-serif;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.category-card.is-selected .cat-name {
  color: var(--accent-hover);
}

.cat-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── "or enter your own" divider ────────────────────────── */

.category-or-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: var(--sp-2) 0 var(--sp-4);
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 500;
}

.category-or-divider::before,
.category-or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── Find category button in Phase A ────────────────────── */

#btn-find-category,
#describe-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#btn-find-category {
  margin-top: var(--sp-2);
}

#btn-find-category svg,
#describe-submit svg {
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */

.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0a1628 0%, #0f172a 55%, #071818 100%);
  padding: 64px 24px 28px;
}

.footer-glow {
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 360px;
  background: radial-gradient(ellipse at center, rgba(0, 164, 166, 0.10) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  padding-bottom: 40px;
}

/* ── Brand column ── */

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
  max-width: 320px;
}

.footer-logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.03em;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

.footer-logo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0, 164, 166, 0.7);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: rgba(148, 163, 184, 0.85);
  line-height: 1.6;
  margin: 0;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(0, 164, 166, 0.9);
  background: rgba(0, 164, 166, 0.1);
  border: 1px solid rgba(0, 164, 166, 0.25);
  border-radius: 99px;
  padding: 5px 14px;
}

.footer-badge-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── Link columns ── */

.footer-col-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.55);
  margin: 0 0 var(--sp-4);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  color: rgba(226, 232, 240, 0.8);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-list a:hover {
  color: var(--accent);
}

.footer-list a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.footer-list a svg {
  color: rgba(148, 163, 184, 0.5);
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.footer-list a:hover svg {
  color: var(--accent);
}

/* ── Bottom bar ── */

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copyright {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: rgba(148, 163, 184, 0.5);
  white-space: nowrap;
}

.footer-disclosure {
  font-size: 11px;
  color: rgba(148, 163, 184, 0.45);
  line-height: 1.5;
  max-width: 460px;
  text-align: right;
}

/* ── Mobile ── */

@media (max-width: 700px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6) var(--sp-4);
  }
  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .site-footer { padding: 48px 20px 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2);
  }
  .footer-disclosure { text-align: left; }
}

/* ══════════════════ INFO PAGES (About / Privacy / Terms) ══════════════════ */
/* Shared by public/about.html, privacy.html, terms.html -- plain-content
   pages that skip the hero/wizard chrome entirely (no app.js needed there),
   but reuse the same design tokens, footer, and logo so they read as part
   of the same site rather than a bolted-on legal template. */

.legal-topbar {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px var(--sp-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.legal-topbar .hero-logo { font-size: 19px; text-decoration: none; }

.legal-topbar-back {
  font-family: 'IBM Plex Mono', monospace;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}

.legal-topbar-back:hover { color: var(--accent); border-color: var(--accent); }

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--sp-8) var(--sp-6) 96px;
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.7;
}

.legal-page h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 var(--sp-2);
}

.legal-updated {
  font-family: 'IBM Plex Mono', monospace;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin: 0 0 var(--sp-7);
}

.legal-intro {
  font-size: var(--text-lg);
  color: var(--text-primary);
  margin: 0 0 var(--sp-8);
}

.legal-page h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: var(--sp-8) 0 var(--sp-3);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
}

.legal-page h2:first-of-type { padding-top: 0; border-top: none; }

.legal-page p { margin: 0 0 var(--sp-4); }
.legal-page ul { margin: 0 0 var(--sp-4); padding-left: 22px; }
.legal-page li { margin-bottom: var(--sp-2); }
.legal-page strong { color: var(--text-primary); }

.legal-page a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-glow); text-underline-offset: 2px; }
.legal-page a:hover { color: var(--accent-hover); }

.legal-page code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9em;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
}

.legal-callout {
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--text-sm);
  color: var(--text-primary);
  margin: 0 0 var(--sp-6);
}

.legal-contact-box {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  margin-top: var(--sp-8);
}

.legal-contact-box h2 { margin-top: 0; padding-top: 0; border-top: none; }

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-6);
}

.about-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: var(--text-sm);
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  text-decoration: none;
}

.about-links a:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 480px) {
  .legal-page h1 { font-size: 26px; }
  .legal-page { padding: var(--sp-6) var(--sp-4) 72px; }
}
