@import url("/shared/site-page.css?v=roi-20260618");

:root {
  --roi-panel: rgba(255, 255, 255, 0.82);
  --roi-panel-strong: #ffffff;
  --roi-blue-soft: #e4f5fc;
  --roi-ink: #071116;
  --roi-green: #18a96e;
}

.roi-page {
  background:
    radial-gradient(780px 360px at 74% 6%, rgba(34, 158, 217, 0.16), transparent 66%),
    radial-gradient(620px 300px at 16% 16%, rgba(35, 201, 133, 0.11), transparent 72%),
    linear-gradient(180deg, #f7fbfd 0%, #ffffff 52%, #eef7fb 100%);
}

.hero-section {
  padding: 154px 0 82px;
}

.hero-grid,
.roi-layout,
.final-cta-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  align-items: center;
  gap: 42px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  color: var(--text);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: var(--text);
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-lead,
.section-copy p,
.final-cta p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.hero-lead {
  max-width: 720px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.roi-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 820;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.roi-button:hover {
  transform: translateY(-1px);
}

.roi-button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  box-shadow: var(--shadow-blue);
}

.roi-button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
}

.roi-button.light {
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.hero-note {
  max-width: 690px;
  padding: 14px 16px;
  border: 1px solid rgba(7, 17, 22, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
  color: rgba(56, 72, 82, 0.82);
  font-size: 14px;
  line-height: 1.45;
}

.hero-panel {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.62)),
    rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.signal-card {
  padding: 24px;
  border: 1px solid rgba(7, 17, 22, 0.08);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(34, 158, 217, 0.1), rgba(35, 201, 133, 0.08)),
    #ffffff;
}

.signal-status {
  width: fit-content;
  display: block;
  margin-bottom: 18px;
  padding: 7px 10px;
  border-radius: var(--radius);
  background: rgba(24, 169, 110, 0.12);
  color: var(--roi-green);
  font-size: 12px;
  font-weight: 900;
}

.signal-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 26px;
  line-height: 1.12;
}

.signal-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.flow-card {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.flow-step,
.flow-total {
  padding: 18px;
  border: 1px solid rgba(7, 17, 22, 0.08);
  border-radius: var(--radius);
  background: #ffffff;
}

.flow-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 0.5fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.flow-step span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--roi-blue-soft);
  color: var(--accent);
  font-weight: 900;
}

.flow-step strong,
.flow-total strong {
  color: var(--text);
}

.flow-step em {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  line-height: 1.32;
}

.flow-total {
  background:
    linear-gradient(135deg, rgba(7, 17, 22, 0.96), rgba(8, 37, 52, 0.96));
  color: #ffffff;
}

.flow-total span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 760;
}

.flow-total strong {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.3;
}

.result-grid span,
.result-head span {
  display: block;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 720;
}

.roi-section {
  position: relative;
  padding: 100px 0;
  border-top: 1px solid rgba(7, 17, 22, 0.08);
  border-bottom: 1px solid rgba(7, 17, 22, 0.08);
  background:
    linear-gradient(90deg, rgba(34, 158, 217, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(34, 158, 217, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, #e8f6fc 0%, #f7fbfd 48%, #eaf6fb 100%);
  background-size: 42px 42px, 42px 42px, auto;
}

.roi-layout {
  align-items: start;
}

.section-copy {
  position: sticky;
  top: 118px;
}

.section-copy p {
  max-width: 520px;
}

.preset-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.preset-button {
  min-height: 40px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.preset-button:hover {
  transform: translateY(-1px);
}

.preset-button.is-active {
  border-color: rgba(34, 158, 217, 0.38);
  background: var(--roi-blue-soft);
  color: var(--accent);
}

.roi-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  background: var(--roi-panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.field-grid {
  display: grid;
  gap: 12px;
}

.control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.58fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 16px;
  border: 1px solid rgba(7, 17, 22, 0.08);
  border-radius: var(--radius);
  background: #ffffff;
}

.control span {
  color: var(--text);
  font-size: 15px;
  font-weight: 850;
}

.control em {
  grid-column: 1 / -1;
  color: var(--muted-2);
  font-size: 13px;
  font-style: normal;
  line-height: 1.35;
}

.control strong {
  min-width: 54px;
  color: var(--accent);
  font-size: 17px;
  text-align: right;
}

.control input[type="number"],
.control input[type="text"],
.control select {
  width: 100%;
  min-height: 44px;
  padding: 10px 11px;
  border: 1px solid rgba(7, 17, 22, 0.15);
  border-radius: var(--radius);
  background: #fbfdfe;
  color: var(--text);
  font: inherit;
  font-weight: 760;
}

.control input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.result-panel {
  padding: 22px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(7, 17, 22, 0.96), rgba(8, 37, 52, 0.96));
  color: #ffffff;
  box-shadow: 0 28px 70px rgba(4, 16, 24, 0.25);
}

.result-head {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.result-head span,
.result-grid span {
  color: rgba(255, 255, 255, 0.65);
}

.result-head strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.result-grid div {
  min-height: 96px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.result-grid strong {
  display: block;
  margin-top: 10px;
  font-size: 20px;
  line-height: 1.08;
}

.result-panel p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  line-height: 1.46;
}

.formula-section {
  padding: 96px 0;
}

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

.formula-grid article {
  padding: 26px;
  border: 1px solid rgba(7, 17, 22, 0.08);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.formula-grid span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: var(--radius);
  background: var(--roi-blue-soft);
  color: var(--accent);
  font-weight: 900;
}

.formula-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.final-cta {
  padding: 96px 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #061018, #092231);
  background-size: 58px 58px, 58px 58px, auto;
  color: #ffffff;
}

.final-cta h2,
.final-cta p {
  color: #ffffff;
}

.final-cta p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.72);
}

.final-cta .roi-button {
  justify-self: end;
  align-self: center;
}

@media (max-width: 1040px) {
  .hero-grid,
  .roi-layout,
  .final-cta-layout {
    grid-template-columns: 1fr;
  }

  .section-copy {
    position: static;
  }

  .final-cta .roi-button {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 28px);
  }

  .hero-section {
    padding: 126px 0 68px;
  }

  .hero-actions,
  .roi-button {
    width: 100%;
  }

  .formula-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .roi-section,
  .formula-section,
  .final-cta {
    padding: 72px 0;
  }

  .roi-card,
  .hero-panel {
    padding: 14px;
  }

  .control {
    grid-template-columns: 1fr;
  }

  .control strong {
    text-align: left;
  }

  .flow-step {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .flow-step em {
    grid-column: 2;
  }

  .signal-card strong {
    font-size: 22px;
  }
}
