/*
  DigitalQuiver Tools — shared stylesheet
  Dark, mobile-first, card-based UI. Custom navy + gold identity.
*/

:root {
  /* Softer-than-black dark theme: avoids the near-black / near-white
     combination that causes halation/eye strain during long reading. */
  --bg: #12172a;
  --bg-elevated: #171e35;
  --card: #1a2238;
  --card-hover: #212b46;
  --border: #2a3350;
  --border-light: #343f5e;
  --text: #dde3f0;
  --text-body: #b9c2d6;
  --text-dim: #8f9ab4;
  --text-faint: #6b7692;
  --accent: #f5a524;
  --accent-hover: #ffb84d;
  --accent-ink: #201203;
  --accent-2: #36d1c4;
  --danger: #f1554c;
  --success: #36d399;
  --header-bg: rgba(18, 23, 42, 0.98);
  --icon-bg: rgba(245, 165, 36, 0.12);
  --radius: 14px;
  --radius-sm: 9px;
  --max-width: 1080px;
  --header-h: 60px;
}

[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-elevated: #ffffff;
  --card: #ffffff;
  --card-hover: #eef0f6;
  --border: #e2e6f0;
  --border-light: #d0d6e6;
  --text: #1b2033;
  --text-body: #3a4258;
  --text-dim: #5c6478;
  --text-faint: #7a8296;
  --accent: #966006;
  --accent-hover: #b3790a;
  --accent-ink: #fffaf3;
  --accent-2: #08685f;
  --danger: #c02e26;
  --success: #168a58;
  --header-bg: rgba(255, 255, 255, 0.98);
  --icon-bg: rgba(150, 96, 6, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}
html[data-theme="light"] {
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color .15s ease, color .15s ease;
}

img, svg { max-width: 100%; }

a {
  color: var(--accent-2);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand .brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
  display: block;
}
.brand .brand-sub {
  color: var(--accent);
  font-weight: 700;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.92rem;
}
.header-nav a { color: var(--text-dim); white-space: nowrap; }
.header-nav a:hover { color: var(--text); text-decoration: none; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  flex: none;
}
.nav-toggle:hover { border-color: var(--accent); color: var(--text); }
.nav-toggle svg { width: 17px; height: 17px; }
.nav-toggle .icon-menu-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu-close { display: block; }

@media (max-width: 699px) {
  .nav-toggle { display: inline-flex; }
  .header-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 8px 16px 14px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.18);
    display: none;
  }
  .header-nav.open { display: flex; }
  .header-nav a { padding: 10px 4px; border-bottom: 1px solid var(--border); }
  .header-nav a:last-child { border-bottom: none; }
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  flex: none;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--text); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin: 16px 0 6px;
}
.breadcrumb a { color: var(--text-faint); }
.breadcrumb a:hover { color: var(--accent-2); }
.breadcrumb .sep { margin: 0 6px; }
.breadcrumb .current { color: var(--text-dim); }

/* ---------- Hero (home) ---------- */
.hero {
  padding: 56px 0 32px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--icon-bg);
  color: var(--accent);
  border: 1px solid rgba(245, 165, 36, 0.3);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 22px;
}
[data-theme="light"] .hero-badge { border-color: rgba(150, 96, 6, 0.3); }
.hero-badge-icon { width: 16px; height: 16px; }
.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.hero h1 .accent { color: var(--accent); }
.hero h1 .accent-teal { color: var(--accent-2); }
.hero p {
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 1.1rem;
}
.hero-cta .btn { padding: 15px 28px; font-size: 1.02rem; }
.hero .search-wrap { max-width: 560px; }
.hero .search-wrap svg { width: 20px; height: 20px; left: 18px; }
.hero .search-wrap input { padding: 17px 18px 17px 50px; font-size: 1.05rem; }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 26px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin-top: 26px;
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat strong { font-size: 1.4rem; font-weight: 800; color: var(--text); }
.hero-stat span { font-size: 0.76rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; }

.search-wrap {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}
.search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-faint);
}
.search-wrap input {
  width: 100%;
  padding: 13px 14px 13px 42px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--card);
  color: var(--text);
  font-size: 0.95rem;
}
.search-wrap input:focus {
  outline: none;
  border-color: var(--accent);
}
.search-count {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-faint);
  min-height: 1.2em;
}

/* ---------- Category & Grid ---------- */
.category-section {
  margin: 30px 0;
}
.category-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  scroll-margin-top: 80px;
}
.category-heading .count {
  color: var(--text-faint);
  font-size: 0.8rem;
  font-weight: 400;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.tool-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 14px;
  color: var(--text);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.tool-card:hover {
  text-decoration: none;
  border-color: var(--accent);
  background: var(--card-hover);
  transform: translateY(-2px);
}
.tool-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--icon-bg);
  color: var(--accent);
  margin-bottom: 10px;
}
.tool-card .icon .icon-svg {
  width: 20px;
  height: 20px;
}
.tool-card.article-card .icon {
  background: rgba(54, 209, 196, 0.12);
  color: var(--accent-2);
}
[data-theme="light"] .tool-card.article-card .icon {
  background: rgba(8, 104, 95, 0.09);
}
.tool-card .name {
  font-weight: 800;
  font-size: 1.05rem;
  display: block;
  margin-bottom: 5px;
}
.tool-card .desc {
  color: var(--text-dim);
  font-size: 0.85rem;
  display: block;
}

.tool-card.article-card:hover {
  border-color: var(--accent-2);
}
.article-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(54, 209, 196, 0.12);
  border: 1px solid rgba(54, 209, 196, 0.35);
  border-radius: 999px;
  padding: 2px 9px;
  margin-bottom: 8px;
}

/* ---------- Featured Tools (horizontal cards) ---------- */
.featured-section { margin: 44px 0 6px; }
.featured-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.featured-heading h2 { margin: 0 0 6px; font-size: 1.7rem; font-weight: 800; }
.featured-sub { margin: 0; color: var(--text-faint); font-size: 1rem; }
.featured-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--accent-2);
  white-space: nowrap;
}
.featured-view-all:hover { text-decoration: none; }
.featured-view-all svg { width: 17px; height: 17px; }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 700px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--text);
  transition: border-color .12s ease, background .12s ease, transform .12s ease;
}
.feature-card:hover {
  text-decoration: none;
  border-color: var(--accent);
  background: var(--card-hover);
  transform: translateY(-2px);
}
.feature-card .icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--icon-bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.feature-card .icon.chip-teal { background: rgba(54, 209, 196, 0.14); color: var(--accent-2); }
[data-theme="light"] .feature-card .icon.chip-teal { background: rgba(8, 104, 95, 0.1); }
.feature-card .icon .icon-svg { width: 24px; height: 24px; }
.feature-card-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.feature-card-text .name { font-weight: 800; font-size: 1.15rem; }
.feature-card-text .desc { color: var(--text-faint); font-size: 0.92rem; margin-top: 4px; }
.feature-card-arrow {
  flex: none;
  color: var(--text-faint);
  display: flex;
}
.feature-card-arrow svg { width: 16px; height: 16px; }
.feature-card:hover .feature-card-arrow { color: var(--accent); }
.featured-explore { text-align: center; margin-top: 24px; }
.featured-explore .btn svg { width: 16px; height: 16px; margin-left: 2px; }

/* ---------- Browser support marquee ---------- */
.brand-marquee {
  margin-top: 36px;
  padding: 26px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.brand-marquee-label {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 20px;
}
.marquee-track {
  overflow: hidden;
  width: 100%;
}
.marquee-content {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: marquee-scroll 24s linear infinite;
}
.marquee-track:hover .marquee-content { animation-play-state: paused; }
.marquee-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-faint);
  flex: none;
  transition: color .15s ease;
}
.marquee-logo:hover { color: var(--text); }
.marquee-logo svg { width: 28px; height: 28px; }
.marquee-logo span { font-size: 1.05rem; font-weight: 700; white-space: nowrap; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-16.6667%); }
}
/* ---------- Trust band ---------- */
.trust-band {
  margin: 40px 0 0;
  padding: 56px 24px;
  width: 100%;
  /* Fixed brand teal (not the theme-switching --accent-2, which
     goes dark in light mode for link-text contrast reasons and
     would make the dark navy text below unreadable here). */
  background: #36d1c4;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}
.trust-band-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  text-align: center;
}
@media (min-width: 700px) {
  .trust-band-inner { grid-template-columns: repeat(3, 1fr); }
}
.trust-item { max-width: 320px; margin: 0 auto; }
.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(18, 23, 42, 0.22);
  border: 1px solid rgba(18, 23, 42, 0.15);
  color: #12172a;
  margin-bottom: 16px;
}
.trust-icon svg { width: 26px; height: 26px; }
.trust-item h3 { color: #12172a; margin: 0 0 8px; font-size: 1.2rem; font-weight: 800; }
.trust-item p { color: rgba(18, 23, 42, 0.75); font-size: 0.86rem; margin: 0; }

.no-results {
  display: none;
  text-align: center;
  color: var(--text-faint);
  padding: 30px 0;
}

/* ---------- Ad slots ---------- */
.ad-slot {
  margin: 26px auto;
  max-width: 100%;
  text-align: center;
}
.ad-slot-inner {
  display: inline-block;
  max-width: 100%;
  overflow-x: auto;
  line-height: 0;
}

/* ---------- Tool page layout ---------- */
main.tool-main {
  padding-bottom: 40px;
}
.tool-header {
  margin: 4px 0 20px;
}
.tool-header h1 {
  font-size: 1.5rem;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.tool-header .tool-tagline {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 0;
}

.tool-widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.field {
  margin-bottom: 14px;
}
.field:last-child { margin-bottom: 0; }
.field label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 6px;
  font-weight: 600;
}
.field .hint {
  font-size: 0.76rem;
  color: var(--text-faint);
  margin-top: 5px;
}

textarea, input[type="text"], input[type="number"], input[type="password"],
input[type="date"], input[type="url"], select {
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.94rem;
  font-family: inherit;
}
textarea {
  min-height: 140px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
}
textarea:focus, input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
}
input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}
input[type="checkbox"], input[type="radio"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 6px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.row .field { flex: 1 1 140px; margin-bottom: 0; }

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}
.checkbox-row label {
  display: flex;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 400;
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: filter .1s ease, background .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary {
  background: transparent;
  border-color: var(--border-light);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--accent); }
.btn-secondary.active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn-sm { padding: 7px 12px; font-size: 0.8rem; }
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* Toggle / segmented control (e.g. Encode/Decode) */
.segmented {
  display: inline-flex;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 3px;
  background: var(--bg-elevated);
  margin-bottom: 16px;
}
.segmented button {
  border: none;
  background: transparent;
  color: var(--text-dim);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.segmented button.active {
  background: var(--accent);
  color: var(--accent-ink);
}

/* Output box */
.output-box {
  position: relative;
}
.output-box textarea[readonly], .output-box input[readonly] {
  background: var(--bg);
}
.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--border);
  color: var(--text);
  border: none;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 0.76rem;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
}
.copy-btn:hover { background: var(--border-light); }
.copy-btn.copied { background: var(--success); color: #06281a; }

/* Result / stats display */
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.result-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}
.result-item .value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  word-break: break-word;
}
.result-item .label {
  font-size: 0.72rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.big-result {
  text-align: center;
  padding: 18px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: 16px;
}
.big-result .value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.big-result .label {
  color: var(--text-faint);
  font-size: 0.82rem;
  margin-top: 4px;
}

.rt-mark {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 3px;
  padding: 0 1px;
}

.error-msg {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 10px;
  display: none;
}
.error-msg.show { display: block; }

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 14px;
}
table.data-table th, table.data-table td {
  border-bottom: 1px solid var(--border);
  padding: 8px 6px;
  text-align: left;
}
table.data-table th { color: var(--text-dim); font-weight: 600; }
.table-scroll { overflow-x: auto; }

details.more-panel {
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
details.more-panel summary {
  cursor: pointer;
  color: var(--accent-2);
  font-size: 0.86rem;
  font-weight: 600;
}

/* ---------- Content / How-to block ---------- */
.tool-content {
  margin-top: 28px;
  color: var(--text-body);
  font-size: 0.97rem;
  line-height: 1.7;
}
.tool-content h2 {
  color: var(--text);
  font-size: 1.12rem;
  margin: 24px 0 10px;
}
.tool-content h2:first-child { margin-top: 0; }
.tool-content p { margin: 0 0 14px; color: var(--text-body); }
.tool-content ul, .tool-content ol { padding-left: 20px; margin: 0 0 12px; }
.tool-content li { margin-bottom: 6px; }
.tool-content strong { color: var(--text); font-weight: 700; }

.related-tools {
  margin-top: 26px;
}
.related-tools h2 {
  font-size: 1.02rem;
  margin: 0 0 12px;
}

/* ---------- Static content pages ---------- */
.page-content {
  padding: 30px 0 50px;
  max-width: 720px;
  margin: 0 auto;
}
.page-content h1 { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 8px; }
.page-content .updated { color: var(--text-faint); font-size: 0.8rem; margin-bottom: 24px; }
.page-content h2 { font-size: 1.3rem; font-weight: 800; margin-top: 30px; }
.page-content p { color: var(--text-dim); font-size: 1rem; line-height: 1.7; }
.page-content a { color: var(--accent-2); }
.page-content.wide { max-width: 960px; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  margin-top: 26px;
}
.contact-info h2 { margin-top: 0; }
.contact-item {
  display: flex;
  gap: 14px;
  margin-top: 22px;
}
.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--icon-bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.contact-icon .icon-svg { width: 19px; height: 19px; }
.contact-item strong { color: var(--text); }
.contact-item p { margin: 2px 0 0; font-size: 0.9rem; }
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
@media (min-width: 800px) {
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 30px 0 24px;
  color: var(--text-faint);
  font-size: 0.85rem;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-bottom: 20px;
}
.footer-col h3 {
  color: var(--text-dim);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}
.footer-col h3 a { color: inherit; }
.footer-col h3 a:hover { color: var(--accent-2); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 7px; }
.footer-col a { color: var(--text-faint); }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
}

@media (min-width: 560px) {
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 700px) {
  .hero h1 { font-size: 3.2rem; }
  .tool-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}

@media (min-width: 900px) {
  .footer-cols { grid-template-columns: repeat(5, 1fr); }
}

