/* Book Reading Helper — uygulamanın koyu tema paletiyle (CLAUDE.md "Koyu tema paleti") */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(assets/fonts/sora-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(assets/fonts/sora-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #1E1B3A;
  --bg-deep: #16142E;
  --surface: #282450;
  --surface-2: #2B2650;
  --border: #35315C;
  --text: #E2E0F0;
  --text-2: #A5A0C8;
  --text-3: #8B87B8;
  --accent: #A99DF9;
  --accent-2: #8577F0;
  --grad: linear-gradient(135deg, #8577F0, #A99DF9);
  --turquoise: #14B8C4;
  --yellow: #FFD23E;
  --success: #10B981;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow: 0 24px 60px -24px rgba(6, 4, 24, .85);
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
}

/* ── Dil anahtarı ─────────────────────────────────────────── */
html[data-lang="tr"] .l-en,
html[data-lang="en"] .l-tr { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(133, 119, 240, .28), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(20, 184, 196, .10), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.ic { width: 22px; height: 22px; flex: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 820px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--bg); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ── Üst çubuk ─────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(30, 27, 58, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(53, 49, 92, .7);
  padding-top: env(safe-area-inset-top, 0px);
}
.topbar-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 17px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand .ic { width: 30px; height: 30px; color: var(--accent); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--text-2); font-size: 14px; font-weight: 600; }
.nav a:hover { color: var(--text); text-decoration: none; }
.lang-btn {
  font: inherit; font-size: 13px; font-weight: 800; letter-spacing: .04em;
  color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 14px; cursor: pointer;
}
.lang-btn:hover { border-color: var(--accent); }
@media (max-width: 860px) {
  .nav { display: none; }
  .lang-btn { margin-left: auto; }
}

/* ── Genel bölüm ──────────────────────────────────────────── */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(36px, 5vw, 56px); }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.lead { color: var(--text-2); font-size: clamp(16px, 1.6vw, 18px); margin-top: 16px; }

/* ── Telefon çerçevesi ─────────────────────────────────────── */
.phone {
  margin: 0;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 720 / 1600;
  border-radius: 38px;
  padding: 9px;
  background: linear-gradient(160deg, #3B3670, #16142E 55%);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(169, 157, 249, .18);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 104px); overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 540px; margin-top: 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 24px; border-radius: 16px;
  font-weight: 800; font-size: 15px;
}
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 12px 30px -12px rgba(133, 119, 240, .9); }
.btn.primary:hover { text-decoration: none; filter: brightness(1.06); }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 18px; border-radius: 16px;
  border: 1px solid var(--border); background: rgba(40, 36, 80, .6);
  color: var(--text); font-weight: 700; font-size: 15px; line-height: 1.1;
  cursor: default;
}
.store small { display: block; font-size: 11px; font-weight: 600; color: var(--text-3); }
.chips { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13px; font-weight: 700; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; }

.hero-phones { position: relative; width: 100%; max-width: 440px; aspect-ratio: 440 / 660; justify-self: center; }
.hero-phones .phone { position: absolute; width: 62%; max-width: none; }
.hero-phones .back { left: 0; top: 7%; transform: rotate(-7deg); opacity: .92; z-index: 1; }
.hero-phones .front { right: 0; top: 0; transform: rotate(4deg); z-index: 2; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-text { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .cta-row, .chips { justify-content: center; }
  .hero-phones { max-width: min(380px, 88%); margin-top: 8px; }
}

/* ── Nasıl çalışır ────────────────────────────────────────── */
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: s; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 22px 22px 74px;
}
.step-num {
  position: absolute; left: 20px; top: 22px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 15px;
}
.step > .ic { position: absolute; right: 20px; top: 22px; color: var(--text-3); }
.step h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; padding-right: 30px; }
.step p { color: var(--text-2); font-size: 15px; }
.how-phones { display: flex; justify-content: center; gap: 0; }
.how-phones .phone { max-width: 250px; }
.how-phones .tilt-l { transform: rotate(-4deg) translateX(12%); z-index: 1; }
.how-phones .tilt-r { transform: rotate(4deg) translate(-12%, 36px); z-index: 2; }
@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; }
  .how-phones { order: -1; }
  .how-phones .phone { max-width: 200px; }
}

/* ── Özellikler ───────────────────────────────────────────── */
.features { display: grid; gap: clamp(48px, 7vw, 88px); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature .phone { justify-self: center; max-width: 280px; }
.feature.reverse .phone { order: -1; }
.feature-text h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.feature-text p { color: var(--text-2); font-size: 17px; margin-top: 14px; max-width: 460px; }
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; text-align: center; }
  .feature.reverse .phone { order: 0; }
  .feature-text p { margin-inline: auto; }
  .feature .phone { max-width: 240px; }
}

.extras { list-style: none; padding: 0; margin: clamp(56px, 8vw, 96px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.extra { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.extra .ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(169, 157, 249, .14); color: var(--accent); }
.extra h3 { font-size: 16px; font-weight: 800; margin: 14px 0 6px; }
.extra p { color: var(--text-2); font-size: 14px; }
@media (max-width: 900px) { .extras { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .extras { grid-template-columns: 1fr; } }

/* ── İpuçları ─────────────────────────────────────────────── */
.tips { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; counter-reset: t; }
.tips li {
  counter-increment: t; position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 20px 20px 62px;
}
.tips li::before {
  content: counter(t); position: absolute; left: 20px; top: 20px;
  width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255, 210, 62, .16); color: var(--yellow); font-weight: 800; font-size: 14px;
}
.tips strong { display: block; font-size: 16px; margin-bottom: 4px; }
.tips span span { color: var(--text-2); font-size: 14.5px; }
.tips li > span { color: var(--text-2); font-size: 14.5px; }
@media (max-width: 640px) { .tips { grid-template-columns: 1fr; } }

/* ── Destek ───────────────────────────────────────────────── */
.contact-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--grad); color: #fff;
  border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 32px);
  box-shadow: 0 20px 50px -24px rgba(133, 119, 240, .9);
}
.contact-card > .ic { width: 48px; height: 48px; padding: 11px; border-radius: 14px; background: rgba(255, 255, 255, .18); }
.contact-label { font-size: 13px; font-weight: 700; opacity: .85; }
.contact-card .mail { display: inline-block; color: #fff; font-size: clamp(18px, 2.4vw, 22px); font-weight: 800; margin-top: 2px; word-break: break-all; }
.contact-hint { margin-top: 10px; font-size: 14px; opacity: .92; }
@media (max-width: 480px) { .contact-card { flex-direction: column; } }

.faq-title { font-size: 22px; font-weight: 800; margin: 48px 0 16px; }
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; font-weight: 700;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ic { color: var(--text-3); transition: transform .2s; }
.faq-item[open] summary .ic { transform: rotate(180deg); }
.faq-item p { padding: 0 20px 20px; color: var(--text-2); font-size: 15px; }

/* ── Hukuki metinler ──────────────────────────────────────── */
.section.legal { padding-block: 12px; }
.section.legal + .section.legal { padding-top: 0; }
#privacy { padding-top: 0; }
#terms { padding-bottom: clamp(64px, 9vw, 112px); }
.legal-doc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.legal-doc > summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 22px 24px;
}
.legal-doc > summary::-webkit-details-marker { display: none; }
.legal-title { display: flex; gap: 14px; align-items: center; }
.legal-title > .ic { width: 44px; height: 44px; padding: 10px; border-radius: 13px; background: rgba(169, 157, 249, .14); color: var(--accent); }
.legal-title strong { display: block; font-size: 18px; }
.legal-title small { display: block; color: var(--text-2); font-size: 13.5px; font-weight: 400; margin-top: 2px; }
.legal-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--accent); }
.legal-toggle .ic { width: 18px; height: 18px; transition: transform .2s; }
.legal-doc[open] .legal-toggle .ic { transform: rotate(180deg); }
.legal-body { padding: 4px clamp(20px, 4vw, 40px) clamp(24px, 4vw, 40px); border-top: 1px solid var(--border); font-size: 15px; }
.legal-body p, .legal-body ul { color: var(--text); margin: 0 0 12px; }
.legal-body ul { padding-left: 20px; }
.legal-body li { margin-bottom: 8px; }
.legal-body li::marker { color: var(--accent); }
.legal-body h3 { font-size: 17px; font-weight: 800; margin: 28px 0 10px; }
.legal-body .part { color: var(--accent); font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin: 36px 0 0; }
.legal-body .meta { color: var(--text-3); font-size: 13px; font-style: italic; margin: 20px 0 16px; }
.legal-body .callout {
  background: rgba(255, 210, 62, .12); border: 1px solid rgba(255, 210, 62, .4); color: var(--yellow);
  border-radius: var(--radius); padding: 16px 18px; font-size: 13.5px; font-weight: 600;
}
.table-wrap { overflow-x: auto; margin: 4px 0 16px; border: 1px solid var(--border); border-radius: var(--radius); }
.legal-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-body th { text-align: left; background: var(--surface-2); color: var(--accent); font-size: 12.5px; letter-spacing: .03em; }
.legal-body th, .legal-body td { padding: 12px 14px; vertical-align: top; border-bottom: 1px solid var(--border); }
.legal-body tr:last-child td { border-bottom: 0; }
.legal-body td:first-child { font-weight: 700; }
@media (max-width: 640px) {
  .table-wrap { border: 0; overflow: visible; }
  .legal-body table, .legal-body tbody, .legal-body tr, .legal-body td { display: block; width: 100%; }
  .legal-body thead { display: none; }
  .legal-body tr { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 10px; padding: 6px 0; }
  .legal-body td { border: 0; padding: 6px 14px; }
  .legal-body td:not(:first-child)::before { content: attr(data-label); display: block; color: var(--accent); font-size: 12px; font-weight: 700; }
}

/* ── Alt bilgi ────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); background: var(--bg-deep); padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px)); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer nav a { color: var(--text-2); font-size: 14px; }
.footer p { color: var(--text-3); font-size: 13px; }
