/* ============================================
   Teksura — Sales Deck stylesheet
   16:9 slides · brand: Flowframe
   ============================================ */

:root {
  --ink: #0f172a;
  --ink-deep: #06091a;
  --paper: #fafaf7;
  --soft: #f3f4f6;
  --line: #e5e7eb;
  --yellow: #ffc94a;
  --yellow-dim: #fff5d6;
  --coral: #fa8669;
  --coral-dim: #ffe8e0;
  --ok: #16a34a;
  --ok-dim: #dcfce7;
  --bad: #dc2626;
  --bad-dim: #fee2e2;
  --mute: #6b7280;

  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-display: 'Manrope', 'Inter', sans-serif;

  --shadow-hard: 8px 8px 0 0 var(--ink);
  --shadow-soft: 4px 4px 0 0 var(--ink);
}

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

html, body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: #1f2937;
  height: 100%;
  overflow: hidden;
}

/* ================ DECK SHELL ================ */
.deck {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  background: var(--paper);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.slide--active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

/* 16:9 fit-content */
.slide__fit {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vh, 60px) clamp(40px, 5vw, 96px);
  position: relative;
}

/* ================ NAV / CHROME ================ */
.deck-nav {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 10px 20px;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.deck-nav__btn {
  appearance: none;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  transition: background 0.15s;
}
.deck-nav__btn:hover { background: rgba(255,255,255,0.12); }
.deck-nav__btn svg { width: 18px; height: 18px; }
.deck-nav__counter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  min-width: 60px;
  text-align: center;
  letter-spacing: 0.04em;
}
.deck-nav__counter b { color: var(--yellow); }
.deck-nav__sep { width: 1px; height: 18px; background: rgba(255,255,255,0.2); }
.deck-nav__hint {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.deck-toolbar {
  position: fixed;
  top: 18px; right: 18px;
  display: flex;
  gap: 8px;
  z-index: 100;
}
.deck-toolbar__btn {
  appearance: none;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.deck-toolbar__btn:hover { background: var(--coral); }
.deck-toolbar__btn svg { width: 14px; height: 14px; }

/* ================ TYPOGRAPHY ================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--yellow);
  color: var(--ink);
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  align-self: flex-start;
  margin-bottom: clamp(16px, 2vh, 28px);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px;
  background: var(--ink); border-radius: 50%;
}

.h1 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  font-size: clamp(38px, 5vw, 76px);
}
.h2 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.1;
  font-size: clamp(32px, 4vw, 56px);
  color: var(--ink);
}
.h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.25;
  color: var(--ink);
}
.lead {
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.5;
  color: #374151;
  max-width: 900px;
}
.muted { color: var(--mute); }
.hl-y { background: linear-gradient(180deg, transparent 60%, var(--yellow) 60%); padding: 0 4px; }
.hl-c { color: var(--coral); }

/* ================ LAYOUT HELPERS ================ */
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.between { display: flex; justify-content: space-between; align-items: flex-end; }
.center { display: grid; place-items: center; }
.gap-s { gap: 16px; }
.gap-m { gap: 28px; }
.gap-l { gap: 48px; }
.spacer { flex: 1; }
.mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 40px; }

.brand-mark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 900;
  font-size: 16px; letter-spacing: 0.04em;
}
.brand-mark__sq {
  width: 24px; height: 24px;
  background: var(--ink); border-radius: 5px;
  position: relative;
}
.brand-mark__sq::before, .brand-mark__sq::after {
  content: ""; position: absolute; left: 5px;
  width: 14px; height: 2px; background: var(--yellow);
}
.brand-mark__sq::before { top: 6px; }
.brand-mark__sq::after  { top: 16px; }
.brand-mark__sq i { display: block; width: 9px; height: 2px; background: var(--yellow); position: absolute; left: 5px; top: 11px; }

/* ================ BUTTONS ================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn--primary { background: var(--yellow); box-shadow: var(--shadow-soft); }
.btn--ink     { background: var(--ink); color: var(--yellow); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 0 var(--ink); }

/* ================ SLIDE 1 — TITLE ================ */
.s-title {
  background:
    radial-gradient(900px 600px at 90% 10%, rgba(255,201,74,0.35), transparent 60%),
    radial-gradient(700px 500px at 10% 100%, rgba(250,134,105,0.25), transparent 60%),
    var(--paper);
}
.s-title__top {
  display: flex; justify-content: space-between; align-items: center;
}
.s-title__core {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
}
.s-title__h {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(56px, 7vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}
.s-title__tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 1.6vw, 24px);
  color: #374151;
  max-width: 760px;
  line-height: 1.4;
  margin-bottom: 32px;
}
.s-title__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  font-size: 14px;
  color: var(--mute);
  margin-top: auto;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}
.s-title__meta b { color: var(--ink); display: block; font-family: var(--font-display); font-weight: 800; font-size: 15px; margin-bottom: 4px; }

/* ================ SLIDE — STAT (large number) ================ */
.s-stat__inner {
  flex: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.big-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(120px, 18vw, 240px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
}
.big-num--accent { color: var(--coral); }
.big-num__unit {
  font-size: 0.32em;
  color: var(--mute);
  margin-left: 12px;
  margin-top: 0.18em;
  font-weight: 800;
}

/* ================ SLIDE — TWO COL ================ */
.s-two {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 4vw, 60px);
  flex: 1;
  align-items: center;
}
.s-two--reverse { grid-template-columns: 1.15fr 1fr; }
.s-two__copy { display: flex; flex-direction: column; min-width: 0; }
.s-two__media { min-width: 0; }
.s-two__media img {
  width: 100%; height: auto; display: block;
  border-radius: 14px;
  filter: drop-shadow(8px 8px 0 var(--ink));
}

/* ================ BULLETS ================ */
.bullets { display: flex; flex-direction: column; gap: 14px; }
.bullet {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: flex-start;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.5;
  color: #374151;
}
.bullet__mark {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: var(--ink);
  color: var(--yellow);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  margin-top: 1px;
}
.bullet--ok .bullet__mark { background: var(--ok); color: #fff; }
.bullet--bad .bullet__mark { background: var(--coral); color: #fff; }

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.kpi-card {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
}
.kpi-card__label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 8px;
}
.kpi-card__val {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 2.5vw, 40px);
  line-height: 1;
  color: var(--ink);
}
.kpi-card__hint {
  font-size: 12px;
  color: var(--mute);
  margin-top: 6px;
}
.kpi-card--accent { background: var(--yellow); }
.kpi-card--coral  { background: var(--coral-dim); }

/* ================ STEP CARDS ================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.step {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 28px 24px;
  position: relative;
  box-shadow: var(--shadow-soft);
}
.step__num {
  position: absolute;
  top: -22px; left: 24px;
  width: 44px; height: 44px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
}
.step__h {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  margin: 8px 0 12px;
  color: var(--ink);
}
.step__t {
  color: #374151;
  line-height: 1.5;
  font-size: 15px;
}

/* ================ COMPARE TABLE ================ */
.cmp {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  font-size: clamp(13px, 1vw, 15px);
}
.cmp th, .cmp td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.cmp th { font-family: var(--font-display); font-weight: 800; background: var(--ink); color: #fff; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; }
.cmp th:first-child { background: var(--yellow); color: var(--ink); }
.cmp tr:last-child td { border-bottom: none; }
.cmp .y { color: var(--ok); font-weight: 800; }
.cmp .n { color: var(--bad); font-weight: 800; }
.cmp .meh { color: var(--mute); }
.cmp td:first-child { font-weight: 600; color: var(--ink); }

/* ================ PRICING ================ */
.prices {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.price {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price--featured {
  background: var(--yellow);
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}
.price__tag {
  position: absolute;
  top: -12px; right: 16px;
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.price__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 8px;
}
.price__sum {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1;
}
.price__per { font-size: 13px; color: var(--mute); margin-bottom: 12px; }
.price__list { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.price__list li {
  padding: 5px 0 5px 18px;
  position: relative;
  color: #374151;
  line-height: 1.4;
}
.price__list li::before {
  content: "✓"; position: absolute; left: 0; top: 5px;
  color: var(--ok); font-weight: 900;
}
.price--featured .price__list li::before { color: var(--ink); }
.price--featured .price__list li { color: var(--ink); }

/* ================ ROI CARD ================ */
.roi {
  background: var(--ink);
  color: #fff;
  border-radius: 22px;
  padding: 38px 44px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  margin-top: 32px;
  align-items: center;
}
.roi__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 5vw, 76px);
  line-height: 1;
  color: var(--yellow);
  letter-spacing: -0.02em;
}
.roi__label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.roi__plus {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 32px;
  color: var(--coral);
  text-align: center;
  display: grid; place-items: center;
}

/* ================ SECURITY/INCLUDED CHECKS ================ */
.checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 32px;
  margin-top: 24px;
}
.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: flex-start;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.5;
}
.check__icon {
  width: 32px; height: 32px;
  background: var(--ok-dim);
  color: var(--ok);
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.check__icon svg { width: 16px; height: 16px; }
.check b { display: block; font-family: var(--font-display); font-weight: 800; color: var(--ink); margin-bottom: 4px; font-size: 1em; }

/* ================ CTA SLIDE ================ */
.s-cta {
  background:
    radial-gradient(1200px 800px at 90% 100%, rgba(255,201,74,0.25), transparent 60%),
    radial-gradient(800px 600px at 10% 0%, rgba(250,134,105,0.18), transparent 60%),
    var(--ink);
  color: #fff;
}
.s-cta .h2, .s-cta .h1 { color: #fff; }
.s-cta__contacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding: 28px;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 16px;
}
.contact b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 6px;
}
.contact a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
}
.contact a:hover { color: var(--yellow); }

/* ================ SLIDE FOOTER ================ */
.slide-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1.5px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--mute);
  letter-spacing: 0.04em;
}
.s-cta .slide-footer { border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.6); }
.s-cta .slide-footer .brand-mark { color: #fff; }
.s-cta .slide-footer .brand-mark__sq { background: var(--yellow); }
.s-cta .slide-footer .brand-mark__sq::before, .s-cta .slide-footer .brand-mark__sq::after, .s-cta .slide-footer .brand-mark__sq i { background: var(--ink); }

/* ================ PRINT (PDF export via Chromium) ================ */
@page {
  size: 1920px 1080px;
  margin: 0;
}
@media print {
  html, body { background: #fff; height: auto; overflow: visible; }
  .deck-nav, .deck-toolbar { display: none !important; }
  .deck { width: auto; height: auto; }
  .slide {
    position: relative;
    inset: auto;
    width: 1920px;
    height: 1080px;
    page-break-after: always;
    break-after: page;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
  }
  .slide:last-child { page-break-after: auto; }
}

/* ================ RESPONSIVE ================ */
@media (max-aspect-ratio: 4/3) {
  .s-stat__inner, .s-two, .s-two--reverse { grid-template-columns: 1fr; }
  .kpi-row, .steps, .checks, .prices, .roi, .s-cta__contacts { grid-template-columns: 1fr; }
  .roi__plus { display: none; }
}
