/* ToolBase — shared stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── LIGHT MODE (default) ── */
:root {
  --ink: #111318;
  --ink-2: #3d4049;
  --ink-3: #71747d;
  --ink-4: #a0a3ab;
  --page: #F8F8F6;
  --surface: #FFFFFF;
  --border: #E4E4E0;
  --border-2: #D0D0CB;
  --blue: #2558E8;
  --blue-dark: #1A43C2;
  --blue-bg: #EEF2FD;
  --blue-border: #C3CFF8;
  --green: #15803D;
  --green-bg: #F0FDF4;
  --orange: #C2410C;
  --orange-bg: #FFF7ED;
  --purple: #6D28D9;
  --purple-bg: #F5F3FF;
  --teal: #0F766E;
  --teal-bg: #F0FDFA;
  --r: 8px;
  --r-lg: 14px;
}

/* ── DARK MODE ── */
[data-theme="dark"] {
  --ink: #F0F0EE;
  --ink-2: #C8C8C4;
  --ink-3: #8A8A86;
  --ink-4: #5A5A58;
  --page: #141414;
  --surface: #1E1E1E;
  --border: #2C2C2C;
  --border-2: #3A3A3A;
  --blue: #5B8EF5;
  --blue-dark: #4070E0;
  --blue-bg: #1A2340;
  --blue-border: #2A3D6A;
  --green: #4ADE80;
  --green-bg: #0D2A1A;
  --orange: #FB923C;
  --orange-bg: #2A1500;
  --purple: #A78BFA;
  --purple-bg: #1E1040;
  --teal: #2DD4BF;
  --teal-bg: #0A2020;
}

/* ── SMOOTH TRANSITION for theme switch ── */
body, .site-header, .tool-card, .side-block, .result-area,
.faq-item, .related-card, .blog-card, .tool-tile, .stat-cell,
.ad-slot, .output-box, .extracted-table th, input, textarea,
select, .footer-main, .footer-bottom, .site-footer {
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--page);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

/* ── DARK MODE TOGGLE BUTTON ── */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--page);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
  color: var(--ink-3);
  margin-left: 4px;
}
.theme-toggle:hover {
  background: var(--surface);
  border-color: var(--border-2);
}

/* ── DARK MODE: form inputs need explicit bg ── */
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="date"],
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}
[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
  border-color: var(--blue);
}

/* ── DARK MODE: misc overrides ── */
[data-theme="dark"] .extracted-table th { background: #2A2A2A; }
[data-theme="dark"] .extracted-table tr:nth-child(even) td { background: #1A1A1A; }
[data-theme="dark"] .score-circle { background: transparent; }
[data-theme="dark"] .homepage-hero { background: var(--surface); }
[data-theme="dark"] .tool-hero { background: var(--surface); }
[data-theme="dark"] .blog-hero { background: var(--surface); }
[data-theme="dark"] .blog-card-thumb { opacity: .85; }
[data-theme="dark"] .match-sentence { background: #3D3000; border-bottom-color: #EAB308; }
[data-theme="dark"] .match-sentence:hover { background: #4A3A00; }
[data-theme="dark"] .sim-bar { background: var(--border); }
[data-theme="dark"] .stats-strip { background: var(--surface); }
[data-theme="dark"] .plain-box { background: var(--surface); }
[data-theme="dark"] .output-box { background: var(--page); }
[data-theme="dark"] .strength-bar { background: var(--border); }

/* Hamburger mobile nav dark fix */
[data-theme="dark"] .site-nav.mobile-open {
  background: var(--surface) !important;
  border-bottom-color: var(--border) !important;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
p { max-width: 68ch; }
h1,h2,h3,h4 { line-height: 1.25; font-weight: 700; color: var(--ink); }

/* ── TOP AD BAR ── */
.ad-top {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 8px 16px;
}
.ad-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed var(--border-2);
  border-radius: 6px;
  color: var(--ink-4);
  font-size: 11px;
  letter-spacing: .06em;
  min-height: 90px;
  width: 728px;
  max-width: 100%;
}
.ad-slot.sidebar { width: 100%; min-height: 250px; }
.ad-slot.banner-sm { min-height: 60px; width: 100%; }
/* Replace with real AdSense:
<ins class="adsbygoogle" style="display:block"
  data-ad-client="ca-pub-XXXXXXXXXXXXXXXX"
  data-ad-slot="XXXXXXXXXX"
  data-ad-format="auto"></ins>
<script>(adsbygoogle=window.adsbygoogle||[]).push({});</script>
*/

/* ── HEADER ── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
  letter-spacing: -.02em;
}
.logo-mark {
  width: 28px; height: 28px;
  background: var(--blue);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
}
.logo-mark svg { width: 15px; height: 15px; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-3);
  padding: 5px 11px;
  border-radius: 6px;
  transition: background .12s, color .12s;
}
.site-nav a:hover, .site-nav a.active { background: var(--page); color: var(--ink); text-decoration: none; }
.nav-cta {
  font-size: 13px;
  font-weight: 600;
  background: var(--ink);
  color: #fff !important;
  padding: 6px 14px;
  border-radius: 6px;
  margin-left: 4px;
}
.nav-cta:hover { background: var(--ink-2) !important; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }

/* ── BREADCRUMB ── */
.breadcrumb {
  max-width: 1180px;
  margin: 0 auto;
  padding: .75rem 1.5rem;
  font-size: 13px;
  color: var(--ink-4);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--ink-3); }
.breadcrumb span { color: var(--ink-4); }

/* ── HERO ── */
.tool-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
}
.tool-hero h1 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); letter-spacing: -.025em; margin-bottom: .5rem; }
.tool-hero p { color: var(--ink-3); font-size: 15px; max-width: 50ch; margin: 0 auto; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 1rem; }
.tag {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  color: var(--ink-3);
  background: var(--page);
}

/* ── MAIN LAYOUT ── */
.page-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}
.page-wrap.full { grid-template-columns: 1fr; }
.main-col { min-width: 0; }

/* ── TOOL CARD ── */
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}
.tool-card-head {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.tool-icon-wrap {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}
.tool-card-head h2 { font-size: 15.5px; font-weight: 700; }
.tool-card-head p { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.tool-card-body { padding: 1.5rem; }

/* INPUTS */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: .03em; margin-bottom: 5px; }
input[type="text"],
input[type="number"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: 9px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
  outline: none;
  transition: border-color .15s;
  -webkit-appearance: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--blue); }
textarea { resize: vertical; min-height: 120px; line-height: 1.65; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; cursor: pointer; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border-radius: var(--r); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s; border: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { background: transparent; color: var(--ink-2); border: 1.5px solid var(--border); }
.btn-secondary:hover { background: var(--page); border-color: var(--border-2); }
.btn-row { display: flex; gap: 8px; margin-top: 1.25rem; flex-wrap: wrap; }

/* RESULT */
.result-area {
  background: var(--page);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  display: none;
}
.result-area.show { display: block; }
.result-label { font-size: 11px; font-weight: 700; color: var(--ink-4); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between; }
.result-main { font-size: 1.6rem; font-weight: 700; color: var(--ink); line-height: 1.3; word-break: break-word; }
.result-main.mono { font-family: 'Fira Mono', 'Courier New', monospace; font-size: 1.1rem; letter-spacing: .04em; }
.result-sub { font-size: 13px; color: var(--ink-3); margin-top: 5px; }
.copy-btn { font-size: 11.5px; font-weight: 600; color: var(--blue); background: none; border: none; cursor: pointer; padding: 2px 6px; border-radius: 4px; font-family: inherit; }
.copy-btn:hover { background: var(--blue-bg); }

/* STATS GRID */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 1.1rem; }
.stat-cell { background: var(--page); border: 1px solid var(--border); border-radius: var(--r); padding: .85rem 1rem; text-align: center; }
.stat-cell .sc-val { font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.stat-cell .sc-lbl { font-size: 11.5px; color: var(--ink-4); margin-top: 2px; }

/* ── CONTENT SECTIONS ── */
.content-section { margin-bottom: 2.5rem; }
.content-section h2 { font-size: 1.2rem; margin-bottom: .75rem; letter-spacing: -.01em; }
.content-section h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; color: var(--ink-2); }
.content-section p, .content-section li { font-size: 15px; color: var(--ink-2); }
.content-section ul, .content-section ol { padding-left: 1.4rem; display: flex; flex-direction: column; gap: 5px; }

/* EXAMPLE TABLE */
.example-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: .75rem; }
.example-table th { background: var(--page); font-size: 12px; font-weight: 700; color: var(--ink-3); text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.example-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); color: var(--ink-2); vertical-align: top; }
.example-table tr:last-child td { border-bottom: none; }
.example-table code { background: var(--page); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; font-size: 13px; color: var(--blue); font-family: 'Fira Mono', monospace; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q { width: 100%; text-align: left; padding: 1rem 1.25rem; background: var(--surface); border: none; cursor: pointer; font-family: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-q:hover { background: var(--page); }
.faq-q .chevron { flex-shrink: 0; transition: transform .2s; font-size: 12px; color: var(--ink-4); }
.faq-item.open .faq-q .chevron { transform: rotate(180deg); }
.faq-a { font-size: 14px; color: var(--ink-2); padding: 0 1.25rem; max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s; }
.faq-item.open .faq-a { max-height: 500px; padding: 0 1.25rem 1rem; }

/* ── RELATED TOOLS ── */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: .75rem; }
.related-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: .9rem 1rem;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.related-card:hover { border-color: var(--blue-border); box-shadow: 0 2px 12px rgba(37,88,232,.07); text-decoration: none; }
.related-card .rc-icon { font-size: 20px; margin-bottom: 6px; }
.related-card .rc-title { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.related-card .rc-desc { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.side-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.25rem; }
.side-block h3 { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: .9rem; letter-spacing: .01em; }
.side-tool-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.side-tool-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  padding: 6px 8px;
  border-radius: 6px;
  transition: background .12s, color .12s;
}
.side-tool-list li a:hover, .side-tool-list li a.active { background: var(--blue-bg); color: var(--blue); text-decoration: none; }
.side-tool-list li a .ti { font-size: 14px; flex-shrink: 0; }

/* ── HOMEPAGE ── */
.homepage-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
}
.homepage-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.03em; margin-bottom: .7rem; }
.homepage-hero p { font-size: 16px; color: var(--ink-3); max-width: 48ch; margin: 0 auto 1.5rem; }
.search-bar {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}
.search-bar input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  font-size: 15px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--page);
}
.search-bar input:focus { border-color: var(--blue); background: var(--surface); }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-4); font-size: 17px; pointer-events: none; }

.tools-grid-section { max-width: 1180px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.section-heading { font-size: 1.05rem; font-weight: 700; margin-bottom: 1.1rem; display: flex; align-items: center; gap: 8px; }
.section-heading::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tool-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  display: block;
  text-decoration: none;
  transition: border-color .15s, transform .15s;
  position: relative;
  overflow: hidden;
}
.tool-tile:hover { border-color: var(--blue-border); transform: translateY(-2px); text-decoration: none; }
.tool-tile-icon { font-size: 26px; margin-bottom: .75rem; display: block; }
.tool-tile h3 { font-size: 14.5px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.tool-tile p { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; max-width: none; }
.tool-tile .arrow { position: absolute; bottom: 1rem; right: 1rem; font-size: 14px; color: var(--ink-4); transition: color .15s, right .15s; }
.tool-tile:hover .arrow { color: var(--blue); right: .85rem; }
.popular-badge { position: absolute; top: 10px; right: 10px; font-size: 10px; font-weight: 700; background: var(--orange-bg); color: var(--orange); border: 1px solid #FDBA74; padding: 2px 7px; border-radius: 999px; }

/* ── HOW IT WORKS ── */
.steps-row { display: flex; flex-direction: column; gap: 0; }
.step { display: flex; gap: 16px; padding: .9rem 0; border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: none; }
.step-num { width: 28px; height: 28px; background: var(--blue-bg); color: var(--blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex-shrink: 0; margin-top: 2px; }
.step h3 { font-size: 14.5px; margin-bottom: 2px; }
.step p { font-size: 13.5px; color: var(--ink-3); max-width: none; }

/* ── FOOTER ── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}
.footer-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: 220px 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand p { font-size: 13px; color: var(--ink-3); margin-top: .6rem; max-width: 24ch; line-height: 1.6; }
.footer-col h4 { font-size: 12px; font-weight: 700; color: var(--ink); letter-spacing: .04em; margin-bottom: .75rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.footer-col ul a { font-size: 13px; color: var(--ink-3); }
.footer-col ul a:hover { color: var(--ink); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--border);
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--ink-4);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: var(--ink-4); }
.footer-bottom a:hover { color: var(--ink); text-decoration: none; }

/* ── STRENGTH BAR ── */
.strength-wrap { margin-top: 8px; }
.strength-bar { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.strength-fill { height: 100%; border-radius: 3px; transition: width .3s, background .3s; }
.strength-lbl { font-size: 12px; font-weight: 600; margin-top: 4px; }

/* ── SLIDER ── */
.slider-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; }
.slider-wrap label { font-size: 12px; font-weight: 700; color: var(--ink-3); min-width: 90px; }
.slider-wrap input[type="range"] { flex: 1; accent-color: var(--blue); }
.slider-val { font-size: 14px; font-weight: 700; min-width: 32px; text-align: right; }

/* ── CHECKBOXES ── */
.check-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.1rem; }
.check-pill { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; padding: 5px 11px; border: 1.5px solid var(--border); border-radius: 6px; background: var(--surface); cursor: pointer; color: var(--ink-3); transition: all .12s; user-select: none; }
.check-pill input { accent-color: var(--blue); }
.check-pill:has(input:checked) { border-color: var(--blue-border); background: var(--blue-bg); color: var(--blue); }

/* ── UNIT ── */
.unit-row { display: grid; grid-template-columns: 1fr 40px 1fr; gap: 10px; align-items: end; }
.swap-btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: border-color .12s; margin-bottom: 1px; }
.swap-btn:hover { border-color: var(--blue); }
.cat-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1.25rem; }
.cat-btn { font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 6px; border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; color: var(--ink-3); font-family: inherit; transition: all .12s; }
.cat-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.cat-btn:hover:not(.active) { border-color: var(--border-2); color: var(--ink); }

/* ── PERCENTAGE ── */
.pct-tabs { display: flex; background: var(--page); border-radius: var(--r); padding: 3px; gap: 3px; margin-bottom: 1.25rem; border: 1px solid var(--border); }
.pct-tab { flex: 1; font-size: 12.5px; font-weight: 600; padding: 7px; border-radius: 6px; border: none; background: transparent; color: var(--ink-3); cursor: pointer; font-family: inherit; transition: all .12s; text-align: center; }
.pct-tab.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* ── MOBILE ── */
@media (max-width: 768px) {
  .page-wrap { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .site-nav { display: none; }
  .hamburger { display: block; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .unit-row { grid-template-columns: 1fr; }
  .swap-btn { transform: rotate(90deg); margin: 0 auto; }
}
@media (max-width: 480px) {
  .footer-main { grid-template-columns: 1fr; }
  .homepage-hero h1 { font-size: 1.9rem; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
}
