/* ========================================================
   FileSize.org — Styles
   Aesthetic: Technical Precision meets Editorial Calm
   ======================================================== */

/* --- Reset & Variables --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Palette */
  --bg:          #0b0c10;
  --bg-raised:   #12141a;
  --bg-card:     #181b23;
  --bg-input:    #1e2130;
  --border:      #2a2d3a;
  --border-lit:  #3d4158;
  --text:        #c8ccd8;
  --text-dim:    #7e8299;
  --text-bright: #eef0f6;
  --accent:      #56e6a7;
  --accent-dim:  #2b8f65;
  --accent-glow: rgba(86, 230, 167, .12);
  --accent-b:    #5ebbf7;
  --red:         #f76e6e;
  --orange:      #f7a95e;
  --purple:      #a78bfa;

  /* Typography */
  --font-body:  'Outfit', system-ui, sans-serif;
  --font-mono:  'DM Mono', 'Menlo', monospace;

  /* Sizing */
  --container: 1200px;
  --radius:    10px;
  --radius-sm: 6px;
  --radius-lg: 16px;

  /* Transitions */
  --ease: cubic-bezier(.4, 0, .2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--text-bright); }
ul { list-style: none; }
input, select, button { font-family: inherit; font-size: inherit; }

::selection { background: var(--accent); color: var(--bg); }

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

/* ============================
   HEADER
   ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 12, 16, .82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-bright);
  font-size: 1.15rem;
  letter-spacing: -.02em;
}
.logo:hover { color: var(--text-bright); }
.logo-icon {
  font-size: 1.4rem;
  color: var(--accent);
  line-height: 1;
}
.logo-text { font-weight: 300; }
.logo-text strong { font-weight: 700; }
.logo-dot { color: var(--accent); font-weight: 600; }

.nav-links {
  display: flex;
  gap: 6px;
}
.nav-links a {
  display: block;
  padding: 8px 16px;
  color: var(--text-dim);
  font-size: .9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all .2s var(--ease);
}
.nav-links a:hover {
  color: var(--text-bright);
  background: rgba(255,255,255,.05);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dim);
  border-radius: 2px;
  transition: all .3s var(--ease);
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  inset: 64px 0 0;
  z-index: 99;
  background: rgba(11,12,16,.96);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 48px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav ul { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.mobile-nav a {
  display: block;
  padding: 16px 40px;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background .2s;
}
.mobile-nav a:hover { background: rgba(255,255,255,.06); color: var(--text-bright); }

/* ============================
   HERO
   ============================ */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(86,230,167,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86,230,167,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 80%);
}
.hero-bg::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(86,230,167,.08), transparent 60%);
  filter: blur(80px);
  pointer-events: none;
}
.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(94,187,247,.06), transparent 60%);
  filter: blur(80px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.2;
  letter-spacing: -.03em;
  margin-bottom: 16px;
}
.hero-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-b));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* Master Search */
.master-search { position: relative; max-width: 560px; margin: 0 auto 32px; }
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px 18px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search-box:focus-within {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px var(--accent-glow), 0 8px 32px rgba(0,0,0,.3);
}
.search-icon { flex-shrink: 0; color: var(--text-dim); }
.search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-bright);
  font-size: 1rem;
  padding: 12px 0;
}
.search-box input::placeholder { color: var(--text-dim); }
.search-kbd {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-dim);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  line-height: 1.4;
}

/* Search Results Dropdown */
.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-height: 320px;
  overflow-y: auto;
  display: none;
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
  z-index: 10;
}
.search-results.active { display: block; }
.search-results .sr-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  color: var(--text);
  cursor: pointer;
  transition: background .15s;
}
.search-results .sr-item:hover,
.search-results .sr-item.focused {
  background: rgba(255,255,255,.05);
  color: var(--text-bright);
}
.search-results .sr-tag {
  font-family: var(--font-mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}
.search-results .sr-text { font-size: .92rem; }

/* Hero Pills */
.hero-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pill {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-dim);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px;
  letter-spacing: .02em;
}

/* ============================
   SECTIONS (shared)
   ============================ */
.section {
  padding: 100px 0;
  position: relative;
}
.section + .section { border-top: 1px solid var(--border); }
.section-label {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.section-desc {
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 48px;
  font-size: 1.05rem;
}
.section-cta {
  display: inline-block;
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: .88rem;
  color: var(--accent);
  padding: 10px 0;
  border-bottom: 1px solid var(--accent-dim);
  transition: border-color .2s, color .2s;
}
.section-cta:hover { color: var(--text-bright); border-color: var(--text-bright); }

/* ============================
   CONVERTER
   ============================ */
.converter-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 720px;
}

.converter-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.converter-field {
  flex: 1;
  min-width: 120px;
}
.converter-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 6px;
}
.converter-field input,
.converter-field select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-bright);
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  -webkit-appearance: none;
}
.converter-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237e8299' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.converter-field input:focus,
.converter-field select:focus {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.swap-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-dim);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.swap-btn:hover { color: var(--accent); border-color: var(--accent-dim); background: var(--accent-glow); }

.converter-result {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.result-label {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.result-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-bright);
  text-align: right;
}

.converter-mode {
  display: flex;
  gap: 4px;
  margin-top: 16px;
}
.mode-btn {
  flex: 1;
  padding: 10px;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.mode-btn.active {
  color: var(--accent);
  background: var(--accent-glow);
  border-color: var(--accent-dim);
}
.mode-btn:hover:not(.active) { color: var(--text); border-color: var(--border-lit); }

/* Quick Reference Table */
.quick-ref {
  margin-top: 48px;
  max-width: 720px;
}
.quick-ref h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 16px;
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: .82rem;
}
thead th {
  text-align: left;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,.03);
  color: var(--text);
  white-space: nowrap;
}
tbody tr:hover td { background: rgba(255,255,255,.02); }

/* ============================
   PLATFORM LIMITS
   ============================ */
.limits-section { background: var(--bg-raised); }

.limits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.limit-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
  text-decoration: none;
}
.limit-card:hover {
  border-color: var(--border-lit);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  color: var(--text);
}

.limit-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.limit-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.limit-card-name {
  font-weight: 600;
  color: var(--text-bright);
  font-size: 1.05rem;
}

.limit-card-limit {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text-bright);
  margin-bottom: 6px;
}
.limit-card-detail {
  font-size: .85rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ============================
   CALCULATORS
   ============================ */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.calc-card {
  position: relative;
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all .25s var(--ease);
  color: var(--text);
  overflow: hidden;
}
.calc-card:hover {
  border-color: var(--border-lit);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  color: var(--text);
}
.calc-card:hover .calc-icon { color: var(--accent); }

.calc-icon {
  color: var(--text-dim);
  margin-bottom: 16px;
  transition: color .25s var(--ease);
}

.calc-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 8px;
}
.calc-card p {
  font-size: .88rem;
  color: var(--text-dim);
  line-height: 1.55;
}

.calc-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 3px 8px;
  border-radius: 100px;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
}

/* ============================
   MAP
   ============================ */
.map-section { background: var(--bg-raised); }

.leaflet-map {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.map-caption {
  font-size: .82rem;
  color: var(--text-dim);
  margin-top: 12px;
}

/* Leaflet overrides */
.leaflet-container { background: #0d1117 !important; }
.leaflet-control-attribution { display: none !important; }
.leaflet-control-zoom { border: 1px solid var(--border) !important; border-radius: var(--radius-sm) !important; overflow: hidden; }
.leaflet-control-zoom a {
  background: var(--bg-card) !important;
  color: var(--text-dim) !important;
  border-color: var(--border) !important;
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
  font-size: 16px !important;
}
.leaflet-control-zoom a:hover { background: var(--bg-input) !important; color: var(--text-bright) !important; }

.map-popup-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  color: #eef0f6;
  margin-bottom: 4px;
}
.map-popup-limit {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: #56e6a7;
  margin-bottom: 2px;
}
.map-popup-note {
  font-family: var(--font-body);
  font-size: .78rem;
  color: #7e8299;
}
.leaflet-popup-content-wrapper {
  background: #181b23 !important;
  border: 1px solid #2a2d3a !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.4) !important;
}
.leaflet-popup-tip { background: #181b23 !important; border: 1px solid #2a2d3a !important; }
.leaflet-popup-close-button { color: #7e8299 !important; }
.leaflet-popup-close-button:hover { color: #eef0f6 !important; }

/* ============================
   GUIDES
   ============================ */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.guide-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all .25s var(--ease);
  color: var(--text);
}
.guide-card:hover {
  border-color: var(--border-lit);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  color: var(--text);
}

.guide-type {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--purple);
  background: rgba(167,139,250,.1);
  border: 1px solid rgba(167,139,250,.2);
  padding: 2px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.guide-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 8px;
}
.guide-card p {
  font-size: .88rem;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ============================
   CONVERSION REFERENCE
   ============================ */
.ref-section { background: var(--bg-raised); }

.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 36px;
}
.ref-col h3 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.ref-col li { margin-bottom: 6px; }
.ref-col a {
  font-size: .9rem;
  color: var(--text-dim);
  transition: color .15s;
}
.ref-col a:hover { color: var(--accent); }

/* ============================
   FAQ
   ============================ */
.faq-list { max-width: 720px; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  padding: 20px 0;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text-bright);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: transform .3s var(--ease), color .2s;
}
.faq-item[open] summary::after { content: '−'; color: var(--accent); }
.faq-item summary:hover { color: var(--accent); }
.faq-item p {
  padding: 0 0 20px;
  color: var(--text-dim);
  font-size: .95rem;
  line-height: 1.65;
}
.faq-item p a { border-bottom: 1px solid var(--accent-dim); }
.faq-item p a:hover { border-color: var(--accent); }

/* ============================
   FOOTER
   ============================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 36px;
  padding-bottom: 48px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: .88rem;
  color: var(--text-dim);
  max-width: 260px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: .78rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  font-size: .88rem;
  color: var(--text-dim);
  transition: color .15s;
}
.footer-col a:hover { color: var(--text-bright); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: .8rem; color: var(--text-dim); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: .8rem; color: var(--text-dim); }
.footer-legal a:hover { color: var(--text-bright); }

/* ============================
   ANIMATIONS
   ============================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content { animation: fadeUp .7s var(--ease) both; }
.hero-eyebrow { animation-delay: .05s; }

.section h2,
.section-desc,
.section-label { animation: fadeUp .6s var(--ease) both; }

/* Stagger via IntersectionObserver (JS adds .visible) */
.limit-card, .calc-card, .guide-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.limit-card.visible, .calc-card.visible, .guide-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero { min-height: auto; padding: 80px 20px 60px; }
  .converter-row { flex-direction: column; align-items: stretch; }
  .swap-btn { align-self: center; transform: rotate(90deg); }
  .converter-card { padding: 24px 18px; }
  .leaflet-map { height: 300px; }
  .guides-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-pills { gap: 6px; }
  .pill { font-size: .68rem; padding: 4px 10px; }
  .result-value { font-size: 1.2rem; }
  .converter-result { flex-direction: column; align-items: flex-start; }
}
