/* =====================================================================
   Books2Go — Hi-fi homepage stylesheet
   Tokens · primitives · sections · mockups
   Drop-in for HTML/CSS/Bootstrap/PHP port.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --b2g-blue:        #0D3D82;
  --b2g-blue-700:    #102E63;
  --b2g-blue-600:    #154FA5;
  --b2g-blue-50:     #EEF3FC;
  --b2g-blue-100:    #DAE5F7;

  --b2g-green:       #96BD0D;
  --b2g-green-700:   #7AA00A;
  --b2g-green-50:    #F4F8E2;

  /* Neutrals */
  --b2g-ink:         #0F172A;
  --b2g-ink-soft:    #475569;
  --b2g-ink-fainter: #94A3B8;
  --b2g-border:      #E5E9EF;
  --b2g-border-soft: #EFF2F7;
  --b2g-bg:          #FFFFFF;
  --b2g-surface:     #F7F9FC;
  --b2g-surface-2:   #F1F4F9;
  --b2g-ink-900:     #0B1220;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 1px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 1px 2px rgba(15, 23, 42, 0.06), 0 18px 48px rgba(15, 23, 42, 0.10);
  --shadow-xl: 0 2px 4px rgba(15, 23, 42, 0.05), 0 36px 80px -16px rgba(13, 61, 130, 0.20);

  /* Container */
  --maxw: 1280px;
  --gutter: 24px;

  /* Easing */
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--b2g-ink);
  background: var(--b2g-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }

/* ---------- Type primitives ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--b2g-ink-soft);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--b2g-green);
}
.h-display {
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--b2g-ink);
}
.h-section {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 700;
  color: var(--b2g-ink);
}
.h-sub {
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.012em;
  font-weight: 600;
  color: var(--b2g-ink);
}
.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--b2g-ink-soft);
}
.mono { font-feature-settings: "tnum" 1, "lnum" 1; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding-block: clamp(72px, 9vw, 120px); }
.section--tight { padding-block: clamp(56px, 7vw, 88px); }
.section--surface { background: var(--b2g-surface); }
.section--ink {
  background: var(--b2g-ink-900);
  color: #fff;
}
.divider { border-top: 1px solid var(--b2g-border); }
.divider-bottom { border-bottom: 1px solid var(--b2g-border); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--b2g-blue);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.10) inset, 0 1px 2px rgba(13,61,130,0.30), 0 6px 16px -6px rgba(13,61,130,0.45);
}
.btn--primary:hover { background: var(--b2g-blue-600); transform: translateY(-1px); }
.btn--ghost {
  background: #fff;
  color: var(--b2g-ink);
  border-color: var(--b2g-border);
  box-shadow: var(--shadow-xs);
}
.btn--ghost:hover { border-color: var(--b2g-ink); }
.btn--text {
  height: auto; padding: 0;
  color: var(--b2g-blue);
  background: transparent;
}
.btn--text:hover { color: var(--b2g-blue-600); }
.btn--text .arrow { transition: transform .25s var(--ease); }
.btn--text:hover .arrow { transform: translateX(3px); }
.btn--lg { height: 50px; padding: 0 22px; font-size: 16px; }
.btn--sm { height: 36px; padding: 0 14px; font-size: 13.5px; }

/* ---------- Pills / chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  background: var(--b2g-blue-50);
  color: var(--b2g-blue);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid rgba(13, 61, 130, 0.10);
}
.chip--green { background: var(--b2g-green-50); color: var(--b2g-green-700); border-color: rgba(122, 160, 10, 0.18); }
.chip--ghost { background: #fff; color: var(--b2g-ink-soft); border-color: var(--b2g-border); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--b2g-border-soft);
}
.nav__inner {
  display: flex; align-items: center; gap: 32px;
  height: 68px;
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -0.02em; font-size: 17px;
  color: var(--b2g-ink);
}
.nav__logo img { height: 60px; width: auto; }
.nav__links {
  display: flex; gap: 4px;
  margin-left: 12px;
  flex: 1;
}
.nav__link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--b2g-ink-soft);
  border-radius: 8px;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.nav__link:hover { color: var(--b2g-ink); background: var(--b2g-surface-2); }
.nav__link .caret {
  width: 10px; height: 10px;
  opacity: 0.55;
}
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__signin { font-size: 14.5px; font-weight: 500; color: var(--b2g-ink-soft); padding: 0 10px; }
.nav__signin:hover { color: var(--b2g-ink); }

/* ---------- Hero (bento) ---------- */
.hero {
  padding-top: 40px;
  padding-bottom: 24px;
}
.hero__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 152px;
  gap: 18px;
}
.bento {
  position: relative;
  border: 1px solid var(--b2g-border);
  border-radius: var(--r-xl);
  background: #fff;
  padding: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.bento--blue {
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255,255,255,0.06), transparent 50%),
    linear-gradient(135deg, var(--b2g-blue) 0%, var(--b2g-blue-700) 100%);
  color: #fff;
  border-color: transparent;
}
.bento--ink { background: var(--b2g-ink-900); color: #fff; border-color: transparent; }
.bento--surface { background: var(--b2g-surface); }
.bento--flush { padding: 0; }
.bento--copy {
  grid-column: span 4;
  grid-row: span 3;
  padding: 0;
}
.bento--kpi-green {
  grid-column: span 2;
  grid-row: span 2;
}
.bento--kpi-ink {
  grid-column: span 2;
  grid-row: span 1;
}
.bento--phone {
  grid-column: span 2;
  grid-row: span 3;
  padding: 28px 24px 0;
  background: linear-gradient(180deg, var(--b2g-surface) 0%, #fff 100%);
}
.bento--store {
  grid-column: span 4;
  grid-row: span 3;
  padding: 0;
}

.hero__heading {
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  font-weight: 700;
  max-width: 540px;
}
.hero__heading .hl { color: var(--b2g-blue); white-space: nowrap; }
.hero__lede { margin-top: 18px; max-width: 480px; }
.hero__cta { display: flex; gap: 10px; align-items: center; margin-top: 28px; }
.hero__slider {
  width: 100%;
  height: 100%;
}
.hero__slides {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: transparent;
  border: 0;
}
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.hero__slide.is-active { opacity: 1; }
.hero__trust {
  margin-top: 36px;
  display: flex; align-items: center; gap: 18px;
  border-top: 1px dashed var(--b2g-border);
  padding-top: 20px;
}
.hero__trust-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--b2g-ink-fainter);
}
.hero__trust-logos {
  display: flex; gap: 22px; align-items: center;
  color: var(--b2g-ink-fainter);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero__trust-logos span { font-size: 13.5px; opacity: 0.85; }

.kpi-green__value {
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
}
.kpi-green__label {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.4;
  max-width: 200px;
  opacity: 0.92;
}
.kpi-green__meta {
  position: absolute; right: 24px; bottom: 24px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
}
.kpi-green__meta .delta {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px;
  background: rgba(255,255,255,0.14);
  border-radius: var(--r-pill);
  font-variant-numeric: tabular-nums;
}

.kpi-ink {
  display: flex; flex-direction: column; justify-content: center;
}
.kpi-ink__value {
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.kpi-ink__label {
  margin-top: 8px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.7);
}

/* ---------- Phone mockup ---------- */
.phone {
  width: 100%;
  max-width: 240px;
  margin: 8px auto 0;
  aspect-ratio: 9 / 19;
  background: var(--b2g-ink-900);
  border-radius: 36px;
  padding: 8px;
  box-shadow: 0 20px 50px -20px rgba(15,23,42,0.30), 0 1px 0 rgba(255,255,255,0.10) inset;
  position: relative;
}
.phone__screen {
  width: 100%; height: 100%;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
}
.phone__notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px;
  background: var(--b2g-ink-900);
  border-radius: 14px;
  z-index: 2;
}
.phone__statusbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 22px 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--b2g-ink);
  z-index: 3;
}
.phone__body {
  flex: 1;
  padding: 18px 16px 16px;
  display: flex; flex-direction: column; gap: 12px;
  overflow: hidden;
}
.tracking-card {
  border: 1px solid var(--b2g-border);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
}
.tracking-card__row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px;
}
.tracking-card__eyebrow {
  color: var(--b2g-ink-fainter);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tracking-card__order {
  font-weight: 700;
  font-size: 15px;
  margin-top: 6px;
  letter-spacing: -0.01em;
}
.tracking-card__eta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--b2g-ink-soft);
}
.tracking-card__pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: var(--r-pill);
  background: var(--b2g-green-50); color: var(--b2g-green-700);
  font-size: 10.5px; font-weight: 600;
}
.tracking-card__pill::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--b2g-green);
}

.map-mini {
  flex: 1;
  border: 1px solid var(--b2g-border);
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 35%, var(--b2g-blue-50), transparent 50%),
    radial-gradient(circle at 70% 65%, var(--b2g-green-50), transparent 55%),
    linear-gradient(180deg, #fafbfd, #f3f5f9);
  position: relative;
  overflow: hidden;
}
.map-mini::before, .map-mini::after {
  content: "";
  position: absolute;
  background-image:
    linear-gradient(var(--b2g-border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--b2g-border-soft) 1px, transparent 1px);
  background-size: 14px 14px;
  inset: 0;
  opacity: 0.55;
}
.map-mini__route {
  position: absolute;
  top: 30%; left: 12%;
  width: 70%; height: 38%;
  border-top: 2px dashed var(--b2g-blue);
  border-left: 2px dashed var(--b2g-blue);
  border-top-left-radius: 60px;
  opacity: 0.85;
}
.map-mini__pin {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--b2g-blue);
  box-shadow: 0 0 0 4px rgba(13,61,130,0.18);
}
.map-mini__pin--end {
  background: var(--b2g-green);
  box-shadow: 0 0 0 4px rgba(150,189,13,0.20);
}

/* ---------- Storefront mockup (browser) ---------- */
.browser {
  width: 100%; height: 100%;
  background: #fff;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--b2g-border);
  display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.browser__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--b2g-surface);
  border-bottom: 1px solid var(--b2g-border);
}
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 10px; height: 10px; border-radius: 50%; background: #D9DEE6; display: inline-block; }
.browser__url {
  margin-left: 8px;
  background: #fff;
  border: 1px solid var(--b2g-border);
  border-radius: var(--r-pill);
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--b2g-ink-soft);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 8px;
  min-width: 280px;
}
.browser__url::before {
  content: ""; width: 10px; height: 10px;
  border-radius: 2px;
  background: var(--b2g-green);
  flex: 0 0 auto;
}
.browser__body { flex: 1; display: flex; min-height: 0; }

.store__side {
  width: 200px;
  border-right: 1px solid var(--b2g-border-soft);
  padding: 20px 18px;
  display: flex; flex-direction: column; gap: 18px;
  background: #fff;
}
.store__school {
  font-size: 13px; font-weight: 600;
  color: var(--b2g-ink);
}
.store__school small {
  display: block; font-size: 11px; font-weight: 500;
  color: var(--b2g-ink-fainter); margin-top: 2px;
}
.store__group { display: flex; flex-direction: column; gap: 6px; }
.store__group-label {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--b2g-ink-fainter);
  margin-bottom: 4px;
}
.store__filter {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 8px;
  font-size: 12.5px;
  color: var(--b2g-ink-soft);
}
.store__filter--active { background: var(--b2g-blue-50); color: var(--b2g-blue); font-weight: 600; }
.store__filter .count {
  margin-left: auto; font-size: 11px; color: var(--b2g-ink-fainter);
}

.store__main {
  flex: 1;
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--b2g-surface);
}
.store__head {
  display: flex; justify-content: space-between; align-items: end;
}
.store__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.store__count {
  font-size: 11.5px;
  color: var(--b2g-ink-fainter);
}
.store__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.book {
  background: #fff;
  border: 1px solid var(--b2g-border);
  border-radius: 10px;
  padding: 10px;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.book:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.book__cover {
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 8px 10px;
  color: rgba(255,255,255,0.92);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.book__cover--blue   { background: linear-gradient(160deg, #1d4f9e, #0d2f63); }
.book__cover--green  { background: linear-gradient(160deg, #779b15, #5a7710); }
.book__cover--ink    { background: linear-gradient(160deg, #2f3a52, #15192a); }
.book__cover--cream  { background: linear-gradient(160deg, #f0c98a, #d99e4d); color: #4a2f0a; }
.book__cover--terra  { background: linear-gradient(160deg, #c66a4b, #963f24); }
.book__cover--sand   { background: linear-gradient(160deg, #ddc8a8, #b89669); color: #443521; }
.book__cover small {
  font-size: 8.5px; opacity: 0.75; letter-spacing: 0.15em;
}
.book__cover strong {
  font-size: 11px;
  letter-spacing: -0.005em;
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
}
.book__meta {
  display: flex; flex-direction: column; gap: 2px;
}
.book__name { font-size: 11.5px; font-weight: 600; line-height: 1.3; }
.book__price { font-size: 11px; color: var(--b2g-ink-soft); font-weight: 500; }
.book__price b { color: var(--b2g-ink); font-weight: 700; }

/* ---------- Trust strip ---------- */
.trust {
  padding-block: 36px;
  border-top: 1px solid var(--b2g-border);
  border-bottom: 1px solid var(--b2g-border);
  background: #fff;
}
.trust__row {
  display: grid;
  grid-template-columns: auto repeat(5, 1fr);
  gap: 36px;
  align-items: center;
}
.trust__label {
  display: flex; flex-direction: column; gap: 6px;
  padding-right: 24px;
  border-right: 1px solid var(--b2g-border);
}
.stat__value {
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.028em;
  font-weight: 700;
  color: var(--b2g-ink);
}
.stat__value .unit { color: var(--b2g-ink-fainter); font-weight: 600; }
.stat__value--accent { color: var(--b2g-blue); }
.stat__label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--b2g-ink-soft);
  line-height: 1.35;
}

/* ---------- Section heads ---------- */
.section__head--center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.section__head--center .eyebrow { justify-content: center; }
.section__head--center .lede { margin-top: 18px; }

/* ---------- Services (narrative) ---------- */
.services-list {
  margin-top: 80px;
  display: flex; flex-direction: column;
  gap: 96px;
}
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.service-row__media { min-width: 0; }
.service-row__num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--b2g-blue);
}
.service-row__title {
  margin-top: 8px;
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.12;
}
.service-row__body {
  margin-top: 14px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--b2g-ink-soft);
  max-width: 460px;
}
.service-row__features {
  list-style: none; padding: 0; margin: 22px 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px;
  max-width: 460px;
}
.service-row__features li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 14px;
  color: var(--b2g-ink);
}
.service-row__features svg {
  flex: 0 0 auto; margin-top: 3px; color: var(--b2g-green);
}
.service-row__cta { margin-top: 24px; }
.service-row--right .service-row__media { order: 2; }
.service-row--right .service-row__copy { order: 1; }

/* ---------- Checkout mockup ---------- */
.checkout {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 14px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--b2g-border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
}
.checkout__col h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--b2g-ink-fainter);
  margin-bottom: 12px;
}
.checkout__line {
  display: grid; grid-template-columns: 32px 1fr auto;
  gap: 10px; align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--b2g-border-soft);
  font-size: 13px;
}
.checkout__line:first-of-type { border-top: 0; }
.checkout__line .qty {
  width: 26px; height: 26px;
  background: var(--b2g-surface);
  border: 1px solid var(--b2g-border);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 11.5px;
}
.checkout__line .name { font-weight: 500; }
.checkout__line .name small {
  display: block; color: var(--b2g-ink-fainter); font-size: 11px; font-weight: 500; margin-top: 2px;
}
.checkout__line .price { font-weight: 600; font-variant-numeric: tabular-nums; }
.checkout__total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--b2g-border);
}
.checkout__total b { font-size: 20px; letter-spacing: -0.02em; }

.checkout__pay { display: flex; flex-direction: column; gap: 10px; }
.field {
  display: flex; flex-direction: column; gap: 6px;
}
.field__lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--b2g-ink-fainter);
}
.field__input {
  height: 38px; border-radius: 8px;
  border: 1px solid var(--b2g-border);
  padding: 0 12px;
  font-size: 13px;
  color: var(--b2g-ink);
  display: flex; align-items: center; gap: 8px;
  background: #fff;
}
.field__input .placeholder { color: var(--b2g-ink-fainter); }
.field__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkout__cfdi {
  margin-top: 4px;
  padding: 10px 12px;
  background: var(--b2g-blue-50);
  border-radius: 8px;
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
  color: var(--b2g-blue);
}
.checkout__cfdi .chip { background: #fff; color: var(--b2g-blue); border-color: var(--b2g-blue-100); }
.checkout__pay-btn {
  height: 42px; border-radius: 10px;
  background: var(--b2g-blue); color: #fff;
  font-weight: 600; font-size: 14px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 6px;
  box-shadow: 0 6px 16px -8px rgba(13,61,130,0.6);
}

/* ---------- Logistics mockup (phone + ops) ---------- */
.logi {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: stretch;
}
.logi .phone { margin: 0; max-width: 200px; }

.ops {
  background: #fff;
  border: 1px solid var(--b2g-border);
  border-radius: var(--r-xl);
  padding: 18px 20px;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 14px;
}
.ops__head { display: flex; justify-content: space-between; align-items: end; }
.ops__title { font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; }
.ops__sub { font-size: 12px; color: var(--b2g-ink-fainter); }
.ops__legend { display: flex; gap: 10px; font-size: 11px; color: var(--b2g-ink-soft); }
.ops__legend span { display: inline-flex; align-items: center; gap: 5px; }
.ops__legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.ops__waves { display: grid; grid-template-columns: 80px repeat(8, 1fr); gap: 4px; }
.ops__waves .hour { font-size: 10.5px; color: var(--b2g-ink-fainter); text-align: center; }
.ops__waves .label { font-size: 11px; color: var(--b2g-ink-soft); font-weight: 500; }
.ops__bar {
  height: 22px; border-radius: 6px; position: relative;
}
.ops__bar--a { background: linear-gradient(90deg, var(--b2g-blue) 0 70%, var(--b2g-blue-100) 70%); }
.ops__bar--b { background: linear-gradient(90deg, var(--b2g-green) 0 55%, var(--b2g-green-50) 55%); }
.ops__bar--c { background: linear-gradient(90deg, var(--b2g-blue-600) 0 90%, var(--b2g-blue-100) 90%); }
.ops__bar--d { background: var(--b2g-green-50); }
.ops__row { display: contents; }

/* ---------- Licenses table mockup ---------- */
.licenses {
  background: #fff;
  border: 1px solid var(--b2g-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.licenses__head {
  padding: 18px 22px;
  display: flex; justify-content: space-between; align-items: end;
  border-bottom: 1px solid var(--b2g-border);
}
.licenses__title { font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; }
.licenses__sub { font-size: 12px; color: var(--b2g-ink-fainter); margin-top: 2px; }
.licenses__filter {
  display: flex; gap: 6px;
}
.licenses__tab {
  font-size: 12px; padding: 6px 10px; border-radius: var(--r-pill);
  color: var(--b2g-ink-soft);
  border: 1px solid var(--b2g-border);
  background: #fff;
}
.licenses__tab--active { background: var(--b2g-ink); color: #fff; border-color: var(--b2g-ink); }

.licenses__table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.licenses__table th, .licenses__table td {
  padding: 12px 22px;
  text-align: left;
}
.licenses__table th {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--b2g-ink-fainter);
  background: var(--b2g-surface);
  border-bottom: 1px solid var(--b2g-border);
}
.licenses__table tbody tr { border-bottom: 1px solid var(--b2g-border-soft); }
.licenses__table tbody tr:last-child { border-bottom: 0; }
.licenses__table .pub {
  display: flex; align-items: center; gap: 10px;
}
.licenses__table .pub__mark {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 11px; letter-spacing: -0.02em;
}
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  font-size: 11px; font-weight: 600;
}
.pill--active { background: var(--b2g-green-50); color: var(--b2g-green-700); }
.pill--active::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--b2g-green); }
.pill--pending { background: #FEF3C7; color: #92400E; }
.pill--pending::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #F59E0B; }
.pill--expired { background: #FEE2E2; color: #991B1B; }
.pill--expired::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #DC2626; }

/* ---------- Evolution timeline (editorial vertical) ---------- */
.timeline {
  display: grid; grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: start;
}
.timeline__rail {
  position: relative;
  padding-left: 64px;
}
.timeline__rail::before {
  content: "";
  position: absolute; left: 14px; top: 12px; bottom: 12px;
  width: 1px; background: var(--b2g-border);
}
.timeline__item { position: relative; padding-bottom: 40px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute; left: -50px; top: 12px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--b2g-blue);
  box-shadow: 0 0 0 4px var(--b2g-blue-50);
}
.timeline__item--current .timeline__dot { background: var(--b2g-green); border-color: var(--b2g-green); box-shadow: 0 0 0 4px var(--b2g-green-50); }
.timeline__year {
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--b2g-blue);
}
.timeline__item--current .timeline__year { color: var(--b2g-green-700); }
.timeline__title { margin-top: 8px; font-size: 18px; font-weight: 600; }
.timeline__body { margin-top: 6px; font-size: 15px; color: var(--b2g-ink-soft); max-width: 540px; }

/* ---------- Partners ---------- */
.partners__head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 36px;
}
.partners__grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  border-top: 1px solid var(--b2g-border);
  border-left: 1px solid var(--b2g-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
}
.partner {
  aspect-ratio: 5 / 3;
  border-right: 1px solid var(--b2g-border);
  border-bottom: 1px solid var(--b2g-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--b2g-ink-fainter);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: color .18s var(--ease), background .18s var(--ease);
  font-family: var(--font-sans);
  position: relative;
}
.partner:hover { color: var(--b2g-ink); background: var(--b2g-surface); }
.partner__name {
  display: flex; align-items: center; gap: 6px;
}
.partner__name svg { opacity: 0.7; }

/* ---------- Platform ---------- */
.platform__grid {
  display: grid; grid-template-columns: 1fr 1.35fr;
  gap: 72px;
  align-items: center;
}
.platform__features {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: flex; flex-direction: column; gap: 14px;
}
.platform__features li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15.5px;
  color: var(--b2g-ink);
}
.platform__features svg { flex: 0 0 auto; margin-top: 4px; color: var(--b2g-green); }
.platform__features strong { font-weight: 600; }
.platform__features small {
  display: block; font-weight: 400; color: var(--b2g-ink-soft); margin-top: 2px;
}
.platform__ctas { display: flex; gap: 10px; margin-top: 32px; }

/* Admin mockup */
.admin {
  background: #fff;
  border: 1px solid var(--b2g-border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.admin__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--b2g-border);
}
.admin__body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 460px;
}
.admin__side {
  background: var(--b2g-surface);
  border-right: 1px solid var(--b2g-border);
  padding: 20px 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.admin__brand {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 8px 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--b2g-border);
}
.admin__brand-mark {
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--b2g-blue);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 12px;
}
.admin__brand-name { font-weight: 700; font-size: 13px; letter-spacing: -0.01em; }
.admin__brand-name small { display: block; font-size: 10px; font-weight: 500; color: var(--b2g-ink-fainter); letter-spacing: 0; }

.admin__nav-section { margin-top: 12px; }
.admin__nav-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--b2g-ink-fainter);
  padding: 0 8px 6px;
}
.admin__nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 13px; font-weight: 500;
  color: var(--b2g-ink-soft);
}
.admin__nav-item--active { background: #fff; color: var(--b2g-blue); font-weight: 600; box-shadow: 0 1px 2px rgba(15,23,42,0.05); }
.admin__nav-item .badge {
  margin-left: auto;
  background: var(--b2g-blue);
  color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 1px 6px;
  border-radius: 8px;
}
.admin__nav-item--active .badge { background: var(--b2g-green); color: #fff; }
.admin__nav-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--b2g-ink-fainter); }

.admin__main {
  padding: 22px 26px;
  display: flex; flex-direction: column; gap: 18px;
  overflow: hidden;
}
.admin__head {
  display: flex; justify-content: space-between; align-items: end;
}
.admin__head h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; }
.admin__head .sub { font-size: 12px; color: var(--b2g-ink-fainter); margin-top: 2px; }
.admin__actions { display: flex; gap: 6px; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi {
  border: 1px solid var(--b2g-border);
  border-radius: 10px;
  padding: 14px 16px;
  background: #fff;
}
.kpi__lbl {
  font-size: 11.5px; color: var(--b2g-ink-fainter);
  font-weight: 600; letter-spacing: 0.04em;
}
.kpi__val { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi__trend {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600;
  color: var(--b2g-green-700);
  margin-top: 6px;
}
.kpi__trend--down { color: #B45309; }

.chart {
  border: 1px solid var(--b2g-border);
  border-radius: 10px;
  padding: 16px;
  background: #fff;
  display: flex; flex-direction: column; gap: 12px;
}
.chart__head { display: flex; justify-content: space-between; align-items: end; }
.chart__head h4 { font-size: 13px; font-weight: 600; }
.chart__head .legend { display: flex; gap: 10px; font-size: 11px; color: var(--b2g-ink-soft); }
.chart__head .legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.chart__svg { width: 100%; height: 110px; }

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact__copy h2 { max-width: 480px; }
.contact__details {
  margin-top: 32px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.contact__details .label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--b2g-ink-fainter);
}
.contact__details .value {
  margin-top: 6px;
  font-size: 15px;
  color: var(--b2g-ink);
}
.contact__details a.value:hover { color: var(--b2g-blue); }

.form {
  background: #fff;
  border: 1px solid var(--b2g-border);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 16px;
}
.form .field__input { height: 42px; font-size: 14px; }
.form .textarea {
  min-height: 100px;
  border: 1px solid var(--b2g-border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--b2g-ink-fainter);
}
.form__submit {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: 4px;
}
.form__submit small { font-size: 12px; color: var(--b2g-ink-fainter); }

/* Map full-bleed */
.map {
  margin-top: 0;
  background: var(--b2g-surface);
  border-top: 1px solid var(--b2g-border);
  border-bottom: 1px solid var(--b2g-border);
}
.map iframe {
  display: block;
  width: 100%;
  border: 0;
}
.map__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--b2g-border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--b2g-border-soft) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.7;
  mask-image: radial-gradient(ellipse at center, #000 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 50%, transparent 100%);
}
.map__shape {
  position: absolute;
  left: 50%; top: 50%; transform: translate(-50%, -52%);
  width: 700px; max-width: 90%;
  filter: drop-shadow(0 6px 16px rgba(13, 61, 130, 0.10));
}
.map__pin {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--b2g-blue);
  box-shadow: 0 0 0 4px rgba(13,61,130,0.18), 0 0 0 10px rgba(13,61,130,0.06);
  transform: translate(-50%, -50%);
}
.map__pin--accent { background: var(--b2g-green); box-shadow: 0 0 0 4px rgba(150,189,13,0.20), 0 0 0 10px rgba(150,189,13,0.08); }
.map__city {
  position: absolute;
  transform: translate(-50%, calc(-100% - 12px));
  background: #fff;
  border: 1px solid var(--b2g-border);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--b2g-ink);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--b2g-ink-900);
  color: rgba(255,255,255,0.78);
  padding-block: 64px 28px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.footer__brand { max-width: 320px; }
.footer__brand img { width: 130px; height: auto; filter: brightness(0) invert(1) opacity(0.95); margin-bottom: 16px; }
.footer__brand p { font-size: 14px; line-height: 1.55; color: rgba(255,255,255,0.6); }
.footer__col h5 {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); font-weight: 600;
  margin-bottom: 14px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 14px; color: rgba(255,255,255,0.78); transition: color .15s; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  margin-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
}
.footer__bottom ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; }
.footer__bottom a:hover { color: #fff; }

/* ---------- Responsive (best-effort, simple) ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 140px; }
  .bento--copy { grid-column: span 4; grid-row: span 3; }
  .bento--kpi-green { grid-column: span 2; grid-row: span 2; }
  .bento--kpi-ink { grid-column: span 2; grid-row: span 1; }
  .bento--phone { grid-column: span 2; grid-row: span 3; }
  .bento--store { grid-column: span 4; grid-row: span 3; }
  .timeline { grid-template-columns: 1fr; gap: 40px; }
  .platform__grid { grid-template-columns: 1fr; gap: 48px; }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .service-row { grid-template-columns: 1fr; gap: 32px; }
  .service-row--right .service-row__media { order: 0; }
  .partners__grid { grid-template-columns: repeat(4, 1fr); }
  .nav__links { display: none; }
}
@media (max-width: 720px) {
  .hero__grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento--copy, .bento--kpi-green, .bento--kpi-ink, .bento--phone, .bento--store {
    grid-column: span 1; grid-row: auto; min-height: 280px;
  }
  .bento--copy { padding: 0; }
  .trust__row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .trust__label { grid-column: span 2; border-right: 0; padding-right: 0; padding-bottom: 8px; border-bottom: 1px solid var(--b2g-border); }
  .partners__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
