/* На Контроле — A4 portrait deck */

:root {
  /* Canvas: A4 portrait at 2× of points → 1pt = 2px so 12pt = 24px (min readable). */
  --ink: #1A1A1A;
  --ink-2: #3A3A3A;
  --ink-soft: #6B6B6B;
  --line: #E5E2DC;
  --line-2: #D9D5CC;
  --panel: #F4F1EA;     /* warm light, less sterile than pure gray */
  --panel-2: #ECE7DC;
  --bg: #FFFFFF;
  --accent: #FF6B35;    /* helmet orange */
  --accent-ink: #B84418;
  --accent-soft: #FFE9DE;
  --green: #1F8A5B;
  --red: #C0392B;

  /* Type scale (px, on 1190-wide canvas ≈ 2× points) */
  --t-display: 76px;    /* hero */
  --t-h1: 56px;         /* slide title */
  --t-h2: 40px;         /* section sub */
  --t-h3: 32px;
  --t-body-lg: 28px;
  --t-body: 24px;       /* min 12pt */
  --t-small: 22px;      /* used sparingly */
  --t-caption: 20px;    /* labels inside phone mocks only */

  /* Spacing */
  --pad-x: 80px;
  --pad-y: 70px;
  --gap-title: 44px;
  --gap-item: 28px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #1f1f1f;
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

deck-stage { background: #1f1f1f; }
deck-stage:not(:defined) { visibility: hidden; }

deck-stage > section {
  background: var(--bg);
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* ---------- Universal slide chrome ---------- */
.slide-pad { padding: var(--pad-y) var(--pad-x); display: flex; flex-direction: column; height: 100%; }
.slide-num {
  position: absolute;
  right: var(--pad-x);
  bottom: 36px;
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  font-weight: 500;
}
.brand-foot {
  position: absolute;
  left: var(--pad-x);
  bottom: 36px;
  font-size: 20px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.brand-foot strong { color: var(--ink); font-weight: 700; }

/* ---------- Typography ---------- */
.eyebrow {
  font-size: var(--t-small);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.h1 { font-size: var(--t-h1); font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; margin: 0; }
.h2 { font-size: var(--t-h2); font-weight: 700; line-height: 1.1;  letter-spacing: -0.005em; margin: 0; }
.h3 { font-size: var(--t-h3); font-weight: 700; line-height: 1.15; margin: 0; }
.body  { font-size: var(--t-body);    line-height: 1.4; margin: 0; }
.body-lg { font-size: var(--t-body-lg); line-height: 1.35; margin: 0; }
.small { font-size: var(--t-small);   line-height: 1.4; margin: 0; color: var(--ink-2); }
.dim { color: var(--ink-soft); }
.accent { color: var(--accent-ink); }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* Quote style — handwritten weight, no italics */
.quote {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
}
.quote::before { content: "«"; color: var(--accent); margin-right: 2px; }
.quote::after  { content: "»"; color: var(--accent); margin-left: 2px; }

/* ---------- Title bar shared by content slides ---------- */
.title-row { display: flex; align-items: baseline; gap: 24px; margin-bottom: var(--gap-title); }
.title-row .h1 { flex: 1; }
.title-rule {
  width: 80px; height: 6px; background: var(--accent); margin-bottom: 28px;
}

/* ---------- Card / panel ---------- */
.panel {
  background: var(--panel);
  border-radius: 12px;
  padding: 28px 32px;
}
.panel.accent {
  background: var(--accent-soft);
  border-left: 6px solid var(--accent);
}
.panel.outline {
  background: #fff;
  border: 1.5px solid var(--line);
}

/* ---------- Phone frame (schematic) ---------- */
.phone {
  background: #1A1A1A;
  border-radius: 36px;
  padding: 10px;
  width: 280px;
  display: inline-block;
  position: relative;
}
.phone-screen {
  background: #FFFFFF;
  border-radius: 28px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  display: flex;
  flex-direction: column;
  position: relative;
}
.phone-cam {
  position: absolute;
  top: 10px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px; background: #1A1A1A; border-radius: 12px; z-index: 2;
}
.phone-screen .px { padding: 14px 14px 12px; }
.phone-screen .header-bar {
  padding: 36px 18px 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.phone-screen .header-bar .title-mini { font-size: 17px; font-weight: 700; }
.phone-screen .header-bar .sub-mini  { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }

/* Big call-to-action button inside phone */
.ph-cta {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 14px;
  border-radius: 14px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Tabs inside phone */
.ph-tabs { display: flex; gap: 8px; padding: 0 14px; margin-top: 10px; }
.ph-tab {
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #F0EDE6;
  color: var(--ink-2);
  font-weight: 600;
  white-space: nowrap;
}
.ph-tab.active { background: var(--ink); color: #fff; }
.ph-tab.alert { background: #FDE2DD; color: var(--red); }

/* Task card inside phone */
.ph-card {
  display: flex; gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  margin: 8px 14px 0;
  position: relative;
}
.ph-card .thumb {
  width: 48px; height: 48px; border-radius: 8px; background: var(--panel-2);
  flex-shrink: 0;
  background-size: cover; background-position: center;
}
.ph-card .who { font-size: 11px; color: var(--ink-soft); margin-top: 4px; }
.ph-card .what { font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--ink); }
.ph-card.late { border-color: #F4C2B8; }
.ph-card.late::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--red); border-radius: 12px 0 0 12px;
}
.ph-pill {
  font-size: 10px; padding: 3px 8px; border-radius: 999px; font-weight: 700;
  display: inline-block;
}
.ph-pill.urgent { background: #FDE2DD; color: var(--red); }
.ph-pill.work   { background: #E4F3EB; color: var(--green); }
.ph-pill.late   { background: var(--red); color: #fff; }

/* Bottom nav */
.ph-nav {
  margin-top: auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 12px 14px 16px;
  border-top: 1px solid var(--line);
  gap: 4px;
}
.ph-nav .item {
  font-size: 10px; text-align: center; color: var(--ink-soft);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.ph-nav .item.active { color: var(--accent-ink); font-weight: 700; }
.ph-nav .item svg { width: 22px; height: 22px; }

/* Record button big circle */
.rec-circle {
  width: 150px; height: 150px;
  background: radial-gradient(circle at 30% 30%, #ff8859, #E2421A);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(255,107,53,.35), inset 0 -6px 12px rgba(0,0,0,.15);
  position: relative;
}
.rec-circle::after {
  content: ""; position: absolute; inset: -16px; border-radius: 50%;
  border: 2px solid #FFB89B; opacity: .6;
}
.rec-circle.lg { width: 180px; height: 180px; }

/* Sound wave bars */
.wave {
  display: flex; align-items: center; justify-content: center; gap: 4px; height: 36px;
}
.wave i {
  display: inline-block; width: 4px; border-radius: 2px; background: var(--accent);
}

/* Section: pains 2x2 */
.pain-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-bottom: var(--gap-title);
}
.pain {
  background: var(--panel);
  border-radius: 14px;
  padding: 28px 30px;
  display: flex; flex-direction: column; gap: 18px;
  min-height: 220px;
}
.pain .ico {
  width: 56px; height: 56px; border-radius: 12px;
  background: #fff; border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.pain .ico svg { width: 32px; height: 32px; }

/* Objection block */
.obj-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px;
}
.obj h3 { font-size: 26px; font-weight: 700; line-height: 1.25; margin: 0 0 10px; color: var(--ink); }
.obj h3::before { content: "?"; display: inline-block; width: 28px; height: 28px;
  background: var(--ink); color: #fff; border-radius: 999px; text-align: center; line-height: 28px;
  font-size: 18px; margin-right: 10px; vertical-align: 3px; font-weight: 800; }
.obj p { font-size: 22px; line-height: 1.4; color: var(--ink-2); margin: 0; }
.obj .ans-tag {
  display: inline-block; font-size: 14px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-ink); margin-top: 14px; margin-bottom: 6px;
}

/* Steps (slide 9) */
.step-row { display: flex; gap: 28px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.step-row:last-child { border-bottom: none; }
.step-num {
  font-size: 64px; font-weight: 800; color: var(--accent);
  line-height: 1; min-width: 92px;
  font-variant-numeric: tabular-nums;
}
.step-text h3 { font-size: 30px; font-weight: 700; margin: 0 0 8px; }
.step-text p  { font-size: 22px; line-height: 1.4; color: var(--ink-2); margin: 0; }

/* How-it-works steps (slide 3) */
.flow {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.flow .col {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  position: relative;
}
.flow .col + .col::before {
  content: ""; position: absolute; left: -18px; top: 110px;
  width: 18px; border-top: 2px dashed var(--accent);
}
.flow .badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; font-weight: 700; font-size: 18px;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
}
.flow .mini-phone {
  width: 180px;
}
.flow .cap {
  font-size: 20px; font-weight: 600; line-height: 1.3; margin-top: 16px;
}
.flow .cap-sub { font-size: 19px; color: var(--ink-soft); margin-top: 6px; line-height: 1.35; }

/* Callout (slide 4) */
.callout {
  background: #fff; border: 1.5px solid var(--line);
  border-radius: 12px; padding: 18px 22px;
  position: relative;
  font-size: 22px; line-height: 1.4;
}
.callout .num {
  position: absolute; left: -22px; top: -16px;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.callout strong { font-weight: 700; }
.callout-stack { display: flex; flex-direction: column; gap: 28px; }

/* MAX chat bubble */
.max-screen {
  background: #f0eee9;
}
.max-bubble {
  background: #fff;
  border-radius: 14px 14px 14px 4px;
  padding: 10px 12px;
  margin: 8px 14px;
  font-size: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.max-bubble .from { font-size: 11px; font-weight: 700; color: var(--accent-ink); margin-bottom: 4px; }
.max-bubble .line { display: flex; gap: 6px; align-items: flex-start; line-height: 1.35; margin-bottom: 2px; }
.max-bubble .line .k { font-weight: 700; color: var(--ink); min-width: 50px; }
.max-bubble .photo {
  margin: 6px 0; height: 70px; border-radius: 8px;
  background-size: cover; background-position: center;
}
.max-bubble .ph-cta { font-size: 13px; padding: 10px; border-radius: 10px; }

/* Final cover */
.final-hero {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 0 40px;
}

/* Print: clean white page; rail/UI hidden by deck-stage @media print already */
@media print {
  html, body { background: #fff; }
}
