/* Kestirme — kestirme.app
   Yerleşim: Things/Flighty sadeliği (bol boşluk, büyük telefon görselleri, kısa başlıklar)
   + oyunun kendi dili (mint zemin, sarı/mercan, kalın lacivert kontur, Baloo 2 + Nunito). */

:root {
  --bg: #F7FBF8;          /* sayfa: mint'e çalan beyaz */
  --mint: #DCEFE3;        /* oyunun zemini */
  --surface: #FFFFFF;
  --ink: #1F2A44;         /* lacivert kontur + metin */
  --ink-2: #3A4660;       /* ikincil metin */
  --muted: #6B7790;
  --line: #1F2A44;
  --hair: #D5E3DA;
  --sun: #FFC93C;         /* sarı */
  --coral: #FF5A4E;       /* mercan: çizilen yol */
  --teal: #12A39A;        /* 3 yıldız */
  --block-a: #FFE7B8;
  --block-b: #D7ECFF;
  --block-c: #FFD6CF;
  --street: #FFFFFF;
  --park: #A8DDB5;
  --shadow: #1F2A44;

  --f-display: "Baloo 2", "Arial Rounded MT Bold", ui-rounded, system-ui, sans-serif;
  --f-body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --step-4: clamp(2.75rem, 1.6rem + 5vw, 5.5rem);

  --radius: 24px;
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1526; --mint: #13203A; --surface: #18233D; --ink: #EEF4F0; --ink-2: #C3CDDC;
    --muted: #8E9AB2; --line: #EEF4F0; --hair: #26324F; --sun: #FFC93C; --coral: #FF6A5F;
    --teal: #2BC2B8; --block-a: #3A3424; --block-b: #1F3350; --block-c: #3D2730; --street: #22304E; --park: #1F4A38;
    --shadow: #05090F; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1526; --mint: #13203A; --surface: #18233D; --ink: #EEF4F0; --ink-2: #C3CDDC;
  --muted: #8E9AB2; --line: #EEF4F0; --hair: #26324F; --sun: #FFC93C; --coral: #FF6A5F;
  --teal: #2BC2B8; --block-a: #3A3424; --block-b: #1F3350; --block-c: #3D2730; --street: #22304E; --park: #1F4A38;
  --shadow: #05090F; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before { /* telefon çentiği bandı */
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 800; line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-body); font-weight: 800; font-size: var(--step-0);
  text-decoration: none; white-space: nowrap;
  padding: 14px 24px; border-radius: 999px; border: 3px solid var(--line);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 5px 0 var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--shadow); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: transparent; padding-inline: 8px; }
.btn-ghost:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn-sm { padding: 8px 16px; font-size: var(--step--1); box-shadow: 0 3px 0 var(--shadow); }
.btn-sm:hover { box-shadow: 0 4px 0 var(--shadow); }

/* ---------- Üst bar ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--hair); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand span { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; line-height: 1; padding-top: 4px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 700; color: var(--ink-2); font-size: var(--step--1); }
.nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center; gap: 48px; padding-block: 72px 96px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--step--1); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
}
.pill {
  display: inline-block; background: var(--sun); color: #1F2A44; border: 2px solid var(--line);
  border-radius: 999px; padding: 1px 10px; letter-spacing: .04em;
}
.hero h1 { font-size: var(--step-4); margin-top: 18px; }
.hero h1 .route-word { position: relative; white-space: nowrap; }
.hero h1 .route-word svg { position: absolute; left: -2%; bottom: -0.04em; width: 100%; height: .3em; overflow: visible; }
.hero h1 .route-word path { fill: none; stroke: var(--coral); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.lede { font-size: var(--step-1); color: var(--ink-2); max-width: 30ch; margin-top: 30px; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 34px; }
.fineprint { margin-top: 18px; font-size: var(--step--1); color: var(--muted); font-weight: 700; }

.hero-visual { position: relative; display: flex; justify-content: center; min-height: 520px; }
.hero-visual .map-bg {
  position: absolute; inset: -10% -30% -10% -10%; width: 140%; height: 120%; z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 55%, transparent 100%);
}
.hero-visual .phone { position: relative; z-index: 2; }
.hero-visual .phone.back { position: absolute; z-index: 1; transform: translate(42%, 9%) rotate(6deg) scale(.86); opacity: .98; }

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 40px 64px; gap: 40px; }
  .lede { max-width: 36ch; }
  .hero-visual { min-height: 0; }
  .hero-visual .phone.back { transform: translate(34%, 7%) rotate(6deg) scale(.82); }
}

/* Telefon çerçevesi */
.phone {
  width: min(300px, 70vw); aspect-ratio: 390 / 844; max-width: 100%;
  border: 4px solid #1F2A44; border-radius: 46px; padding: 8px; background: #1F2A44;
  box-shadow: 0 10px 0 var(--shadow), 0 30px 60px -20px rgba(14, 21, 38, .45);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; background: #DCEFE3; }
.phone.small { width: min(260px, 64vw); }

/* Harita arka planı (hero) */
.map-bg .blk { stroke: var(--line); stroke-width: 3; }
.map-bg .a { fill: var(--block-a); } .map-bg .b { fill: var(--block-b); } .map-bg .c { fill: var(--block-c); }
.map-bg .park { fill: var(--park); stroke: var(--line); stroke-width: 3; }
.map-bg .ground { fill: var(--mint); }
.map-bg .route { fill: none; stroke: var(--coral); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.map-bg .dot { fill: var(--line); }

/* Çizim animasyonu: son hali varsayılan, JS varsa baştan çizer */
.js .draw { stroke-dasharray: var(--len, 1200); stroke-dashoffset: 0; animation: draw 1.6s cubic-bezier(.6,.05,.3,1) .3s both; }
@keyframes draw { from { stroke-dashoffset: var(--len, 1200); } to { stroke-dashoffset: 0; } }

/* ---------- Bölümler ---------- */
section { scroll-margin-top: 80px; }
.section { padding-block: 96px; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: var(--step-3); }
.section-head p { margin-top: 16px; font-size: var(--step-1); color: var(--ink-2); line-height: 1.5; }
.band { background: var(--mint); }

/* Nasıl oynanır: gerçek bir sıra */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step {
  background: var(--surface); border: 3px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 6px 0 var(--shadow); padding: 28px 26px 30px; min-width: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.step-num {
  counter-increment: step; width: 44px; height: 44px; border-radius: 14px; border: 3px solid var(--line);
  display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; color: #1F2A44;
}
.step-num::before { content: counter(step); padding-top: 3px; }
.step:nth-child(1) .step-num { background: var(--sun); }
.step:nth-child(2) .step-num { background: var(--coral); color: #fff; }
.step:nth-child(3) .step-num { background: var(--teal); color: #fff; }
.step h3 { font-size: var(--step-2); }
.step p { color: var(--ink-2); }
.score-rule { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.score-rule span {
  font-size: var(--step--1); font-weight: 800; border: 2px solid var(--line); border-radius: 999px; padding: 2px 10px;
  font-variant-numeric: tabular-nums; color: #1F2A44;
}
.score-rule .s3 { background: #BFEAE6; } .score-rule .s2 { background: #FFE7B8; } .score-rule .s1 { background: #FFD6CF; }
@media (max-width: 880px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Özellik satırları (Things tarzı, dönüşümlü) */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 64px; }
.feature + .feature { margin-top: 120px; }
.feature.flip .feature-media { order: 2; }
.feature-media { display: flex; justify-content: center; position: relative; }
.feature-media::before {
  content: ""; position: absolute; width: min(420px, 90%); aspect-ratio: 1; border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 0; background: var(--tint, var(--block-a));
}
.feature-media .phone { position: relative; z-index: 1; }
.feature-copy { min-width: 0; max-width: 34rem; }
.feature-copy .kicker { font-size: var(--step--1); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--coral); }
.feature-copy h3 { font-size: var(--step-3); margin-top: 10px; }
.feature-copy p { margin-top: 18px; font-size: var(--step-1); color: var(--ink-2); line-height: 1.55; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; list-style: none; padding: 0; }
.chips li { background: var(--surface); border: 2px solid var(--hair); border-radius: 999px; padding: 4px 12px; font-size: var(--step--1); font-weight: 700; color: var(--ink-2); }
.chips li b { color: var(--ink); }
@media (max-width: 880px) {
  .feature { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .feature.flip .feature-media { order: 0; }
  .feature + .feature { margin-top: 88px; }
}

/* Küçük özellik ızgarası */
.grid6 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.mini { min-width: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; }
.mini .ic { width: 44px; height: 44px; border-radius: 14px; border: 3px solid var(--line); display: grid; place-items: center; background: var(--surface); }
.mini .ic svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mini h3 { font-size: var(--step-1); line-height: 1.2; padding-top: 2px; }
.mini p { color: var(--ink-2); margin-top: 6px; font-size: var(--step-0); }
@media (max-width: 880px) { .grid6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid6 { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* Kapanış çağrısı */
.cta-card {
  background: var(--sun); color: #1F2A44; border: 3px solid var(--line); border-radius: 32px; box-shadow: 0 8px 0 var(--shadow);
  padding: 56px 40px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px;
}
.cta-card h2 { font-size: var(--step-3); }
.cta-card p { margin-top: 12px; font-size: var(--step-1); color: #3A4660; max-width: 40ch; }
.cta-card .btn-primary { box-shadow: 0 5px 0 #1F2A44; border-color: #1F2A44; }
@media (max-width: 720px) { .cta-card { grid-template-columns: minmax(0, 1fr); padding: 40px 24px; } }

/* ---------- Alt bilgi ---------- */
.site-footer { border-top: 1px solid var(--hair); padding-block: 40px 56px; margin-top: 96px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px 48px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 0; padding: 0; font-weight: 700; font-size: var(--step--1); }
.foot-links a { text-decoration: none; color: var(--ink-2); }
.foot-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.foot-meta { font-size: var(--step--1); color: var(--muted); margin-top: 10px; }
.foot-meta a { color: var(--muted); }

/* ---------- Metin sayfaları (gizlilik, destek) ---------- */
.doc { max-width: 720px; margin-inline: auto; padding-block: 64px 32px; }
.doc h1 { font-size: var(--step-3); }
.doc .updated { margin-top: 12px; color: var(--muted); font-size: var(--step--1); font-weight: 700; }
.doc .intro { margin-top: 24px; font-size: var(--step-1); color: var(--ink-2); line-height: 1.55; }
.doc h2 { font-size: var(--step-2); margin-top: 48px; }
.doc p, .doc ul { margin-top: 14px; color: var(--ink-2); }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--ink); }
.doc a { text-underline-offset: 3px; }
.summary {
  margin-top: 32px; background: var(--mint); border: 3px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; display: grid; gap: 10px;
}
.summary div { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; }
.summary svg { width: 22px; height: 22px; stroke: var(--teal); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; margin-top: 3px; }
.summary span { color: var(--ink); font-weight: 700; }

details.faq { border-bottom: 1px solid var(--hair); }
details.faq:first-of-type { border-top: 1px solid var(--hair); margin-top: 24px; }
details.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--f-display); font-weight: 800; font-size: var(--step-1); line-height: 1.25;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; line-height: 1; color: var(--coral); transition: transform .2s ease;
}
details.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details.faq .a { padding: 0 0 22px; color: var(--ink-2); }
details.faq .a p + p { margin-top: 10px; }

.contact-card {
  margin-top: 56px; background: var(--surface); border: 3px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 6px 0 var(--shadow); padding: 28px; display: grid; gap: 12px;
}
.contact-card h2 { margin-top: 0; }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mail-row code { font-family: var(--f-body); font-weight: 800; font-size: var(--step-1); user-select: all; word-break: break-all; }
.copy-btn {
  font: inherit; font-size: var(--step--1); font-weight: 800; cursor: pointer; color: var(--ink);
  background: var(--mint); border: 2px solid var(--line); border-radius: 999px; padding: 4px 12px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .draw { animation: none; }
  .btn { transition: none; }
}

/* ---------- 404 ---------- */
.nf { max-width: 640px; margin-inline: auto; padding-block: 72px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.nf-map { width: min(420px, 100%); height: auto; margin-bottom: 36px; }
.nf-map .ground { fill: var(--mint); stroke: var(--line); stroke-width: 3; }
.nf-map .blk { stroke: var(--line); stroke-width: 3; }
.nf-map .a { fill: var(--block-a); } .nf-map .b { fill: var(--block-b); } .nf-map .c { fill: var(--block-c); }
.nf-map .park { fill: var(--park); stroke: var(--line); stroke-width: 3; }
.nf-map .route { fill: none; stroke: var(--coral); stroke-width: 8; stroke-linecap: round; }
.nf-map .dot { fill: var(--line); }
.nf-map .wall { stroke: var(--line); stroke-width: 8; stroke-linecap: round; }
.nf h1 { font-size: var(--step-4); }
.nf .lede { margin-inline: auto; max-width: 34ch; }
.nf .hero-actions { justify-content: center; }
