@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@700;800&family=Inter:wght@300;400;500&display=swap');

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

:root {
  --ink:     #0F0F0F;
  --paper:   #F8F6F2;
  --mid:     #E5E1D8;
  --white:   #FFFFFF;
  --accent:  #4F46E5;
  --accent-h:#3730B3;
  --muted:   #78726A;
  --green:   #16A34A;
  --r:       12px;
  --display: 'Plus Jakarta Sans', sans-serif;
  --body:    'Inter', sans-serif;
}

html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-weight: 300; font-size: 16px; line-height: 1.65; }

/* ── NAV ── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--mid);
  position: sticky; top: 0; z-index: 200;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -.04em;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 24px; }
.nav-links a { font-size: .82rem; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }

/* ── TOOL NAV BAR (ilovepdf style) ── */
.tool-nav {
  background: var(--white);
  border-bottom: 1px solid var(--mid);
  overflow-x: auto;
  scrollbar-width: none;
}
.tool-nav::-webkit-scrollbar { display: none; }
.tool-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  gap: 4px;
  white-space: nowrap;
}
.tool-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2.5px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.tool-tab:hover { color: var(--ink); }
.tool-tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.tool-tab .tab-icon { font-size: 1rem; }

/* ── HERO ── */
.hero {
  max-width: 700px;
  margin: 0 auto;
  padding: 72px 24px 48px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(79,70,229,.08);
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.045em;
  margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 300;
  max-width: 480px;
  margin: 0 auto;
}

/* ── AD SLOTS ── */
.ad-slot {
  background: var(--mid);
  border: 1.5px dashed #C8C3B6;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 500;
}
.ad-wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.ad-top  .ad-slot { height: 90px; margin-bottom: 40px; }
.ad-mid  .ad-slot { height: 250px; margin: 48px 0; }
.ad-bot  .ad-slot { height: 90px; margin: 48px 0; }

/* ── CARD ── */
.card-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px 72px; }
.card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 2px 48px rgba(15,15,15,.07);
}

/* ── FORM ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1/-1; }
label { font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
input, select, textarea {
  font-family: var(--body);
  font-weight: 300;
  font-size: .92rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--mid);
  border-radius: var(--r);
  padding: 12px 16px;
  outline: none;
  transition: border-color .2s;
  width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 82px; }

/* ── PILLS ── */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pill {
  font-family: var(--body);
  font-size: .78rem;
  font-weight: 400;
  padding: 6px 15px;
  border-radius: 100px;
  border: 1.5px solid var(--mid);
  background: var(--paper);
  cursor: pointer;
  transition: all .15s;
  color: var(--ink);
}
.pill:hover { border-color: var(--accent); }
.pill.active { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* ── BUTTON ── */
.btn {
  width: 100%;
  margin-top: 24px;
  padding: 16px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--r);
  font-family: var(--display);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn:hover { background: var(--accent-h); }
.btn:active { transform: scale(.99); }
.btn:disabled { background: var(--muted); cursor: not-allowed; }

/* ── LOADING ── */
.loading { display: none; text-align: center; padding: 40px 0; }
.loading.show { display: block; }
.spinner {
  width: 34px; height: 34px;
  border: 3px solid var(--mid);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading p { font-size: .88rem; color: var(--muted); font-weight: 300; }

/* ── RESULTS ── */
.results { display: none; margin-top: 36px; }
.results.show { display: block; }
.res-label {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.names-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 12px; }
.name-card {
  background: var(--paper);
  border: 1.5px solid var(--mid);
  border-radius: var(--r);
  padding: 18px;
  cursor: pointer;
  transition: all .18s;
  position: relative;
}
.name-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.name-card .n { font-family: var(--display); font-size: 1rem; font-weight: 700; letter-spacing: -.025em; }
.name-card .h { font-size: .73rem; color: var(--muted); margin-top: 5px; line-height: 1.45; font-weight: 300; }
.copy-badge {
  position: absolute; top: 10px; right: 10px;
  font-size: .62rem; background: var(--accent); color: #fff;
  padding: 2px 8px; border-radius: 100px;
  opacity: 0; transition: opacity .2s;
}
.name-card:hover .copy-badge { opacity: 1; }
.name-card.copied { border-color: var(--green); background: rgba(22,163,74,.04); }
.name-card.copied .copy-badge { opacity: 1; background: var(--green); }

/* ── AFFILIATE ── */
.aff-strip { display: none; margin-top: 32px; padding-top: 28px; border-top: 1.5px solid var(--mid); }
.aff-strip.show { display: block; }
.aff-label { font-size: .7rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.aff-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.aff-card {
  display: flex; flex-direction: column; gap: 5px;
  background: var(--paper); border: 1.5px solid var(--mid);
  border-radius: var(--r); padding: 16px 18px;
  text-decoration: none; color: var(--ink); transition: all .18s;
}
.aff-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.aff-icon { font-size: 1.2rem; }
.aff-title { font-family: var(--display); font-size: .88rem; font-weight: 700; }
.aff-desc { font-size: .72rem; color: var(--muted); line-height: 1.4; font-weight: 300; }
.aff-cta { margin-top: 4px; font-size: .72rem; font-weight: 500; color: var(--accent); }

/* ── ERROR ── */
.error {
  background: #FFF1F0; border: 1.5px solid #FCA5A5; color: #DC2626;
  border-radius: var(--r); padding: 14px 18px; font-size: .85rem;
  display: none; margin-top: 20px; font-weight: 300;
}
.error.show { display: block; }

/* ── FAQ ── */
.faq-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px 72px; }
.sec-title { font-family: var(--display); font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 22px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--white); border-radius: var(--r); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; padding: 17px 22px;
  background: none; border: none;
  font-family: var(--display); font-size: .9rem; font-weight: 700;
  color: var(--ink); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.arrow { transition: transform .2s; color: var(--accent); }
.faq-item.open .arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 22px 17px; font-size: .84rem; color: var(--muted); line-height: 1.7; font-weight: 300; }
.faq-item.open .faq-a { display: block; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--mid);
  padding: 28px 40px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  font-size: .78rem; color: var(--muted); font-weight: 300;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (max-width: 600px) {
  .nav-inner { padding: 0 20px; }
  .tool-nav-inner { padding: 0 16px; }
  .card { padding: 28px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .aff-grid { grid-template-columns: 1fr; }
  footer { padding: 24px 20px; }
}
