/* KPSS Genel Kültür — site tasarım sistemi.
   Yön: Editorial (iyi basılmış çalışma kitabı). Köşe yok; ayırma ince çizgiyle. Tek vurgu: logodaki altın.
   Turkuaz yalnız unutma eğrisi çiziminde. */
@import url("fonts/fonts.css");

:root {
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-text: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.84rem, 0.81rem + 0.13vw, 0.93rem);
  --step-0: clamp(1.03rem, 0.98rem + 0.24vw, 1.16rem);
  --step-1: clamp(1.22rem, 1.13rem + 0.45vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.33rem + 0.85vw, 2.1rem);
  --step-3: clamp(1.9rem, 1.55rem + 1.7vw, 3rem);
  --step-4: clamp(2.5rem, 1.9rem + 3vw, 4.4rem);
  --step-5: clamp(3rem, 2.1rem + 4.6vw, 6.2rem);

  --paper: #faf7ef;
  --paper-2: #f1ecdf;
  --ink: #10231c;
  --ink-soft: #46574f;
  --forest: #0d4736;
  --forest-deep: #072d22;
  --on-forest: #f4f1e7;
  --on-forest-soft: rgb(244 241 231 / 0.76);
  --gold: #e8ae2e;            /* koyu zeminde vurgu */
  --gold-ink: #8a5800;        /* açık zeminde metin vurgusu (≥ 4.5:1) */
  --teal: #1c96a0;
  --rule: color-mix(in srgb, var(--ink) 14%, transparent);
  --rule-forest: color-mix(in srgb, var(--on-forest) 18%, transparent);

  --measure: 66ch;
  --gutter: clamp(1.25rem, 0.8rem + 2.4vw, 3rem);
  --wide: 76rem;
  --radius: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--step-0)/1.62 var(--font-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 0.07em; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--gold-ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; padding: 0.6rem 1rem; background: var(--gold); color: var(--ink); z-index: 10; }
.skip:focus { left: 1rem; }

h1, h2, h3 { font-family: var(--font-display); font-optical-sizing: auto; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--step-5); line-height: 1.02; font-weight: 700; }
h2 { font-size: var(--step-4); line-height: 1.06; font-weight: 650; }
h3 { font-size: var(--step-2); line-height: 1.15; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
.eyebrow { font: 600 var(--step--1)/1.3 var(--font-text); letter-spacing: 0.14em; text-transform: uppercase; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }

/* ---------- Üst çubuk ---------- */
.top { display: flex; align-items: center; gap: 1.5rem; padding-block: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; font: 650 1.2rem/1 var(--font-display); letter-spacing: -0.01em; }
.brand .mark { width: 2.4rem; height: 2.4rem; background: #fff; display: grid; place-items: center; }
.brand .mark img { width: 1.9rem; }
.top nav { margin-left: auto; display: flex; gap: clamp(0.8rem, 2vw, 2rem); font-size: var(--step--1); font-weight: 600; }
.top nav a { text-decoration: none; padding-block: 0.4rem; border-bottom: 2px solid transparent; }
.top nav a:hover { border-bottom-color: currentColor; }
@media (max-width: 46rem) { .top nav .opt { display: none; } }

/* ---------- Koyu orman bölümleri ---------- */
.forest { background: var(--forest); color: var(--on-forest); }
.forest .eyebrow { color: var(--gold); }
.forest a:hover { text-decoration-color: var(--gold); }

/* Kahraman */
.hero { position: relative; overflow: hidden; background: radial-gradient(60rem 40rem at 85% -10%, #15604a 0%, transparent 70%), var(--forest); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); align-items: end; padding-block: clamp(2rem, 6vw, 5rem) 0; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { margin-top: 1.6rem; max-width: 34ch; font-size: var(--step-1); line-height: 1.5; color: var(--on-forest-soft); }
.hero .copy { padding-bottom: clamp(2.5rem, 7vw, 6rem); }
.subjects { margin-top: 1.25rem; }
.hero .phone-col { align-self: end; justify-self: center; width: min(100%, 22rem); }
@media (max-width: 52rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .copy { padding-bottom: 0; }
  .hero .phone-col { width: min(78%, 19rem); margin-top: 2.5rem; }
}

/* Mağaza düğmeleri (Apple/Google rozetleri yerine metin; resmî rozet yayından sonra eklenir) */
.stores { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-height: 3.5rem; padding: 0.55rem 1.25rem;
         text-decoration: none; border: 1.5px solid currentColor; line-height: 1.15; }
.store small { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; }
.store strong { font: 600 1.12rem/1.2 var(--font-display); }
.store.primary { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.store.primary:hover { background: #f3bd45; }
.store:not(.primary):hover { background: var(--rule-forest); }
.store[aria-disabled="true"] { cursor: default; }
.store.primary[aria-disabled="true"]:hover { background: var(--gold); }
.paper .store:not(.primary):hover { background: var(--paper-2); }
.note { margin-top: 0.9rem; font-size: var(--step--1); color: var(--on-forest-soft); }

/* Telefon çerçevesi (yalnız cihaz görseli yuvarlak: gerçek nesneyi temsil ediyor) */
.phone { position: relative; padding: 3.2%; background: #0b1310; border-radius: 13% / 6.2%;
         box-shadow: 0 2.5rem 4rem rgb(0 0 0 / 0.28), inset 0 0 0 2px rgb(255 255 255 / 0.1); }
.phone img { border-radius: 10.4% / 4.9%; width: 100%; aspect-ratio: 402 / 874; background: #f3faf6; }
.phone::after { content: ""; position: absolute; top: 4.9%; left: 50%; translate: -50% 0; width: 29%; height: 3.2%; background: #000; border-radius: 99px; }
.hero .phone { margin-bottom: -18%; }

/* Unutma eğrisi (marka motifi) */
.curve-band { position: absolute; inset: auto 0 0 0; height: 46%; pointer-events: none; opacity: 0.55; }
.curve-band svg { width: 100%; height: 100%; }

/* ---------- Açık (kâğıt) bölümler ---------- */
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.paper { background: var(--paper); }
.paper-2 { background: var(--paper-2); }
.paper .eyebrow { color: var(--gold-ink); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); align-items: start; }
.split .intro p { margin-top: 1.4rem; color: var(--ink-soft); max-width: 44ch; }
@media (max-width: 52rem) { .split { grid-template-columns: 1fr; } }

.chart { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding-block: 1.25rem; }
.chart figcaption { margin-top: 0.75rem; font-size: var(--step--1); color: var(--ink-soft); }
.legend { display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: var(--step--1); color: var(--ink-soft); margin-top: 0.5rem; }
.legend i { display: inline-block; width: 1.6rem; height: 0; border-top: 3px solid var(--teal); vertical-align: middle; margin-right: 0.45rem; }
.legend i.flat { border-top: 2px dashed var(--ink-soft); }

.steps { list-style: none; margin: clamp(3rem, 6vw, 5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); counter-reset: s; }
.steps li { border-top: 2px solid var(--ink); padding-top: 1.1rem; counter-increment: s; }
.steps li::before { content: "0" counter(s); display: block; font: 600 var(--step-1)/1 var(--font-display); color: var(--gold-ink); margin-bottom: 0.9rem; }
.steps h3 { font-size: var(--step-1); }
.steps p { margin-top: 0.6rem; color: var(--ink-soft); font-size: var(--step--1); line-height: 1.6; }
@media (max-width: 46rem) { .steps { grid-template-columns: 1fr; } }

/* Özellik satırları: ekran + metin, sırayla yer değiştirir */
.feature { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--rule); }
.feature:first-of-type { border-top: 0; }
.feature .shot { width: min(100%, 19rem); justify-self: center; }
.feature.flip .shot { order: 2; }
.feature .eyebrow { color: var(--gold-ink); }
.feature h3 { font-size: var(--step-3); margin-top: 0.8rem; }
.feature p { margin-top: 1.1rem; color: var(--ink-soft); max-width: 46ch; }
@media (max-width: 52rem) { .feature { grid-template-columns: 1fr; } .feature.flip .shot { order: 0; } .feature .shot { width: min(70%, 17rem); } }

.more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); margin: 0; border-top: 2px solid var(--ink); }
.more div { padding-block: 1.2rem; border-bottom: 1px solid var(--rule); }
.more dt { font: 600 var(--step-1)/1.25 var(--font-display); }
.more dd { margin: 0.35rem 0 0; color: var(--ink-soft); font-size: var(--step--1); line-height: 1.6; max-width: 48ch; }
@media (max-width: 46rem) { .more { grid-template-columns: 1fr; } }

/* Ücretsiz / Premium */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); margin-top: clamp(2.5rem, 5vw, 4rem); }
.plan { border-top: 2px solid var(--on-forest); padding-top: 1.3rem; }
.plan.premium { border-top-color: var(--gold); }
.plan h3 { font-size: var(--step-2); }
.plan ul { margin: 1.1rem 0 0; padding: 0; list-style: none; }
.plan li { padding: 0.75rem 0; border-bottom: 1px solid var(--rule-forest); color: var(--on-forest-soft); }
.plan li strong { color: var(--on-forest); font-weight: 600; }
@media (max-width: 46rem) { .plans { grid-template-columns: 1fr; } }

/* SSS */
.faq { max-width: 52rem; margin-top: clamp(2rem, 4vw, 3rem); border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; position: relative; font: 600 var(--step-1)/1.3 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.95rem; font: 400 1.6rem/1 var(--font-text); color: var(--gold-ink); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 1.25rem; color: var(--ink-soft); max-width: var(--measure); }

/* Kapanış */
.closing { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--gutter); align-items: end; }
.closing h2 em { font-style: normal; color: var(--gold); }
@media (max-width: 52rem) { .closing { grid-template-columns: 1fr; } }

/* ---------- Alt bilgi ---------- */
.foot { background: var(--forest-deep); color: var(--on-forest-soft); font-size: var(--step--1); padding-block: 3rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--gutter); }
.foot .brand { color: var(--on-forest); }
.foot h2 { font: 600 var(--step--1)/1.3 var(--font-text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.8rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.foot a { color: var(--on-forest); }
.foot .fine { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule-forest); }
.foot p + p { margin-top: 0.6rem; }
@media (max-width: 46rem) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Belge sayfaları (gizlilik, şartlar, silme) ---------- */
.doc-head { border-bottom: 1px solid var(--rule); }
.doc { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 8vw, 7rem); }
.doc-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: var(--gutter); }
.doc-side { font-size: var(--step--1); color: var(--ink-soft); }
.doc-side .eyebrow { color: var(--gold-ink); display: block; margin-bottom: 0.6rem; }
.doc article { max-width: var(--measure); }
.doc h1 { font-size: var(--step-4); }
.doc .meta { margin-top: 1rem; color: var(--ink-soft); font-size: var(--step--1); }
.doc .lead { margin-top: 1.5rem; font-size: var(--step-1); line-height: 1.5; }
.doc h2 { font-size: var(--step-2); margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); }
.doc p, .doc ul, .doc ol { margin-top: 0.9rem; }
.doc ul, .doc ol { padding-left: 1.25rem; }
.doc li + li { margin-top: 0.45rem; }
.doc .box { margin-top: 1.8rem; padding: 1.4rem 1.5rem; background: var(--paper-2); border-left: 3px solid var(--gold-ink); }
.doc .box h2 { margin-top: 0; padding-top: 0; border-top: 0; font-size: var(--step-1); }
.button { display: inline-block; margin-top: 1rem; padding: 0.85rem 1.4rem; background: var(--forest); color: var(--on-forest); text-decoration: none; font-weight: 600; }
.button:hover { background: var(--forest-deep); }
@media (max-width: 52rem) { .doc-grid { grid-template-columns: 1fr; } .doc-side { display: none; } }

/* ---------- Paylaşım sayfaları (davet, düello) ---------- */
.share { min-height: 100svh; display: flex; flex-direction: column; }
.share main { flex: 1; display: grid; align-items: center; padding-block: 3rem 5rem; }
.share-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--gutter); align-items: center; }
.share h1 { font-size: var(--step-4); }
.share h1 em { font-style: normal; color: var(--gold); }
.share .lead { margin-top: 1.4rem; max-width: 40ch; color: var(--on-forest-soft); font-size: var(--step-1); line-height: 1.5; }
.code { margin-top: 1.8rem; display: inline-flex; flex-direction: column; gap: 0.3rem; padding: 0.9rem 1.3rem; border: 1.5px dashed var(--gold); }
.code b { font: 650 var(--step-3)/1 var(--font-display); letter-spacing: 0.12em; color: var(--gold); }
.code small { font-size: var(--step--1); color: var(--on-forest-soft); }
.share .phone-col { width: min(100%, 17rem); justify-self: center; }
@media (max-width: 52rem) { .share-grid { grid-template-columns: 1fr; } .share .phone-col { display: none; } }
[hidden] { display: none !important; }
