/* ============================================================
   MaslowOpt — Teşhis arayüzü
   Ferah. Sıkmadan. RTL uyumlu.
   ============================================================ */

/* ---------- HERO ---------- */
.hero-diag {
  padding: clamp(56px, 12vw, 120px) 20px clamp(40px, 8vw, 72px);
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--accent-soft) 0%, transparent 65%),
    var(--bg);
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero-diag h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -.025em;
}
.hero-diag .lead {
  font-size: clamp(1.02rem, 2.2vw, 1.24rem);
  color: var(--ink-2);
  max-width: 60ch;
  margin: 0 auto 32px;
  line-height: 1.55;
}
.button.large {
  padding: 16px 32px;
  font-size: 1.02rem;
  min-height: 54px;
}
.hero-note {
  margin-top: 18px;
  font-size: .84rem;
  color: var(--ink-3);
}

/* ---------- SÖZ (ne yapar / ne yapmaz) ---------- */
.promise {
  padding: 0 20px clamp(48px, 8vw, 80px);
  background: var(--bg);
}
.promise-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
@media (min-width: 720px) {
  .promise-inner { grid-template-columns: 1fr 1fr; }
}
.promise-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  position: relative;
}
.promise-card.highlight {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.p-icon {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 12px;
  background: var(--surface-2);
  color: var(--ink-3);
}
.promise-card.highlight .p-icon {
  background: var(--accent-soft);
  color: var(--accent);
}
.promise-card b {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 6px;
}
.promise-card p {
  margin: 0;
  font-size: .92rem;
  color: var(--ink-2);
}

/* ---------- FORM ---------- */
.diag-section {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 72px) 20px;
  scroll-margin-top: 80px;
}
.diag-head {
  text-align: center;
  margin-bottom: 32px;
}
.diag-head h2 { margin-bottom: 10px; }
.diag-head p { color: var(--ink-3); font-size: .96rem; max-width: 52ch; margin-inline: auto; }

.diag-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 36px);
  box-shadow: var(--shadow);
}

/* İlerleme çubuğu */
.steps-bar {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}
.step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex: none;
}
.step-dot span {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--line);
  font-size: .84rem;
  font-weight: 700;
  color: var(--ink-3);
  transition: all .2s;
}
.step-dot small {
  font-size: .68rem;
  color: var(--ink-3);
  white-space: nowrap;
}
.step-dot.active span {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.step-dot.active small { color: var(--accent); font-weight: 600; }
.step-dot.done span {
  background: var(--ok-soft);
  border-color: var(--ok);
  color: var(--ok);
}
.step-line {
  flex: 1;
  height: 2px;
  background: var(--line);
  margin: 0 6px;
  margin-bottom: 20px;
}

fieldset.step { border: 0; padding: 0; margin: 0; }

.grid-2 { display: grid; gap: 16px; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-2 .wide { grid-column: 1 / -1; }

.step-intro {
  font-size: .94rem;
  color: var(--ink-2);
  margin-bottom: 24px;
  padding: 14px 16px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border-inline-start: 3px solid var(--accent);
}

.q-block { margin-bottom: 24px; }
.q-block .q {
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
}

.step-nav { margin-top: 26px; }
.step-nav.two {
  display: flex;
  gap: 10px;
}
.step-nav.two .button { flex: 1; }
.step-nav.two .ghost { flex: 0 0 auto; }

/* ---------- SONUÇ ---------- */
.result-section {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 56px) 20px;
  scroll-margin-top: 80px;
}

/* "SEN İYİSİN" — ürünün en dürüst anı */
.fine {
  text-align: center;
  background: var(--ok-soft);
  border: 2px solid var(--ok);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 6vw, 52px) clamp(20px, 4vw, 40px);
}
.fine-mark {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  display: grid; place-items: center;
  background: var(--ok);
  color: #fff;
  border-radius: 50%;
  font-size: 1.6rem;
  font-weight: 700;
}
.fine h2 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin-bottom: 14px;
  color: var(--ok);
}
.fine-body {
  font-size: 1.02rem;
  color: var(--ink);
  max-width: 56ch;
  margin: 0 auto 14px;
  line-height: 1.6;
}
.fine-closing {
  font-size: .92rem;
  color: var(--ink-2);
  margin: 0 auto 24px;
  max-width: 50ch;
}

/* Teşhis */
.diagnosis { margin-bottom: 36px; }
.diag-headline {
  font-size: clamp(1.4rem, 3.6vw, 2rem);
  line-height: 1.25;
  margin-bottom: 16px;
}
.diag-body {
  font-size: 1.02rem;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 20px;
}
.why-matters {
  background: var(--warn-soft);
  border-inline-start: 4px solid var(--warn);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 22px;
}
.why-matters b {
  display: block;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--warn);
  margin-bottom: 6px;
}
html[dir="rtl"] .why-matters b { letter-spacing: 0; }
.why-matters p { margin: 0; font-size: .95rem; color: var(--ink); }

/* Kat skorları */
.scores {
  display: grid;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 20px;
}
.score-row {
  display: grid;
  grid-template-columns: 88px 1fr 40px;
  align-items: center;
  gap: 10px;
  font-size: .84rem;
}
.score-row.weakest .score-label {
  font-weight: 700;
  color: var(--ink);
}
.score-row.weakest .score-val { font-weight: 700; }
.score-label { color: var(--ink-3); }
.score-bar {
  height: 7px;
  background: var(--line-soft);
  border-radius: 999px;
  overflow: hidden;
}
.score-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width .5s ease;
}
.score-bar i.bad  { background: var(--danger); }
.score-bar i.warn { background: var(--warn); }
.score-bar i.ok   { background: #7fbfa7; }
.score-bar i.good { background: var(--ok); }
.score-val {
  text-align: end;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}

/* ---------- KALDIRAÇLAR ---------- */
.levers { margin-bottom: 32px; }
.levers > h2 {
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.lever {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 14px;
}
/* Tersinirlik = renk kodu */
.lever.rev-3 { border-inline-start: 5px solid var(--ok); }
.lever.rev-2 { border-inline-start: 5px solid #7fbfa7; }
.lever.rev-1 { border-inline-start: 5px solid var(--warn); }
.lever.rev-0 { border-inline-start: 5px solid var(--danger); }

.lever-num {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1rem;
}
.lever-body { flex: 1; min-width: 0; }

.lever-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.lever-top h3 {
  margin: 0;
  font-size: 1.05rem;
  flex: 1;
  min-width: 200px;
}

.rev {
  flex: none;
  font-size: .68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.rev-free      { background: var(--ok-soft);     color: var(--ok); }
.rev-reversible{ background: var(--accent-soft); color: var(--accent); }
.rev-costly    { background: var(--warn-soft);   color: var(--warn); }
.rev-permanent { background: var(--danger-soft); color: var(--danger); }

.lever-action {
  font-size: .96rem;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.55;
  white-space: pre-line;
}

.lever-gains {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.gain {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
.gain.pos { background: var(--ok-soft);     color: var(--ok); }
.gain.neg { background: var(--danger-soft); color: var(--danger); }
.gain small { font-weight: 400; font-size: .72rem; opacity: .8; }

.lever-why {
  font-size: .89rem;
  color: var(--ink-3);
  font-style: italic;
  margin: 0 0 10px;
}
.lever-catch {
  font-size: .88rem;
  background: var(--warn-soft);
  color: var(--ink);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin: 0 0 10px;
}
.lever-catch b { color: var(--warn); }

/* Yasal dayanak */
.lever-legal {
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  margin-bottom: 10px;
  position: relative;
}
.lever-legal b {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  margin-bottom: 5px;
}
html[dir="rtl"] .lever-legal b { letter-spacing: 0; }
.lever-legal p {
  margin: 0;
  font-size: .87rem;
  color: var(--ink);
  white-space: pre-line;
}
.lever-legal a {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 14px;
  font-size: .9rem;
}

/* Bilimsel kanıt */
.lever-evidence, .lever-template { margin-top: 8px; }
.lever-evidence summary, .lever-template summary {
  cursor: pointer;
  font-size: .84rem;
  font-weight: 600;
  color: var(--accent);
  list-style: none;
  padding: 6px 0;
}
.lever-evidence summary::-webkit-details-marker,
.lever-template summary::-webkit-details-marker { display: none; }

.lever-evidence p {
  font-size: .87rem;
  color: var(--ink-2);
  background: var(--surface-2);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin: 6px 0 4px;
  white-space: pre-line;
}
.lever-evidence cite {
  font-size: .74rem;
  color: var(--ink-3);
  font-style: normal;
}

.lever-template pre {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: .82rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 6px 0 10px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--ink);
  max-height: 320px;
  overflow-y: auto;
}
html[dir="rtl"] .lever-template pre { direction: ltr; text-align: left; }
.tpl-warn {
  font-size: .78rem;
  color: var(--ink-3);
  margin: 8px 0 0;
}

/* ---------- 🔒 KİLİT (aidiyet) ---------- */
.locked {
  display: flex;
  gap: 16px;
  background: var(--surface-2);
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 26px;
}
.locked-icon {
  flex: none;
  font-size: 1.6rem;
  line-height: 1;
}
.locked b {
  display: block;
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.locked p {
  margin: 0;
  font-size: .94rem;
  color: var(--ink-2);
  line-height: 1.6;
}

.diag-closing {
  font-size: 1rem;
  color: var(--ink);
  padding: 18px 20px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  margin-bottom: 22px;
}

/* ---------- DÜRÜSTLÜK BÖLÜMÜ ---------- */
.honest {
  display: grid;
  gap: 32px;
  max-width: var(--maxw);
  margin: 0 auto;
}
@media (min-width: 860px) {
  .honest { grid-template-columns: 1fr 1fr; align-items: center; }
}
.honest .lead { font-size: 1.05rem; }
.honest-quote {
  margin: 0;
  padding: 28px 30px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.honest-quote p {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 12px;
  font-weight: 500;
}
.honest-quote cite {
  font-size: .84rem;
  color: var(--ink-3);
  font-style: normal;
}

/* ---------- Mobil ---------- */
@media (max-width: 560px) {
  .step-dot small { display: none; }
  .lever { padding: 18px; gap: 12px; }
  .lever-num { width: 28px; height: 28px; font-size: .88rem; }
  .lever-top h3 { min-width: 0; font-size: 1rem; }
  .score-row { grid-template-columns: 74px 1fr 34px; font-size: .78rem; }
  .locked { flex-direction: column; gap: 10px; }
}
