/* Final cascade layer for the reference-inspired redesign. */
:root {
  --paper: #ffffff;
  --sand: #f5f7fb;
}

.brand {
  gap: 9px;
  color: #172033;
  font-size: 18px;
  letter-spacing: -.7px;
}

.brand > span:last-child > span {
  color: #7657e8;
}

.brand-mark {
  position: relative;
  display: block;
  width: 34px;
  height: 32px;
  border-radius: 8px;
  transform: none;
  background: #7657e8;
  box-shadow: 0 5px 12px #7657e82b;
}

.brand-mark i {
  position: absolute;
  display: block;
  background: white;
  box-shadow: inset -2px -2px 3px #c9c0f2;
}

.brand-mark i:nth-child(1) {
  width: 13px;
  height: 10px;
  left: 5px;
  bottom: 6px;
  border-radius: 55% 45% 48% 52%;
  transform: rotate(-12deg);
}

.brand-mark i:nth-child(2) {
  width: 12px;
  height: 13px;
  left: 14px;
  bottom: 6px;
  border-radius: 46% 54% 58% 42%;
  transform: rotate(8deg);
}

.brand-mark i:nth-child(3) {
  width: 9px;
  height: 8px;
  right: 4px;
  bottom: 6px;
  border-radius: 60% 40% 52% 48%;
  transform: rotate(16deg);
}

footer .brand { color: white; }

.long-form-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 42px;
  margin-top: 48px;
  padding-top: 42px;
  border-top: 1px solid #e3e6ed;
}

.long-form-guide h2 {
  margin: 0 0 12px;
  color: #172033;
  font: 800 21px/1.2 Manrope;
  letter-spacing: -.7px;
}

.long-form-guide p {
  margin: 0;
  color: #667184;
  font-size: 13px;
  line-height: 1.8;
}

.tool-explainer.continuation {
  margin-top: -64px;
  padding-top: 0;
}

.tool-explainer.continuation .long-form-guide {
  margin-top: 0;
}

/* Brighter palette: dark tones are reserved for readable text only. */
.results-panel {
  background: #6d5bd0;
  color: #fff;
}

.result-label,
.round-note,
.fine-print,
.result-breakdown span,
.cost-card span,
.cost-card small {
  color: #e5e0ff;
}

.primary-result strong {
  color: #fff;
}

.result-breakdown {
  border-color: #9385df;
}

.cost-card {
  border-color: #9d90e4;
  background: #5d4cc0;
}

.copy-btn {
  background: #fff;
  color: #5d43c3;
}

.explainer-card.caution {
  border-color: #d8d2f3;
  background: #f3f1ff;
}

footer {
  background: #6452c5;
}

@media (max-width: 700px) {
  .long-form-guide { grid-template-columns: 1fr; gap: 28px; }
}

.ad-strip {
  height: 124px;
  max-width: 1200px;
  margin: 0 auto 26px;
}

.ad-placeholder {
  width: min(970px, calc(100% - 30px));
  height: 92px;
  border: 0;
  background: #fff;
  color: transparent;
}

.tool-explainer {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 50px 36px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 30px #28375508;
}

.explainer-head h2,
.explainer-card h3,
.comparison-block h3,
.troubleshooting-block h3 {
  color: #172033;
}

.explainer-card,
.comparison-block,
.troubleshooting-block {
  border-color: #e3e6ed;
}

.explainer-card.caution {
  border-color: #e6ddc6;
  background: #fffaf0;
}

.table-row.active { background: #f5f2ff; }
.table-row b { color: #7657e8; }

@media (max-width: 600px) {
  .ad-strip {
    height: 88px;
    margin: 0 auto 15px;
  }

  .ad-placeholder { height: 60px; }

  .tool-explainer {
    margin: 0 10px 50px;
    padding: 32px 18px;
  }
}
