/* ============================================================
   E-invoicing UAE deadline-calculator landing — combined stylesheet
   Part A: BGA Design System tokens (type & color)
   Part B: landing component system (shared with the QFZP landing)
   + e-invoicing calculator/timeline additions (see end of file).
   Ported from the BGA Design handoff bundle (colors_and_type.css +
   landing.css) — font paths point at fonts/.
   ============================================================ */

/* ============================================================
   PART A — Type & Color Tokens
   Brand typeface: Century Gothic (client-provided), "BGA Gothic".
   Paired with Inter Tight for body/UI and IBM Plex Mono for labels.
   ============================================================ */
@font-face {
  font-family: "BGA Gothic";
  src: url("fonts/GOTHIC.TTF") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "BGA Gothic";
  src: url("fonts/GOTHICI.TTF") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "BGA Gothic";
  src: url("fonts/GOTHICB.TTF") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "BGA Gothic";
  src: url("fonts/GOTHICBI.TTF") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  /* ---- Brand Palette (from logo) ---- */
  --bga-blue-900: #001B6E;
  --bga-blue-800: #0028A8;
  --bga-blue-700: #0039D1;
  --bga-blue-600: #0057FF;   /* primary disc */
  --bga-blue-500: #2F73FF;
  --bga-blue-100: #E5EEFF;
  --bga-cyan:     #2BD4FF;   /* arrow accent */
  --bga-cyan-200: #B8F0FF;
  --bga-ink:      #0A0F2C;
  --bga-paper:    #F5F2EB;
  --bga-paper-2:  #ECE6D6;
  --bga-sand:     #D9CDB0;

  /* ---- Type families ---- */
  --font-display: "BGA Gothic", "Century Gothic", "Futura", system-ui, sans-serif;
  --font-body:    "Inter Tight", "Inter", system-ui, sans-serif;
  --font-arabic:  "IBM Plex Sans Arabic", "Noto Kufi Arabic", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;

  /* ---- Type scale (1.25 major-third, display-led) ---- */
  --fs-display-xl: 200px;
  --fs-display-l:  144px;
  --fs-display-m:  96px;
  --fs-h1:         64px;
  --fs-h2:         48px;
  --fs-h3:         32px;
  --fs-h4:         24px;
  --fs-body-l:     19px;
  --fs-body:       16px;
  --fs-caption:    13px;
  --fs-micro:      11px;

  /* ---- Tracking (Century Gothic runs wide; tighten at display) ---- */
  --tr-display:   -0.02em;
  --tr-h:         -0.01em;
  --tr-body:       0;
  --tr-caption:    0.14em;   /* for all-caps labels */
}

/* ============================================================
   PART B — QFZP Landing component system
   Calm, editorial, practical "risk-check" aesthetic.
   ============================================================ */

:root {
  /* risk semantics — muted, calm, warm-leaning */
  --risk-low:   #2E7D5B;
  --risk-low-bg: #E4F0E9;
  --risk-mid:   #B07D1E;
  --risk-mid-bg: #F6ECD4;
  --risk-high:  #BC4A3D;
  --risk-high-bg: #F6E2DD;

  --line:       rgba(10,15,44,.12);
  --line-2:     rgba(10,15,44,.08);
  --ink-60:     rgba(10,15,44,.6);
  --ink-72:     rgba(10,15,44,.74);
  --ink-45:     rgba(10,15,44,.45);

  --card-shadow: 0 1px 0 rgba(10,15,44,.04), 0 24px 50px -34px rgba(10,15,44,.32);
  --card-shadow-sm: 0 1px 0 rgba(10,15,44,.03), 0 12px 28px -22px rgba(10,15,44,.28);

  --maxw: 1180px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bga-paper);
  color: var(--bga-ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* subtle paper texture via layered gradients, very faint */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 600px at 88% -8%, rgba(0,87,255,.05), transparent 60%),
    radial-gradient(900px 520px at -6% 6%, rgba(43,212,255,.05), transparent 60%);
}

a { color: inherit; }
button { font-family: inherit; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.section { padding: 72px 0; }
.section-tight { padding: 52px 0; }

.sec-head { margin-bottom: 34px; max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-60);
  margin: 0 0 16px;
}
.eyebrow .num { color: var(--bga-blue-700); }
.eyebrow .tick { width: 7px; height: 7px; border-radius: 50%; background: var(--bga-cyan); box-shadow: 0 0 0 4px rgba(43,212,255,.2); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--bga-ink); margin: 0; }
.h-sec {
  font-size: clamp(30px, 4.6vw, 46px); line-height: 1.04; letter-spacing: -.015em;
  text-wrap: balance;
}
.h-sec .i { font-style: italic; font-weight: 400; color: var(--bga-blue-600); }
.sec-sub { color: var(--ink-72); font-size: 18px; line-height: 1.6; margin: 16px 0 0; max-width: 64ch; text-wrap: pretty; }

.kicker { /* small all-caps label inside cards */
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-45);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
  padding: 15px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; line-height: 1;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--bga-blue-600); color: #fff; }
.btn-primary:hover { background: var(--bga-blue-700); }
.btn-primary .arrow { transition: transform .15s ease; }
.btn-primary:hover .arrow { transform: translate(2px,-2px); }
.btn-ghost { background: transparent; color: var(--bga-ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--bga-ink); }
.btn-dark { background: var(--bga-ink); color: #fff; }
.btn-dark:hover { background: #1a2150; }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 30px; font-size: 17px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-primary .arrow { display: inline-flex; }

.link-inline {
  font-weight: 600; color: var(--bga-blue-700); text-decoration: none;
  border-bottom: 1.5px solid rgba(0,57,209,.3); padding-bottom: 1px;
}
.link-inline:hover { border-color: var(--bga-blue-700); }

/* ---------- Header ---------- */
/* ---------- Top utility bar (cross-site / other calculators) ---------- */
.topbar {
  background: var(--bga-ink);
  color: rgba(255,255,255,.72);
  font-size: 13px;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 38px; padding-top: 4px; padding-bottom: 4px;
}
.tb-lead {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,.5); white-space: nowrap;
}
.tb-links {
  display: flex; align-items: center; gap: 20px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.tb-links::-webkit-scrollbar { display: none; }
.tb-link {
  color: rgba(255,255,255,.72); text-decoration: none; white-space: nowrap;
  font-weight: 500; transition: color .15s ease;
}
a.tb-link:hover { color: #fff; }
.tb-link.is-current { color: #fff; font-weight: 600; cursor: default; }
@media (max-width: 560px) {
  .tb-lead { display: none; }
  .topbar-inner { justify-content: flex-start; }
}

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(245,242,235,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.site-header.scrolled { box-shadow: 0 8px 24px -20px rgba(10,15,44,.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 36px; height: 36px; display: block; }
.brand .word { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: .01em; color: var(--bga-ink); }
.brand .sub { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-45); display: block; margin-top: 1px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink-72); text-decoration: none; }
.nav a:hover { color: var(--bga-ink); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .phone { font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; color: var(--ink-72); text-decoration: none; }
.header-cta .phone:hover { color: var(--bga-ink); }

@media (max-width: 960px) { .nav { display: none; } }
@media (max-width: 560px) { .header-cta .phone { display: none; } .header-cta .btn { display: none; } .brand .word { font-size: 19px; } }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 64px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.hero h1 {
  font-size: clamp(34px, 5.6vw, 60px); line-height: 1.02; letter-spacing: -.02em;
  margin: 20px 0 0; text-wrap: balance;
}
.hero h1 .i { font-style: italic; font-weight: 400; color: var(--bga-blue-600); }
.hero-sub { font-size: 19px; line-height: 1.6; color: var(--ink-72); margin: 22px 0 0; max-width: 56ch; text-wrap: pretty; }
.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 30px 0 0; }
.hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 22px; margin: 30px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-meta .item { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--ink-72); line-height: 1.35; }
.hero-meta .item svg { color: var(--bga-blue-600); flex: none; margin-top: 1px; }
@media (max-width: 880px) { .hero-meta { grid-template-columns: 1fr; } }

.eyebrow-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--bga-blue-800); background: var(--bga-blue-100); border: 1px solid rgba(0,87,255,.14);
  padding: 6px 11px; border-radius: 999px;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Mini risk-check card ---------- */
.riskcard {
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line-2);
  box-shadow: var(--card-shadow); padding: 26px 24px; position: sticky; top: 88px;
}
.riskcard .rc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.riskcard .rc-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.riskcard .rc-step { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--ink-45); }
.riskcard .rc-desc { font-size: 14.5px; color: var(--ink-72); margin: 8px 0 18px; line-height: 1.5; }

.rc-q { padding: 16px 0; border-top: 1px solid var(--line-2); }
.rc-q:first-of-type { border-top: none; padding-top: 4px; }
.rc-q .q-label { font-size: 15.5px; font-weight: 600; color: var(--bga-ink); margin-bottom: 12px; display: block; line-height: 1.4; }
.rc-toggle { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.rc-toggle button {
  border: 1px solid var(--line); background: #fff; color: var(--ink-72);
  border-radius: 10px; padding: 11px 8px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .14s ease;
}
.rc-toggle button:hover { border-color: var(--bga-blue-500); }
.rc-toggle button.sel { background: var(--bga-blue-600); border-color: var(--bga-blue-600); color: #fff; }
.rc-toggle button.sel.neu { background: var(--bga-ink); border-color: var(--bga-ink); }

.rc-progress { height: 5px; border-radius: 999px; background: var(--line-2); overflow: hidden; margin: 6px 0 0; }
.rc-progress > span { display: block; height: 100%; background: var(--bga-blue-600); border-radius: 999px; transition: width .35s cubic-bezier(.2,.7,.2,1); }

.rc-foot { margin-top: 20px; }

/* result panel */
.rc-result { margin-top: 6px; }
.rc-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.rc-badge .lvl-dot { width: 9px; height: 9px; border-radius: 50%; }
.lvl-low  { background: var(--risk-low-bg);  color: var(--risk-low); }
.lvl-low .lvl-dot { background: var(--risk-low); }
.lvl-mid  { background: var(--risk-mid-bg);  color: var(--risk-mid); }
.lvl-mid .lvl-dot { background: var(--risk-mid); }
.lvl-high { background: var(--risk-high-bg); color: var(--risk-high); }
.lvl-high .lvl-dot { background: var(--risk-high); }

.rc-result h4 { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; margin: 14px 0 6px; }
.rc-result p { font-size: 14.5px; color: var(--ink-72); line-height: 1.55; margin: 0 0 14px; }
.rc-flags { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.rc-flags li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-72); }
.rc-flags li svg { flex: none; margin-top: 2px; color: var(--risk-mid); }
.rc-reset { background: none; border: none; color: var(--ink-45); font-size: 13px; cursor: pointer; padding: 8px 0 0; text-decoration: underline; }
.rc-reset:hover { color: var(--bga-ink); }
.rc-note { font-size: 12px; color: var(--ink-45); margin: 12px 0 0; line-height: 1.5; }

/* ---------- Alert / fact block ---------- */
.alert {
  background: var(--bga-ink); color: #fff; border-radius: var(--radius-lg);
  padding: 44px 44px; position: relative; overflow: hidden;
}
.alert::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px;
  background: radial-gradient(circle at center, rgba(43,212,255,.16), transparent 70%);
  pointer-events: none;
}
.alert .a-grid { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: start; position: relative; }
.alert .a-icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(43,212,255,.14); display: flex; align-items: center; justify-content: center; color: var(--bga-cyan); flex: none; }
.alert .kicker { color: var(--bga-cyan); margin-bottom: 12px; }
.alert h2 { color: #fff; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }
.alert p { color: rgba(255,255,255,.78); font-size: 17px; line-height: 1.62; margin: 16px 0 0; max-width: 70ch; }
.alert p .hl { color: #fff; font-weight: 600; }
.alert-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0 0; }
.alert-facts .af-item { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 16px 16px; }
.alert-facts .af-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--bga-cyan); }
.alert-facts .af-v { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; color: #fff; margin: 7px 0 6px; line-height: 1.15; }
.alert-facts .af-d { font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.66); }
@media (max-width: 760px) { .alert-facts { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .alert { padding: 32px 24px; } .alert .a-grid { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--card-shadow-sm);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--card-shadow); border-color: rgba(0,87,255,.18); }
.card .c-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--bga-blue-700); margin-bottom: 14px; }
.card .c-ico { width: 42px; height: 42px; border-radius: 11px; background: var(--bga-blue-100); display: flex; align-items: center; justify-content: center; color: var(--bga-blue-700); margin-bottom: 16px; }
.card h3 { font-family: var(--font-body); font-weight: 600; font-size: 17.5px; line-height: 1.35; letter-spacing: -.005em; margin: 0; }
.card p { font-size: 14.5px; color: var(--ink-72); line-height: 1.55; margin: 8px 0 0; }

/* ---------- Checklist (what we check) ---------- */
.checkwrap { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: var(--card-shadow-sm); overflow: hidden; }
.checklist { display: grid; grid-template-columns: repeat(3, 1fr); }
.checklist .ci {
  display: flex; gap: 13px; align-items: flex-start; padding: 22px 22px;
  border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
}
.checklist .ci .cbox { width: 24px; height: 24px; border-radius: 7px; background: var(--bga-blue-100); color: var(--bga-blue-700); display: flex; align-items: center; justify-content: center; flex: none; margin-top: 1px; }
.checklist .ci .ctxt { display: block; font-size: 15.5px; font-weight: 500; line-height: 1.4; }
.checklist .ci .csub { display: block; font-size: 13px; color: var(--ink-45); margin-top: 3px; font-weight: 400; }
@media (max-width: 880px) { .checklist { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .checklist { grid-template-columns: 1fr; } .checklist .ci { border-right: none; } }

/* ---------- Two-column prepare ---------- */
.prep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.prep-col { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: 30px 28px; box-shadow: var(--card-shadow-sm); }
.prep-col .pc-tag { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--bga-blue-700); margin-bottom: 18px; }
.prep-col .pc-tag .d { width: 8px; height: 8px; border-radius: 50%; background: var(--bga-blue-600); }
.prep-col.alt .pc-tag { color: #0f7a55; }
.prep-col.alt .pc-tag .d { background: #1c9b6c; }
.prep-col h3 { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -.01em; margin-bottom: 18px; }
.prep-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.prep-list li { display: flex; gap: 13px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line-2); font-size: 15.5px; color: var(--ink-72); line-height: 1.45; }
.prep-list li:first-child { border-top: none; }
.prep-list li svg { flex: none; margin-top: 2px; color: var(--bga-blue-600); }
.prep-col.alt .prep-list li svg { color: #1c9b6c; }
@media (max-width: 760px) { .prep-grid { grid-template-columns: 1fr; } }

/* ---------- Documents accordion / grid ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.doc-item {
  background: #fff; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden;
}
.doc-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; font-size: 16px; font-weight: 600; color: var(--bga-ink);
}
.doc-q .dq-ico { width: 32px; height: 32px; border-radius: 9px; background: var(--bga-paper-2); display: flex; align-items: center; justify-content: center; color: var(--bga-blue-700); flex: none; }
.doc-q .dq-chev { margin-left: auto; color: var(--ink-45); transition: transform .2s ease; flex: none; }
.doc-item.open .dq-chev { transform: rotate(180deg); }
.doc-a { overflow: hidden; animation: accFade .22s ease; }
.doc-a .inner { padding: 14px 20px 18px 66px; font-size: 14.5px; color: var(--ink-72); line-height: 1.55; }
@keyframes accFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 620px) { .doc-grid { grid-template-columns: 1fr; } .doc-a .inner { padding-left: 20px; } }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; gap: 4px; }
.tl-step { display: grid; grid-template-columns: 200px 1fr; gap: 30px; padding: 0 0 8px; position: relative; }
.tl-step .tl-when { padding: 22px 0; }
.tl-step .tl-when .when-tag { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--bga-blue-700); background: var(--bga-blue-100); padding: 6px 12px; border-radius: 999px; }
.tl-step .tl-body { padding: 22px 0 22px 34px; border-left: 2px solid var(--line); position: relative; }
.tl-step:last-child .tl-body { border-left-color: transparent; }
.tl-step .tl-body::before { content: ""; position: absolute; left: -8px; top: 26px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--bga-blue-600); }
.tl-step:last-child .tl-body::before { background: var(--bga-blue-600); }
.tl-step .tl-body h3 { font-family: var(--font-body); font-weight: 600; font-size: 18px; letter-spacing: -.005em; }
.tl-step .tl-body p { font-size: 15px; color: var(--ink-72); margin: 6px 0 0; line-height: 1.55; }
@media (max-width: 620px) {
  .tl-step { grid-template-columns: 1fr; gap: 0; }
  .tl-step .tl-when { padding: 16px 0 0 34px; }
  .tl-step .tl-body { padding-top: 8px; }
}

/* ---------- Packages ---------- */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.pkg {
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: 30px 26px;
  display: flex; flex-direction: column; box-shadow: var(--card-shadow-sm);
  transition: transform .14s ease, box-shadow .14s ease;
  height: 100%;
}
.pkg:hover { transform: translateY(-3px); box-shadow: var(--card-shadow); }
.pkg.feature { background: var(--bga-ink); color: #fff; border-color: var(--bga-ink); }
.pkg .pk-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: var(--bga-blue-700); margin-bottom: 14px; }
.pkg.feature .pk-num { color: var(--bga-cyan); }
.pkg h3 { font-family: var(--font-display); font-weight: 700; font-size: 23px; letter-spacing: -.01em; line-height: 1.1; }
.pkg.feature h3 { color: #fff; }
.pkg .pk-for { font-size: 14.5px; color: var(--ink-72); line-height: 1.55; margin: 14px 0 20px; flex: 1; }
.pkg.feature .pk-for { color: rgba(255,255,255,.74); }
.pkg .pk-list { list-style: none; margin: 0 0 22px; padding: 18px 0 0; border-top: 1px solid var(--line-2); display: grid; gap: 11px; }
.pkg.feature .pk-list { border-top-color: rgba(255,255,255,.16); }
.pkg .pk-list li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-72); line-height: 1.4; }
.pkg.feature .pk-list li { color: rgba(255,255,255,.82); }
.pkg .pk-list li svg { flex: none; margin-top: 1px; color: var(--bga-blue-600); }
.pkg.feature .pk-list li svg { color: var(--bga-cyan); }
.pkg .pk-price { font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; color: var(--ink-45); margin-bottom: 16px; }
.pkg.feature .pk-price { color: rgba(255,255,255,.6); }
.pkg .pk-badge { position: absolute; }
.pkg-wrap { position: relative; }
.ribbon { position: absolute; top: 18px; right: 18px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--bga-ink); background: var(--bga-cyan); padding: 5px 11px; border-radius: 999px; z-index: 2; }
@media (max-width: 880px) { .pkg-grid { grid-template-columns: 1fr; } }

/* ---------- Trust ---------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust .t-item { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--card-shadow-sm); }
.trust .t-item .t-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--bga-blue-100); color: var(--bga-blue-700); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.trust .t-item h3 { font-family: var(--font-body); font-weight: 600; font-size: 17px; }
.trust .t-item p { font-size: 14.5px; color: var(--ink-72); line-height: 1.55; margin: 8px 0 0; }
@media (max-width: 880px) { .trust { grid-template-columns: 1fr; } }

/* ---------- Free Zone strip ---------- */
.fzstrip { text-align: center; }
.fzstrip .fz-label { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-45); margin: 0 0 26px; }
.fzstrip .fz-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 16px; }
.fzstrip .fz-mark {
  font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.01em;
  color: var(--bga-ink); opacity: .42; padding: 12px 20px; border: 1px solid var(--line-2);
  border-radius: 12px; background: rgba(255,255,255,.45); line-height: 1; white-space: nowrap;
  transition: opacity .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
}
.fzstrip .fz-mark:hover { opacity: 1; color: var(--bga-blue-700); border-color: rgba(0,87,255,.22); transform: translateY(-1px); }
.fzstrip .fz-mark .sub { font-family: var(--font-body); font-weight: 500; font-size: 13px; letter-spacing: 0; opacity: .7; margin-left: 7px; }
.fzstrip .fz-note { font-size: 13px; color: var(--ink-45); margin: 22px auto 0; max-width: 64ch; line-height: 1.55; }
@media (max-width: 560px) { .fzstrip .fz-mark { font-size: 18px; padding: 10px 15px; } }

/* ---------- Lead form ---------- */
.formband { background: var(--bga-blue-900); border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.formband::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 400px at 90% 0%, rgba(43,212,255,.16), transparent 60%), radial-gradient(700px 360px at 0% 100%, rgba(0,87,255,.3), transparent 60%); pointer-events: none; }
.form-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; position: relative; }
.form-aside { padding: 46px 42px; color: #fff; }
.form-aside .kicker { color: var(--bga-cyan); margin-bottom: 14px; }
.form-aside h2 { color: #fff; font-size: clamp(26px, 3.2vw, 34px); line-height: 1.08; letter-spacing: -.015em; }
.form-aside .fa-sub { color: rgba(255,255,255,.78); font-size: 16px; line-height: 1.6; margin: 16px 0 26px; }
.form-aside .fa-list { list-style: none; margin: 0; padding: 26px 0 0; border-top: 1px solid rgba(255,255,255,.16); display: grid; gap: 14px; }
.form-aside .fa-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: rgba(255,255,255,.82); line-height: 1.5; }
.form-aside .fa-list li svg { flex: none; margin-top: 2px; color: var(--bga-cyan); }

.form-card { background: #fff; padding: 38px 38px; }
.form-steps { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; }
.form-steps .st { flex: 1; height: 5px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.form-steps .st > span { display: block; height: 100%; width: 0; background: var(--bga-blue-600); border-radius: 999px; transition: width .3s ease; }
.form-steps .st.done > span, .form-steps .st.active > span { width: 100%; }
.form-step-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-45); margin-bottom: 18px; }
.form-step-label b { color: var(--bga-ink); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--bga-ink); }
.field label .opt { font-weight: 400; color: var(--ink-45); font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 15.5px; color: var(--bga-ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(10,15,44,.34); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--bga-blue-600); box-shadow: 0 0 0 3px rgba(0,87,255,.12); }
.field textarea { resize: vertical; min-height: 84px; }
.field.err input, .field.err select, .field.err textarea { border-color: var(--risk-high); box-shadow: 0 0 0 3px rgba(188,74,61,.1); }
.field .err-msg { color: var(--risk-high); font-size: 12.5px; margin-top: 6px; display: none; }
.field.err .err-msg { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

.seg { display: flex; gap: 8px; }
.seg button { flex: 1; border: 1px solid var(--line); background: #fff; color: var(--ink-72); border-radius: 10px; padding: 11px 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .14s ease; }
.seg button:hover { border-color: var(--bga-blue-500); }
.seg button.sel { background: var(--bga-blue-600); border-color: var(--bga-blue-600); color: #fff; }

.form-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 26px; }
.form-micro { font-size: 12.5px; color: var(--ink-45); line-height: 1.5; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.form-consent { font-size: 12px; color: var(--ink-45); line-height: 1.5; margin: 10px 0 0; }
.form-consent a { color: var(--bga-blue-700); text-decoration: underline; }
.form-consent a:hover { color: var(--bga-blue-600); }

/* inline submit status line under the form nav */
.form-status { font-size: 13.5px; line-height: 1.45; margin-top: 14px; min-height: 1em; }
.form-status.pending { color: var(--ink-60); }
.form-status.error { color: var(--risk-high); }
.form-status.ok { color: var(--risk-low); }

.form-success { text-align: center; padding: 30px 10px; }
.form-success .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--risk-low-bg); color: var(--risk-low); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.form-success h3 { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -.01em; margin-bottom: 10px; }
.form-success p { font-size: 15.5px; color: var(--ink-72); line-height: 1.6; max-width: 44ch; margin: 0 auto; }

@media (max-width: 820px) { .form-grid { grid-template-columns: 1fr; } .form-aside { padding: 36px 28px; } .form-card { padding: 30px 26px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 18px; padding: 22px 4px; font-family: var(--font-body); font-weight: 600; font-size: 18px; color: var(--bga-ink); line-height: 1.4; }
.faq-q .fq-chev { margin-left: auto; color: var(--bga-blue-600); transition: transform .2s ease; flex: none; }
.faq-item.open .fq-chev { transform: rotate(45deg); }
.faq-a { overflow: hidden; animation: accFade .22s ease; }
.faq-a .inner { padding: 0 40px 24px 4px; font-size: 15.5px; color: var(--ink-72); line-height: 1.62; }

/* ---------- Final CTA ---------- */
.finalcta { background: var(--bga-ink); border-radius: var(--radius-lg); padding: 60px 48px; text-align: center; position: relative; overflow: hidden; }
.finalcta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 360px at 50% -20%, rgba(43,212,255,.16), transparent 60%); pointer-events: none; }
.finalcta .kicker { color: var(--bga-cyan); margin-bottom: 16px; position: relative; }
.finalcta h2 { color: #fff; font-size: clamp(28px, 4vw, 44px); line-height: 1.06; letter-spacing: -.018em; max-width: 22ch; margin: 0 auto; text-wrap: balance; position: relative; }
.finalcta p { color: rgba(255,255,255,.78); font-size: 18px; line-height: 1.6; max-width: 56ch; margin: 18px auto 0; position: relative; }
.finalcta .fc-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 32px; position: relative; }

/* ---------- 5 условий QFZP (схема) ---------- */
.cond-figure { margin: 0; }
.cond-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cond-item { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 22px 18px; box-shadow: var(--card-shadow-sm); display: flex; flex-direction: column; gap: 12px; }
.cond-item .cond-n { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: var(--bga-blue-700); }
.cond-item .cond-t { font-family: var(--font-body); font-weight: 600; font-size: 15.5px; line-height: 1.3; letter-spacing: -.005em; }
.cond-item .cond-d { font-size: 13px; color: var(--ink-72); line-height: 1.5; margin-top: 5px; }
.cond-cap { font-size: 13.5px; color: var(--ink-45); line-height: 1.55; margin: 18px 0 0; max-width: 64ch; }
@media (max-width: 880px) { .cond-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cond-grid { grid-template-columns: 1fr; } }

/* ---------- Блок эксперта ---------- */
.expert { display: flex; align-items: flex-start; gap: 16px; background: rgba(255,255,255,.55); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--card-shadow-sm); }
.expert-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--bga-blue-100); color: var(--bga-blue-700); display: flex; align-items: center; justify-content: center; flex: none; }
.expert-by { font-size: 15px; font-weight: 600; color: var(--bga-ink); line-height: 1.45; }
.expert-upd { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-45); margin-top: 6px; }

/* ---------- Disclaimer / footer ---------- */
.disclaimer { padding: 44px 0; }
.disclaimer .d-inner { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; background: rgba(255,255,255,.5); }
.disclaimer .kicker { margin-bottom: 12px; color: var(--ink-45); }
.disclaimer p { font-size: 13.5px; color: var(--ink-60); line-height: 1.65; margin: 0; max-width: 90ch; }

.site-footer { border-top: 1px solid var(--line); padding: 48px 0 56px; }
.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 30px 36px; align-items: start; }
.footer-col h5 { font-family: var(--font-body); font-weight: 600; font-size: 14px; margin: 0 0 14px; color: var(--bga-ink); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col li { font-size: 14.5px; color: var(--ink-72); line-height: 1.45; }
.footer-col a { color: var(--ink-72); text-decoration: none; }
.footer-col a:hover { color: var(--bga-ink); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 34px; height: 34px; }
.footer-brand .word { font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.footer-bio { font-size: 14px; color: var(--ink-60); line-height: 1.55; margin: 14px 0 0; max-width: 34ch; }
.footer-contacts a, .footer-contacts li { display: inline-flex; align-items: center; gap: 8px; }
.footer-contacts svg { color: var(--bga-blue-600); flex: none; }
.footer-requisites { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.footer-requisites .r-name { font-weight: 600; font-size: 14px; color: var(--bga-ink); }
.footer-requisites .r-line { font-size: 13px; color: var(--ink-60); margin-top: 5px; line-height: 1.5; }
.footer-legal { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; color: var(--ink-45); margin-top: 22px; line-height: 1.6; }
@media (max-width: 880px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-cols { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(245,242,235,.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.mobile-cta .btn { width: 100%; }
@media (max-width: 720px) { .mobile-cta { display: block; } body { padding-bottom: 76px; } .cta-band { display: none !important; } .finalcta .fc-btns .btn-primary { display: none; } .hero-cta .btn-primary { display: none; } }

/* ---------- Reveal (minimal motion) ----------
   Content is visible by default. A gentle fade-up only applies once JS has
   marked <html> ready AND the user allows motion — so no-JS / reduced-motion
   always shows content. */
html.js-reveal .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
html.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

/* =============================================================
   E-invoicing deadline calculator — additions on top of the
   shared QFZP design tokens. Reuses .riskcard / .rc-* / .lvl-*
   from above; adds the two-date result + countdown + timeline.
   ============================================================= */

/* Big days-left countdown on the result card. */
.dl-count { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 14px; }
.dl-count .num { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1; letter-spacing: -.02em; color: var(--bga-ink); }
.dl-count .unit { font-size: 14px; color: var(--ink-60); }
.lvl-high .dl-count .num { color: var(--risk-high); }
.lvl-mid  .dl-count .num { color: var(--risk-mid); }

/* A single phase block in the result (badge + countdown + dates + desc).
   In dual mode (revenue "unsure") two blocks stack with a divider between. */
.dl-phase + .dl-phase { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }

/* The two key dates (appoint ASP / go-live) as a labelled pair. */
.dl-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px; }
.dl-date { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px; background: #fff; }
.dl-date.next { border-color: var(--bga-blue-500); box-shadow: 0 0 0 3px rgba(47,115,255,.12); }
.dl-date .dd-k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-45); }
.dl-date .dd-v { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin-top: 4px; color: var(--bga-ink); }
.dl-date .dd-tag { font-size: 11.5px; color: var(--bga-blue-700); margin-top: 3px; }
@media (max-width: 420px) { .dl-dates { grid-template-columns: 1fr; } }

/* Legal-basis micro-note under the result. */
.dl-basis { font-size: 12px; color: var(--ink-45); line-height: 1.5; margin: 12px 0 0; }

/* ---- E-invoicing phased timeline (own section) ---- */
.einv-line { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.einv-step { position: relative; padding-top: 22px; border-top: 2px solid var(--line); }
.einv-step.hot { border-top-color: var(--bga-blue-600); }
.einv-step .node { position: absolute; top: -7px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 2px solid var(--line); }
.einv-step.hot .node { border-color: var(--bga-blue-600); background: var(--bga-blue-600); }
.einv-step .date { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--bga-ink); }
.einv-step .date em { font-style: normal; color: var(--bga-blue-600); }
.einv-step .lbl { font-size: 13.5px; color: var(--ink-72); line-height: 1.5; margin-top: 6px; }
.einv-step .tag { display: inline-block; margin-top: 9px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--bga-blue-700); background: var(--bga-blue-100); padding: 4px 9px; border-radius: 999px; }
.einv-step .tag.req { color: var(--risk-high); background: var(--risk-high-bg); }
@media (max-width: 820px) { .einv-line { grid-template-columns: 1fr 1fr; gap: 26px 18px; } }
@media (max-width: 460px) { .einv-line { grid-template-columns: 1fr; } }
