/* ============================================================
   SaleSys — Produktpresentation
   Design system: Nunito (thin, bigger = lighter), accent #1665c0
   ============================================================ */

@import url("assets/fonts/nunito.css");

:root {
  --blue: #1665c0;
  --blue-600: #1257a8;
  --blue-icon: #1676bc;
  --blue-tint: #eaf2fe;
  --blue-tint-2: #dce9fb;
  --ink: #16181d;
  --ink-soft: #3a3f47;
  --muted: #6b7280;
  --muted-2: #9aa1ab;
  --line: #e8eaee;
  --line-soft: #f1f2f5;
  --bg: #ffffff;
  --bg-frame: #f6f7f9;
  --stageW: 1280px;
  --stageH: 720px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg-frame);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
b, strong { font-weight: 400; } /* never thicker than regular */

/* ============================================================
   APP FRAME  (chrome that is NOT part of exported slides)
   ============================================================ */
.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh; /* mobile: exclude browser UI chrome from the height */
  background: var(--bg-frame);
}

.topbar {
  height: 58px;
  flex: 0 0 58px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 22px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  z-index: 40;
}
.topbar .brand {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; user-select: none;
}
.topbar .brand .brand-logo { height: 26px; width: auto; display: block; }
.topbar .divider { width: 1px; height: 26px; background: var(--line); }

.crumb-back {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  color: var(--muted-2); transition: background .15s, color .15s; margin-right: -4px;
}
.crumb-back:hover { background: var(--blue-tint); color: var(--blue); }
.crumb-back svg { width: 18px; height: 18px; }

/* very subtle breadcrumb */
.crumb { display: flex; align-items: center; gap: 8px; font-weight: 300; font-size: 14px; color: var(--muted-2); }
.crumb .bc-sec { color: var(--muted); cursor: pointer; transition: color .15s; }
.crumb .bc-sec:hover { color: var(--blue); }
.crumb .bc-sep { color: var(--muted-2); font-size: 13px; }
.crumb .bc-cur { color: var(--ink-soft); }

.topbar .spacer { flex: 1; }

.tb-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 15px; border-radius: 9px;
  font-size: 15px; font-weight: 400; color: var(--ink-soft);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.tb-btn:hover { background: var(--blue-tint); color: var(--blue); }
.tb-btn svg { width: 18px; height: 18px; }
.tb-btn.primary { background: var(--blue); color: #fff; }
.tb-btn.primary:hover { background: var(--blue-600); color: #fff; }

.nav-cluster { display: flex; align-items: center; gap: 4px; }
.counter { font-size: 14px; font-weight: 400; color: var(--muted); min-width: 66px; text-align: center; letter-spacing: .04em; }
.chev {
  width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
  color: var(--ink-soft); transition: background .15s, color .15s, opacity .15s;
}
.chev:hover { background: var(--blue-tint); color: var(--blue); }
.chev:disabled { opacity: .28; cursor: default; }
.chev svg { width: 20px; height: 20px; }

/* ============================================================
   VIEWPORT + SCALED STAGE
   ============================================================ */
.viewport {
  flex: 1;
  position: relative;
  /* auto (not hidden) so an oversized stage is always reachable by scrolling */
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(1200px 700px at 80% -10%, #eef4fd 0%, rgba(238,244,253,0) 60%),
    var(--bg-frame);
}
/* flex + margin:auto centers when it fits and scrolls cleanly from the top-left when it
   doesn't — unlike grid/flex centering alone, which clips the start of overflow. */
.scaler { flex: 0 0 auto; margin: auto; transform-origin: top left; }

.stage {
  width: var(--stageW);
  height: var(--stageH);
  background: var(--bg);
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 24px 70px -30px rgba(20,40,80,.35), 0 2px 8px rgba(20,40,80,.06);
}
/* when exporting we strip the frame styling */
.stage.export-mode { border-radius: 0; box-shadow: none; }

.slide {
  position: absolute; inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .38s var(--ease);
}
.slide.active { opacity: 1; pointer-events: auto; }
.slide.enter-anim .anim { animation: rise .55s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.anim:nth-child(1){animation-delay:.02s} .anim:nth-child(2){animation-delay:.08s}
.anim:nth-child(3){animation-delay:.14s} .anim:nth-child(4){animation-delay:.20s}
.anim:nth-child(5){animation-delay:.26s} .anim:nth-child(6){animation-delay:.32s}

/* ============================================================
   TYPOGRAPHY PRIMITIVES  (bigger = thinner)
   ============================================================ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow .ebn { color: var(--muted-2); font-weight: 400; }

h1.display { font-weight: 200; font-size: 74px; line-height: 1.03; letter-spacing: -0.015em; color: var(--ink); }
h1.display .thin { font-weight: 200; }
h2.title  { font-weight: 200; font-size: 56px; line-height: 1.06; letter-spacing: -0.01em; color: var(--ink); }
h3.sub    { font-weight: 300; font-size: 30px; line-height: 1.2; color: var(--ink); }
.lead     { font-weight: 300; font-size: 24px; line-height: 1.45; color: var(--ink-soft); }
.lead-italic { font-style: italic; font-weight: 300; color: var(--blue); }
.muted    { color: var(--muted); }
.accent   { color: var(--blue); }

/* checkmark list */
.checks { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.checks li { display: flex; align-items: flex-start; gap: 15px; font-weight: 300; font-size: 23px; line-height: 1.32; color: var(--ink); }
.checks li .ck {
  flex: 0 0 28px; width: 28px; height: 28px; margin-top: 3px;
  border-radius: 50%; background: var(--blue);
  display: grid; place-items: center;
}
.checks li .ck svg { width: 15px; height: 15px; color: #fff; }
.checks li small { display: block; font-size: 16px; color: var(--muted); font-weight: 400; margin-top: 3px; }

/* ============================================================
   LAYOUT: FEATURE SLIDE  (text left, visual right)
   ============================================================ */
.slide-pad { position: absolute; inset: 0; padding: 74px 84px; }

.feat { display: flex; height: 100%; gap: 40px; align-items: center; }
.feat.reverse { flex-direction: row-reverse; }
.feat-text { flex: 1 1 0; display: flex; flex-direction: column; gap: 22px; max-width: 560px; }
.feat-text .checks { margin-top: 6px; }
.feat-visual { flex: 1 1 0; position: relative; height: 100%; display: flex; align-items: center; justify-content: center; }

/* glow behind visual */
.glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.glow::before {
  content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%;
  top: 50%; left: 55%; transform: translate(-50%,-50%);
  background: radial-gradient(circle at center, var(--blue-tint) 0%, rgba(234,242,254,0) 62%);
}

/* ============================================================
   DEVICE / CARD MOCKS
   ============================================================ */
.phone {
  position: relative; z-index: 1;
  width: 296px; height: 632px; aspect-ratio: 9 / 19.2;
  background: #0f1115; border-radius: 46px;
  padding: 11px;
  box-shadow: 0 40px 80px -30px rgba(20,40,80,.5), 0 6px 18px rgba(20,40,80,.14);
}
.phone .screen {
  width: 100%; height: 100%; background: #fff; border-radius: 36px; overflow: hidden;
  position: relative;
}
.phone .notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px; background: #0f1115; border-radius: 14px; z-index: 3;
}
.phone .status {
  position: absolute; top: 15px; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: space-between; padding: 0 24px;
  font-size: 12px; font-weight: 400; color: #111;
}

.card {
  position: absolute; background: #fff; border-radius: 16px;
  box-shadow: 0 22px 48px -20px rgba(20,40,80,.30), 0 2px 6px rgba(20,40,80,.08);
  padding: 18px 20px;
}
.card .row { display: flex; align-items: center; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px;
  background: var(--blue-tint); color: var(--blue); font-weight: 400; font-size: 15px;
}
.chip svg { width: 16px; height: 16px; }

/* generic soft list card (e.g. automation actions) */
.mock-menu {
  width: 300px; background: #fff; border: 1.5px solid var(--blue); border-radius: 18px;
  padding: 6px 6px; box-shadow: 0 24px 50px -24px rgba(20,40,80,.35);
  position: relative; z-index: 1;
}
.mock-menu .mi {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 16px; font-size: 18px; font-weight: 400; color: var(--ink);
}
.mock-menu .mi + .mi { border-top: 1px solid var(--line-soft); }
.mock-menu .mi svg { width: 20px; height: 20px; color: var(--blue); }

/* data card (contact fields) */
.datacard {
  width: 468px; background: #fff; border-radius: 22px; padding: 34px 38px;
  box-shadow: 0 30px 60px -26px rgba(20,40,80,.30), 0 2px 6px rgba(20,40,80,.05);
  position: relative; z-index: 1;
}
.datacard .dc-top { display: flex; align-items: center; gap: 18px; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line-soft); }
.datacard .dc-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; font-weight: 400; font-size: 20px; flex: 0 0 56px; }
.datacard .dc-id { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.datacard .dc-id b { font-weight: 400; font-size: 21px; }
.datacard .dc-id small { font-size: 14px; color: var(--muted); font-weight: 400; }
.datacard .dc-live { width: 11px; height: 11px; border-radius: 50%; background: #16b364; box-shadow: 0 0 0 4px rgba(22,179,100,.16); flex: 0 0 11px; }
.datacard .grid2 { display: flex; flex-wrap: wrap; gap: 26px 24px; }
.datacard .fld { flex: 0 0 calc(50% - 12px); }
.datacard .fld small { display:block; font-size: 13px; color: var(--muted); font-weight: 400; margin-bottom: 3px; }
.datacard .fld b { font-weight: 400; font-size: 19px; }

/* extra visual builders */
.vcard {
  position: relative; z-index: 1; width: 340px; background: #fff; border-radius: 20px;
  box-shadow: 0 26px 56px -26px rgba(20,40,80,.32), 0 2px 6px rgba(20,40,80,.06);
  padding: 24px 26px;
}
.vcard .vc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.vcard .vc-head .vic { width: 40px; height: 40px; border-radius: 11px; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; }
.vcard .vc-head .vic svg { width: 22px; height: 22px; }
.vcard .vc-head .vt { font-weight: 400; font-size: 18px; }
.vcard .vc-head .vt small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }

.qrow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); font-size: 16px; }
.qrow:first-of-type { border-top: none; }
.qrow .qc { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 24px; }
.qrow .qc.ok { background: var(--blue); color: #fff; }
.qrow .qc.wait { background: #fff; border: 2px dashed var(--muted-2); color: var(--muted-2); }
.qrow .qc svg { width: 13px; height: 13px; }
.qrow .qt { flex: 1; font-weight: 400; }
.qrow .qs { font-size: 13px; font-weight: 400; color: var(--muted); }

/* calendar mock */
.calmock { position: relative; z-index: 1; width: 360px; }
.calmock .cal-top { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 14px; font-weight: 400; color: var(--ink); }
.calmock .cal-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.calmock .cal-d { flex: 0 0 calc(14.28% - 7px); aspect-ratio: 1; border-radius: 9px; background: var(--bg-frame); display: grid; place-items: center; font-size: 14px; color: var(--muted); font-weight: 400; }
.calmock .cal-d.on { background: var(--blue); color: #fff; font-weight: 400; }
.calmock .cal-d.dim { opacity: .4; }
.calmock .cal-evt { margin-top: 14px; background: #fff; border-radius: 13px; padding: 14px 16px; box-shadow: 0 18px 40px -22px rgba(20,40,80,.3); display: flex; align-items: center; gap: 12px; }
.calmock .cal-evt .bar { width: 4px; height: 34px; border-radius: 3px; background: var(--blue); }
.calmock .cal-evt .txt b { font-weight: 400; font-size: 16px; display: block; }
.calmock .cal-evt .txt small { color: var(--muted); font-size: 13px; }

/* code card */
.codecard {
  position: relative; z-index: 1; width: 400px; background: #0f1625; border-radius: 16px;
  padding: 20px 22px; box-shadow: 0 30px 60px -26px rgba(10,20,50,.55); font-size: 14px;
  font-family: "SFMono-Regular", ui-monospace, Menlo, monospace; line-height: 1.7;
}
.codecard .dots3 { display: flex; gap: 7px; margin-bottom: 14px; }
.codecard .dots3 i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.codecard .dots3 i:nth-child(1){background:#ff5f57} .codecard .dots3 i:nth-child(2){background:#febc2e} .codecard .dots3 i:nth-child(3){background:#28c840}
.codecard pre { color: #cdd6e6; white-space: pre-wrap; margin: 0; }
.codecard .k { color: #7db3ff; } .codecard .s { color: #7ee0a8; } .codecard .p { color: #f0a35e; }

/* icon burst */
.iconburst { position: relative; z-index: 1; width: 300px; height: 300px; display: grid; place-items: center; }
.iconburst .ib-main {
  width: 168px; height: 168px; border-radius: 40px; background: #fff;
  display: grid; place-items: center; box-shadow: 0 30px 64px -28px rgba(20,60,120,.42);
}
.iconburst .ib-main svg { width: 84px; height: 84px; color: var(--blue); stroke-width: 1.2; }
.iconburst .ib-chip { position: absolute; width: 56px; height: 56px; border-radius: 16px; background: #fff; display: grid; place-items: center; box-shadow: 0 16px 34px -18px rgba(20,60,120,.4); color: var(--blue); }
.iconburst .ib-chip svg { width: 28px; height: 28px; }
.iconburst .c1 { top: 8px; left: 10px; } .iconburst .c2 { top: 20px; right: 6px; }
.iconburst .c3 { bottom: 14px; left: 0; } .iconburst .c4 { bottom: 4px; right: 24px; }

/* image slide caption */
.imgslide .cap { position: absolute; left: 84px; bottom: 60px; max-width: 520px; z-index: 2; }
.imgslide .cap .t { font-weight: 200; font-size: 46px; color: var(--ink); line-height: 1.05; }
.imgslide .cap .c { font-weight: 300; font-size: 20px; color: var(--muted); margin-top: 10px; }

/* ringlist card */
.lc-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line-soft); }
.lc-row:first-of-type { border-top: none; }
.lc-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; flex: 0 0 34px; }
.lc-ic svg { width: 19px; height: 19px; }
.lc-nm { flex: 1; font-weight: 400; font-size: 17px; }
.lc-ct { font-weight: 400; font-size: 16px; color: var(--ink); }
.lc-foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.lc-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 400; color: var(--blue); background: var(--blue-tint); padding: 7px 13px; border-radius: 999px; }
.lc-badge svg { width: 15px; height: 15px; }

/* live agent board */
.ab-row { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-top: 1px solid var(--line-soft); }
.ab-row:first-of-type { border-top: none; }
.ab-av { width: 38px; height: 38px; border-radius: 50%; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; font-weight: 400; font-size: 16px; flex: 0 0 38px; }
.ab-nm { flex: 1; font-weight: 400; font-size: 17px; }
.ab-nm small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.ab-st { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 11px; }
.ab-st.live { background: #16b364; box-shadow: 0 0 0 4px rgba(22,179,100,.16); }
.ab-st.busy { background: #f79009; }
.ab-st.idle { background: var(--muted-2); }
.ab-listen { color: var(--blue); display: inline-flex; }
.ab-listen svg { width: 20px; height: 20px; }
.ab-foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.ab-hint { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 400; color: var(--muted); }
.ab-hint svg { width: 15px; height: 15px; color: var(--blue); }

/* logo wall */
.logos-wrap { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; }
.logo-grid { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; margin: 6px 0; }
.logo-card {
  width: 250px; height: 128px; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  display: flex; align-items: center; justify-content: center; padding: 28px 34px;
  box-shadow: 0 18px 40px -26px rgba(20,40,80,.22);
}
.logo-card img { max-width: 100%; max-height: 56px; width: auto; height: auto; object-fit: contain; }

/* ============================================================
   LAYOUT: SECTION COVER
   ============================================================ */
.cover { position: absolute; inset: 0; display: flex; }
.cover .cov-left {
  flex: 1.15 1 0;
  padding: 78px 78px; display: flex; flex-direction: column; justify-content: center; gap: 26px;
  position: relative;
}
.cover .cov-num { font-size: 20px; font-weight: 400; letter-spacing: .2em; color: var(--blue); }
.cover .cov-title { font-weight: 200; font-size: 88px; line-height: .98; letter-spacing: -.02em; }
.cover .cov-tag { font-weight: 300; font-size: 26px; color: var(--ink-soft); max-width: 440px; line-height: 1.4; }
.cover .cov-right {
  flex: 1 1 0;
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 500px at 60% 30%, #dfeafd 0%, rgba(223,234,253,0) 70%),
    linear-gradient(160deg, #f3f7fe 0%, #e7f0fc 100%);
  display: flex; align-items: center; justify-content: center;
}
.cover .cov-icon {
  width: 210px; height: 210px; border-radius: 40px; background: #fff;
  display: grid; place-items: center;
  box-shadow: 0 30px 70px -30px rgba(20,60,120,.4);
}
.cover .cov-icon svg { width: 108px; height: 108px; color: var(--blue); stroke-width: 1.2; }
.cover .cov-toc { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-top: 8px; }
.cover .cov-toc li { font-size: 18px; font-weight: 300; color: var(--muted); display:flex; gap:12px; align-items:center; }
.cover .cov-toc li b { color: var(--blue); font-weight: 400; font-size: 14px; width: 22px; }

/* ============================================================
   LAYOUT: STAT
   ============================================================ */
.stat { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px; }
.stat .inner { max-width: 900px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
/* line-height:1 + explicit margin-bottom so the number never collides with the label.
   html2canvas paints the digits ~one descent (≈40px) lower in the line box than the
   browser does, so relying on the line box alone made the PDF export overlap. A real
   margin is honored identically by both renderers. */
.stat .bignum { font-weight: 200; font-size: 200px; line-height: 1; margin-bottom: 34px; color: var(--blue); letter-spacing: -.03em; }
.stat .bignum sup { font-size: 90px; vertical-align: super; font-weight: 300; }
.stat .stat-label { font-weight: 300; font-size: 34px; color: var(--ink); }
.stat .stat-sub { font-weight: 300; font-size: 20px; color: var(--muted); max-width: 620px; line-height: 1.5; }
.stat-row { display: flex; gap: 90px; margin-top: 10px; }
.stat-row .si { display: flex; flex-direction: column; gap: 6px; }
.stat-row .si .n { font-weight: 200; font-size: 76px; color: var(--blue); line-height: 1; }
.stat-row .si .l { font-weight: 400; font-size: 17px; color: var(--muted); }

/* ============================================================
   LAYOUT: FULL IMAGE
   ============================================================ */
.imgslide { position: absolute; inset: 0; }
.imgslide img { width: 100%; height: 100%; object-fit: cover; }
.imgslide.contain { background: #fff; }
.imgslide.contain img { object-fit: contain; padding: 0; }

/* ============================================================
   START / MENU SCREEN  (SEB-style)
   ============================================================ */
.start { position: absolute; inset: 0; display: flex; }
/* left: section menu */
.start .s-menu { flex: 1; padding: 56px 76px; display: flex; flex-direction: column; justify-content: center; }
.start .s-menu .s-head { font-weight: 300; font-size: 21px; color: var(--muted); margin-bottom: 32px; letter-spacing: .01em; }
/* right: photo panel (SEB-style) */
.start .s-photo { flex: 1; position: relative; overflow: hidden; background: #0f2038; }
.start .s-photo .s-photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.start .s-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,25,50,.55) 0%, rgba(10,25,50,0) 45%);
}
.start .s-photo .s-photo-cap {
  position: absolute; left: 48px; bottom: 44px; z-index: 2;
  color: #fff; font-weight: 200; font-size: 40px; line-height: 1.05; letter-spacing: -.01em;
  text-shadow: 0 1px 20px rgba(0,20,50,.35);
}
.menu-list { list-style: none; display: flex; flex-direction: column; }
.menu-item {
  display: flex; align-items: center; gap: 26px;
  padding: 22px 14px; border-bottom: 1px solid var(--line);
  cursor: pointer; transition: padding .2s var(--ease), background .15s;
  position: relative;
}
.menu-item:first-child { border-top: 1px solid var(--line); }
.menu-item .mi-ic { width: 40px; height: 40px; color: var(--blue); display: grid; place-items: center; flex: 0 0 40px; }
.menu-item .mi-num { background: var(--blue-tint); border-radius: 50%; font-weight: 400; font-size: 15px; letter-spacing: .02em; }
.s-head .cover-eyebrow { display: block; font-size: 13px; font-weight: 400; letter-spacing: .2em; color: var(--blue); margin-bottom: 8px; }
.start.cover-menu .s-head { font-weight: 200; font-size: 40px; color: var(--ink); letter-spacing: -.01em; }
.menu-item .mi-ic svg { width: 34px; height: 34px; stroke-width: 1.3; }
.menu-item .mi-tx { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.menu-item .mi-tx .t { font-weight: 300; font-size: 27px; color: var(--ink); line-height: 1.1; }
.menu-item .mi-tx .d { font-weight: 400; font-size: 14px; color: var(--muted); margin-top: 2px; }
.menu-item .mi-ar { color: var(--muted-2); transition: transform .2s var(--ease), color .2s; }
.menu-item .mi-ar svg { width: 24px; height: 24px; }
.menu-item:hover { background: linear-gradient(90deg, var(--blue-tint) 0%, rgba(234,242,254,0) 90%); padding-left: 20px; }
.menu-item:hover .mi-ar { transform: translateX(6px); color: var(--blue); }

/* ============================================================
   OVERVIEW / MENU OVERLAY  (jump to any section)
   ============================================================ */
.overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(16,22,34,.5); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.overlay.open { display: flex; }
.sheet {
  width: min(1080px, 96vw); max-height: 90vh; overflow: auto;
  background: #fff; border-radius: 18px; padding: 30px 34px;
  box-shadow: 0 40px 100px -30px rgba(10,20,50,.55);
}
.sheet h2 { font-weight: 200; font-size: 34px; margin-bottom: 4px; }
.sheet .sub { color: var(--muted); font-weight: 300; margin-bottom: 22px; font-size: 16px; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; }
.close-x { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.close-x:hover { background: var(--line-soft); color: var(--ink); }

/* export modal specifics */
.exp-toolbar { display: flex; align-items: center; gap: 14px; margin: 8px 0 20px; flex-wrap: wrap; }
.mini-btn { font-size: 14px; font-weight: 400; color: var(--blue); padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; }
.mini-btn:hover { background: var(--blue-tint); border-color: var(--blue-tint-2); }
.exp-count { margin-left: auto; font-weight: 400; color: var(--muted); font-size: 14px; }

.exp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.exp-cat { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.exp-cat-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--bg-frame); cursor: pointer; user-select: none;
}
.exp-cat-head .ic { width: 26px; height: 26px; color: var(--blue); }
.exp-cat-head .ic svg { width: 26px; height: 26px; stroke-width: 1.4; }
.exp-cat-head .nm { font-weight: 400; font-size: 17px; flex: 1; }
.exp-cat-head .cnt { font-size: 13px; color: var(--muted); font-weight: 400; }
.exp-slides { padding: 6px 8px 10px; }
.exp-slide {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px;
  cursor: pointer; font-size: 15px; font-weight: 400; color: var(--ink-soft);
}
.exp-slide:hover { background: var(--bg-frame); }
.cbx {
  width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--muted-2);
  display: grid; place-items: center; flex: 0 0 20px; transition: all .12s;
}
.cbx svg { width: 13px; height: 13px; color: #fff; opacity: 0; }
.checked .cbx, .exp-slide.on .cbx, .exp-cat-head.on .cbx { background: var(--blue); border-color: var(--blue); }
.checked .cbx svg, .exp-slide.on .cbx svg, .exp-cat-head.on .cbx svg { opacity: 1; }
.exp-cat-head .cbx { border-radius: 6px; }
.exp-thumb-tag { font-size: 11px; color: var(--muted-2); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; }

.exp-footer { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.exp-footer .hint { font-size: 14px; color: var(--muted); font-weight: 300; }
.exp-footer .grow { flex: 1; }
.btn-lg {
  height: 46px; padding: 0 26px; border-radius: 11px; font-weight: 400; font-size: 16px;
  background: var(--blue); color: #fff; display: inline-flex; align-items: center; gap: 10px;
}
.btn-lg:hover { background: var(--blue-600); }
.btn-lg:disabled { opacity: .4; cursor: default; }
.btn-lg svg { width: 19px; height: 19px; }
.btn-ghost { height: 46px; padding: 0 20px; border-radius: 11px; font-weight: 400; color: var(--muted); }
.btn-ghost:hover { background: var(--line-soft); color: var(--ink); }

/* progress bar for export */
.exp-progress { display: none; flex-direction: column; gap: 10px; margin-top: 18px; }
.exp-progress.on { display: flex; }
.exp-progress .track { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.exp-progress .bar { height: 100%; width: 0; background: var(--blue); border-radius: 999px; transition: width .2s var(--ease); }
.exp-progress .lbl { font-size: 14px; color: var(--muted); font-weight: 400; }

/* offscreen render host for export */
#renderHost { position: fixed; left: -99999px; top: 0; width: var(--stageW); height: var(--stageH); }
#renderHost .stage { border-radius: 0; box-shadow: none; }

/* progress dots at bottom of stage */
.dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; z-index: 30; }
.dots .d { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: all .2s; }
.dots .d.on { background: var(--blue); width: 20px; border-radius: 4px; }

/* keyboard hint */
.khint { position: fixed; bottom: 14px; right: 18px; font-size: 12px; color: var(--muted-2); font-weight: 400; z-index: 35; user-select: none; }
.khint kbd { font-family: inherit; background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 1px 7px; font-size: 11px; font-weight: 400; color: var(--muted); box-shadow: 0 1px 0 var(--line); }

@media (max-width: 760px) {
  .exp-grid { grid-template-columns: 1fr; }
  .topbar .crumb, .topbar .crumb-back, .topbar .divider { display: none; }
  /* compact topbar so all controls fit on a phone */
  .topbar { height: 52px; flex: 0 0 52px; gap: 8px; padding: 0 12px; }
  .topbar .brand .brand-logo { height: 22px; }
  .tb-btn { padding: 0 10px; height: 34px; font-size: 13px; gap: 6px; }
  .tb-btn .lbl { display: none; } /* icon-only buttons on mobile */
  .nav-cluster { gap: 2px; }
  .counter { min-width: 52px; font-size: 12px; }
  .chev { width: 34px; height: 34px; }
  .viewport { padding: 12px; }
  .khint { display: none; } /* no physical keyboard on mobile */
  .sheet { width: 94vw; max-height: 88vh; }
}
