/* M13-A: design/m13 screen 19 and the existing /hesap-sil tokens.
   Fonts are the bundled Flutter assets, with no remote font request. */
@font-face {
  font-family: 'DM Sans';
  src: url('/assets/assets/fonts/DMSans.ttf') format('truetype');
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: 'Literata';
  src: url('/assets/assets/fonts/Literata.ttf') format('truetype');
  font-weight: 200 900;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --paper: #faf9f6;
  --ink: #252a34;
  --muted: #59616f;
  --row: #fff;
  --line: #dce0e6;
  --accent: #304fc4;
  --lamp-ink: #252a34;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #191c22;
    --ink: #f1f2f6;
    --muted: #b2bac9;
    --row: #242933;
    --line: #3b424f;
    --accent: #b7caff;
    --lamp-ink: #aeb4bf;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
h1, h2, p { margin: 0; font: inherit; }
[hidden] { display: none !important; }
.static-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 36px 18px 48px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-lamp { flex: none; }
.brand span {
  font-family: 'Literata', Georgia, serif;
  font-size: 1.75rem;
  letter-spacing: -.01em;
}
h1 {
  margin-top: 2px;
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.browser-title { margin-top: 48px; }
.eyebrow {
  margin-top: 30px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--muted);
}
.intro, .card-body {
  margin-top: 12px;
  font-size: .96875rem;
  line-height: 1.55;
}
.card {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--row);
  box-shadow: inset 0 0 0 .5px var(--line);
}
.link-card { padding: 0; }
.store-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 12px 16px 12px 18px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--accent);
  text-decoration: none;
}
.store-link + .store-link { border-top: .5px solid var(--line); }
.chevron {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-label { font-size: .875rem; font-weight: 600; color: var(--muted); }
.support-mail { margin-top: 4px; font-size: 1.25rem; font-weight: 600; }
.support-mail a { color: var(--accent); text-decoration: none; overflow-wrap: anywhere; }
.card-body { margin-top: 8px; }
.footer { margin-top: 28px; font-size: .875rem; color: var(--muted); text-align: center; line-height: 1.5; }
.footer a { display: inline; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.store-link:focus-visible { outline-offset: -3px; border-radius: 20px; }
/* Until Flutter's first frame: the page colour, then (only if loading takes a
   moment) the lamp, centred. A start-up failure replaces it with plain text. */
.startup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 32px;
  font-size: 1rem;
  line-height: 1.55;
  text-align: center;
}
.startup[hidden] { display: none; }
.startup-lamp { color: var(--lamp-ink); opacity: 0; animation: startup-in .6s ease-out .4s forwards; }
@keyframes startup-in { to { opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .startup-lamp { animation-duration: 1ms; } }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* T13-E · /destek sık sorulanlar (design/m13 screen 17): native disclosure rows, no script. */
.section-label { margin: 28px 6px 0; font-size: .875rem; font-weight: 600; color: var(--muted); }
.faq { margin-top: 8px; padding: 0; overflow: hidden; }
.faq details + details { border-top: .5px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 14px 16px 14px 18px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chevron { width: 1.125em; height: 1.125em; color: var(--muted); transition: transform .15s ease; }
.faq details[open] summary .chevron { transform: rotate(90deg); }
.faq details p {
  padding: 0 18px 18px;
  font-size: .96875rem;
  line-height: 1.55;
  color: var(--muted);
}
.faq details p a { color: var(--accent); text-underline-offset: 3px; }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; border-radius: 20px; }
@media (prefers-reduced-motion: reduce) { .faq summary .chevron { transition: none; } }

/* D43 · /yks-puan-hesaplama and /yks-sayac: real text for search, one action. */
.calc { margin-top: 20px; }
.segments {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 3px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--line) 55%, transparent);
}
.segment {
  min-height: 40px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
}
.segment[aria-checked="true"] {
  background: var(--row);
  box-shadow: 0 0 0 .5px var(--line), 0 1px 3px rgb(0 0 0 / .08);
}
.calc-group { padding: 6px 0 4px; margin-top: 12px; }
.calc-head, .calc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.5rem 3.5rem 3.25rem;
  align-items: center;
  gap: 6px;
  padding: 0 14px 0 18px;
}
.calc-head {
  min-height: 34px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--muted);
}
.calc-head span:not(:first-child) { text-align: center; }
.calc-head span:last-child { text-align: right; }
.calc-row { min-height: 54px; border-top: .5px solid var(--line); }
.calc-name { font-size: .96875rem; line-height: 1.25; }
.calc-name small { display: block; margin-top: 1px; font-size: .8125rem; color: var(--muted); }
.calc input, .calc select {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: color-mix(in srgb, var(--line) 38%, transparent);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.calc input:focus-visible, .calc select:focus-visible, .segment:focus-visible, .primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.calc-row output {
  text-align: right;
  font-size: 1.0625rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.calc-over input { box-shadow: inset 0 0 0 1.5px #c2452d; }
.calc-language {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 9rem;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 8px 14px 8px 18px;
  border-radius: 20px;
  background: var(--row);
  box-shadow: inset 0 0 0 .5px var(--line);
}
.calc-diploma {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6rem;
  align-items: center;
  gap: 4px 12px;
  margin-top: 12px;
  padding-right: 14px;
}
.calc-diploma label { font-size: .96875rem; }
.calc-diploma p { grid-column: 1 / -1; font-size: .8125rem; line-height: 1.45; color: var(--muted); }
.calc-error { margin-top: 12px; font-size: .9375rem; line-height: 1.45; color: #b23a24; }
@media (prefers-color-scheme: dark) { .calc-error { color: #ff9d87; } .calc-over input { box-shadow: inset 0 0 0 1.5px #ff9d87; } }
.primary {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  border: 0;
  border-radius: 16px;
  background: var(--accent);
  color: var(--row);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
}
@media (prefers-color-scheme: dark) { .primary { color: #152657; } }
.primary:disabled { opacity: .6; cursor: progress; }
.calc-challenge { margin-top: 8px; display: flex; justify-content: center; }
.calc-challenge:empty { display: none; }
.result { margin-top: 20px; scroll-margin-top: 12px; }
.result-card { padding: 20px 18px 16px; }
.result-kicker { font-size: .875rem; font-weight: 600; color: var(--muted); }
.result-score {
  margin-top: 6px;
  font-size: 3rem;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.result-label { margin-top: 2px; font-size: .9375rem; color: var(--muted); }
.result-rank {
  margin-top: 14px;
  font-size: 1.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.result-rank span { display: block; margin-top: 2px; font-size: .9375rem; font-weight: 400; color: var(--muted); }
.result-note { margin-top: 12px; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.result-empty { font-size: .96875rem; line-height: 1.5; }
.result table { width: 100%; margin-top: 16px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.result th, .result td { padding: 9px 0; text-align: right; font-size: .9375rem; font-weight: 400; border-top: .5px solid var(--line); }
.result thead th { font-size: .8125rem; font-weight: 600; color: var(--muted); border-top: 0; }
.result th:first-child { text-align: left; }
.calc-next { margin-top: 20px; }
.static-page h1 { overflow-wrap: break-word; }
.program-meta { margin-top: 8px; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.program-result { margin-top: 8px; }
.program-result table { margin-top: 0; }
.program-result th + th, .program-result th + td, .program-result td + td { padding-left: 10px; }
/* %200 yazıda geniş tablo sayfayı değil, kartın içini kaydırır. */
.table-scroll { overflow-x: auto; }
@media (max-width: 359px) { .program-result .result-card { padding-left: 14px; padding-right: 14px; } }
.program-result th a { color: var(--accent); text-decoration: none; }
.data-sub { display: block; margin-top: 2px; font-size: .8125rem; line-height: 1.35; color: var(--muted); }
.count-card { margin-top: 16px; padding: 22px 18px 18px; text-align: center; }
.count-number {
  font-size: 5rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.count-number.count-past { font-size: 1.75rem; line-height: 1.25; letter-spacing: -.01em; }
.count-unit { margin-top: 2px; font-size: 1.125rem; color: var(--muted); }
.calendar { margin-top: 8px; padding: 2px 18px; }
.calendar dl { margin: 0; }
.calendar dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  align-items: center;
  font-size: .96875rem;
}
.calendar dl > div + div { border-top: .5px solid var(--line); }
.calendar dt { color: var(--muted); }
.calendar dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.source { margin: 10px 6px 0; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.source a { color: var(--muted); text-underline-offset: 3px; }
@media (max-width: 359px) {
  .calc-head, .calc-row { grid-template-columns: minmax(0, 1fr) 3rem 3rem 2.75rem; padding-left: 14px; padding-right: 10px; gap: 4px; }
}
