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

:root {
  --brand-yellow: #FDCE00;
  --brand-black: #0d0d0d;
  --brand-dark: #1a1d24;
  --brand-bg: #f4f4f2;
  --brand-white: #ffffff;
  --brand-mid: #6b7280;
  --green: #16a34a;
  --red: #dc2626;
  --orange: #ea580c;
  --shadow: 0 2px 12px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Source Sans 3', sans-serif;
}

html { scroll-behavior: smooth }
body { font-family: var(--sans); background: var(--brand-bg); color: var(--brand-black); min-height: 100vh; -webkit-font-smoothing: antialiased; }

/* ── Header — exact match to main site ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 90px;
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.site-logo { height: 52px; width: auto; }

.tools-nav-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.tools-nav-back {
  font-size: .92rem;
  font-weight: 700;
  color: var(--brand-black);
  text-decoration: none;
  padding: .5rem .75rem;
  border-radius: 8px;
  transition: background .15s;
}
.tools-nav-back:hover { background: var(--brand-bg) }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .85rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
  transition: .2s ease;
  border: 2px solid transparent;
  text-decoration: none;
  font-family: var(--sans);
  font-size: .9rem;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px) }
.btn-primary { background: var(--brand-yellow); color: var(--brand-black); }
.btn-secondary { border-color: rgba(0,0,0,.16); background: var(--brand-white); color: var(--brand-black); }
.btn-sm { min-height: 36px; padding: .45rem 1rem; font-size: .85rem; }
.copied { background: var(--green) !important; color: #fff !important; border-color: transparent !important; }

/* ── Container ── */
.container { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.tool-container { max-width: 720px; margin: 0 auto; padding: 2.5rem 1.5rem 5rem; }

/* ── Tool header ── */
.tool-header { margin-bottom: 2rem; }
.tool-kicker {
  font-family: var(--mono);
  font-size: .72rem;
  background: var(--brand-black);
  color: var(--brand-yellow);
  padding: .25rem .7rem;
  border-radius: 4px;
  display: inline-block;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .85rem;
}
.tool-title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 900; color: var(--brand-black); line-height: 1.1; margin-bottom: .65rem; }
.tool-desc { font-size: 1rem; color: var(--brand-mid); line-height: 1.7; max-width: 580px; }

/* ── Cards ── */
.card {
  background: var(--brand-white);
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

/* ── Form elements ── */
label { display: block; font-size: .75rem; font-weight: 700; color: var(--brand-mid); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem; font-family: var(--mono); }
input[type="text"], input[type="email"], input[type="password"], textarea {
  width: 100%; background: var(--brand-bg); border: 1.5px solid rgba(0,0,0,.12);
  border-radius: 12px; padding: .75rem 1rem; color: var(--brand-black);
  font-family: var(--mono); font-size: .9rem; outline: none; transition: border-color .15s;
}
input:focus, textarea:focus { border-color: var(--brand-yellow); box-shadow: 0 0 0 3px rgba(253,206,0,.15) }
textarea { resize: vertical; min-height: 90px; }
input[type="range"] { width: 100%; accent-color: var(--brand-black); cursor: pointer; margin: .5rem 0; }

/* ── Checkboxes ── */
.check-row { display: flex; align-items: center; gap: .6rem; margin-bottom: .55rem; cursor: pointer; }
.check-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--brand-black); cursor: pointer; }
.check-row span { font-size: .9rem; }

/* ── Output box ── */
.output-box {
  background: var(--brand-black);
  border: 1.5px solid rgba(0,0,0,.12);
  border-radius: 12px;
  padding: .85rem 1rem;
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--brand-yellow);
  word-break: break-all;
  min-height: 48px;
}

/* ── Strength bar ── */
.strength-bar-wrap { height: 6px; background: var(--brand-bg); border-radius: 99px; overflow: hidden; margin: .75rem 0 .4rem; border: 1px solid rgba(0,0,0,.06); }
.strength-bar { height: 100%; border-radius: 99px; transition: width .3s, background .3s; width: 0; }

/* ── Info rows ── */
.info-row { display: flex; align-items: center; justify-content: space-between; padding: .65rem 0; border-bottom: 1px solid rgba(0,0,0,.06); font-size: .875rem; gap: .5rem; }
.info-row:last-child { border-bottom: none }
.info-label { color: var(--brand-mid); font-family: var(--mono); font-size: .775rem; }

/* ── Badges ── */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 700; font-family: var(--mono); white-space: nowrap; }
.badge-green { background: #f0fdf4; color: var(--green); border: 1px solid #bbf7d0; }
.badge-red { background: #fef2f2; color: var(--red); border: 1px solid #fecaca; }
.badge-orange { background: #fff7ed; color: var(--orange); border: 1px solid #fed7aa; }
.badge-yellow { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* ── Notice ── */
.notice { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: .85rem 1rem; font-size: .825rem; color: #78350f; line-height: 1.65; margin-top: 1rem; }
.notice strong { color: #92400e; }

/* ── Footer — exact match to main site ── */
.site-footer { background: var(--brand-dark); color: #d6d6d6; padding: 3rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 2rem; padding-bottom: 2.5rem; }
.site-footer p { color: #d6d6d6; line-height: 1.6; font-size: .9rem; }
.site-footer h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: .75rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin: .5rem 0; color: #d6d6d6; }
.site-footer a { color: #d6d6d6; text-decoration: none; transition: color .15s; }
.site-footer a:hover { color: var(--brand-yellow) }
.site-logo--footer { height: 44px; width: auto; margin-bottom: 1rem; display: block; }
.brand-footer { display: block; }
.footer-hours { font-size: .875rem; color: #d6d6d6; margin-top: .5rem; line-height: 1.7; }
.footer-hours strong { display: block; color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .25rem; }
.footer-social { display: flex; gap: .75rem; margin-top: 1rem; }
.footer-social-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.08); color: #d6d6d6; text-decoration: none; transition: background .15s, color .15s; }
.footer-social-icon:hover { background: var(--brand-yellow); color: var(--brand-black); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.08); padding: 1.25rem 0; }
.footer-legal-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-legal p { font-size: .75rem; color: #888; }
.footer-legal-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-legal-links a { font-size: .75rem; color: #888; text-decoration: none; transition: color .15s; }
.footer-legal-links a:hover { color: #fff }

/* ── Review trust strip ── */
.review-trust-strip { background: var(--brand-bg); border-top: 1px solid rgba(0,0,0,.07); border-bottom: 1px solid rgba(0,0,0,.07); padding: 1.25rem 0; }
.review-trust-inner { display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap; text-align: center; }
.review-trust-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-mid); margin: 0; width: 100%; text-align: center; }
.review-trust-badges { display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: nowrap; }
.review-badge { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--brand-black); padding: .5rem .85rem; border-radius: 12px; border: 1px solid rgba(0,0,0,.08); background: #fff; transition: border-color .15s, box-shadow .15s; white-space: nowrap; }
.review-badge:hover { border-color: rgba(0,0,0,.2); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.tp-wordmark, .g-wordmark { height: 18px; width: auto; }
.review-badge-stars { font-size: 1rem; letter-spacing: 1px; }
.review-badge-score { font-size: .8rem; font-weight: 700; color: var(--brand-mid); }
.review-badge-divider { width: 1px; height: 32px; background: rgba(0,0,0,.1); flex-shrink: 0; }

@media(max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr }
}
@media(max-width: 600px) {
  .nav { min-height: 70px; }
  .site-logo { height: 38px; }
  .tool-container { padding: 1.75rem 1rem 4rem; }
  /* Hide back link on mobile — logo already links to main site */
  .tools-nav-back { display: none; }
  /* Keep remote support button but smaller */
  .tools-nav-actions .btn-primary { min-height: 38px; padding: .5rem .85rem; font-size: .8rem; }
}

@media(max-width: 480px) {
  /* Review strip — shrink badges to fit, hide score like main site */
  .review-trust-badges { gap: 1rem; }
  .review-badge { padding: .45rem .65rem; gap: .5rem; }
  .review-badge-score { display: none; }
}
