:root {
  --bg: #f3f3f3;
  --surface: #ffffff;
  --surface-soft: #fbfbfb;
  --hero-bg: #f6f0d9;
  --line: #ececec;
  --text: #1c1c1c;
  --muted: #707070;
  --yellow: #f2c954;
  --yellow-soft: #f7d877;
  --red: #df5d66;
  --red-strong: #c94f58;
  --radius: 14px;
  --shadow: 0 14px 28px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #2c2f36;
  font-size: 20px;
  font-weight: 700;
}

.logo img {
  display: block;
  width: 108px;
  height: auto;
}

.logo span {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: #2c2f36;
  border-radius: 2px;
}

.dropdown {
  position: relative;
}

.menu-item {
  padding-top: 1px;
}

.dropbtn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  padding: 13px 12px 11px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.menu-item .dropbtn::after {
  content: "▾";
  margin-left: 6px;
  font-size: 10px;
  vertical-align: middle;
}

.dropdown:hover .dropbtn,
.dropdown:focus-within .dropbtn {
  color: var(--text);
  border-bottom-color: var(--yellow);
}

.dropdown-content {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  min-width: 280px;
  display: none;
  z-index: 60;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.08);
  padding: 6px;
}

.dropdown-content a {
  display: block;
  text-decoration: none;
  color: var(--text);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 13px;
}

.dropdown-content a:hover {
  background: #f8f8f8;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block;
}

.hero {
  padding: 34px 0 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.hero-card {
  background: var(--hero-bg);
  position: relative;
  overflow: hidden;
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  background: linear-gradient(45deg, var(--yellow) 0%, var(--yellow-soft) 100%);
  border-radius: 999px;
  opacity: 0.8;
  transform: rotate(-25deg);
}

.hero-card::before {
  width: 260px;
  height: 24px;
  right: -52px;
  top: 30px;
}

.hero-card::after {
  width: 180px;
  height: 16px;
  right: 40px;
  bottom: 28px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 78%;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.subtitle {
  color: var(--muted);
  margin: 12px 0 0;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.5;
}

.actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 15px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red) 0%, #e7767d 100%);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--red-strong) 0%, var(--red) 100%);
}

.btn-ghost {
  color: #6f5a00;
  background: #fff2c8;
}

.hero-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.kpi {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.kpi-item {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.kpi-item strong {
  display: block;
  font-size: 24px;
  line-height: 1.05;
  margin-bottom: 6px;
}

.kpi-item span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 12px 0 18px;
}

.section h2 {
  font-size: clamp(23px, 2.2vw, 32px);
  margin-bottom: 8px;
  text-align: center;
}

.section h3 {
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 600;
  margin: 28px 0 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.section h3:first-of-type {
  margin-top: 12px;
  border-top: 0;
  padding-top: 0;
}

.lead {
  color: var(--muted);
  margin: 0 0 14px;
  text-align: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

li {
  margin: 7px 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #fff4cf;
  color: #7f6100;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 10px;
  margin-bottom: 10px;
}

.pricing {
  margin: 10px 0 0;
  font-size: 24px;
  font-weight: 800;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.feature-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 12px;
}

.feature-item h4 {
  margin: 0 0 6px;
  font-size: 14px;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.pain-band {
  background: linear-gradient(180deg, #f5d87d 0%, #f2cb5b 100%);
  border-color: #eac14d;
}

.pain-band h2,
.pain-band p,
.pain-band li {
  color: #2c2306;
  text-align: left;
}

.pain-band h2 {
  margin-bottom: 10px;
}

.map-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.map-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fdfdfd;
  padding: 10px 12px;
}

.map-link span {
  color: var(--muted);
  font-size: 13px;
}

.badge {
  background: #fff4cf;
  color: #7f6100;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 500;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 12px;
}

.faq-item + .faq-item {
  margin-top: 8px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
}

.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contacts p {
  margin: 6px 0;
  color: var(--muted);
}

.form-fake {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 12px;
}

.input-fake {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #a0a0a0;
  font-size: 13px;
  padding: 10px 12px;
}

.input-fake + .input-fake {
  margin-top: 8px;
}

.final-cta {
  background: var(--surface);
}

.kpi-section {
  padding-top: 0;
}

.section-actions {
  justify-content: center;
}

.text-block {
  margin: 0;
  color: #363636;
  line-height: 1.65;
  font-size: 14px;
}

.data-table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td {
  border: 1px solid var(--line);
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: #fafafa;
  font-weight: 600;
}

.page-pager {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.lead-form {
  margin-top: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field-label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--muted);
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
}

.textarea {
  min-height: 88px;
  resize: vertical;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.consent input {
  margin-top: 2px;
}

.full {
  grid-column: 1 / -1;
}

.cta-band {
  background: linear-gradient(180deg, #f5d87d 0%, #f2cb5b 100%);
  border-color: #eac14d;
}

.cta-band .lead {
  text-align: left;
  margin-bottom: 8px;
  color: #2c2306;
}

.promo-form {
  background: linear-gradient(180deg, #f5d87d 0%, #f2cb5b 100%);
  border-color: #eac14d;
}

.promo-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px;
  align-items: start;
}

.promo-copy h3 {
  margin: 0 0 10px;
  font-size: 42px;
  line-height: 1.08;
}

.promo-copy p {
  margin: 0 0 10px;
  color: #2c2306;
  line-height: 1.5;
}

.promo-list {
  margin: 0;
  padding-left: 20px;
}

.promo-list li {
  margin: 8px 0;
  color: #2c2306;
}

.promo-form-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  padding: 14px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pricing-card {
  position: relative;
}

.pricing-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.pricing-title {
  font-size: 22px;
  margin: 0;
}

.pricing-tag {
  border: 1px solid #5daef2;
  color: #2588e0;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
}

.pricing-sub {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  margin: 8px 0;
  padding-left: 22px;
  position: relative;
  line-height: 1.45;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 10px;
  color: #2f96ec;
  background: #edf6ff;
}

.feature-list .off {
  color: #9ca3af;
}

.feature-list .off::before {
  content: "×";
  color: #b8bec7;
  background: #f3f4f6;
}

.pricing-card .actions {
  margin-top: 14px;
}

.pricing-card .btn {
  width: 100%;
  text-align: center;
}

.ads-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ad-card {
  padding: 14px;
}

.ad-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.ad-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f5f5f5;
  color: #4a4a4a;
  font-size: 11px;
  padding: 4px 9px;
}

.ad-preview {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  margin-top: 8px;
}

.ad-preview .url {
  color: #0f7b5f;
  font-size: 12px;
  margin-bottom: 4px;
}

.ad-preview .headline {
  color: #1a0dab;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.ad-preview .desc {
  color: #4b5563;
  font-size: 13px;
  margin-top: 4px;
  line-height: 1.4;
}

.ad-list {
  margin-top: 10px;
}

.ad-list p {
  margin: 6px 0;
  font-size: 13px;
  line-height: 1.45;
}

footer {
  color: var(--muted);
  font-size: 13px;
  padding: 26px 0 36px;
  text-align: center;
}

footer .footer-copy {
  color: inherit;
  text-decoration: none;
}

footer .footer-copy:hover {
  color: var(--text);
  text-decoration: underline;
}

@media (max-width: 980px) {
  .grid-2,
  .grid-3,
  .feature-grid,
  .contacts,
  .form-grid,
  .promo-grid,
  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .promo-copy h3 {
    font-size: 30px;
  }

  .hero-content {
    max-width: 100%;
  }

  .topbar-inner {
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 6px 0 2px;
  }

  .topbar.nav-open .nav {
    display: flex;
  }

  .dropdown {
    width: 100%;
  }

  .menu-item {
    padding-top: 0;
  }

  .dropbtn {
    width: 100%;
    text-align: left;
    font-size: 14px;
    padding: 10px 12px 9px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
  }

  .dropdown-content {
    position: static;
    min-width: 0;
    margin-top: 6px;
    border-radius: 10px;
    box-shadow: none;
  }

  .dropdown:hover .dropdown-content,
  .dropdown:focus-within .dropdown-content {
    display: none;
  }

  .dropdown.open .dropdown-content {
    display: block;
  }
}

/* Script page — manager-friendly layout */
.script-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.script-steps-nav {
  position: sticky;
  top: 88px;
}

.script-steps-nav .card {
  padding: 14px 16px;
}

.script-steps-nav ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.script-steps-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
  transition: background 0.15s;
}

.script-steps-nav a:hover {
  background: var(--surface-soft);
}

.script-steps-nav .step-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--hero-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

.script-steps {
  display: grid;
  gap: 14px;
}

.script-step {
  scroll-margin-top: 96px;
}

.script-step-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.script-step-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.script-time {
  font-size: 12px;
  color: var(--muted);
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.script-method {
  font-size: 11px;
  color: #5a5a5a;
  padding: 3px 8px;
  background: #f5f5f5;
  border-radius: 999px;
}

.script-phrase {
  margin: 0 0 10px;
  padding: 12px 14px;
  background: var(--hero-bg);
  border-left: 3px solid var(--yellow);
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  line-height: 1.5;
}

.script-phrase-label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.script-questions {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.55;
}

.script-questions li {
  margin: 6px 0;
}

.script-note {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--surface-soft);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.script-note strong {
  font-weight: 600;
}

.script-packages {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.script-packages li {
  font-size: 13px;
  line-height: 1.45;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.script-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.script-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
}

.script-checklist li::before {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border: 1.5px solid #c8c8c8;
  border-radius: 4px;
}

.script-branches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 980px) {
  .script-layout {
    grid-template-columns: 1fr;
  }

  .script-steps-nav {
    position: static;
  }

  .script-steps-nav ol {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .script-branches {
    grid-template-columns: 1fr;
  }
}

/* Demo deck — presentation by slides */
.deck-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.deck-nav {
  position: sticky;
  top: 88px;
}

.deck-nav .card {
  padding: 12px 14px;
}

.deck-nav-group {
  margin-bottom: 12px;
}

.deck-nav-group:last-child {
  margin-bottom: 0;
}

.deck-nav-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 6px;
}

.deck-nav ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.deck-nav a {
  display: block;
  padding: 5px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 12px;
  line-height: 1.3;
}

.deck-nav a:hover {
  background: var(--surface-soft);
}

.deck-slides {
  display: grid;
  gap: 20px;
}

.slide-frame {
  scroll-margin-top: 96px;
  min-height: 360px;
  padding: 28px 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--line);
}

.slide-frame.is-title {
  min-height: 300px;
  justify-content: center;
  background: linear-gradient(135deg, var(--hero-bg) 0%, #fff 55%);
}

.slide-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.slide-num {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.slide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.slide-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: #555;
}

.slide-tag.required {
  background: #f0faf0;
  border-color: #c8e6c9;
}

.slide-tag.optional {
  background: #faf8f0;
  border-color: #ece4c8;
}

.slide-tag.price {
  background: #fdf5f5;
  border-color: #f0d0d0;
}

.slide-title {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  line-height: 1.25;
}

.slide-subtitle {
  margin: 0;
  font-size: 16px;
  color: #444;
  line-height: 1.45;
}

.slide-frame.is-title .slide-title {
  font-size: clamp(26px, 3vw, 34px);
}

.slide-list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.55;
}

.slide-list li {
  margin: 7px 0;
}

.slide-list li strong {
  font-weight: 600;
}

.slide-quote {
  margin: 0;
  font-size: 15px;
  font-style: italic;
  color: #444;
  padding: 10px 14px;
  background: var(--surface-soft);
  border-radius: 10px;
}

.slide-outcome {
  margin-top: auto;
  padding: 12px 14px;
  background: var(--hero-bg);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.slide-demo {
  padding: 10px 14px;
  border-left: 3px solid var(--yellow);
  background: #fffdf5;
  font-size: 13px;
  line-height: 1.45;
}

.slide-footnote {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.slide-footer-block {
  margin-top: auto;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .deck-layout {
    grid-template-columns: 1fr;
  }

  .deck-nav {
    position: static;
  }

  .deck-nav ol {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
  }

  .slide-frame {
    min-height: 0;
    padding: 20px 18px;
  }
}

.table-wrap {
  overflow-x: auto;
}

blockquote.master-utp,
blockquote.formula {
  margin: 0;
  padding: 16px 20px;
  border-left: 4px solid var(--yellow);
  background: var(--hero-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15px;
  line-height: 1.55;
}

.page-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
}

.page-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.page-nav-item:hover {
  border-color: var(--yellow);
  box-shadow: 0 6px 20px rgba(242, 201, 84, 0.18);
}

.page-nav-next { text-align: right; }

.page-nav-empty {
  flex: 1;
  background: transparent;
  border: none;
  pointer-events: none;
}

.page-nav-dir { font-size: 12px; color: var(--muted); font-weight: 500; }

.page-nav-section {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.page-nav-next .page-nav-section { margin-left: auto; }

.page-nav-title { font-size: 14px; font-weight: 600; line-height: 1.3; }

@media (max-width: 640px) {
  .page-nav { flex-direction: column; }
  .page-nav-next { text-align: left; }
  .page-nav-next .page-nav-section { margin-left: 0; }
}

.funnel-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 480px;
  margin: 20px auto;
}

.funnel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  width: var(--w, 100%);
}

.funnel-bar-label { font-size: 12px; opacity: 0.9; }
.funnel-bar-pct { font-size: 11px; opacity: 0.75; }

.script-manager {
  background: var(--surface);
  border-left: 4px solid var(--yellow);
  padding: 12px 16px;
  border-radius: 8px;
  margin: 8px 0;
}

.script-client {
  background: #f9f9f9;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 8px 0;
  color: var(--muted);
}

.script-source-r1 { border-left-color: #16a34a; }
.script-source-r2 { border-left-color: var(--yellow); }
.script-source-r3 { border-left-color: #ea580c; }

.pill-r1 { background: #dcfce7; color: #166534; }
.pill-r2 { background: var(--pill-bg); color: var(--pill-text); }
.pill-r3 { background: #ffedd5; color: #c2410c; }

.row-take { background: #f0fdf4; }
.row-skip { background: #fef2f2; }
.row-review { background: #fffbeb; }

.flowchart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 640px;
  margin: 24px auto;
}

.flow-node {
  width: 100%;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}

.flow-node-decision {
  background: #fffdf0;
  border-color: var(--yellow);
  font-weight: 600;
}

.flow-arrow {
  font-size: 22px;
  color: var(--muted);
  padding: 4px 0;
  line-height: 1;
}

.flow-branch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.flow-branch-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
}

.flow-branch-yes { border-left: 4px solid #16a34a; background: #f0fdf4; }
.flow-branch-no { border-left: 4px solid var(--red); background: #fef2f2; }

@media (max-width: 640px) {
  .flow-branch { grid-template-columns: 1fr; }
}
