:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --text: #1d2430;
  --muted: #586274;
  --line: #e3ded5;
  --brand: #1f3a5f;
  --accent: #c8902e;
  --radius: 18px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11161e;
    --surface: #19202b;
    --text: #eef1f5;
    --muted: #a9b3c2;
    --line: #2a3340;
    --brand: #9cc0ea;
    --accent: #e3b35f;
  }
}
* { box-sizing: border-box; }
body, .card { --c: var(--app, var(--brand)); }
@media (prefers-color-scheme: dark) { body, .card { --c: var(--app-dark, var(--app, var(--brand))); } }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
}
a { color: var(--brand); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
img { max-width: 100%; height: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 10px 14px; z-index: 10; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }

.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.logo { font-weight: 800; font-size: 1.25rem; letter-spacing: .01em; color: var(--text); text-decoration: none; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--bg); }

.hero { padding: 64px 0 40px; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.15; margin: 0 0 14px; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 40rem; margin: 0; }

.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; padding: 12px 0 64px; }
.card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; border-top: 6px solid var(--c);
}
.card header { display: flex; align-items: center; gap: 14px; }
.card img.icon { width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0; }
.card h2 { margin: 0; font-size: 1.4rem; line-height: 1.2; }
.card .kind { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }
.card p { margin: 0; }
.card .actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; padding-top: 6px; }

.badge { display: inline-block; font-size: .85rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.badge.live { color: #1c6b3a; border-color: #9ed3b0; background: #eaf7ef; }
@media (prefers-color-scheme: dark) { .badge.live { color: #9fe0b5; background: #17321f; border-color: #2f6a43; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px;
  border-radius: 12px; font-weight: 700; text-decoration: none; border: 2px solid var(--c);
  color: var(--c); background: transparent;
}
.btn.primary { background: var(--c); color: #fff; }
@media (prefers-color-scheme: dark) { .btn.primary { color: #10151c; } }

.page-hero { padding: 48px 0 24px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center; }
.page-hero .title { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.page-hero .title img { width: 72px; height: 72px; border-radius: 18px; }
.page-hero h1 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.15; }
.page-hero .lede { font-size: 1.15rem; color: var(--muted); margin: 0 0 20px; }
.page-hero .shot { border-radius: 22px; border: 1px solid var(--line); max-height: 520px; justify-self: center; }
@media (max-width: 760px) { .page-hero { grid-template-columns: 1fr; } }

.section { padding: 28px 0; }
.section h2 { font-size: 1.5rem; margin: 0 0 14px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.features li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.features strong { display: block; margin-bottom: 4px; }
.note { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 12px; padding: 14px 18px; }
.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.links a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0 40px; color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: grid; gap: 10px; }
.site-footer nav { display: flex; gap: 4px 16px; flex-wrap: wrap; }
.site-footer nav a { display: inline-flex; min-height: 44px; align-items: center; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.logo img { display: block; width: 34px; height: auto; }
.logo .logo-text { color: var(--text); }
.logo .logo-text span { color: var(--accent); }

/* Platform rozetleri: Android (Google Play) ve iOS durumu. */
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.platforms .badge { display: inline-flex; align-items: center; gap: 6px; }
.platforms .note-inline { color: var(--muted); font-size: .95rem; align-self: center; }
/* Izgara öğeleri görselin doğal genişliğine göre büyümesin (mobilde yatay taşma). */
.page-hero > * { min-width: 0; }
.page-hero picture { justify-self: center; max-width: 100%; }
.page-hero picture .shot { display: block; }
/* width:auto + width/height öznitelikleri: oran korunur, yerleşim kayması olmaz. */
.page-hero .shot { width: auto; height: auto; max-width: 100%; }
@media (max-width: 760px) { .page-hero .shot { max-height: 460px; } }
a.badge { text-decoration: none; }
a.badge:hover { text-decoration: underline; }

/* Ana sayfada geniş kart (yeni/geliştirme aşamasındaki uygulama; şimdilik PERONYA). */
.card.genis { grid-column: 1 / -1; }
.card.genis .kart-ic { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: center; }
.card.genis .kart-metin { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card .slogan-kart { font-weight: 700; color: var(--c); }
.card .kart-gorsel { margin: 0; min-width: 0; }
.card .kart-gorsel img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.card .kart-gorsel figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
@media (max-width: 760px) { .card.genis .kart-ic { grid-template-columns: 1fr; } .card .kart-gorsel { order: -1; } }
