/* ==========================================================================
   Vantic / Beratmatik — tasarım sistemi
   Kimlik: kurumsal fintech, gece mavisi. Tek vurgu rengi (çelik mavisi),
   tarih/dönem verisi mono dizgi, sola hizalı düzen, hairline ayraçlar.
   Yazı: Schibsted Grotesk (başlık) · IBM Plex Sans (gövde) · IBM Plex Mono (veri)
   ========================================================================== */

:root {
  --ink: #0b1526;        /* sayfa zemini */
  --panel: #101d33;      /* yüzey */
  --panel-2: #142440;    /* yüzey (vurgulu) */
  --line: #1d2c47;       /* hairline */
  --text: #dee7f3;
  --dim: #8ca0bf;        /* mavi eğilimli nötr */
  --accent: #5c9bd6;     /* çelik mavisi — tek vurgu */
  --accent-strong: #7db4e6;
  --accent-soft: rgba(92, 155, 214, 0.10);  /* seçili/vurgulu zeminler */
  --on-accent: #0b1526;
  --sel: rgba(92, 155, 214, 0.35);
  --bar: rgba(11, 21, 38, 0.92);            /* üst çubuk zemini */
  --fade: 0.6;                              /* geçmiş satırların sönükleşmesi */
  --ok: #4caf7d;
  --warn: #d9a441;
  --crit: #e06c5f;

  --font-display: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;

  --w: 1040px;
  --r: 6px;
}

/* Açık tema — beyaz zemin, lacivert mürekkep; vurgu koyulaştırılmış çelik
   mavisi (beyaz üzerinde kontrast için). data-theme kökte, theme.js yönetir. */
:root[data-theme="light"] {
  --ink: #f6f8fb;
  --panel: #ffffff;
  --panel-2: #edf2f9;
  --line: #d8e1ee;
  --text: #14243d;
  --dim: #44587a;      /* 6.8:1 — koyu temadaki dim ile aynı güçte */
  --accent: #275e96;
  --accent-strong: #1f5182;
  --accent-soft: rgba(39, 94, 150, 0.08);
  --on-accent: #ffffff;
  --sel: rgba(39, 94, 150, 0.22);
  --bar: rgba(246, 248, 251, 0.92);
  --fade: 0.85;        /* açık zeminde 0.6 fazla siliyor */
  --ok: #1c623f;
  --warn: #7a540d;
  --crit: #a83a2c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.6;
  background: var(--ink);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection { background: var(--sel); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 24px; }

/* --- Üst çubuk ----------------------------------------------------------- */
.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--bar);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(8px);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  height: 58px;
}
.topbar .right { display: flex; align-items: center; gap: 18px; }

/* tema düğmesi */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex: none;
  background: transparent;
  border: 1px solid var(--line); border-radius: var(--r);
  color: var(--dim); cursor: pointer;
  transition: border-color 0.12s, color 0.12s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--text); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
.wordmark {
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text);
}
.wordmark:hover { color: var(--text); text-decoration: none; }
.topnav { display: flex; gap: 26px; }
.topnav a {
  font-size: 0.88rem; color: var(--dim);
  padding: 4px 0;
}
.topnav a:hover { color: var(--text); text-decoration: none; }
.topnav a[aria-current="page"] {
  color: var(--text);
  border-bottom: 2px solid var(--accent);
}

main { flex: 1; }

/* --- Sayfa başı ---------------------------------------------------------- */
.pagehead { padding: 52px 0 36px; max-width: 640px; }
.eyebrow {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dim);
}
h1 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 2.1rem; line-height: 1.2;
  letter-spacing: -0.01em; text-wrap: balance;
  margin-top: 10px;
}
.pagehead p { color: var(--dim); margin-top: 12px; max-width: 56ch; }

h2 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.15rem; line-height: 1.3;
  letter-spacing: -0.005em;
}

/* --- Araç düzeni --------------------------------------------------------- */
.tool { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
}

fieldset { border: 0; }
fieldset + fieldset, fieldset + .field, .field + fieldset { margin-top: 22px; }
legend, .field > label {
  display: block;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 10px;
}
.hint { font-size: 0.78rem; color: var(--dim); margin-top: 8px; }

/* radyo pilleri */
.choices { display: flex; flex-direction: column; gap: 8px; }
.choice { position: relative; }
.choice input {
  position: absolute; opacity: 0; inset: 0; cursor: pointer;
}
.choice span {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--ink);
  padding: 10px 14px;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.12s, background-color 0.12s;
}
.choice small { display: block; color: var(--dim); font-size: 0.78rem; margin-top: 1px; }
.choice input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice:hover span { border-color: var(--accent); }

select {
  width: 100%;
  font-family: var(--font-mono); font-size: 0.95rem;
  background: var(--ink); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 10px 12px;
  cursor: pointer;
}

/* --- Sonuç: özet --------------------------------------------------------- */
.results { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.summary {
  display: flex; align-items: baseline; gap: 16px 28px; flex-wrap: wrap;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 22px;
}
.summary .lbl {
  flex-basis: 100%;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim);
}
.summary .date {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 1.45rem; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.summary .meta { font-size: 0.9rem; color: var(--dim); }
.summary .meta strong { font-weight: 600; }

/* --- Sonuç: tablo -------------------------------------------------------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th {
  text-align: left;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim);
  padding: 12px 18px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  vertical-align: baseline;
}
tr:last-child td { border-bottom: 0; }
td.mono, .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
}
tr.past td { color: var(--dim); opacity: var(--fade); }
tr.next td { background: var(--accent-soft); }
tr.next td:first-child { box-shadow: inset 2px 0 0 var(--accent); }

.state { display: inline-flex; align-items: center; gap: 8px; }
.state::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--dim); flex: none;
}
.state.ok::before { background: var(--ok); }
.state.warn::before { background: var(--warn); }
.state.crit::before { background: var(--crit); }
.state.crit { color: var(--crit); font-weight: 600; }
.state.warn { color: var(--warn); }

.ext {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--warn);
  border: 1px solid var(--warn);
  border-radius: 3px;
  padding: 1px 6px;
  margin-left: 8px;
  vertical-align: 1px;
}

.table-note { font-size: 0.82rem; color: var(--dim); }
.table-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.linklike {
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 0.85rem;
  color: var(--accent);
}
.linklike:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }

/* --- Bölümler ------------------------------------------------------------ */
.section { padding: 44px 0 0; }
.section:last-of-type { padding-bottom: 56px; }
.section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }

.method ol { margin: 14px 0 0 18px; color: var(--dim); font-size: 0.88rem; }
.method li { margin-top: 8px; padding-left: 4px; }
.method li::marker { font-family: var(--font-mono); color: var(--accent); font-size: 0.8rem; }
.source { font-size: 0.78rem; color: var(--dim); margin-top: 14px; }

/* --- Form ---------------------------------------------------------------- */
.subscribe p { color: var(--dim); font-size: 0.9rem; margin-top: 8px; max-width: 52ch; }
form { margin-top: 16px; }
.form-row { display: flex; gap: 10px; }
input[type="email"] {
  flex: 1; min-width: 0;
  font-family: var(--font-body); font-size: 0.95rem;
  background: var(--ink); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 11px 14px;
}
input[type="email"]::placeholder { color: var(--dim); opacity: 0.7; }
input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }

.btn {
  display: inline-block;
  font-family: var(--font-body); font-weight: 600; font-size: 0.92rem;
  background: var(--accent); color: var(--on-accent);
  border: 1px solid var(--accent); border-radius: var(--r);
  padding: 11px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.12s, border-color 0.12s;
}
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); text-decoration: none; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }

.consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.8rem; color: var(--dim);
  margin-top: 12px; cursor: pointer;
}
.consent input { margin-top: 3px; accent-color: var(--accent); flex: none; }

.cf-turnstile { margin-top: 12px; }

.form-msg { font-size: 0.85rem; min-height: 1.3em; margin-top: 10px; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--crit); }

/* --- Vantic tanıtım sayfası ---------------------------------------------- */
.hero { padding: 72px 0 20px; max-width: 680px; }
.hero h1 { font-size: 2.5rem; margin-top: 14px; }
.hero .lead { color: var(--dim); font-size: 1.05rem; margin-top: 16px; max-width: 54ch; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .actions { margin-top: 26px; }

.status-line {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.82rem; color: var(--dim);
  margin-top: 22px;
}
.status-line::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--warn);
}

.prose { max-width: 620px; }
.prose h2 { margin-bottom: 12px; }
.prose p { color: var(--dim); }
.prose p + p { margin-top: 10px; }
.prose strong { color: var(--text); font-weight: 600; }

.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 18px; }
.problem h3 { font-family: var(--font-display); font-size: 0.98rem; font-weight: 700; }
.problem p { color: var(--dim); font-size: 0.88rem; margin-top: 6px; }

.steps { margin-top: 18px; border-top: 1px solid var(--line); }
.step {
  display: grid; grid-template-columns: 56px 200px 1fr; gap: 18px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.step .no { font-family: var(--font-mono); font-size: 0.82rem; color: var(--accent); }
.step .t { font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; }
.step .d { color: var(--dim); font-size: 0.9rem; }

/* Kurucu Muhasebeciler Listesi */
.founders { padding: 28px; }
.founders-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px;
  align-items: start;
}
.founders h2 { font-size: 1.35rem; margin-top: 10px; }
.founders-lead { color: var(--dim); font-size: 0.92rem; margin-top: 10px; max-width: 50ch; }
.perks { list-style: none; margin-top: 18px; border-top: 1px solid var(--line); }
.perks li {
  padding: 12px 0; border-bottom: 1px solid var(--line);
  color: var(--dim); font-size: 0.9rem;
}
.perks strong { color: var(--text); font-weight: 600; }
.founders form { margin-top: 4px; }
.founders input[type="email"], .founders select { width: 100%; }
.founders select { font-family: var(--font-body); }
.btn-block { display: block; width: 100%; margin-top: 14px; }

/* Kurucu Beratı (kart) */
input[type="text"] {
  width: 100%;
  font-family: var(--font-body); font-size: 0.95rem;
  background: var(--ink); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 11px 14px;
}
input[type="text"]::placeholder { color: var(--dim); opacity: 0.7; }
input[type="text"]:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.choices-row { flex-direction: row; }
.choices-row .choice { flex: 1 1 120px; }
.berat-canvas {
  display: block; width: 100%; max-width: 520px; height: auto;
  border: 1px solid var(--line); border-radius: var(--r);
  background: transparent;
}
.berat-sayfa { padding-bottom: 56px; }
.berat-sayfa .berat-canvas { margin-top: 8px; }

/* Beratmatik → Kurucu listesi köprüsü */
.kopru {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel);
  padding: 18px 22px;
}
.kopru p { color: var(--dim); font-size: 0.92rem; max-width: 52ch; }
.kopru strong { color: var(--text); }

/* Kurucular sayfası (canlı liste) */
.canli-nokta {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok); margin-right: 8px;
  animation: canli 2s ease-in-out infinite;
}
@keyframes canli { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
tr.anon td { color: var(--dim); }

/* --- KVKK sayfası -------------------------------------------------------- */
.legal { max-width: 640px; padding-bottom: 56px; }
.legal h2 { margin-top: 34px; }
.legal p, .legal li { color: var(--dim); font-size: 0.92rem; }
.legal p { margin-top: 10px; }
.legal ul { margin: 10px 0 0 18px; }
.legal li { margin-top: 6px; }

/* --- Altbilgi ------------------------------------------------------------ */
.footer { border-top: 1px solid var(--line); margin-top: 24px; }
.footer .wrap {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
  padding-top: 22px; padding-bottom: 26px;
  font-size: 0.82rem; color: var(--dim);
}
.footer nav { display: flex; gap: 20px; }
.footer a { color: var(--dim); }
.footer a:hover { color: var(--text); text-decoration: none; }

/* --- Duyarlılık ---------------------------------------------------------- */
@media (max-width: 860px) {
  .tool { grid-template-columns: 1fr; }
  .section-grid { grid-template-columns: 1fr; }
  .founders-grid { grid-template-columns: 1fr; gap: 22px; }
  .problems { grid-template-columns: 1fr; gap: 16px; }
  .step { grid-template-columns: 40px 1fr; }
  .step .d { grid-column: 2; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: 1.9rem; }
  h1 { font-size: 1.7rem; }
  .choices { flex-direction: row; flex-wrap: wrap; }
  .choice { flex: 1 1 150px; }
}
@media (max-width: 520px) {
  .form-row { flex-direction: column; }
  .topnav { gap: 16px; }
  .summary .date { font-size: 1.2rem; }
  th, td { padding-left: 12px; padding-right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
