/* TariffWise — refined design system (Stripe/Linear-inspired) */
:root {
  /* Refined palette with stronger contrast */
  --bg: #FFFFFF;
  --bg-elev: #FAFBFC;
  --bg-soft: #F4F6F8;
  --text: #0A1525;
  --text-strong: #050B14;
  --text-muted: #5B6573;
  --text-soft: #8A95A4;
  --border: #E5E8EC;
  --border-strong: #D0D5DC;

  /* Brand and accents */
  --brand: #0A2540;
  --brand-2: #1B6FBA;
  --brand-glow: rgba(27, 111, 186, 0.12);
  --accent: #F97316;
  --accent-soft: rgba(249, 115, 22, 0.08);
  --success: #00C896;
  --warn: #F59E0B;
  --danger: #E11D48;
  --info: #6366F1;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0A2540 0%, #1B6FBA 100%);
  --gradient-card-news: linear-gradient(135deg, #E11D48 0%, #F97316 100%);
  --gradient-card-import: linear-gradient(135deg, #1B6FBA 0%, #6366F1 100%);
  --gradient-card-customs: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  --gradient-card-treaties: linear-gradient(135deg, #00C896 0%, #0EA5E9 100%);
  --gradient-card-tools: linear-gradient(135deg, #0EA5E9 0%, #1B6FBA 100%);
  --gradient-subtle: linear-gradient(180deg, #FAFBFC 0%, #FFFFFF 100%);

  /* Shape */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --container: 1200px;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(10, 21, 37, 0.04);
  --shadow-sm: 0 2px 8px rgba(10, 21, 37, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 21, 37, 0.08);
  --shadow-lg: 0 20px 48px rgba(10, 21, 37, 0.12);
  --shadow-brand: 0 8px 32px rgba(27, 111, 186, 0.18);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 280ms;

  /* Fonts */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Source Serif Pro', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ad-bg: #FAFBFC;
}
[data-theme="dark"] {
  --bg: #050B14;
  --bg-elev: #0E1726;
  --bg-soft: #131C2D;
  --text: #ECEFF4;
  --text-strong: #FFFFFF;
  --text-muted: #9AA3AD;
  --text-soft: #6E7889;
  --border: #1F2A3D;
  --border-strong: #2C3A52;
  --brand: #5B9CE0;
  --brand-2: #79B4F0;
  --brand-glow: rgba(91, 156, 224, 0.16);
  --accent: #FB923C;
  --accent-soft: rgba(251, 146, 60, 0.10);
  --success: #2BE0AC;
  --warn: #FBBF24;
  --danger: #FB7185;
  --info: #818CF8;
  --gradient-hero: linear-gradient(135deg, #0A2540 0%, #1B6FBA 60%, #1F2A3D 100%);
  --gradient-subtle: linear-gradient(180deg, #0E1726 0%, #050B14 100%);
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.45);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.55);
  --shadow-lg: 0 20px 48px rgba(0,0,0,0.65);
  --shadow-brand: 0 8px 32px rgba(91, 156, 224, 0.28);
  --ad-bg: #0E1726;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-2); text-decoration: none; transition: color 180ms var(--ease); }
a:hover { color: var(--brand); text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; color: var(--text-strong); }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 800; letter-spacing: -0.028em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 700; letter-spacing: -0.018em; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }

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

.skip-link { position: absolute; top: -40px; left: 0; background: var(--brand); color: #fff; padding: 8px 16px; z-index: 100; transition: top 0.2s; border-radius: 0 0 8px 0; }
.skip-link:focus { top: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--duration) var(--ease);
}
[data-theme="dark"] .site-header { background: rgba(5, 11, 20, 0.82); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text-strong); transition: opacity 180ms var(--ease); }
.brand:hover { opacity: 0.85; text-decoration: none; }
.brand-mark {
  display: inline-flex; width: 28px; height: 28px;
  background: var(--gradient-hero);
  color: #fff;
  align-items: center; justify-content: center;
  border-radius: 8px;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}
.brand-name { font-size: 1.05rem; letter-spacing: -0.015em; }
.primary-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: var(--text-muted); font-weight: 500; font-size: .95rem; position: relative; }
.primary-nav a:hover { color: var(--text-strong); text-decoration: none; }
.primary-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -22px; height: 2px; background: var(--brand-2); transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease); }
.primary-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; gap: 8px; }
.icon-btn { background: none; border: 1px solid transparent; cursor: pointer; width: 40px; height: 40px; border-radius: var(--radius-sm); font-size: 1.1rem; color: var(--text-strong); transition: all 180ms var(--ease); }
.icon-btn:hover { background: var(--bg-soft); border-color: var(--border); transform: translateY(-1px); }
.mobile-only { display: none; }
.mobile-nav { position: fixed; top: 68px; left: 0; right: 0; bottom: 0; background: var(--bg); padding: 24px; overflow-y: auto; z-index: 49; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li { padding: 14px 0; border-bottom: 1px solid var(--border); }
.mobile-nav a { font-size: 1.05rem; font-weight: 500; color: var(--text-strong); }
.mobile-nav .divider { border-bottom: none; height: 12px; }

/* Hero */
.hero { position: relative; padding: 72px 0 56px; text-align: center; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 120%; height: 100%;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, var(--brand-glow), transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }
.hero--narrow { padding: 56px 0 32px; text-align: left; }
.hero--narrow h1 { max-width: 780px; }
.hero--narrow .lede { max-width: 720px; margin: 0 0 20px; }
.lede { font-size: 1.22rem; color: var(--text-muted); max-width: 700px; margin: 0 auto 36px; line-height: 1.55; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: var(--radius-sm); font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: all 220ms var(--ease);
  font-size: .98rem; font-family: inherit; letter-spacing: -0.005em;
  position: relative; overflow: hidden;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-2); text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-brand); }
.btn-secondary { background: var(--bg-elev); color: var(--text-strong); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--bg-soft); border-color: var(--brand-2); transform: translateY(-2px); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text-strong); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-soft); text-decoration: none; }
.btn-lg { padding: 16px 32px; font-size: 1.04rem; }
.hero-search { display: flex; max-width: 580px; margin: 0 auto; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow-sm); overflow: hidden; transition: all 220ms var(--ease); }
.hero-search:focus-within { box-shadow: var(--shadow-brand); border-color: var(--brand-2); }
.hero-search input { flex: 1; padding: 14px 22px; background: transparent; border: 0; color: var(--text); font-size: 1rem; }
.hero-search input:focus { outline: none; }
.hero-search button { background: transparent; border: 0; padding: 0 22px; font-size: 1.1rem; cursor: pointer; color: var(--text-muted); }
.trust-bar { margin-top: 28px; font-size: .92rem; color: var(--text-muted); }
.trust-bar strong { color: var(--text-strong); }

/* Live strip */
.live-strip { background: var(--accent-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 12px 0; font-size: .94rem; }
.live-strip .dot { display: inline-block; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; margin-right: 10px; animation: pulse 2s infinite; vertical-align: middle; }
.live-strip a { font-weight: 600; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(0.85)} }

section { padding: 72px 0; }
section h2 { margin-bottom: 36px; }

/* Reveal animation utility */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Category cards with custom SVG illustrations */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 28px 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-strong);
  transition: all 280ms var(--ease);
  overflow: hidden;
}
.cat-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 50%, var(--brand-glow) 100%);
  opacity: 0; transition: opacity 280ms var(--ease);
  pointer-events: none;
}
.cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-2);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.cat-card:hover::after { opacity: 1; }
.cat-card .cat-icon {
  width: 44px; height: 44px;
  background: var(--brand-glow);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
  color: var(--brand-2);
  transition: transform 280ms var(--ease);
}
.cat-card:hover .cat-icon { transform: scale(1.08) rotate(-3deg); }
.cat-card .cat-icon svg { width: 24px; height: 24px; }
.cat-card h3 { margin-bottom: 4px; font-size: 1.05rem; }
.cat-card p { color: var(--text-muted); font-size: .9rem; margin: 0; line-height: 1.5; }

/* Post cards with themed gradients */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 280ms var(--ease);
}
.post-card:hover { transform: translateY(-4px); border-color: var(--brand-2); box-shadow: var(--shadow-md); }
.post-card a { display: block; color: var(--text-strong); }
.post-card a:hover { text-decoration: none; }
.post-thumb {
  aspect-ratio: 16/9;
  background: var(--gradient-card-news);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.post-thumb::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.18) 0%, transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.10) 0%, transparent 45%);
  z-index: 1;
}
.post-thumb::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(115deg, transparent 45%, rgba(255,255,255,0.12) 55%, transparent 65%);
  transform: translateX(-100%);
  transition: transform 800ms var(--ease);
  z-index: 3;
}
.post-card:hover .post-thumb::after { transform: translateX(100%); }
.post-illu {
  position: relative; z-index: 2;
  width: 62%; height: auto; max-height: 70%;
  opacity: 0.92;
  transition: transform 600ms var(--ease);
}
.post-illu * { vector-effect: non-scaling-stroke; }
.post-card:hover .post-illu { transform: scale(1.06); }
/* Themed variants */
.post-card[data-theme-card="import"] .post-thumb { background: var(--gradient-card-import); }
.post-card[data-theme-card="customs"] .post-thumb { background: var(--gradient-card-customs); }
.post-card[data-theme-card="treaties"] .post-thumb { background: var(--gradient-card-treaties); }
.post-card[data-theme-card="tools"] .post-thumb { background: var(--gradient-card-tools); }
.post-card h3 { padding: 18px 18px 6px; font-size: 1.08rem; line-height: 1.35; }
.post-meta { padding: 0 18px 18px; color: var(--text-muted); font-size: .85rem; margin: 0; }

/* Calculator preview */
.calc-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.calc-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 18px; }
.calc-row label { display: flex; flex-direction: column; gap: 8px; font-size: .88rem; color: var(--text-muted); font-weight: 600; letter-spacing: 0.01em; text-transform: uppercase; }
.calc-row select, .calc-row input { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font-size: 1rem; font-family: inherit; transition: all 180ms var(--ease); }
.calc-row select:focus, .calc-row input:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-glow); }
.calc-result { margin-top: 18px; padding: 18px; background: var(--bg); border-radius: var(--radius-sm); font-size: 1.05rem; font-weight: 700; min-height: 32px; color: var(--text-strong); }
.calc-result.success { color: var(--success); }
.calc-note { margin-top: 14px; font-size: .85rem; color: var(--text-muted); }

/* Newsletter */
.newsletter { background: var(--gradient-subtle); text-align: center; }
.newsletter-form { display: flex; max-width: 500px; margin: 24px auto 0; gap: 8px; }
.newsletter-form input { flex: 1; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font-size: 1rem; font-family: inherit; }
.newsletter-form input:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-glow); }
.micro { font-size: .82rem; color: var(--text-muted); margin-top: 14px; }

/* Ad slots */
.ad-slot { background: var(--ad-bg); border: 1px dashed var(--border); border-radius: var(--radius-sm); margin: 36px auto; max-width: var(--container); display: flex; align-items: center; justify-content: center; }
.ad-slot--leaderboard { min-height: 92px; }
.ad-slot--in-feed { min-height: 260px; }
.ad-slot--multiplex { min-height: 360px; }
.ad-placeholder { color: var(--text-muted); font-size: .8rem; }

/* Article */
.article { max-width: 780px; margin: 0 auto; padding: 56px 24px; }
.article .breadcrumb { font-size: .88rem; color: var(--text-muted); margin-bottom: 18px; }
.article .breadcrumb a { color: var(--text-muted); }
.article .byline { color: var(--text-muted); font-size: .92rem; margin-bottom: 36px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.article h2 { margin-top: 56px; padding-top: 8px; font-size: 1.7rem; }
.article h3 { margin-top: 36px; font-size: 1.2rem; }
.article table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: .95rem; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.article th, .article td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.article tr:last-child td { border-bottom: 0; }
.article th { background: var(--bg-soft); font-weight: 600; color: var(--text-strong); font-size: .88rem; text-transform: uppercase; letter-spacing: 0.04em; }
.article blockquote { border-left: 4px solid var(--brand-2); padding: 12px 24px; background: var(--bg-elev); margin: 28px 0; font-family: var(--font-serif); color: var(--text-strong); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.article ul, .article ol { padding-left: 24px; }
.article li { margin-bottom: 10px; }
.article code { background: var(--bg-soft); padding: 2px 7px; border-radius: 6px; font-family: var(--font-mono); font-size: .9em; color: var(--brand-2); }
.article pre { background: var(--text-strong); color: #fff; padding: 20px 24px; border-radius: var(--radius); overflow-x: auto; }
.article pre code { background: transparent; padding: 0; color: inherit; }
.toc { background: var(--bg-elev); padding: 24px 28px; border-radius: var(--radius); margin: 28px 0; border: 1px solid var(--border); }
.toc h4 { margin: 0 0 14px; font-size: .92rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.toc ol { margin: 0; padding-left: 24px; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--text-strong); font-weight: 500; }
.toc a:hover { color: var(--brand-2); }
.callout { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 16px 20px; margin: 28px 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .95rem; }
.affiliate-box { background: var(--accent-soft); border-left: 4px solid var(--warn); padding: 14px 18px; margin: 24px 0; font-size: .92rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* Team grid (about) */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 36px 0; }
.team-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: all 280ms var(--ease); }
.team-card:hover { border-color: var(--brand-2); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.team-card img { border-radius: 50%; margin-bottom: 12px; width: 120px; height: 120px; object-fit: cover; }
.team-card .role { color: var(--brand-2); font-weight: 600; font-size: .9rem; margin: 4px 0 14px; text-transform: uppercase; letter-spacing: 0.04em; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 36px; margin: 36px 0; }
.contact-form { display: grid; gap: 18px; max-width: 600px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: .9rem; }
.contact-form input, .contact-form select, .contact-form textarea { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font: inherit; transition: all 180ms var(--ease); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-glow); }
.contact-form .consent { flex-direction: row; align-items: flex-start; gap: 12px; font-size: .9rem; font-weight: 400; }

/* FAQ details */
details { padding: 20px 24px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; transition: all 220ms var(--ease); }
details:hover { border-color: var(--border-strong); }
details[open] { border-color: var(--brand-2); box-shadow: var(--shadow-sm); }
details summary { font-weight: 600; font-size: 1.04rem; cursor: pointer; color: var(--text-strong); list-style: none; position: relative; padding-right: 28px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-weight: 400; font-size: 1.4rem; color: var(--brand-2); transition: transform 220ms var(--ease); }
details[open] summary::after { content: '−'; }
details[open] summary { margin-bottom: 14px; }

/* Footer */
.site-footer { background: var(--bg-elev); border-top: 1px solid var(--border); padding: 64px 0 32px; margin-top: 72px; }
.footer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 36px; }
.footer-grid h4 { font-size: .85rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-strong); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 5px 0; }
.footer-grid a { color: var(--text-muted); font-size: .92rem; transition: color 180ms var(--ease); }
.footer-grid a:hover { color: var(--text-strong); }
.footer-bottom { padding-top: 36px; margin-top: 36px; border-top: 1px solid var(--border); font-size: .88rem; color: var(--text-muted); text-align: center; }
.footer-legal { margin-top: 14px; font-size: .85rem; color: var(--text-muted); display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.footer-legal a, .footer-legal button { color: var(--text-muted); text-decoration: underline; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; transition: color 180ms var(--ease); }
.footer-legal a:hover, .footer-legal button:hover { color: var(--text-strong); }

/* Cookie banner */
.cookie-banner { position: fixed; bottom: 20px; left: 20px; right: 20px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; box-shadow: var(--shadow-lg); z-index: 60; flex-wrap: wrap; }
.cookie-banner p { margin: 0; font-size: .92rem; }
.cookie-banner div { display: flex; gap: 10px; }

.mono { font-family: var(--font-mono); }

/* Related list */
.related-list { list-style: none; padding: 0; margin: 18px 0 0; }
.related-list li { padding: 14px 0; border-bottom: 1px solid var(--border); }
.related-list a { color: var(--text-strong); font-weight: 500; }
.related-list a:hover { color: var(--brand-2); }

/* Hero illustration container */
.hero-illustration { max-width: 720px; margin: 32px auto -20px; opacity: 0.9; }

/* Responsive */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .primary-nav { display: none; }
  .mobile-only { display: inline-flex; }
  .card-grid, .post-grid { grid-template-columns: 1fr; }
  .calc-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 48px 0 36px; }
  .newsletter-form { flex-direction: column; }
  body { font-size: 16px; }
  .team-grid, .contact-grid { grid-template-columns: 1fr; }
  .article { padding: 36px 18px; }
  .article table { font-size: .85rem; }
  section { padding: 56px 0; }
}
@media print {
  .site-header, .site-footer, .ad-slot, .cookie-banner, .newsletter { display: none; }
  body { font-size: 12pt; color: #000; background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
