/* ==========================================================
   Köprü — Tanıtım sitesi (token'lar: tokens.css)
   Bol boşluk, büyük başlıklar, tek vurgu. Renkler yalnız token;
   tema uygulamayla aynı (theme-boot.js), dil page-lang.js.
   ========================================================== */

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-size: 16px; line-height: 1.6; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 780px; }
.center { text-align: center; }
.center-row { justify-content: center; }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.15; }
h3 { font-size: 1.12rem; line-height: 1.3; }

.btn-sm { padding: 9px 16px; font-size: 0.88rem; border-radius: var(--r-md); }
.btn-lg { padding: 14px 24px; font-size: 1rem; border-radius: var(--r-md); }
.btn-primary { box-shadow: 0 8px 24px color-mix(in srgb, var(--cyan) 22%, transparent); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost:hover { background: var(--border); }

/* ---- Üst menü ---- */
.nav {
  position: sticky; top: 0; z-index: 20;
  padding-top: var(--safe-t);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font: 700 1.2rem var(--font-brand); letter-spacing: 0.01em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.lang-switch { color: var(--text-muted); font-size: 0.88rem; text-decoration: none; }
.lang-switch:hover { color: var(--text); }
.nav-inner:not(:has(.nav-links)) .lang-switch { margin-left: auto; }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav .lang-switch { margin-left: auto; }
}

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 62%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.pill-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--border);
  font-size: var(--fs-sm); font-weight: 500; color: var(--text-muted);
}
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.3rem); line-height: 1.02; margin: 22px 0 20px; }
.hero-lede { font-size: 1.14rem; color: var(--text-muted); max-width: 540px; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--text-muted); font-size: 0.9rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: "✓"; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%;
  background: color-mix(in srgb, var(--cyan) 16%, transparent); color: var(--cyan); font-size: 10px; font-weight: 700;
}

/* Telefon maketi: uygulamadaki Bugün ekranı (v2.32) */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  width: 300px; max-width: 100%; padding: 12px; border-radius: 44px;
  background: var(--surface-2); border: 1px solid var(--border);
  box-shadow: 0 40px 80px var(--shadow-2);
  transform: rotate(2deg);
}
.phone-screen { position: relative; border-radius: 34px; background: var(--bg); padding: 26px 14px 0; min-height: 580px; font-size: 12px; overflow: hidden; display: flex; flex-direction: column; }
.m-eyebrow { margin: 0; color: var(--text-muted); font-size: 10.5px; }
.m-title { margin: 2px 0 4px; font: 700 18px var(--font-display); }
.m-sub { margin: 0 0 10px; color: var(--text-muted); font-size: 11px; }
.m-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; margin-bottom: 10px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 10px; text-align: center; color: var(--text-muted); }
.m-seg span.on { background: var(--surface); color: var(--text); border-radius: 6px; padding: 3px 0; font-weight: 600; box-shadow: var(--card-shadow); }
.m-seg span { padding: 3px 0; }
.m-focus { background: var(--surface); border: 1px solid color-mix(in srgb, var(--danger) 45%, var(--border)); border-radius: 14px; padding: 11px; margin-bottom: 8px; display: grid; gap: 8px; box-shadow: var(--card-shadow); }
.m-focus-top { display: flex; justify-content: space-between; font-size: 9px; color: var(--text-muted); }
.m-focus-top > span:first-child { font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.m-focus-top i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); margin-right: 5px; }
.m-focus-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.m-focus-main b { display: block; font: 700 15px var(--font-display); }
.m-focus-main small { color: var(--text-muted); font-size: 10px; }
.m-focus-main strong { font: 700 15px var(--font-display); color: var(--danger); white-space: nowrap; }
.m-done { justify-self: start; padding: 4px 10px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface-2); font-size: 10px; font-weight: 600; }
.m-alert { display: flex; align-items: center; gap: 9px; padding: 8px 10px; margin-bottom: 12px; border-radius: 12px; background: color-mix(in srgb, var(--warn) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--border)); }
.m-alert-ico { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--warn); color: var(--on-accent); font-size: 11px; font-weight: 800; flex: none; }
.m-alert b { display: block; font-size: 10.5px; color: var(--warn-soft-text); }
.m-alert small { display: block; font-size: 9.5px; color: var(--text-muted); }
.m-label { margin: 0 0 6px; font-size: 9px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.m-session {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 11px;
  padding: 9px 10px; margin-bottom: 6px; box-shadow: var(--card-shadow);
}
.m-session.now { border-color: var(--cyan); }
.m-session > span:nth-child(2) { min-width: 0; }
.m-session b { display: flex; align-items: center; gap: 5px; font-size: 12px; }
.m-session small { display: block; color: var(--text-muted); font-size: 10px; }
.m-session .m-topic { color: var(--text-dim); font-size: 9.5px; margin-top: 1px; }
.m-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); flex: none; }
.m-dot.v { background: var(--violet); }
.m-session em { margin-left: auto; font-style: normal; font-size: 9px; font-weight: 600; color: var(--cyan); background: color-mix(in srgb, var(--cyan) 15%, transparent); padding: 2px 7px; border-radius: var(--r-pill); white-space: nowrap; }
.m-time { font: 600 12px/1.15 var(--font-display); display: flex; flex-direction: column; min-width: 36px; font-variant-numeric: tabular-nums; }
.m-time small { font: 500 9.5px var(--font-body); color: var(--text-muted); }
.m-session + .m-label { margin-top: 10px; }
.m-weather { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow); }
.m-weather b { font: 700 16px var(--font-display); }
.m-weather span { color: var(--text-muted); font-size: 10px; }
.m-tabs { margin: auto -14px 0; padding: 8px 6px 14px; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--border); background: var(--bg-2); font-size: 8.5px; color: var(--text-muted); text-align: center; }
.m-tabs span { display: grid; justify-items: center; gap: 3px; }
.m-tabs i { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid currentColor; }
.m-tabs .on { color: var(--cyan); font-weight: 600; }
.m-tabs .on i { background: color-mix(in srgb, var(--cyan) 20%, transparent); }
.m-tabs .ai i { width: 20px; height: 20px; margin-top: -6px; border: 0; border-radius: 50%; background: var(--violet-solid); }

.file-chip {
  position: absolute; z-index: 2; left: -12px; bottom: 120px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border);
  box-shadow: 0 18px 40px var(--shadow-1);
  animation: float 5s ease-in-out infinite;
}
.file-chip b { display: block; font-size: 0.82rem; }
.file-chip small { color: var(--ok); font-size: 0.74rem; }
.file-ico { display: grid; place-items: center; width: 34px; height: 40px; border-radius: 7px; background: var(--danger); color: var(--on-danger); font: 700 0.62rem var(--font-body); letter-spacing: 0.04em; flex: none; }
@keyframes float { 50% { transform: translateY(-8px); } }

@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-copy { text-align: center; }
  .hero-lede { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-points { justify-content: center; }
  .file-chip { left: 50%; transform: translateX(-190px); bottom: 90px; animation: none; }
}
/* Dar ekranda dosya kartı telefonun üstüne binmesin: telefonun altında durur */
@media (max-width: 480px) {
  .hero-visual { flex-direction: column; align-items: center; gap: 14px; }
  .phone { width: 280px; transform: none; }
  .file-chip { position: static; transform: none; order: 2; }
}

/* ---- Bölümler ---- */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { margin-bottom: 52px; }
.eyebrow { margin: 0 0 12px; font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); }
.section-lede { color: var(--text-muted); font-size: 1.08rem; max-width: 620px; margin: 16px auto 0; }
@media (max-width: 640px) { .section { padding: 68px 0; } .section-head { margin-bottom: 36px; } }

.problem { padding: 80px 0; }
.problem h2 { font-size: clamp(1.45rem, 3vw, 2.05rem); line-height: 1.3; font-weight: 600; }

/* Adımlar */
.steps-grid { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px 26px; box-shadow: var(--card-shadow); }
.step-no { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-md); margin-bottom: 18px; background: var(--gradient); color: var(--on-accent); font: 700 1.05rem var(--font-display); }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
@media (max-width: 860px) { .steps-grid { grid-template-columns: minmax(0, 1fr); } }

/* Örnek: syllabus → Köprü. Belge her temada kâğıt rengi kalır. */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); gap: 16px; align-items: center; padding: 28px; border-radius: 24px; background: var(--bg-2); border: 1px solid var(--border); }
.demo-doc { background: var(--paper); color: var(--paper-ink); border-radius: 14px; padding: 22px; font-size: 0.86rem; box-shadow: 0 20px 40px var(--shadow-1); border: 1px solid var(--border); }
.doc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 0.9rem; }
.doc-line { height: 8px; border-radius: 4px; background: var(--paper-line); margin: 0 0 10px; }
.w60 { width: 60%; } .w70 { width: 70%; } .w75 { width: 75%; } .w80 { width: 80%; } .w85 { width: 85%; } .w90 { width: 90%; }
.doc-hl { margin: 0 0 10px; padding: 3px 6px; border-radius: 5px; font-weight: 500; background: linear-gradient(90deg, color-mix(in srgb, var(--cyan) 35%, transparent), color-mix(in srgb, var(--violet) 30%, transparent)) no-repeat 0 0 / 0% 100%; }
.demo.visible .doc-hl { animation: hl 0.7s ease-out var(--d) forwards; }
@keyframes hl { to { background-size: 100% 100%; } }
@media (prefers-reduced-motion: reduce) { .doc-hl { background-size: 100% 100%; } }
.demo-arrow { display: grid; place-items: center; }
.demo-arrow span { width: 44px; height: 44px; border-radius: 50%; background: var(--gradient); position: relative; }
.demo-arrow span::after {
  content: ""; position: absolute; inset: 0; background: var(--on-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-5-5 5 5-5 5'/%3E%3C/svg%3E") center / 22px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-5-5 5 5-5 5'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.demo-out { display: grid; gap: 10px; }
.out-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 13px 16px; box-shadow: var(--card-shadow); }
.out-label { margin: 0 0 3px; font-size: var(--fs-2xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.out-main { margin: 0; font-weight: 600; }
.out-sub { margin: 0; font-size: 0.86rem; color: var(--text-muted); }
.out-dates { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; font-size: 0.92rem; }
.out-dates li { display: flex; align-items: center; gap: 8px; }
.tag-exam { font-size: var(--fs-2xs); font-weight: 600; padding: 1px 8px; border-radius: 6px; background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger-text); }
.bar { display: flex; gap: 3px; margin-top: 6px; border-radius: var(--r-sm); overflow: hidden; font-size: 0.76rem; font-weight: 600; }
.bar > span { padding: 5px 8px; white-space: nowrap; }
.bar > span:first-child { background: var(--cyan); color: var(--on-accent); }
.bar > span:last-child { background: var(--violet-solid); color: var(--on-violet); }
.demo-note { text-align: center; color: var(--text-dim); font-size: 0.86rem; margin: 16px auto 0; max-width: 620px; }
@media (max-width: 860px) {
  .demo { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .demo-arrow span { transform: rotate(90deg); }
}

/* Özellikler */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--card-shadow); }
.f-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r-md); margin-bottom: 18px; background: var(--surface-2); color: var(--cyan); }
.f-icon.f-violet { color: var(--violet); }
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; color: var(--text-muted); font-size: 0.94rem; }
.feature p b { display: block; color: var(--text); font-weight: 500; font-style: italic; margin-bottom: 4px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: minmax(0, 1fr); } }

/* Kurulum */
.install-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.install-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--card-shadow); }
.install-card h3 { margin-bottom: 14px; }
.install-card ol { margin: 0; padding-left: 20px; color: var(--text-muted); font-size: 0.94rem; display: grid; gap: 8px; }
.install-card b { color: var(--text); font-weight: 600; }
.install-cta { margin-top: 32px; }
@media (max-width: 860px) { .install-grid { grid-template-columns: minmax(0, 1fr); } }

/* SSS */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--card-shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-size: 1.3rem; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--text-muted); }
.faq a { color: var(--cyan); }

/* Son çağrı */
.final { background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 14%, transparent), transparent 65%); }
.final .hero-cta { margin-top: 30px; }

/* Alt bilgi */
.footer { border-top: 1px solid var(--border); padding: 36px 0 calc(36px + var(--safe-b)); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer nav a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.footer nav a:hover { color: var(--text); }
.footer p { margin: 0 0 0 auto; color: var(--text-dim); font-size: 0.85rem; }
@media (max-width: 640px) { .footer p { margin: 0; width: 100%; } }

/* Gizlilik sayfası */
.legal { padding: 56px 0 80px; }
.legal h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); margin-bottom: 8px; }
.legal .updated { color: var(--text-dim); font-size: 0.9rem; margin: 0 0 36px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--text-muted); }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--text); }
.legal a { color: var(--cyan); }
.legal .summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px 24px; }
.legal .summary ul { margin: 8px 0 0; padding-left: 20px; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 0.92rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--border); color: var(--text-muted); }
.legal th { color: var(--text); background: var(--surface); font-weight: 600; }
.table-wrap { overflow-x: auto; }

/* İki dilli sabit sayfa (index.html, gizlilik.html; page-lang.js): seçili olmayan dil gizli */
html[lang="tr"] [data-lang="en"], html[lang="en"] [data-lang="tr"] { display: none !important; }
