/*
 * ExperCep erken erişim sayfası.
 * Fikir: sayfa, bir ekspertiz raporunun kâğıdıdır. İlk ekran raporun kendisi
 * (kaporta haritası dokunulabilir), devamı aynı kırtasiyenin parçaları:
 * fiş, basılı liste, kesilip alınacak kupon. Renkler DESIGN.md'den
 * (lacivert zemin, açık mavi kâğıt, ana mavi yalnız eylemde ve "boyalı" parçada).
 * Satır içi stil ve betik yok (katı CSP). Gradyan, gölge, ince çizgi yok.
 */

@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/erken-erisim/fonts/PlusJakartaSans_400Regular.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/erken-erisim/fonts/PlusJakartaSans_500Medium.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("/erken-erisim/fonts/PlusJakartaSans_700Bold.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-style: normal; font-display: swap; src: url("/erken-erisim/fonts/PlusJakartaSans_800ExtraBold.woff2") format("woff2"); }

:root {
  --ground: #0b1326;
  --ground-2: #121b30;
  --paper: #dfe6fb;
  --paper-2: #c6d1ee;
  --ink: #0b1326;
  --ink-2: #33405f;
  --on-ground: #dae2fd;
  --on-ground-2: #a9b6d8;
  --accent: #2665fd;
  --accent-ink: #ffffff;
  --accent-soft: #8eafff;
  --plastic: #a7b4d6;

  --step-display: clamp(40px, 4.9vw, 72px);
  --step-h2: clamp(30px, 3.9vw, 58px);
  --step-lead: clamp(20px, 1.55vw, 22px);
  --step-body: 17px;
  --step-small: 14px;

  --radius: 8px;
  --margin: clamp(16px, 2.2vw, 32px);
  --section-gap: clamp(96px, 12vw, 200px);
  --ease-out: cubic-bezier(.2, .7, .2, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--on-ground);
  font: 400 var(--step-body)/1.55 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "tnum" 0;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2, p, figure, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--margin); top: -60px; z-index: 10; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

/* ---------- butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px; border-radius: var(--radius);
  font-weight: 700; font-size: 17px; text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease-out), background-color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #3a74ff; }

/* ---------- üst satır (zeminde, kartın üstünde) ---------- */
main { position: relative; z-index: 1; background: var(--ground); }
.topbar {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 24px var(--margin) 0;
}
.wordmark { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; text-decoration: none; justify-self: start; }
.toplinks { display: flex; gap: 28px; font-weight: 500; }
.toplinks a { text-decoration: none; color: var(--on-ground); transition: color .15s; }
.toplinks a:hover { color: var(--accent-soft); }
.topactions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.signin { font-size: 14px; font-weight: 500; color: var(--on-ground-2); text-decoration: none; transition: color .15s; }
.signin:hover { color: var(--on-ground); text-decoration: underline; }

/* ---------- ilk ekran: rapor kâğıdı ---------- */
.hero { padding: 0 var(--margin); margin-top: clamp(56px, 9vh, 120px); }
.sheet {
  position: relative;
  width: min(820px, 100%);
  margin: 0 auto;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(28px, 4.2vw, 64px);
  padding-bottom: clamp(36px, 5vw, 72px);
  animation: sheet-in .9s var(--ease-out) both;
}
/* Kâğıdın üst köşeleri: zemin renginde çeyrek daireler (oyuk köşe). */
.sheet::before, .sheet::after {
  content: ""; position: absolute; top: -22px; width: 44px; height: 44px; border-radius: 50%; background: var(--ground);
}
.sheet::before { left: -22px; }
.sheet::after { right: -22px; }

.sheet-head { text-align: center; }
h1 {
  font-weight: 800; font-size: var(--step-display); line-height: 1.0; letter-spacing: -0.035em;
}
h1 span { display: block; }
@media (min-width: 1024px) {
  h1 .l1 { transform: translateX(-4%); }
  h1 .l2 { transform: translateX(9%); }
}
.sheet-lines {
  margin-top: clamp(20px, 2.4vw, 32px);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 14px; row-gap: 6px;
  font-size: var(--step-small); font-weight: 500; color: var(--ink-2);
}
.diamond { display: inline-block; width: 8px; height: 8px; background: var(--ink); transform: rotate(45deg); }

.sheet-body {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: clamp(28px, 4vw, 56px); align-items: start;
}
.map-title { font-weight: 700; font-size: var(--step-small); margin-bottom: 12px; }
.map-title span { font-weight: 400; color: var(--ink-2); }

/* Kaporta haritası — uygulamadaki components/BodyDamageMap.tsx ile aynı yerleşim (100 × 152 birim). */
.bodymap { position: relative; aspect-ratio: 100 / 152; width: 100%; }
.panel {
  position: absolute; display: flex; align-items: center; justify-content: center;
  padding: 2px; border: 0; border-radius: 6px; cursor: pointer;
  font: 600 11.5px/1.15 "Plus Jakarta Sans", system-ui, sans-serif; text-align: center;
  color: var(--ink);
  transition: transform .16s var(--ease-out), outline-color .16s;
  outline: 3px solid transparent; outline-offset: 2px;
}
.panel span { display: block; max-width: 100%; overflow: hidden; }
.panel:hover { transform: scale(1.04); z-index: 1; }
.panel:active { transform: scale(.97); }
.panel[aria-pressed="true"] { outline-color: var(--ink); z-index: 2; animation: pick .32s var(--ease-out); }
.panel.v span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10.5px; }
.s-orijinal { background: var(--paper-2); }
.s-boyali { background: var(--accent); color: var(--accent-ink); }
.s-lokal { background: var(--accent-soft); }
.s-degisen { background: var(--ink); color: var(--paper); }
.s-plastik { background: var(--plastic); }
.glass { position: absolute; background: var(--ink-2); border-radius: 3px; pointer-events: none; }

.panel[data-key="onBumper"]     { left: 14%;   top: 0%;      width: 72%;  height: 6.579%; }
.panel[data-key="solOnKanat"]   { left: 7%;    top: 7.895%;  width: 23%;  height: 18.421%; }
.panel[data-key="kaput"]        { left: 32%;   top: 7.895%;  width: 36%;  height: 19.737%; }
.panel[data-key="sagOnKanat"]   { left: 70%;   top: 7.895%;  width: 23%;  height: 18.421%; }
.panel[data-key="solMarspiyel"] { left: 0%;    top: 27.632%; width: 5.5%; height: 43.421%; }
.panel[data-key="solOnKapi"]    { left: 7%;    top: 27.632%; width: 23%;  height: 21.053%; }
.panel[data-key="solArkaKapi"]  { left: 7%;    top: 50%;     width: 23%;  height: 21.053%; }
.panel[data-key="tavan"]        { left: 32%;   top: 33.553%; width: 36%;  height: 32.895%; }
.panel[data-key="sagOnKapi"]    { left: 70%;   top: 27.632%; width: 23%;  height: 21.053%; }
.panel[data-key="sagArkaKapi"]  { left: 70%;   top: 50%;     width: 23%;  height: 21.053%; }
.panel[data-key="sagMarspiyel"] { left: 94.5%; top: 27.632%; width: 5.5%; height: 43.421%; }
.panel[data-key="solArkaKanat"] { left: 7%;    top: 72.368%; width: 23%;  height: 18.421%; }
.panel[data-key="bagaj"]        { left: 32%;   top: 72.368%; width: 36%;  height: 18.421%; }
.panel[data-key="sagArkaKanat"] { left: 70%;   top: 72.368%; width: 23%;  height: 18.421%; }
.panel[data-key="arkaBumper"]   { left: 14%;   top: 93.421%; width: 72%;  height: 6.579%; }
.glass.g1 { left: 33%; top: 28.947%; width: 34%; height: 3.289%; }
.glass.g2 { left: 33%; top: 67.763%; width: 34%; height: 3.289%; }

.readout { min-width: 0; }
.readout-part { font-weight: 800; font-size: var(--step-h2); line-height: 1.02; letter-spacing: -0.03em; }
.readout-status { margin-top: 14px; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: var(--step-lead); }
.chip { width: 18px; height: 18px; border-radius: 4px; flex: none; }
.readout-mikron { margin-top: 6px; font-size: var(--step-lead); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.readout-mikron strong { color: var(--ink); font-weight: 800; }
.readout-note { margin-top: 14px; max-width: 46ch; color: var(--ink); }
.tally {
  margin-top: 28px; display: grid; grid-template-columns: repeat(5, auto); justify-content: start; column-gap: 22px; row-gap: 8px;
  font-variant-numeric: tabular-nums;
}
.tally div { display: flex; flex-direction: column-reverse; }
.tally dt { font-size: var(--step-small); color: var(--ink-2); white-space: nowrap; }
.tally dd { font-weight: 800; font-size: var(--step-lead); }
.verdict { margin-top: 24px; font-size: var(--step-body); }
.verdict strong { font-weight: 800; }
.sample-note { margin-top: 18px; font-size: var(--step-small); color: var(--ink-2); max-width: 52ch; }

/* ---------- kimin için: kare fotoğraf + sade metin ---------- */
.showcase {
  margin-top: var(--section-gap);
  background: var(--ground-2);
  display: grid; grid-template-columns: 1fr 1fr; min-height: 88svh;
}
.sc-plate { padding: 40px; display: flex; align-items: center; }
.plate { width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--ground); }
.plate[hidden] { display: none; }
.plate img { width: 100%; height: 100%; object-fit: cover; }
.sc-text {
  padding: clamp(32px, 5vw, 72px) clamp(24px, 5vw, 80px) 40px clamp(16px, 2vw, 32px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
}
.tabs { display: flex; gap: 28px; }
.tabs button {
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  font: 500 17px/1.3 "Plus Jakarta Sans", system-ui, sans-serif; color: var(--on-ground-2);
  transition: color .15s, transform .15s;
}
.tabs button:hover { color: var(--on-ground); }
.tabs button[aria-selected="true"] { color: var(--on-ground); font-weight: 800; }
.tabs button:active { transform: scale(.97); }
.sc-copy[hidden] { display: none; }
.sc-copy h2 { font-weight: 800; font-size: var(--step-h2); line-height: 1.04; letter-spacing: -0.03em; }
.sc-copy p { margin-top: 32px; max-width: 40ch; font-size: var(--step-lead); line-height: 1.5; color: var(--on-ground); }
.sc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.cell {
  display: flex; align-items: center; padding: 0 22px; min-height: 76px;
  font-weight: 700; font-size: 17px; text-decoration: none;
  transition: transform .18s var(--ease-out), background-color .18s;
}
.cell:hover { transform: translateY(-3px); }
.cell:active { transform: translateY(0) scale(.99); }
.cell-ink { background: var(--paper); color: var(--ink); }
.cell-tone { background: #1d2846; color: var(--on-ground); }
.cell-tone:hover { background: #24315a; }

/* ---------- firma süreci: fiş ---------- */
.slip-section {
  margin-top: var(--section-gap);
  padding: 0 var(--margin);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start;
}
.slip-intro { grid-column: 1 / span 5; position: sticky; top: 48px; }
.slip-intro h2 { font-weight: 800; font-size: var(--step-h2); line-height: 1.04; letter-spacing: -0.03em; }
.slip-intro p { margin-top: 24px; max-width: 32ch; font-size: var(--step-lead); line-height: 1.5; }
.slip {
  grid-column: 7 / span 5;
  max-width: 500px; width: 100%;
  background: var(--paper); color: var(--ink);
  padding: 36px 36px 64px;
  font-variant-numeric: tabular-nums;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 97.5% 100%, 95% calc(100% - 14px), 92.5% 100%, 90% calc(100% - 14px), 87.5% 100%, 85% calc(100% - 14px), 82.5% 100%, 80% calc(100% - 14px), 77.5% 100%, 75% calc(100% - 14px), 72.5% 100%, 70% calc(100% - 14px), 67.5% 100%, 65% calc(100% - 14px), 62.5% 100%, 60% calc(100% - 14px), 57.5% 100%, 55% calc(100% - 14px), 52.5% 100%, 50% calc(100% - 14px), 47.5% 100%, 45% calc(100% - 14px), 42.5% 100%, 40% calc(100% - 14px), 37.5% 100%, 35% calc(100% - 14px), 32.5% 100%, 30% calc(100% - 14px), 27.5% 100%, 25% calc(100% - 14px), 22.5% 100%, 20% calc(100% - 14px), 17.5% 100%, 15% calc(100% - 14px), 12.5% 100%, 10% calc(100% - 14px), 7.5% 100%, 5% calc(100% - 14px), 2.5% 100%, 0 calc(100% - 14px));
}
.slip-when { font-weight: 800; font-size: 17px; margin-top: 28px; }
.slip > div:first-child .slip-when { margin-top: 0; }
.slip-row { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; font-size: 17px; }
.slip-row span:first-child { flex: 0 1 auto; }
.slip-row b { flex: 1 1 24px; align-self: center; height: 4px; margin-top: 6px; border-bottom: 4px dotted var(--ink-2); }
.slip-row span:last-child { flex: none; font-weight: 500; color: var(--ink-2); }
.slip-total {
  margin: 32px 0 0; padding: 0 16px; min-height: 48px; border-radius: 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--ink); color: var(--paper); font-weight: 700; font-size: 17px;
}

/* ---------- raporda neler var: basılı liste ---------- */
.list-section {
  margin-top: var(--section-gap);
  background: var(--accent);
  overflow: hidden;
  padding: clamp(64px, 8vw, 120px) var(--margin) 0;
  max-height: 120svh;
}
.list-card {
  width: min(56vw, 760px); margin: 0 auto;
  background: var(--paper); color: var(--ink);
  padding: 56px 56px 120px;
  transform: rotate(-1.5deg);
  text-align: center;
}
.list-card h2 { font-weight: 800; font-size: 32px; letter-spacing: -0.02em; line-height: 1.15; }
.tipped { margin-top: 32px; aspect-ratio: 16 / 9; overflow: hidden; }
.tipped img { width: 100%; height: 100%; object-fit: cover; }
.names { margin-top: 36px; font-size: var(--step-lead); line-height: 1.7; }

/* ---------- form: kupon ---------- */
.coupon-section { padding: var(--section-gap) var(--margin); }
.coupon {
  position: relative;
  width: min(1180px, 100%); margin: 0 auto;
  display: grid; grid-template-columns: 46fr 54fr;
  background: var(--accent); color: var(--accent-ink);
  border-radius: var(--radius);
  min-height: 520px;
}
/* Kesik yerleri: üst ve alt kenarda zemin renginde yarım daireler, aralarında delik sırası. */
.coupon::before, .coupon::after {
  content: ""; position: absolute; left: calc(46% - 14px); width: 28px; height: 28px; border-radius: 50%; background: var(--ground);
}
.coupon::before { top: -14px; }
.coupon::after { bottom: -14px; }
.coupon-left {
  padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  border-right: 5px dotted var(--ground);
  margin: 22px 0;
}
.coupon-left h2 { font-weight: 800; font-size: var(--step-h2); line-height: 1.04; letter-spacing: -0.03em; max-width: 11ch; }
.coupon-left p { font-size: var(--step-body); max-width: 36ch; }
.coupon-right { padding: 48px; }
.coupon-right form { display: grid; gap: 10px; }
.kind { border: 0; padding: 0; margin: 0 0 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.kind label { position: relative; cursor: pointer; }
.kind input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.kind span {
  display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 12px;
  background: #1f55dc; color: var(--accent-ink); font-weight: 700; text-align: center;
  transition: background-color .15s, color .15s;
}
.kind label:first-child span { border-radius: var(--radius) 0 0 var(--radius); }
.kind label:last-child span { border-radius: 0 var(--radius) var(--radius) 0; }
.kind input:checked + span { background: var(--ink); color: var(--paper); }
.kind input:focus-visible + span { outline: 3px solid var(--paper); outline-offset: 2px; }
.field {
  width: 100%; min-height: 54px; padding: 0 16px; border: 0; border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
  font: 400 17px/1.2 "Plus Jakarta Sans", system-ui, sans-serif;
  outline: 3px solid transparent; outline-offset: 0;
  transition: outline-color .15s;
}
.field::placeholder { color: #4a5677; }
.field:focus { outline-color: var(--ink); }
.field[aria-invalid="true"] { outline-color: #ffd2cc; }
.firm-fields { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.firm-fields[hidden] { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: bal tuzağı alanını gizler, çizgi değil */
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; margin-top: 8px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.privacy { font-size: var(--step-small); }
.form-msg { background: var(--ink); color: var(--paper); padding: 12px 14px; border-radius: var(--radius); font-size: 14px; }
.submit {
  margin-top: 6px; min-height: 58px; border: 0; border-radius: var(--radius); cursor: pointer;
  background: var(--ink); color: var(--paper);
  font: 800 17px/1 "Plus Jakarta Sans", system-ui, sans-serif;
  transition: transform .18s var(--ease-out), background-color .15s;
}
.submit:hover { transform: translateY(-2px); background: #16213f; }
.submit:active { transform: translateY(0) scale(.99); }
.submit:disabled { cursor: progress; opacity: .7; transform: none; }
.done { display: grid; gap: 12px; align-content: center; min-height: 100%; font-size: var(--step-lead); }
.done[hidden] { display: none; }
.done-title { font-weight: 800; font-size: var(--step-h2); letter-spacing: -0.03em; line-height: 1.05; }

/* ---------- sorular: okuma metni ---------- */
.faq {
  padding: 0 var(--margin) var(--section-gap);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
}
.faq h2 { grid-column: 1 / span 3; font-weight: 800; font-size: 32px; letter-spacing: -0.02em; }
.faq-text { grid-column: 5 / span 8; columns: 2; column-gap: 56px; }
.faq-text p { break-inside: avoid; margin-bottom: 20px; font-size: 17px; line-height: 1.55; max-width: 38ch; }
.faq-text b { font-weight: 700; color: var(--on-ground); }

.closing-plate { overflow: hidden; height: clamp(220px, 38vw, 520px); }
.closing-plate img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }

/* ---------- alt bilgi: perde gibi açılır (main kayar, footer altta bekler) ---------- */
.footer {
  position: relative;
  background: var(--paper); color: var(--ink);
  min-height: 90svh; overflow: hidden;
  padding: 0 var(--margin) 28px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.footer-word {
  font-weight: 800; font-size: 23vw; line-height: .9; letter-spacing: -0.05em; white-space: nowrap;
  margin-left: -0.05em; margin-right: calc(-1 * var(--margin) - 4vw);
  padding-top: 4vw;
}
.footer-row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; margin-top: 72px; }
.footer-places { grid-column: 1 / span 5; display: grid; gap: 6px; }
.footer-places a { font-weight: 800; font-size: 32px; letter-spacing: -0.02em; color: var(--accent); text-decoration: none; }
.footer-places a:hover { text-decoration: underline; }
.footer-links { grid-column: 7 / span 6; columns: 2; column-gap: 24px; font-size: 14px; }
.footer-links li { margin-bottom: 8px; }
.credits { margin-top: 48px; max-width: 110ch; font-size: var(--step-small); color: var(--ink-2); }
.footer-last { margin-top: 32px; display: flex; justify-content: space-between; gap: 16px; font-size: var(--step-small); }

/* ---------- hareket ---------- */
@keyframes sheet-in { from { transform: translateY(48px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pick { 0% { transform: scale(.94); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes rise { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drift { from { transform: scale(1.12) translateY(-3%); } to { transform: scale(1) translateY(3%); } }
@keyframes curtain { from { transform: translateY(-38vh); } to { transform: none; } }
@keyframes tilt-in { from { transform: rotate(-4deg) translateY(80px); } to { transform: rotate(-1.5deg); } }

.topbar > * { animation: rise .7s var(--ease-out) both; }
.topbar > :nth-child(2) { animation-delay: .06s; }
.topbar > :nth-child(3) { animation-delay: .12s; }
.sheet-head h1 { animation: rise .8s .15s var(--ease-out) both; }
.sheet-lines { animation: rise .8s .25s var(--ease-out) both; }

/* Bölüm girişleri kaydırmaya bağlı (betik yok; desteklemeyen tarayıcıda içerik zaten görünür). */
@supports (animation-timeline: view()) {
  .sheet-body > *, .sc-text > *, .plate, .slip-intro > *, .slip, .names, .tipped,
  .coupon-left > *, .coupon-right, .faq h2, .faq-text p, .footer-places li, .footer-links {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
  .sheet-body > :nth-child(2), .sc-text > :nth-child(2), .slip, .coupon-right, .tipped { animation-range: entry 8% entry 65%; }
  .sc-text > :nth-child(3), .names { animation-range: entry 16% entry 75%; }
  .faq-text p:nth-child(even) { animation-range: entry 10% entry 65%; }
  .list-card { animation: tilt-in linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  .closing-plate img, .plate img { animation: drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  /* Perde: alt bilgi sayfanın altından açılır gibi — içeriği yukarıdan kayarak yerine oturur. */
  .footer > * { animation: curtain linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ---------- tablet ---------- */
@media (max-width: 1023px) {
  .toplinks { display: none; }
  .topbar { grid-template-columns: 1fr auto; }
  .showcase { grid-template-columns: 1fr; min-height: 0; }
  .sc-plate { padding: 16px 16px 0; }
  .sc-text { padding: 32px 16px 16px; gap: 32px; }
  .slip-section { display: block; }
  .slip-intro { position: static; }
  .slip { margin-top: 40px; max-width: 520px; }
  .list-card { width: min(92vw, 640px); padding: 40px 32px 100px; }
  .coupon { grid-template-columns: 1fr; }
  .coupon::before, .coupon::after { display: none; }
  .coupon-left { position: relative; border-right: 0; border-bottom: 5px dotted var(--ground); margin: 0 22px; padding: 36px 6px 32px; }
  /* Telefonda delik sırası yatay: kesikler sol ve sağ kenarda, delik sırasının hizasında. */
  .coupon-left::before, .coupon-left::after {
    content: ""; position: absolute; bottom: -16.5px; width: 28px; height: 28px; border-radius: 50%; background: var(--ground);
  }
  .coupon-left::before { left: -36px; }
  .coupon-left::after { right: -36px; }
  .coupon-right { padding: 28px; }
  .faq { display: block; }
  .faq h2 { margin-bottom: 28px; }
  .faq-text { columns: 1; }
  .faq-text p { max-width: 62ch; }
  .footer-row { display: block; }
  .footer-links { margin-top: 32px; }
}

/* ---------- telefon ---------- */
@media (max-width: 640px) {
  :root { --step-body: 16px; }
  .topbar { padding-top: 16px; gap: 12px; }
  .wordmark { font-size: 22px; }
  .topactions { gap: 14px; }
  .btn { min-height: 44px; padding: 0 14px; font-size: 14px; }
  .hero { padding: 0 12px; margin-top: 36px; }
  .sheet { padding: 40px 16px 32px; }
  .sheet::before, .sheet::after { width: 32px; height: 32px; top: -16px; }
  .sheet::before { left: -16px; }
  .sheet::after { right: -16px; }
  h1 { font-size: 8.8vw; }
  .sheet-lines { flex-direction: column; row-gap: 4px; font-size: 14px; }
  .sheet-lines .diamond { display: none; }
  .sheet-body { grid-template-columns: 1fr; gap: 28px; }
  .map-wrap { width: min(280px, 82%); margin: 0 auto; }
  .readout-part { font-size: 32px; }
  .tally { grid-template-columns: repeat(3, auto); }
  .sc-actions { grid-template-columns: 1fr; }
  .cell { min-height: 60px; }
  .slip { padding: 28px 20px 56px; }
  .slip-total { margin: 28px 0 0; padding: 10px 14px; flex-wrap: wrap; }
  .list-section { padding-top: 56px; }
  .list-card { width: 92vw; padding: 28px 22px 80px; transform: rotate(-1deg); }
  .list-card h2 { font-size: 22px; }
  .names { font-size: 17px; }
  .coupon-section { padding-left: 12px; padding-right: 12px; }
  .coupon-left { padding: 30px 4px 26px; margin: 0 18px; }
  .coupon-left::before { left: -32px; }
  .coupon-left::after { right: -32px; }
  .coupon-right { padding: 22px 18px 26px; }
  .firm-fields { grid-template-columns: 1fr; }
  .kind span { min-height: 54px; font-size: 14px; }
  .faq { padding-left: 20px; padding-right: 20px; }
  .faq h2 { font-size: 22px; }
  .footer-places a { font-size: 22px; }
  .footer-links { columns: 2; }
  .footer-last { font-size: 13px; }
}

/* ---------- /giris: bilet ---------- */
.page-giris main { min-height: 100svh; }
.gate { padding: clamp(56px, 12vh, 140px) var(--margin) 80px; }
.ticket {
  position: relative; width: min(980px, 100%); margin: 0 auto;
  display: grid; grid-template-columns: 44fr 56fr;
  background: var(--paper); color: var(--ink); border-radius: var(--radius);
  animation: sheet-in .8s var(--ease-out) both;
}
.ticket::before, .ticket::after {
  content: ""; position: absolute; left: calc(44% - 14px); width: 28px; height: 28px; border-radius: 50%; background: var(--ground);
}
.ticket::before { top: -14px; }
.ticket::after { bottom: -14px; }
.ticket-stub {
  padding: 44px; margin: 22px 0; border-right: 5px dotted var(--ground);
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.ticket-stub h1 { font-size: var(--step-h2); line-height: 1.04; }
.ticket-stub p { color: var(--ink); max-width: 30ch; }
.ticket-form { padding: 44px; display: grid; gap: 10px; align-content: center; }
.ticket-form > label:first-child { font-weight: 700; font-size: 14px; }
.ticket-form .field { background: #ffffff; outline-color: transparent; }
.ticket-form .field:focus { outline-color: var(--accent); }
.reveal { display: inline-flex; gap: 8px; align-items: center; font-size: var(--step-small); color: var(--ink-2); cursor: pointer; justify-self: start; }
.reveal input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.ticket-form .submit { background: var(--accent); color: var(--accent-ink); }
.ticket-form .submit:hover { background: #3a74ff; }
.gate-note { margin-top: 8px; font-size: var(--step-small); color: var(--ink-2); }
@media (max-width: 760px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket::before, .ticket::after { display: none; }
  .ticket-stub { border-right: 0; border-bottom: 5px dotted var(--ground); margin: 0 18px; padding: 32px 4px 24px; position: relative; }
  .ticket-stub::before, .ticket-stub::after { content: ""; position: absolute; bottom: -16.5px; width: 28px; height: 28px; border-radius: 50%; background: var(--ground); }
  .ticket-stub::before { left: -32px; }
  .ticket-stub::after { right: -32px; }
  .ticket-form { padding: 24px 18px 30px; }
}
.page-giris .topbar { grid-template-columns: 1fr auto; }
.page-giris .topbar > span { display: none; }
