.spl-page { padding: 56px 0 100px; display: flex; flex-direction: column; align-items: center; }
.spl-intro { text-align: center; max-width: 48ch; margin-bottom: 24px; }
.spl-intro .hero__eyebrow { margin-bottom: 18px; }
.spl-intro h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -0.02em; margin: 0 0 10px; }
.spl-intro p { color: var(--ink-soft); margin: 0; line-height: 1.6; }

.spl-type-tabs { display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px; max-width: fit-content; margin: 0 auto 24px; }
.spl-type-tab { border: none; background: transparent; padding: 10px 22px; border-radius: 999px; font-weight: 600; font-size: 0.88rem; color: var(--ink-soft); cursor: pointer; transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.spl-type-tab:hover { color: var(--ink); }
.spl-type-tab.is-active { background: var(--ink); color: #fff; }

.spl-section { display: none; }
.spl-section.is-active { display: block; }

.spl-content { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 100%; max-width: 960px; }
.spl-content-single { width: 100%; max-width: 600px; margin: 0 auto; }

.spl-graph-wrap { position: sticky; top: 20px; }
.spl-graph { background: var(--ink); border-radius: var(--radius-lg); aspect-ratio: 1/1; position: relative; overflow: hidden; box-shadow: 0 30px 60px -25px rgba(27,31,59,0.45); }
#spl-canvas-2d { width: 100%; height: 100%; }
.spl-graph__hint { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); font-size: 0.68rem; color: rgba(255,255,255,0.35); background: rgba(0,0,0,0.3); padding: 4px 12px; border-radius: 999px; white-space: nowrap; pointer-events: none; }

.spl-input-wrap { display: flex; flex-direction: column; gap: 14px; }
.spl-input-wrap--wide { max-width: 600px; margin: 0 auto; }

.spl-eq-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 16px; }
.spl-eq-label { font-size: 0.72rem; font-weight: 700; color: var(--ink-soft); display: block; margin-bottom: 8px; }
.spl-eq-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.spl-coef { width: 58px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 6px; font-family: var(--font-mono); font-size: 0.88rem; font-weight: 600; text-align: center; background: var(--bg); color: var(--ink); transition: border-color var(--dur-fast) var(--ease); }
.spl-coef:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(61,90,254,0.1); }

.spl-results { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.spl-result-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; text-align: center; }
.spl-result-card--full { grid-column: 1/-1; }
.spl-result-label { font-size: 0.68rem; font-weight: 600; color: var(--ink-soft); display: block; margin-bottom: 2px; }
.spl-result-value { font-family: var(--font-mono); font-size: 1rem; font-weight: 700; color: var(--accent-ink); }

.spl-steps { background: rgba(61,90,254,0.03); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 16px; }
.spl-steps__title { font-size: 0.78rem; font-weight: 700; color: var(--ink); display: block; margin-bottom: 6px; }
.spl-steps__content { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); line-height: 1.7; }

@media (max-width: 800px) {
  .spl-content { grid-template-columns: 1fr; }
  .spl-graph-wrap { position: static; }
  .spl-eq-row { font-size: 0.78rem; }
  .spl-coef { width: 48px; font-size: 0.76rem; }
}
