/* ELPIDA page: the few pieces the TENA stylesheet does not already cover.
   Uses the TENA light-theme tokens (body.page). */

/* Device photo: show the whole product, not a cropped video frame */
.elpida-frame { aspect-ratio: 4 / 3; background: #f3f8f4; }
.elpida-frame .hero-video { object-fit: contain; padding: 6%; }

/* Five steps on one row on wide screens */
@media (min-width: 1181px) {
  .steps-grid.steps-5 { grid-template-columns: repeat(5, 1fr); }
}

/* One price card, centred */
.price-grid-single { grid-template-columns: minmax(0, 520px); justify-content: center; margin-left: auto; margin-right: auto; }

/* ---- Loss calculator ---- */
.calc-wrap {
  display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 22px;
  align-items: start; margin-top: 44px; max-width: 1180px;
}
.calc-inputs, .calc-results { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh-1); padding: 28px 26px; }
.calc-results { display: grid; gap: 18px; }
.calc-inputs label { display: block; margin-bottom: 18px; font-size: 13px; font-weight: 600; color: var(--heading); }
.calc-inputs input {
  display: block; width: 100%; margin-top: 8px; padding: 11px 13px;
  font: 500 15px/1.3 'Inter', sans-serif; color: var(--text);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
}
.calc-inputs input:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-hint { display: block; margin-top: 6px; font-size: 12px; font-weight: 400; color: var(--muted); }
.assumptions { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 0; }
.assumptions p { margin: 0; }
.assumptions .assumptions-head { font-weight: 700; color: var(--heading); margin-bottom: 6px; }
.assumptions code { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent); }
.result-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.result-tile { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fff; }
.result-tile.headline { border-color: var(--accent-dim); background: var(--accent-soft); }
.result-tile .lbl { margin: 0 0 6px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.result-tile .val { margin: 0; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 26px; color: var(--heading); }
.result-tile.headline .val { color: var(--accent); }
.calc-chart { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-top: 16px; border-bottom: 1px solid var(--line); }
.calc-bar { flex: 1; min-width: 6px; position: relative; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--accent-2), var(--accent)); transition: height .4s ease; }
.calc-bar.future { opacity: .65; }
.calc-bar.context { background: var(--muted); opacity: .35; }
.calc-bar:hover::after {
  content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  margin-bottom: 4px; padding: 4px 7px; border-radius: 6px; white-space: nowrap; z-index: 5;
  background: var(--heading); color: #fff; font: 11px/1.3 'JetBrains Mono', monospace;
}
.calc-axis { display: flex; gap: 4px; margin-top: 6px; }
.calc-axis span { flex: 1; text-align: center; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--muted); }
.calc-note { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.caveat { margin: 0; padding: 12px 16px; border-left: 3px solid var(--accent-2); border-radius: 0 10px 10px 0; background: var(--accent-soft); font-size: 14px; color: var(--text); }

@media (max-width: 900px) {
  .calc-wrap { grid-template-columns: 1fr; }
  .result-tiles { grid-template-columns: 1fr; }
}
