/* ==========================================================================
   TulPanel ürün sitesi (/tulpanel/) — yalnızca bu sayfada yüklenir.
   TulNova token'larını kullanır; karakter: kurum, kontrol, düzen, netlik.
   TulOku'dan farkı: açık zemin, defter (ledger) çizgileri, tablo düzeni, yeşil mürekkep.
   ========================================================================== */

.site-tulpanel {
  --accent: #10B981;          /* Panel Yeşili — yalnızca işaret, çizgi, nokta */
  --accent-ink: #047857;      /* metin içinde yeşil */
  --tp-line: #DCE5E1;
  --tp-line-strong: #C3D3CC;
  --tp-tint: #F1F6F3;
  --tp-grid: rgba(4, 120, 87, 0.06);
  background: #F7F9F8;
}

/* ---------- header ---------- */
.tp-header { background: rgba(255, 255, 255, 0.92); border-bottom: 1px solid var(--tp-line); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); }
.tp-header.is-scrolled { background: rgba(255, 255, 255, 0.92); }
.tp-lockup { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tp-brand { display: inline-flex; align-items: center; min-height: 44px; }
.tp-brand img { display: block; height: 28px; width: auto; }
.tp-parent { padding-left: 14px; border-left: 1px solid var(--tp-line-strong); font-size: var(--text-xs); color: var(--color-muted); text-decoration: none; white-space: nowrap; }
.tp-parent strong { font-weight: var(--weight-semibold); color: var(--color-text); }
.tp-parent:hover strong { color: var(--accent-ink); }
.tp-login { white-space: nowrap; }
@media (max-width: 420px) { .tp-parent { display: none; } }
@media (min-width: 1000px) and (max-width: 1180px) { .tp-header .nav__list { gap: var(--space-md); } .tp-parent { display: none; } }

/* ---------- hero ---------- */
.tp-hero { padding-top: clamp(48px, 7vw, 104px); }
.tp-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: var(--text-xs); font-weight: var(--weight-medium); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--accent-ink); }
.tp-eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent); }
.tp-hero__head { display: grid; gap: var(--space-lg); }
.tp-hero__title { margin-top: var(--space-md); max-width: 15ch; }
.tp-hero__side { display: grid; gap: var(--space-md); align-content: end; }
.tp-hero__side .lead { max-width: 46ch; }
.tp-hero__login a { font-size: var(--text-sm); color: var(--color-text-soft); text-decoration: none; border-bottom: 1px solid var(--tp-line-strong); padding-bottom: 2px; }
.tp-hero__login a:hover { color: var(--accent-ink); border-color: var(--accent-ink); }
@media (min-width: 1000px) { .tp-hero__head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: end; } }

/* ekran sahnesi: alt yarıda defter kâğıdı gibi soluk yeşil ızgara — eğim yok, düz ve net */
.tp-hero__stage { position: relative; margin-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 88px); isolation: isolate; }
.tp-hero__stage::before {
  content: ""; position: absolute; z-index: -1; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); top: 38%; bottom: 0;
  background-color: var(--tp-tint);
  background-image: linear-gradient(to right, var(--tp-grid) 1px, transparent 1px), linear-gradient(to bottom, var(--tp-grid) 1px, transparent 1px);
  background-size: 48px 48px; border-top: 1px solid var(--tp-line);
}
@media (min-width: 1440px) { .tp-hero__stage::before { left: calc((100vw - 100%) / -2); right: calc((100vw - 100%) / -2); } }
.tp-screen .screen__frame { border-radius: 10px; border-color: var(--tp-line-strong); box-shadow: 0 1px 2px rgba(10,23,48,.05), 0 20px 48px -18px rgba(10,23,48,.28); }
.tp-screen .screen__frame::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); z-index: 1; }
.tp-stage-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin-top: 14px; font-size: var(--text-xs); color: var(--color-muted); }
.tp-stage-note strong { color: var(--color-text); font-weight: var(--weight-medium); }

/* ---------- bölüm iskeleti ---------- */
.tp-section { padding-block: clamp(80px, 4rem + 5vw, 144px); }
.tp-section + .tp-section { padding-top: clamp(80px, 4rem + 5vw, 144px); }
.tp-section--tint { background: var(--tp-tint); border-top: 1px solid var(--tp-line); border-bottom: 1px solid var(--tp-line); }
.tp-split-head { display: grid; gap: var(--space-md); margin-bottom: var(--space-2xl); }
.tp-split-head .h2 { max-width: 18ch; }
@media (min-width: 900px) { .tp-split-head { grid-template-columns: 1fr 1fr; gap: var(--space-3xl); align-items: end; } }

/* ---------- defter: günlük sorular ---------- */
.tp-ledger { width: 100%; border-collapse: collapse; border-top: 2px solid var(--color-text); }
.tp-ledger thead th { text-align: left; font-size: var(--text-xs); font-weight: var(--weight-medium); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-muted); padding: 14px 16px 14px 0; border-bottom: 1px solid var(--tp-line-strong); }
.tp-ledger tbody tr { border-bottom: 1px solid var(--tp-line); }
.tp-ledger td, .tp-ledger tbody th { padding: 22px 24px 22px 0; vertical-align: top; text-align: left; }
.tp-q { font-size: var(--text-lg); font-weight: var(--weight-medium); letter-spacing: -0.015em; line-height: 1.35; width: 38%; }
.tp-a { color: var(--color-text-soft); font-size: var(--text-sm); line-height: 1.6; }
.tp-m { width: 16%; white-space: nowrap; }
.tp-m a { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-size: var(--text-xs); font-weight: var(--weight-medium); color: var(--accent-ink); text-decoration: none; }
.tp-m a::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.tp-m a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 799px) {
  .tp-ledger thead { display: none; }
  .tp-ledger, .tp-ledger tbody, .tp-ledger tr, .tp-ledger td, .tp-ledger tbody th { display: block; width: auto; }
  .tp-ledger tbody tr { padding: 18px 0; }
  .tp-ledger td, .tp-ledger tbody th { padding: 0; }
  .tp-a { margin-top: 8px; }
  .tp-m { margin-top: 6px; }
}

/* ---------- çalışma mantığı: raylı akış ---------- */
.tp-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.tp-flow__step { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 4px 16px; padding: 0 0 26px; }
.tp-flow__step::before { content: ""; position: absolute; left: 17.5px; top: 34px; bottom: 0; width: 1px; background: var(--tp-line-strong); }
.tp-flow__step:last-child::before { display: none; }
.tp-flow__n { grid-row: span 2; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--tp-line-strong); border-radius: 8px; background: #fff; font-size: 13px; font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; color: var(--accent-ink); }
.tp-flow__step:nth-child(5) .tp-flow__n, .tp-flow__step:nth-child(6) .tp-flow__n { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.tp-flow__t { font-size: var(--text-md); font-weight: var(--weight-medium); letter-spacing: -0.01em; padding-top: 6px; }
.tp-flow__d { font-size: var(--text-sm); color: var(--color-text-soft); }
@media (min-width: 1100px) {
  .tp-flow { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .tp-flow__step { grid-template-columns: 1fr; gap: 12px; padding: 0 18px 0 0; }
  .tp-flow__n { grid-row: auto; }
  .tp-flow__step::before { left: 44px; right: 8px; top: 17.5px; bottom: auto; width: auto; height: 1px; }
  .tp-flow__t { padding-top: 4px; }
}

/* ---------- ürün sahneleri ---------- */
.tp-scene { padding-block: clamp(72px, 4rem + 4vw, 128px); border-top: 1px solid var(--tp-line); }
.tp-scene--alt { background: #fff; }
.tp-scene__head { display: grid; gap: var(--space-lg); margin-bottom: clamp(32px, 4vw, 56px); }
.tp-scene__label { display: flex; align-items: baseline; gap: 12px; font-size: var(--text-xs); font-weight: var(--weight-medium); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-muted); }
.tp-scene__label span { font-variant-numeric: tabular-nums; color: var(--accent-ink); font-weight: var(--weight-semibold); }
.tp-scene__copy { display: grid; gap: var(--space-sm); }
.tp-scene__copy .h2 { max-width: 20ch; }
.tp-facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--tp-line); align-self: end; }
.tp-facts li { position: relative; padding: 11px 0 11px 22px; border-bottom: 1px solid var(--tp-line); font-size: var(--text-sm); color: var(--color-text-soft); }
.tp-facts li::before { content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 2px; background: var(--accent); }
@media (min-width: 1100px) {
  .tp-scene__head { grid-template-columns: 180px minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: start; }
  .tp-scene__label { padding-top: 14px; }
}
.tp-pair { display: grid; gap: var(--space-lg); }
@media (min-width: 1100px) { .tp-pair { grid-template-columns: 1fr 1fr; align-items: start; } }
.tp-scene .screen__cap { margin-top: 12px; }

/* ---------- roller ---------- */
.tp-roles { display: grid; border-top: 2px solid var(--color-text); }
.tp-role { padding: var(--space-lg) 0; border-bottom: 1px solid var(--tp-line); }
.tp-role__t { font-size: var(--text-xl); letter-spacing: -0.02em; }
.tp-role__s { margin-top: 4px; font-size: var(--text-xs); color: var(--accent-ink); font-weight: var(--weight-medium); letter-spacing: var(--tracking-label); text-transform: uppercase; }
.tp-role__l { list-style: none; margin: var(--space-md) 0 0; padding: 0; display: grid; gap: 8px; }
.tp-role__l li { font-size: var(--text-sm); color: var(--color-text-soft); padding-left: 16px; position: relative; }
.tp-role__l li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--accent); }
@media (min-width: 900px) {
  .tp-roles { grid-template-columns: repeat(3, 1fr); }
  .tp-role { padding: var(--space-lg) var(--space-lg) var(--space-lg) 0; border-bottom: 0; }
  .tp-role + .tp-role { border-left: 1px solid var(--tp-line); padding-left: var(--space-lg); }
}

/* ---------- form ---------- */
.tp-form { background: #fff; border: 1px solid var(--tp-line-strong); border-top: 3px solid var(--accent); border-radius: var(--radius-md); padding: clamp(20px, 3vw, 36px); }
.site-tulpanel .checklist svg { color: var(--accent-ink); }
.site-tulpanel .checklist a { color: var(--accent-ink); }

/* son CTA: lacivert + yeşil işaret */
.site-tulpanel .section--brand { border-top: 3px solid var(--accent); }
