/* Denge tanıtım sitesi — renkler uygulamanın Çini temasından (ThemeCatalog.swift). */

:root {
  --bg: #F6F5F0;
  --surface: #FFFFFF;
  --border: #E4E2D8;
  --divider: #EEECE4;
  --ink: #14213D;
  --ink2: #4F5B70;
  --accent: #1F4E9C;
  --on-accent: #FFFFFF;
  --soft: #E7ECF4;
  --teal: #2A9D9A;
  --note-ink: #7E241C;
  --note-bg: #F7E1DE;
  --shadow: 0 18px 40px -22px rgba(20, 33, 61, 0.35);
  --display: "DM Serif Display", Georgia, serif;
  --body: "Figtree", -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Çini'nin "Fırın" (odak) paleti */
    --bg: #1C1714;
    --surface: #2B211C;
    --border: #4A3A30;
    --divider: #3A2C24;
    --ink: #F7EFE6;
    --ink2: #C9B6A6;
    --accent: #F2C59A;
    --on-accent: #1C1714;
    --soft: #3A2C24;
    --teal: #7FD1CE;
    --note-ink: #F7EFE6;
    --note-bg: #4A3A30;
    --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); }

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

/* Üst çubuk */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-size: 26px;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #F6F5F0;
  padding: 3px;
}
.top nav { display: flex; gap: 18px; flex-wrap: wrap; }
.top nav a {
  color: var(--ink2);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.top nav a:hover { color: var(--ink); }

/* Giriş */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0 72px;
}
.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink2);
  margin: 0 0 12px;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 4vw, 42px); }
h3 { font-size: 24px; }
.lead {
  font-size: 19px;
  color: var(--ink2);
  margin: 18px 0 26px;
  max-width: 34em;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}
.pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

/* Telefon ekran görüntüsü */
.phone {
  border-radius: 34px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 8px;
  box-shadow: var(--shadow);
  max-width: 320px;
  margin: 0 auto;
}
.phone img { border-radius: 27px; }

/* Bölümler */
section { padding: 56px 0; border-top: 1px solid var(--divider); }
.section-head { max-width: 40em; margin-bottom: 32px; }
.section-head p { color: var(--ink2); margin: 12px 0 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
}
.card .num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  margin-bottom: 14px;
}
.card p { color: var(--ink2); margin: 10px 0 0; font-size: 16px; }

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.shots figure { margin: 0; }
.shots .phone { max-width: 260px; }
.shots figcaption {
  text-align: center;
  color: var(--ink2);
  font-size: 15px;
  margin-top: 14px;
}

/* Temalar: kartlar sekme, altta temanın kendi renginde sahne */
.themes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.theme {
  appearance: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 9px 9px 15px;
  transition: border-color .2s, transform .2s;
}
.theme:hover { transform: translateY(-2px); border-color: var(--accent); }
.themes[hidden] { display: none; }
.theme:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.theme .art {
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 12px;
}
.theme .art img { width: 100%; height: 100%; object-fit: contain; }
.theme strong { display: block; padding: 0 6px; font-size: 17px; }
.theme .sub { display: block; padding: 0 6px; color: var(--ink2); font-size: 14px; }

/* Sahne renkleri ve yazı tipleri uygulamanın temalarından (ThemeCatalog.swift) */
.stage[data-theme="cini"]    { --s-bg: #F6F5F0; --s-ink: #14213D; --s-ink2: #4F5B70; --s-accent: #1F4E9C; --s-line: #E4E2D8; --s-font: "DM Serif Display", Georgia, serif; --s-weight: 400; }
.stage[data-theme="cinar"]   { --s-bg: #EEF2EA; --s-ink: #15241D; --s-ink2: #4F5D54; --s-accent: #1D4D35; --s-line: #DCE5D8; --s-font: "Bricolage Grotesque", sans-serif; --s-weight: 800; }
.stage[data-theme="ebru"]    { --s-bg: #F3EEE4; --s-ink: #22223A; --s-ink2: #56536A; --s-accent: #2B3A67; --s-line: #DCD2BF; --s-font: "Fraunces", Georgia, serif; --s-weight: 600; }
.stage[data-theme="mahalle"] { --s-bg: #F2EEE6; --s-ink: #23201D; --s-ink2: #57514B; --s-accent: #8C3A2F; --s-line: #E5DDD0; --s-font: "Baloo 2", sans-serif; --s-weight: 800; }
.stage[data-theme="vapur"]   { --s-bg: #0F2B45; --s-ink: #EEF4F8; --s-ink2: #B4C7D6; --s-accent: #F0C46E; --s-line: #24507A; --s-font: "Archivo", sans-serif; --s-weight: 800; }

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  grid-template-areas: "bar bar" "text phone";
  gap: 28px 40px;
  align-items: center;
  padding: 24px 48px 44px;
  border-radius: 28px;
  background: var(--s-bg);
  color: var(--s-ink);
  border: 1px solid var(--s-line);
  transition: background-color .45s ease, color .45s ease, border-color .45s ease;
}
/* JS varken sahne yalnızca bir tema açılınca görünür */
.js .stage:not(.open) { display: none; }
.stage.open { animation: stage-in .35s ease both; }
@keyframes stage-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.stage-bar {
  grid-area: bar;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.stage-bar button {
  appearance: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: var(--s-ink);
  background: transparent;
  border: 1.5px solid var(--s-line);
  border-radius: 999px;
  min-height: 44px;
  padding: 0 18px;
  transition: border-color .2s, background-color .2s;
}
.stage-bar button:hover { border-color: var(--s-accent); }
.stage-bar button:focus-visible, .stage-title:focus-visible { outline: 3px solid var(--s-accent); outline-offset: 3px; }
.stage-arrows { display: flex; gap: 8px; }
.stage-arrows button { width: 44px; padding: 0; font-size: 22px; line-height: 1; }
.stage-text { grid-area: text; }
.stage-title:focus { outline: none; }

.stage-kicker {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--s-ink2);
}
.stage-title {
  font-family: var(--s-font);
  font-weight: var(--s-weight);
  font-size: clamp(40px, 5vw, 60px);
  color: var(--s-ink);
}
.stage-names { margin: 24px 0 0; display: grid; gap: 0; max-width: 26em; }
.stage-names div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--s-line);
}
.stage-names dt { color: var(--s-ink2); font-weight: 600; }
.stage-names dd { margin: 0; font-weight: 700; color: var(--s-accent); text-align: right; }
.stage-phone { grid-area: phone; max-width: 300px; width: 100%; }
.screens { position: relative; aspect-ratio: 739 / 1600; border-radius: 27px; overflow: hidden; }
.screens img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 27px;
  opacity: 0;
  transition: opacity .4s ease;
}
.screens img.active { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .theme, .stage, .screens img { transition: none; }
  .stage.open { animation: none; }
  .theme:hover { transform: none; }
}

/* Durum */
.status {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.status ul { margin: 12px 0 0; padding-left: 20px; color: var(--ink2); }
.status li { margin: 6px 0; }
.note {
  background: var(--note-bg);
  color: var(--note-ink);
  border-radius: 16px;
  padding: 14px 18px;
  font-weight: 600;
  margin-top: 16px;
}

/* Metin sayfası (gizlilik) */
.prose { max-width: 40em; padding: 24px 0 64px; }
.prose h1 { font-size: clamp(36px, 5vw, 52px); }
.prose h2 { font-size: 26px; margin-top: 36px; }
.prose p, .prose li { color: var(--ink2); }
.prose strong { color: var(--ink); }
.prose .meta { color: var(--ink2); font-size: 15px; margin-top: 10px; }

/* Alt bilgi */
footer {
  border-top: 1px solid var(--divider);
  padding: 28px 0 40px;
  color: var(--ink2);
  font-size: 14px;
}
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Grid öğeleri içerikleri (büyük ekran görüntüleri) yüzünden sütunu genişletmesin. */
.hero > *, .steps > *, .shots > *, .themes > *, .status > *, .stage > * { min-width: 0; }

/* Dar ekranlar */
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 24px; }
  .steps, .status { grid-template-columns: minmax(0, 1fr); }
  .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .theme:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .theme:last-child:nth-child(odd) .art { aspect-ratio: 2.2; }
  .shots { grid-template-columns: minmax(0, 1fr); }
  /* Telefonda sıra: çubuk, başlık, telefon, ekran adları */
  .stage { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; gap: 18px; padding: 16px 18px 28px; }
  .stage-bar, .stage-phone { grid-area: auto; }
  .stage-text { display: contents; }
  .stage-bar { order: 0; }
  .stage-kicker { order: 1; margin: 6px 0 -14px; }
  .stage-title { order: 2; }
  .stage-phone { order: 3; margin: 0 auto; }
  .stage-names { order: 4; margin: 0; max-width: none; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top nav { gap: 12px; }
  .top nav a { font-size: 14px; }
  .themes { gap: 8px; }
  .theme .sub { font-size: 13px; }
  .stage-bar button { padding: 0 14px; }
}
