/* MiCambioExpress — Design system v2
 * Brand-faithful: deep navy + vibrant orange + confidence green (matches official logo).
 * Premium fintech / remittance vertical.
 */

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }

:root {
  /* Brand — pulled from official logo */
  --primary:    #2F4DB7;          /* mid royal blue (hover, links) */
  --primary-d:  #1B2A6E;          /* deep navy from logo letters */
  --primary-l:  #E8ECFB;           /* tinted background for surfaces */

  --accent:     #F26522;          /* vibrant orange from EXPRESS / arrows */
  --accent-d:   #D95014;          /* darker orange for hover */
  --accent-l:   #FFE4D6;          /* peach soft background */

  --success:    #3DAE2B;          /* logo tagline green */
  --success-l:  #E7F6E3;

  --ink:        #0E1532;
  --ink-soft:   #2A3050;
  --muted:      #6B7290;
  --line:       #E7E9F4;

  --cream:      #FBF8F1;
  --paper:      #FFFFFF;
  --error:      #DC2626;

  --radius-sm:  10px;
  --radius:     16px;
  --radius-lg:  22px;
  --radius-xl:  32px;

  --shadow-sm:  0 1px 2px rgba(14,21,50,.06), 0 1px 1px rgba(14,21,50,.04);
  --shadow:     0 12px 28px rgba(14,21,50,.08), 0 4px 8px rgba(14,21,50,.05);
  --shadow-lg:  0 32px 70px rgba(14,21,50,.18), 0 12px 28px rgba(14,21,50,.08);
  --shadow-orange: 0 20px 50px rgba(242,101,34,.30);

  --font-sans:  'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-disp:  'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;

  --container:  1240px;

  --ease:       cubic-bezier(.4, 0, .2, 1);
  --ease-out:   cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

.bg-cream { background: var(--cream); }
.text-ink { color: var(--ink); }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body { font: 16px/1.6 var(--font-sans); color: var(--ink); background: var(--cream); overflow-x: hidden; }
h1,h2,h3,h4 { font-family: var(--font-disp); letter-spacing: -0.02em; color: var(--ink); margin: 0 0 .5em; line-height: 1.1; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); font-weight: 700; }
p  { margin: 0 0 1em; }
a  { color: var(--primary); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--primary-d); text-decoration: underline; }
small { font-size: .85em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.grad   { background: linear-gradient(135deg, var(--primary-d) 0%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.display { font-size: clamp(2.6rem, 5.6vw, 4.4rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; }
.lead    { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--ink-soft); max-width: 60ch; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 999px; background: var(--accent-l); color: var(--accent-d); font-weight: 700; font-size: .8rem; letter-spacing: .03em; text-transform: uppercase; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(242,101,34,.18); animation: pulse 2s infinite; }

.skip-link { position: absolute; left: -9999px; top: 12px; padding: 8px 12px; background: var(--ink); color: white; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 12px; }

/* ============================================================
 * Keyframes
 * ============================================================ */
@keyframes pulse        { 0%,100% { opacity: 1; transform: scale(1) } 50% { opacity: .55; transform: scale(.85) } }
@keyframes fadeUp       { from { opacity: 0; transform: translate3d(0, 18px, 0) } to { opacity: 1; transform: translate3d(0, 0, 0) } }
@keyframes fadeIn       { from { opacity: 0 } to { opacity: 1 } }
@keyframes fadeInScale  { from { opacity: 0; transform: scale(.96) } to { opacity: 1; transform: scale(1) } }
@keyframes floatY       { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }
@keyframes floatYAlt    { 0%,100% { transform: translateY(0) } 50% { transform: translateY(10px) } }
@keyframes shimmer      { 0% { background-position: 200% center } 100% { background-position: -200% center } }
@keyframes shine        { 0% { transform: translateX(-100%) skewX(-12deg) } 100% { transform: translateX(220%) skewX(-12deg) } }
@keyframes rotateSlow   { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }
@keyframes badgePop     { 0% { opacity: 0; transform: scale(.6) translateY(8px) } 100% { opacity: 1; transform: scale(1) translateY(0) } }
@keyframes notifyBounce { 0% { opacity: 0; transform: translateY(20px) scale(.9) } 60% { opacity: 1; transform: translateY(-4px) scale(1.02) } 100% { opacity: 1; transform: translateY(0) scale(1) } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ============================================================
 * Buttons
 * ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; line-height: 1;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s var(--ease-out), box-shadow .25s var(--ease), background .25s var(--ease), color .15s;
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; top: 0; left: 0; width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.35) 50%, transparent 100%);
  transform: translateX(-100%) skewX(-12deg); pointer-events: none;
}
.btn:hover::before { animation: shine .9s ease-out; }

.btn-primary {
  background: var(--accent); color: white;
  box-shadow: 0 10px 25px rgba(242,101,34,.30), 0 2px 4px rgba(242,101,34,.20);
}
.btn-primary:hover { background: var(--accent-d); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(242,101,34,.40); text-decoration: none; color: white; }

.btn-secondary { background: var(--primary-d); color: white; box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; color: white; }

.btn-ghost   { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary-d); color: var(--primary-d); text-decoration: none; transform: translateY(-1px); }

.btn-lg { padding: 17px 30px; font-size: 1.02rem; }
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
 * Header
 * ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: rgba(251,248,241,.82);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 2px 20px rgba(14,21,50,.08); }
.header-row { display: flex; align-items: center; gap: 28px; padding: 14px 24px; max-width: var(--container); margin: 0 auto; }

.brand { display: flex; align-items: center; gap: 10px; transition: transform .2s var(--ease); padding: 4px 0; }
.brand:hover { text-decoration: none; transform: translateY(-1px); }
.brand-logo { height: 60px; width: auto; display: block; }
@media (max-width: 980px) { .brand-logo { height: 48px; } }

.nav-main { display: flex; gap: 6px; margin-left: auto; }
.nav-main a {
  position: relative; color: var(--ink-soft); font-weight: 600; font-size: .95rem;
  padding: 8px 14px; border-radius: 10px; transition: all .2s var(--ease);
}
.nav-main a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease-out);
}
.nav-main a:hover { color: var(--primary-d); text-decoration: none; }
.nav-main a:hover::after { transform: scaleX(1); }

.header-cta { margin-left: 16px; }
.nav-toggle { display: none; }

.nav-mobile { display: none; padding: 14px 24px; gap: 8px; flex-direction: column; border-top: 1px solid var(--line); background: var(--paper); }
.nav-mobile a { color: var(--ink); padding: 12px 14px; border-radius: 10px; }
.nav-mobile a:hover { background: var(--cream); text-decoration: none; }

@media (max-width: 980px) {
  .nav-main, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; flex-direction: column; gap: 4px; width: 40px; height: 40px; padding: 10px; margin-left: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; align-items: center; justify-content: center; cursor: pointer; }
  .nav-toggle span { width: 18px; height: 2px; background: var(--ink); display: block; transition: transform .2s; }
  .nav-mobile:not([hidden]) { display: flex; animation: fadeUp .3s var(--ease-out) both; }
  .brand-logo { height: 38px; }
}

/* ============================================================
 * Hero — 60/40 split, brand-faithful
 * ============================================================ */
.hero { position: relative; padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 6vw, 100px); overflow: hidden; }

.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-bg::before, .hero-bg::after {
  content: ''; position: absolute; border-radius: 50%;
  filter: blur(50px); opacity: .55;
}
.hero-bg::before { width: 540px; height: 540px; background: radial-gradient(circle, rgba(242,101,34,.25), transparent 60%); top: -160px; right: -120px; animation: floatY 10s var(--ease) infinite; }
.hero-bg::after  { width: 600px; height: 600px; background: radial-gradient(circle, rgba(47,77,183,.30), transparent 60%); bottom: -180px; left: -160px; animation: floatYAlt 12s var(--ease) infinite; }

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 64px; align-items: center;
}
.hero-side { max-width: 420px; justify-self: end; width: 100%; }

/* Mobile: stack columns; calculator FIRST, title below (priority for action). */
@media (max-width: 1040px) {
  .hero-grid   { grid-template-columns: 1fr; gap: 32px; }
  .hero-copy   { order: 2; text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .hero-copy .hero-actions { justify-content: center; }
  .hero-copy .hero-bullets { justify-content: center; }
  .hero-side   { order: 1; max-width: 480px; justify-self: stretch; margin: 0 auto; }
}

.hero-copy { animation: fadeUp .8s var(--ease-out) both; }
.hero-copy .eyebrow { animation: badgePop .6s var(--ease-spring) .1s both; }
.hero-copy h1 { margin: 18px 0 18px; animation: fadeUp .8s var(--ease-out) .15s both; }
.hero-copy .lead { animation: fadeUp .8s var(--ease-out) .25s both; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 20px; animation: fadeUp .8s var(--ease-out) .35s both; }
.hero-bullets {
  list-style: none; padding: 0; margin: 0; display: flex; gap: 22px; flex-wrap: wrap;
  color: var(--ink-soft); font-weight: 500;
  animation: fadeUp .8s var(--ease-out) .45s both;
}
.hero-bullets li { display: flex; align-items: center; gap: 8px; font-size: .92rem; }
.hero-bullets li::before {
  content: ''; width: 20px; height: 20px; border-radius: 50%;
  background: var(--success-l); color: var(--success);
  display: inline-grid; place-items: center;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233DAE2B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat; background-position: center; background-size: 12px;
  flex-shrink: 0;
}

/* Hero social proof — avatars + stars + rating */
.hero-social-proof {
  display: flex; align-items: center; gap: 14px; margin: 22px 0 0;
  padding: 12px 16px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; width: max-content; max-width: 100%; box-shadow: var(--shadow-sm);
  animation: fadeUp .8s var(--ease-out) .42s both;
}
.avatars { display: flex; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  color: white; font-weight: 700; font-size: .85rem;
  border: 2.5px solid var(--paper);
  margin-right: -10px;
  font-family: var(--font-disp);
}
.avatars .avatar:last-child { margin-right: 0; }
.sp-text { font-size: .88rem; display: flex; align-items: center; gap: 6px; }
.sp-text strong { color: var(--ink); font-weight: 700; }
.sp-stars { display: inline-flex; gap: 1px; margin-right: 4px; }
.sp-stars svg { width: 14px; height: 14px; }

/* Hero side wrapper */
.hero-side { position: relative; }

/* Notification chip INSIDE the calculator card */
.calc-notify {
  display: flex; align-items: center; gap: 10px;
  background: var(--success-l); color: var(--ink);
  padding: 10px 12px; border-radius: 12px;
  margin-top: 14px;
  animation: fadeUp .6s var(--ease-out) 1.1s both;
}
.calc-notify .ico {
  width: 30px; height: 30px; border-radius: 50%;
  background: white; color: var(--success);
  display: grid; place-items: center; flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(14,21,50,.08);
}
.calc-notify .ico svg { width: 16px; height: 16px; }
.calc-notify strong { display: block; color: var(--ink); font-weight: 700; font-size: .85rem; line-height: 1.2; }
.calc-notify small { display: block; color: var(--ink-soft); font-weight: 500; font-size: .72rem; margin-top: 1px; }

/* Footer logo */
.footer-logo {
  display: inline-block;
  transition: transform .2s var(--ease);
}
.footer-logo:hover { transform: translateY(-1px); }
.footer-logo img { width: 240px; max-width: 100%; height: auto; display: block; }
@media (max-width: 540px) { .footer-logo img { width: 180px; } }

.hero-illustration {
  position: relative; width: 100%; max-width: 380px; aspect-ratio: 1;
  border-radius: var(--radius-xl); overflow: visible;
  margin: 0 auto;
  animation: fadeInScale .9s var(--ease-out) .2s both;
}
.hero-illustration img {
  width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.hero-illustration .notify {
  position: absolute; top: 32%; left: -28px;
  display: flex; align-items: center; gap: 10px;
  background: white; padding: 10px 14px; border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: .85rem; font-weight: 600;
  animation: notifyBounce 1s var(--ease-spring) 1.2s both, floatY 4s var(--ease) 2.2s infinite;
}
.hero-illustration .notify .ico {
  width: 32px; height: 32px; border-radius: 50%; background: var(--success-l); color: var(--success);
  display: grid; place-items: center; flex-shrink: 0;
}
.hero-illustration .notify .ico svg { width: 18px; height: 18px; }
.hero-illustration .notify small { display: block; color: var(--muted); font-weight: 500; font-size: .72rem; }
.hero-illustration .badge-money {
  position: absolute; bottom: 24px; right: -20px;
  background: white; padding: 14px 18px; border-radius: 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow);
  animation: notifyBounce 1s var(--ease-spring) 1.6s both, floatYAlt 4.5s var(--ease) 2.8s infinite;
}
.hero-illustration .badge-money .euro, .hero-illustration .badge-money .bs {
  font-family: var(--font-disp); font-weight: 800; color: var(--primary-d); font-size: 1.05rem;
}
.hero-illustration .badge-money .arrow { color: var(--accent); }
.hero-illustration .badge-money small { display: block; color: var(--muted); font-weight: 600; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }

.hero--simple { padding: 72px 0 28px; text-align: center; }
.hero--simple .lead { margin-left: auto; margin-right: auto; }
.hero--simple .hero-actions { justify-content: center; }

/* ============================================================
 * Calculator — centerpiece
 * ============================================================ */
.calc-card {
  background: var(--paper); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 22px 20px;
  border: 1px solid var(--line); position: relative;
  animation: fadeInScale .9s var(--ease-out) .35s both;
}
.calc-card .calc-head h2 { font-size: 1.05rem; }
.calc-card .calc-field input { font-size: 1.25rem; }
.calc-card .calc-field .ctrl { padding: 11px 14px; }
.calc-card .calc-foot .btn-lg { padding: 14px 22px; font-size: .95rem; }
.calc-card .rate-pill { font-size: .78rem; padding: 5px 10px; }
.calc-card .rate-pill small { display: none; }
.calc-card::before {
  content: ''; position: absolute; inset: -2px; border-radius: calc(var(--radius-lg) + 2px); z-index: -1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  filter: blur(20px); opacity: .35;
}
.calc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.calc-head h2 { margin: 0; font-size: 1.3rem; }
.rate-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; background: var(--success-l); color: #1f6b14;
  border-radius: 999px; font-size: .85rem; font-weight: 700;
}
.rate-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(61,174,43,.20); animation: pulse 2s infinite; }
.rate-pill small { color: var(--muted); font-weight: 500; margin-left: 4px; }

/* Direction tabs */
.calc-tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4px; padding: 4px;
  background: var(--cream); border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 18px;
}
.calc-tab {
  appearance: none; border: 0; cursor: pointer;
  padding: 9px 10px; border-radius: 999px;
  background: transparent; color: var(--muted);
  font: 600 .85rem var(--font-sans);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  white-space: nowrap;
  transition: background .25s var(--ease), color .2s, transform .15s;
}
.calc-tab .flag { font-size: 1.1rem; }
.calc-tab .arr { color: var(--accent); font-weight: 800; margin: 0 2px; }
.calc-tab.is-active .arr { color: var(--accent); }
.calc-tab:hover { color: var(--ink); }
.calc-tab.is-active { background: var(--paper); color: var(--primary-d); box-shadow: 0 2px 8px rgba(14,21,50,.10); }
@media (max-width: 540px) {
  .calc-tabs { grid-template-columns: 1fr; }
  .calc-tab { padding: 10px 14px; }
}

/* Vertical stack: source on top, swap in the middle, target below.
 * The swap is absolutely centered between the two fields so it sits
 * exactly in the geometric middle of the two equal-height boxes. */
.calc-grid { display: flex; flex-direction: column; gap: 10px; position: relative; }
.calc-grid .calc-field { width: 100%; }
.calc-grid .calc-swap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
/* eur2bs default: EUR (source) on top, BS (target) below */
.calc-grid[data-dir="eur2bs"] .calc-field--eur { order: 1; }
.calc-grid[data-dir="eur2bs"] .calc-swap       { order: 2; }
.calc-grid[data-dir="eur2bs"] .calc-field--bs  { order: 3; }
/* bs2eur: BS (source) on top, EUR (target) below */
.calc-grid[data-dir="bs2eur"] .calc-field--bs  { order: 1; }
.calc-grid[data-dir="bs2eur"] .calc-swap       { order: 2; }
.calc-grid[data-dir="bs2eur"] .calc-field--eur { order: 3; }
/* Each calc-field is a single rounded box. Label lives INSIDE so the
 * swap button visually sits between two equal-height boxes (not between
 * a label and a box). */
.calc-field {
  display: block; cursor: text;
  background: var(--cream); border: 2px solid var(--line);
  border-radius: var(--radius); padding: 12px 16px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.calc-field:focus-within { border-color: var(--accent); background: white; box-shadow: 0 0 0 5px rgba(242,101,34,.12); }
.calc-field .lbl { font-size: .72rem; color: var(--muted); display: block; margin-bottom: 4px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.calc-field .row { display: flex; align-items: center; }
.calc-field input { flex: 1; border: 0; outline: 0; background: transparent; font: 800 1.4rem var(--font-disp); color: var(--ink); min-width: 0; letter-spacing: -.01em; padding: 0; }
.calc-field .suffix { font-weight: 700; color: var(--muted); white-space: nowrap; font-size: .85rem; letter-spacing: .04em; }
.calc-swap {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; background: var(--primary-d); color: white;
  transition: background .2s;
  border: 3px solid var(--paper); cursor: pointer;
  box-shadow: 0 4px 10px rgba(14,21,50,.12);
}
.calc-swap:hover { background: var(--accent); }
.calc-swap svg { width: 16px; height: 16px; transform: rotate(90deg); }
.calc-warn { margin: 14px 0 0; color: var(--accent-d); background: var(--accent-l); padding: 10px 14px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 600; }
.calc-foot { margin-top: 22px; display: grid; gap: 10px; }
.calc-foot .btn { width: 100%; justify-content: center; }
.calc-foot .small { color: var(--muted); font-size: .82rem; text-align: center; margin: 0; }

/* ============================================================
 * Trust grid
 * ============================================================ */
.trust { padding: clamp(56px, 6vw, 88px) 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-card {
  background: var(--paper); border-radius: var(--radius-lg); padding: 24px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  position: relative; overflow: hidden;
}
.trust-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary-l) 0%, transparent 50%);
  opacity: 0; transition: opacity .25s;
}
.trust-card > * { position: relative; z-index: 1; }
.trust-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-l); }
.trust-card:hover::before { opacity: 1; }
.trust-card:hover .trust-ico { background: var(--accent); color: white; transform: scale(1.08) rotate(-4deg); }

.trust-ico {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 14px; background: var(--primary-l); color: var(--primary-d);
  margin-bottom: 16px;
  transition: all .3s var(--ease-spring);
}
.trust-ico svg { width: 26px; height: 26px; }
.trust-card h3 { margin-bottom: 6px; }
.trust-card p { color: var(--ink-soft); margin: 0; font-size: .94rem; }

/* ============================================================
 * Steps
 * ============================================================ */
.steps { padding: clamp(56px, 6vw, 92px) 0; background: var(--paper); position: relative; overflow: hidden; }
.steps::before {
  content: ''; position: absolute; top: 50%; left: -10%; width: 120%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.section-head { text-align: center; margin: 0 auto 44px; max-width: 720px; }
.section-head.row { display: flex; align-items: end; justify-content: space-between; text-align: left; gap: 16px; }
.steps-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; position: relative; z-index: 1; }
@media (max-width: 800px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; position: relative;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-n {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: linear-gradient(135deg, var(--primary-d) 0%, var(--primary) 100%);
  color: white; font-weight: 800; font-family: var(--font-disp); margin-bottom: 18px; font-size: 1.1rem;
  box-shadow: 0 8px 20px rgba(47,77,183,.30);
}
.step-card:nth-child(2) .step-n { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-d) 100%); box-shadow: 0 8px 20px rgba(242,101,34,.30); }
.step-card:nth-child(3) .step-n { background: linear-gradient(135deg, var(--success) 0%, #2D8A1F 100%); box-shadow: 0 8px 20px rgba(61,174,43,.30); }
.steps-cta { text-align: center; margin-top: 36px; }

/* ============================================================
 * Blog cards
 * ============================================================ */
.blog-strip { padding: clamp(56px, 6vw, 88px) 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-grid--blog { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .post-grid, .post-grid--blog { grid-template-columns: 1fr; } }
.post-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card-link { display: block; color: inherit; }
.post-card-link:hover { text-decoration: none; }
.post-card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--primary-l); transition: transform .5s var(--ease-out); }
.post-card:hover .post-card-img { transform: scale(1.05); }
.post-card-img.placeholder { background: linear-gradient(135deg, var(--primary-l), var(--accent-l)); }
.post-card-body { padding: 20px 22px 22px; }
.post-card-date { color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.post-card-title { margin: 8px 0 10px; font-size: 1.1rem; line-height: 1.3; transition: color .2s; }
.post-card:hover .post-card-title { color: var(--primary-d); }
.post-card-excerpt { color: var(--ink-soft); font-size: .92rem; margin: 0 0 14px; }
.post-card-cta { color: var(--accent); font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: 4px; transition: gap .2s; }
.post-card:hover .post-card-cta { gap: 8px; }

/* ============================================================
 * Blog index page
 * ============================================================ */
.blog-hero { padding: clamp(40px, 5vw, 64px) 0 28px; }
.blog-body { padding: 16px 0 64px; }
.blog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 36px; }
@media (max-width: 800px) { .blog-layout { grid-template-columns: 1fr; } }
.blog-aside h3 { margin-bottom: 14px; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.cat-list a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--ink-soft); font-size: .9rem; transition: all .2s var(--ease); }
.cat-list a:hover { background: var(--paper); color: var(--ink); text-decoration: none; transform: translateX(2px); }
.cat-list a.active { background: var(--primary-d); color: white; }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pagination a { min-width: 38px; height: 38px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: 10px; border: 1.5px solid var(--line); color: var(--ink); font-weight: 700; transition: all .2s; }
.pagination a.active { background: var(--primary-d); color: white; border-color: var(--primary-d); }
.pagination a:hover { text-decoration: none; background: var(--paper); border-color: var(--primary); }

/* ============================================================
 * Post page
 * ============================================================ */
.post-page { padding: 32px 0 72px; }
.post-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.breadcrumbs { color: var(--muted); font-size: .85rem; margin-bottom: 14px; }
.breadcrumbs a { color: var(--ink-soft); }
.post-head { margin-bottom: 24px; }
.post-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { padding: 4px 12px; border-radius: 999px; background: var(--accent-l); color: var(--accent-d); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.post-meta { color: var(--muted); font-size: .9rem; }
.post-figure { margin: 0 0 32px; border-radius: var(--radius-lg); overflow: hidden; }
.post-figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-content { font-size: 1.08rem; line-height: 1.78; color: var(--ink-soft); }
.post-content h2 { margin-top: 1.8em; color: var(--ink); }
.post-content h3 { margin-top: 1.4em; color: var(--ink); }
.post-content p { margin-bottom: 1.2em; }
.post-content img { border-radius: var(--radius); margin: 1.2em 0; }
.post-content a { color: var(--primary); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.post-content blockquote { border-left: 4px solid var(--accent); padding: 14px 22px; background: var(--accent-l); border-radius: 10px; font-style: italic; color: var(--ink); margin: 1.4em 0; }
.post-content ul, .post-content ol { padding-left: 1.3em; margin-bottom: 1.4em; }
.post-content li { margin-bottom: .4em; }
.related-strip { margin: 64px auto 0; max-width: var(--container); padding: 0 24px; }
.related-strip h2 { margin-bottom: 22px; }

/* ============================================================
 * Legal
 * ============================================================ */
.legal-hero { padding: clamp(40px, 5vw, 64px) 0 24px; text-align: center; }
.legal-narrow { max-width: 780px; margin: 0 auto; }
.legal-body { padding: 24px 0 72px; }
.legal-body h2 { margin: 1.8em 0 .5em; color: var(--primary-d); }
.legal-body h3 { margin: 1.4em 0 .4em; }
.legal-body ul { padding-left: 1.3em; }

/* ============================================================
 * KYC Registro — wide form
 * ============================================================ */
.kyc-hero { padding: clamp(48px, 6vw, 80px) 0 28px; position: relative; overflow: hidden; }
.kyc-hero::before, .kyc-hero::after { content:''; position: absolute; border-radius: 50%; filter: blur(50px); opacity: .45; pointer-events: none; }
.kyc-hero::before { width: 420px; height: 420px; background: rgba(242,101,34,.22); top: -180px; right: -120px; }
.kyc-hero::after  { width: 480px; height: 480px; background: rgba(47,77,183,.22); bottom: -240px; left: -160px; }
.kyc-hero > .container { position: relative; z-index: 1; }

.kyc-hero-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .kyc-hero-grid { grid-template-columns: 1fr; gap: 32px; } }
.kyc-hero-grid h1 { margin: 16px 0 16px; }
.kyc-checklist { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; }
@media (max-width: 600px) { .kyc-checklist { grid-template-columns: 1fr; } }
.kyc-checklist li { color: var(--ink-soft); font-weight: 500; font-size: .94rem; }

.kyc-side-trust { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); display: grid; gap: 16px; }
.trust-row { display: flex; gap: 14px; align-items: center; }
.trust-row strong { display: block; color: var(--ink); font-family: var(--font-disp); font-weight: 700; font-size: .98rem; }
.trust-row span { display: block; color: var(--muted); font-size: .85rem; }
.trust-ico-mini { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-l); color: var(--primary-d); display: grid; place-items: center; flex-shrink: 0; }
.trust-ico-mini svg { width: 20px; height: 20px; }

.kyc-body { padding: 16px 0 72px; }
.kyc-form--wide { max-width: none; }
.kyc-form fieldset {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 28px;
  margin-bottom: 18px; background: var(--paper);
  transition: border-color .2s, box-shadow .2s;
}
.kyc-form fieldset:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(47,77,183,.08); }
.kyc-form legend { padding: 0 10px; font-weight: 800; color: var(--primary-d); font-family: var(--font-disp); font-size: 1.05rem; display: inline-flex; align-items: center; gap: 10px; }
.step-bullet { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: white; font-weight: 800; font-size: .85rem; font-family: var(--font-disp); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 .col-2, .grid-3 .col-3 { grid-column: 1 / -1; }
.grid-3 .col-2 { grid-column: span 2; }
@media (max-width: 800px) { .grid-3 { grid-template-columns: 1fr 1fr; } .grid-3 .col-2 { grid-column: 1 / -1; } }
@media (max-width: 540px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .grid-3 .col-2 { grid-column: 1 / -1; } }
.kyc-form label { display: grid; gap: 6px; font-weight: 600; font-size: .88rem; color: var(--ink); }
.kyc-form .field-lg { font-size: .92rem; }
.kyc-form input, .kyc-form select { padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: var(--cream); transition: border-color .2s, box-shadow .2s, background .2s; }
.kyc-form input:focus, .kyc-form select:focus { outline: 0; border-color: var(--primary); background: white; box-shadow: 0 0 0 5px rgba(47,77,183,.12); }
.kyc-form input[type="file"] { padding: 14px 12px; background: white; cursor: pointer; font-size: .85rem; }
.fs-note { color: var(--muted); font-size: .85rem; margin: 4px 0 16px; }

.file-drop {
  background: var(--cream); border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 22px 22px 14px; transition: border-color .2s, background .2s;
  display: grid; gap: 4px;
}
.file-drop:hover { border-color: var(--primary); background: white; }
.file-drop .file-title { font-weight: 700; color: var(--ink); font-size: 1rem; font-family: var(--font-disp); }
.file-drop .file-sub   { color: var(--muted); font-size: .85rem; font-weight: 500; margin-bottom: 10px; }

.kyc-form .checks { display: grid; gap: 14px; padding: 22px 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.check { display: flex; align-items: start; gap: 12px; font-weight: 500; font-size: .94rem; color: var(--ink-soft); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.check span { line-height: 1.4; }

.kyc-submit-row { display: flex; align-items: center; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.kyc-submit-row .btn { padding: 18px 32px; font-size: 1.05rem; }

/* Success state */
.kyc-success { padding: clamp(48px, 6vw, 96px) 0; }
.kyc-success-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.kyc-success-icon {
  width: 72px; height: 72px; margin: 0 auto 20px;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--success-l); color: var(--success);
  animation: badgePop .6s var(--ease-spring) both;
}
.kyc-success-icon svg { width: 36px; height: 36px; }
.kyc-success .display { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.kyc-success-card {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; margin: 28px 0; text-align: left;
}
@media (max-width: 600px) { .kyc-success-card { grid-template-columns: 1fr; } }
.kvs-label { display: block; color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.kvs-value { font-family: var(--font-disp); font-weight: 700; color: var(--ink); font-size: 1rem; word-break: break-word; }
.chip-pending { background: #FEF3C7; color: #92400E; padding: 3px 10px; border-radius: 999px; font-size: .8rem; }
.kyc-success .hero-actions { justify-content: center; margin-top: 24px; }

/* Legacy class names still referenced by other pages */
.form-hero { padding: clamp(40px, 5vw, 64px) 0 16px; text-align: center; }
.form-body { padding: 12px 0 72px; }
.form-narrow { max-width: 720px; margin: 0 auto; }

.alert { padding: 16px 18px; border-radius: var(--radius); margin-bottom: 18px; animation: fadeUp .4s var(--ease-out) both; }
.alert-success { background: var(--success-l); color: #1f6b14; border: 1px solid #B8E1AD; }
.alert-error   { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.alert ul { margin: 10px 0 0 1.2em; padding: 0; }

/* ============================================================
 * CTA band
 * ============================================================ */
.cta-band {
  padding: clamp(56px, 6vw, 80px) 0;
  background: linear-gradient(135deg, var(--primary-d) 0%, var(--primary) 50%, var(--accent) 130%);
  color: white; position: relative; overflow: hidden;
}
.cta-band::before, .cta-band::after { content: ''; position: absolute; border-radius: 50%; filter: blur(60px); }
.cta-band::before { width: 360px; height: 360px; background: rgba(242,101,34,.30); top: -160px; right: -120px; }
.cta-band::after  { width: 320px; height: 320px; background: rgba(255,255,255,.10); bottom: -150px; left: -100px; }
.cta-band h2 { color: white; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-band .btn-primary { background: white; color: var(--primary-d); box-shadow: 0 14px 32px rgba(0,0,0,.22); }
.cta-band .btn-primary:hover { background: var(--accent); color: white; }

/* ============================================================
 * Footer (light theme)
 * ============================================================ */
.site-footer { background: var(--paper); color: var(--ink-soft); padding: 56px 0 20px; border-top: 1px solid var(--line); }
.site-footer h4 { color: var(--primary-d); font-size: .95rem; margin-bottom: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.site-footer a { color: var(--ink-soft); transition: color .2s; }
.site-footer a:hover { color: var(--accent); text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand strong { font-family: var(--font-disp); font-size: 1.3rem; color: var(--ink); }
.footer-brand p { color: var(--ink-soft); font-size: .94rem; max-width: 30ch; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; font-size: .92rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; color: var(--muted); font-size: .85rem; flex-wrap: wrap; }
/* Logo no longer needs the white pill background — already on white footer */
.footer-logo { background: transparent; padding: 0; }

/* ============================================================
 * Contact
 * ============================================================ */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 32px 24px 72px; max-width: var(--container); margin: 0 auto; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; color: var(--ink); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s; }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; border-color: var(--accent); }
.contact-card h3 { color: var(--primary-d); }

/* ============================================================
 * Misc
 * ============================================================ */
.empty-state { text-align: center; padding: 96px 24px; max-width: var(--container); margin: 0 auto; }
.empty-state h1 { font-size: 7rem; background: linear-gradient(135deg, var(--primary-d), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0; }

/* Reveal — pure CSS entrance, staggered via nth-child for groups */
.reveal { animation: fadeUp .7s var(--ease-out) both; }
.trust-grid .reveal:nth-child(1) { animation-delay: .05s; }
.trust-grid .reveal:nth-child(2) { animation-delay: .15s; }
.trust-grid .reveal:nth-child(3) { animation-delay: .25s; }
.trust-grid .reveal:nth-child(4) { animation-delay: .35s; }
.steps-grid .reveal:nth-child(1) { animation-delay: .1s; }
.steps-grid .reveal:nth-child(2) { animation-delay: .22s; }
.steps-grid .reveal:nth-child(3) { animation-delay: .34s; }

/* ============================================================
 * Proof strip (right under hero)
 * ============================================================ */
.proof-strip { padding: 18px 0 0; }
.proof-row {
  display: flex; align-items: center; justify-content: space-around; gap: 18px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px 28px; box-shadow: var(--shadow-sm); flex-wrap: wrap;
}
.proof-item { display: flex; flex-direction: column; align-items: center; min-width: 130px; }
.proof-item strong { font-family: var(--font-disp); font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 1.8rem); color: var(--primary-d); line-height: 1; }
.proof-item span { font-size: .82rem; color: var(--muted); margin-top: 4px; font-weight: 500; }
.proof-divider { width: 1px; height: 36px; background: var(--line); }
@media (max-width: 700px) { .proof-divider { display: none; } .proof-row { padding: 18px; gap: 14px; } .proof-item { min-width: 44%; } }

/* ============================================================
 * Testimonial section (with hero illustration on left)
 * ============================================================ */
.testimonial { padding: clamp(56px, 6vw, 96px) 0; background: linear-gradient(180deg, transparent 0%, var(--paper) 60%); }
.testimonial-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 60px; align-items: center; }
@media (max-width: 980px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial-body h2 { margin: 14px 0 18px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.testimonial-meta { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.testimonial-meta strong { display: block; color: var(--primary-d); font-family: var(--font-disp); font-size: 1.1rem; }
.testimonial-meta span { color: var(--muted); font-size: .9rem; }
.testimonial-visual { display: flex; justify-content: center; }

/* ============================================================
 * Blog hero (with bento on the right)
 * ============================================================ */
.blog-hero-bento { position: relative; padding: clamp(56px, 6vw, 96px) 0 28px; overflow: hidden; }
.blog-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; margin-top: 24px; }
@media (max-width: 1040px) { .blog-hero-grid { grid-template-columns: 1fr; } }
.blog-hero-copy h1 { margin: 16px 0 18px; animation: fadeUp .8s var(--ease-out) .15s both; }
.blog-hero-copy .lead { animation: fadeUp .8s var(--ease-out) .25s both; }
.blog-hero-copy .hero-actions { margin: 26px 0 0; animation: fadeUp .8s var(--ease-out) .35s both; }

.blog-bento { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; gap: 14px; animation: fadeInScale .9s var(--ease-out) .25s both; }
.bento-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: var(--shadow-sm);
  min-height: 100px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.bento-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.bento-lg   { grid-row: span 2; background: linear-gradient(135deg, var(--primary-d) 0%, var(--primary) 100%); color: white; border: 0; min-height: 220px; position: relative; overflow: hidden; }
.bento-lg::after { content: ''; position: absolute; top: -40px; right: -40px; width: 180px; height: 180px; background: rgba(242,101,34,.25); border-radius: 50%; filter: blur(40px); }
.bento-wide { grid-column: span 2; }
.bento-num  { font-family: var(--font-disp); font-weight: 800; font-size: clamp(2.2rem, 3.6vw, 3rem); line-height: 1; letter-spacing: -.02em; }
.bento-lg .bento-num { color: white; font-size: clamp(3rem, 5vw, 4.2rem); position: relative; z-index: 1; }
.bento-label { font-size: .8rem; color: var(--muted); font-weight: 600; margin-top: 8px; text-transform: uppercase; letter-spacing: .04em; }
.bento-lg .bento-label { color: rgba(255,255,255,.85); position: relative; z-index: 1; }
.bento-chiplabel { font-size: .75rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.bento-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bento-chips span { padding: 4px 10px; background: var(--cream); border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--ink-soft); }

/* ============================================================
 * Blog categories grid (visual)
 * ============================================================ */
.blog-cats { padding: clamp(48px, 5vw, 72px) 0; }
.blog-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .blog-cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .blog-cat-grid { grid-template-columns: 1fr; } }
.blog-cat-card {
  background: var(--paper); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 22px; color: var(--ink);
  display: flex; flex-direction: column; gap: 12px;
  transition: all .25s var(--ease);
  position: relative; overflow: hidden;
}
.blog-cat-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--cat-color, var(--primary-d)) 0%, transparent 80%);
  opacity: 0; transition: opacity .25s;
}
.blog-cat-card > * { position: relative; z-index: 1; }
.blog-cat-card:hover { transform: translateY(-3px); border-color: var(--cat-color, var(--primary-d)); box-shadow: var(--shadow); text-decoration: none; }
.blog-cat-card:hover::before { opacity: .12; }
.blog-cat-card.is-active { border-color: var(--cat-color, var(--primary-d)); background: color-mix(in srgb, var(--cat-color, var(--primary-d)) 6%, var(--paper)); }
.blog-cat-ico {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px; background: color-mix(in srgb, var(--cat-color, var(--primary-d)) 12%, transparent);
  color: var(--cat-color, var(--primary-d));
  transition: transform .3s var(--ease-spring);
}
.blog-cat-card:hover .blog-cat-ico { transform: scale(1.1) rotate(-6deg); }
.blog-cat-ico svg { width: 22px; height: 22px; }
.blog-cat-name { font-family: var(--font-disp); font-weight: 700; font-size: 1.02rem; line-height: 1.2; }
.blog-cat-count { font-size: .82rem; color: var(--muted); }

/* ============================================================
 * Blog featured (the most recent post — large bento)
 * ============================================================ */
.blog-featured-sec { padding: clamp(48px, 5vw, 80px) 0 32px; }
.blog-featured {
  display: grid; grid-template-columns: 6fr 5fr; gap: 0;
  background: var(--paper); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.blog-featured:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
@media (max-width: 900px) { .blog-featured { grid-template-columns: 1fr; } }
.blog-featured-visual { position: relative; overflow: hidden; min-height: 320px; }
.blog-featured-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.blog-featured:hover .blog-featured-visual img { transform: scale(1.04); }
.blog-featured-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--primary-l), var(--accent-l)); }
.blog-featured-body { padding: 36px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.blog-featured-body h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.18; margin: 0; }
.blog-featured-body p { color: var(--ink-soft); margin: 0; font-size: 1.02rem; }
.blog-featured-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.blog-featured-arrow { margin-left: auto; color: var(--accent); font-weight: 700; }

/* ============================================================
 * Blog ad band (between featured and grid)
 * ============================================================ */
.blog-ad-band {
  padding: clamp(28px, 4vw, 44px) 0;
  background: linear-gradient(135deg, var(--primary-d) 0%, var(--primary) 50%, var(--accent) 130%);
  position: relative; overflow: hidden;
}
.blog-ad-band::before { content: ''; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; background: rgba(242,101,34,.25); border-radius: 50%; filter: blur(50px); }
.blog-ad-row { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.blog-ad-band .btn-primary { background: white; color: var(--primary-d); }
.blog-ad-band .btn-primary:hover { background: var(--accent); color: white; }

/* 3-column blog grid */
.post-grid--blog3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .post-grid--blog3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid--blog3 { grid-template-columns: 1fr; } }

/* Empty state for blog */
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
