/* =========================================================
   UtilTools Global Stylesheet
   File: /assets/css/style.css
   Purpose: Shared design system for UtilTools pages
   ========================================================= */

/* =========================================================
   01. DESIGN TOKENS
   Colors, shadows, spacing, radius and shared values
   ========================================================= */

:root {
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --border:#e5e7eb;

  --primary:#2563eb;
  --primary-dark:#1d4ed8;

  --green:#16a34a;
  --purple:#7c3aed;
  --amber:#d97706;
  --danger:#dc2626;

  --soft-blue:#eff6ff;
  --soft-green:#f0fdf4;
  --soft-orange:#fff7ed;
  --soft-red:#fef2f2;
  --soft-purple:#f3e8ff;

  --code-bg:#111827;
  --code-text:#e5e7eb;
  --code-accent:#93c5fd;

  --shadow:0 20px 40px rgba(15,23,42,.08);
  --shadow-soft:0 10px 24px rgba(15,23,42,.04);
  --shadow-hover:0 18px 40px rgba(15,23,42,.10);

  --radius-sm:12px;
  --radius-md:16px;
  --radius-lg:20px;
  --radius-xl:24px;
  --radius-2xl:28px;

  --container:960px;
  --container-wide:1100px;
}

/* =========================================================
   02. RESET / BASE
   Global element defaults
   ========================================================= */

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
}

body {
  margin:0;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:linear-gradient(180deg,#f8fafc 0%,#eef2ff 100%);
  color:var(--text);
  min-height:100vh;
}

a {
  color:var(--primary);
}

p,
li {
  color:var(--muted);
  line-height:1.75;
  font-size:1rem;
}

strong {
  color:var(--text);
}

button,
input,
select,
textarea {
  font:inherit;
}

/* =========================================================
   03. LAYOUT
   Header, containers and main page structure
   ========================================================= */

header {
  max-width:var(--container-wide);
  margin:0 auto;
  padding:28px 20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.logo {
  font-weight:800;
  font-size:1.2rem;
  text-decoration:none;
  color:var(--text);
}

.logo span {
  color:var(--primary);
}

nav a {
  color:var(--primary);
  text-decoration:none;
  font-size:.95rem;
  font-weight:700;
}

nav a:hover {
  text-decoration:underline;
}

main {
  max-width:var(--container);
  margin:0 auto;
  padding:30px 20px 80px;
}

.container-wide {
  max-width:var(--container-wide);
  margin:0 auto;
  padding:30px 20px 80px;
}

/* =========================================================
   04. HERO / PAGE INTRO
   Shared hero for tools and guide articles
   ========================================================= */

.hero,
.article-hero {
  text-align:center;
  margin-bottom:34px;
}

.badge {
  display:inline-block;
  padding:8px 14px;
  border-radius:999px;
  background:#dbeafe;
  color:#1e40af;
  font-size:.85rem;
  font-weight:800;
  margin-bottom:16px;
}

h1 {
  font-size:clamp(2.4rem,5vw,4.1rem);
  line-height:1.05;
  margin:0 0 16px;
  letter-spacing:-.05em;
}

.deck,
.hero p {
  max-width:760px;
  margin:0 auto;
  color:var(--muted);
  font-size:1.12rem;
  line-height:1.65;
}

.meta {
  margin-top:18px;
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:.9rem;
}

/* =========================================================
   05. SHARED COMPONENTS
   Buttons, tabs, cards, FAQ, related boxes and utilities
   ========================================================= */

/* ---------- Buttons ---------- */

button,
.button,
.btn,
.cta-btn {
  border:none;
  border-radius:14px;
  padding:12px 18px;
  font-weight:850;
  cursor:pointer;
  font-size:.95rem;
}

.button,
.btn,
.cta-btn {
  display:inline-block;
  text-decoration:none;
  text-align:center;
}

.primary,
.btn-primary {
  background:var(--primary);
  color:#ffffff;
}

.primary:hover,
.btn-primary:hover {
  background:var(--primary-dark);
}

.secondary {
  background:#f3f4f6;
  color:var(--text);
}

.secondary:hover {
  background:#e5e7eb;
}

.cta-btn,
.btn-white {
  background:#ffffff;
  color:var(--primary-dark);
  font-weight:900;
}

.cta-btn.outline,
.btn-outline {
  background:transparent;
  color:#ffffff;
  border:1px solid rgba(255,255,255,.55);
}

button:disabled,
.button:disabled {
  opacity:.45;
  cursor:not-allowed;
}

/* ---------- Tabs / hidden states ---------- */

.tabs {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:22px;
}

.tab {
  border:none;
  border-radius:12px;
  padding:11px 14px;
  background:#f3f4f6;
  color:var(--text);
  font-weight:800;
  cursor:pointer;
  font-size:.92rem;
}

.tab.active {
  background:var(--primary);
  color:#ffffff;
}

.hidden,
.calculator-form.hidden {
  display:none;
}

/* ---------- Generic cards and grids ---------- */

.quick-grid,
.conversion-grid,
.country-grid,
.comparison-grid,
.content-grid,
.insight-grid,
.info-grid {
  display:grid;
  gap:16px;
  margin:22px 0 30px;
}

.quick-grid,
.country-grid,
.comparison-grid,
.info-grid {
  grid-template-columns:repeat(2,1fr);
}

.insight-grid {
  grid-template-columns:repeat(3,1fr);
}

.content-grid {
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  margin-top:24px;
}

.quick-grid.three,
.content-grid.three {
  grid-template-columns:repeat(3,1fr);
}

.quick-card,
.country-card,
.comparison-card,
.content-box,
.insight-card,
.card {
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:20px;
  box-shadow:var(--shadow-soft);
}

.quick-card strong,
.content-box strong,
.insight-card strong {
  display:block;
  font-size:1.05rem;
  margin-bottom:8px;
  color:var(--text);
}

.quick-card span,
.insight-card span {
  color:var(--muted);
  line-height:1.6;
  display:block;
}

.card {
  display:block;
  text-decoration:none;
  color:var(--text);
  transition:transform .18s ease, box-shadow .18s ease;
}

.card:hover {
  transform:translateY(-2px);
  box-shadow:var(--shadow);
}

.card h3 {
  margin:0 0 8px;
  color:var(--text);
}

.card p {
  margin:0;
  color:var(--muted);
  line-height:1.6;
}

/* ---------- Content box variants ---------- */

.content-box {
  line-height:1.7;
}

.content-box h2 {
  margin:0 0 10px;
  font-size:1.25rem;
}

.content-box p,
.content-box li {
  color:var(--muted);
}

.content-box.blue {
  background:var(--soft-blue);
  border-color:#bfdbfe;
}

.content-box.green {
  background:var(--soft-green);
  border-color:#bbf7d0;
}

.content-box.blue h2 {
  color:var(--primary);
}

.content-box.green h2 {
  color:#15803d;
}

/* ---------- Country cards ---------- */

.country-card h3 {
  margin:0 0 8px;
  font-size:1.05rem;
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
}

.country-card p {
  margin:0 0 10px;
  font-size:.95rem;
}

.country-card ul {
  margin:0;
  padding-left:20px;
}

.country-card li {
  font-size:.92rem;
  margin-bottom:4px;
}

.tip-tag {
  display:inline-block;
  white-space:nowrap;
  background:#dbeafe;
  color:#1e40af;
  border-radius:999px;
  padding:5px 9px;
  font-size:.74rem;
  font-weight:900;
}

/* ---------- FAQ / SEO / related ---------- */

.faq,
.seo-section {
  margin-top:24px;
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:22px;
  padding:24px;
  line-height:1.75;
}

.faq h2,
.seo-section h2 {
  margin-top:0;
  color:var(--text);
}

.seo-section p {
  color:var(--muted);
}

.faq-list,
.faq-grid {
  display:grid;
  gap:12px;
  margin:18px 0 0;
}

.faq-grid {
  grid-template-columns:1fr 1fr;
}

details {
  border:1px solid var(--border);
  border-radius:16px;
  padding:16px 18px;
  background:#fbfdff;
}

summary {
  cursor:pointer;
  font-weight:850;
  color:var(--text);
}

details p {
  margin-bottom:0;
}

.related {
  margin-top:24px;
  background:rgba(255,255,255,.65);
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px 20px;
  color:var(--muted);
  font-size:.95rem;
  line-height:1.7;
}

.related a {
  color:var(--primary);
  text-decoration:none;
  font-weight:800;
  margin-right:14px;
}

.related a:hover {
  text-decoration:underline;
}

/* ---------- CTA ---------- */

.cta-banner {
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));
  color:white;
  border-radius:24px;
  padding:32px;
  text-align:center;
  margin:34px 0;
  box-shadow:var(--shadow);
}

.cta-banner h2,
.cta-banner h3 {
  color:white;
  margin:0 0 8px;
  padding:0;
  border:0;
  font-size:1.5rem;
}

.cta-banner p {
  color:rgba(255,255,255,.85);
  margin-bottom:22px;
}

.cta-tools {
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}

/* ---------- Tables ---------- */

.table-wrap {
  overflow-x:auto;
  margin:18px 0 26px;
  border:1px solid var(--border);
  border-radius:18px;
  background:#ffffff;
}

table {
  width:100%;
  border-collapse:collapse;
  min-width:520px;
}

th,
td {
  padding:14px 16px;
  text-align:left;
  border-bottom:1px solid var(--border);
  vertical-align:top;
}

th {
  background:#f8fafc;
  color:var(--text);
  font-size:.9rem;
  font-weight:900;
}

td {
  color:var(--muted);
  line-height:1.55;
}

tr:last-child td {
  border-bottom:none;
}

/* =========================================================
   06. FORM ELEMENTS
   Inputs, form groups, actions, helper text and notes
   ========================================================= */

.form-group {
  margin-bottom:18px;
}

label {
  display:block;
  font-weight:800;
  margin-bottom:8px;
}

input,
select,
textarea {
  width:100%;
  border:1px solid var(--border);
  border-radius:14px;
  padding:15px 16px;
  font-size:1rem;
  font-family:inherit;
  outline:none;
  background:#ffffff;
}

textarea {
  min-height:160px;
  resize:vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color:var(--primary);
  box-shadow:0 0 0 4px rgba(37,99,235,.12);
}

.helper,
.hint {
  color:var(--muted);
  font-size:.92rem;
  line-height:1.45;
  margin-top:7px;
}

.checkbox-row {
  display:flex;
  align-items:center;
  gap:8px;
  margin:10px 0 18px;
  font-weight:800;
}

.checkbox-row input {
  width:auto;
  margin:0;
}

.actions {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:20px;
}

.actions-split {
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:12px;
}

.feedback {
  color:var(--danger);
  font-weight:700;
  min-height:1.2em;
  margin-top:14px;
}

.privacy-note {
  margin-top:18px;
  background:var(--soft-green);
  border:1px solid #bbf7d0;
  color:#15803d;
  border-radius:16px;
  padding:14px 16px;
  line-height:1.55;
  font-size:.95rem;
}

.uses-list {
  padding-left:20px;
  margin-bottom:0;
}

/* ---------- Presets ---------- */

.preset-buttons {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin-top:10px;
}

.preset {
  background:#f3f4f6;
  color:var(--text);
  border:1px solid var(--border);
  border-radius:12px;
  padding:11px 12px;
  font-weight:850;
  cursor:pointer;
}

.preset.active {
  background:var(--primary);
  color:#ffffff;
  border-color:var(--primary);
}

/* ---------- Input prefix/suffix ---------- */

.input-wrap {
  position:relative;
}

.prefix,
.suffix {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  color:var(--muted);
  font-weight:700;
}

.prefix { left:16px; }
.suffix { right:16px; }

.has-prefix { padding-left:42px; }
.has-suffix { padding-right:78px; }

/* =========================================================
   07. TOOL COMPONENTS
   Tool layout, panels, results and feature strips
   ========================================================= */

.tool-card {
  background:var(--card);
  border:1px solid var(--border);
  border-radius:28px;
  box-shadow:var(--shadow);
  padding:26px;
}

.tool-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:26px;
  align-items:stretch;
}

.tool-layout {
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:26px;
  align-items:start;
}
.text-tool-grid {
  align-items:stretch;
}

.code-textarea {
  min-height:260px;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
}

.tool-top,
.controls {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.controls {
  justify-content:flex-end;
}

.input-panel,
.result-panel {
  border:1px solid var(--border);
  border-radius:22px;
  padding:24px;
  background:#fbfdff;
}

.panel-heading {
  display:flex;
  gap:14px;
  align-items:center;
  margin-bottom:22px;
}

.icon {
  width:48px;
  height:48px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#dbeafe;
  color:var(--primary);
  font-size:1.35rem;
  font-weight:900;
  flex-shrink:0;
}

.icon.green {
  background:#dcfce7;
  color:var(--green);
}

.icon.purple {
  background:var(--soft-purple);
  color:var(--purple);
}

.panel-heading h2 {
  margin:0 0 4px;
  font-size:1.25rem;
}

.panel-heading p {
  margin:0;
  color:var(--muted);
  line-height:1.45;
  font-size:.95rem;
}

/* ---------- Result panel ---------- */

.result-panel {
  background:linear-gradient(180deg,#eff6ff 0%,#ffffff 100%);
  border-color:#bfdbfe;
  display:flex;
  flex-direction:column;
  justify-content:center;
  text-align:center;
}

.result-main {
  text-align:center;
  margin-bottom:24px;
}

.result-label {
  color:var(--primary);
  font-weight:900;
  margin-bottom:14px;
  font-size:1rem;
}

.result-value {
  font-size:clamp(3rem,7vw,5rem);
  font-weight:950;
  letter-spacing:-.07em;
  color:var(--primary);
  margin-bottom:10px;
}

.result-value.green { color:var(--green); }
.result-value.blue { color:var(--primary); }
.result-value.purple { color:var(--purple); }

.result-summary {
  color:var(--muted);
  line-height:1.55;
  min-height:1.5em;
  margin-bottom:22px;
}

.result-breakdown,
.result-grid {
  display:grid;
  gap:12px;
}

.result-grid {
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  text-align:center;
}

.breakdown-row,
.result-box {
  background:rgba(255,255,255,.78);
  border:1px solid rgba(191,219,254,.9);
  border-radius:16px;
  padding:14px 16px;
  font-weight:800;
}

.breakdown-row {
  display:flex;
  justify-content:space-between;
  gap:16px;
}

.breakdown-row span:first-child {
  color:var(--muted);
  font-weight:700;
}

.result-note {
  margin-top:8px;
  color:var(--muted);
  font-size:.9rem;
  line-height:1.4;
}

.results {
  margin-top:28px;
  background:var(--soft-blue);
  border:1px solid #bfdbfe;
  border-radius:22px;
  padding:22px;
}

.results h2 {
  margin:0 0 6px;
  color:#1d4ed8;
  font-size:1.25rem;
}

.results-intro {
  margin:0 0 22px;
  color:var(--muted);
}

/* ---------- Formula box for calculator result panel ---------- */

.formula-box {
  background:#ffffff;
  border:1px solid #bfdbfe;
  color:#1e40af;
  border-radius:16px;
  padding:16px;
  font-weight:850;
  line-height:1.6;
  text-align:center;
}

/* ---------- Feature strip ---------- */

.feature-strip {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin-top:22px;
  background:rgba(255,255,255,.65);
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
}

.feature {
  display:flex;
  gap:12px;
  align-items:flex-start;
}

.feature-icon {
  color:var(--primary);
  font-weight:900;
  font-size:1.2rem;
  line-height:1;
}

.feature strong {
  display:block;
  margin-bottom:2px;
}

.feature span {
  color:var(--muted);
  font-size:.88rem;
  line-height:1.4;
}

/* =========================================================
   08. ARTICLE / GUIDE COMPONENTS
   Article cards, TOC, formula blocks, examples and stories
   ========================================================= */

.article-card {
  background:var(--card);
  border:1px solid var(--border);
  border-radius:28px;
  box-shadow:var(--shadow);
  padding:28px;
}

.article-card h2 {
  font-size:clamp(1.65rem,3vw,2.1rem);
  letter-spacing:-.035em;
  margin:46px 0 14px;
  padding-top:28px;
  border-top:1px solid var(--border);
}

.article-card h2:first-child {
  margin-top:0;
  padding-top:0;
  border-top:none;
}

.article-card h3 {
  font-size:1.25rem;
  margin:26px 0 10px;
}

/* ---------- TOC ---------- */

.toc {
  background:var(--soft-blue);
  border:1px solid #bfdbfe;
  border-radius:20px;
  padding:22px;
  margin-bottom:28px;
}

.toc-title {
  font-size:.8rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#1e40af;
  font-weight:900;
  margin-bottom:12px;
}

.toc ol {
  margin:0;
  padding-left:20px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px 20px;
}

.toc a {
  text-decoration:none;
  font-weight:750;
  color:var(--text);
}

.toc a:hover {
  color:var(--primary);
  text-decoration:underline;
}

/* ---------- Formula / code blocks ---------- */

.formula-block {
  background:var(--code-bg);
  color:var(--code-text);
  border-radius:18px;
  padding:20px;
  margin:16px 0 20px;
  border-left:4px solid var(--primary);
  overflow-x:auto;
}

.formula-block .label {
  display:block;
  color:#9ca3af;
  text-transform:uppercase;
  letter-spacing:.09em;
  font-size:.72rem;
  font-weight:800;
  margin-bottom:10px;
}

.formula {
  color:var(--code-accent);
  font-size:1.05rem;
  font-weight:850;
  line-height:1.6;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
}

.example-line {
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.1);
  color:#d1d5db;
  line-height:1.7;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  font-size:.92rem;
}

.formula-result {
  color:#86efac;
  font-weight:850;
  margin-top:6px;
}

.formula-example {
  background:var(--soft-green);
  border:1px solid #bbf7d0;
  color:#15803d;
  border-radius:16px;
  padding:16px;
  text-align:center;
  font-weight:900;
  line-height:1.7;
  margin:16px 0;
}

/* ---------- Step cards ---------- */

.step-grid {
  display:flex;
  flex-direction:column;
  gap:16px;
  margin:24px 0 36px;
}

.step-card {
  position:relative;
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:20px;
  padding:26px 26px 24px 68px;
  box-shadow:var(--shadow-soft);
}

.step-card h3 {
  margin-top:0;
  margin-bottom:10px;
  font-size:1.2rem;
  color:var(--text);
}

.step-card p:last-child {
  margin-bottom:0;
}

.step-num {
  position:absolute;
  top:24px;
  left:22px;
  width:34px;
  height:34px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));
  color:white;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  font-size:.95rem;
  box-shadow:0 8px 18px rgba(37,99,235,.28);
}

/* ---------- Example cards ---------- */

.example-grid {
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
  margin:24px 0 36px;
}

.example-card {
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:20px;
  padding:24px;
  box-shadow:var(--shadow-soft);
  transition:transform .18s ease, box-shadow .18s ease;
}

.example-card:hover {
  transform:translateY(-2px);
  box-shadow:var(--shadow-hover);
}

.example-card h3 {
  margin-top:0;
  margin-bottom:12px;
  font-size:1.08rem;
  display:flex;
  align-items:center;
  gap:10px;
}

.example-card p:last-child {
  margin-bottom:0;
}

.calc-steps {
  background:#f8fafc;
  border:1px solid #dbeafe;
  border-radius:16px;
  padding:16px 18px;
  margin:16px 0;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  font-size:.93rem;
  line-height:1.9;
  color:#334155;
}

.calc-steps strong {
  color:var(--text);
}

.calc-steps .ans {
  color:var(--green);
  font-weight:900;
}

/* ---------- Story / note boxes ---------- */

.story-box {
  background:var(--soft-orange);
  border:1px solid #fed7aa;
  border-radius:20px;
  padding:24px;
  margin:24px 0;
}

.story-label {
  display:inline-block;
  background:#fed7aa;
  color:#9a3412;
  font-size:.75rem;
  font-weight:900;
  letter-spacing:.07em;
  text-transform:uppercase;
  padding:6px 10px;
  border-radius:999px;
  margin-bottom:12px;
}

.story-box h3 {
  margin-top:0;
}

.verdict {
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid #fed7aa;
  color:#9a3412;
  font-weight:750;
  line-height:1.6;
}

.green-box {
  background:var(--soft-green);
  border:1px solid #bbf7d0;
  border-radius:20px;
  padding:22px;
  margin:22px 0;
}

.green-box h3 {
  margin-top:0;
  color:#15803d;
}

.note {
  margin-top:18px;
  background:#ffffff;
  border:1px solid #bfdbfe;
  border-radius:16px;
  padding:14px 16px;
  color:var(--muted);
  font-size:.95rem;
}

.example {
  margin-top:20px;
  background:var(--soft-green);
  border:1px solid #bbf7d0;
  border-radius:18px;
  padding:18px;
  color:var(--muted);
  line-height:1.6;
}

.example strong {
  color:#15803d;
}

blockquote {
  margin:28px 0;
  border-left:4px solid var(--primary);
  padding:8px 0 8px 20px;
  color:var(--muted);
  font-style:italic;
  line-height:1.75;
  font-size:1.08rem;
  background:#f8fafc;
  border-radius:0 16px 16px 0;
}

/* ---------- Mistakes ---------- */

.mistake-grid {
  display:grid;
  gap:14px;
  margin:20px 0 30px;
}

.mistake-item {
  display:grid;
  grid-template-columns:42px 1fr;
  gap:16px;
  align-items:start;
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
}

.mistake-icon {
  width:42px;
  height:42px;
  border-radius:999px;
  background:var(--soft-red);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.1rem;
}

.mistake-content h4 {
  margin:0 0 6px;
  font-size:1rem;
}

.mistake-content p {
  margin:0;
  font-size:.95rem;
}

/* ---------- Mental math ---------- */

.tricks-grid {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
  margin:24px 0 36px;
}

.trick-card {
  background:linear-gradient(180deg,#111827 0%,#0f172a 100%);
  color:white;
  border-radius:20px;
  padding:22px;
  display:flex;
  align-items:flex-start;
  gap:18px;
  border:1px solid rgba(255,255,255,.06);
  box-shadow:0 14px 32px rgba(15,23,42,.16);
  transition:transform .18s ease, box-shadow .18s ease;
}

.trick-card:hover {
  transform:translateY(-2px);
  box-shadow:0 20px 42px rgba(15,23,42,.24);
}

.trick-pct {
  flex-shrink:0;
  min-width:64px;
  font-size:2rem;
  font-weight:950;
  line-height:1;
  color:#93c5fd;
  letter-spacing:-.04em;
}

.trick-desc {
  color:#d1d5db;
  line-height:1.65;
  font-size:.95rem;
}

.trick-desc strong {
  color:white;
  display:block;
  margin-bottom:4px;
}

/* =========================================================
   09. SPECIALIZED REUSABLE COMPONENTS
   Unit converter, QR generator and home page
   ========================================================= */

/* ---------- Conversion cards ---------- */

.conversion-card {
  background:linear-gradient(180deg,#111827 0%,#0f172a 100%);
  color:white;
  border-radius:20px;
  padding:22px;
  border:1px solid rgba(255,255,255,.06);
  box-shadow:0 12px 28px rgba(15,23,42,.22);
  transition:transform .18s ease, box-shadow .18s ease;
}

.conversion-card:hover {
  transform:translateY(-2px);
  box-shadow:0 18px 40px rgba(15,23,42,.32);
}

.conversion-card strong {
  display:block;
  color:white;
  margin-bottom:10px;
  font-size:1rem;
  line-height:1.4;
}

.conversion-card span {
  display:block;
  color:#d1d5db;
  line-height:1.7;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  font-size:.92rem;
}

.conversion-card .highlight {
  color:#93c5fd;
  font-weight:700;
}

.conversion-card .result {
  color:#86efac;
  font-weight:800;
}

/* ---------- Unit converter ---------- */

.converter-grid {
  display:grid;
  grid-template-columns:1fr 60px 1fr;
  gap:22px;
  align-items:center;
}

.panel-title {
  margin:0 0 6px;
  font-size:1.05rem;
  font-weight:850;
}

.panel-help {
  color:var(--muted);
  margin:0 0 18px;
  font-size:.95rem;
  line-height:1.5;
}

.swap-wrap {
  display:flex;
  align-items:center;
  justify-content:center;
  padding-top:45px;
}

.swap {
  width:52px;
  height:52px;
  border:none;
  border-radius:999px;
  background:var(--soft-blue);
  color:var(--primary);
  font-size:1.5rem;
  font-weight:900;
  cursor:pointer;
}

.swap:hover {
  background:#dbeafe;
}

.how-it-works {
  margin-top:20px;
  background:var(--soft-blue);
  border:1px solid #bfdbfe;
  border-radius:14px;
  padding:14px 16px;
  color:var(--muted);
  line-height:1.6;
}

.how-it-works strong {
  color:var(--primary);
}

.quick-examples {
  margin-top:30px;
}

.quick-examples h2 {
  font-size:1.35rem;
  margin:0 0 14px;
}

.quick-example-grid {
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:14px;
}

.example-box {
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:12px;
  padding:14px;
  text-align:center;
  font-weight:700;
  color:var(--text);
}

/* ---------- Info boxes ---------- */

.info-box {
  border-radius:18px;
  padding:22px;
  line-height:1.7;
}

.info-box.green {
  background:var(--soft-green);
  border:1px solid #bbf7d0;
}

.info-box.blue {
  background:var(--soft-blue);
  border:1px solid #bfdbfe;
}

.info-box h2 {
  margin:0 0 10px;
  font-size:1.25rem;
}

.info-box.green h2 {
  color:#15803d;
}

.info-box.blue h2 {
  color:var(--primary);
}

.info-box ul {
  margin:0;
  color:var(--muted);
}

/* ---------- QR code generator ---------- */

.examples {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:0 0 22px;
}

.example-btn {
  border:1px solid var(--border);
  background:#ffffff;
  color:var(--text);
  border-radius:999px;
  padding:8px 12px;
  font-weight:750;
  cursor:pointer;
  font-size:.9rem;
}

.example-btn:hover {
  border-color:var(--primary);
  color:var(--primary);
}

.input-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.preview-card {
  background:#f9fafb;
  border:1px solid var(--border);
  border-radius:22px;
  padding:22px;
  text-align:center;
}

.preview-card h2 {
  margin:0 0 8px;
  font-size:1.25rem;
}

.preview-card p {
  margin:0 0 18px;
  color:var(--muted);
  line-height:1.5;
}

.qr-output {
  min-height:280px;
  border:1px dashed var(--border);
  border-radius:20px;
  background:white;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:24px;
}

.qr-output canvas,
.qr-output img {
  max-width:100%;
  height:auto;
  image-rendering:pixelated;
}

.placeholder {
  color:var(--muted);
  line-height:1.6;
}

.qr-tool-grid {
  grid-template-columns:1.1fr .9fr;
  align-items:stretch;
}

.qr-preview-panel {
  justify-content:flex-start;
}

.qr-output {
  min-height:280px;
  border:1px dashed var(--border);
  border-radius:20px;
  background:white;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:24px;
  margin:12px 0 18px;
}

.qr-output canvas,
.qr-output img {
  max-width:100%;
  height:auto;
  image-rendering:pixelated;
}

.qr-breakdown {
  margin-top:18px;
}

.qr-textarea {
  min-height:120px;
}

.placeholder {
  color:var(--muted);
  line-height:1.6;
  text-align:center;
}

@media (max-width:900px) {
  .qr-tool-grid {
    grid-template-columns:1fr;
  }
}
/* ---------- Home page ---------- */

.category {
  margin:44px 0;
}

.category-header {
  margin-bottom:18px;
}

.category-header h2 {
  font-size:1.8rem;
  margin:0 0 8px;
  letter-spacing:-.03em;
}

.category-header p {
  margin:0;
  max-width:680px;
}

.grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

.password-output-modern {
  display:flex;
  gap:12px;
  margin-bottom:24px;
}

.password-display {
  flex:1;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  font-size:1rem;
}

.checkbox-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:12px;
}

.check-card {
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
  background:#fbfdff;
  font-weight:750;
}

.check-card input {
  width:auto;
  accent-color:var(--primary);
}

.strength-card {
  background:#f9fafb;
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
  margin-top:22px;
}

.strength-head {
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
  font-weight:850;
}

.strength-bar {
  height:11px;
  background:#e5e7eb;
  border-radius:999px;
  overflow:hidden;
}

.strength-fill {
  height:100%;
  width:0%;
  border-radius:999px;
  background:var(--danger);
  transition:.2s ease;
}

.strength-note {
  color:var(--muted);
  font-size:.92rem;
  margin-top:10px;
  line-height:1.45;
}

.important-card {
  margin-top:18px;
  background:#eff6ff;
  border:1px solid #bfdbfe;
  border-radius:16px;
  padding:14px 16px;
  color:var(--muted);
  line-height:1.55;
  font-size:.95rem;
}

@media (max-width:650px) {

  .password-output-modern,
  .checkbox-grid {
    grid-template-columns:1fr;
    display:grid;
  }

}

.editor-textarea {
  min-height:220px;
  resize:vertical;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
}

.textarea-wrap {
  position:relative;
}

.counter-tag {
  position:absolute;
  right:14px;
  bottom:12px;
  font-size:.85rem;
  color:var(--muted);
  background:rgba(251,253,255,.9);
  padding:2px 6px;
  border-radius:8px;
}

.stats-grid-modern {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}

.stat-card-modern {
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
  text-align:center;
}

.stat-big {
  font-size:2rem;
  font-weight:900;
  letter-spacing:-.04em;
  margin-bottom:6px;
}

.stat-small {
  color:var(--muted);
  font-size:.92rem;
}

@media (max-width:600px) {
  .stats-grid-modern {
    grid-template-columns:1fr;
  }
}

.converter-tool-grid {
  align-items:stretch;
}

.mini-result-panel {
  background:linear-gradient(180deg,#eff6ff 0%,#ffffff 100%);
  border:1px solid #bfdbfe;
  border-radius:18px;
  padding:20px;
  margin-top:18px;
}

.compact-result {
  font-size:clamp(2.4rem,5vw,3.8rem);
}

.table-wrap {
  overflow-x:auto;
}

.size-chart-table {
  width:100%;
  border-collapse:collapse;
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
}

.size-chart-table th,
.size-chart-table td {
  padding:14px 16px;
  border-bottom:1px solid var(--border);
  text-align:left;
}

.size-chart-table th {
  background:#f8fafc;
  color:var(--text);
  font-weight:900;
}

.size-chart-table td {
  color:var(--muted);
}

.size-chart-table tr:last-child td {
  border-bottom:none;
}

/* ================= HOMEPAGE DIRECTORY ================= */

.category-section {
  margin-top:40px;
}

.section-heading {
  margin-bottom:18px;
}

.section-heading h2 {
  margin:0 0 8px;
  font-size:1.65rem;
  letter-spacing:-.03em;
}

.section-heading p {
  margin:0;
  color:var(--muted);
  line-height:1.6;
  max-width:760px;
}

.eyebrow {
  color:var(--primary);
  font-weight:900;
  font-size:.82rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:8px;
}

.tool-directory-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.tool-directory-card {
  display:flex;
  gap:16px;
  align-items:flex-start;
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:22px;
  padding:20px;
  color:var(--text);
  text-decoration:none;
  box-shadow:var(--shadow);
  transition:all .2s ease;
}

.tool-directory-card:hover {
  transform:translateY(-3px);
  border-color:var(--primary);
  box-shadow:0 24px 48px rgba(15,23,42,.12);
}

.tool-directory-card h3 {
  margin:0 0 6px;
  font-size:1.08rem;
  line-height:1.25;
  color:var(--text);
}

.tool-directory-card p {
  margin:0;
  color:var(--muted);
  line-height:1.5;
  font-size:.94rem;
}

.tool-icon {
  width:46px;
  height:46px;
  border-radius:16px;
  background:#eff6ff;
  color:var(--primary);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  font-size:1.1rem;
  flex-shrink:0;
}

.guide-card .tool-icon {
  background:#f0fdf4;
  color:var(--green);
}

.home-link-box {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:58px;
  text-decoration:none;
  color:var(--text);
}

.home-link-box:hover {
  border-color:var(--primary);
  color:var(--primary);
}

@media (max-width:900px) {
  .tool-directory-grid {
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:640px) {
  .tool-directory-grid {
    grid-template-columns:1fr;
  }

  .tool-directory-card {
    padding:18px;
  }
}
/* =========================================================
   10. FOOTER
   ========================================================= */

footer {
  max-width:var(--container-wide);
  margin:0 auto;
  padding:24px 20px 50px;
  color:var(--muted);
  font-size:.9rem;
  text-align:center;
}

footer a {
  color:var(--primary);
  text-decoration:none;
}

footer a:hover {
  text-decoration:underline;
}

/* =========================================================
   11. RESPONSIVE
   Global media queries
   ========================================================= */

@media (max-width:900px) {
  .tool-grid,
  .tool-layout,
  .content-grid,
  .feature-strip,
  .faq-grid,
  .grid {
    grid-template-columns:1fr;
  }

  .tool-card,
  .article-card {
    padding:22px;
    border-radius:22px;
  }
}

@media (max-width:850px) {
  .input-row,
  .converter-grid {
    grid-template-columns:1fr;
    gap:10px;
  }

  .input-row .icon {
    display:none;
  }

  .result-grid,
  .info-grid {
    grid-template-columns:1fr;
  }

  .swap-wrap {
    padding-top:0;
  }

  .quick-example-grid {
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:760px) {
  .toc ol,
  .quick-grid,
  .country-grid,
  .comparison-grid,
  .insight-grid,
  .conversion-grid,
  .tricks-grid {
    grid-template-columns:1fr;
  }

  .cta-tools {
    flex-direction:column;
  }

  h1 {
    font-size:2.4rem;
  }

  header {
    padding:22px 18px;
  }
}

@media (max-width:600px) {
  .input-grid {
    grid-template-columns:1fr;
  }
}

.input-grid-four {
  grid-template-columns:repeat(4,1fr);
}

@media (max-width:600px) {
  .input-grid-four {
    grid-template-columns:1fr;
  }
}

@media (max-width:560px) {
  .actions,
  .cta-tools {
    flex-direction:column;
  }

  .actions-split {
    grid-template-columns:1fr;
  }

  .preset-buttons {
    grid-template-columns:1fr 1fr;
  }

  button,
  .button,
  .btn,
  .cta-btn {
    width:100%;
    text-align:center;
  }
}

@media (max-width:520px) {
  .quick-example-grid {
    grid-template-columns:1fr;
  }
}

/* ================= 15. HOMEPAGE ================= */

.home-main,
.home-footer {
  max-width:1180px;
  margin:0 auto;
  padding-left:20px;
  padding-right:20px;
}

.home-header {
  max-width:1180px;
}

.home-logo {
  display:flex;
  align-items:center;
  font-weight:800;
  font-size:1.2rem;
  text-decoration:none;
  color:var(--text);
}

.home-logo span {
  color:var(--primary);
}


.logo-mark {
  width:28px;
  height:28px;
  border-radius:9px;
  background:var(--primary);
  color:white !important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  font-size:.95rem;
}

.home-nav {
  display:flex;
  gap:28px;
  align-items:center;
}

.home-hero {
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:48px;
  align-items:center;
  padding:52px 0 34px;
}

.home-hero h1 {
  font-size:clamp(3rem,6vw,5rem);
  line-height:.98;
  letter-spacing:-.06em;
  margin:0 0 22px;
}

.home-hero h1 span {
  display:block;
  color:var(--primary);
}

.home-hero p {
  max-width:620px;
  color:var(--muted);
  font-size:1.08rem;
  line-height:1.7;
  margin:0;
}

.home-hero-actions {
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:28px;
}

.home-primary-button,
.home-secondary-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  padding:14px 22px;
  font-weight:900;
  text-decoration:none;
}

.home-primary-button {
  background:var(--primary);
  color:#fff;
  box-shadow:0 18px 35px rgba(37,99,235,.22);
}

.home-primary-button:hover {
  background:var(--primary-dark);
}

.home-secondary-button {
  background:#fff;
  color:var(--text);
  border:1px solid var(--border);
}

.home-secondary-button:hover {
  border-color:var(--primary);
  color:var(--primary);
}

.home-hero-points {
  display:flex;
  flex-wrap:wrap;
  gap:22px;
  margin-top:28px;
  color:var(--muted);
  font-size:.92rem;
  font-weight:750;
}

.home-hero-points span::before {
  content:"✓";
  color:var(--primary);
  margin-right:7px;
  font-weight:900;
}

.home-hero-visual {
  position:relative;
  min-height:330px;
}

.tool-window {
  background:rgba(255,255,255,.88);
  border:1px solid var(--border);
  border-radius:22px;
  padding:22px;
  box-shadow:0 25px 60px rgba(15,23,42,.12);
}

.window-dots {
  display:flex;
  gap:7px;
  margin-bottom:18px;
}

.window-dots span {
  width:9px;
  height:9px;
  border-radius:999px;
  background:#f87171;
}

.window-dots span:nth-child(2) {
  background:#fbbf24;
}

.window-dots span:nth-child(3) {
  background:#34d399;
}

.tool-icon-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}

.tool-icon-grid div {
  height:72px;
  border-radius:16px;
  background:#f8fafc;
  border:1px solid #eef2ff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:950;
  font-size:1.5rem;
  color:var(--primary);
}

.privacy-float {
  position:absolute;
  left:42px;
  right:24px;
  bottom:8px;
  display:flex;
  gap:14px;
  align-items:center;
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:16px;
  box-shadow:0 22px 45px rgba(15,23,42,.12);
}

.privacy-float strong,
.privacy-float span {
  display:block;
}

.privacy-float span {
  color:var(--muted);
  font-size:.9rem;
  margin-top:3px;
}

.privacy-shield {
  width:42px;
  height:42px;
  border-radius:14px;
  background:#dcfce7;
  color:var(--green);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:950;
  flex-shrink:0;
}

.home-trust-strip {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:24px;
  padding:24px;
  box-shadow:var(--shadow);
  margin:18px 0 40px;
}

.home-trust-item {
  display:flex;
  gap:14px;
  align-items:flex-start;
  border-right:1px solid var(--border);
  padding-right:18px;
}

.home-trust-item:last-child {
  border-right:none;
}

.home-trust-icon {
  font-size:1.5rem;
  line-height:1;
}

.home-trust-icon.yellow { color:#d97706; }
.home-trust-icon.green { color:var(--green); }
.home-trust-icon.blue { color:var(--primary); }
.home-trust-icon.red { color:var(--danger); }

.home-trust-item strong,
.home-trust-item span {
  display:block;
}

.home-trust-item span {
  color:var(--muted);
  line-height:1.45;
  font-size:.92rem;
  margin-top:3px;
}

.home-section {
  margin-top:40px;
}

.home-section-head {
  margin-bottom:18px;
}

.home-section-head h2 {
  margin:0 0 6px;
  font-size:1.45rem;
  letter-spacing:-.03em;
}

.home-section-head p {
  margin:0;
  color:var(--muted);
  line-height:1.6;
}

.popular-pill-grid {
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:16px;
}

.popular-pill {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:68px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:0 12px 28px rgba(15,23,42,.06);
  color:var(--text);
  text-decoration:none;
  font-weight:900;
  text-align:center;
  padding:12px;
}

.popular-pill span {
  color:var(--primary);
  font-size:1.25rem;
  font-weight:950;
}

.popular-pill:hover {
  transform:translateY(-2px);
  border-color:var(--primary);
}

.home-category-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  margin-top:44px;
}

.home-category-card {
  background:#fff;
  border:1px solid var(--border);
  border-radius:24px;
  padding:26px;
  box-shadow:var(--shadow);
}

.home-category-icon {
  width:46px;
  height:46px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:950;
  margin-bottom:16px;
}

.home-category-card h2 {
  margin:0 0 10px;
  font-size:1.45rem;
  letter-spacing:-.03em;
}

.home-category-card p {
  color:var(--muted);
  line-height:1.55;
  margin:0 0 18px;
  font-size:.95rem;
}

.home-category-card ul {
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:9px;
}

.home-category-card a {
  color:var(--text);
  text-decoration:none;
  font-weight:750;
  font-size:.92rem;
}

.home-category-card a:hover {
  color:var(--primary);
}

.calculators .home-category-icon {
  background:#dbeafe;
  color:var(--primary);
}

.converters .home-category-icon {
  background:#dcfce7;
  color:var(--green);
}

.generators .home-category-icon {
  background:#f3e8ff;
  color:var(--purple);
}

.textdata .home-category-icon {
  background:#ffedd5;
  color:#ea580c;
}

.home-guide-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}

.home-guide-card {
  background:#fff;
  border:1px solid var(--border);
  border-radius:22px;
  padding:22px;
  text-decoration:none;
  color:var(--text);
  box-shadow:var(--shadow);
}

.home-guide-card span {
  font-size:1.6rem;
}

.home-guide-card h3 {
  margin:14px 0 8px;
  font-size:1.08rem;
}

.home-guide-card p {
  margin:0;
  color:var(--muted);
  line-height:1.5;
  font-size:.94rem;
}

.home-guide-card:hover {
  transform:translateY(-3px);
  border-color:var(--primary);
}

.home-bottom-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  margin-top:44px;
}

.home-info-card {
  background:#fff;
  border:1px solid var(--border);
  border-radius:24px;
  padding:26px;
  box-shadow:var(--shadow);
}

.home-info-card h2 {
  margin:0 0 12px;
  font-size:1.35rem;
}

.home-info-card p {
  color:var(--muted);
  line-height:1.65;
}

.home-check-list {
  padding:0;
  margin:18px 0 0;
  list-style:none;
  display:grid;
  gap:10px;
  color:var(--muted);
}

.home-check-list li::before {
  content:"✓";
  color:var(--green);
  font-weight:950;
  margin-right:9px;
}

.home-faq-list {
  display:grid;
  gap:10px;
}

.home-faq-list details {
  background:#fbfdff;
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px 16px;
}

.home-faq-list summary {
  cursor:pointer;
  font-weight:850;
}

.home-faq-list p {
  margin-bottom:0;
}

.home-footer {
  margin-top:48px;
  padding-top:34px;
  padding-bottom:40px;
  display:grid;
  grid-template-columns:1fr 1.5fr;
  gap:32px;
  color:var(--muted);
}

.home-footer-brand p {
  max-width:280px;
  line-height:1.6;
}

.home-footer-links {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}

.home-footer-links strong,
.home-footer-links a {
  display:block;
}

.home-footer-links strong {
  color:var(--text);
  margin-bottom:10px;
}

.home-footer-links a {
  color:var(--muted);
  text-decoration:none;
  margin-bottom:8px;
  font-size:.92rem;
}

.home-footer-links a:hover {
  color:var(--primary);
}

.home-footer-bottom {
  grid-column:1 / -1;
  display:flex;
  justify-content:space-between;
  gap:16px;
  border-top:1px solid var(--border);
  padding-top:20px;
  font-size:.9rem;
}

@media (max-width:980px) {
  .home-hero,
  .home-bottom-grid,
  .home-footer {
    grid-template-columns:1fr;
  }

  .home-category-grid,
  .home-guide-grid {
    grid-template-columns:1fr 1fr;
  }

  .home-trust-strip,
  .popular-pill-grid {
    grid-template-columns:1fr 1fr;
  }

  .home-trust-item {
    border-right:none;
  }
}

@media (max-width:640px) {
  .home-nav {
    gap:14px;
  }

  .home-hero {
    padding-top:28px;
  }

  .home-hero-visual {
    min-height:auto;
  }

  .privacy-float {
    position:static;
    margin-top:14px;
  }

  .home-category-grid,
  .home-guide-grid,
  .home-trust-strip,
  .popular-pill-grid,
  .home-footer-links {
    grid-template-columns:1fr;
  }

  .home-footer-bottom {
    flex-direction:column;
  }
}