/* KPSS & AGS web sitesi (agskpss.com). Renkler ve yazı dili uygulamadan (ios/KPSSAGS/DesignSystem/Theme.swift):
   kâğıt zemin, mürekkep laciverti, fosforlu kalem sarısı, serif başlıklar, ikondaki çevirmeli pano.
   Derleme adımı yok. */

:root {
  --paper: #F7F5EF;
  --surface: #FFFFFF;
  --ink: #16244A;
  --brand: #22408C;
  --accent: #F2C230;
  --on-accent: #1B1E24;
  --text: #1B1E24;
  --muted: #5A5E67;
  --border: #DEDACF;
  --rule: #E7E2D6;
  --success: #1E8A57;
  --danger: #CC3A2F;
  --tint-yellow: #FBF0C9;
  --tint-green: #E3EFE7;
  --tint-blue: #E3E9F6;
  --tint-red: #F8E4E1;

  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, "Noto Serif", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gut: clamp(20px, 5vw, 48px);
  --r-lg: 28px;
  --r-md: 18px;
  --r-btn: 14px;
  --dots: radial-gradient(circle, transparent 0 9px, rgba(255,255,255,.07) 9px 11px, transparent 11px) 0 0 / 44px 44px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); letter-spacing: -0.018em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--brand); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gut), 1120px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gut); top: 12px; z-index: 20; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* ---------- Üst çubuk ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; color: var(--ink); font: 600 20px/1 var(--serif); letter-spacing: -0.01em; white-space: nowrap; }
.logo img { width: 34px; height: 34px; border-radius: 8px; display: block; }
.nav__links { display: flex; gap: 26px; }
.nav__links a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0; }
@media (max-width: 860px) { .nav__links { display: none; } .nav .wrap { height: 60px; } }

/* Altı çizilen bağlantı: çizgi soldan dolar */
.nav__links a, .link, .footer a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size .25s ease;
}
.nav__links a:hover, .link:hover, .footer a:hover, .nav__links a[aria-current] { background-size: 100% 1.5px; }

/* ---------- Düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-btn);
  font: 600 16px/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1.5px solid var(--ink); color: var(--ink); background: transparent;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 -2px rgba(22, 36, 74, .16); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--brand); border-color: var(--brand); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Mağaza düğmeleri: ziyaretçinin telefonuna ait olan dolu görünür (varsayılan iPhone). */
.btn--ios { background: var(--ink); color: #fff; }
.btn--ios:hover { background: var(--brand); border-color: var(--brand); }
[data-cihaz="android"] .btn--ios { background: transparent; color: var(--ink); border-color: var(--ink); }
[data-cihaz="android"] .btn--android { background: var(--ink); color: #fff; }
[data-cihaz="android"] .btn--android:hover { background: var(--brand); border-color: var(--brand); }

/* Lacivert zeminde (kapak, kapanış) düğmeler: telefonuna ait olan sarı, diğeri çerçeveli. */
.on-ink .btn { border-color: rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.on-ink .btn:hover { box-shadow: 0 6px 0 -2px rgba(0, 0, 0, .3); }
.on-ink .btn--ios, [data-cihaz="android"] .on-ink .btn--android { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.on-ink .btn--ios:hover, [data-cihaz="android"] .on-ink .btn--android:hover { background: #FFD44A; border-color: #FFD44A; }
[data-cihaz="android"] .on-ink .btn--ios { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
@media (max-width: 800px) { .on-ink .btn-row .btn { flex: 1 1 100%; } }

/* Bilgisayardan gelen ziyaretçi için: telefonla okutulan kare kod (/indir doğru mağazayı açar). */
.qr { display: none; align-items: center; gap: 16px; margin-top: 28px; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .78); max-width: 26em; }
.qr img { width: 96px; height: 96px; flex: none; padding: 7px; border-radius: 14px; background: #fff; image-rendering: pixelated; }
.qr b { display: block; color: #fff; font-weight: 600; }
@media (min-width: 801px) { [data-masaustu] .qr { display: flex; } }

/* ---------- Telefon ve sahne ---------- */
.phone {
  width: min(300px, 78%); padding: 8px; border-radius: 46px; background: #0C0C0F; flex: none;
  box-shadow: 0 0 0 1.5px #2B2C33, 0 28px 60px rgba(12, 18, 38, .34);
}
.phone img { display: block; width: 100%; border-radius: 38px; aspect-ratio: 1206 / 2622; background: var(--paper); }
.stage { display: flex; justify-content: center; align-items: flex-start; overflow: hidden; border-radius: var(--r-lg); padding-top: 44px; }
.stage--ink { background: var(--dots), var(--ink); }
.stage--yellow { background: var(--tint-yellow); }
.stage--green { background: var(--tint-green); }
.stage--blue { background: var(--tint-blue); }
.stage .phone { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.stage:hover .phone { transform: translateY(-8px); }

/* ---------- Kapak ---------- */
.hero { background: var(--dots), var(--ink); color: #fff; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(28px, 5vw, 72px);
  min-height: min(100svh - 68px, 780px);
}
.hero__text { align-self: center; padding: clamp(40px, 6vw, 72px) 0; }
.eyebrow {
  display: inline-block; padding: 9px 16px 9px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #fff; text-decoration: none;
  font: 600 14px/1.2 var(--sans); letter-spacing: .01em; transition: background-color .2s ease, border-color .2s ease;
}
.eyebrow::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }
.eyebrow:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .34); }
.eyebrow b { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.hero h1 { margin-top: 22px; color: #fff; font-size: clamp(40px, 5.5vw, 70px); line-height: 1.03; letter-spacing: -0.026em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { margin-top: 22px; font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: rgba(255, 255, 255, .82); max-width: 33em; }
.hero .btn-row { margin-top: 30px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 15px; color: rgba(255, 255, 255, .7); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.hero__visual { display: flex; justify-content: center; align-items: flex-end; padding-top: 48px; }
.hero__visual .phone { width: min(340px, 86%); margin-bottom: -150px; box-shadow: 0 0 0 1.5px #3A3D49, 0 40px 90px rgba(0, 0, 0, .5); }
@media (max-width: 800px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .hero__text { padding-bottom: 8px; }
  .hero__visual { height: 430px; align-items: flex-start; padding-top: 36px; overflow: hidden; }
  .hero__visual .phone { margin-bottom: 0; width: min(280px, 76%); }
}

/* ---------- Bölümler ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--surface { background: var(--surface); border-block: 1px solid var(--border); }
.section__head { max-width: 40em; margin-bottom: clamp(28px, 4vw, 48px); }
.section h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.1; }
.section__head p { margin-top: 14px; font-size: 18px; color: var(--muted); }
.note { margin-top: 24px; color: var(--muted); font-size: 15px; }

/* ---------- Sınav takvimi: çevirmeli pano ---------- */
.dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.date-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px);
  transition: transform .25s ease, box-shadow .25s ease;
}
.date-card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(22, 36, 74, .08); }
.date-card h3 { font-size: 28px; }
.date-card__meta { margin-top: 6px; color: var(--muted); font-size: 16px; }
.board {
  display: none; gap: clamp(6px, 1vw, 10px); margin-top: 22px; padding: clamp(10px, 1.4vw, 14px); border-radius: 22px;
  background: #101219; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .05), 0 16px 30px rgba(12, 18, 38, .22); perspective: 900px;
}
.js .board { display: flex; }
.flap {
  position: relative; flex: 1 1 0; min-width: 0; height: clamp(96px, 13vw, 138px); border-radius: 14px; background: #262B3A;
  display: grid; place-items: center; color: var(--accent);
  font: 900 clamp(60px, 8.4vw, 96px)/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.02em;
  transform-origin: 50% 50%; backface-visibility: hidden;
}
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; background: #101219; }
.flap--word { flex: 1.5 1 0; color: #fff; font-size: clamp(30px, 4.2vw, 46px); letter-spacing: .04em; }
.board.is-on .flap { animation: cevir .7s cubic-bezier(.2, .7, .2, 1) both; }
.board.is-on .flap:nth-child(2) { animation-delay: .08s; }
.board.is-on .flap:nth-child(3) { animation-delay: .16s; }
.board.is-on .flap:nth-child(4) { animation-delay: .24s; }
@keyframes cevir { from { transform: rotateX(-88deg); opacity: 0; } to { transform: none; opacity: 1; } }

.rows { list-style: none; margin: 22px 0 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.rows li:last-child { border-bottom: 0; padding-bottom: 0; }
.rows b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.rows .is-main { color: var(--ink); font-weight: 600; }
.rows .is-main b { background: linear-gradient(transparent 58%, var(--accent) 58% 94%, transparent 94%); padding: 0 3px; }
@media (max-width: 800px) { .dates { grid-template-columns: 1fr; } }

/* ---------- Soru dene: defter sayfası ---------- */
.section--notebook {
  background:
    linear-gradient(90deg, transparent 0 calc(var(--gut) - 4px), rgba(204, 58, 47, .22) calc(var(--gut) - 4px) calc(var(--gut) - 2px), transparent calc(var(--gut) - 2px)),
    repeating-linear-gradient(180deg, transparent 0 43px, var(--rule) 43px 45px),
    var(--paper);
  border-block: 1px solid var(--border);
}
.try { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.try__head p { margin-top: 14px; font-size: 18px; color: var(--muted); max-width: 26em; }
.steps { display: flex; gap: 8px; margin-top: 26px; }
.steps i { width: 44px; height: 6px; border-radius: 3px; background: var(--border); transition: background-color .3s ease; }
.steps i.is-now { background: var(--ink); }
.steps i.is-right { background: var(--success); }
.steps i.is-wrong { background: var(--danger); }
.quiz {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 36px);
  box-shadow: 0 18px 44px rgba(22, 36, 74, .08); min-height: 520px;
}
.quiz__kicker { font: 700 13px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.quiz__q { margin-top: 12px; font: 600 clamp(22px, 2.3vw, 27px)/1.25 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.quiz__opts { list-style: none; margin: 20px 0 0; padding: 0; border: 1.5px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.quiz__opts li + li { border-top: 1.5px solid var(--rule); }
.opt {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 10px 16px; border: 0; background: var(--surface);
  text-align: left; font: 500 17px/1.3 var(--sans); cursor: pointer; transition: background-color .15s ease, padding-left .15s ease;
}
.opt i { font: 700 14px/1 var(--sans); font-style: normal; color: #93979F; width: 22px; flex: none; }
.opt:hover:not(:disabled) { background: var(--tint-blue); padding-left: 20px; }
.opt:disabled { cursor: default; color: var(--muted); }
.opt.is-right { background: var(--tint-green); color: var(--ink); font-weight: 700; }
.opt.is-right i { color: var(--success); }
.opt.is-wrong { background: var(--tint-red); color: var(--danger); text-decoration: line-through; }
.opt.is-wrong i { color: var(--danger); }
.quiz__sol { margin-top: 18px; padding: 16px 18px 16px 20px; border-left: 5px solid var(--accent); background: var(--paper); border-radius: 0 var(--r-md) var(--r-md) 0; font-size: 16px; line-height: 1.5; }
.quiz__sol b { display: block; font: 600 18px/1.2 var(--serif); color: var(--ink); margin-bottom: 6px; }
.quiz__next { margin-top: 18px; }
.quiz__end h3 { font-size: clamp(26px, 3vw, 34px); line-height: 1.12; }
.quiz__end p { margin-top: 12px; color: var(--text); }
.quiz__end .btn-row { margin-top: 22px; }
.quiz__end .btn--again { border-color: transparent; padding: 0 6px; color: var(--brand); }
.quiz__end .btn--again:hover { box-shadow: none; transform: none; text-decoration: underline; }
@media (max-width: 860px) { .try { grid-template-columns: 1fr; } .quiz { min-height: 0; } }

/* ---------- Özellik satırı: solda metin, sağda uygulama ekranı ---------- */
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
}
.feature + .feature { margin-top: 24px; }
.feature:nth-of-type(even) .feature__text { order: 2; }
.feature__text { padding: clamp(28px, 4.4vw, 56px); align-self: center; }
.feature h3 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.14; }
.feature__text > p { margin-top: 14px; color: var(--text); max-width: 30em; }
.feature .stage { border-radius: 0; height: clamp(380px, 38vw, 470px); }
.checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.checks li::before {
  content: ""; width: 22px; height: 22px; margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%231E8A57'/%3E%3Cpath d='M7 12.5l3.4 3.4L17 9' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 800px) {
  .feature { grid-template-columns: 1fr; } .feature .stage { height: 380px; }
  .feature:nth-of-type(even) .feature__text { order: 0; }
}

/* Üçlü kartlar */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.card .stage { border-radius: 0; height: 350px; padding-top: 32px; }
.card .phone { width: min(230px, 70%); border-radius: 36px; padding: 6px; }
.card .phone img { border-radius: 30px; }
.card__text { padding: 26px 28px 30px; }
.card h3 { font-size: 24px; line-height: 1.2; }
.card p { margin-top: 10px; color: var(--text); font-size: 16px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* Sınav tabloları */
.exams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.exam { background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 40px); }
.exam h3 { font-size: 28px; }
.exam__meta { margin-top: 6px; color: var(--muted); font-size: 16px; }
@media (max-width: 800px) { .exams { grid-template-columns: 1fr; } }

/* Ücretsiz ve Premium */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 40px); }
.plan--premium { background: var(--dots), var(--ink); border-color: var(--ink); color: #fff; }
.plan--premium h3 { color: #fff; }
.plan--premium .plan__meta { color: rgba(255, 255, 255, .72); }
.plan h3 { font-size: 28px; }
.plan__meta { margin-top: 6px; color: var(--muted); font-size: 16px; }
.plan .checks { margin-top: 24px; }
@media (max-width: 800px) { .plans { grid-template-columns: 1fr; } }

/* Sık sorulanlar (ana sayfa) */
.sss { max-width: 820px; border-top: 1px solid var(--border); }
.sss details { border-bottom: 1px solid var(--border); }
.sss summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none;
  font: 600 clamp(19px, 2vw, 22px)/1.3 var(--serif); color: var(--ink); letter-spacing: -.01em;
}
.sss summary::-webkit-details-marker { display: none; }
.sss summary::after {
  content: ""; width: 14px; height: 14px; flex: none; margin-right: 4px;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: translateY(-3px) rotate(45deg); transition: transform .25s ease;
}
.sss details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.sss summary:hover { color: var(--brand); }
.sss details p { padding: 0 0 22px; max-width: 42em; }

/* ---------- Kapanış ve alt bilgi ---------- */
.closing { background: var(--dots), var(--ink); color: #fff; padding: clamp(56px, 8vw, 96px) 0 0; }
.closing h2 { color: #fff; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.06; max-width: 14em; }
.closing p { margin-top: 16px; font-size: 18px; color: rgba(255, 255, 255, .78); max-width: 34em; }
.closing .btn-row { margin-top: 30px; }
.closing .qr p { margin: 0; font-size: 15px; }

.footer { margin-top: clamp(48px, 7vw, 80px); border-top: 1px solid rgba(255, 255, 255, .16); padding: 28px 0 36px; font-size: 15px; color: rgba(255, 255, 255, .72); background: var(--ink); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: baseline; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-right: auto; }
.footer a { color: #fff; text-decoration: none; }
.footer p { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .72); max-width: none; }
.footer__legal { flex: 1 1 100%; }

/* Alt sayfalarda (destek, gizlilik...) alt bilgi tek başına durur */
.closing--plain { padding-top: 0; margin-top: clamp(56px, 8vw, 96px); background: var(--ink); }
.closing--plain .footer { margin-top: 0; border-top: 0; padding-top: 32px; }

/* ---------- Yazı sayfaları ---------- */
.page { padding: clamp(36px, 6vw, 72px) 0 0; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.08; }
.page__lead { margin-top: 16px; font-size: 19px; color: var(--text); }
.page h2 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; margin-top: 44px; }
.page h3 { font-size: 20px; line-height: 1.3; font-family: var(--sans); letter-spacing: -0.005em; color: var(--text); }
.page p, .page li { color: var(--text); }
.page .wrap > p, .page .wrap > ul { margin-top: 14px; }
.page ul { padding-left: 22px; }
.muted { color: var(--muted); font-size: 15px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 24px 26px; margin-top: 28px; }
.panel p + p { margin-top: 8px; }
.panel .btn-row { margin-top: 18px; }
.page .faq { margin: 20px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.faq li { padding: 22px 0; border-bottom: 1px solid var(--border); }
.faq p { margin-top: 8px; }

/* İndirme sayfası */
.download { display: flex; align-items: center; gap: 18px; }
.download img { width: 84px; height: 84px; border-radius: 19px; flex: none; }
.status { min-height: 1.6em; margin-top: 18px; }
.page .btn-row { margin-top: 24px; }
.page .qr { color: var(--muted); }
.page .qr b { color: var(--ink); }
.page .qr img { border: 1px solid var(--border); }
@media (max-width: 560px) { .page .btn-row .btn { flex: 1 1 100%; } }

/* ================= Canlandırma =================
   Kurallar: metnin tamamı düz HTML; kaydırma kullanıcının elinde (kaydırmayı ele geçiren kod yok);
   hareketi azalt ayarı açıksa her şey sabit ve okunur; tek vurgu rengi sarı, yeşil yalnızca "doğru". */
.stage--paper { background: #EFEBE0; }

/* Başlıklar maskenin içinden, alttan gelir. Sınıfları betik ekler; betik yoksa başlık olduğu gibi durur. */
.reveal { overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.reveal__in { display: block; transform: translateY(110%); transition: transform .9s cubic-bezier(.2, .75, .2, 1); will-change: transform; }
.reveal.is-in .reveal__in { transform: none; }

/* ---------- Kişisel plan ---------- */
.planner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.planner__lead { margin-top: 14px; font-size: 18px; color: var(--muted); max-width: 26em; }
.seg { border: 0; margin: 28px 0 0; padding: 0; min-width: 0; }
.seg legend { padding: 0; margin-bottom: 10px; font: 700 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.seg label { position: relative; display: inline-block; margin: 0 6px 8px 0; cursor: pointer; }
.seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.seg span {
  display: grid; place-items: center; min-width: 56px; min-height: 48px; padding: 0 18px; border: 1.5px solid var(--border); border-radius: 14px;
  background: var(--paper); font: 600 17px/1 var(--sans); color: var(--ink);
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.seg label:hover span { border-color: var(--ink); transform: translateY(-2px); }
.seg label:active span { transform: translateY(1px); }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 3px; }
.planner__out { background: var(--dots), var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 40px); }
.planner__kicker { font: 600 16px/1.3 var(--sans); color: rgba(255, 255, 255, .78); }
.planner__kicker b { color: var(--accent); font-variant-numeric: tabular-nums; }
.big { margin-top: 10px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 14px; }
.big b { font: 900 clamp(68px, 10vw, 132px)/.95 var(--sans); letter-spacing: -.045em; color: var(--accent); font-variant-numeric: tabular-nums; }
.big span { font: 600 clamp(20px, 2.2vw, 26px)/1.2 var(--serif); color: #fff; }
.week { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 24px 0 0; padding: 0; }
.week li {
  display: grid; place-items: center; height: 44px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .5);
  font: 700 12px/1 var(--sans); letter-spacing: .04em;
  transition: background-color .3s ease, color .3s ease, transform .35s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--n, 0) * 40ms);
}
.week li.is-on { background: var(--accent); color: var(--on-accent); transform: translateY(-3px); }
.planner__sum { margin-top: 18px; font-size: 17px; color: rgba(255, 255, 255, .86); }
.planner__out .btn { margin-top: 22px; background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.planner__out .btn:hover { background: #FFD44A; border-color: #FFD44A; box-shadow: 0 6px 0 -2px rgba(0, 0, 0, .3); }
.planner__out .note { margin-top: 16px; color: rgba(255, 255, 255, .6); font-size: 14px; }
@media (max-width: 860px) { .planner { grid-template-columns: 1fr; } }

/* ---------- Dev rakamlar ---------- */
.stats { background: var(--dots), var(--ink); color: #fff; padding: clamp(48px, 7vw, 92px) 0; overflow: hidden; }
.stats h2 { font: 700 14px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.stats__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 24px clamp(20px, 4vw, 56px); }
.stats__list b { display: block; font: 900 clamp(44px, 7vw, 104px)/.95 var(--sans); letter-spacing: -.05em; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats__list span { display: block; margin-top: 12px; font: 600 clamp(16px, 1.6vw, 20px)/1.2 var(--serif); color: rgba(255, 255, 255, .86); }
@media (max-width: 800px) {
  .stats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 20px; }
  .stats__list b { font-size: clamp(36px, 10.6vw, 72px); }
}

/* ---------- Sahneler: kaydırdıkça kartlar üst üste biner ---------- */
.ghost-num {
  display: block; margin-bottom: 14px; font: 900 clamp(64px, 8vw, 112px)/.9 var(--sans); letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(22, 36, 74, .24);
}
@media (min-width: 801px) {
  .scene .stage { height: auto; min-height: clamp(380px, 38vw, 470px); }
}
@media (min-width: 801px) and (min-height: 760px) {
  .scenes { --ust: 84px; }
  .scene {
    position: sticky; top: var(--ust); transform-origin: 50% 0; will-change: transform;
    transform: scale(calc(1 - var(--p, 0) * .045)); filter: brightness(calc(1 - var(--p, 0) * .1));
    box-shadow: 0 -14px 34px rgba(22, 36, 74, .07);
  }
  .scene:nth-child(2) { top: calc(var(--ust) + 14px); }
  .scene:nth-child(3) { top: calc(var(--ust) + 28px); }
  .scene:nth-child(4) { top: calc(var(--ust) + 42px); }
  .feature.scene + .feature.scene { margin-top: 44px; }
}

/* ---------- Arkadan geçen ders adları (çerçeve yazı) ---------- */
.ghost { overflow: hidden; margin: calc(clamp(56px, 8vw, 104px) * -.45) 0 clamp(20px, 3vw, 40px); pointer-events: none; user-select: none; }
.ghost p {
  width: max-content; white-space: nowrap; font: 900 clamp(54px, 10vw, 140px)/1.04 var(--sans); letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(22, 36, 74, .15); will-change: transform;
}
.ghost p:first-child { margin-left: -60vw; }

/* ---------- Dersler: yana kayan şerit (telefonda alt alta satırlar) ---------- */
.rail-group + .rail-group { margin-top: 36px; }
.rail__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.rail__head h3 { font-size: 28px; }
.rail__head .exam__meta { margin: 0; }
.rail {
  list-style: none; display: flex; gap: 16px; margin: 16px calc(var(--gut) * -1) 0 0; padding: 6px var(--gut) 16px 0;
  overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.ders {
  flex: 0 0 clamp(190px, 19vw, 230px); scroll-snap-align: start; background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 22px 22px 24px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ders:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: 0 12px 26px rgba(22, 36, 74, .08); }
.ders b { font: 900 clamp(56px, 6vw, 84px)/.9 var(--sans); letter-spacing: -.045em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ders span { margin-left: 6px; font: 600 15px/1 var(--sans); color: var(--muted); }
.ders h4 { margin: 18px 0 0; font: 600 19px/1.2 var(--serif); letter-spacing: -.01em; color: var(--ink); }
@media (max-width: 700px) {
  .rail { display: block; overflow: visible; margin-right: 0; padding: 0; border-top: 1px solid var(--rule); }
  .ders { display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 0 6px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: none; }
  .ders:hover { transform: none; box-shadow: none; }
  .ders h4 { order: -1; margin: 0; font: 500 17px/1.3 var(--sans); letter-spacing: 0; color: var(--text); }
  .ders b { font-size: 19px; font-weight: 700; letter-spacing: 0; line-height: 1.3; }
  .ders span { margin: 0; font-weight: 500; font-size: 15px; }
}

/* ---------- Soru: şık seçilince küçük geri bildirim ---------- */
.opt.is-right { animation: zipla .45s cubic-bezier(.2, .8, .2, 1); }
.opt.is-wrong { animation: salla .4s ease; }
.quiz__sol, .quiz__next { animation: gel .4s ease both; }
.quiz__next { animation-delay: .08s; }
@keyframes zipla { 40% { transform: scale(1.02); } }
@keyframes salla { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes gel { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .btn:active, .stage:hover .phone, .date-card:hover, .seg label:hover span, .ders:hover, .week li.is-on { transform: none; }
  .scene { transform: none; filter: none; }
}
