:root {
  --bg: #fff8f0;
  --fg: #1b1f3b;
  --muted: #566079;
  --accent: #e8336d;
  --accent-ink: #b81f52;
  --accent-soft: #fbd3e0;
  --card: #ffffff;
  --line: #e2dfd6;
  --hero: #1b1f3b;
  --on-hero: #fff8f0;
  --on-hero-muted: #c9d0e0;
  --fact-a: #fbd3e0;
  --fact-a-ink: #b81f52;
  --fact-b: #dbe6fb;
  --fact-b-ink: #2a4a9c;
  --final: #d92a62;
  --hero-bg: #ffffff;
  --hero-ink: #1b1f3b;
  --dim: saturate(0.8) brightness(0.97);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1524;
    --fg: #f5f0e3;
    --muted: #a8b1c6;
    --accent-ink: #ff8fb1;
    --accent-soft: #4a1a2c;
    --card: #1a2439;
    --line: #2c3854;
    --hero: #223154;
    --fact-a: #1a2439;
    --fact-a-ink: #ff8fb1;
    --fact-b: #1a2439;
    --fact-b-ink: #8fb4ff;
    --final: #223154;
    --hero-bg: #1b1f3b;
    --hero-ink: #ffffff;
    --dim: brightness(0.7) saturate(0.85);
  }
}
:root[data-theme="dark"] {
  --bg: #0e1524;
  --fg: #f5f0e3;
  --muted: #a8b1c6;
  --accent-ink: #ff8fb1;
  --accent-soft: #4a1a2c;
  --card: #1a2439;
  --line: #2c3854;
  --hero: #223154;
  --fact-a: #1a2439;
  --fact-a-ink: #ff8fb1;
  --fact-b: #1a2439;
  --fact-b-ink: #8fb4ff;
  --final: #223154;
  --hero-bg: #1b1f3b;
  --hero-ink: #ffffff;
  --dim: brightness(0.7) saturate(0.85);
}
@font-face {
  font-family: Nunito;
  src: url("/fonts/Nunito-Variable.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font:
    17px / 1.6 Nunito,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
a {
  color: var(--accent-ink);
}
main,
footer {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 56px);
}
/* Pink top bar, full width on every page */
header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand links controls";
  align-items: center;
  gap: 8px 24px;
  padding: 12px clamp(16px, 4vw, 56px);
  background: var(--accent);
  color: #fff;
}
header a {
  color: #fff;
  text-decoration: none;
}
.brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.2rem;
}
.brand img {
  border-radius: 9px;
  box-shadow: 0 0 0 2px rgb(255 255 255 / 35%);
}
.links {
  grid-area: links;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.links a {
  font-weight: 700;
  opacity: 0.88;
}
.links a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.controls {
  grid-area: controls;
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 40rem) {
  :root {
    --bar: 92px;
  }
  header {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand controls" "links links";
  }
  .links {
    justify-content: flex-start;
    font-size: 0.95rem;
  }
}
h1 {
  font-size: 1.9rem;
  line-height: 1.2;
  margin: 32px 0 4px;
}
h2 {
  font-size: 1.2rem;
  margin: 32px 0 4px;
}
p,
li {
  margin: 8px 0;
}
.meta {
  color: var(--muted);
  font-size: 0.9rem;
}
footer {
  color: var(--muted);
  font-size: 0.9rem;
  padding-top: 32px;
  padding-bottom: 48px;
}
html:not([data-lang="tr"]) .tr,
html[data-lang="tr"] .en {
  display: none;
}
/* Language: pill with a sliding white thumb */
.seg {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 3px;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  background: rgb(0 0 0 / 16%);
}
.seg::before {
  content: "";
  position: absolute;
  inset: 3px auto 3px 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgb(0 0 0 / 18%);
  transition: translate 0.25s cubic-bezier(0.3, 0.8, 0.3, 1);
}
html[data-lang="tr"] .seg::before {
  translate: 100% 0;
}
.seg button {
  position: relative;
  min-width: 40px;
  padding: 4px 10px;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.25s;
}
html:not([data-lang="tr"]) .seg button[data-set="en"],
html[data-lang="tr"] .seg button[data-set="tr"] {
  color: #b81f52;
}
/* Theme: one round button, the sun and moon swap with a turn */
.theme {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 16%);
  color: #fff;
  cursor: pointer;
}
.theme:hover,
.seg:hover {
  background: rgb(0 0 0 / 24%);
}
.theme svg {
  grid-area: 1 / 1;
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  transition:
    opacity 0.3s,
    rotate 0.4s,
    scale 0.4s;
}
.theme .moon {
  stroke: none;
}
html[data-theme="dark"] .theme .sun,
html:not([data-theme="dark"]) .theme .moon {
  opacity: 0;
  rotate: -90deg;
  scale: 0.5;
}
:focus-visible {
  outline: 3px solid #ff8fb1;
  outline-offset: 2px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th,
td {
  padding: 8px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
h3 {
  font-size: 1.05rem;
  margin: 20px 0 4px;
}

/* Landing page */
.landing main {
  max-width: none;
  padding: 0;
}
.landing footer {
  max-width: none;
  text-align: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px 9px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.1;
  text-align: left;
  text-decoration: none;
  transition: translate 0.15s;
}
.btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  flex: none;
}
.btn small {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.75;
}
.btn.alt {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--ink);
  color: var(--ink);
}
.btn:hover {
  translate: 0 -2px;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 24px 0 12px;
}
.num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

/* Hero: screenshots scattered across the full width, then the headline and store links */
.hero {
  --ink: var(--hero-ink);
  --paper: var(--hero-bg);
  background: var(--hero-bg);
  color: var(--ink);
  text-align: center;
  /* Fill the first screen exactly: the phones, headline and store links all scale with the viewport height. */
  --avail: calc(100svh - var(--bar, 60px));
  min-height: var(--avail);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--avail) * 0.04) 0;
}
.scatter {
  --h: min(calc(var(--avail) * 0.4), 480px);
  position: relative;
  flex: none;
  height: var(--h);
  margin-bottom: calc(var(--avail) * 0.05);
}
.shot,
.card {
  box-sizing: border-box;
  height: var(--h);
  aspect-ratio: 540 / 1174;
  padding: calc(var(--h) * 0.016);
  background: #0a0a0d;
  border-radius: calc(var(--h) * 0.085);
  /* titanium rim around the black bezel, then the drop shadow */
  box-shadow:
    inset 0 0 0 1px #2a2c33,
    0 0 0 2px #9ea3ae,
    0 0 0 3px #5d616b,
    0 24px 60px rgb(0 0 0 / 35%);
}
.shot img,
.card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--h) * 0.07);
}
.shot {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% 0;
  transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(var(--s));
  z-index: var(--z);
  filter: var(--dim);
  animation: rise 1s cubic-bezier(0.2, 0.9, 0.25, 1.1) backwards;
  animation-delay: calc(0.1s + var(--d) * 0.1s);
}
.shot:nth-child(3) {
  filter: none;
}
@keyframes rise {
  from {
    transform: translateY(60vh) rotate(0deg) scale(0.8);
    opacity: 0;
  }
}
.hero-copy {
  padding: 0 16px;
  max-width: 44rem;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(2rem, min(7vw, calc(var(--avail) * 0.085)), 4.6rem);
  font-weight: 900;
  line-height: 1.02;
  margin: 0 0 calc(var(--avail) * 0.02);
}
.hero h1 em {
  font-style: normal;
  text-decoration: underline 0.1em var(--accent);
  text-underline-offset: 0.12em;
}
.hero p {
  color: var(--ink);
  font-size: clamp(0.95rem, calc(var(--avail) * 0.025), 1.15rem);
  margin: 0;
}
.hero .cta {
  margin: calc(var(--avail) * 0.03) 0 calc(var(--avail) * 0.015);
}
.hero .note {
  font-size: 0.9rem;
}

/* Showcase: tilted stack of phones on the left, step text and arrows on the right */
.showcase {
  --h: min(64svh, 560px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(24px, 6vw, 96px);
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(56px, 10vh, 112px) clamp(16px, 4vw, 56px) 0;
}
.stack {
  position: relative;
  justify-self: center;
  height: var(--h);
  aspect-ratio: 540 / 1174;
}
.card {
  position: absolute;
  inset: 0;
  height: auto;
  cursor: pointer;
  transition:
    transform 0.6s cubic-bezier(0.3, 0.8, 0.25, 1),
    opacity 0.6s;
}
.card[data-pos="0"] {
  z-index: 3;
  cursor: default;
}
.card[data-pos="1"] {
  z-index: 2;
  transform: translate(14%, 3%) rotate(7deg) scale(0.96);
}
.card[data-pos="2"] {
  z-index: 1;
  transform: translate(-14%, 2%) rotate(-7deg) scale(0.94);
}
.card:not([data-pos="0"], [data-pos="1"], [data-pos="2"]) {
  z-index: 0;
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}
.card:not([data-pos="0"]) img {
  filter: brightness(0.92);
}
.kicker {
  margin: 0 0 4px;
  color: var(--accent-ink);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.captions {
  display: grid;
  margin-top: 8px;
}
.caption {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.35s,
    transform 0.35s;
  pointer-events: none;
}
.caption.on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.caption h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 8px;
}
.caption p {
  color: var(--muted);
  font-size: 1.2rem;
  max-width: 26rem;
  margin: 0;
}
/* One pill: arrows at the ends, story-style step bars between them. The active bar fills and then moves on. */
.nav {
  --dur: 6s;
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 8px 24px rgb(27 31 59 / 8%);
}
.arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition:
    scale 0.15s,
    filter 0.15s;
}
.arrow:hover {
  filter: brightness(1.08);
}
.arrow:active {
  scale: 0.9;
}
.arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.steps {
  display: flex;
  align-items: center;
  gap: 6px;
}
.step {
  display: grid;
  align-items: center;
  width: 18px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: width 0.4s cubic-bezier(0.3, 0.8, 0.25, 1);
}
.step.on {
  width: 56px;
}
.step i {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left / 0% 100%;
  background-color: color-mix(in srgb, var(--fg) 14%, transparent);
}
.step.done i {
  background-size: 100% 100%;
}
.step.on i {
  animation: fill var(--dur) linear forwards;
}
.showcase.paused .step.on i {
  animation-play-state: paused;
}
@keyframes fill {
  to {
    background-size: 100% 100%;
  }
}
@media (max-width: 52rem) {
  .showcase {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .showcase {
    --h: min(52svh, 480px);
  }
  .caption p {
    margin-inline: auto;
  }
  .nav {
    margin-inline: auto;
  }
}
@media (max-width: 40rem) {
  .scatter {
    --h: min(calc(var(--avail) * 0.34), 340px);
  }
  .shot.far {
    display: none;
  }
}

.facts {
  background: var(--bg);
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  padding: 64px clamp(16px, 4vw, 56px) 0;
}
.fact {
  --bg: var(--fact-a);
  --ink: var(--fact-a-ink);
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: 24px;
  padding: 24px;
}
.fact:nth-child(even) {
  --bg: var(--fact-b);
  --ink: var(--fact-b-ink);
}
.fact b {
  display: block;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 900;
}
.fact > span {
  color: var(--muted);
}
html[data-theme="dark"] .fact {
  border-color: var(--line);
}
.final {
  --ink: #fff;
  --paper: var(--final);
  text-align: center;
  background: var(--final);
  color: #fff;
  border-radius: 32px;
  padding: 64px 24px;
  margin: 64px clamp(16px, 4vw, 56px) 0;
}
section.final h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  margin: 0 0 8px;
}
.final p {
  font-size: 1.15rem;
  font-weight: 700;
}
@media (prefers-reduced-motion: reduce) {
  .shot {
    animation: none;
  }
  .card,
  .caption {
    transition: none;
  }
  .step.on i {
    animation: none;
    background-size: 100% 100%;
  }
}
