/* YKS Koçu sitesi. Renkler design/tokens.json'dan (KARARLAR Y1); kimlik: optik daire, kurşun kalem, fosforlu kalem. */
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-display: swap; src: url("/fonts/SourceSerif4-Semibold.ttf") format("truetype"); }
@font-face { font-family: "Archivo"; font-weight: 700; font-display: swap; src: url("/fonts/Archivo-ExpandedHeavy.ttf") format("truetype"); }

:root {
  --page: #F2F2F7;
  --sheet: #FFFFFF;
  --ink: #1F2328;
  --on-ink: #FFFFFF;
  --muted: #5B616B;
  --ring: #8A9099;
  --rule: #D9DCE1;
  --brand: #4433E0;
  --highlight: #E8FA3D;
  --on-highlight: #1F2328;
  --on-brand: #FFFFFF;
  --correct: #1C7D45;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #000000;
    --sheet: #1C1C1E;
    --ink: #ECEEF1;
    --on-ink: #1F2328;
    --muted: #A3A9B2;
    --ring: #6E747D;
    --rule: #38383A;
    --brand: #5A4CF0;
    --highlight: #E8FA3D;
    --on-highlight: #1F2328;
    --on-brand: #FFFFFF;
    --correct: #43C67E;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
main {
  max-width: 30rem;
  margin: 0 auto;
  padding: max(1.5rem, env(safe-area-inset-top)) 1.25rem max(2.5rem, env(safe-area-inset-bottom));
}

.brand { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 3rem; font-weight: 600; font-size: 0.95rem; }
/* Geçici işaret: simge kararı açık (KARARLAR Y3). */
.mark { width: 1.75rem; height: 1.75rem; border-radius: 22.4%; display: block; }

h1 { margin: 0 0 0.6rem; font: 600 2.25rem/1.12 "Source Serif 4", Georgia, "Times New Roman", serif; letter-spacing: -0.01em; text-wrap: balance; }
.lead { margin: 0 0 2rem; color: var(--muted); max-width: 26rem; }

/* Cevap kâğıdı: kod, kurşun kalemle doldurulmuş altı optik daire. */
.sheet { background: var(--sheet); border-radius: 1.25rem; padding: 1.1rem 1.1rem 1.4rem; }
.sheet-label { margin: 0 0 0.9rem; color: var(--muted); font-size: 0.875rem; }
.code { display: flex; justify-content: space-between; gap: 0.35rem; margin: 0; max-width: 23rem; }
.bubble {
  flex: 0 1 3.25rem; aspect-ratio: 1; display: grid; place-items: center;
  border-radius: 50%; border: 2px solid var(--ring);
  background: var(--ink); border-color: var(--ink); color: var(--on-ink);
  font: 700 1.45rem/1 "Archivo", "Helvetica Neue", Arial, sans-serif;
  animation: fill 0.32s ease-out backwards;
}
.bubble:nth-child(2) { animation-delay: 0.09s; }
.bubble:nth-child(3) { animation-delay: 0.18s; }
.bubble:nth-child(4) { animation-delay: 0.27s; }
.bubble:nth-child(5) { animation-delay: 0.36s; }
.bubble:nth-child(6) { animation-delay: 0.45s; }
@keyframes fill {
  from { background: transparent; border-color: var(--ring); color: transparent; }
}
@media (prefers-reduced-motion: reduce) { .bubble { animation: none; } }

.actions { display: flex; flex-direction: column; gap: 0.6rem; margin: 1.25rem 0 0; }
.primary, .secondary {
  display: block; width: 100%; min-height: 3.25rem; padding: 0.85rem 1rem; border-radius: 0.9rem;
  font: inherit; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer;
}
.primary { background: var(--brand); color: var(--on-brand); border: 0; }
.secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--rule); }
.secondary[hidden] { display: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.status { min-height: 1.5rem; margin: 0.6rem 0 0; color: var(--muted); font-size: 0.9rem; text-align: center; }

.help { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.help h2 { margin: 0 0 0.4rem; font-size: 1rem; font-weight: 600; }
.help p { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.95rem; }

/* Marka satırı ana sayfaya bağlanır; görünüşü değişmez. */
.brand a { display: inline-flex; align-items: center; gap: 0.6rem; color: inherit; text-decoration: none; }

a { color: var(--brand); }
a:hover { text-decoration-thickness: 2px; }

/* Yasal sayfalar: uzun metin için daha geniş, okunur sütun. */
main.wide { max-width: 44rem; }
.legal h1 { font-size: 2rem; }
.legal h2 { margin: 2.25rem 0 0.6rem; font-size: 1.15rem; font-weight: 600; }
.legal p, .legal li { line-height: 1.6; }
.legal p { margin: 0 0 1rem; }
.legal ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.legal li { margin-bottom: 0.35rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1.25rem; font-size: 0.95rem; background: var(--sheet); border-radius: 1rem; overflow: hidden; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--rule); }
.legal th { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.legal tbody tr:last-child td { border-bottom: 0; }

/* Telefonda tablo satırı kart olur; her hücre kendi başlığını taşır (data-label, tools/build-legal.mjs). */
@media (max-width: 40rem) {
  .legal table, .legal tbody, .legal tr, .legal td { display: block; width: 100%; }
  .legal table { background: none; border-radius: 0; }
  .legal thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal tr { background: var(--sheet); border-radius: 1rem; padding: 0.4rem 0; margin-bottom: 0.75rem; }
  .legal td { border-bottom: 0; padding: 0.35rem 1rem; }
  .legal td::before { content: attr(data-label); display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
}

.links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); font-size: 0.9rem; }
.links a { color: var(--muted); }

/* Fosforlu kalem (Y1): sayfada yalnız tek kilit ifadede. */
.hl { background: var(--highlight); color: var(--on-highlight); padding: 0 0.15em; }
