/* ==========================================================================
   Bunny Sim — site stilleri
   Renkler oyunun paletinden (src/art/palette.ts) alındı; site ile oyun
   yan yana geldiğinde aynı dünyaya ait görünsün diye.
   ========================================================================== */

:root {
  --grass-deep: #2f5626;
  --grass-dark: #3d6b2c;
  --grass: #4d8434;
  --grass-lite: #66a244;
  --grass-high: #84bd57;
  --carrot: #e07b2c;
  --carrot-dark: #b5501c;
  --carrot-lite: #f2a44b;
  --water: #287c99;
  --water-lite: #62bdd0;
  --heart: #f2789b;
  --ink: #2b2118;

  --bg: #f7f2e6;
  --bg-alt: #efe7d5;
  --card: #fffdf7;
  --text: #2b2118;
  --text-dim: #6d6152;
  --line: #ded2b8;
  --shadow: rgba(43, 33, 24, 0.16);

  --radius: 18px;
  --pad: clamp(20px, 5vw, 44px);
  --maxw: 1120px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14140f;
    --bg-alt: #1b1b14;
    --card: #1f1f17;
    --text: #ece6d6;
    --text-dim: #9d9583;
    --line: #33332a;
    --shadow: rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, canvas { max-width: 100%; }
canvas { image-rendering: pixelated; display: block; }

a { color: inherit; }

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
  font-weight: 800;
}

h1 { font-size: clamp(2.1rem, 5.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.center { text-align: center; }
.dim { color: var(--text-dim); }
.small { font-size: 0.9rem; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--carrot);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 12px 0;
  z-index: 100;
}
.skip:focus { left: 0; }

/* ------------------------------------------------------------------ topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid var(--line);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  font-size: 1.05rem;
}
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 2px 0 var(--shadow); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  text-decoration: none;
  color: var(--text-dim);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
}
.nav a:hover, .nav a:focus-visible { color: var(--text); background: var(--bg-alt); }
.nav a[aria-current="page"] { color: var(--text); }

@media (max-width: 720px) {
  .nav a { padding: 6px 9px; font-size: 0.86rem; }
  .topbar .wrap { min-height: 58px; gap: 8px; }
}

/* -------------------------------------------------------------- butonlar */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--carrot);
  color: #fff5e8;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); background: var(--carrot-lite); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: 0 4px 0 var(--line); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg-alt); box-shadow: 0 6px 0 var(--line); }
.btn[aria-disabled="true"] { opacity: 0.75; cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; box-shadow: 0 4px 0 var(--ink); background: var(--carrot); }

/* ------------------------------------------------------------------- hero */

.hero { padding: clamp(36px, 7vw, 76px) 0 0; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grass-lite); }

.lede { font-size: clamp(1.02rem, 2vw, 1.18rem); color: var(--text-dim); max-width: 52ch; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 14px; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.hero-facts li {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  font-weight: 600;
}

/* ------------------------------------------------------- telefon maketi */

.hero-art { display: flex; justify-content: center; }

.phone {
  position: relative;
  width: min(300px, 78vw);
  border-radius: 34px;
  border: 3px solid var(--ink);
  background: #14140f;
  padding: 12px 10px 10px;
  box-shadow: 0 18px 0 -6px var(--shadow), 0 26px 50px -20px rgba(0, 0, 0, 0.7);
}
.phone::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 62px;
  height: 5px;
  border-radius: 999px;
  background: #33332a;
}
.phone-screen {
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 16;
  cursor: crosshair;
}
.phone-screen canvas { width: 100%; height: 100%; }
.phone-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 4px 2px;
  color: #8d8874;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.phone-bar .pill {
  border: 1px solid #33332a;
  border-radius: 7px;
  padding: 3px 8px;
  color: #d8d4c4;
}
.phone-hint {
  margin: 14px auto 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  max-width: 30ch;
}

/* ------------------------------------------------------- kovalamaca şeridi */

.strip {
  margin-top: clamp(34px, 6vw, 60px);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--grass-deep);
  overflow: hidden;
}
.strip canvas { width: 100%; height: clamp(96px, 14vw, 150px); }

/* --------------------------------------------------------------- bölümler */

section { padding: clamp(44px, 8vw, 84px) 0; }
section.tight { padding-top: clamp(28px, 4vw, 46px); }
.section-head { max-width: 62ch; margin-bottom: clamp(24px, 4vw, 40px); }
.section-head.center { margin-left: auto; margin-right: auto; }

.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ------------------------------------------------------------------ kartlar */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 4px 0 var(--line);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--line); border-color: var(--grass-lite); }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  margin-bottom: 14px;
}
.card .icon canvas { width: 30px; height: auto; }

/* ------------------------------------------------------------------ adımlar */

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 18px 20px 18px 66px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 16px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grass);
  color: #f4efe0;
  font-weight: 800;
  border: 2px solid var(--ink);
}
.steps li strong { display: block; }

/* --------------------------------------------------------------- fact tablo */

.facts { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 2px solid var(--line); }
.facts th, .facts td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 38%; font-weight: 700; color: var(--text-dim); font-size: 0.92rem; }
.table-scroll { overflow-x: auto; }

/* ------------------------------------------------------------------- SSS */

.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 20px;
}
.faq details[open] { border-color: var(--grass-lite); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--carrot);
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 800;
}
.faq details[open] summary::after { content: "–"; }
.faq details > *:not(summary) { margin-bottom: 16px; color: var(--text-dim); }

/* ------------------------------------------------------------------- legal */

.legal { padding-top: clamp(30px, 5vw, 52px); }
.legal-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(22px, 4vw, 48px); align-items: start; }
@media (max-width: 860px) { .legal-grid { grid-template-columns: 1fr; } }

.toc {
  position: sticky;
  top: 84px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 0.9rem;
}
@media (max-width: 860px) { .toc { position: static; } }
.toc h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 7px; }
.toc a { color: var(--text-dim); text-decoration: none; }
.toc a:hover { color: var(--carrot); }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 2em; font-size: 1.35rem; scroll-margin-top: 90px; }
.prose h2:first-of-type { margin-top: 1em; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 0.5em; }
.prose a { color: var(--carrot-dark); }
@media (prefers-color-scheme: dark) { .prose a { color: var(--carrot-lite); } }

.notice {
  background: var(--bg-alt);
  border: 2px solid var(--line);
  border-left: 6px solid var(--grass-lite);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 22px 0;
}
.notice p:last-child { margin-bottom: 0; }

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

/* ------------------------------------------------------------------ footer */

footer {
  background: #14140f;
  color: #cfc9b8;
  border-top: 3px solid var(--ink);
  padding: clamp(36px, 6vw, 60px) 0 30px;
}
footer a { color: #cfc9b8; text-decoration: none; }
footer a:hover { color: var(--carrot-lite); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; }
.footer-grid h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.09em; color: #8d8874; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.94rem; }
.footer-bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid #2e2e25;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #8d8874;
}

/* ---------------------------------------------------------------- 404 sayfa */

.oops { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.oops canvas { width: 180px; height: auto; margin: 0 auto 20px; }

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