/* Teslimat Checklist — mobil öncelikli. Palet: Ultra Red / Siyah / Beyaz. */

/* ---------- Tokenlar ---------- */
:root {
  --red: #a50f1c;          /* Ultra Red: dolgu, beyaz metinle 7.6:1 */
  --red-hover: #8a0c17;
  --on-red: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --gutter: 16px;
  --topbar-h: 56px;
  --dock-h: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
:root, :root[data-theme="dark"] {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-2: #1d1d1d;
  --line: #2b2b2b;
  --text: #ffffff;
  --muted: #a8a8a8;
  --red-ink: #ff5a66;      /* koyu zeminde okunur kırmızı metin */
  --red-soft: rgba(229, 32, 48, .14);
  --shadow: 0 10px 30px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f5f5f5;
  --surface-2: #ebebeb;
  --line: #e0e0e0;
  --text: #0a0a0a;
  --muted: #555555;
  --red-ink: #a50f1c;
  --red-soft: rgba(165, 15, 28, .08);
  --shadow: 0 10px 30px rgba(0, 0, 0, .12);
  color-scheme: light;
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
button, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.i { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 3px solid var(--red-ink); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--red); color: var(--on-red); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Üst çubuk ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.topbar-in { display: flex; align-items: center; gap: 8px; height: var(--topbar-h); max-width: 760px; margin: 0 auto; padding: 0 8px 0 var(--gutter); }
.page-checklist .topbar-in, .topbar-in:has(> .icon-btn:first-child) { padding-left: 4px; }
.topbar-title { flex: 1; font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 16px; letter-spacing: .02em; margin-right: auto; min-height: 44px; }
.brand b { font-weight: 700; margin-left: 3px; }
.brand-mark { width: 14px; height: 22px; background: var(--red); clip-path: polygon(0 0, 100% 0, 100% 18%, 62% 18%, 62% 100%, 38% 100%, 38% 18%, 0 18%); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 0; background: transparent; border-radius: 50%; text-decoration: none;
  transition: background-color .15s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { background: var(--line); }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; font-size: 15px;
  transition: background-color .15s var(--ease), transform .1s var(--ease);
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--red); border-color: var(--red); color: var(--on-red); }
.btn-primary:hover { background: var(--red-hover); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--surface); }

/* ---------- Ana sayfa ---------- */
.hero { padding-top: 36px; padding-bottom: 8px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.hero h1 { font-size: clamp(34px, 9vw, 56px); font-weight: 800; }
.accent { color: var(--red-ink); }
.lead { color: var(--muted); font-size: 17px; margin-top: 14px; max-width: 58ch; }

.step { padding-top: 36px; }
.step-h { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.step-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: var(--on-red); font-size: 15px; font-weight: 700; }

.models { display: grid; gap: 14px; }
.model-card {
  position: relative; display: grid; text-align: left; width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px;
  overflow: hidden;
}
.model-y {
  grid-template-columns: 1fr auto; grid-template-areas: "art art" "info go";
  gap: 6px 12px; align-items: end;
  background: radial-gradient(120% 90% at 50% 0%, var(--red-soft), transparent 70%), var(--surface);
  transition: border-color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
}
.model-y:hover { border-color: var(--red); box-shadow: var(--shadow); }
.model-y:active { transform: scale(.99); }
.model-y.is-selected { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; }
.model-y .model-art { grid-area: art; padding: 8px 0 0; }
.model-y .model-info { grid-area: info; }
.model-name { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.model-sub { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.model-go { grid-area: go; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--red); color: var(--on-red); }

/* Model 3: daha küçük, siyah-beyaz, devre dışı */
.model-3 {
  grid-template-columns: 38% 1fr; align-items: center; gap: 14px; padding: 14px 16px;
  border-style: dashed; cursor: not-allowed;
}
.model-3 .model-art { filter: grayscale(1) contrast(.9); opacity: .55; }
.model-3 .model-name { font-size: 18px; color: var(--muted); }
.model-3 .model-sub { font-size: 13px; line-height: 1.45; }
.badge-soon {
  position: absolute; top: 10px; right: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--bg);
}
.car-svg { width: 100%; height: auto; }

/* Donanım seçimi */
.js .trims:not(.is-open) { display: none; }
.trims.is-open { animation: rise .35s var(--ease) both; }
.trim-grid { display: grid; gap: 12px; }
.trim-card {
  display: grid; gap: 10px; padding: 18px; border-radius: 18px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s var(--ease), transform .15s var(--ease);
}
.trim-card:hover { border-color: var(--red); }
.trim-card:active { transform: scale(.99); }
.trim-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.trim-name { font-size: 20px; }
.trim-name b { font-weight: 800; }
.trim-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.trim-tag { color: var(--muted); font-size: 15px; }
.trim-hl { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.trim-hl li { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); }
.trim-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--red-ink); margin-top: 2px; }

.how, .faq { padding-top: 48px; }
.how h2, .faq h2 { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.how-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.how-list li { display: flex; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--surface); }
.how-list .i { width: 24px; height: 24px; color: var(--red-ink); margin-top: 2px; }
.how-list h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.how-list p { color: var(--muted); font-size: 15px; }
.trust { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14px; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust .i { width: 18px; height: 18px; }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 56px; padding: 12px 0; font-weight: 600; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .i { transition: transform .2s var(--ease); color: var(--muted); }
.faq-item[open] summary .i { transform: rotate(180deg); }
.faq-item p { color: var(--muted); padding-bottom: 16px; }

/* ---------- Kontrol listesi ---------- */
.page-checklist main { padding-bottom: calc(var(--dock-h) + 32px + env(safe-area-inset-bottom)); }
.progress { position: sticky; top: calc(var(--topbar-h) + env(safe-area-inset-top)); z-index: 29; height: 3px; background: var(--line); }
.progress-bar { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); transition: transform .3s var(--ease); }

.ck-hero { padding-top: 20px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.ck-hero h1 { font-size: clamp(26px, 7vw, 38px); font-weight: 800; }
.ck-hero .lead { font-size: 16px; margin-top: 8px; }
.callout {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px;
  border-radius: var(--radius-sm); background: var(--red-soft); border: 1px solid color-mix(in srgb, var(--red) 40%, transparent);
  font-size: 15px;
}
.callout .i { color: var(--red-ink); margin-top: 1px; }

.filters {
  position: sticky; top: calc(var(--topbar-h) + 3px + env(safe-area-inset-top)); z-index: 20;
  display: flex; gap: 8px; padding-top: 12px; padding-bottom: 12px; margin-top: 8px; background: var(--bg);
}
.chip {
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; font-size: 14px; font-weight: 600;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

.groups { display: grid; gap: 12px; }
.group details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.group summary {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 64px;
  cursor: pointer; list-style: none; border-radius: 18px;
}
.group summary::-webkit-details-marker { display: none; }
.group-n { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 13px; color: var(--muted); width: 22px; }
.group-t { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.group-t h2 { font-size: 17px; font-weight: 700; }
.group-c { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.group.is-done .group-n { color: var(--red-ink); }
.group.is-done .group-c::after { content: " · tamamlandı"; }
.group-chev { color: var(--muted); transition: transform .2s var(--ease); }
.group details[open] .group-chev { transform: rotate(180deg); }
.group-hint { padding: 0 16px 12px; font-size: 14px; color: var(--muted); }

.items { list-style: none; margin: 0; padding: 0 8px 8px; display: grid; gap: 8px; }
.item {
  position: relative; padding: 14px 14px 12px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.item::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: transparent; transition: background-color .2s var(--ease); }
.item.is-ok::before { background: var(--text); }
.item.is-issue { border-color: color-mix(in srgb, var(--red) 55%, var(--line)); background: var(--red-soft); }
.item.is-issue::before { background: var(--red); }
.item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.item-t { font-size: 16px; font-weight: 650; line-height: 1.3; flex: 1 1 100%; }
.item.is-ok .item-t { color: var(--muted); }
.pill { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.pill-crit { background: var(--red); color: var(--on-red); }
.item-d { margin-top: 6px; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.item-img { margin: 10px 0 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); aspect-ratio: 8 / 5; }
.item-img img { width: 100%; height: 100%; object-fit: cover; }

.item-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.st {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  font-size: 15px; font-weight: 600;
  transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease), transform .1s var(--ease);
}
.st:active { transform: scale(.97); }
.st-ok[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.st-issue[aria-pressed="true"] { background: var(--red); color: var(--on-red); border-color: var(--red); }
@media (hover: hover) {
  .st-ok:hover:not([aria-pressed="true"]) { border-color: var(--text); }
  .st-issue:hover:not([aria-pressed="true"]) { border-color: var(--red); color: var(--red-ink); }
}

.item-note { margin-top: 10px; }
.item-note label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.item-note textarea {
  width: 100%; min-height: 64px; padding: 10px 12px; border-radius: var(--radius-sm); resize: vertical;
  border: 1px solid var(--line); background: var(--bg); font-size: 16px; /* 16px: iOS'ta zoom yapmaz */
}
.item-note textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.empty { text-align: center; color: var(--muted); padding: 32px 0; }

/* Alt sabit çubuk */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.dock-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 760px; margin: 0 auto; padding: 12px var(--gutter); }
.dock-stat { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dock-stat b { color: var(--text); font-size: 18px; }
.dock-issues b { color: var(--red-ink); }

/* Özet sayfası (bottom sheet) */
.sheet {
  width: 100%; max-width: 640px; max-height: 88dvh; margin: auto auto 0; padding: 0;
  border: 0; border-radius: 22px 22px 0 0; background: var(--bg); color: var(--text); box-shadow: var(--shadow);
}
.sheet::backdrop { background: rgba(0, 0, 0, .6); }
.sheet[open] { animation: sheet-up .3s var(--ease) both; }
.sheet-in { padding: 8px var(--gutter) calc(20px + env(safe-area-inset-bottom)); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; position: sticky; top: 0; background: var(--bg); }
.sheet-head h2 { font-size: 19px; font-weight: 700; }
.sum-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 20px; }
.sum-stats div { padding: 12px; border-radius: var(--radius-sm); background: var(--surface); text-align: center; }
.sum-stats b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.sum-stats span { font-size: 13px; color: var(--muted); }
.sum-stats .is-issue b { color: var(--red-ink); }
.sum-sub { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.sum-list { margin: 0; padding: 0 0 0 20px; display: grid; gap: 10px; }
.sum-list li { padding-left: 4px; }
.sum-list li::marker { color: var(--red-ink); font-weight: 700; }
.sum-g { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.sum-n { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.sum-none { color: var(--muted); font-size: 15px; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 20px; }
.sheet-actions .btn { padding: 0 10px; }
.btn-reset { width: 100%; margin-top: 10px; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--dock-h) + 16px + env(safe-area-inset-bottom)); z-index: 60;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 600;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Metin sayfaları ---------- */
.prose { padding-top: 28px; padding-bottom: 48px; }
.prose h1 { font-size: 32px; font-weight: 800; }
.prose h2 { font-size: 18px; font-weight: 700; margin: 28px 0 8px; }
.prose p { color: var(--muted); }
.prose .lead { margin-bottom: 8px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.center .btn { margin-top: 24px; }

/* ---------- Alt bilgi ---------- */
.site-footer { margin-top: 56px; padding: 28px 0 40px; border-top: 1px solid var(--line); }
.page-checklist .site-footer { margin-top: 0; padding-bottom: calc(var(--dock-h) + 40px + env(safe-area-inset-bottom)); }
.disclaimer { font-size: 13px; color: var(--muted); line-height: 1.6; }
.disclaimer strong { color: var(--text); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 16px; font-size: 14px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Animasyon ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Geniş ekran ---------- */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .models { grid-template-columns: 1.7fr 1fr; align-items: end; }
  .model-3 { grid-template-columns: 1fr; padding: 16px; }
  .model-3 .model-art { padding: 18px 8px 0; }
  .trim-grid { grid-template-columns: 1fr 1fr; }
  .sheet { margin: auto; border-radius: 22px; }
  .item-t { flex: 1 1 auto; }
}

/* ---------- Yazdırma ---------- */
@media print {
  :root, :root[data-theme] { --bg: #fff; --surface: #fff; --surface-2: #eee; --line: #ccc; --text: #000; --muted: #444; --red-ink: #a50f1c; --red-soft: #fff; }
  .topbar, .progress, .filters, .dock, .toast, .sheet, .site-footer, .callout, .item-actions, .crumbs, .skip { display: none !important; }
  .page-checklist main { padding: 0; }
  .group details { border: 0; }
  .group-chev { display: none; }
  .item { break-inside: avoid; border: 1px solid #ccc; }
  .item-t::before { content: "☐ "; }
  .item.is-ok .item-t::before { content: "☑ "; }
  .item.is-issue .item-t::before { content: "⚠ "; color: #a50f1c; }
  .item-note[hidden] { display: none !important; }
  .item-note textarea { border: 0; padding: 0; resize: none; }
}
