/* Pazaryeri kâr hesaplama + Kâr Denetimi açılış sayfaları. Mağaza (magaza.html) ile aynı
   jetonlar: koyu zemin, pirinç rengi yalnız fiyat, sonuç ve satın alma eylemlerinde. */
:root {
  --bg: #080b09; --surface: #0f1411; --raise: #151b17; --ink: #e8ede9; --muted: #8e9a92;
  --line: #202923; --brass: #d9a441; --brass-ink: #141005; --brass-soft: #2a2213;
  --ok: #5cc08e; --bad: #e0705c; --warn: #e3b04b;
  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f5f2; --surface: #ffffff; --raise: #f9faf7; --ink: #111712; --muted: #5b665e;
    --line: #dce1db; --brass: #9a6a0e; --brass-ink: #ffffff; --brass-soft: #f6ecd7;
    --ok: #1e7a4c; --bad: #b2402c; --warn: #94630a; color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f4f5f2; --surface: #ffffff; --raise: #f9faf7; --ink: #111712; --muted: #5b665e;
  --line: #dce1db; --brass: #9a6a0e; --brass-ink: #ffffff; --brass-soft: #f6ecd7;
  --ok: #1e7a4c; --bad: #b2402c; --warn: #94630a; color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.55; }
a { color: inherit; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px 72px; }
.h-display { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; letter-spacing: -0.005em; text-wrap: balance; }
.eyebrow { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
header.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.brand { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; letter-spacing: 0.06em; font-size: 18px; line-height: 1.1; text-decoration: none; }
.brand small { display: block; font-family: var(--f-body); font-weight: 400; letter-spacing: 0; font-size: 12px; color: var(--muted); }
.top nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; align-items: center; justify-content: flex-end; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; padding: 11px 16px; border-radius: 6px; border: 1px solid var(--brass); background: var(--brass); color: var(--brass-ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--muted); }
.btn.sm { padding: 8px 12px; font-size: 13.5px; }
:is(.btn, summary, input, select, a):focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

.hero { padding-block: 40px 8px; max-width: 760px; }
.hero h1 { font-size: clamp(30px, 5vw, 50px); line-height: 1.04; margin: 10px 0 0; }
.hero h1 em { font-style: normal; color: var(--brass); }
.hero .lead { color: var(--muted); margin: 16px 0 0; font-size: 16.5px; max-width: 60ch; }
.assure { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.assure li::before { content: "✓"; color: var(--ok); margin-right: 6px; font-weight: 600; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

/* hesaplayıcı */
.calc { display: grid; grid-template-columns: 1.05fr 1fr; gap: 20px; margin-top: 28px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; min-width: 0; }
.panel h2 { font-size: 18px; margin: 0 0 4px; }
.panel .hint { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 500; }
.field small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.inp { position: relative; display: flex; align-items: center; }
.inp input, .inp select { width: 100%; font: inherit; font-family: var(--f-mono); font-size: 15px; color: var(--ink); background: var(--raise); border: 1px solid var(--line); border-radius: 6px; padding: 9px 40px 9px 11px; }
.inp select { font-family: var(--f-body); padding-right: 11px; }
.inp span { position: absolute; right: 11px; color: var(--muted); font-size: 13px; pointer-events: none; }
.result { position: sticky; top: 16px; }
.big { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.big b { font-family: var(--f-mono); font-size: clamp(26px, 4vw, 34px); color: var(--brass); font-variant-numeric: tabular-nums; }
.big b.neg { color: var(--bad); }
.big span { color: var(--muted); font-size: 13px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.kpis div { background: var(--raise); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; min-width: 0; }
.kpis small { display: block; color: var(--muted); font-size: 11.5px; }
.kpis b { font-family: var(--f-mono); font-size: 15px; font-variant-numeric: tabular-nums; }
.ledger { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.ledger td { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.ledger td:last-child { text-align: right; font-family: var(--f-mono); font-size: 13px; white-space: nowrap; padding-left: 10px; }
.ledger tr.neg td:last-child { color: var(--muted); }
.ledger tr.total td { border-bottom: 0; padding-top: 10px; font-weight: 600; }
.note { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.flag { margin-top: 12px; background: var(--brass-soft); border-radius: 6px; padding: 10px 12px; font-size: 13px; }
.flag b { color: var(--brass); }

/* bölümler */
section.block { padding-top: 48px; }
section.block > h2 { font-size: clamp(22px, 3vw, 30px); margin: 6px 0 8px; }
section.block > p.sub { color: var(--muted); margin: 0 0 18px; max-width: 62ch; }
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.offer { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.offer.pick { border-color: var(--brass); }
.offer .tag { font-family: var(--f-mono); font-size: 11px; color: var(--brass); letter-spacing: 0.08em; text-transform: uppercase; }
.offer h3 { margin: 0; font-size: 17px; line-height: 1.25; }
.offer p { margin: 0; color: var(--muted); font-size: 13.5px; }
.offer ul { margin: 0; padding-left: 18px; font-size: 13.5px; }
.offer .price { font-family: var(--f-mono); font-size: 22px; color: var(--brass); margin-top: auto; }
.offer .price small { font-family: var(--f-body); font-size: 12px; color: var(--muted); display: block; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; padding: 0; margin: 0; list-style: none; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; counter-increment: s; }
.steps li::before { content: counter(s); font-family: var(--f-mono); color: var(--brass); font-size: 13px; display: block; margin-bottom: 6px; }
.steps b { display: block; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 13.5px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks li { padding-left: 24px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 600; }
.checks.no li::before { content: "–"; color: var(--muted); }
details { border-bottom: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 8px 0 0; max-width: 70ch; }
.desi { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 10px; align-items: end; }
.desi output { font-family: var(--f-mono); font-size: 20px; color: var(--brass); padding: 8px 0; white-space: nowrap; }
.closer { margin-top: 48px; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.closer p { margin: 0; max-width: 60ch; }
footer.foot { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer.foot a { color: var(--muted); }

@media (max-width: 900px) {
  .calc, .two { grid-template-columns: 1fr; }
  .result { position: static; }
  .offers, .steps { grid-template-columns: 1fr; }
  .desi { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .fields { grid-template-columns: 1fr; }
  .top nav a:not(.btn) { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
