/* HukukApp — site görsel dili.
 *
 * TASARIM KARARLARI
 * 1) Ekran bir BELGE gibi okunur: kâğıt tonu zemin, saç teli çizgiler,
 *    küçük kapitel etiketler, madde numarası hissi veren sayaçlar.
 * 2) Başlıklarda serif (hukuk metninin kaydı), gövdede grotesk (okunurluk).
 * 3) Tek vurgu rengi (v4: fosfor yeşili; kâğıtta koyu tonu) yalnızca SAYI ve eylem için; kategori kategori
 *    renk dağıtılmaz — her şey vurguluysa hiçbir şey vurgulu değildir.
 * 4) Dış bağımlılık yok: font, ikon, analitik yüklenmez. Sayfa hızlı açılır
 *    ve ziyaretçi hiçbir üçüncü tarafa tanıtılmaz.
 */

:root {
  --ink: #171c2c;
  --ink-soft: #3d4459;
  --muted: #6b7183;
  --faint: #9aa0b0;
  --rule: #e2ded3;
  --rule-strong: #cfc9ba;
  --paper: #fbfaf7;
  --paper-alt: #f4f2ec;
  --card: #ffffff;
  --brand: #12161b;        /* v4 koyu panel (AppPalette.slab) */
  --brand-deep: #0b0d10;   /* AppPalette.carbon */
  --brand-soft: #3a404b;   /* AppPalette.dark.lineStrong */
  --on-brand: #c6cdd6;
  --accent: #4e7a00;          /* fosfor yesilinin kagit ustunde okunan tonu */
  --phosphor: #c8ff3d;        /* AppPalette.phosphor — yalniz koyu zeminde */
  --accent-soft: #f1f7e3;
  --danger: #a3271f;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-underline-offset: 3px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }

.cap {
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--faint);
}

.serif { font-family: var(--serif); }

/* ── Üst çubuk ───────────────────────────────────────────────── */
.topbar {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 62px;
}
.brand {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: block;
  box-shadow: 0 1px 3px rgba(11, 13, 16, 0.28);
}
.topbar nav { margin-left: auto; display: flex; gap: 8px; }
.topbar nav a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 15px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: #fff;
  line-height: 1.2;
  transition: background .15s, color .15s, border-color .15s;
}
.topbar nav a:hover {
  color: var(--brand);
  border-color: var(--brand-soft);
  background: #eef1f4;
}
/* Bulunulan sayfa dolu dugme olur; nerede oldugu bir bakista anlasilir. */
.topbar nav a[aria-current="page"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
@media (max-width: 680px) {
  .topbar .wrap { height: auto; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; gap: 10px; }
  .topbar nav { margin-left: 0; width: 100%; gap: 7px; }
  .topbar nav a { font-size: 12.5px; padding: 7px 13px; }
}

/* ── Kapak ───────────────────────────────────────────────────── */
/* Uygulamanin koyu panel zemini burada, alt bilgide ve uygulama
   seridinde goruntulenir; aradaki butun bolumler kagit tonunda kalir. */
.cover {
  background: var(--brand-deep);
  background-image:
    radial-gradient(120% 90% at 12% 0%, #1f2730 0%, rgba(31, 39, 48, 0) 58%),
    linear-gradient(160deg, #12161b 0%, #0b0d10 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
/* Ince fosfor cizgi — kagit bolumlerdeki vurgu rengiyle bagi kurar. */
.cover:after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--phosphor);
}
.cover .wrap { padding-top: 58px; padding-bottom: 62px; position: relative; }
.cover-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 46px; align-items: center; }
.cover h1 {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: -0.6px;
  margin: 12px 0 16px;
  font-weight: 700;
}
.cover h1 em { font-style: italic; color: var(--phosphor); }
.cover .cap { color: rgba(255, 255, 255, 0.58); }
.cover p.lede { font-size: 17px; color: var(--on-brand); margin: 0 0 22px; }
.cover .disclaim { font-size: 12.5px; color: rgba(255, 255, 255, 0.5); margin-top: 20px; }
.cover .btn { background: var(--phosphor); color: var(--brand-deep); border-color: var(--phosphor); }
.cover .btn:hover { background: #d8ff70; border-color: #d8ff70; }
.cover .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.cover .btn.ghost:hover { background: rgba(255, 255, 255, 0.12); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 2px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-family: var(--sans);
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: rgba(11, 13, 16, 0.06); }
.btn.quiet { background: transparent; color: var(--ink-soft); border-color: var(--rule-strong); }
.btn.quiet:hover { background: var(--paper-alt); }

/* Kapaktaki belge maketi — gorsel dosya degil, saf CSS.
   Uygulamanin urettigi PDF'in kucuk bir provasi: baslik, madde metni,
   vurgulu bedel satiri, imza bloklari ve QR'li dipnot. Arkada ikinci
   sayfanin kenari gorunur. */
.doc-stack { position: relative; }
.doc-stack:before,
.doc-stack:after {
  content: "";
  position: absolute;
  inset: 0;
  background: #f0eee8;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 2px;
}
.doc-stack:before { transform: rotate(-2.4deg) translate(-10px, 8px); opacity: 0.30; }
.doc-stack:after  { transform: rotate(1.6deg) translate(8px, 5px);   opacity: 0.55; }

.doc-mock {
  position: relative;
  background: var(--card);
  color: var(--ink);
  border-radius: 2px;
  border-top: 3px solid var(--accent);
  padding: 24px 24px 18px;
  box-shadow: 0 26px 54px -22px rgba(0, 0, 20, 0.62);
}
.doc-mock .doc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}
.doc-mock .doc-head img { width: 16px; height: 16px; border-radius: 4px; }
.doc-mock .doc-head .r { margin-left: auto; letter-spacing: 0.6px; }
.doc-mock .doc-title {
  font-family: var(--serif);
  font-size: 15.5px;
  text-align: center;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}
.doc-mock .doc-sub {
  text-align: center;
  font-size: 10.5px;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.doc-mock .clause {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.9px;
  margin: 14px 0 6px;
  color: var(--brand);
}
.doc-mock p {
  font-size: 10.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 6px;
  text-align: justify;
}
/* Sihirbazda doldurulan alanlar: noktali alt cizgi + koyu deger. */
.doc-mock b {
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px dotted var(--rule-strong);
}
/* Bedel satiri — uygulamanin koyu tonuyla vurgulanir. */
.doc-mock .amount-row {
  margin: 10px 0 4px;
  padding: 8px 10px;
  background: #eef1f4;
  border-left: 3px solid var(--brand);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 10.5px;
  color: var(--ink-soft);
}
.doc-mock .amount-row b {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--brand);
  border: 0;
  font-variant-numeric: tabular-nums;
}
.doc-mock .sign {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 20px;
}
.doc-mock .sign div {
  border-top: 1px solid var(--rule-strong);
  padding-top: 6px;
  font-size: 9.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.doc-mock .stamp {
  margin-top: 18px;
  border-top: 1px solid var(--rule);
  padding-top: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 9.5px;
  color: var(--faint);
  line-height: 1.45;
}
/* QR taklidi — dama deseni, tek bir gradyanla. */
.doc-mock .qr {
  width: 30px;
  height: 30px;
  flex: none;
  background:
    linear-gradient(var(--ink) 0 0) 0 0 / 9px 9px no-repeat,
    linear-gradient(var(--ink) 0 0) 21px 0 / 9px 9px no-repeat,
    linear-gradient(var(--ink) 0 0) 0 21px / 9px 9px no-repeat,
    linear-gradient(var(--ink) 0 0) 13px 13px / 4px 4px no-repeat,
    linear-gradient(var(--ink) 0 0) 21px 17px / 4px 4px no-repeat,
    linear-gradient(var(--ink) 0 0) 13px 25px / 5px 4px no-repeat,
    #fff;
  border: 1px solid var(--rule);
}
.doc-mock .stamp .r { margin-left: auto; text-align: right; white-space: nowrap; }

@media (max-width: 860px) {
  .cover-grid { grid-template-columns: 1fr; gap: 30px; }
  .cover h1 { font-size: 34px; }
  .doc-stack { display: none; }
}

/* ── Bölüm başlıkları ────────────────────────────────────────── */
section { padding: 52px 0; border-bottom: 1px solid var(--rule); }
section:last-of-type { border-bottom: 0; }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.sec-head .no {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 1px;
}
.sec-head h2 {
  font-family: var(--serif);
  font-size: 27px;
  margin: 0;
  letter-spacing: -0.3px;
}
.sec-lede { color: var(--ink-soft); max-width: 640px; margin: 0 0 26px; font-size: 15.5px; }

/* ── Modül kartları ──────────────────────────────────────────── */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--rule); background: var(--card); }
.module {
  padding: 26px 22px;
  border-right: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: background .15s;
}
.module:last-child { border-right: 0; }
.module:hover { background: var(--paper-alt); }
.module h3 { font-family: var(--serif); font-size: 19px; margin: 10px 0 8px; }
.module p { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; }
.module .go {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 999px;
  padding: 7px 15px;
  line-height: 1.2;
}
.module:hover .go { background: var(--brand-deep); border-color: var(--brand-deep); }
.module .count { font-family: var(--serif); font-size: 30px; color: var(--accent); line-height: 1; }
@media (max-width: 820px) {
  .modules { grid-template-columns: 1fr; }
  .module { border-right: 0; border-bottom: 1px solid var(--rule); }
  .module:last-child { border-bottom: 0; }
}

/* ── Listeler ────────────────────────────────────────────────── */
.rows { border-top: 1px solid var(--rule); }
.row-link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
}
.row-link:hover { background: var(--paper-alt); }
.row-link:hover .t { color: var(--brand); }
.row-link > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.row-link .t { display: block; font-weight: 600; font-size: 15px; }
.row-link .d { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.row-link .meta {
  margin-left: auto;
  font-size: 12px;
  color: var(--faint);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.group-label {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.6px;
  color: var(--accent);
  margin: 26px 0 2px;
}

.rows.cols-2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 34px; }
@media (max-width: 720px) { .rows.cols-2 { grid-template-columns: 1fr; } }

/* ── Adımlar ─────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step .n {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--rule-strong);
  line-height: 1;
}
.step h3 { font-size: 16px; margin: 8px 0 6px; }
.step p { font-size: 13.5px; color: var(--muted); margin: 0; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; gap: 20px; } }

/* ── Form ve sonuç ───────────────────────────────────────────── */
.panel { background: var(--card); border: 1px solid var(--rule); padding: 24px; }
.panel + .panel { margin-top: 18px; }

.calc label { display: block; font-size: 13.5px; font-weight: 600; margin: 16px 0 5px; }
.calc label:first-of-type { margin-top: 0; }
.calc .hint { display: block; font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 2px; }
.calc input,
.calc select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  font-size: 15px;
  font-family: var(--sans);
  background: #fff;
  color: var(--ink);
}
.calc input:focus,
.calc select:focus { outline: 2px solid var(--brand); outline-offset: -2px; }
.calc .row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.calc .switch { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: 13.5px; }
.calc .switch input { width: auto; margin-top: 3px; }
.calc button.run { margin-top: 20px; width: 100%; justify-content: center; }

.result { display: none; margin-top: 20px; }
.result.show { display: block; }

.statement {
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  padding: 24px;
}
.statement .head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.statement .amount {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.1;
  margin: 6px 0 2px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}
.statement table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.statement td { padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 14px; vertical-align: top; }
.statement td:last-child {
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.statement tr.strong td { font-weight: 800; border-bottom: 2px solid var(--rule-strong); }
.statement .note {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  font-size: 13px;
  line-height: 1.5;
}
.statement .foot { margin-top: 16px; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ── Şablon önizleme ─────────────────────────────────────────── */
.preview {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 30px 34px;
  font-family: var(--serif);
  position: relative;
}
.preview h4 { text-align: center; font-size: 15px; letter-spacing: 0.6px; margin: 0 0 20px; }
.preview .clause-title { font-size: 13px; font-weight: 700; margin: 18px 0 6px; }
.preview p { font-size: 14px; line-height: 1.75; margin: 0 0 10px; color: var(--ink-soft); }
.preview .fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 110px;
  background: linear-gradient(rgba(255,255,255,0), #fff 78%);
}
.preview-cta { margin-top: -28px; position: relative; text-align: center; }

.field-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 22px; margin: 0; padding: 0; list-style: none; }
.field-list li { font-size: 13.5px; color: var(--ink-soft); padding: 5px 0; border-bottom: 1px solid var(--rule); }
@media (max-width: 640px) { .field-list { grid-template-columns: 1fr; } }

/* ── Şablon künyesi ──────────────────────────────────────────── */
.spec { width: 100%; border-collapse: collapse; }
.spec th {
  width: 170px;
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  padding: 11px 16px 11px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.spec td {
  font-size: 14px;
  color: var(--ink-soft);
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
}
.spec tr:last-child th,
.spec tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) {
  .spec th, .spec td { display: block; width: auto; border-bottom: 0; padding: 4px 0; }
  .spec td { padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
}

.more {
  margin: 20px 0 0;
}
.more a {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: 9px 17px;
  line-height: 1.2;
}
.more a:hover { background: #eef1f4; border-color: var(--brand-soft); }

/* ── SSS ─────────────────────────────────────────────────────── */
.faq details { border-bottom: 1px solid var(--rule); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; display: flex; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; color: var(--accent); font-weight: 700; }
.faq details[open] summary::before { content: "–"; }
.faq p { font-size: 14px; color: var(--ink-soft); margin: 10px 0 0 20px; }

/* ── Uygulama şeridi ─────────────────────────────────────────── */
.appstrip { background: var(--brand); color: #fff; padding: 34px 0; border: 0; }
.appstrip h2 { font-family: var(--serif); font-size: 24px; margin: 0 0 8px; }
.appstrip p { color: #c6cdd6; font-size: 14.5px; margin: 0 0 18px; max-width: 620px; }
.appstrip .btn { background: var(--phosphor); color: var(--brand-deep); border-color: var(--phosphor); }
.appstrip .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }

/* ── Alt bilgi ───────────────────────────────────────────────── */
footer.site { background: var(--brand-deep); color: #fff; padding: 34px 0 44px; }
footer.site .foot-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
footer.site .foot-brand img { width: 34px; height: 34px; border-radius: 8px; display: block; }
footer.site .foot-brand span {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
footer.site .legal { font-size: 12.5px; color: rgba(255, 255, 255, 0.62); max-width: 720px; line-height: 1.65; }
footer.site .links { margin: 20px 0 14px; display: flex; flex-wrap: wrap; gap: 9px; }
footer.site .links a {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--on-brand);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 8px 15px;
  line-height: 1.2;
}
footer.site .links a:hover {
  color: var(--brand-deep);
  background: #fff;
  border-color: #fff;
}
footer.site .copy { font-size: 12px; color: rgba(255, 255, 255, 0.4); }

.breadcrumb { font-size: 12.5px; color: var(--muted); padding: 16px 0 0; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.page-head { padding: 30px 0 26px; border-bottom: 1px solid var(--rule); }
.page-head h1 { font-family: var(--serif); font-size: 33px; margin: 8px 0 10px; letter-spacing: -0.4px; }
.page-head p { color: var(--ink-soft); max-width: 680px; margin: 0; font-size: 15.5px; }
@media (max-width: 640px) { .page-head h1 { font-size: 26px; } }

.source-note { font-size: 12.5px; color: var(--muted); margin-top: 18px; line-height: 1.55; }

/* ── Yazdırma: ekran arayüzü gider, geriye BELGE kalır ───────── */
@media print {
  @page { margin: 18mm 16mm; }
  body { background: #fff; font-size: 11pt; }
  .topbar, .cover, .appstrip, footer.site, .result-actions,
  .calc, .faq, .breadcrumb, .page-head, .source-note,
  .print-hide, .no-print { display: none !important; }
  .print-only { display: block !important; }
  .wrap { max-width: none; padding: 0; }
  .statement { border: 0; padding: 0; }
  .statement .amount { font-size: 22pt; }
  .statement td { font-size: 10.5pt; }
  .statement .note { background: #f4f2ec; border-left: 2px solid #4e7a00; }
  a[href]:after { content: ""; }
}
.print-only { display: none; }
.print-head {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
  margin-bottom: 16px;
}
.print-head .t { font-family: var(--serif); font-size: 15pt; font-weight: 700; }
.print-head .s { font-size: 9pt; color: #555; }
