/* ============================================================
   PAYZUM — Blog stylesheet (shared by post pages + listing/index)
   Mirrors the design tokens of index.html. Self-contained: link this
   from every /blog/ and /es/blog/ page. Cached immutably via _headers.
   ============================================================ */
:root {
  --bg: #070a12;
  --bg-soft: #0a0f1c;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.045);
  --surface-solid: #0e1424;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #eaeff9;
  --text-soft: #b3bdd2;
  --text-muted: #79859e;

  --primary: #3d82ff;
  --primary-bright: #5b97ff;
  --primary-deep: #2a64e6;
  --accent: #5ef0a8;
  --accent-deep: #18c97f;
  --danger: #ff6b6b;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;

  --maxw: 1180px;
  --maxw-prose: 760px;
  --gutter: clamp(20px, 5vw, 40px);

  --font-display: "Clash Display", "Satoshi", system-ui, sans-serif;
  --font-body: "Satoshi", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60vw 60vw at 78% -8%, rgba(61, 130, 255, 0.18), transparent 60%),
    radial-gradient(48vw 48vw at 8% 12%, rgba(94, 240, 168, 0.08), transparent 55%),
    radial-gradient(70vw 50vw at 50% 108%, rgba(61, 130, 255, 0.08), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.020) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.020) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120vw 100vh at 50% 0%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(120vw 100vh at 50% 0%, #000 35%, transparent 78%);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }
:focus-visible { outline: 2px solid var(--primary-bright); outline-offset: 3px; border-radius: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  color: #061021;
  background: linear-gradient(180deg, var(--primary-bright), var(--primary));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 10px 30px -10px rgba(61, 130, 255, .7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 18px 40px -12px rgba(61, 130, 255, .85); }
.btn-ghost { color: var(--text); background: var(--surface-2); border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); transform: translateY(-2px); }
.btn-accent { color: #042316; background: linear-gradient(180deg, var(--accent), var(--accent-deep)); box-shadow: 0 10px 30px -12px rgba(94, 240, 168, .7); }
.btn-accent:hover { transform: translateY(-2px); }
.btn-lg { padding: 16px 28px; font-size: 16.5px; border-radius: 14px; }

/* ---------- Nav (shared with site) ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50; background: transparent;
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s, backdrop-filter .3s;
}
header.nav.scrolled {
  border-color: var(--border); background: rgba(7, 10, 18, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 24px; margin-left: 8px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--text-soft); transition: color .18s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-cta .signin { font-size: 15px; font-weight: 500; color: var(--text-soft); padding: 9px 6px; }
.nav-cta .signin:hover { color: var(--text); }
.nav-toggle {
  display: none; margin-left: auto; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; width: 42px; height: 42px; color: var(--text); cursor: pointer;
  align-items: center; justify-content: center;
}

/* ---------- Language switcher ---------- */
.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--surface); }
.lang-switch a { padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--text-muted); font-family: var(--font-mono); letter-spacing: .04em; transition: background .2s, color .2s; }
.lang-switch a.active { background: var(--primary); color: #061021; }
.lang-switch a:not(.active):hover { color: var(--text); background: var(--surface-2); }

/* ============================================================
   Blog listing / index
   ============================================================ */
.blog-hero { padding: clamp(96px, 14vh, 150px) 0 30px; }
.blog-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono);
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); padding: 7px 14px; border: 1px solid rgba(94, 240, 168, .25);
  border-radius: 999px; background: rgba(94, 240, 168, .06);
}
.blog-hero h1 { font-size: clamp(34px, 5.2vw, 56px); margin-top: 20px; }
.blog-hero p { color: var(--text-soft); font-size: 18px; margin-top: 16px; max-width: 600px; }
.blog-hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding-bottom: 40px; margin-top: 44px; }
.post-card {
  display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow: hidden; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.post-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: 0 30px 60px -40px rgba(0,0,0,.8); }
.post-card .thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #0e1424, #10182b); border-bottom: 1px solid var(--border); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card.no-thumb { border-top: 2px solid var(--primary); }
.post-card.no-thumb .body { padding-top: 26px; }
.post-card .vertical-tag {
  align-self: flex-start; font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--primary-bright);
  border: 1px solid rgba(61, 130, 255, .3); background: rgba(61, 130, 255, .07);
  padding: 5px 11px; border-radius: 999px; margin-bottom: 14px;
}
.post-card h2 { font-size: 21px; line-height: 1.18; }
.post-card h2 a { transition: color .18s; }
.post-card:hover h2 a { color: var(--primary-bright); }
.post-card .excerpt { color: var(--text-soft); font-size: 15px; margin-top: 12px; line-height: 1.55; flex: 1; }
.post-card .meta { display: flex; align-items: center; gap: 12px; margin-top: 18px; color: var(--text-muted); font-size: 13px; }
.post-card .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); }

.empty-state { margin: 60px 0; padding: 48px; border: 1px dashed var(--border-strong); border-radius: var(--radius); text-align: center; color: var(--text-muted); }

/* ---------- Pagination ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 30px 0 90px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text-soft);
  font-weight: 600; font-size: 15px; transition: border-color .2s, color .2s, background .2s;
}
.pagination a:hover { border-color: var(--border-strong); color: var(--text); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #061021; }
.pagination .disabled { opacity: .35; pointer-events: none; }

/* ============================================================
   Article (post page)
   ============================================================ */
.post-shell { padding: clamp(90px, 12vh, 130px) 0 40px; }
.breadcrumb { font-size: 13.5px; color: var(--text-muted); margin-bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; font-family: var(--font-mono); }
.breadcrumb a:hover { color: var(--text-soft); }
.post-head { max-width: var(--maxw-prose); margin-inline: auto; }
.post-head .vertical-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--primary-bright);
  border: 1px solid rgba(61, 130, 255, .3); background: rgba(61, 130, 255, .07);
  padding: 5px 11px; border-radius: 999px; margin-bottom: 18px;
}
.post-head h1 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.07; }
.post-head .post-meta { display: flex; align-items: center; gap: 12px; margin-top: 22px; color: var(--text-muted); font-size: 14px; flex-wrap: wrap; }
.post-head .post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); }

.post-figure { max-width: var(--maxw); margin: 40px auto 0; }
.post-figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }

/* Prose */
.prose { max-width: var(--maxw-prose); margin: 48px auto 0; font-size: 17.5px; color: var(--text-soft); }
.prose > * + * { margin-top: 22px; }
.prose h2 { font-size: clamp(24px, 3.2vw, 32px); color: var(--text); margin-top: 52px; }
.prose h3 { font-size: clamp(19px, 2.4vw, 23px); color: var(--text); margin-top: 38px; }
.prose p { line-height: 1.72; }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { color: var(--primary-bright); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(91,151,255,.4); }
.prose a:hover { text-decoration-color: var(--primary-bright); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-top: 9px; line-height: 1.65; }
.prose li::marker { color: var(--primary-bright); }
.prose blockquote { border-left: 3px solid var(--primary); padding: 4px 0 4px 22px; color: var(--text); font-size: 18px; }
.prose code { font-family: var(--font-mono); font-size: 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; color: var(--accent); }
.prose pre { background: #0b1120; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 20px; overflow-x: auto; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.6; }
.prose pre code { background: none; border: 0; padding: 0; color: var(--text-soft); }
.prose img { border-radius: var(--radius-sm); border: 1px solid var(--border); margin-inline: auto; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }

/* Answer box (featured-snippet) */
.answer-box {
  border: 1px solid var(--border-strong); border-left: 3px solid var(--accent); border-radius: var(--radius-sm);
  background: var(--surface); padding: 22px 24px; color: var(--text); font-size: 18px; line-height: 1.6;
}
.answer-box strong { color: var(--accent); }

/* Key takeaways */
.takeaways { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); padding: 22px 26px; }
.takeaways h4 { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.takeaways ul { margin: 0; padding-left: 20px; }
.takeaways li { margin-top: 8px; color: var(--text-soft); }

/* Comparison table */
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; min-width: 560px; margin: 0; }
.prose th, .prose td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--border); font-size: 15px; vertical-align: top; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose thead th { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; color: var(--text); }
.prose thead th:first-child { color: var(--text-muted); font-family: var(--font-body); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; }
.prose td:first-child { color: var(--text-soft); font-weight: 600; }

/* CTA boxes (lead-gen) */
.cta-box {
  max-width: var(--maxw-prose); margin: 40px auto; border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(61,130,255,.10), rgba(61,130,255,.03)); padding: 30px 32px;
}
.cta-box.accent { background: linear-gradient(180deg, rgba(94,240,168,.10), rgba(94,240,168,.03)); }
.cta-box h3 { font-size: 22px; color: var(--text); }
.cta-box p { color: var(--text-soft); font-size: 16px; margin-top: 10px; line-height: 1.6; }
.cta-box .cta-actions { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta-box .trust { color: var(--text-muted); font-size: 13px; margin-top: 14px; font-family: var(--font-mono); }

/* Closing CTA + booking embed */
.booking-close { max-width: var(--maxw-prose); margin: 60px auto 0; }
.booking-embed { margin-top: 24px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface-solid); min-height: 700px; }
.booking-fallback { margin-top: 16px; color: var(--text-muted); font-size: 14px; }

/* FAQ */
.faq { max-width: var(--maxw-prose); margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq summary { cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--text); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary-bright); font-size: 22px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--text-soft); font-size: 16px; margin-top: 12px; line-height: 1.65; }

.disclaimer { max-width: var(--maxw-prose); margin: 40px auto 0; color: var(--text-muted); font-size: 13.5px; font-style: italic; border-top: 1px solid var(--border); padding-top: 20px; }

/* Related / back link */
.post-foot-nav { max-width: var(--maxw-prose); margin: 56px auto 0; padding-top: 28px; border-top: 1px solid var(--border); }

/* ============================================================
   Footer (shared with site)
   ============================================================ */
footer { padding: 70px 0 40px; border-top: 1px solid var(--border); margin-top: 60px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand img { height: 26px; margin-bottom: 16px; }
.foot-brand p { color: var(--text-muted); font-size: 14.5px; max-width: 300px; }
.foot-social { display: flex; gap: 10px; margin-top: 20px; }
.foot-social a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; color: var(--text-soft); transition: color .2s, border-color .2s, transform .2s; }
.foot-social a:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-2px); }
.foot-social svg { width: 17px; height: 17px; }
.foot-col h5 { font-family: var(--font-body); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.foot-col ul { margin: 0; padding: 0; }
.foot-col ul li { list-style: none; margin-bottom: 11px; }
.foot-col ul a { color: var(--text-soft); font-size: 15px; transition: color .18s; }
.foot-col ul a:hover { color: var(--text); }
.foot-bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-muted); font-size: 13.5px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .signin { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { margin-left: auto; }
  header.nav.open .nav-links {
    display: flex; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column;
    background: rgba(7,10,18,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-block: 1px solid var(--border); padding: 12px var(--gutter) 18px; gap: 4px;
  }
  header.nav.open .nav-links a { padding: 10px 0; width: 100%; }
  .post-grid { grid-template-columns: 1fr; }
  .blog-hero-row { align-items: flex-start; }
  body { font-size: 16px; }
}
