/* ==========================================================================
   Sail ECU — tanıtım sayfası ve yasal sayfalar (layouts/public)
   theme-light.css'ten sonra yüklenir; renk/yazı token'ları oradan gelir.
   Üst menü ve alt bilgi giriş sayfalarıyla ortaktır (.auth-header, .auth-footer).
   ========================================================================== */

.lp-main { flex: 1; }
.lp-accent { color: var(--accent); }
.lp-main svg { flex: none; }

/* ---------- Hero ---------- */
.lp-hero {
  position: relative; overflow: hidden; padding: 72px 0 88px;
  background:
    radial-gradient(900px 420px at 92% -8%, var(--accent-soft), transparent 62%),
    var(--surface);
  border-bottom: 1px solid var(--border-soft);
}
.lp-hero::before {
  content: ''; position: absolute; inset: 0 0 35% 45%; pointer-events: none;
  background: radial-gradient(var(--border) 1px, transparent 1px) 0 0 / 16px 16px;
  -webkit-mask-image: linear-gradient(210deg, #000, transparent 70%); mask-image: linear-gradient(210deg, #000, transparent 70%);
}
.lp-hero > * { position: relative; }

.lp-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px;
  border: 1px solid var(--accent-ring); border-radius: var(--radius-pill); background: var(--accent-soft);
  color: var(--accent-ink); font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.lp-badge svg { width: 15px; height: 15px; }

.lp-title {
  margin: 20px 0 18px; font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; line-height: 1.06;
  letter-spacing: -.035em; color: var(--ink);
}
.lp-lead { max-width: 36rem; margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--ink-3); }
.lp-lead strong { font-weight: 600; color: var(--ink); }

.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.lp-cta svg { width: 18px; height: 18px; }

.lp-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-stat {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; flex: 1 1 240px;
  background: var(--surface); border: 1px solid var(--border-box); border-radius: 12px;
}
.lp-stat-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.lp-stat-ico svg { width: 19px; height: 19px; }
.lp-stat-value { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.lp-stat-text { margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--muted); }

/* ECU grafiği kartı */
.lp-chart-card {
  padding: 16px 18px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 24px 60px -28px rgba(16, 24, 40, .28), var(--shadow-card);
}
.lp-window-bar { display: flex; gap: 6px; margin-bottom: 16px; }
.lp-window-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.lp-window-bar span:first-child { background: var(--accent); opacity: .55; }

.lp-chart-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; }
.lp-chart-title { font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; color: var(--ink-2); }
.lp-chart-sub { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.lp-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-legend span {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px;
  border: 1px solid var(--border); border-radius: var(--radius-pill); font-size: 11.5px; font-weight: 500; color: var(--ink-3);
}
.lp-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.lp-dot.is-stock { background: #98A2B3; }
.lp-dot.is-stage1 { background: #F08A8D; }
.lp-dot.is-stage2 { background: var(--accent); }

.lp-chart {
  margin: 14px 0; padding: 8px 6px 4px; border: 1px solid var(--border-soft); border-radius: 12px;
  background: linear-gradient(var(--surface), var(--surface-2));
}
.lp-chart svg { display: block; width: 100%; height: auto; aspect-ratio: 340 / 180; }

.lp-stage-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lp-stage { padding: 14px 16px; border: 1px solid var(--border-box); border-radius: 12px; background: var(--surface-2); }
.lp-stage h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--ink); }
.lp-stage p { margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* ---------- Bölümler ---------- */
.lp-section { padding: 88px 0; }
.lp-section.is-alt { background: var(--surface); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.lp-section.is-tight { padding-top: 0; }

.lp-head { margin-bottom: 40px; }
.lp-head.is-center { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }
.lp-head.is-center .lp-sub { margin: 0 auto; }
.lp-head.is-split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.lp-head.is-split > div:first-child { max-width: 780px; }
.lp-label { margin-bottom: 10px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.lp-h2 { margin: 0 0 10px; font-size: clamp(26px, 3.2vw, 36px); font-weight: 750; line-height: 1.15; letter-spacing: -.03em; color: var(--ink); }
.lp-sub { max-width: 40rem; margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--muted); }

.lp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-tags span {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill);
  font-size: 12.5px; font-weight: 500; color: var(--ink-2);
}
.lp-tags svg { width: 15px; height: 15px; color: var(--accent); }

/* İkon kutusu (adımlar ve özellikler) */
.lp-ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.lp-ico svg { width: 22px; height: 22px; }

/* 4 adım */
.lp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.lp-step, .lp-card {
  position: relative; height: 100%; padding: 24px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-card);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.lp-step:hover, .lp-card:hover { border-color: var(--accent-ring); box-shadow: var(--shadow-pop); transform: translateY(-2px); }
.lp-step h3, .lp-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--ink); }
.lp-step p, .lp-card p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.lp-step-num { position: absolute; top: 22px; right: 22px; font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; color: var(--placeholder); }
.lp-step-num svg { width: 18px; height: 18px; }
.lp-step.is-done .lp-ico { background: var(--success-bg); color: var(--success-fg); }
.lp-step.is-done .lp-step-num { color: var(--success-dot); }

/* Özellik kartları */
.lp-section.is-alt .lp-card { background: var(--surface-3); }
.lp-checks { margin: 18px 0 0; padding: 16px 0 0; list-style: none; border-top: 1px dashed var(--border); }
.lp-checks li { display: flex; gap: 9px; margin-top: 9px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.lp-checks li:first-child { margin-top: 0; }
.lp-checks svg { width: 18px; height: 18px; margin-top: 1px; color: var(--success-dot); }

/* Panel görüntüleri */
.lp-shot { margin: 0; }
.lp-shot-frame {
  padding: 6px; overflow: hidden; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-card); transition: border-color .15s, box-shadow .15s;
}
.lp-shot-frame img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top;
  border-radius: 9px; background: var(--bg);
}
.lp-shot:hover .lp-shot-frame { border-color: var(--accent-ring); box-shadow: var(--shadow-pop); }
.lp-shot figcaption h3 { margin: 16px 0 4px; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.lp-shot figcaption p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }

/* Hesap aç bandı */
.lp-band {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding: 36px 40px; border-radius: 20px; color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-ink));
}
.lp-band::after {
  content: ''; position: absolute; inset: 0 0 0 55%; pointer-events: none;
  background: radial-gradient(var(--on-accent-line) 1px, transparent 1px) 0 0 / 16px 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000);
}
.lp-band > * { position: relative; z-index: 1; }
.lp-band h2 { margin: 0 0 6px; font-size: clamp(22px, 2.6vw, 28px); font-weight: 750; letter-spacing: -.025em; color: var(--on-accent); }
.lp-band p { margin: 0; font-size: 15px; color: var(--on-accent-soft); }
.lp-band-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-band .btn svg { width: 18px; height: 18px; }
.lp-btn-light { background: var(--surface); border: 1px solid var(--surface); color: var(--accent-ink); }
.lp-btn-light:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-ink); }
.lp-btn-ghost { background: transparent; border: 1px solid var(--on-accent-line); color: var(--on-accent); }
.lp-btn-ghost:hover { background: var(--on-accent-chip); border-color: var(--on-accent-line); color: var(--on-accent); }

/* ---------- Yasal sayfalar (çerez, gizlilik, kullanım şartları) ---------- */
.doc-hero .auth-container, .doc-wrap .auth-container { max-width: 928px; }
.doc-hero { padding: 56px 0 28px; }
.doc-hero h1 { margin: 10px 0 8px; font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.doc-hero p { margin: 0; font-size: 15px; color: var(--muted); }
.doc-wrap { padding-bottom: 80px; }
.doc-card {
  max-width: 880px; padding: 40px 44px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow-card); font-size: 15px; line-height: 1.7; color: var(--ink-3);
}
.doc-card h1, .doc-card h2, .doc-card h3 { margin: 28px 0 10px; font-weight: 700; letter-spacing: -.015em; color: var(--ink); line-height: 1.3; }
.doc-card h1 { font-size: 24px; }
.doc-card h2 { font-size: 20px; }
.doc-card h3 { font-size: 17px; }
.doc-card > :first-child { margin-top: 0; }
.doc-card p { margin: 0 0 12px; }
.doc-card strong { font-weight: 600; color: var(--ink); }
.doc-card ul, .doc-card ol { margin: 0 0 14px; padding-left: 22px; }
.doc-card li { margin-bottom: 6px; }
.doc-card li > p { margin: 0; }
.doc-card hr { margin: 28px 0; border: 0; border-top: 1px solid var(--border-soft); opacity: 1; }
.doc-card a { color: var(--accent); }

/* ---------- Duyarlı ---------- */
@media (max-width: 991.98px) {
  .lp-hero { padding: 48px 0 64px; }
  .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-section { padding: 64px 0; }
}
@media (max-width: 575.98px) {
  .lp-hero { padding: 36px 0 48px; }
  .lp-title { margin-top: 16px; }
  .lp-lead { font-size: 15.5px; }
  .lp-cta .btn { flex: 1 1 100%; }
  .lp-steps, .lp-stage-row { grid-template-columns: 1fr; }
  .lp-section { padding: 52px 0; }
  .lp-band { padding: 28px 22px; }
  .lp-band-actions, .lp-band-actions .btn { width: 100%; }
  .lp-chart-card { padding: 14px; }
  .doc-hero { padding: 36px 0 20px; }
  .doc-card { padding: 24px 20px; font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-step, .lp-card { transition: none; }
  .lp-step:hover, .lp-card:hover { transform: none; }
}
