/* Layout and content for the legal pages (gizlilik, hesap-silme). Colors, spacing,
   radii and motion come from tokens.css. The home page uses stage.css instead. */

*, *::before, *::after { box-sizing: border-box; min-width: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font: 400 var(--type-body)/var(--lh-body) var(--font);
  color: var(--label);
  background: var(--bg);
}
h1, h2, h3, h4, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
p, h1, h2, h3, h4, span, a, li { overflow-wrap: anywhere; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent-ring); outline-offset: 2px; border-radius: var(--s-1); }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: var(--icon); height: var(--icon); flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

/* the one page grid every section shares */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-6); }
.grid-12 > * { grid-column: 1 / -1; }

/* ---------- bar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  padding-top: env(safe-area-inset-top);
  border-width: 0 0 1px;
}
.nav__row {
  display: flex; align-items: center; gap: var(--s-6);
  min-height: var(--nav-h);
  transition: min-height var(--dur-bar) var(--motion-standard);
}
.nav[data-compact] .nav__row { min-height: var(--nav-h-compact); }
.brand {
  display: inline-flex; align-items: center; gap: var(--s-3);
  margin-right: auto; min-height: var(--touch);
  font: 600 var(--type-headline)/var(--lh-title) var(--font);
}
.brand__mark {
  flex: none; border-radius: var(--s-2);
  transition: transform var(--dur-bar) var(--motion-standard);
}
.nav[data-compact] .brand__mark { transform: scale(0.92); }
.nav__links { display: none; gap: var(--s-6); font: 500 var(--type-sub)/var(--lh-title) var(--font); }
.nav__links a {
  display: inline-flex; align-items: center; min-height: var(--touch);
  transition: color var(--dur-std) var(--motion-standard);
}
.nav__links a:hover { color: var(--accent); }
.btn {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--touch); padding: var(--s-2) var(--s-5);
  font: 600 var(--type-callout)/var(--lh-title) var(--font);
  border-color: transparent;
}

/* ---------- sky (hero and download band) ---------- */
.sky {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 58%, var(--sky-3) 100%);
}
.sky__clouds {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: center bottom;
  opacity: var(--cloud-opacity);
  transform: translateY(calc(var(--scroll-y, 0) * 0.2px));
}
.sky__clouds--still { transform: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: clip;
  display: grid; align-items: stretch;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top) + var(--s-10));
}
.hero__grid { position: relative; z-index: 1; row-gap: var(--s-8); align-content: start; }
.hero__title {
  font: 700 var(--type-display)/var(--lh-tight) var(--font);
  letter-spacing: var(--track-title);
  text-wrap: balance;
  animation: enter var(--dur-enter) var(--motion-standard) 160ms both;
}
.hero__side {
  display: grid; gap: var(--s-5); align-content: start;
  animation: enter var(--dur-enter) var(--motion-standard) 240ms both;
}
.hero__sub { font: 400 var(--type-title3)/var(--lh-body) var(--font); max-width: 34ch; }
.hero__note { font: 400 var(--type-foot)/var(--lh-body) var(--font); max-width: 40ch; }

.stores { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.store {
  display: inline-flex; flex-direction: column; justify-content: center; gap: var(--s-1);
  min-height: calc(var(--touch) + var(--s-4)); min-width: calc(var(--s-16) * 2 + var(--s-5));
  padding: var(--s-2) var(--s-5);
}
.store[aria-disabled="true"] { cursor: default; }
.store__state {
  font: 600 var(--type-cap)/var(--lh-title) var(--font);
  letter-spacing: var(--track-cap); text-transform: uppercase; color: var(--label-2);
}
.store:not([aria-disabled]) .store__state { color: var(--accent); }
.store__name { font: 600 var(--type-headline)/var(--lh-title) var(--font); }

.hero__visual {
  position: relative; justify-self: center; align-self: end;
  margin-top: var(--s-4);
  animation: enter var(--dur-enter) var(--motion-standard) 80ms both;
}

/* floating chips: parallax on the wrapper, ambient float on the chip */
.float {
  position: absolute; z-index: 2;
  transform: translateY(calc(var(--scroll-y, 0) * 0.1px));
}
.float--a { top: 24%; left: calc(var(--s-6) * -1); }
.float--b { top: 50%; right: calc(var(--s-6) * -1); }
.float--c { display: none; top: 72%; right: 70%; }
.chip {
  display: grid; gap: var(--s-1);
  width: max-content; max-width: min(calc(var(--s-16) * 3 + var(--s-4)), 52vw);
  padding: var(--s-3) var(--s-4);
  animation: float var(--float-a) var(--motion-standard) infinite alternate;
}
.float--b .chip { animation-duration: var(--float-b); animation-delay: -5s; }
.float--c .chip { animation-duration: var(--float-c); animation-delay: -9s; }
.chip--row { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: var(--s-3); }
.chip__text { display: grid; gap: var(--s-1); }
.chip__meta { font: 400 var(--type-foot)/var(--lh-title) var(--font); color: var(--label-2); }
.chip__title { font: 600 var(--type-sub)/var(--lh-title) var(--font); }
.chip__value { font: 700 var(--type-headline)/var(--lh-title) var(--font); }
.chip__icon {
  display: grid; place-items: center;
  width: var(--s-8); height: var(--s-8); border-radius: var(--r-full);
  background: var(--accent-fill); color: var(--accent);
}
.chip__icon--ok { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); }

/* ---------- sections ---------- */
.section { padding-block: var(--section-y); background: var(--bg); }
.section--alt { background: var(--bg-2); }
.section .grid-12 { row-gap: var(--s-10); }
.eyebrow {
  margin-bottom: var(--s-3);
  font: 600 var(--type-cap)/var(--lh-title) var(--font);
  letter-spacing: var(--track-cap); text-transform: uppercase; color: var(--accent);
}
.section__title {
  font: 700 var(--type-section)/var(--lh-title) var(--font);
  letter-spacing: var(--track-title);
  text-wrap: balance;
}
.prose { font: 400 var(--type-body)/var(--lh-reading) var(--font); max-width: var(--measure); }

.story__note { display: grid; gap: var(--s-4); align-content: start; }
.story__note > p { font: 400 var(--type-title3)/var(--lh-reading) var(--font); max-width: var(--measure); }
.story__note > .story__sign {
  display: grid; gap: var(--s-1);
  margin-top: var(--s-4); padding-top: var(--s-5);
  border-top: 1px solid var(--separator);
  font: 400 var(--type-sub)/var(--lh-body) var(--font);
}
.story__sign strong { font-weight: 600; font-size: var(--type-headline); }
.story__sign span { color: var(--label-2); }

.goal__lead { display: grid; gap: var(--s-5); align-content: start; }
.goal__lead .eyebrow { margin-bottom: calc(var(--s-2) * -1); }
.goal__heading { font: 600 var(--type-title2)/var(--lh-title) var(--font); }
.goal__status { margin-top: var(--s-2); font: 400 var(--type-sub)/var(--lh-body) var(--font); color: var(--label-2); }
.steps { margin-top: var(--s-6); border-top: 1px solid var(--separator); }
.step {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-5);
  padding-block: var(--s-6);
  border-bottom: 1px solid var(--separator);
}
.step__no {
  font: 700 var(--type-section)/1 var(--font);
  letter-spacing: var(--track-title); color: var(--accent);
  min-width: var(--s-10);
}
.step__title { font: 600 var(--type-title3)/var(--lh-title) var(--font); }
.step__text { margin-top: var(--s-2); font: 400 var(--type-body)/var(--lh-reading) var(--font); }

.feature__icon {
  display: grid; place-items: center; flex: none;
  width: var(--touch); height: var(--touch); border-radius: var(--r-sm);
  background: var(--accent-fill); color: var(--accent);
}
.feature__icon .icon { width: var(--icon-lg); height: var(--icon-lg); }
.feature__title { font: 600 var(--type-title3)/var(--lh-title) var(--font); }
.feature__text { margin-top: var(--s-2); font: 400 var(--type-body)/var(--lh-reading) var(--font); }

.feature-main {
  display: grid; gap: var(--s-8); align-content: space-between;
  padding: var(--s-8); border-radius: var(--r-xl);
  background: var(--bg-2);
}
.feature-main__text { display: grid; gap: var(--s-4); justify-items: start; }
.feature-main .feature__title { font-size: var(--type-title2); }
.feature-main .feature__text { margin-top: 0; max-width: 46ch; }
.feature-main__demo { --u: 1.1px; justify-self: start; max-width: 100%; }

.feature-list { border-top: 1px solid var(--separator); align-self: start; }
.feature {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-4);
  padding-block: var(--s-5);
  border-bottom: 1px solid var(--separator);
}

/* ---------- campaigns ---------- */
.perks { align-items: center; }
.perks__text { display: grid; gap: var(--s-5); align-content: start; }
.perks__text .eyebrow { margin-bottom: calc(var(--s-2) * -1); }
.perks__list { display: grid; gap: var(--s-3); list-style: none; border-top: 1px solid var(--separator); padding-top: var(--s-5); }
.perks__list li { display: flex; align-items: baseline; gap: var(--s-4); }
.perks__list strong { flex: none; min-width: 2.6em; white-space: nowrap; font: 800 var(--type-title2)/1 var(--font); color: var(--accent); }
.perks__list span { font: 400 var(--type-body)/var(--lh-body) var(--font); }
.perks__note { font: 400 var(--type-foot)/var(--lh-body) var(--font); color: var(--label-2); }
.perks__phones { display: flex; justify-content: center; align-items: flex-start; gap: var(--s-5); }
.perks__phones .device { --u: 0.56px; }
.perks__phones .device + .device { margin-top: var(--s-12); }

/* ---------- screenshots strip ---------- */
.shots {
  display: flex; gap: var(--s-6);
  margin-top: var(--s-10); padding: var(--s-4) max(16px, calc((100% - var(--content-max)) / 2));
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
  scrollbar-width: none; list-style: none;
}
.shots::-webkit-scrollbar { display: none; }
.shot { flex: none; display: grid; gap: var(--s-4); justify-items: center; scroll-snap-align: center; }
.shot .device { --u: 0.62px; }
.shot__caption { font: 600 var(--type-headline)/var(--lh-title) var(--font); }

/* ---------- download band ---------- */
.band { position: relative; overflow: clip; padding-block: var(--section-y); }
.band__grid { position: relative; z-index: 1; row-gap: var(--s-8); align-items: end; }
.band__text { display: grid; gap: var(--s-4); }
.band__sub { font: 400 var(--type-title3)/var(--lh-body) var(--font); max-width: 46ch; }

/* ---------- footer ---------- */
.footer { padding-block: var(--s-8); background: var(--bg); border-top: 1px solid var(--separator); }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); }
.footer .brand { margin-right: 0; }
.footer__note { font: 400 var(--type-foot)/var(--lh-body) var(--font); color: var(--label-2); }

/* ---------- motion ---------- */
@keyframes enter {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes float {
  from { transform: translate3d(0, calc(var(--float-shift) * -1), 0); }
  to   { transform: translate3d(0, var(--float-shift), 0); }
}

/* ---------- medium: 480 ---------- */
@media (min-width: 480px) {
  .float--a { left: calc(var(--s-12) * -1); }
  .float--b { right: calc(var(--s-12) * -1); }
}

/* ---------- expanded: 768 ---------- */
@media (min-width: 768px) {
  .nav__links { display: flex; }
  .brand { margin-right: 0; }
  .nav__links { margin-left: auto; }

  .hero__grid { grid-template-rows: auto 1fr; column-gap: var(--s-6); }
  .hero__title { grid-column: 1 / 7; grid-row: 1; }
  .hero__side { grid-column: 1 / 7; grid-row: 2; }
  .hero__visual { grid-column: 7 / -1; grid-row: 1 / 3; margin-top: 0; }
  .float--a { top: 20%; left: auto; right: 76%; }
  .float--b { top: 52%; right: calc(var(--s-6) * -1); }

  .band__text { grid-column: 1 / 8; }
  .band__stores { grid-column: 8 / -1; justify-content: flex-end; }
}

/* ---------- wide: 1024 ---------- */
@media (min-width: 1024px) {
  .story__lead { grid-column: 1 / 8; }
  .story__note { grid-column: 8 / -1; }

  .goal__lead { grid-column: 1 / 6; }
  .goal__list { grid-column: 7 / -1; }

  .perks__text { grid-column: 1 / 6; }
  .perks__phones { grid-column: 6 / -1; }
  .perks__phones .device { --u: 0.7px; }

  .features__lead { grid-column: 1 / 8; }
  .feature-main { grid-column: 1 / 8; }
  .feature-list { grid-column: 8 / -1; }
}

@media (min-width: 768px) and (max-width: 1023px), (min-width: 1280px) {
  .feature-main { grid-template-columns: minmax(0, 1fr) auto; align-items: center; align-content: center; }
}

/* ---------- reference composition: headline left, phone center, copy right ---------- */
@media (min-width: 1200px) {
  .hero__grid { grid-template-rows: auto; }
  .hero__title { grid-column: 1 / 6; grid-row: 1; }
  .hero__visual { grid-column: 6 / 10; grid-row: 1; margin-top: var(--s-12); }
  .hero__side { grid-column: 10 / -1; grid-row: 1; }
  .float--a { top: 40%; right: 88%; }
  .float--b { top: 60%; right: auto; left: 82%; }
  .float--c { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__title, .hero__side, .hero__visual, .chip { animation: none; }
  .float, .sky__clouds { transform: none; }
}
