/* hepbalik.com yasal sayfalar + indir — web uygulamasıyla aynı dil:
   açık zemin, deniz #0A7EA4, mercan #EF6A47, güneş #F4B12A, Urbanist. */

@font-face {
  font-family: 'HB Urbanist';
  src: url('/fonts/Urbanist-Variable.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f3f6f8;
  --surface: #ffffff;
  --surface-2: #eef3f6;
  --hover: #e4ecf1;
  --line: #dfe7ec;
  --ink: #0f2430;
  --body: #34495a;
  --muted: #6a7d8b;
  --sea: #0a7ea4;
  --sea-deep: #07607e;
  --tint: #e2f2f8;
  --coral: #ef6a47;
  --coral-tint: #fdeae4;
  --coral-ink: #c4472a;
  --amber: #f4b12a;
  --amber-tint: #fdf2d8;
  --amber-ink: #8a5a00;
  --shadow: 0 1px 2px rgba(15, 42, 56, 0.06), 0 6px 18px -10px rgba(15, 42, 56, 0.18);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --top: 60px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 16px/1.65 'HB Urbanist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sea-deep); }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(10, 126, 164, 0.18); }

/* Üst bar (web uygulamasıyla aynı) */
.top {
  position: sticky; top: 0; z-index: 20; height: var(--top);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 20px; background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { display: block; height: 28px; width: auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px;
  border-radius: 10px; font-weight: 700; text-decoration: none; white-space: nowrap;
  background: var(--sea); color: #fff; transition: background 0.2s, transform 0.25s var(--spring);
}
.btn:hover { background: var(--sea-deep); color: #fff; }
.btn:active { transform: scale(0.95); }
.btn.ghost { background: var(--surface-2); color: var(--ink); }
.btn.ghost:hover { background: var(--hover); color: var(--ink); }

/* Yerleşim: solda belge listesi, sağda metin */
.shell {
  display: grid; grid-template-columns: 250px minmax(0, 760px); gap: 32px; justify-content: center;
  max-width: 1100px; margin: 0 auto; padding: 32px 20px 64px;
}
.side { position: sticky; top: calc(var(--top) + 24px); align-self: start; }
.side h4 { margin: 0 10px 8px; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.side nav { display: grid; gap: 2px; }
.side nav a {
  display: block; padding: 9px 12px; border-radius: 10px; color: var(--body);
  font-weight: 600; text-decoration: none; transition: background 0.2s, color 0.2s;
}
.side nav a:hover { background: var(--surface-2); color: var(--ink); }
.side nav a[aria-current='page'] { background: var(--tint); color: var(--sea-deep); font-weight: 700; }
.side .contact { margin: 18px 10px 0; font-size: 14px; color: var(--muted); }

.doc {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); padding: 36px 40px 44px; min-width: 0;
  animation: land 0.6s var(--spring) both;
}
.doc h1 { margin: 0; font-size: clamp(26px, 4vw, 34px); line-height: 1.2; color: var(--ink); letter-spacing: -0.02em; }
.doc .meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 24px; }
.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--surface-2); color: var(--body); }
.chip.sea { background: var(--tint); color: var(--sea-deep); }
.chip.amber { background: var(--amber-tint); color: var(--amber-ink); }
.doc .lead { font-size: 17px; color: var(--body); margin: 0 0 8px; }
.doc h2 { margin: 36px 0 10px; font-size: 21px; color: var(--ink); letter-spacing: -0.01em; }
.doc h3 { margin: 20px 0 6px; font-size: 17px; color: var(--ink); }
.doc p, .doc li { color: var(--body); }
.doc strong { color: var(--ink); }
.doc ul, .doc ol { padding-left: 22px; margin: 10px 0; }
.doc li { margin: 4px 0; }
.doc li::marker { color: var(--sea); }

.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 18px 0 8px; }
.summary div { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); }
.summary b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.summary span { font-size: 14px; color: var(--body); }
.summary div:nth-child(3n+1) { box-shadow: inset 3px 0 0 var(--sea); }
.summary div:nth-child(3n+2) { box-shadow: inset 3px 0 0 var(--coral); }
.summary div:nth-child(3n+3) { box-shadow: inset 3px 0 0 var(--amber); }

.box { margin: 18px 0; padding: 16px 20px; border-radius: 14px; background: var(--tint); }
.box p:first-child { margin-top: 0; }
.box p:last-child { margin-bottom: 0; }
.box.warn { background: var(--coral-tint); }
.box.warn strong { color: var(--coral-ink); }

.table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; min-width: 580px; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
td:first-child { color: var(--ink); font-weight: 600; }

.steps { counter-reset: s; list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.steps li { counter-increment: s; position: relative; min-height: 32px; padding: 4px 0 0 44px; margin: 0; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--sea); color: #fff; font-weight: 800; font-size: 15px;
}

/* Alt bilgi */
.foot { border-top: 1px solid var(--line); background: var(--surface); }
.foot .in { max-width: 1100px; margin: 0 auto; padding: 22px 20px 28px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--sea); text-decoration: underline; }

/* İndir sayfası */
.hero { max-width: 760px; margin: 0 auto; padding: 56px 20px 24px; text-align: center; }
.hero img { width: 84px; height: 84px; border-radius: 22px; box-shadow: var(--shadow); animation: land 0.6s var(--spring) both; }
.hero h1 { margin: 18px 0 8px; font-size: clamp(30px, 5vw, 42px); color: var(--ink); letter-spacing: -0.03em; line-height: 1.15; }
.hero p { margin: 0 auto; max-width: 520px; font-size: 18px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 28px 0 8px; }
.store {
  display: grid; gap: 2px; min-width: 200px; padding: 12px 22px; border-radius: 14px; text-align: left; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform 0.3s var(--spring), border-color 0.2s;
}
a.store:hover { transform: translateY(-3px); border-color: var(--sea); }
.store small { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.store b { font-size: 18px; color: var(--ink); }
.store.primary { background: var(--sea); border-color: var(--sea); }
.store.primary small { color: rgba(255, 255, 255, 0.8); }
.store.primary b { color: #fff; }
.store.soon { opacity: 0.7; }
.install { max-width: 560px; margin: 24px auto 64px; padding: 0 20px; }
.install .doc { padding: 26px 28px; }

@keyframes land { from { opacity: 0; transform: translateY(14px) scale(0.985); } }

@media (max-width: 880px) {
  .shell { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 16px; }
  .side { position: static; }
  .side h4, .side .contact { display: none; }
  .side nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .side nav::-webkit-scrollbar { display: none; }
  .side nav a { white-space: nowrap; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 14px; }
  .doc { padding: 24px 20px 30px; border-radius: 16px; }
}
@media (max-width: 480px) {
  .top { padding: 0 16px; }
  .top .btn { padding: 0 12px; }
  .shell { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
