/* =====================================================================
   Tanıtım sayfası. Renkler app.css değişkenlerindedir; burada yeni renk yoktur.
   Beş boyut kuralı panel içindir: bu sayfa satış yüzeyi olduğu için iki büyük başlık boyutu ekler.
   ===================================================================== */

body.landing {
    --lp-gutter: 1.75rem;
    --lp-max: 1200px;
    --lp-h1: clamp(2rem, 1rem + 2.7vw, 3.375rem);
    --lp-h2: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
    --lp-copy: 1rem;
    --lp-chip: 24px;
    background: var(--bg);
    font-size: var(--lp-copy);
    scroll-padding-top: 72px;
}
html:has(body.landing) { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html:has(body.landing) { scroll-behavior: auto; } }

.lp-sr {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.lp-skip { position: absolute; left: -999px; top: 0; z-index: 40; padding: .5rem .85rem; background: var(--surface); }
.lp-skip:focus { left: .5rem; top: .5rem; }
.lp-tnum { font-variant-numeric: tabular-nums; }

/* ---------- Üst şerit ---------- */
.lp-top {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; gap: 1.5rem;
    height: var(--topbar-h);
    padding: 0 var(--lp-gutter);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.lp-brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--text); font-weight: 600; font-size: var(--fs-md); white-space: nowrap; }
.lp-brand:hover { text-decoration: none; }
.lp-logo { display: block; height: 28px; width: auto; max-width: 9rem; object-fit: contain; }
.lp-nav { display: flex; gap: .25rem; margin-right: auto; }
.lp-nav a { padding: .35rem .6rem; color: var(--text-2); font-size: var(--fs-sm); border-radius: var(--radius-sm); }
.lp-nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.lp-top-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }

/* ---------- Program çizelgesi ---------- */
.plan {
    position: relative;
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 var(--lp-gutter);
}
.plan-route { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; overflow: visible; }
.plan-route path { fill: none; stroke: var(--primary); stroke-width: 2; }
.plan-route-next { stroke-dasharray: 2 6; stroke-linecap: round; }
.plan-route { animation: lp-route 1.4s cubic-bezier(.16, 1, .3, 1) .15s backwards; }
@keyframes lp-route { from { clip-path: inset(0 100% 100% 0); } to { clip-path: inset(0 0 0 0); } }

.plan-head {
    grid-row: 1;
    position: sticky; top: var(--topbar-h); z-index: 10;
    display: flex; flex-direction: column;
    padding: .55rem .7rem .5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border-strong);
    font-size: var(--fs-xs);
    color: var(--muted);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
}
.plan-head strong { color: var(--text); font-size: var(--fs-sm); font-weight: 600; }
.plan-head.is-active { box-shadow: inset 0 -2px 0 var(--primary); }

.c0 { grid-column: 1; } .c1 { grid-column: 2; } .c2 { grid-column: 3; }
.c3 { grid-column: 4; } .c4 { grid-column: 5; } .c5 { grid-column: 6; }
.c6 { grid-column: 7; } .c7 { grid-column: 8; } .c8 { grid-column: 9; }
.r1 { grid-row: 2; } .r2 { grid-row: 3; } .r3 { grid-row: 4; } .r4 { grid-row: 5; }
.r5 { grid-row: 6; } .r6 { grid-row: 7; } .r7 { grid-row: 8; } .r8 { grid-row: 9; }
.r9 { grid-row: 10; } .r10 { grid-row: 11; } .r11 { grid-row: 12; }

.plan-cell {
    padding: .55rem .4rem .6rem;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    min-width: 0;
}
.plan-cell.c0 { border-left: 1px solid var(--border); }
.plan-cell ul { list-style: none; margin: 0; padding: 0; }
.plan-cell-phase { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.plan-area-again, .plan-rail { display: none; }
.plan-area {
    margin: 0 0 .2rem;
    padding: 0 .3rem;
    font-size: var(--fs-xs);
    font-weight: 400;
    color: var(--muted);
    line-height: 1.5;
    letter-spacing: 0;
}

.plan-mod {
    display: block;
    width: 100%;
    min-height: var(--lp-chip);
    padding: .1rem .3rem;
    background: transparent;
    border: 0;
    border-radius: 4px;
    color: var(--text-2);
    font: inherit;
    font-size: var(--fs-sm);
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}
.plan-mod:hover { background: var(--surface-2); color: var(--text); }
.plan-mod.is-queued { background: var(--primary-soft); color: var(--primary); margin-bottom: 2px; }
.plan-mod.is-running { background: var(--primary); color: var(--on-primary); font-weight: 600; margin-bottom: 2px; }
.plan-mod[aria-pressed="true"]:not(.is-running) { color: var(--text); box-shadow: inset 0 -2px 0 var(--primary); border-radius: 4px 4px 0 0; }
.plan-mod.is-running[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--primary); }

.plan-hero {
    grid-column: 5 / -1;
    grid-row: 2 / 7;
    position: relative;
    z-index: 3;
    padding: clamp(1.5rem, 3vw, 3.25rem) 0 1.75rem clamp(1.5rem, 3vw, 3.25rem);
    border-bottom: 1px solid var(--border);
    display: flex; flex-direction: column; justify-content: center;
}
.plan-hero h1 { font-size: var(--lp-h1); line-height: 1.12; letter-spacing: -.024em; margin: 0 0 1rem; max-width: 17ch; }
.lp-lead { max-width: 56ch; color: var(--text-2); font-size: var(--fs-lg); line-height: 1.55; margin: 0 0 1.5rem; }

.lp-start { display: flex; flex-wrap: wrap; gap: .5rem; align-items: stretch; max-width: 34rem; margin-bottom: 1.25rem; }
.lp-start-input { display: none; flex: 1 1 14rem; width: auto; height: 44px; font-size: var(--lp-copy); }
.js .lp-start-input { display: block; }

.plan-legend { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 0; padding: 0; color: var(--text-2); font-size: var(--fs-sm); }
.plan-howto { margin: 1rem 0 0; max-width: 56ch; color: var(--muted); font-size: var(--fs-sm); }
.plan-legend li { display: inline-flex; align-items: center; gap: .45rem; }
.plan-key { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--border-strong); }
.plan-key.is-running { background: var(--primary); border-color: var(--primary); }
.plan-key.is-queued { background: var(--primary-soft); border-color: var(--primary); }

.plan-why {
    grid-column: 1 / 5;
    grid-row: 7 / 10;
    position: relative;
    z-index: 3;
    padding: 2.25rem 2.5rem 2.25rem .1rem;
    border-bottom: 1px solid var(--border);
}
.plan-why h2 { font-size: var(--lp-h2); letter-spacing: -.018em; margin: 0 0 1.1rem; }
.plan-why dl { margin: 0; max-width: 60ch; }
.plan-why dt { font-weight: 600; font-size: var(--fs-md); }
.plan-why dd { margin: .05rem 0 .8rem; color: var(--text-2); font-size: var(--fs-md); }

/* Okuma şeridi: çizelge ekrandayken altta kalır. */
.plan-read {
    grid-column: 1 / -1;
    grid-row: 13;
    position: sticky; bottom: 0; z-index: 12;
    display: flex; align-items: center; gap: 1rem;
    min-height: 60px;
    margin: 0 calc(var(--lp-gutter) * -1);
    padding: .6rem var(--lp-gutter);
    background: var(--bg);
    border-top: 1px solid var(--border-strong);
    box-shadow: var(--shadow-lg);
}
.plan-read-tag { display: flex; align-items: center; gap: .5rem; flex: none; min-width: 9.5rem; }
.plan-read-phase { font-size: var(--fs-sm); font-weight: 600; font-variant-numeric: tabular-nums; }
.plan-read-body { margin: 0; flex: 1; min-width: 0; font-size: var(--fs-md); color: var(--text-2); }
.plan-read-body strong { color: var(--text); margin-right: .35rem; }
.plan-read-hint { flex: none; font-size: var(--fs-xs); color: var(--muted); }
html:not(.js) .plan-read-hint { display: none; }

/* ---------- Bölümler ---------- */
.lp-sec { max-width: var(--lp-max); margin: 0 auto; padding: clamp(3.5rem, 7vw, 6.5rem) var(--lp-gutter) 0; }
.lp-sec-head { max-width: 62ch; margin-bottom: 1.75rem; }
.lp-sec h2, .lp-close h2 { font-size: var(--lp-h2); line-height: 1.18; letter-spacing: -.018em; margin: 0 0 .65rem; }
.lp-sec-head p { color: var(--text-2); margin: 0; }

.lp-tabs { margin-bottom: 1.25rem; }
.lp-pane-text { color: var(--text-2); max-width: 66ch; margin: 0 0 1rem; }
.lp-pane[hidden] { display: none; }
html:not(.js) .lp-pane { margin-bottom: 2.5rem; }

.lp-frame { margin: 0; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.lp-frame-top { display: flex; align-items: center; gap: .6rem; min-height: 48px; padding: .4rem 1.1rem; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
.lp-frame-title { font-weight: 600; font-size: var(--fs-md); }
.lp-frame-date { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lp-frame .stats { margin: 0; border: 0; border-radius: 0; border-bottom: 1px solid var(--border-strong); }
.lp-frame .table-wrap { border: 0; border-radius: 0; }

.lp-pane-phone { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem 3rem; align-items: start; }
.lp-pane-phone[hidden] { display: none; }
.lp-phone { margin: 0; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-lg); }
.lp-roll { list-style: none; margin: 0; padding: 0; }
.lp-roll-row {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    width: 100%; min-height: 52px; padding: .4rem 1rem;
    background: transparent; border: 0; border-bottom: 1px solid var(--border);
    color: var(--text); font: inherit; font-size: var(--fs-md); text-align: left; cursor: pointer;
}
.lp-roll-row:hover { background: var(--surface-2); }
.lp-roll-row [data-roll-off] { display: none; }
.lp-roll-row[aria-pressed="true"] [data-roll-off] { display: inline-flex; }
.lp-roll-row[aria-pressed="true"] [data-roll-on] { display: none; }
.lp-roll-sum { margin: 0; padding: .75rem 1rem; font-size: var(--fs-sm); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Veri ayrımı */
.lp-sec-data { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem 4rem; align-items: start; }
.lp-data-text p { color: var(--text-2); max-width: 52ch; }
.lp-data-text p:last-child { color: var(--text); font-weight: 600; font-size: var(--fs-lg); margin-bottom: 0; }
.lp-routes { margin: 0; }
.lp-routes-row { display: flex; align-items: center; gap: .75rem; padding: 1.05rem 0; border-bottom: 1px solid var(--border); font-size: var(--fs-md); }
.lp-routes-row:first-child { border-top: 1px solid var(--border-strong); }
.lp-routes-row code { font-family: var(--mono); font-size: var(--fs-sm); color: var(--text); white-space: nowrap; }
.lp-routes-line { flex: 1; min-width: 1.5rem; height: 2px; background: var(--primary); position: relative; }
.lp-routes-line::after { content: ""; position: absolute; right: 0; top: -3px; width: 8px; height: 8px; background: var(--primary); border-radius: 50%; }
.lp-routes-row.is-center .lp-routes-line { background: var(--border-strong); }
.lp-routes-row.is-center .lp-routes-line::after { background: var(--border-strong); }
.lp-routes-db { font-weight: 600; text-align: right; }
.lp-routes-row.is-center .lp-routes-db { font-weight: 400; color: var(--text-2); }
.lp-routes figcaption { padding-top: .6rem; font-size: var(--fs-xs); color: var(--muted); }
.lp-checks { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 4rem; }
.lp-checks li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--border); font-size: var(--fs-md); }

/* Fazlar */
.lp-phases { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border-strong); }
.lp-phases li { display: grid; grid-template-columns: 4.5rem 11rem minmax(0, 1fr) auto; gap: .25rem 1rem; align-items: baseline; padding: .8rem 0; border-bottom: 1px solid var(--border); }
.lp-phase-no { font-variant-numeric: tabular-nums; color: var(--muted); font-size: var(--fs-sm); }
.lp-phase-out { color: var(--text-2); }

/* Sınırlar */
.lp-limits { display: grid; grid-template-columns: 15rem minmax(0, 1fr); margin: 0; border-top: 1px solid var(--border-strong); }
.lp-limits dt, .lp-limits dd { padding: .95rem 0; border-bottom: 1px solid var(--border); margin: 0; }
.lp-limits dt { font-weight: 600; }
.lp-limits dd { color: var(--text-2); padding-right: max(0px, calc(100% - 70ch)); }

/* ---------- Kapanış: mavi mürekkep üzerinde form kâğıdı ---------- */
.lp-close { margin-top: clamp(4rem, 8vw, 7rem); background: var(--primary); color: var(--on-primary); }
:root[data-theme="dark"] .lp-close { background: var(--primary-soft); color: var(--text); }
.lp-close-in {
    display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 2.5rem 5rem;
    max-width: var(--lp-max); margin: 0 auto;
    padding: clamp(3rem, 7vw, 6rem) var(--lp-gutter);
    align-items: start;
}
.lp-close h2 { font-size: var(--lp-h1); line-height: 1.12; letter-spacing: -.024em; margin-bottom: 1.25rem; max-width: 18ch; }
.lp-close-text p { max-width: 46ch; font-size: var(--fs-lg); }
.lp-sheet { background: var(--surface); color: var(--text); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: .9rem; }
.lp-sheet .field { margin: 0; }
.lp-sheet-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.lp-sheet .alert { margin: 0; }
.lp-sheet-closed h3 { margin: 0; font-size: var(--fs-lg); }
.lp-sheet-closed p { margin: 0; color: var(--text-2); }
.lp-start-closed { max-width: 34rem; margin: 0 0 1.25rem; padding: .7rem .9rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text-2); }
.lp-consent { align-items: flex-start; margin: 0; font-size: var(--fs-sm); line-height: 1.45; }
.lp-consent a { text-decoration: underline; }
.lp-consent input { flex: none; margin-top: .1rem; }
.lp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.lp-foot { border-top: 1px solid var(--border); }
.lp-foot-in { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; max-width: var(--lp-max); margin: 0 auto; padding: 1.25rem var(--lp-gutter); font-size: var(--fs-sm); }
.lp-foot-in > a { margin-left: auto; }
.lp-foot-contact { display: inline-flex; flex-wrap: wrap; gap: .2rem 1rem; }

.lp-notice { max-width: var(--lp-max); margin: 1rem auto 0; padding: 0 var(--lp-gutter); }

/* Teşekkür ve aydınlatma sayfaları */
.lp-note { max-width: 40rem; margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) var(--lp-gutter); min-height: 55vh; }
.lp-note-wide { max-width: 50rem; }
.lp-note h1 { font-size: var(--lp-h2); letter-spacing: -.018em; margin-bottom: 1rem; }
.lp-note h2 { font-size: var(--fs-lg); margin-top: 1.75rem; }
.lp-note p { color: var(--text-2); }
.lp-note .alert { margin-bottom: 1rem; }
/* Hukuki metin gövdesi: LegalTexts::html çıktısı (h2, h3, p, ul, strong) */
.lp-legal h2 { font-size: var(--fs-lg); margin: 1.75rem 0 .5rem; }
.lp-legal h3 { font-size: var(--fs-md); margin: 1.25rem 0 .4rem; }
.lp-legal p, .lp-legal li { color: var(--text-2); }
.lp-legal ul { padding-left: 1.25rem; }

/* ---------- Dar ekran: çizelge alan başlıklı listeye iner ---------- */
@media (max-width: 1099px) {
    .plan { display: block; padding: 0; }
    .plan-route, .plan-head, .plan-cell.is-empty { display: none; }
    .plan-hero { display: block; padding: 2rem var(--lp-gutter) 1.75rem; }
    .plan-hero h1 { max-width: 20ch; }
    .plan-cell { padding: .75rem var(--lp-gutter); border-right: 0; }
    .plan-cell.c0 { border-left: 0; }
    .plan-cell ul { display: flex; flex-wrap: wrap; gap: .3rem; }
    .plan-area { padding: 0; font-weight: 600; font-size: var(--fs-md); color: var(--text); }
    .plan-howto { display: none; }
    .plan-area-again { display: block; }
    .plan-rail { display: flex; gap: 3px; margin-bottom: .55rem; }
    .plan-rail i { flex: 0 0 18px; height: 3px; background: var(--border-strong); }
    .plan-rail i.is-on { background: var(--primary); }
    .plan-cell-phase { position: static; width: auto; height: auto; overflow: visible; clip-path: none; display: block; margin-bottom: .3rem; font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
    .plan-mod { width: auto; min-height: 36px; padding: .3rem .6rem; border: 1px solid var(--border); border-radius: var(--radius-sm); margin: 0; }
    .plan-mod.is-queued { border-color: transparent; margin: 0; }
    .plan-mod.is-running { border-color: var(--primary); margin: 0; }
    .plan-mod[aria-pressed="true"]:not(.is-running) { border-color: var(--border-strong); border-radius: var(--radius-sm); }
    .plan-why { padding: 2rem var(--lp-gutter); }
    .plan-read { margin: 0; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; box-shadow: var(--shadow-lg); }
    .plan-read-tag { min-width: 0; }
    .plan-read-body { flex-basis: 100%; font-size: var(--fs-sm); }
    .plan-read-hint { display: none; }
    .lp-nav { display: none; }
    .lp-sec-data, .lp-close-in { grid-template-columns: minmax(0, 1fr); }
    .lp-checks { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
    body.landing { --lp-gutter: 1rem; }
    .lp-brand span { font-size: var(--fs-sm); }
    .lp-top { gap: .5rem; }
    .lp-top-actions .btn-primary { padding-inline: .6rem; font-size: var(--fs-xs); }
    .lp-pane-phone { grid-template-columns: minmax(0, 1fr); }
    .lp-phone { max-width: 340px; width: 100%; justify-self: center; }
    .lp-phases li { grid-template-columns: 3.75rem minmax(0, 1fr) auto; }
    .lp-phase-out { grid-column: 2 / -1; grid-row: 2; font-size: var(--fs-sm); }
    .lp-limits { grid-template-columns: minmax(0, 1fr); }
    .lp-limits dt { padding-bottom: 0; border-bottom: 0; }
    .lp-limits dd { padding-top: .2rem; }
    .lp-sheet-two { grid-template-columns: minmax(0, 1fr); }
    .lp-routes-row { flex-wrap: wrap; }
    .lp-routes-row code { flex-basis: 100%; }
    .lp-routes-db { text-align: right; }
    .lp-sheet { padding: 1.1rem; }
    .lp-frame-date { display: none; }
    .lp-frame .table .lp-wide { display: none; }
    .lp-frame .table th, .lp-frame .table td { padding-inline: .5rem; }
    .lp-frame .table td.lp-durum, .lp-frame .table th.lp-durum { position: static; box-shadow: none; }
    .lp-foot-in > a { margin-left: 0; }
}

@media (pointer: coarse) {
    .plan-mod { min-height: 44px; }
    .lp-consent input { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .plan-route { animation: none; }
}
@media print {
    .lp-top, .plan-read, .plan-route, .lp-start { display: none; }
}
