/* ===========================================================
   BrandBuilding — design system
   =========================================================== */
:root {
  --ink: #14101f;
  --ink-soft: #4a4360;
  --ink-faint: #7a7390;
  --paper: #fbfaff;
  --paper-2: #ffffff;
  --line: #ece7f7;
  --line-strong: #ddd5f0;

  --violet: #6c4df6;
  --violet-deep: #5436d6;
  --pink: #f0567a;
  --mint: #18c29c;
  --amber: #f3a93c;

  --grad: linear-gradient(120deg, #6c4df6 0%, #9a4df6 45%, #f0567a 100%);
  --grad-soft: linear-gradient(120deg, rgba(108,77,246,.12), rgba(240,86,122,.12));

  --shadow-sm: 0 1px 2px rgba(20,16,31,.06), 0 2px 6px rgba(20,16,31,.04);
  --shadow-md: 0 8px 30px rgba(20,16,31,.08), 0 2px 8px rgba(20,16,31,.05);
  --shadow-lg: 0 24px 60px rgba(60,40,140,.14), 0 8px 24px rgba(20,16,31,.08);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

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

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --grotesk: "Space Grotesk", var(--sans);

  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  padding: 12px 22px; border-radius: var(--r-pill); border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(108,77,246,.32); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(108,77,246,.42); transform: translateY(-1px); }
.btn-ghost { background: var(--paper-2); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--violet); color: var(--violet-deep); }
.btn-sm { padding: 8px 16px; font-size: .85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,255,.82); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-name { font-family: var(--grotesk); font-size: 1.12rem; letter-spacing: -.02em; }
.site-nav { display: none; gap: 26px; margin-left: auto; font-size: .92rem; font-weight: 500; color: var(--ink-soft); }
.site-nav a { position: relative; transition: color .2s ease; }
.site-nav a:hover { color: var(--ink); }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--grad); border-radius: 2px; transition: width .2s ease; }
.site-nav a:hover::after { width: 100%; }
.header-cta { margin-left: auto; }
@media (min-width: 880px) {
  .site-nav { display: flex; }
  .header-cta { margin-left: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 90px); }
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.eyebrow {
  display: inline-block; font-family: var(--grotesk); font-weight: 500; font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--violet-deep);
  background: var(--grad-soft); padding: 6px 14px; border-radius: var(--r-pill); margin-bottom: 22px;
}
.hero-title { font-size: clamp(2.5rem, 7vw, 4.6rem); letter-spacing: -.02em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 24px; font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-soft); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.chip {
  font-family: var(--grotesk); font-size: .82rem; font-weight: 500; color: var(--ink-soft);
  background: var(--paper-2); border: 1px solid var(--line-strong); padding: 7px 16px; border-radius: var(--r-pill);
}
.hero-glow {
  position: absolute; z-index: 1; top: -180px; right: -160px; width: 620px; height: 620px;
  background: radial-gradient(closest-side, rgba(154,77,246,.30), rgba(240,86,122,.12) 60%, transparent 75%);
  filter: blur(8px); pointer-events: none;
}

/* ---------- Sections ---------- */
.tool-section { padding: clamp(56px, 8vw, 96px) 0; }
.tool-section.alt { background: linear-gradient(180deg, #f6f3ff 0%, #fbfaff 100%); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.kicker { font-family: var(--grotesk); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--pink); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-top: 12px; }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 1.06rem; }

/* ---------- Panel ---------- */
.panel {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow-md);
}
.controls { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 8px; flex: 1 1 200px; min-width: 0; }
.field.full { flex-basis: 100%; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink-soft); letter-spacing: .01em; }
.field input, .field select {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 13px 16px; border-radius: var(--r-md); border: 1px solid var(--line-strong);
  background: var(--paper); transition: border-color .2s ease, box-shadow .2s ease; width: 100%;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(108,77,246,.14); }
.controls .btn { flex: 0 0 auto; }
.hint { margin-top: 14px; font-size: .85rem; color: var(--ink-faint); }

/* ---------- Segmented control ---------- */
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-btn {
  font-family: var(--sans); font-weight: 600; font-size: .9rem; color: var(--ink-soft);
  background: var(--paper); border: 1px solid var(--line-strong); padding: 9px 18px;
  border-radius: var(--r-pill); cursor: pointer; transition: all .18s ease;
}
.seg-btn:hover { border-color: var(--violet); color: var(--violet-deep); }
.seg-btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Name results ---------- */
.name-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
@media (min-width: 620px) { .name-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 920px) { .name-grid { grid-template-columns: 1fr 1fr 1fr; } }
.name-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--paper); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  animation: pop .35s ease both;
}
.name-card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.name-main { min-width: 0; }
.name-text { font-family: var(--grotesk); font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; }
.name-domain { font-size: .8rem; color: var(--ink-faint); }
.avail { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; margin-top: 6px; padding: 3px 9px; border-radius: var(--r-pill); }
.avail.maybe { background: rgba(24,194,156,.14); color: #0d8e72; }
.avail.taken { background: rgba(240,86,122,.14); color: #c03455; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.copy-btn {
  flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--paper-2);
  cursor: pointer; color: var(--ink-soft); transition: all .18s ease;
}
.copy-btn:hover { border-color: var(--violet); color: var(--violet-deep); background: #fff; }
.copy-btn svg { width: 16px; height: 16px; }

.empty { color: var(--ink-faint); font-size: .95rem; margin-top: 24px; padding: 30px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--r-md); }

/* ---------- Palette ---------- */
.palette-wrap { display: grid; gap: 24px; margin-top: 28px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .palette-wrap { grid-template-columns: 1.3fr 1fr; align-items: stretch; } }
.palette { display: grid; grid-template-columns: repeat(5, 1fr); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); min-height: 240px; }
.swatch {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px 10px; cursor: pointer; transition: flex .2s ease; min-height: 200px;
}
.swatch:hover .swatch-copy { opacity: 1; transform: translateY(0); }
.swatch-hex { font-family: var(--grotesk); font-weight: 600; font-size: .82rem; letter-spacing: .02em; padding: 4px 8px; border-radius: var(--r-sm); backdrop-filter: blur(4px); }
.swatch-copy { font-size: .68rem; margin-top: 6px; opacity: .7; transform: translateY(3px); transition: all .2s ease; }
@media (max-width: 540px) {
  .palette { grid-template-columns: repeat(5, 1fr); }
  .swatch { min-height: 160px; }
  .swatch-hex { font-size: .68rem; padding: 3px 5px; }
}

.palette-preview { display: flex; }
.pp-card {
  flex: 1; border-radius: var(--r-md); padding: 28px; display: flex; flex-direction: column; gap: 12px;
  transition: background .3s ease, color .3s ease; box-shadow: var(--shadow-sm);
}
.pp-eyebrow { font-family: var(--grotesk); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.pp-title { font-size: 1.5rem; }
.pp-body { font-size: .98rem; opacity: .92; }
.pp-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.pp-btn-primary, .pp-btn-ghost { font-family: var(--sans); font-weight: 600; font-size: .9rem; padding: 11px 20px; border-radius: var(--r-pill); cursor: pointer; transition: transform .15s ease; border: 2px solid transparent; }
.pp-btn-primary:active, .pp-btn-ghost:active { transform: translateY(1px); }

/* ---------- Taglines ---------- */
.tagline-list { display: grid; gap: 12px; margin-top: 28px; }
.tagline-card {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper);
  transition: border-color .2s ease, transform .2s ease; animation: pop .35s ease both;
}
.tagline-card:hover { border-color: var(--line-strong); transform: translateX(3px); }
.tagline-text { font-family: var(--serif); font-size: 1.18rem; font-weight: 500; font-style: italic; color: var(--ink); }
@media (min-width: 700px) { .tagline-text { font-size: 1.32rem; } }

/* ---------- Fonts ---------- */
.font-grid { display: grid; gap: 18px; margin-top: 28px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .font-grid { grid-template-columns: repeat(3, 1fr); } }
.font-card {
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; background: var(--paper);
  display: flex; flex-direction: column; gap: 14px; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  animation: pop .35s ease both;
}
.font-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.font-pair-name { font-family: var(--grotesk); font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); }
.font-heading { font-size: 1.8rem; line-height: 1.1; color: var(--ink); }
.font-body { font-size: 1rem; color: var(--ink-soft); }
.font-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.font-tag { font-family: var(--sans); font-size: .74rem; font-weight: 600; color: var(--ink-soft); background: var(--paper-2); border: 1px solid var(--line-strong); padding: 5px 11px; border-radius: var(--r-pill); }

/* ---------- Checklist ---------- */
.checklist-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.progress { flex: 1 1 200px; height: 10px; background: var(--line); border-radius: var(--r-pill); overflow: hidden; min-width: 160px; }
.progress-bar { height: 100%; width: 0; background: var(--grad); border-radius: var(--r-pill); transition: width .4s cubic-bezier(.4,0,.2,1); }
.progress-label { font-family: var(--grotesk); font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .checklist { grid-template-columns: 1fr 1fr; } }
.check-item {
  display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper);
  cursor: pointer; transition: border-color .2s ease, background .2s ease;
}
.check-item:hover { border-color: var(--line-strong); }
.check-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line-strong);
  display: grid; place-items: center; margin-top: 1px; transition: all .18s ease; color: #fff;
}
.checkbox svg { width: 14px; height: 14px; opacity: 0; transform: scale(.6); transition: all .18s ease; }
.check-item input:checked ~ .checkbox { background: var(--grad); border-color: transparent; }
.check-item input:checked ~ .checkbox svg { opacity: 1; transform: scale(1); }
.check-item input:focus-visible ~ .checkbox { outline: 3px solid var(--violet); outline-offset: 2px; }
.check-body { min-width: 0; }
.check-title { font-weight: 600; font-size: 1rem; transition: color .2s ease; }
.check-desc { font-size: .86rem; color: var(--ink-faint); margin-top: 2px; }
.check-item input:checked ~ .check-body .check-title { color: var(--ink-faint); text-decoration: line-through; text-decoration-color: var(--line-strong); }

/* ---------- Acquire ---------- */
.acquire { padding: clamp(40px, 6vw, 72px) 0; }
.acquire-card {
  background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px);
  display: flex; flex-direction: column; gap: 22px; align-items: flex-start;
  position: relative; overflow: hidden;
}
.acquire-card::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px;
  background: radial-gradient(closest-side, rgba(154,77,246,.5), transparent 70%); pointer-events: none;
}
.acquire-title { font-size: clamp(1.5rem, 3vw, 2rem); position: relative; }
.acquire-body { color: rgba(255,255,255,.78); max-width: 600px; position: relative; font-size: 1.02rem; }
.acquire-body strong { color: #fff; }
.acquire-card .btn { position: relative; }
@media (min-width: 760px) {
  .acquire-card { flex-direction: row; align-items: center; justify-content: space-between; }
  .acquire-card > div { flex: 1; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0; background: var(--paper-2); }
.footer-inner { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--grotesk); font-weight: 700; font-size: 1.05rem; }
.footer-note { color: var(--ink-soft); font-size: .92rem; max-width: 480px; }
.footer-copy { color: var(--ink-faint); font-size: .85rem; }
.footer-copy a { color: var(--violet-deep); font-weight: 600; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px);
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: var(--r-pill);
  font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; z-index: 80;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
