/* VisitPlaner — statik site.
   Renkler uygulamanın Material 3 paletinden (lib/theme/app_theme.dart):
   primary #00355F, primaryContainer #0F4C81, secondary #AC3509 / #FE6F42. */

:root {
  --primary: #00355f;
  --primary-2: #0f4c81;
  --primary-soft: #d2e4ff;
  --accent: #fe6f42;
  --accent-deep: #ac3509;
  --ink: #0f1c2b;
  --ink-soft: #4a5868;
  --bg: #f6f9fc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --radius: 20px;
  --shadow: 0 4px 20px rgba(15, 76, 129, 0.08);
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e8eef5;
    --ink-soft: #a9b6c4;
    --bg: #0b1520;
    --surface: #121f2d;
    --border: #223243;
    --primary-soft: #16314d;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-2); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) a { color: #a0c9ff; }
}

img, video { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

/* ── Üst çubuk ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 20px; }
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--ink); }
@media (max-width: 560px) {
  .nav a.hide-sm { display: none; }
}

/* ── Hero ── */
.hero {
  padding: 64px 0 48px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero .stores { justify-content: center; }
}
.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-2);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .eyebrow { color: #a0c9ff; }
}
h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 16px 0;
}
h1 .accent { color: var(--accent); }
.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 34em;
}
@media (max-width: 860px) { .lead { margin: 0 auto; } }

/* Mağaza düğmeleri. Resmî rozetler (App Store / Google Play) indirilip
   assets/img altına konursa bunların yerine <img> kullanılabilir. */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  min-height: 52px;
  border-radius: 12px;
  background: #000;
  color: #fff !important;
  text-decoration: none;
  border: 1px solid #333;
  transition: transform 0.15s ease;
}
.store-btn:hover { transform: translateY(-2px); }
.store-btn svg { width: 24px; height: 24px; flex: none; }
.store-btn small { display: block; font-size: 0.7rem; opacity: 0.85; line-height: 1.1; }
.store-btn strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.store-btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

/* ── Telefon çerçevesi + tanıtım videosu ── */
.phone {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 9 / 19.5;
  margin: 0 auto;
  border-radius: 44px;
  padding: 12px;
  background: #0b1520;
  box-shadow: 0 30px 60px rgba(0, 53, 95, 0.25), inset 0 0 0 2px #2a3a4b;
}
.phone .screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--primary-2), var(--primary));
}
/* Ekran galerisi — resimler üst üste, etkin olan görünür. */
.phone .screen > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.phone .screen > img.active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .phone .screen > img { transition: none; }
}
/* Telefonun iki yanındaki önceki/sonraki düğmeleri. */
.gallery-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.gallery-stage .phone {
  margin: 0;
  /* Dar ekranda iki düğmeye (2 × 42px + boşluklar) yer kalsın. */
  width: min(300px, calc(100vw - 32px - 112px));
}
.gallery-nav {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary-2);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.gallery-nav:hover { background: var(--primary-soft); }
.gallery-nav:active { transform: scale(0.94); }
.gallery-nav:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.gallery-nav svg { width: 20px; height: 20px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .gallery-nav { color: #a0c9ff; }
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.gallery-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--border);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}
.gallery-dots button[aria-current="true"] {
  width: 24px;
  background: var(--primary-2);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .gallery-dots button[aria-current="true"] { background: #a0c9ff; }
}

/* ── Bölümler ── */
section { padding: 56px 0; }
.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.section-sub {
  text-align: center;
  color: var(--ink-soft);
  max-width: 40em;
  margin: 0 auto 36px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary-2);
  margin-bottom: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .feature .icon { color: #a0c9ff; }
}
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--ink-soft); }

/* Yatay tanıtım videosu. */
.promo-video {
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #000;
  aspect-ratio: 16 / 9;
}
.promo-video video { display: block; width: 100%; height: 100%; }

/* Ekran görüntüleri — yatay kaydırılan şerit. */
.shots {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 20px;
}
.shots figure {
  flex: 0 0 auto;
  width: 220px;
  margin: 0;
  scroll-snap-align: center;
}
.shots img {
  width: 100%;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.shots figcaption {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 8px;
}

.cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  border-radius: 28px;
  padding: 48px 24px;
  text-align: center;
}
.cta h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
.cta p { margin: 0 auto; opacity: 0.85; max-width: 32em; }
.cta .stores { justify-content: center; }

/* ── Metin sayfaları (gizlilik, destek) ── */
.doc { padding: 48px 0 64px; }
.doc .container { max-width: 780px; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.doc h2 { margin-top: 36px; font-size: 1.35rem; }
.doc h3 { margin-top: 24px; font-size: 1.1rem; }
.doc p, .doc li { color: var(--ink-soft); }
.doc strong { color: var(--ink); }
.doc .meta { color: var(--ink-soft); font-size: 0.95rem; }
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.95rem;
}
.doc th, .doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.doc th { color: var(--ink); }
.doc td { color: var(--ink-soft); }
.table-wrap { overflow-x: auto; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin: 24px 0;
}
.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
}

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 10px 0;
}
details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}
details p { margin: 10px 0 0; }

/* ── Alt bilgi ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
