/* ==========================================================================
   Components — tipografi sınıfları, etiketler, durum, butonlar, spec şeridi,
   indeks satırı, yer tutucular, galeri şeridi, CTA, sonraki-vaka kartları
   ========================================================================== */

/* ---------- Tipografi ---------- */
.t-mega,
.t-display,
.t-xl,
.t-1,
.t-h1,
.t-h2,
.t-h3,
.t-h4,
.t-h5,
.t-h6 {
  font-family: var(--font-display);
  font-weight: 600;
}

.t-mega {
  font-size: var(--fs-mega);
  line-height: 0.86;
  letter-spacing: -0.06em;
}

.t-display {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--tr-display);
}

.t-xl {
  font-size: var(--fs-xl);
  line-height: 0.95;
  letter-spacing: var(--tr-display);
}

.t-1 {
  font-size: var(--fs-1);
  line-height: 0.96;
  letter-spacing: var(--tr-display);
}

.t-h1 {
  font-size: var(--fs-h1);
  line-height: 1;
  letter-spacing: var(--tr-h1);
}

.t-h2 {
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: var(--tr-heading);
}

.t-h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
  letter-spacing: var(--tr-heading);
}

.t-h4 {
  font-size: var(--fs-h4);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.t-h5 {
  font-size: var(--fs-h5);
  line-height: var(--lh-h3);
  letter-spacing: var(--tr-h3);
}

.t-h6 {
  font-size: var(--fs-h6);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.t-lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--fg-2);
  letter-spacing: -0.005em;
}

.t-lead-lg {
  font-size: clamp(1.25rem, 1.12rem + 0.5vw, 1.4375rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.t-body-lg {
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.6;
  color: var(--fg-2);
}

.t-body {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg-2);
}

.t-small {
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--fg-2);
}

/* İkinci ton: başlıkların gri devamı (ör. "Ve arada bir, oyunlar.") */
.tone {
  color: var(--tone, var(--fog));
}

.block {
  display: block;
}

/* Mono etiket: ölçü, metadata, durum. Metin kaynakta büyük harfle yazılır
   (Türkçe İ/ı dönüşümleri tarayıcıya bırakılmaz). */
.label {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: var(--tr-mono);
  color: var(--fg-3);
}

.label abbr[title] {
  text-decoration: none;
  cursor: help;
}

.label--ink {
  color: var(--fg);
}

.label a {
  transition: color var(--transition-fast);
}

.label a:hover {
  color: var(--fg);
}

.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-16);
  flex-wrap: wrap;
}

.sep::before {
  content: "·";
  padding-right: 0.6em;
}

/* ---------- İkonlar (inline SVG) ---------- */
.i {
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  flex: none;
  vertical-align: -0.04em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: square;
}

.label .i {
  width: 0.95em;
  height: 0.95em;
  stroke-width: 1.4;
  vertical-align: -0.12em;
}

/* ---------- Durum sistemi ----------
   Her durumun kendi şekli var; renk tek başına anlam taşımaz. */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: var(--tr-mono);
  color: var(--fg);
  white-space: nowrap;
}

.status::before {
  content: "";
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status--live::before {
  background: var(--status-live);
}

.status--available::before {
  background: var(--status-live);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--status-live);
  width: 7px;
  height: 7px;
}

.status--dev::before {
  background: linear-gradient(90deg, var(--status-dev) 50%, transparent 50%);
  box-shadow: inset 0 0 0 1.5px var(--status-dev);
}

.status--soon::before {
  box-shadow: inset 0 0 0 1.5px currentColor;
}

.status--client::before {
  border-radius: 0;
  background: currentColor;
}

.status--private::before {
  display: none;
}

.status--private .i {
  width: 11px;
  height: 11px;
  stroke-width: 1.5;
  vertical-align: 0;
}

.status--plain::before {
  display: none;
}

.status-group {
  display: inline-flex;
  align-items: center;
  gap: var(--space-16);
  flex-wrap: wrap;
}

/* ---------- Butonlar ve linkler ---------- */
.btn {
  --btn-bg: var(--fg);
  --btn-fg: var(--bg);
  --btn-border: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0 22px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-border);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.btn:hover {
  --btn-bg: var(--fg-2);
  --btn-border: var(--fg-2);
}

.btn .i {
  transition: transform var(--transition-fast);
}

.btn:hover .i--arrow {
  transform: translateX(3px);
}

.btn--secondary {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  --btn-border: var(--fg);
}

.btn--secondary:hover {
  --btn-bg: var(--fg);
  --btn-fg: var(--bg);
  --btn-border: var(--fg);
}

.btn--lg {
  min-height: 56px;
  padding-inline: 26px;
}

/* Henüz aktif olmayan mağaza eylemi (link değil, bilgi) */
.btn--inert,
.btn--inert:hover {
  --btn-bg: var(--inert-bg, var(--fg-3));
  --btn-fg: var(--inert-fg, var(--bg));
  --btn-border: var(--inert-bg, var(--fg-3));
  cursor: default;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.link {
  display: inline;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.link:hover {
  color: var(--fg-2);
}

.link-muted {
  color: var(--fg-3);
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
}

.link-muted:hover {
  color: var(--fg);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.link-arrow .i {
  transition: transform var(--transition-fast);
}

.link-arrow:hover .i--arrow {
  transform: translateX(3px);
}

.link-arrow:hover .i--arrow-ne {
  transform: translate(2px, -2px);
}

/* ---------- Breadcrumb ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55em;
  list-style: none;
  padding: 0;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.55em;
}

.crumbs a:hover {
  color: var(--fg);
}

/* ---------- Spec şeridi (Blok A · tablo değil, tek satır) ---------- */
.spec {
  display: grid;
  grid-template-columns: var(--spec-cols, repeat(auto-fit, minmax(150px, 1fr)));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.spec__item {
  padding: 20px 20px 18px;
  border-left: 1px solid var(--line);
  min-width: 0;
}

.spec__item:first-child {
  border-left: 0;
  padding-left: 0;
}

.spec dt {
  margin-bottom: 6px;
}

.spec dd {
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.spec dd .status {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  letter-spacing: -0.01em;
  font-weight: 500;
}

@media (max-width: 767px) {
  .spec {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spec__item {
    padding: 16px 0 16px 16px;
    border-bottom: 1px solid var(--line);
  }

  .spec__item:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .spec__item:nth-last-child(-n + 2):nth-child(odd),
  .spec__item:last-child {
    border-bottom: 0;
  }
}

/* ---------- Bölüm başlığı satırı (başlık + sağda mono etiket) ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-24);
  flex-wrap: wrap;
  margin-bottom: var(--space-40);
}

.section-head .label {
  padding-bottom: 0.45em;
}

.eyebrow {
  display: block;
  margin-bottom: var(--space-16);
}

/* ---------- İki kolon: başlık solda, metin sağda ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: var(--space-24);
  align-items: start;
}

.split > :first-child {
  grid-column: 1 / span 6;
}

.split > :last-child {
  grid-column: 7 / -1;
}

.split--end {
  align-items: end;
}

.split .stack > * + * {
  margin-top: 1em;
}

@media (max-width: 1023px) {
  .split > :first-child,
  .split > :last-child {
    grid-column: 1 / -1;
  }
}

/* ---------- Yer tutucu (gerçek görsel gelene kadar) ---------- */
.ph {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: var(--ph-ratio, 16 / 10);
  background: var(--ph-bg, var(--sheet));
  color: var(--fg-2);
  overflow: hidden;
}

.ph--gray {
  --ph-bg: var(--placeholder);
}

.ph--phone {
  --ph-ratio: 195 / 420;
  border-radius: 30px;
}

.ph__label {
  padding: 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--tr-mono);
  line-height: 1.5;
}

.ph--phone .ph__label {
  writing-mode: vertical-rl;
}

/* ---------- Görseller ---------- */
.media {
  display: block;
  width: 100%;
  height: auto;
}

.media-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.radius-lg {
  border-radius: 20px;
}

/* ---------- Ekran görüntüsü çerçevesi ----------
   Gerçek ürün/mağaza görüntüleri için. Oran sayfa kuralından (--ph-ratio) gelir,
   görüntü kutuya kırpılarak oturur. */
.shot {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--ph-ratio, 16 / 10);
  overflow: hidden;
  background: var(--placeholder);
  border-radius: var(--shot-r, 6px);
  box-shadow: 0 0 0 1px rgba(17, 17, 16, 0.06);
}

.shot picture,
.shot img {
  display: block;
  width: 100%;
  height: 100%;
}

.shot img {
  object-fit: cover;
  object-position: var(--shot-pos, 50% 0%);
}

.shot--phone {
  --ph-ratio: 520 / 1130;
  --shot-r: 30px;
}

.media-top {
  object-position: 50% 0%;
}

figure > .shot + figcaption {
  margin-top: 14px;
}

/* ---------- Kaydırmalı şerit (mağaza şeridi · Blok G) ---------- */
.strip {
  display: flex;
  gap: var(--strip-gap, 16px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--margin);
  padding-inline: var(--margin);
  padding-bottom: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--strip-thumb, var(--fg-3)) transparent;
  -webkit-overflow-scrolling: touch;
}

.strip > * {
  flex: none;
  scroll-snap-align: start;
}

.strip::-webkit-scrollbar {
  height: 3px;
}

.strip::-webkit-scrollbar-thumb {
  background: var(--strip-thumb, var(--fg-3));
}

.strip-wrap {
  max-width: var(--container);
  margin-inline: auto;
}

/* ---------- Özellik ızgarası (üst çizgili başlık + açıklama) ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(var(--features-cols, 4), minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: var(--space-40);
  list-style: none;
  padding: 0;
}

.features > li,
.features > div {
  padding-top: 20px;
  border-top: 1px solid var(--feature-line, var(--line));
}

.features h3 {
  margin-bottom: 10px;
}

@media (max-width: 1023px) {
  .features {
    --features-cols: 2;
  }
}

@media (max-width: 767px) {
  .features {
    --features-cols: 1;
    row-gap: var(--space-24);
  }
}

/* ---------- Karolar (akış / adım) ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(var(--tiles-cols, 6), minmax(0, 1fr));
  gap: var(--kerf-gap);
  list-style: none;
  padding: 0;
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: var(--tile-h, 220px);
  padding: 24px 20px 20px;
  background: var(--surface);
}

.tile--ink {
  background: #111110;
  color: var(--bone);
  --fg-2: #a6a7a2;
  --fg-3: var(--fog);
}

.tile p {
  margin-top: 4px;
}

/* ---------- Bir sonraki adım kartları (vaka sonu) ---------- */
.next-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
}

.next-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 34px 28px 30px;
  border: 1px solid var(--fg);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.next-card--ink {
  background: #111110;
  border-color: #111110;
  color: var(--bone);
  --fg-3: var(--fog);
}

.next-card__title {
  font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.375rem) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
}

.next-card .i--arrow {
  width: 0.85em;
  height: 0.85em;
  stroke-width: 2.2;
  transition: transform var(--transition-fast);
}

.next-card:hover .i--arrow {
  transform: translateX(6px);
}

@media (max-width: 767px) {
  .next-cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- Kapanış CTA bandı ---------- */
.cta {
  border-top: 1px solid var(--line-strong);
  padding-block: 120px;
}

.cta__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-40);
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .cta {
    padding-block: var(--space-64);
  }

  .cta__inner .btn {
    width: 100%;
  }
}

/* ---------- Diğer oyunlar / diğer projeler ---------- */
.other-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.other-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.other-list a:hover {
  color: var(--fg-2);
}

/* ---------- Ürün geçiş kartları (aynı üretim mantığından) ---------- */
.siblings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
}

.sibling {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  min-height: 82px;
  padding: 18px 24px;
  background: var(--sib-bg, var(--sheet));
  color: var(--sib-fg, var(--ink));
  border: 1px solid var(--sib-border, transparent);
  transition: transform var(--transition-normal);
}

.sibling .label {
  color: var(--sib-fg-3, var(--ink-3));
}

.sibling:hover {
  transform: translateY(-2px);
}

.sibling--1dcut {
  --sib-bg: #0b1f3a;
  --sib-fg: #e8eef8;
  --sib-fg-3: #a9bcda;
}

.sibling--2dcut {
  --sib-bg: #ffffff;
}

.sibling--camerp {
  --sib-bg: #ffffff;
}

@media (max-width: 767px) {
  .siblings {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ---------- Uygulama ikonu ---------- */
.app-icon {
  display: block;
  flex: none;
  width: var(--icon, 72px);
  height: var(--icon, 72px);
  border-radius: 22.5%;
  overflow: hidden;
  background: var(--icon-bg, #c8c9c3);
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Yardımcılar: yalnızca gizler, display değerine dokunmaz */
@media (min-width: 768px) {
  .show-sm {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .hide-sm {
    display: none !important;
  }
}

.mt-16 { margin-top: var(--space-16); }
.mt-24 { margin-top: var(--space-24); }
.mt-40 { margin-top: var(--space-40); }
.mt-64 { margin-top: var(--space-64); }
.maxw-prose { max-width: 36em; }
