/*
 * Kanguru tanıtım sitesi (index.html ve gizlilik.html ortak).
 * Renk değerleri ürünle aynıdır: frontend/src/app/kanguru.css (açık ve koyu tema).
 * Dış yazı tipi, betik ya da görsel yüklenmez.
 */
:root {
  color-scheme: light;
  --ink: #171a23;
  --muted: #5b6272;
  --line: #e4e1d9;
  --line-strong: #cfcabf;
  --paper: #f6f5f1;
  --surface: #ffffff;
  --raised: #fdfcfa;
  --accent: #3138c9;
  --accent-strong: #232aa3;
  --accent-soft: #eef0ff;
  --accent-line: #c9ccf6;
  --on-accent: #fff;
  --track: #eceae4;
  /* Marka işareti iki temada da aynı koyu çivit kalır (üstünde beyaz harf). */
  --brand: #3138c9;
  --brand-2: #5a2fc0;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgb(23 26 35 / 0.05);
  --shadow: 0 1px 2px rgb(23 26 35 / 0.04), 0 8px 24px rgb(23 26 35 / 0.06);
  --focus-ring: 0 0 0 3px var(--paper), 0 0 0 5px var(--accent);
  --font:
    "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Noto Sans", Ubuntu, "Helvetica Neue",
    Arial, "Liberation Sans", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #edeef0;
    --muted: #b0b4ba;
    --line: #2f3237;
    --line-strong: #5a6169;
    --paper: #111113;
    --surface: #1c1d21;
    --raised: #212226;
    --accent: #a6adff;
    --accent-strong: #c7cbff;
    --accent-soft: #23264f;
    --accent-line: #3b3f8a;
    --on-accent: #111216;
    --track: #2a2c31;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.35);
  }
}

/* ---------- Temel ---------- */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: break-word;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent-strong);
}
a:focus-visible,
.btn:focus-visible {
  outline: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--focus-ring);
}
h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}
.skip:focus {
  top: 12px;
}

/* ---------- Ortak çerçeve ---------- */
.top,
main,
.foot {
  width: min(1080px, 100% - 32px);
  margin: 0 auto;
}
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 20px 0;
}
.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand:hover {
  color: var(--ink);
}
.mark {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 6px 16px rgb(49 56 201 / 0.28);
}
.nav {
  margin-left: auto;
}
.nav-links {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}
@media (max-width: 860px) {
  /* Bölüm bağlantıları ikinci satırda, kendi kutusunda yatay kayar (sayfa kaymaz). */
  .login {
    margin-left: auto;
  }
  .nav {
    order: 3;
    flex: 1 1 100%;
    min-width: 0;
    margin: 0 -4px;
  }
  .nav-links {
    overflow-x: auto;
    padding: 4px;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-links a {
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: 14px;
    white-space: nowrap;
  }
}

/* ---------- Düğmeler ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover {
  background: var(--accent-strong);
  color: var(--on-accent);
}
.btn-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}
.btn-small {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 15px;
}

/* ---------- Giriş bölümü ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 48px 0 64px;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 12px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 600;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.lead {
  max-width: 56ch;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Örnek görünüm ---------- */
.preview {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--raised);
  box-shadow: var(--shadow);
}
.preview-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.card + .card {
  margin-top: 12px;
}
.card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.card .sub {
  margin: 2px 0 14px;
  color: var(--muted);
  font-size: 13px;
}
.bars {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bars li {
  display: grid;
  grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr) 2.6em;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}
.bars .name {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bars .track {
  height: 10px;
  border-radius: 999px;
  background: var(--track);
}
.bars .fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}
.bars .val {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
}
.trend {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}
.trend-now {
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
  color: var(--muted);
}
.trend-now strong {
  display: block;
  color: var(--ink);
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
/* Çizgi sabit yükseklikte; etiketler SVG dışında, ekran genişliğiyle büyüyüp küçülmez. */
.spark {
  display: block;
  width: 100%;
  height: 64px;
  overflow: visible;
}
.spark .line,
.spark .dot,
.spark .dot-ring {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.spark .line {
  stroke: var(--accent);
  stroke-width: 2.5;
}
.spark .dot-ring {
  stroke: var(--surface);
  stroke-width: 13;
}
.spark .dot {
  stroke: var(--accent);
  stroke-width: 9;
}
.spark-ends {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}
.spark-ends b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* ---------- Bölümler ---------- */
.section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.section-head {
  max-width: 62ch;
  margin-bottom: 28px;
}
.section h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.4vw, 32px);
  letter-spacing: -0.025em;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 700;
}
.steps h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.note {
  max-width: 78ch;
  margin: 20px 0 0;
  padding: 12px 16px;
  border-left: 3px solid var(--accent-line);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface);
  color: var(--muted);
  font-size: 15px;
}
.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.panel > p {
  margin: 0 0 16px;
  color: var(--muted);
}
.ticks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ticks li {
  position: relative;
  padding-left: 28px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 14px;
  height: 8px;
  border-bottom: 2.5px solid var(--accent);
  border-left: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}
.ticks strong {
  font-weight: 600;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.facts li {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.facts h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.facts p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.more {
  margin: 12px 0 0;
}
.more a,
.contact-list dd a,
.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.beta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
}
.beta h2,
.panel h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 26px);
}
.beta .btn {
  margin-top: 20px;
}
.beta p {
  margin: 0;
  color: var(--ink);
}
.beta p + p {
  margin-top: 6px;
}
.contact-list {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0 20px;
  align-items: center;
  margin: 0;
}
.contact-list dt {
  color: var(--muted);
}
.contact-list dd:not(:has(a)) {
  padding: 10px 0;
}
.contact-list dd {
  margin: 0;
}

/* ---------- Gizlilik sayfası ve eski sınıflar ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding: 16px 0;
}
.grid article,
.contact,
.policy {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.policy {
  max-width: 820px;
  margin: 24px auto 40px;
  padding: clamp(20px, 4vw, 40px);
}
.policy h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 5vw, 34px);
}
.policy h2 {
  margin: 28px 0 8px;
  font-size: 19px;
}
.policy p,
.policy li {
  color: var(--ink);
}
.policy ul {
  padding-left: 22px;
}
.policy li + li {
  margin-top: 6px;
}
.policy .meta {
  margin-top: 0;
  color: var(--muted);
}
.draft {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--ink);
}

/* ---------- Alt bilgi ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.foot {
  align-items: center;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}

/* ---------- Dar ekranlar ---------- */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding: 32px 0 48px;
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps li:last-child {
    grid-column: 1 / -1;
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .two,
  .facts,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 4px 12px;
    padding: 16px;
  }
  .steps li::before {
    grid-row: span 2;
    margin: 0;
  }
  .steps h3 {
    margin: 4px 0 0;
  }
  .beta {
    padding: 22px;
  }
  .section {
    padding: 44px 0;
  }
  .panel {
    padding: 20px;
  }
  .contact-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .contact-list dd + dt {
    margin-top: 6px;
  }
  .contact-list dd:not(:has(a)) {
    padding: 0;
  }
}
@media (max-width: 420px) {
  .brand {
    font-size: 16px;
  }
  .mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 18px;
  }
  .lead {
    font-size: 17px;
  }
  .actions .btn {
    flex: 1 1 100%;
  }
  .preview {
    padding: 12px;
  }
  .card {
    padding: 14px;
  }
  .bars li {
    grid-template-columns: minmax(0, 8.2em) minmax(0, 1fr) 2.2em;
    gap: 8px;
    font-size: 13px;
  }
  .bars .name {
    white-space: normal;
    line-height: 1.25;
  }
}
@media (max-width: 480px) {
  .trend {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
}

/* Örnek çubuk genişlikleri sınıfla (CSP: satır içi stil yok). */
.fill.w100 { width: 100%; }
.fill.w77 { width: 77%; }
.fill.w58 { width: 58%; }
.fill.w48 { width: 48%; }
.fill.w29 { width: 29%; }
