/* Postaist açılış sayfası. Renkler İznik çinisinden: sır beyazı zemin, kobalt mürekkep, turkuaz teslim, mercan damga. */
:root {
  --sir: #f5f7f6;
  --sir-2: #e7edef;
  --cizgi: #c9d4da;
  --kobalt: #1c2f8f;
  --murekkep: #0d1748;
  --metin: #2a3460;
  --turkuaz: #12857f;
  --turkuaz-acik: #bfe5e1;
  --mercan: #c3342b;
  --font: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --olcu: min(1180px, 100% - 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sir);
  color: var(--metin);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { color: var(--murekkep); margin: 0; font-weight: 700; }
h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-variation-settings: "wdth" 80;
  max-width: 18ch;
}
h3 { font-size: 1.25rem; line-height: 1.25; }
p { margin: 0; }
a { color: var(--kobalt); }
code { font-family: var(--mono); font-size: 0.86em; }
:focus-visible { outline: 3px solid var(--turkuaz); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--murekkep); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 12px; }

/* Üst şerit */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(20px, calc((100% - 1180px) / 2));
  background: color-mix(in srgb, var(--sir) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--cizgi) 70%, transparent);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--kobalt); text-decoration: none; font-weight: 800; font-size: 1.45rem; letter-spacing: -0.03em; }
.brand-mark { width: 34px; height: 34px; }
.top nav { display: flex; gap: 22px; align-items: center; }
.top nav a { color: var(--metin); text-decoration: none; font-size: 1rem; }
.top nav a:hover { color: var(--kobalt); }
.top nav .nav-cta { color: var(--sir); background: var(--kobalt); padding: 8px 16px; border-radius: 999px; }
.top nav .nav-cta:hover { color: var(--sir); background: var(--murekkep); }

/* Düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font: inherit; font-size: 1.02rem; font-weight: 600; text-decoration: none; cursor: pointer; border: 2px solid var(--kobalt); transition: background-color .15s, color .15s; }
.btn-solid { background: var(--kobalt); color: var(--sir); }
.btn-solid:hover { background: var(--murekkep); border-color: var(--murekkep); }
.btn-line { background: transparent; color: var(--kobalt); }
.btn-line:hover { background: var(--kobalt); color: var(--sir); }
.btn-big { min-height: 58px; font-size: 1.15rem; padding: 0 28px; }

/* Kahraman bölüm: 3D sahne arkada, metin solda */
.hero { position: relative; min-height: min(92vh, 860px); display: grid; align-items: center; overflow: hidden; border-bottom: 1px solid var(--cizgi); }
#sahne { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Metin sütununun arkasını açık tutar; zarflar yazının üstünden geçmez gibi görünür */
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--sir) 0%, color-mix(in srgb, var(--sir) 85%, transparent) 34%, transparent 58%); }
.hero-copy, .hero-note { z-index: 1; }
.hero-copy { position: relative; width: var(--olcu); margin: 0 auto; padding: 72px 0 120px; pointer-events: none; }
.hero-copy > * { pointer-events: auto; }
.hero h1 {
  font-size: clamp(2.9rem, 7.4vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  font-variation-settings: "wdth" 75;
  font-weight: 800;
  max-width: 11ch;
}
.nw { white-space: nowrap; }
.lead { margin-top: 26px; max-width: 34rem; font-size: 1.24rem; color: var(--metin); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 46px 0 0; }
.hero-facts div { border-left: 3px solid var(--turkuaz); padding-left: 12px; }
.hero-facts dt { font-size: 0.92rem; color: var(--metin); }
.hero-facts dd { margin: 0; font-size: 1.35rem; font-weight: 700; color: var(--murekkep); font-variation-settings: "wdth" 85; }
.hero-note { position: absolute; right: max(20px, calc((100% - 1180px) / 2)); bottom: 22px; max-width: 30rem; font-size: 0.92rem; color: var(--metin); text-align: right; }

/* Bölümler için ortak ölçü */
.switch, .journey, .ledger, .isolation, .road, .plans, .early { width: var(--olcu); margin: 0 auto; padding: clamp(72px, 10vw, 128px) 0; }
.section-lead { margin-top: 18px; max-width: 40rem; font-size: 1.15rem; }

/* Kim, nasıl kullanır: üç segment, satır satır */
.who { width: var(--olcu); margin: 0 auto; padding: clamp(72px, 10vw, 128px) 0 0; }
.who-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); gap: 40px; padding: 36px 0 40px; border-top: 1px solid var(--cizgi); }
.who-row:first-of-type { margin-top: 48px; border-top: 2px solid var(--murekkep); }
.who-name h3 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; letter-spacing: -0.02em; font-variation-settings: "wdth" 75; font-weight: 800; color: var(--kobalt); }
.who-name p { margin: 14px 0 16px; max-width: 30rem; }
.who-name a { font-weight: 600; }
.who-col h4 { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; font-size: 1rem; color: var(--murekkep); }
.who-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 1.02rem; }
.who-col li { padding-left: 18px; position: relative; }
.who-col li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 2px; background: var(--turkuaz); }
.who-col.soon li::before { background: var(--cizgi); }

/* Izgara çocukları uzun kod satırları yüzünden taşmasın */
.switch > *, .journey > *, .isolation > *, .ledger-grid > * { min-width: 0; }

/* Geçiş */
.switch { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.switch-text p { margin-top: 20px; max-width: 32rem; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 8px; border-left: 3px solid var(--turkuaz); border-bottom: 3px solid var(--turkuaz); transform: rotate(-45deg); }
.diff { margin: 0; background: var(--murekkep); border-radius: 14px; padding: 18px 22px 24px; color: #dfe6ff; box-shadow: 0 30px 60px -30px rgba(13, 23, 72, .55); }
.diff figcaption { font-family: var(--mono); font-size: 0.8rem; color: #8f9bd6; margin-bottom: 8px; }
.diff pre { margin: 0; overflow-x: auto; font-family: var(--mono); font-size: 0.86rem; line-height: 1.7; }
.diff pre.req { margin-top: 18px; padding-top: 18px; border-top: 1px dashed #3a4686; color: #c9d2ff; }
.diff .del { color: #ff9c94; }
.diff .add { color: #7fe3d9; }
.diff .c { color: #8f9bd6; }

/* Yolculuk ve makbuz */
.journey { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.journey-intro p { margin: 20px 0 30px; max-width: 32rem; }
.receipt {
  background: #fff;
  border: 1px solid var(--cizgi);
  border-radius: 6px;
  padding: 26px 28px 10px;
  position: relative;
  box-shadow: 0 1px 0 var(--cizgi), 0 24px 48px -32px rgba(28, 47, 143, .45);
  background-image: repeating-linear-gradient(-45deg, var(--mercan) 0 10px, transparent 10px 20px, var(--kobalt) 20px 30px, transparent 30px 40px);
  background-size: 100% 7px;
  background-repeat: no-repeat;
  background-position: top;
}
.receipt-head { display: flex; gap: 18px; align-items: center; padding: 10px 0 18px; border-bottom: 1px dashed var(--cizgi); }
.postmark { width: 86px; height: 86px; flex: none; color: var(--mercan); transform: rotate(-12deg); opacity: .35; transition: opacity .3s; }
.postmark text { fill: currentColor; font-family: var(--font); font-weight: 700; font-size: 13px; }
.receipt.stamped .postmark { opacity: 1; }
.receipt-title { font-weight: 700; color: var(--murekkep); font-size: 1.2rem; }
.receipt-meta { font-size: 0.92rem; overflow-wrap: anywhere; }
.steps { list-style: none; margin: 0; padding: 8px 0; counter-reset: adim; }
.steps li { counter-increment: adim; display: grid; grid-template-columns: 34px 1fr auto; column-gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--sir-2); color: #8a93b4; transition: color .25s; }
.steps li:last-child { border-bottom: 0; }
.steps li::before { content: counter(adim); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; font-size: 0.85rem; font-weight: 700; }
.step-name { font-weight: 600; }
.step-detail { grid-column: 2; font-size: 0.92rem; }
.steps time { grid-row: 1 / span 2; grid-column: 3; align-self: center; font-family: var(--mono); font-size: 0.8rem; }
.steps li.done { color: var(--metin); }
.steps li.done::before { content: ""; border-color: var(--turkuaz); background: var(--turkuaz) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2'/%3E%3C/svg%3E") center/16px no-repeat; }
.steps li.done .step-name { color: var(--murekkep); }
.steps li[data-step="teslim"].done .step-name { color: var(--turkuaz); }

/* Canlıda / yolda listesi */
.ledger-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 48px; border-top: 2px solid var(--murekkep); }
.ledger-col { padding: 26px 40px 0 0; }
.ledger-col.soon { padding: 26px 0 0 40px; border-left: 1px solid var(--cizgi); }
.ledger-col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.45rem; font-variation-settings: "wdth" 85; }
.dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--kobalt); }
.dot.live { background: var(--turkuaz); border-color: var(--turkuaz); box-shadow: 0 0 0 5px var(--turkuaz-acik); }
.ledger dl { margin: 22px 0 0; }
.ledger dl div { padding: 16px 0; border-bottom: 1px solid var(--sir-2); }
.ledger dt { font-weight: 700; color: var(--murekkep); }
.ledger dd { margin: 4px 0 0; max-width: 34rem; }
.ledger .soon dt { color: var(--kobalt); }

/* Türkiye'ye özel: çini şeridi */
.local { background: var(--kobalt); color: #e6eaff; position: relative; }
.tile-band { height: 88px; background: url("tile.svg") left center / 88px 88px repeat-x; }
.local-inner { width: var(--olcu); margin: 0 auto; padding: 72px 0 96px; }
.local h2 { color: #fff; max-width: 16ch; }
.local-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; }
.local-grid h3 { color: #fff; font-size: 2.2rem; font-variation-settings: "wdth" 75; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 2px solid #7fe3d9; }
.fineprint { margin-top: 48px; font-size: 0.9rem; color: #aeb8ea; max-width: 46rem; }

/* Ayrı itibar */
.isolation { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.isolation-text p { margin-top: 20px; max-width: 34rem; }
.isolation-art { width: 100%; height: auto; }
.isolation-art rect { fill: #fff; stroke: var(--kobalt); stroke-width: 2; }
.isolation-art text { fill: var(--murekkep); font-family: var(--font); font-size: 16px; font-weight: 600; text-anchor: middle; }
.isolation-art path { stroke: var(--kobalt); stroke-width: 2; stroke-dasharray: 6 6; fill: none; }
.isolation-art .pkt { fill: var(--turkuaz); }
.isolation-art .stopped rect:first-child { stroke: var(--mercan); }
.isolation-art .gate { fill: var(--mercan); stroke: none; }
.isolation-art .gate-label { fill: var(--mercan); text-anchor: start; font-size: 15px; }

/* Yol haritası: gerçek bir sıra olduğu için numaralı */
.phases { list-style: none; padding: 0; margin: 52px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.phases::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: repeating-linear-gradient(90deg, var(--kobalt) 0 10px, transparent 10px 18px); }
.phases li { position: relative; padding-right: 26px; }
.phase-no { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--sir); border: 2px solid var(--kobalt); color: var(--kobalt); font-weight: 800; font-size: 1.4rem; }
.phases .now .phase-no { background: var(--kobalt); color: #fff; box-shadow: 0 0 0 6px var(--turkuaz-acik); }
.phases h3 { margin-top: 20px; }
.phases p { margin-top: 8px; font-size: 1rem; }
.phase-state { display: inline-block; margin-top: 12px; font-size: 0.9rem; font-weight: 700; color: var(--turkuaz); }

/* Paketler */
.plan-table { margin-top: 44px; border-top: 2px solid var(--murekkep); }
.plan-table .row { display: grid; grid-template-columns: 1.1fr 1fr 0.8fr 2.2fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--cizgi); }
.plan-table .head { font-size: 0.92rem; color: var(--metin); font-weight: 600; }
.plan-table .row:not(.head) span:first-child { font-weight: 700; color: var(--murekkep); }
.plan-table .row:not(.head) span:nth-child(2) { font-variant-numeric: tabular-nums; }

/* Erken erişim */
.early { text-align: left; border-top: 1px solid var(--cizgi); }
.early h2 { max-width: 14ch; }
.early p { margin: 22px 0 34px; max-width: 38rem; font-size: 1.2rem; }

.foot { width: var(--olcu); margin: 0 auto; padding: 28px 0 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.92rem; border-top: 1px solid var(--cizgi); }

/* Dar ekranlar */
@media (max-width: 900px) {
  .top nav a:not(.nav-cta) { display: none; }
  .switch, .journey, .isolation { grid-template-columns: 1fr; gap: 36px; }
  .who-row { grid-template-columns: 1fr 1fr; gap: 20px 28px; }
  .who-name { grid-column: 1 / -1; }
  .ledger-grid { grid-template-columns: 1fr; }
  .ledger-col, .ledger-col.soon { padding: 26px 0 0; border-left: 0; }
  .ledger-col.soon { border-top: 2px solid var(--murekkep); margin-top: 30px; }
  .local-grid { grid-template-columns: 1fr; gap: 28px; }
  .phases { grid-template-columns: 1fr; gap: 30px; }
  .phases::before { left: 27px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--kobalt) 0 10px, transparent 10px 18px); }
  .phases li { padding-left: 80px; padding-right: 0; }
  .phase-no { position: absolute; left: 0; top: 0; }
  .phases h3 { margin-top: 12px; }
  .hero-note { position: static; text-align: left; width: var(--olcu); margin: -90px auto 28px; }
  .hero { align-items: end; }
  .hero-copy { padding: 330px 0 110px; }
  .hero::after { background: linear-gradient(0deg, var(--sir) 0%, color-mix(in srgb, var(--sir) 88%, transparent) 62%, transparent 76%); }
  .plan-table .row { grid-template-columns: 1fr 1fr; row-gap: 4px; }
  .plan-table .row span:nth-child(4) { grid-column: 1 / -1; font-size: 0.95rem; }
  .plan-table .head span:nth-child(3), .plan-table .head span:nth-child(4) { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 1.05rem; }
  .hero-facts { gap: 12px 24px; }
  .receipt { padding: 20px 18px 6px; }
  .postmark { width: 64px; height: 64px; }
  .steps li { grid-template-columns: 30px 1fr; }
  .steps time { grid-row: auto; grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .isolation-art animate { display: none; }
  * { transition: none !important; }
}
