/* ParaFOMO Birikim Simülatörü (jetonlar + taban: /theme.css). */

#app { min-height: 100svh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 0 16px 48px; }

.sim-hero { padding: 36px 0 8px; }
.sim-hero h1 {
  font-size: clamp(1.7rem, 4.8vw, 2.5rem); line-height: 1.14;
  letter-spacing: -.025em; font-weight: 700; margin: 0 0 12px; max-width: 22ch;
}
.sim-hero h1 em { font-style: normal; color: var(--brand-deep); }
.sim-hero p { color: var(--ink-2); max-width: 54ch; margin: 0; }

.sim-form {
  display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: flex-end;
  margin: 26px 0 8px; padding: 18px; border: 1px solid var(--line);
  border-radius: var(--r-sheet); background: var(--surface);
}
.sim-form .field { margin: 0; }
.amount-wrap { display: flex; align-items: center; gap: 10px; }
.amount-wrap input {
  width: 150px; font: 600 1.25rem/1.2 "IBM Plex Sans", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: var(--r-control); padding: 9px 12px;
}
.amount-wrap input:focus { border-color: var(--brand-deep); outline: none; }
.amount-wrap b { color: var(--muted); font-weight: 500; }
.period { display: grid; gap: 5px; }
.p-label { font-size: .88rem; font-weight: 500; color: var(--ink-2); }
.chips { display: inline-flex; gap: 2px; border: 1.5px solid var(--line); border-radius: 9px; padding: 3px; flex-wrap: wrap; }
.chips button {
  border: 0; background: none; color: var(--muted); cursor: pointer;
  font: 600 .85rem "IBM Plex Sans", system-ui, sans-serif; padding: 7px 13px; border-radius: 7px;
}
.chips button[aria-selected="true"] { background: var(--brand-deep); color: var(--brand-deep-ink); }

/* ---- sonuçlar ---- */
.sim-lead { margin: 26px 0 4px; font-size: 1.02rem; color: var(--ink-2); }
.sim-lead b { color: var(--ink); }
.rows { display: grid; gap: 14px; margin-top: 16px; }
.row { display: grid; grid-template-columns: 150px 1fr; gap: 4px 16px; align-items: center; }
.row .who { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: .95rem; }
.row .who .dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.row .track { height: 26px; border-radius: 7px; background: var(--line-soft); overflow: hidden; position: relative; }
.row .fill {
  display: block; height: 100%; border-radius: 7px; min-width: 2px;
  background: var(--brand-deep);
}
.row.dim .fill { background: repeating-linear-gradient(45deg, var(--muted) 0 5px, transparent 5px 10px); opacity: .55; }
.row .nums { grid-column: 2; display: flex; gap: 14px; flex-wrap: wrap; font-size: .9rem; }
.row .nums b { font-weight: 600; }
.row .nums .reel { color: var(--muted); }
@media (max-width: 620px) {
  .row { grid-template-columns: 1fr; }
  .row .nums { grid-column: 1; }
}

.sim-chart { margin-top: 34px; }
.sim-chart .chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.sim-chart h2 { font-size: 1.1rem; letter-spacing: -.01em; margin: 0; }
.chart-box { position: relative; }
.chart-box svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.c-line { fill: none; stroke: var(--brand-deep); stroke-width: 2; }
.c-paid { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 4; }
.c-cross { stroke: var(--line); stroke-width: 1; }
.c-dot { fill: var(--brand-deep); stroke: var(--bg); stroke-width: 2; }
.chart-box svg text.yv { fill: var(--muted); font: 500 11px "IBM Plex Sans", sans-serif; }
.c-tip {
  position: absolute; top: 2px; pointer-events: none;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 8px;
  box-shadow: var(--shadow); padding: 7px 11px; font-size: .82rem; line-height: 1.45;
}
.c-tip span { color: var(--muted); }
.chart-cap { font-size: .82rem; color: var(--muted); margin-top: 6px; }

.sim-notes { margin-top: 36px; border-top: 1px solid var(--line-soft); padding-top: 18px; }
.sim-notes p { color: var(--muted); font-size: .88rem; max-width: 70ch; }

.sim-cta {
  margin-top: 30px; border: 1.5px solid var(--brand); border-radius: var(--r-sheet);
  padding: 20px 22px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: var(--surface);
}
.sim-cta h2 { font-size: 1.1rem; margin: 0 0 6px; letter-spacing: -.01em; }
.sim-cta p { margin: 0; color: var(--ink-2); font-size: .92rem; max-width: 46ch; }
.share-row { margin-top: 18px; }
