/* Blog and comparison pages (scripts/make_blog.py), in the landing's own
   language: the same nav and footer, a carbon hero with the app on a phone
   and the headline in two tones, ivory paper with the topographic lines,
   mono labels and champagne gold. Page-only classes are bl- prefixed; the
   shared ones (.nav, .phone, .eyebrow, .kicker, .cta, .store, .footer) come
   from style.css. */

/* ── Hero ──────────────────────────────────────────────── */
.bl-hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  background: radial-gradient(ellipse at 75% 20%, #1D2126 0%, var(--carbon) 60%);
  padding: 76px 0 84px;
}
.bl-hgrid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.bl-hgrid:not(:has(.bl-hvis)) { grid-template-columns: 1fr; }
.bl-hcopy { max-width: 42rem; }
.bl-hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.9rem); font-weight: 700; margin: 22px 0 22px; }
.bl-hero h1 em { font-style: normal; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bl-lead { font-size: clamp(1.08rem, 1.6vw, 1.22rem); line-height: 1.6; color: var(--on-dark-soft); max-width: 36rem; }
.bl-lead strong { color: var(--on-dark); font-weight: 600; }
.bl-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #7C8591; }
.bl-meta span + span::before { content: "·"; margin-right: 22px; color: var(--gold-3); }

.bl-hvis { position: relative; height: 460px; }
.bl-hvis .halo { position: absolute; inset: 6% 0; background: radial-gradient(circle, rgba(217,188,132,.26) 0%, transparent 65%); filter: blur(10px); }
.bl-hvis .phone { position: absolute; }
.bl-hvis .bl-front { width: 236px; left: 50%; top: 0; transform: translateX(-50%) rotate(-3deg); z-index: 2; animation: bl-float 7s ease-in-out infinite; }
.bl-hvis.duo .bl-front { left: 38%; }
.bl-hvis .bl-back { width: 206px; left: 66%; top: 56px; transform: translateX(-50%) rotate(6deg); opacity: .85; filter: saturate(.9); }
@keyframes bl-float { 50% { transform: translateX(-50%) rotate(-3deg) translateY(-10px); } }
.bl-hvis .phone { border-radius: 36px; border-width: 8px; }
/* A tall screenshot in a short stage: the phone is cut by the hero's edge,
   as on the landing's feature sections. */
.bl-hero { --fade: linear-gradient(180deg, #000 78%, transparent); }
.bl-hvis { -webkit-mask-image: var(--fade); mask-image: var(--fade); }

/* ── Paper ─────────────────────────────────────────────── */
.bl-paper {
  position: relative; isolation: isolate; padding: 84px 0 96px;
  background-color: var(--paper);
  background-image:
    radial-gradient(120% 70% at 80% -10%, rgba(217,188,132,.22) 0%, rgba(217,188,132,0) 60%),
    radial-gradient(90% 60% at -10% 110%, rgba(156,122,68,.08) 0%, rgba(156,122,68,0) 60%),
    linear-gradient(180deg, #F6F3EC 0%, var(--paper) 100%);
}
.bl-paper::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../img/topo.svg") 30% 20% / 1600px auto repeat; opacity: .07;
}
.bl-paper::before, .bl-cta::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(217,188,132,.55) 30%, rgba(217,188,132,.55) 70%, transparent);
}
.bl-more { padding-top: 64px; background: var(--paper-2); }
.bl-more::after { background-position: 75% 70%; }
.bl-col { max-width: 44rem; margin: 0 auto; }

/* ── Article text ──────────────────────────────────────── */
.bl-text { font-size: 1.08rem; line-height: 1.75; color: var(--ink-soft); }
.bl-text > :first-child { margin-top: 0; }
.bl-text p { margin: 0 0 18px; }
.bl-text h2 { font-size: clamp(1.6rem, 2.6vw, 2.05rem); color: var(--ink); margin: 60px 0 18px; }
.bl-text h2::before { content: ""; display: block; width: 44px; height: 2px; margin-bottom: 18px; background: var(--gold); border-radius: 2px; }
.bl-text > h2:first-child { margin-top: 0; }
.bl-text h3 { font-size: 1.28rem; color: var(--ink); margin: 36px 0 10px; letter-spacing: -.01em; }
.bl-text strong { color: var(--ink); font-weight: 600; }
.bl-text a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold-2); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.bl-text a:hover { text-decoration-color: var(--gold-3); }
.bl-text ul, .bl-text ol { margin: 0 0 22px; padding: 0; list-style: none; }
.bl-text ul li, .bl-text ol li { position: relative; padding-left: 30px; margin: 12px 0; }
.bl-text ul li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 14px; height: 8px; border-left: 2px solid var(--gold-3); border-bottom: 2px solid var(--gold-3); transform: rotate(-45deg); }
.bl-text ol { counter-reset: bl; }
.bl-text ol li { counter-increment: bl; }
.bl-text ol li::before { content: counter(bl, decimal-leading-zero); position: absolute; left: 0; top: .2em; font: 700 .78rem var(--mono); color: var(--gold-3); }
.bl-intro { margin-bottom: 52px; }

/* Tables: white card, carbon head, hairlines. */
.tw { overflow-x: auto; margin: 26px 0 30px; border-radius: 18px; border: 1px solid var(--line); background: var(--white); box-shadow: 0 24px 50px -32px rgba(11,13,16,.35); }
.bl-text table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.bl-text th, .bl-text td { text-align: left; vertical-align: top; padding: 14px 16px; border-top: 1px solid var(--line); }
.bl-text thead th { border-top: 0; background: var(--carbon-2); color: var(--on-dark); font: 700 .74rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.bl-text thead th:nth-child(2) { color: var(--gold-1); }
.bl-text td:first-child { color: var(--ink); font-weight: 600; }
.bl-text tbody tr:nth-child(even) td { background: #FBFAF7; }

/* Story blocks: a pull quote, a timeline, a strip of figures. */
.bl-quote {
  position: relative; overflow: hidden; margin: 44px 0; padding: 34px 32px 32px 32px; border-radius: var(--radius);
  background: radial-gradient(120% 140% at 85% 0%, #1E232A, var(--carbon) 60%);
  color: var(--on-dark); font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.3; letter-spacing: -.01em;
  box-shadow: var(--shadow);
}
.bl-quote::before { content: "“"; position: absolute; right: 22px; top: -18px; font-size: 7rem; line-height: 1; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .6; }
.bl-quote::after { content: ""; position: absolute; left: 0; top: 26px; bottom: 26px; width: 3px; background: var(--gold); border-radius: 0 3px 3px 0; }

.bl-timeline { margin: 28px 0 34px !important; padding: 0 0 0 34px !important; position: relative; counter-reset: none; }
.bl-timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold-2), rgba(156,122,68,.15)); border-radius: 2px; }
.bl-text .bl-timeline li { padding: 0; margin: 0 0 28px; }
.bl-text .bl-timeline li::before { content: ""; position: absolute; left: -33px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--gold-2); transform: none; box-shadow: 0 0 0 4px rgba(217,188,132,.18); }
.bl-tdate { display: block; font: 700 .76rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-3); }
.bl-timeline b { display: block; font-family: var(--display); font-size: 1.22rem; color: var(--ink); margin: 4px 0 4px; letter-spacing: -.01em; }
.bl-timeline p { margin: 0; }

.bl-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 30px 0 34px;
  background: var(--carbon-2); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.bl-stats div { padding: 26px 22px; border-left: 1px solid var(--line-dark); }
.bl-stats div:first-child { border-left: 0; }
.bl-stats b { display: block; font: 700 1.9rem/1.05 var(--mono); background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bl-stats span { display: block; margin-top: 10px; font-size: .9rem; line-height: 1.45; color: var(--on-dark-soft); }

/* ── Cards ─────────────────────────────────────────────── */
.bl-more .kicker { margin-bottom: 22px; }
.bl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.bl-card {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 50px -36px rgba(11,13,16,.4);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.bl-cover { position: relative; overflow: hidden; height: 230px; display: flex; justify-content: center; background: radial-gradient(ellipse at 70% 0%, #232831, var(--carbon) 70%); }
.bl-cover::after { content: ""; position: absolute; inset: 20% 15% -30%; background: radial-gradient(circle, rgba(217,188,132,.25), transparent 65%); pointer-events: none; }
.bl-cover .phone { width: 150px; margin-top: 30px; border-radius: 26px; border-width: 6px; z-index: 1; transform: rotate(-3deg); transition: transform .35s ease; }
.bl-cover-mark { align-items: center; }
.bl-cover-mark img { position: relative; z-index: 1; filter: drop-shadow(0 14px 30px rgba(217,188,132,.35)); }
.bl-cbody { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bl-ck { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-3); }
.bl-cbody b { font-family: var(--display); font-size: 1.3rem; line-height: 1.2; letter-spacing: -.01em; }
.bl-desc { color: var(--ink-soft); font-size: .96rem; line-height: 1.55; flex: 1; }
.bl-cbody em { font-style: normal; font-weight: 600; margin-top: 6px; display: inline-flex; gap: 8px; align-items: center; }
.bl-cbody em span { transition: transform .25s ease; color: var(--gold-3); }
@media (hover: hover) {
  .bl-card:hover { transform: translateY(-4px); border-color: rgba(217,188,132,.6); box-shadow: 0 34px 60px -30px rgba(11,13,16,.45); }
  .bl-card:hover .bl-cover .phone { transform: rotate(-1deg) translateY(-6px); }
  .bl-card:hover em span { transform: translateX(4px); }
}

/* ── CTA ───────────────────────────────────────────────── */
.bl-cta { padding: 110px 0; }
.bl-cta h2 { font-size: clamp(2rem, 4vw, 3rem); max-width: 40rem; margin: 0 auto; }
.bl-cta p { max-width: 38rem; margin-left: auto; margin-right: auto; }
.bl-cta .bl-cta-actions { margin-top: 30px; }
.bl-btn { padding: 15px 28px; font-size: 1rem; }
.bl-cta .badges { margin-top: 26px; }

/* Language links in the landing's EN | BG pill. */
.bl-langs a { display: inline-block; padding: 6px 11px; border-radius: 999px; font: 600 .75rem var(--mono); letter-spacing: .08em; text-decoration: none; color: var(--on-dark-soft); }
.bl-langs a[aria-current="true"] { background: var(--carbon-3); color: var(--gold-1); }
.bl-langs a:hover { color: var(--on-dark); }
.nav-links a[aria-current="page"] { color: var(--gold-1); }

@media (max-width: 1020px) {
  .bl-hgrid { grid-template-columns: 1fr; gap: 28px; }
  .bl-hvis { height: 340px; }
  .bl-hvis .bl-front { width: 190px; }
  .bl-hvis .bl-back { width: 170px; top: 44px; }
}
@media (max-width: 640px) {
  .bl-hero { padding: 48px 0 40px; }
  .bl-meta { font-size: .7rem; letter-spacing: .06em; gap: 6px 12px; }
  .bl-meta span + span::before { margin-right: 12px; }
  .bl-hvis { height: 280px; }
  .bl-hvis .bl-front { width: 160px; }
  .bl-hvis .bl-back { width: 140px; top: 36px; }
  .bl-paper { padding: 56px 0 64px; }
  .bl-text { font-size: 1.02rem; }
  .bl-text h2 { margin-top: 46px; }
  .bl-quote { padding: 28px 22px 26px 26px; }
  .bl-stats { grid-template-columns: 1fr 1fr; }
  .bl-stats div:nth-child(odd) { border-left: 0; }
  .bl-stats div:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .bl-grid { grid-template-columns: 1fr; }
  .bl-cta { padding: 80px 0; }
}
@media (prefers-reduced-motion: reduce) { .bl-hvis .bl-front { animation: none; } }
