/* ===== Self-hosted font (avoids the fonts.googleapis.com/fonts.gstatic.com
   render-blocking request chain) — variable font covers weights 400-800.
   Caveat was dropped: the logo is an <img> everywhere now, so no rendered
   text ever used that font. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/montserrat-var-latin.woff2") format("woff2");
}

/* ===== JHF Research — Design tokens ===== */
:root {
  --dark: #111214;
  --dark-2: #1a1b1e;
  --light: #f5f5f4;
  --white: #ffffff;
  --ink: #111214;
  --muted: #6b6f76;
  --blue: #1a73e8;
  --green: #34a853;
  --red: #ea4335;
  --yellow: #fbbc05;
  /* Deepened variants for white text on a solid color background —
     tuned to clear WCAG AA (4.5:1) contrast; use these anywhere text
     or an icon sits directly on the fill, not the bright tones above. */
  --blue-solid: #1558b0;
  --green-solid: #188038;
  --red-solid: #c5221f;
  --gold-solid: #8a6400;
  /* Brighter blue for text sitting on a DARK background — --blue and
     --blue-solid are both too low-contrast there (~4.3:1 and worse).
     ~8.9:1 against --dark. */
  --blue-bright: #8ab4f8;
  --radius: 14px;
  --radius-pill: 999px;
  --maxw: 1120px;
  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
.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;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--light);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue); }
.btn-light {
  background: var(--white);
  color: var(--ink);
}
.btn-light:hover { background: var(--yellow); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: var(--white); }

/* ===== Header ===== */
.site-header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: "Pacifico", cursive;
  font-size: 2rem;
  color: var(--white);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}
.logo img {
  height: 28px;
  width: auto;
  display: block;
}
.footer-top .logo img { height: 24px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--blue-bright); }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  background: none;
  border: none;
  font-family: var(--font);
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}
.nav-dropdown-toggle svg {
  width: 12px;
  height: 12px;
  transition: transform 0.15s ease;
}
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle,
.nav-dropdown.open .nav-dropdown-toggle,
.nav-dropdown-toggle.active {
  color: var(--blue-bright);
}
.nav-dropdown:hover .nav-dropdown-toggle svg,
.nav-dropdown:focus-within .nav-dropdown-toggle svg,
.nav-dropdown.open .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  /* Flush against the toggle (no gap) on purpose: a gap here is a dead
     zone the cursor has to cross, and it loses :hover partway through,
     closing the menu before you reach it. */
  top: 100%;
  padding-top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
}
.nav-dropdown-menu-inner {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 8px;
  min-width: 160px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu-inner a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}
.nav-dropdown-menu-inner a:hover,
.nav-dropdown-menu-inner a.active { background: rgba(255,255,255,0.08); color: var(--white); }

.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 24px 24px;
    gap: 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta .btn-primary { display: none; }

  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle {
    pointer-events: none;
    color: rgba(255,255,255,0.5);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 800;
  }
  .nav-dropdown-toggle svg { display: none; }
  .nav-dropdown-menu {
    display: block;
    position: static;
    transform: none;
    padding: 6px 0 0 4px;
  }
  .nav-dropdown-menu-inner {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: 0;
  }
  .nav-dropdown-menu-inner a { padding: 4px 0; font-size: 0.95rem; }
}

/* ===== Hero (dark, radial-glow — GitHub-style) ===== */
.hero {
  position: relative;
  padding: 108px 0 88px;
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(1100px 550px at 25% 30%, rgba(26,115,232,0.45), transparent 60%),
    radial-gradient(900px 500px at 75% 55%, rgba(52,168,83,0.3), transparent 55%);
  animation: heroGlowDrift 14s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
@keyframes heroGlowDrift {
  0%   { transform: translate(-9%, -7%) scale(1); }
  50%  { transform: translate(9%, 7%) scale(1.2); }
  100% { transform: translate(-6%, 6%) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}
.hero .eyebrow {
  display: inline-block;
  color: var(--blue-bright);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.8rem);
  line-height: 1.06;
  margin: 0 0 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 780px;
  color: var(--white);
}
.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 0 32px;
}
.hero-capture {
  display: flex;
  max-width: 520px;
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 6px;
  gap: 6px;
  margin: 0 0 16px;
}
.hero-capture input[type="email"] {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.97rem;
  color: var(--ink);
}
.hero-capture .btn { white-space: nowrap; }
.hero-secondary { margin-bottom: 32px; }
@media (max-width: 480px) {
  .hero-capture {
    flex-direction: column;
    background: transparent;
    padding: 0;
    gap: 12px;
  }
  .hero-capture input[type="email"] { background: var(--white); }
}

.pill-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.pill {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
}
.pill.blue { background: var(--blue-solid); }
.pill.green { background: var(--green-solid); }
.pill.red { background: var(--red-solid); }
.pill.yellow { background: var(--gold-solid); }

/* ===== Section shell ===== */
.section { padding: 88px 0; }
.section-dark { background: var(--dark); color: var(--white); }
.section-tight { padding: 64px 0; }
.eyebrow-tag {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 14px;
}
.eyebrow-tag.on-dark { color: var(--green); }
.eyebrow-tag.on-light { color: var(--blue-solid); }
.section h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  max-width: 700px;
  margin: 0 0 16px;
}
.section p.section-lead {
  color: var(--muted);
  max-width: 640px;
  font-size: 1.05rem;
}
.section-dark p.section-lead { color: rgba(255,255,255,0.65); }
.section-head { margin-bottom: 48px; }
.section-head.flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

/* ===== Service cards (light, colored blocks) ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.service-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 6px;
}
.service-card .icon svg {
  width: 26px;
  height: 26px;
  display: block;
}
.grid-2x2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) {
  .grid-2x2 { grid-template-columns: 1fr; }
}
.service-card h3 { margin: 0; font-size: 1.2rem; }
.service-card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.bg-blue { background: var(--blue-solid); }
.bg-green { background: var(--green-solid); }
.bg-red { background: var(--red-solid); }
.bg-yellow { background: var(--gold-solid); }

/* Homepage 2x2 grid: full-color cards (deepened for AA-safe white-text contrast) */
.service-grid-2x2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 640px) {
  .service-grid-2x2 { grid-template-columns: 1fr; }
}
.service-grid-2x2 .service-card {
  color: var(--white);
  padding: 24px 22px;
  gap: 10px;
}
.service-grid-2x2 .icon {
  width: 44px;
  height: 44px;
  color: var(--white);
  margin-bottom: 2px;
}
.service-grid-2x2 .icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.service-grid-2x2 .service-card h3 { color: var(--white); }
.service-grid-2x2 .service-card p { color: var(--white); }
.service-grid-2x2 .card-blue { background: var(--blue-solid); }
.service-grid-2x2 .card-green { background: var(--green-solid); }
.service-grid-2x2 .card-red { background: var(--red-solid); }
.service-grid-2x2 .card-gold { background: var(--gold-solid); }

/* ===== Dark service tiles (on dark section) ===== */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.tile {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.tile .tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
  display: block;
}
.tile h3 { margin: 0 0 10px; font-size: 1.15rem; }
.tile p { margin: 0; color: rgba(255,255,255,0.65); font-size: 0.95rem; }

.explore-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--green);
  font-weight: 700;
  font-size: 0.9rem;
}
.explore-link:hover { color: var(--blue-bright); }

/* ===== Testimonial ===== */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  max-width: 480px;
}
.testimonial-card blockquote {
  margin: 0 0 18px;
  font-size: 1.05rem;
  color: var(--ink);
}
.testimonial-card cite {
  font-style: normal;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.9rem;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 780px) {
  .two-col { grid-template-columns: 1fr; }
}
.skyline {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ===== Process steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.step {
  padding: 24px;
  border-left: 3px solid var(--blue);
}
.step .num {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--blue-solid);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: block;
}
.step h3 { margin: 0 0 8px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* ===== Audience cards ===== */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.audience-card h3 {
  font-size: 1.1rem;
  margin: 0 0 10px;
  color: var(--blue-solid);
}
.audience-card p { margin: 0; color: var(--muted); }
.section-dark .audience-card h3 { color: var(--blue-bright); }
.section-dark .audience-card p { color: rgba(255,255,255,0.65); }

/* ===== CTA banner ===== */
.cta-banner {
  background:
    radial-gradient(700px 350px at 20% -20%, rgba(26,115,232,0.35), transparent 60%),
    radial-gradient(600px 350px at 85% 120%, rgba(52,168,83,0.2), transparent 55%),
    var(--dark);
  color: var(--white);
  border-radius: 20px;
  padding: 56px;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin: 0 auto 16px; }
.cta-banner p { color: rgba(255,255,255,0.7); margin: 0 auto 28px; max-width: 560px; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1.5px solid #ddd;
  font-family: var(--font);
  font-size: 0.97rem;
  background: var(--white);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checkbox-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  font-size: 0.95rem;
  cursor: pointer;
}
.checkbox-option input { width: auto; }
.contact-info-card {
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-info-card h3 { margin-top: 0; }
.contact-info-item { margin-bottom: 22px; }
.contact-info-item .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}
.contact-info-item a, .contact-info-item span { color: rgba(255,255,255,0.85); }

.map-embed {
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
}

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 20px 0;
}
.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--blue-solid);
  margin-left: 16px;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: var(--muted); margin: 12px 0 0; }

/* ===== Footer ===== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-top .logo { margin-bottom: 8px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== Page hero (inner pages) ===== */
.page-hero {
  background: var(--dark);
  color: var(--white);
  padding: 72px 0 56px;
}
.page-hero .eyebrow-tag { color: var(--green); }

/* Gold/green drifting glow variant, used on the UTM tool (tracking + SEM) */
.page-hero.hero-glow-gold {
  position: relative;
  overflow: hidden;
}
.page-hero.hero-glow-gold::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(1100px 550px at 25% 30%, rgba(251,188,5,0.5), transparent 60%),
    radial-gradient(900px 500px at 75% 55%, rgba(52,168,83,0.35), transparent 55%);
  animation: heroGlowDrift 11s ease-in-out infinite alternate;
  pointer-events: none;
}
.page-hero.hero-glow-gold .wrap { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .page-hero.hero-glow-gold::before { animation: none; }
}
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 0 0 14px; font-weight: 800; }
.page-hero p { color: rgba(255,255,255,0.7); max-width: 560px; font-size: 1.05rem; margin: 0; }

.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.badge {
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

/* ===== Legal pages (Privacy, Terms) ===== */
.legal-content {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.legal-content .disclaimer {
  background: var(--light);
  border-left: 3px solid var(--gold-solid);
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 40px;
}
.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 36px 0 12px;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p,
.legal-content li {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
}
.legal-content ul { padding-left: 22px; margin: 0 0 14px; }
.legal-content a { color: var(--blue-solid); font-weight: 600; }
.legal-content a:hover { color: var(--blue); }

/* ===== Tools (UTM builder, etc.). Deliberately flatter/sharper than the
   rest of the site's soft, rounded language; these are utilities, not
   marketing surfaces. ===== */
.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.tool-url-section {
  max-width: 880px;
  margin: 0 auto 20px;
}
.tool-section-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 8px;
}
.tool-url-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 4px 4px 4px 16px;
}
.tool-url-box:focus-within { border-color: var(--blue-solid); }
.tool-url-icon { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.tool-url-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 15px 4px;
  font-size: 0.95rem;
}

.tool-panel {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  max-width: 880px;
  margin: 0 auto;
  overflow: hidden;
}
.tool-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid #e0e0e0;
  background: var(--light);
}
.tool-panel-header span {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.tool-clear-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue-solid);
  cursor: pointer;
}
.tool-clear-btn:hover { color: var(--blue); text-decoration: underline; }

.tool-group {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  padding: 26px 28px;
}
.tool-group + .tool-group { border-top: 1px solid #eee; }
.tool-group-optional { background: var(--light); }
.tool-group-help h3 {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 6px;
  color: var(--ink);
}
.tool-group-help .optional {
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: var(--gold-solid);
}
.tool-group-help p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 700px) {
  .tool-group { grid-template-columns: 1fr; gap: 10px; padding: 20px 20px; }
}

.tool-group-fields .form-field { margin-bottom: 0; }
.tool-group-fields .form-row { margin: 0; }
.tool-group-fields input {
  border-radius: 4px;
  font-size: 0.92rem;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
.tool-group-fields input:focus {
  outline: none;
  border-color: var(--blue-solid);
}

.tool-output {
  padding: 26px 28px;
  background: var(--dark);
  border-top: 1px solid #eee;
}
.tool-output label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
}
.output-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.output-row textarea {
  flex: 1;
  padding: 12px 14px;
  border-radius: 4px;
  border: 1px solid #333;
  font-size: 0.88rem;
  background: var(--dark-2);
  color: #e6edf3;
  resize: vertical;
}
.output-row textarea::placeholder { color: rgba(255,255,255,0.35); }
.output-row button {
  white-space: nowrap;
  background: var(--white);
  color: var(--ink);
  border: none;
  border-radius: 4px;
  padding: 0 18px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  align-self: stretch;
}
.output-row button:hover { background: #e6e6e6; }
@media (max-width: 560px) {
  .output-row { flex-direction: column; }
  .output-row button { align-self: flex-start; padding: 10px 18px; }
}
.tool-status {
  margin: 10px 0 0;
  font-size: 0.82rem;
  min-height: 1.2em;
}

.tool-history { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.12); }
.tool-history-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  margin: 0 0 3px;
}
.tool-history-warning {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.32);
  margin: 0 0 12px;
}
.tool-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}
.tool-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 8px 10px;
}
.tool-history-url {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tool-history-copy {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: rgba(255,255,255,0.35);
  flex-shrink: 0;
  display: flex;
}
.tool-history-copy:hover { color: rgba(255,255,255,0.85); }
.tool-history-copy svg { width: 14px; height: 14px; display: block; }
