:root {
  --bg: #0a0c10;
  --panel: #14171d;
  --panel-2: #1b1e25;
  --line: rgba(255,255,255,0.12);
  --text: #fbfbfb;
  --muted: rgba(255,255,255,0.72);
  --soft: rgba(255,255,255,0.08);
  --purple: #880eb0;
  --purple-soft: #b980d1;
  --teal: #1f8a7a;
  --teal-soft: #46c9b3;
  --red: #c62828;
  --red-soft: #ff8a8a;
  --orange: #f57c00;
  --yellow: #fbc02d;
  --radius: 8px;
  --shadow: 0 20px 60px rgba(0,0,0,0.28);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rotoperda-page,
.rotoperda-page *,
.rotoperda-page *::before,
.rotoperda-page *::after,
.status-modal,
.status-modal *,
.status-modal *::before,
.status-modal *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #0a0c10;
}

body.rotoperda-document,
body.rotoperda-wp-page {
  margin: 0;
  padding: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 0%, rgba(136,14,176,0.24), transparent 32rem),
    radial-gradient(circle at 88% 8%, rgba(31,138,122,0.22), transparent 30rem),
    linear-gradient(145deg, #0a0c10 0%, #14171d 54%, #0a0c10 100%);
  overflow-x: hidden;
}

.rotoperda-page,
.status-modal,
body.rotoperda-document,
body.rotoperda-wp-page {
  color: var(--text);
  font-family: var(--font);
  line-height: 1.45;
}

.rotoperda-page {
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 0%, rgba(136,14,176,0.24), transparent 32rem),
    radial-gradient(circle at 88% 8%, rgba(31,138,122,0.22), transparent 30rem),
    linear-gradient(145deg, #0a0c10 0%, #14171d 54%, #0a0c10 100%);
}

:where(.rotoperda-page, .status-modal, body.rotoperda-document) button,
:where(.rotoperda-page, .status-modal, body.rotoperda-document) input,
:where(.rotoperda-page, .status-modal, body.rotoperda-document) select {
  font: inherit;
}

:where(.rotoperda-page, .status-modal, body.rotoperda-document) button {
  cursor: pointer;
}

:where(.rotoperda-page, .status-modal, body.rotoperda-document) a {
  color: inherit;
}

.rotoperda-page :where(h1,h2,h3,h4,h5,h6) {
  color: var(--text);
}

.rotoperda-page :where(p,li,summary,label,small,strong,span) {
  color: inherit;
}

.rotoperda-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(34px, 6vw, 64px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: min(230px, 54vw);
  height: auto;
  display: block;
}

.episode-pill {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  font-size: 0.84rem;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  font-size: 0.84rem;
  text-decoration: none;
}

.nav-links .nav-cta {
  border-color: rgba(70,201,179,0.55);
  color: var(--text);
  background: rgba(15,89,89,0.24);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.52fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
  margin-bottom: clamp(54px, 8vw, 92px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 5vw, 54px);
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 720px;
}

.hero-media {
  position: relative;
  min-height: clamp(360px, 42vw, 520px);
  margin: 0;
  isolation: isolate;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 8% -4% 6% 8%;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(136,14,176,0.38), rgba(31,138,122,0.26));
  filter: blur(24px);
  opacity: 0.82;
  z-index: -1;
}

.hero-crop {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 22px 54px rgba(0,0,0,0.26);
  overflow: hidden;
}

.hero-crop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-crop-main {
  inset: 0 0 6% 8%;
  clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 92%);
}

.hero-crop-main img {
  object-position: 68% 42%;
}

.hero-crop-report {
  left: 0;
  bottom: 0;
  width: 46%;
  height: 31%;
  clip-path: polygon(0 8%, 100% 0, 92% 100%, 8% 100%);
}

.hero-crop-report img {
  object-position: 36% 78%;
  transform: scale(1.78);
  transform-origin: 36% 80%;
}

.hero-crop-fire {
  top: 7%;
  left: 3%;
  width: 38%;
  height: 22%;
  clip-path: polygon(9% 0, 100% 10%, 90% 100%, 0 88%);
  opacity: 0.92;
}

.hero-crop-fire img {
  object-position: 22% 37%;
  transform: scale(1.28);
}

.promise-list {
  display: grid;
  gap: 9px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  color: rgba(255,255,255,0.78);
}

.promise-list li {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 10px;
  align-items: baseline;
}

.promise-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--teal-soft);
}

.calculator-block,
.numbers-section {
  display: grid;
  gap: 28px;
  margin-bottom: clamp(54px, 8vw, 90px);
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
  gap: 22px;
  align-items: start;
}

.section-head {
  max-width: 760px;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--teal-soft);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal-soft);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rotoperda-page h1,
.rotoperda-page h2,
.rotoperda-page h3,
.rotoperda-page p {
  margin-top: 0;
}

.rotoperda-page h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(2.15rem, 4.25vw, 4.05rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.accent-word {
  color: var(--red-soft);
}

.lead {
  max-width: 650px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-actions,
.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text);
  background: var(--soft);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.12);
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 16px 42px rgba(198,40,40,0.22);
}

.btn-outline {
  border-color: var(--line);
  background: rgba(255,255,255,0.04);
}

.hero-panel {
  display: grid;
  gap: 14px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(16px, 3vw, 28px);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  box-shadow: var(--shadow);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.metric-card,
.input-panel,
.result-panel,
.chart-panel,
.course-panel,
.video-panel,
.cta-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20,23,29,0.86);
  box-shadow: 0 12px 36px rgba(0,0,0,0.18);
}

.metric-card {
  min-height: 132px;
  padding: 16px;
  overflow: hidden;
}

.metric-label {
  min-height: 38px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

.metric-value {
  display: block;
  font-size: clamp(1.35rem, 2.7vw, 2rem);
  font-weight: 850;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.metric-note {
  margin-top: 10px;
  color: rgba(255,255,255,0.58);
  font-size: 0.78rem;
}

.layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 22px;
}

.input-panel,
.result-panel,
.chart-panel,
.course-panel,
.video-panel,
.cta-panel {
  padding: clamp(24px, 4vw, 38px);
}

.section-title {
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-text {
  margin-bottom: 18px;
  color: var(--muted);
}

.mode-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.mode-strip span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(70,201,179,0.34);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: rgba(255,255,255,0.82);
  background: rgba(15,89,89,0.18);
  font-size: 0.9rem;
}

.mode-strip strong {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #0a0c10;
  background: var(--teal-soft);
  font-size: 0.78rem;
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: rgba(255,255,255,0.82);
  font-size: 0.78rem;
  font-weight: 700;
}

.field-help {
  color: rgba(255,255,255,0.52);
  font-size: 0.78rem;
}

.field-error {
  color: #ff8f82;
  font-size: 0.78rem;
  font-weight: 700;
}

.input-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}

.input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 9px 10px;
  color: var(--text);
  background: transparent;
}

.input-wrap input:focus {
  box-shadow: inset 0 0 0 2px rgba(70,201,179,0.55);
}

.field.is-invalid .input-wrap,
.input-wrap:has(input[aria-invalid="true"]),
.input-wrap:has(select[aria-invalid="true"]) {
  border-color: rgba(255,143,130,0.85);
  box-shadow: 0 0 0 1px rgba(255,143,130,0.2);
}

.checkbox-field.is-invalid,
.checkbox-field:has(input[aria-invalid="true"]) {
  border-color: rgba(255,143,130,0.85);
}

.unit {
  padding: 0 10px;
  color: rgba(255,255,255,0.52);
  font-size: 0.76rem;
  white-space: nowrap;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.calc-readout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.calculator-submit {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.calculator-submit span {
  color: rgba(255,255,255,0.58);
  font-size: 0.84rem;
}

.readout-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px;
  background: rgba(255,255,255,0.04);
  min-width: 0;
}

.readout-label {
  margin-bottom: 5px;
  color: rgba(255,255,255,0.58);
  font-size: 0.75rem;
}

.readout-value {
  display: block;
  font-weight: 820;
  overflow-wrap: anywhere;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.seo-guide {
  display: grid;
  gap: 18px;
}

.toc-panel {
  border: 1px solid rgba(70,201,179,0.28);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(15,89,89,0.16);
}

.toc-panel strong {
  display: block;
  margin-bottom: 10px;
}

.toc-panel ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.toc-panel a,
.guide-note a {
  color: var(--teal-soft);
  font-weight: 800;
  text-decoration: none;
}

.toc-panel a:hover,
.guide-note a:hover {
  text-decoration: underline;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.guide-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255,255,255,0.05);
}

.guide-card h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.2;
}

.guide-card p {
  margin: 0 0 10px;
  color: var(--muted);
}

.guide-card p:last-child,
.guide-note {
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.rotoperda-page details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
}

.rotoperda-page summary {
  cursor: pointer;
  font-weight: 800;
}

.rotoperda-page details p {
  margin: 10px 0 0;
  color: var(--muted);
}

.scenario-helper {
  margin-top: 6px;
  color: rgba(255,255,255,0.58);
  font-size: 0.78rem;
}

.result-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255,255,255,0.05);
  min-width: 0;
}

.result-card.wide {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(198,40,40,0.20), rgba(245,124,0,0.11));
}

.result-locked {
  display: grid;
  gap: 8px;
  border: 1px dashed rgba(255,255,255,0.22);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255,255,255,0.04);
}

.result-locked strong {
  font-size: 1rem;
}

.result-locked p {
  margin: 0;
  color: var(--muted);
}

.quick-result-content {
  display: grid;
  gap: 18px;
}

.quick-result-content[hidden],
.report-lead-panel[hidden],
.report-complete-panel[hidden],
.whatsapp-field[hidden],
.resin-opportunity[hidden],
#cenarios[hidden] {
  display: none !important;
}

.quick-actions {
  margin-top: 0;
}

.resin-opportunity {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(70,201,179,0.34);
  border-radius: var(--radius);
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(31,138,122,0.2), rgba(245,124,0,0.12)),
    rgba(255,255,255,0.04);
  box-shadow: 0 16px 42px rgba(31,138,122,0.12);
}

.resin-opportunity-kicker {
  color: var(--teal-soft);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.resin-opportunity strong {
  font-size: clamp(1rem, 1.8vw, 1.28rem);
}

.resin-opportunity p,
.resin-opportunity small {
  margin: 0;
  color: var(--muted);
}

.resin-opportunity [data-resin-opportunity] {
  color: var(--teal-soft);
  font-weight: 900;
}

.result-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.result-value {
  display: block;
  font-size: clamp(1.18rem, 2vw, 1.75rem);
  font-weight: 880;
  line-height: 1.04;
  overflow-wrap: normal;
  word-break: normal;
}

.result-card.wide .result-value {
  font-size: clamp(1.5rem, 2.7vw, 2.15rem);
}

.result-small {
  margin-top: 8px;
  color: rgba(255,255,255,0.62);
  font-size: 0.82rem;
}

.chart-panel {
  margin-bottom: clamp(54px, 8vw, 90px);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scenario-lab {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(70,201,179,0.18), transparent 26rem),
    linear-gradient(135deg, rgba(20,23,29,0.94), rgba(10,12,16,0.98));
}

.scenario-lab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.scenario-head {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.scenario-live-badge {
  flex: 0 0 auto;
  border: 1px solid rgba(70,201,179,0.36);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--teal-soft);
  background: rgba(15,89,89,0.16);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.scenario-comparison {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.scenario-cost-card {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 220px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--radius);
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03)),
    rgba(255,255,255,0.04);
  box-shadow: 0 14px 38px rgba(0,0,0,0.16);
  cursor: pointer;
  outline: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.scenario-cost-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(70,201,179,0.12), transparent 48%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.scenario-cost-card:hover,
.scenario-cost-card:focus-visible,
.scenario-cost-card.is-active {
  border-color: rgba(70,201,179,0.46);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04)),
    rgba(255,255,255,0.05);
  box-shadow: 0 20px 48px rgba(0,0,0,0.25);
  transform: translateY(-3px);
}

.scenario-cost-card:hover::before,
.scenario-cost-card:focus-visible::before,
.scenario-cost-card.is-active::before {
  opacity: 1;
}

.scenario-cost-card.current {
  border-color: rgba(255,138,138,0.28);
}

.scenario-cost-card.controlled {
  border-color: rgba(70,201,179,0.28);
}

.scenario-cost-card.optimized {
  border-color: rgba(185,128,209,0.3);
}

.scenario-card-kicker {
  margin-bottom: 12px;
  color: rgba(255,255,255,0.68);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.impact-number {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
  font-size: clamp(1.35rem, 1.95vw, 1.9rem);
  font-weight: 900;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.scenario-cost-card.current .impact-number {
  color: var(--red-soft);
}

.scenario-period {
  display: block;
  margin: -4px 0 10px;
  color: rgba(255,255,255,0.58);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.scenario-savings {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  width: fit-content;
  margin-bottom: 12px;
  border: 1px solid rgba(70,201,179,0.26);
  border-radius: 999px;
  padding: 7px 9px;
  color: rgba(255,255,255,0.74);
  background: rgba(15,89,89,0.18);
  font-size: 0.78rem;
}

.scenario-savings strong {
  color: var(--teal-soft);
}

.scenario-cost-card p {
  margin: auto 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.enhanced-chart {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255,255,255,0.035);
}

.bar-row {
  border-radius: var(--radius);
  padding: 8px;
  transition: background 180ms ease, transform 180ms ease;
}

.bar-row.is-active {
  background: rgba(255,255,255,0.06);
  transform: translateX(3px);
}

.bar-fill {
  position: relative;
  overflow: hidden;
}

.bar-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.42), transparent);
  transform: translateX(-120%);
  animation: bar-sheen 2.6s ease-in-out infinite;
}

.scenario-note {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: rgba(255,255,255,0.68);
  font-size: 0.92rem;
}

.scenario-note strong {
  color: var(--text);
}

@keyframes bar-sheen {
  0% {
    transform: translateX(-120%);
  }
  44%,
  100% {
    transform: translateX(120%);
  }
}

.chart-panel,
.course-panel,
.form-panel,
.video-panel,
.cta-panel {
  margin-top: 0;
}

.course-panel {
  margin-bottom: clamp(54px, 8vw, 90px);
}

.course-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 18px;
}

.course-card,
.class-chip {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
}

.course-card {
  padding: 16px;
}

.course-card strong,
.class-chip strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.course-card p,
.class-chip p {
  margin: 0;
  color: var(--muted);
}

.course-card.feature {
  background: linear-gradient(135deg, rgba(31,138,122,0.18), rgba(136,14,176,0.14));
}

.course-highlights,
.class-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.class-grid {
  margin-top: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.class-chip {
  display: flex;
  min-height: 178px;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}

.class-chip .btn {
  align-self: flex-start;
  margin-top: auto;
  line-height: 1.22;
  text-align: center;
  white-space: normal;
}

.section-action {
  margin-top: 18px;
}

.course-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  counter-reset: course-step;
}

.course-steps li {
  counter-increment: course-step;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255,255,255,0.05);
}

.course-steps li::before {
  content: counter(course-step, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  color: var(--teal-soft);
  font-weight: 900;
}

.course-steps strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.course-steps p {
  margin: 0;
  color: var(--muted);
}

.course-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.course-cta p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.form-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 38px);
  margin-bottom: clamp(54px, 8vw, 90px);
  background: linear-gradient(135deg, rgba(31,138,122,0.18), rgba(20,23,29,0.92));
  box-shadow: 0 12px 36px rgba(0,0,0,0.18);
}

.course-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.6fr);
  gap: 18px;
  align-items: end;
}

.report-lead-panel .course-form,
.course-interest-panel .course-form {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 24px;
}

.report-lead-panel .lead-form,
.course-interest-panel .lead-form {
  max-width: 860px;
}

.course-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.course-form .field.wide,
.course-form .checkbox-field.wide {
  grid-column: 1 / -1;
}

.lead-form {
  display: grid;
  gap: 14px;
}

.checkbox-field {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--muted);
  background: rgba(255,255,255,0.05);
  font-size: 0.84rem;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--teal-soft);
}

.consent-field {
  color: rgba(255,255,255,0.72);
}

.report-lead-panel {
  margin-bottom: 22px;
}

.report-complete-panel {
  background: linear-gradient(135deg, rgba(31,138,122,0.16), rgba(20,23,29,0.92));
}

.input-wrap select,
.input-wrap textarea {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 12px;
  color: var(--text);
  background: transparent;
}

.input-wrap select {
  appearance: none;
  cursor: pointer;
}

.select-field .input-wrap {
  position: relative;
}

.select-field .input-wrap::after {
  content: "v";
  position: absolute;
  right: 13px;
  top: 50%;
  color: var(--teal-soft);
  font-size: 0.76rem;
  font-weight: 900;
  pointer-events: none;
  transform: translateY(-50%);
}

.input-wrap textarea {
  min-height: 84px;
  resize: vertical;
}

.input-wrap select option {
  color: #111;
}

.chart {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(112px, 160px) 1fr minmax(110px, auto);
  gap: 12px;
  align-items: center;
}

.bar-label {
  color: rgba(255,255,255,0.82);
  font-weight: 700;
}

.bar-track {
  height: 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.09);
  overflow: hidden;
}

.bar-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--teal-soft));
  transition: width 520ms ease;
}

.bar-row:first-child .bar-fill {
  background: linear-gradient(90deg, var(--red), var(--orange));
}

.bar-value {
  color: var(--text);
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}

.video-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 22px;
  align-items: center;
  margin-bottom: clamp(54px, 8vw, 90px);
}

.embed-space {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 280px;
  border: 1px dashed rgba(255,255,255,0.26);
  border-radius: var(--radius);
  color: rgba(255,255,255,0.66);
  background:
    linear-gradient(135deg, rgba(136,14,176,0.16), rgba(31,138,122,0.13)),
    rgba(255,255,255,0.04);
  text-align: center;
  padding: 18px;
}

.embed-link {
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.embed-link:hover {
  border-color: rgba(255,255,255,0.48);
  transform: translateY(-2px);
}

.embed-space img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: saturate(0.9) contrast(1.05);
}

.embed-overlay {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  max-width: 430px;
  justify-items: center;
  padding: 18px;
}

.embed-kicker {
  color: var(--teal-soft);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.embed-overlay strong {
  color: var(--text);
  font-size: clamp(1.3rem, 3vw, 2rem);
}

.embed-overlay p {
  margin: 0;
}

.embed-play {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50%;
  color: var(--text);
  background: rgba(198,40,40,0.72);
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, rgba(198,40,40,0.24), rgba(136,14,176,0.18));
}

.cta-panel h2 {
  margin-bottom: 6px;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.05;
}

.cta-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.cta-panel .microcopy {
  margin-top: 8px;
  color: rgba(255,255,255,0.68);
  font-size: 0.9rem;
}

.feedback {
  min-height: 20px;
  margin-top: 12px;
  color: var(--teal-soft);
  font-size: 0.86rem;
}

.status-modal[hidden] {
  display: none !important;
}

.status-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}

.status-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 12, 0.72);
  backdrop-filter: blur(10px);
}

.status-modal__card {
  position: relative;
  width: min(100%, 460px);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 18px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(27, 42, 45, 0.98), rgba(13, 19, 22, 0.98));
  box-shadow: 0 28px 80px rgba(0,0,0,0.48);
  outline: 0;
}

.status-modal__state {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border: 1px solid rgba(70,201,179,0.45);
  border-radius: 50%;
  color: var(--teal-soft);
  background: rgba(70,201,179,0.1);
  font-weight: 900;
}

.status-modal.is-success .status-modal__state::before {
  content: "OK";
  font-size: 0.78rem;
}

.status-modal.is-error .status-modal__state {
  border-color: rgba(255,143,130,0.55);
  color: #ff8f82;
  background: rgba(255,143,130,0.1);
}

.status-modal.is-error .status-modal__state::before {
  content: "!";
  font-size: 1.1rem;
}

.status-modal.is-loading .status-modal__state::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 3px solid rgba(70,201,179,0.26);
  border-top-color: var(--teal-soft);
  border-radius: 50%;
  animation: status-spin 0.85s linear infinite;
}

.status-modal__actions {
  margin-top: 20px;
}

@keyframes status-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 940px) {
  .hero,
  .layout,
  .calculator-layout,
  .numbers-section,
  .course-layout,
  .course-form,
  .video-panel {
    grid-template-columns: 1fr;
  }

	  .course-highlights,
	  .class-grid,
	  .course-steps,
	  .guide-grid,
	  .scenario-comparison {
	    grid-template-columns: repeat(2, minmax(0, 1fr));
	  }

  .hero {
    min-height: unset;
  }

  .hero-media {
    min-height: 360px;
  }

  .hero-crop-main {
    inset: 0;
  }
}

@media (max-width: 720px) {
  .rotoperda-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 18px;
  }

  .topbar,
  .cta-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-grid,
  .result-grid,
  .calc-readout,
  .input-grid,
	  .info-grid,
	  .guide-grid,
	  .course-highlights,
  .class-grid,
  .course-steps,
  .course-form-grid,
  .scenario-comparison {
    grid-template-columns: 1fr;
  }

  .bar-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .bar-value {
    text-align: left;
  }

  .episode-pill {
    white-space: normal;
  }

  .hero-media {
    min-height: 300px;
  }

  .hero-crop-fire {
    display: none;
  }

  .hero-crop-report {
    width: 45%;
    height: 32%;
  }

  .scenario-head,
  .scenario-note {
    flex-direction: column;
  }

  .scenario-cost-card {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}
