:root {
  --ink: #172027;
  --muted: #5e6870;
  --paper: #ffffff;
  --soft: #f2f5f4;
  --line: #d9dfdd;
  --red: #b4232f;
  --red-dark: #811925;
  --green: #176b52;
  --yellow: #f2c94c;
  --blue: #1f5f8b;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, Arial, sans-serif; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
button, input, select { font: inherit; }

.skip-link { position: absolute; top: -60px; left: 16px; z-index: 100; background: #fff; color: #000; padding: 10px 14px; }
.skip-link:focus { top: 12px; }
.shell { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.nav-row { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-logo { width: 215px; height: 40px; object-fit: contain; object-position: left center; }
.desktop-nav { display: flex; align-items: center; gap: 22px; }
.desktop-nav a { color: #303a40; font-size: 14px; font-weight: 700; text-decoration: none; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--red); }
.nav-tool { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid var(--ink); border-radius: 5px; }
.menu-button { display: none; width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 5px; align-items: center; justify-content: center; cursor: pointer; }
.mobile-nav { display: none; padding: 0 0 16px; }
.mobile-nav.open { display: grid; gap: 3px; }
.mobile-nav a { padding: 9px 0; color: var(--ink); font-weight: 700; text-decoration: none; }

.hero { position: relative; min-height: min(680px, calc(100vh - 68px)); display: flex; align-items: flex-end; color: #fff; background: #172027 url('/assets/warehouse-hero.webp') center/cover no-repeat; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,18,21,.92) 0%, rgba(12,18,21,.68) 47%, rgba(12,18,21,.18) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 760px; padding: 90px 0 86px; }
.kicker { margin: 0 0 14px; color: var(--yellow); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 720px; font-size: clamp(42px, 7vw, 78px); line-height: 1.02; letter-spacing: 0; }
.hero p { max-width: 650px; margin: 24px 0 0; color: #e4e9e7; font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border: 1px solid transparent; border-radius: 5px; background: var(--red); color: #fff; font-weight: 800; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--red-dark); color: #fff; }
.button.secondary { background: transparent; border-color: rgba(255,255,255,.7); }
.button.secondary:hover { background: #fff; color: var(--ink); }
.button.dark { background: var(--ink); }

.trust-band { background: var(--ink); color: #fff; }
.trust-grid { min-height: 88px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.trust-item { padding: 18px 24px; border-left: 1px solid rgba(255,255,255,.15); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item strong { display: block; font-size: 15px; }
.trust-item span { color: #aeb8bb; font-size: 13px; }

.band { padding: 82px 0; }
.band.soft { background: var(--soft); }
.band.dark { background: var(--ink); color: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 34px; }
.section-head h2, .page-title { margin: 0; font-size: clamp(30px, 4.5vw, 48px); line-height: 1.1; letter-spacing: 0; }
.section-head p { max-width: 600px; margin: 0; color: var(--muted); }
.dark .section-head p { color: #b9c2c3; }
.eyebrow { display: block; margin-bottom: 9px; color: var(--red); font-size: 12px; font-weight: 900; text-transform: uppercase; }

.tool-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); border: 1px solid var(--line); }
.tool-form { padding: 34px; }
.tool-result { padding: 34px; background: var(--ink); color: #fff; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field label { display: block; margin-bottom: 6px; color: #38434a; font-size: 13px; font-weight: 800; }
.field input, .field select { width: 100%; height: 46px; padding: 8px 11px; border: 1px solid #bfc8c5; border-radius: 4px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus { outline: 3px solid rgba(31,95,139,.16); border-color: var(--blue); }
.field.full { grid-column: 1 / -1; }
.result-label { color: #bfc8c7; font-size: 13px; }
.result-number { margin: 2px 0 22px; font-size: 52px; font-weight: 900; line-height: 1; }
.result-breakdown { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.18); }
.result-breakdown li { display: flex; justify-content: space-between; gap: 15px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 14px; }
.tool-note { margin: 18px 0 0; color: #adb7b7; font-size: 12px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 24px; }
.card h3 { margin: 12px 0 9px; font-size: 21px; line-height: 1.25; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 800; text-decoration: none; }
.icon-box { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 4px; background: #fbe9e9; color: var(--red); }

.comparison-wrap { overflow-x: auto; border: 1px solid var(--line); }
.comparison { width: 100%; min-width: 800px; border-collapse: collapse; background: #fff; }
.comparison th, .comparison td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison th { background: #eef2f0; font-size: 13px; text-transform: uppercase; }
.comparison tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; padding: 2px 7px; border-radius: 4px; background: #e1f3eb; color: var(--green); font-size: 12px; font-weight: 800; }
.badge.caution { background: #fff3cd; color: #735b00; }

.page-hero { padding: 72px 0 52px; background: var(--soft); border-bottom: 1px solid var(--line); }
.page-hero .intro { max-width: 780px; margin: 20px 0 0; color: var(--muted); font-size: 19px; }
.breadcrumbs { margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: inherit; }
.content-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(230px, 1fr); gap: 70px; align-items: start; }
.article { font-size: 17px; }
.article h2 { margin: 48px 0 14px; font-size: 30px; line-height: 1.2; }
.article h2:first-child { margin-top: 0; }
.article h3 { margin: 30px 0 10px; font-size: 21px; }
.article p { margin: 0 0 18px; }
.article ul, .article ol { padding-left: 23px; }
.article li { margin: 7px 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 24px; color: var(--muted); font-size: 13px; }
.side-nav { position: sticky; top: 96px; padding-left: 22px; border-left: 2px solid var(--line); }
.side-nav strong { font-size: 13px; text-transform: uppercase; }
.side-nav a { display: block; margin-top: 9px; color: var(--muted); font-size: 14px; text-decoration: none; }
.callout { margin: 30px 0; padding: 20px 22px; border-left: 4px solid var(--yellow); background: #fff9df; }
.sources { margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); }
.sources h2 { font-size: 21px; }
.faq { margin-top: 50px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { padding: 16px 4px; font-weight: 800; cursor: pointer; }
.faq details p { padding: 0 4px 16px; margin: 0; color: var(--muted); }

.country-checklist { margin: 30px 0; padding: 0; list-style: none; }
.country-checklist li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--line); }
.country-checklist li::before { content: "✓"; position: absolute; left: 4px; color: var(--green); font-weight: 900; }

.directory-controls { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.search-box { min-width: min(100%, 320px); height: 44px; padding: 8px 12px; border: 1px solid #bfc8c5; border-radius: 4px; }
.disclosure { padding: 18px 20px; background: #eef5f8; border-left: 4px solid var(--blue); color: #35444d; font-size: 14px; }

.footer { padding: 54px 0 28px; background: #11191e; color: #c5cdcf; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 44px; }
.footer h2, .footer h3 { color: #fff; }
.footer h2 { margin: 0 0 12px; font-size: 22px; }
.footer h3 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; }
.footer p { max-width: 380px; color: #9facaf; font-size: 14px; }
.footer a { display: block; margin: 7px 0; color: #c5cdcf; font-size: 14px; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 38px; padding-top: 22px; border-top: 1px solid #344047; color: #89979b; font-size: 12px; }

.legal { max-width: 820px; }
.legal h2 { margin-top: 36px; }
.empty-state { padding: 30px; border: 1px dashed #aab4b1; text-align: center; color: var(--muted); }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .menu-button { display: inline-flex; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { padding-left: 0; border-left: 0; }
  .tool-layout, .content-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; order: -1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 28px, var(--max)); }
  .brand-logo { width: 176px; }
  .hero { min-height: 610px; background-position: 58% center; }
  .hero-content { padding: 70px 0 64px; }
  .hero h1 { font-size: 44px; }
  .hero p { font-size: 17px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 15px 12px; }
  .band { padding: 58px 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 14px; }
  .fields, .cards, .footer-grid { grid-template-columns: 1fr; }
  .tool-form, .tool-result { padding: 24px 20px; }
  .page-hero { padding: 50px 0 38px; }
  .footer-bottom { display: block; }
}
