/* Yol Maliyetim — uygulamayla aynı koyu/turuncu paletin web karşılığı.
   Tek dosya, dış bağımlılık yok: sayfalar Firebase Hosting'de statik durur. */

:root {
  --bg: #0d0d0f;
  --surface: #1c1c1f;
  --surface-2: #2b2b2e;
  --accent: #e17019;
  --accent-deep: #78330d;
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.58);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 22px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

/* Üst çubuk */
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(13, 13, 15, 0.9);
  backdrop-filter: saturate(140%) blur(12px);
  z-index: 10;
}

.topbar .mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(160deg, var(--accent), var(--accent-deep));
  display: grid;
  place-items: center;
  font-size: 18px;
  flex: none;
}

.topbar strong { font-size: 16px; letter-spacing: 0.2px; }

.topbar nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
  font-size: 14px;
  flex-wrap: wrap;
}

.topbar nav a { color: var(--text-dim); }
.topbar nav a[aria-current="page"] { color: var(--text); }

/* Kahraman alan */
.hero {
  background: linear-gradient(165deg, var(--accent) 0%, #c85b12 55%, var(--accent-deep) 100%);
  border-radius: 30px;
  padding: 40px 28px;
  margin-bottom: 28px;
}

.hero h1 { margin: 0 0 10px; font-size: clamp(28px, 6vw, 40px); line-height: 1.15; }
.hero p { margin: 0; font-size: 17px; color: rgba(255, 255, 255, 0.9); max-width: 44ch; }

/* Metin */
h1 { font-size: clamp(26px, 5vw, 34px); line-height: 1.2; }
h2 { font-size: 20px; margin: 34px 0 10px; }
h3 { font-size: 17px; margin: 22px 0 6px; }

.lede { color: var(--text-dim); font-size: 17px; }
.meta { color: var(--text-dim); font-size: 14px; margin-top: -8px; }

ul, ol { padding-left: 22px; }
li { margin: 6px 0; }

/* Kartlar */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 16px 0;
}

.card h2, .card h3 { margin-top: 0; }

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin: 20px 0;
}

.grid .card { margin: 0; }
.grid .card p { margin: 6px 0 0; color: var(--text-dim); font-size: 15px; }
.grid .card .ico { font-size: 22px; }

/* Tablo */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 15px;
  display: block;
  overflow-x: auto;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th { color: var(--text-dim); font-weight: 600; }

/* Vurgu kutusu */
.note {
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
  border-radius: 0 14px 14px 0;
  padding: 14px 18px;
  margin: 18px 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}

/* Adım listesi */
.steps { counter-reset: step; list-style: none; padding: 0; }

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin: 14px 0;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}

/* Butonlar */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border-radius: 14px;
  padding: 12px 20px;
  font-weight: 600;
  margin: 6px 8px 0 0;
}

.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.ghost { background: var(--surface-2); }

/* Alt bilgi */
footer {
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 14px;
  padding: 24px 20px 40px;
  text-align: center;
}

footer nav { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
footer a { color: var(--text-dim); }
