:root {
  --bg: #f5f6ff;
  --bg-2: #eef0ff;
  --card: #ffffff;
  --line: rgba(79, 70, 229, 0.14);
  --text: #111827;
  --muted: #5b6275;
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --green: #10b981;
  --orange: #f59e0b;
  --shadow: 0 18px 40px -18px rgba(79, 70, 229, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --bg-2: #121a33;
    --card: #161f3b;
    --line: rgba(165, 180, 252, 0.16);
    --text: #eef1ff;
    --muted: #a7b0cc;
    --brand: #a5b4fc;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg-2), var(--bg)) fixed;
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

a { color: var(--brand); }

.wrap { max-width: 820px; margin: 0 auto; padding: 24px 16px 64px; }

/* Üst bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav { display: flex; gap: 14px; font-size: 15px; font-weight: 600; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--brand); }

/* Ana sayfa */
.hero { text-align: center; padding: 20px 0 8px; }
.hero .icon { width: 132px; height: 132px; border-radius: 30px; box-shadow: var(--shadow); }
.hero h1 { font-size: clamp(36px, 8vw, 52px); margin: 22px 0 6px; letter-spacing: -0.5px; line-height: 1.1; }
.tagline { color: var(--muted); font-size: 19px; margin: 0 auto 26px; max-width: 560px; }
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff;
  font-weight: 800; font-size: 17px; text-decoration: none;
  box-shadow: 0 12px 28px -10px rgba(79, 70, 229, 0.65);
}
.cta:hover { transform: translateY(-1px); }
.cta svg { width: 22px; height: 22px; fill: currentColor; }
.note { display: block; margin-top: 12px; color: var(--muted); font-size: 14px; }

.example {
  margin: 40px auto 0; max-width: 560px; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px 20px;
  box-shadow: var(--shadow);
}
.example .en { font-size: 22px; font-weight: 800; margin: 0 0 12px; }
.example .read {
  display: inline-block; background: rgba(16, 185, 129, 0.12); color: #047857;
  border: 2px solid rgba(16, 185, 129, 0.45); border-radius: 14px; padding: 8px 14px;
  font-size: 20px; font-weight: 800; margin: 0 0 10px;
}
@media (prefers-color-scheme: dark) { .example .read { color: #6ee7b7; } }
.example .read mark { background: #fde68a; color: #92400e; border-radius: 6px; padding: 0 6px; }
.example .tr { color: var(--muted); margin: 0; font-weight: 600; }
.example small { display: block; margin-top: 10px; color: var(--muted); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 40px 0 8px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.feature b { display: block; font-size: 17px; margin-bottom: 4px; }
.feature span { color: var(--muted); font-size: 15px; }

/* Metin sayfaları */
.doc h1 { font-size: 34px; margin: 0 0 4px; line-height: 1.2; }
.doc .meta { color: var(--muted); margin: 0 0 24px; font-size: 15px; }
.doc h2 { font-size: 21px; margin: 32px 0 8px; }
.doc h3 { font-size: 17px; margin: 22px 0 4px; }
.doc p, .doc li { color: var(--text); opacity: 0.9; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin: 20px 0; }
.mail { font-size: 20px; font-weight: 800; word-break: break-all; }

footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 16px; }
footer a { color: var(--muted); }

/* "Nasıl okunur?" vitrini */
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin-top: 4px; }
.hero h1 br { display: none; }
@media (min-width: 560px) { .hero h1 br { display: inline; } }

.demo {
  margin: 4px auto 28px; max-width: 560px; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px;
  box-shadow: var(--shadow);
}
.demo-input {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px;
  border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px;
  min-height: 52px; font-size: 19px; font-weight: 700;
}
.demo-label { font-size: 13px; font-weight: 800; color: var(--muted); width: 100%; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--brand); margin-left: -6px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo-result {
  margin-top: 12px; border-radius: 16px; padding: 14px 16px; text-align: center;
  background: rgba(16, 185, 129, 0.10); border: 2px solid rgba(16, 185, 129, 0.45);
  opacity: 0.25; transition: opacity 0.25s ease;
}
.demo-result.on { opacity: 1; }
.demo-badge { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #059669; }
.demo-read { display: block; font-size: clamp(22px, 6vw, 30px); font-weight: 900; color: #065f46; line-height: 1.25; margin: 4px 0; }
.demo-tr { display: block; color: var(--muted); font-weight: 600; }
.demo-note { display: block; text-align: center; margin-top: 10px; color: var(--muted); font-size: 12px; }
@media (prefers-color-scheme: dark) {
  .demo-badge { color: #34d399; }
  .demo-read { color: #a7f3d0; }
}
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } .demo-result { transition: none; } }

.tricky { margin: 44px 0 0; text-align: center; }
.tricky h2 { font-size: 22px; margin: 0 0 14px; }
.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.chip { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.chip b { display: block; font-size: 16px; }
.chip span { display: block; color: #059669; font-weight: 800; font-size: 15px; }
@media (prefers-color-scheme: dark) { .chip span { color: #6ee7b7; } }
.tricky-note { color: var(--muted); font-size: 13px; margin: 10px 0 0; }

/* "X nasıl okunur?" sayfaları */
.crumb { font-size: 14px; color: var(--muted); margin: -12px 0 18px; }
.crumb a { color: var(--muted); }
.word-page h1 { font-size: clamp(30px, 7vw, 42px); line-height: 1.15; margin: 0 0 18px; letter-spacing: -0.3px; }
.word-card {
  text-align: center; border-radius: 22px; padding: 22px 18px;
  background: rgba(16, 185, 129, 0.10); border: 2px solid rgba(16, 185, 129, 0.45);
}
.word-read { display: block; font-size: clamp(34px, 9vw, 52px); font-weight: 900; color: #065f46; line-height: 1.15; margin: 6px 0; word-break: break-word; }
.word-tr { display: block; color: var(--muted); font-weight: 600; font-size: 17px; }
.word-tr b { color: var(--text); }
.listen {
  margin-top: 14px; border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: 16px;
  padding: 10px 20px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, #4f46e5, #7c3aed);
}
.word-note { color: var(--muted); font-size: 14px; text-align: center; margin: 10px 0 0; }
.word-sec { margin-top: 30px; }
.word-sec h2 { font-size: 21px; margin: 0 0 8px; }
.word-sec p { margin: 0 0 8px; }
.mistake { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.mistake s { color: #dc2626; }
.examples { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.examples li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; }
.examples b, .examples span { display: block; }
.ex-read { color: #059669; font-weight: 700; }
.ex-tr { color: var(--muted); font-size: 15px; }
.word-sec .chips { text-align: center; }
a.chip { text-decoration: none; color: var(--text); }
a.chip:hover { border-color: var(--brand); }
.chip[hidden] { display: none; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-weight: 700; }
.pager a { text-decoration: none; }
.word-cta {
  margin-top: 40px; text-align: center; background: var(--card); border: 1px solid var(--line);
  border-radius: 22px; padding: 24px 18px; box-shadow: var(--shadow);
}
.word-cta b { display: block; font-size: 20px; margin-bottom: 6px; }
.word-cta span { display: block; color: var(--muted); margin: 0 auto 16px; max-width: 520px; }
.word-cta small { display: block; color: var(--muted); margin-top: 10px; }
.word-note.left { text-align: left; margin: -6px 0 14px; }
.tagline.left { text-align: left; margin: 0 0 16px; max-width: none; }
.word-filter {
  width: 100%; font: inherit; font-size: 17px; padding: 12px 16px; margin-bottom: 14px;
  border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: var(--text);
}
@media (prefers-color-scheme: dark) {
  .word-read { color: #a7f3d0; }
  .ex-read { color: #6ee7b7; }
  .mistake s { color: #f87171; }
}

/* Masaüstünde App Store QR kodu (telefon/tablette gizli) */
.qr-box { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .qr-box {
    display: inline-flex; align-items: center; gap: 14px; margin-top: 18px; max-width: 420px;
    background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px; text-align: left;
  }
  .qr-box img { border-radius: 8px; background: #fff; flex: none; }
  .qr-box span { color: var(--muted); font-size: 14px; font-weight: 600; }
}
