/* ============================================================
   TinyImageLab — Premium Stylesheet v2.0
   Design direction: clean utility-SaaS, forest-green + warm white,
   sharp typographic hierarchy, refined trust signals.
   Font: DM Sans (display weight) + DM Serif Display (hero H1 accent)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&family=DM+Serif+Display:ital@0;1&display=swap');

/* ── Tokens ── */
:root {
  --bg:        #f8faf8;
  --surface:   #ffffff;
  --card:      #ffffff;
  --ink:       #141c15;
  --ink-mid:   #3a4a3d;
  --muted:     #647068;
  --line:      #e0eae2;
  --line-soft: #edf5ef;

  --green:       #1e6b42;
  --green-hover: #165534;
  --green-light: #d9f0e3;
  --green-pale:  #eef7f1;
  --green-mid:   #3c9060;

  --amber:  #f5a623;
  --amber-pale: #fff8ec;

  --radius-sm: 10px;
  --radius:    20px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --shadow-xs: 0 1px 3px rgba(0,0,0,.06);
  --shadow-sm: 0 4px 14px rgba(20,50,28,.07);
  --shadow:    0 8px 30px rgba(20,50,28,.10);
  --shadow-lg: 0 20px 60px rgba(20,50,28,.12);

  --font-sans:  'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;

  --max: 1160px;
  --gutter: clamp(20px, 5vw, 64px);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ── Layout helpers ── */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ============================
   HEADER
   ============================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248,250,248,.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--gutter);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo-img { height: 36px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  text-decoration: none;
  color: var(--ink-mid);
  font-weight: 500;
  font-size: .9rem;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--green-pale); color: var(--green); }
.nav-cta {
  background: var(--green) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
}
.nav-cta:hover { background: var(--green-hover) !important; }

.menu-btn {
  display: none;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-weight: 600;
  font-size: .875rem;
  color: var(--ink);
}

/* ============================
   HERO
   ============================ */
.hero {
  padding: clamp(56px, 9vw, 108px) var(--gutter) clamp(40px, 6vw, 72px);
  max-width: var(--max);
  margin-inline: auto;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--green);
  border-radius: 2px;
}
h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6.5vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--ink);
  max-width: 16ch;
  margin-bottom: 20px;
}
h1 em { font-style: italic; color: var(--green); }
.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 34px;
  line-height: 1.7;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Hero visual */
.hero-visual {
  margin-top: 52px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.hero-visual img { width: 100%; }

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .9rem;
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s, color .15s, transform .1s;
  white-space: nowrap;
}
.btn:hover {
  border-color: #b0c8b8;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 4px 16px rgba(30,107,66,.25);
}
.btn.primary:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
  box-shadow: 0 6px 22px rgba(30,107,66,.32);
}
.btn.sm { padding: 8px 16px; font-size: .82rem; }

/* ============================
   SECTIONS
   ============================ */
.section {
  padding: clamp(36px, 5vw, 64px) var(--gutter);
  max-width: var(--max);
  margin-inline: auto;
}
.section-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 10px;
}
h2 {
  font-family: var(--font-sans);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--ink);
  margin-bottom: 12px;
}
h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 8px;
  color: var(--ink);
}
h4 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }

.section-intro {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 32px;
}

/* ============================
   GRID & CARDS
   ============================ */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #c8dece; }
.card p { color: var(--muted); font-size: .93rem; line-height: 1.6; margin-bottom: 18px; }
.card h3 { font-size: 1rem; }

/* Tool card with icon accent */
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tool-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--green-pale);
  display: grid; place-items: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.tool-icon svg { width: 22px; height: 22px; stroke: var(--green); fill: none; stroke-width: 1.8; }

/* ============================
   TRUST BAND
   ============================ */
.trust-band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0 var(--gutter);
}
.trust-inner {
  max-width: var(--max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-mid);
  border-right: 1px solid var(--line);
}
.trust-item:last-child { border-right: none; }
.trust-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* ============================
   STATS / SOCIAL PROOF
   ============================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 24px 0;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
}
.stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -.03em;
}
.stat-label {
  font-size: .82rem;
  color: var(--muted);
  font-weight: 500;
}

/* ============================
   WHY / DEEP SECTION
   ============================ */
.deep-section {
  padding: clamp(48px, 6vw, 80px) var(--gutter);
  max-width: 920px;
  margin-inline: auto;
}
.deep-section p { color: var(--muted); margin-bottom: 16px; line-height: 1.75; }
.deep-section h2 { margin-top: 32px; margin-bottom: 12px; }
.deep-section h2:first-child { margin-top: 0; }

/* ============================
   UTILITY STRIP
   ============================ */
.utility-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0;
}
.utility-strip a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.utility-strip a:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #c8dece; }
.utility-strip strong { display: block; margin-bottom: 4px; font-size: .95rem; }
.utility-strip span { color: var(--muted); font-size: .875rem; }

/* ============================
   TOOLBOX / TOOL UI
   ============================ */
.toolbox {
  background: var(--green-pale);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin: 24px 0;
}
.drop {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 220px;
  border: 2px dashed #a8d4b8;
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 32px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.drop:hover { border-color: var(--green); background: #f0faf3; }
.drop.dragover { border-color: var(--green); background: var(--green-pale); }
.drop-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--green-light);
  display: grid; place-items: center;
  margin: 0 auto 14px;
}
.drop-icon svg { width: 26px; height: 26px; stroke: var(--green); fill: none; stroke-width: 1.8; }
.drop strong { font-size: 1rem; color: var(--ink); display: block; margin-bottom: 6px; }
.drop small { color: var(--muted); font-size: .85rem; }
input[type="file"] { margin-top: 14px; font-size: .875rem; }

.tool-art { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 20px; background: #f7fbf8; }

/* Advanced two-col tool layout */
.advanced-tool { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: start; }
.preview-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.preview-img { max-width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: #f6faf7; }

.control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.control-grid .full { grid-column: 1 / -1; }
.tool-results { display: grid; gap: 14px; margin-top: 18px; }
.result-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.muted-small { color: var(--muted); font-size: .875rem; }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input { flex: 1; accent-color: var(--green); }
.preset-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.preset-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 12px; font-weight: 600; font-size: .82rem; cursor: pointer; transition: border-color .12s, color .12s; }
.preset-btn:hover { border-color: var(--green); color: var(--green); }

/* ============================
   FORM ELEMENTS
   ============================ */
label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: 6px; color: var(--ink-mid); }
.input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: .9rem;
  color: var(--ink);
  background: var(--surface);
  transition: border-color .15s;
  outline: none;
}
.input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(30,107,66,.1); }
select.input, input[type="number"].input { background: var(--surface); }

/* ============================
   ARTICLE / GUIDES
   ============================ */
.article {
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter);
}
.article h1 { font-size: clamp(2rem, 5vw, 3.6rem); max-width: 100%; }
.article h2 { margin-top: 40px; margin-bottom: 12px; }
.article h3 { margin-top: 28px; margin-bottom: 8px; }
.article p { color: var(--muted); margin-bottom: 16px; line-height: 1.75; }
.article ul, .article ol { color: var(--muted); padding-left: 20px; margin-bottom: 16px; }
.article li { margin: 9px 0; line-height: 1.7; }
.article a { color: var(--green); font-weight: 500; text-decoration: underline; text-decoration-color: var(--green-light); text-underline-offset: 3px; }
.article a:hover { text-decoration-color: var(--green); }

.toc {
  background: var(--green-pale);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 28px 0;
  font-size: .9rem;
}
.toc strong { display: block; margin-bottom: 8px; color: var(--green); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }

.note {
  background: var(--surface);
  border-left: 4px solid var(--green);
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
  margin: 28px 0;
  color: var(--ink-mid);
  font-size: .93rem;
}
.note strong { color: var(--green); }

/* ============================
   AUTHOR BOX
   ============================ */
.author-box {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  margin: 36px 0 0;
}
.author-avatar {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--green);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.1rem;
  flex-shrink: 0;
}
.author-box p { color: var(--muted); font-size: .875rem; margin: 4px 0 0; }

/* ============================
   FAQ
   ============================ */
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .15s;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  padding: 18px 20px;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::after { content: '+'; color: var(--green); font-size: 1.2rem; font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 20px 18px; color: var(--muted); font-size: .9rem; line-height: 1.7; }

/* ============================
   BREADCRUMBS
   ============================ */
.breadcrumbs {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.breadcrumbs a { color: var(--green); font-weight: 600; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { color: var(--muted); }

/* ============================
   TABLES
   ============================ */
.compare-table, .ref-table, .report-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 22px 0;
}
.compare-table th, .compare-table td,
.ref-table th, .ref-table td,
.report-table th, .report-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: .9rem;
}
.compare-table th, .ref-table th, .report-table th {
  background: var(--green-pale);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-mid);
}
.compare-table tr:last-child td, .ref-table tr:last-child td, .report-table tr:last-child td { border-bottom: none; }

/* ============================
   PAGE NAV / PILL ROWS
   ============================ */
.page-nav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 24px 0; }
.page-nav a { display: inline-block; margin: 5px 10px 5px 0; color: var(--green); font-weight: 600; font-size: .88rem; text-decoration: none; }
.page-nav a:hover { text-decoration: underline; }

.pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.pill-small { border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; background: var(--surface); color: var(--muted); font-weight: 600; font-size: .82rem; }

/* ============================
   NOTICE / CALLOUT
   ============================ */
.callout-soft {
  background: linear-gradient(135deg, var(--green-pale), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.notice-box {
  background: var(--amber-pale);
  border: 1px solid #f0d79a;
  border-radius: var(--radius);
  padding: 18px 22px;
  color: #6b5218;
  font-size: .9rem;
}

/* ============================
   RELATED STRIP
   ============================ */
.related-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.related-strip a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: .875rem;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.related-strip a:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); border-color: #c8dece; }

/* ============================
   PANEL LIST
   ============================ */
.panel-list { display: grid; gap: 14px; }
.panel-list .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-xs); }

/* ============================
   CHECKLIST GRID
   ============================ */
.checklist-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.check-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }

/* ============================
   KICKER GRID
   ============================ */
.kicker-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 24px 0; }

/* ============================
   SITEMAP
   ============================ */
.sitemap-list { columns: 2; column-gap: 40px; }
.sitemap-list a { display: block; margin: 9px 0; text-decoration: none; color: var(--green); font-weight: 600; font-size: .9rem; }
.sitemap-list a:hover { text-decoration: underline; }

/* ============================
   AD ZONES
   ============================ */
.ad-ready {
  border: 1px solid #dce9e0;
  background: #fafdf9;
  border-radius: var(--radius);
  padding: 18px;
  color: var(--muted);
  font-size: .9rem;
  text-align: center;
}

/* ============================
   FOOTER
   ============================ */
.footer {
  margin-top: clamp(48px, 6vw, 80px);
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: clamp(32px, 5vw, 56px) var(--gutter);
}
.footer-inner {
  max-width: var(--max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p {
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 260px;
}
.footer-logo { width: 160px; max-width: 100%; }
.footer-col h4 {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 700;
}
.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--ink-mid);
  font-size: .875rem;
  margin-bottom: 9px;
  transition: color .12s;
}
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  max-width: var(--max);
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .82rem;
  color: var(--muted);
}
.footer-bottom a { color: var(--green); text-decoration: none; font-weight: 500; }
.footer-bottom a:hover { text-decoration: underline; }

/* Legacy .footlinks (simple footer pages) */
.footlinks { display: flex; gap: 16px; flex-wrap: wrap; }
.footlinks a { text-decoration: none; color: var(--muted); font-size: .875rem; }
.footlinks a:hover { color: var(--green); }

/* Network credit */
.network-credit {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: .82rem;
  color: var(--muted);
}
.network-credit a { color: var(--green); font-weight: 600; text-decoration: none; }
.network-credit a:hover { text-decoration: underline; }

/* ============================
   RESOURCE / REFERENCE HERO
   ============================ */
.resource-hero {
  padding: clamp(48px,7vw,88px) var(--gutter) 32px;
  max-width: var(--max);
  margin-inline: auto;
}

/* ============================
   START HERE / LANDING
   ============================ */
.cta-section {
  background: var(--green);
  padding: clamp(48px,7vw,88px) var(--gutter);
  text-align: center;
}
.cta-section h2, .cta-section p { color: #fff; }
.cta-section p { opacity: .85; margin-bottom: 28px; }
.cta-section .btn { background: #fff; color: var(--green); border-color: #fff; }
.cta-section .btn:hover { background: #f0faf3; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 960px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .grid-4, .stat-grid { grid-template-columns: repeat(2,1fr); }
  .related-strip { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 800px) {
  .menu-btn { display: block; }
  .nav {
    display: none;
    position: absolute; left: 16px; right: 16px; top: 68px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 14px;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: stretch;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: var(--radius-sm); }
  .nav-cta { text-align: center; }

  .grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: 1fr 1fr; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--line); }
  .trust-item:nth-child(odd) { border-right: 1px solid var(--line); }
  .trust-item:nth-last-child(-n+2) { border-bottom: none; }
  .utility-strip { grid-template-columns: 1fr; }
  .kicker-grid, .related-strip, .checklist-grid { grid-template-columns: 1fr; }
  .sitemap-list { columns: 1; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .advanced-tool { grid-template-columns: 1fr; }
  .control-grid { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; }
}
@media (max-width: 560px) {
  .trust-inner { grid-template-columns: 1fr; }
  .trust-item { border-right: none !important; }
  .trust-item:last-child { border-bottom: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
