/* Header, footer, buttons, cards and tokens are shared with the product pages */
@import url("/assets/product-page.css");

.info-main { padding: 56px 0 32px; }

.info-intro {
  position: relative;
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
  isolation: isolate;
}
.info-intro::before {
  content: "";
  position: absolute; z-index: -1;
  left: 50%; top: 50%;
  width: min(460px, 100vw); aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(-12deg);
  background-image: radial-gradient(circle, rgba(17, 24, 32, .3) 1.6px, transparent 2.2px);
  background-size: 11px 11px;
  -webkit-mask-image: radial-gradient(ellipse 50% 42% at 50% 50%, #000 0%, rgba(0, 0, 0, .5) 45%, transparent 72%);
          mask-image: radial-gradient(ellipse 50% 42% at 50% 50%, #000 0%, rgba(0, 0, 0, .5) 45%, transparent 72%);
  opacity: .4;
}
.info-intro h1 {
  margin: 0 0 14px;
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  font-weight: 700; letter-spacing: -.035em; line-height: 1.05;
}
.info-intro p:last-child { margin: 0; font-size: 1.08rem; color: var(--ink-soft); }

.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.info-card h2 + p { margin-bottom: 0; }
.info-benefits { margin-top: 16px; }
.info-benefits h2:not(:first-child) { margin-top: 28px; }

.benefit-list { list-style: none; display: grid; gap: 12px; margin: 16px 0 0; padding: 0; }
.benefit-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-soft); }
.benefit-list li::before {
  content: "✓";
  flex: 0 0 22px; height: 22px;
  display: grid; place-items: center;
  font-size: .72rem; font-weight: 800;
  color: var(--teal); background: var(--teal-soft);
  border-radius: 50%;
}

.info-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.info-links a {
  padding: 9px 16px;
  font-size: .88rem; font-weight: 600;
  text-decoration: none;
  background: #f1f4f7;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.info-links a:hover { color: #fff; background: var(--ink); }

.info-note {
  max-width: 760px;
  margin: 24px auto 0;
  padding: 16px 20px;
  font-size: .86rem; text-align: center;
  color: #24524f; background: var(--teal-soft);
  border-radius: 16px;
}

/* Calculator */
.calc-form { display: grid; gap: 18px; margin-top: 4px; }
.calc-form label { display: block; margin-bottom: 6px; font-size: .84rem; font-weight: 600; color: var(--ink-soft); }
.calc-form input, .calc-form select {
  width: 100%;
  padding: 13px 14px;
  font: inherit; color: var(--ink);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.calc-form input:focus, .calc-form select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.calc-pair { display: grid; grid-template-columns: 1fr 92px; gap: 10px; }
.calc-form button { width: 100%; border: 0; cursor: pointer; font: inherit; font-weight: 600; }

.calc-results {
  display: flex; flex-direction: column;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(255, 255, 255, .5), transparent 70%),
    linear-gradient(180deg, #a9c6c9, #e1eeef);
}
.calc-results > div:first-of-type { flex: 1; }
.result-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 8px 0 16px; }
.result-list > div {
  padding: 16px;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(8px);
  border-radius: 14px;
}
.result-list dt { font-size: .78rem; font-weight: 600; color: var(--muted); }
.result-list dd { margin: 4px 0 0; font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
#calc-status { min-height: 44px; margin: 0; font-size: .88rem; color: var(--ink-soft); }
#calc-status[data-state="error"] { color: #a63f3f; font-weight: 600; }

.calc-track {
  position: relative;
  height: 40px;
  overflow: hidden;
  background: rgba(255, 255, 255, .7);
  border-radius: 10px;
}
.calc-fill { width: 0; height: 100%; background: linear-gradient(90deg, #1f8f8c, #5cc2bd); transition: width .25s ease; }
.calc-ticks {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(10% - 1px), rgba(17, 24, 32, .25) 10%);
}
.calc-scale { display: flex; justify-content: space-between; margin-top: 8px; font-size: .74rem; font-weight: 600; color: var(--ink-soft); }

/* Footer back link */
.footer-row > a { font-size: .88rem; font-weight: 600; color: var(--teal); text-decoration: none; }
.footer-row > a:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .info-main { padding-top: 36px; }
  .info-grid { grid-template-columns: 1fr; }
}
