/* MyDietLens — uygulamanın tasarım dili web'de: krem zemin, mürekkep,
   nane ve lime vurgu, tek kalınlıkta mürekkep çizgi. */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/geist-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/geist-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/vazirmatn-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF,
    U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  --canvas: #f3f5f1;
  --card: #ffffff;
  --ink: #121614;
  --ink-2: #2a312c;
  --muted: #6e776f;
  --line: #e2e7e1;
  --sunken: #e8ece6;
  --mint: #12c4a8;
  --mint-deep: #0a9b84;
  --mint-soft: #d8f6ef;
  --lime: #c6f24a;
  --breakfast: #f6e29a;
  --lunch: #3dde7a;
  --dinner: #f2b56b;
  --snack: #d7c6f6;
  --heart: #e23b4a;
  --gold: #f2b233;
  --protein: #12c4a8;
  --carbs: #4c86f0;
  --fat: #f4b942;

  --radius-sm: 16px;
  --radius-md: 22px;
  --radius-lg: 28px;
  --shadow-card: 0 8px 16px rgba(18, 22, 20, 0.04);
  --shadow-float: 0 10px 22px rgba(18, 22, 20, 0.08);
  --shadow-lift: 0 22px 60px rgba(18, 22, 20, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --gutter: clamp(20px, 5vw, 40px);
  --max: 1180px;

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Geist", "Vazirmatn", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* İnce kâğıt dokusu ve nane ışık lekeleri. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40vw 40vw at 88% -8%, rgba(18, 196, 168, 0.16), transparent 70%),
    radial-gradient(34vw 34vw at -6% 42%, rgba(216, 246, 239, 0.9), transparent 70%),
    radial-gradient(30vw 30vw at 70% 110%, rgba(198, 242, 74, 0.14), transparent 70%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.07  0 0 0 0 0.09  0 0 0 0 0.08  0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a {
  color: inherit;
}

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

.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Üst çubuk ---------- */

.nav {
  position: sticky;
  top: 12px;
  z-index: 50;
  margin: 12px auto 0;
  width: min(var(--max), 100% - 2 * var(--gutter));
}

.nav__glass {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 10px 10px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(243, 245, 241, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-float);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 19px;
}

.brand svg {
  width: 30px;
  height: 30px;
}

.nav__links {
  display: flex;
  gap: 4px;
  margin-inline-start: auto;
}

.nav__links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-2);
  padding: 9px 14px;
  border-radius: 999px;
  transition: background 0.25s var(--ease);
}

.nav__links a:hover {
  background: rgba(18, 22, 20, 0.06);
}

@media (max-width: 760px) {
  .nav__links {
    display: none;
  }
}

/* ---------- Tipografi ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-2);
  box-shadow: var(--shadow-card);
}

.eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(18, 196, 168, 0.18);
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.045em;
  line-height: 1.02;
  font-weight: 800;
}

h1 {
  font-size: clamp(46px, 7.6vw, 96px);
}

h2 {
  font-size: clamp(36px, 5vw, 64px);
}

h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.lead {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--muted);
  max-width: 34ch;
  line-height: 1.5;
}

.section {
  padding-block: clamp(64px, 9vw, 116px);
}

.section__head {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin-bottom: clamp(36px, 6vw, 64px);
}

.section__head p {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(48px, 9vw, 110px);
  padding-bottom: clamp(40px, 8vw, 100px);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

.hero__copy {
  display: grid;
  gap: 26px;
  justify-items: start;
}

.ink-word {
  position: relative;
  white-space: nowrap;
  display: inline-block;
}

.ink-word svg {
  position: absolute;
  inset-inline-start: -2%;
  width: 116%;
  bottom: -0.34em;
  height: 0.62em;
  overflow: visible;
}

.ink-word .wave {
  fill: none;
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.ink-word .heart {
  fill: var(--heart);
  stroke: #b42334;
  stroke-width: 3;
  transform-origin: center;
  transform-box: fill-box;
  transform: scale(0);
}

.is-ready .ink-word .wave {
  animation: draw 1.4s 0.35s var(--ease) forwards;
}

.is-ready .ink-word .heart {
  animation: pop 0.7s 1.55s var(--spring) forwards, beat 1.8s 2.6s ease-in-out 2;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pop {
  to {
    transform: scale(1);
  }
}

@keyframes beat {
  0%,
  100% {
    transform: scale(1);
  }
  12% {
    transform: scale(1.18);
  }
  24% {
    transform: scale(1);
  }
  36% {
    transform: scale(1.1);
  }
}

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

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 16px;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(18, 22, 20, 0.2);
  transition: transform 0.4s var(--spring), box-shadow 0.4s var(--ease);
}

.store:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(18, 22, 20, 0.26);
}

.store:active {
  transform: scale(0.97);
}

.store svg {
  width: 26px;
  height: 26px;
}

.store small {
  display: block;
  font-size: 11px;
  opacity: 0.7;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.store b {
  display: block;
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.store--light {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.proof {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.proof__dots {
  display: flex;
}

.proof__dots span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--canvas);
  margin-inline-start: -8px;
}

.proof__dots span:first-child {
  margin-inline-start: 0;
}

/* ---------- Telefon ---------- */

.stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 640px;
  perspective: 1400px;
}

.phone {
  --w: 300px;
  position: relative;
  width: var(--w);
  aspect-ratio: 1320 / 2868;
  border-radius: calc(var(--w) * 0.155);
  padding: calc(var(--w) * 0.035);
  background: linear-gradient(145deg, #2c332f, #0b0e0c 60%);
  box-shadow:
    0 0 0 1.5px #3a423d inset,
    0 40px 80px rgba(18, 22, 20, 0.28),
    0 10px 24px rgba(18, 22, 20, 0.18);
  transform-style: preserve-3d;
}

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--w) * 0.125);
  overflow: hidden;
  background: var(--canvas);
}

.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.floater {
  position: absolute;
  z-index: 3;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
}

.float {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 245, 241, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-lift);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.25;
  white-space: nowrap;
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.9s var(--ease), translate 0.9s var(--spring);
  transition-delay: var(--d, 0s);
}

.is-ready .float {
  opacity: 1;
  translate: 0 0;
}

.float b {
  display: block;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.float small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.float img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: cover;
}

.float .heart-mini {
  width: 26px;
  height: 26px;
  flex: none;
}

.float--capsule {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 14px;
}

.float--capsule header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
}

.float--capsule header span {
  color: var(--muted);
}

.floater--a {
  left: -4%;
  top: 30%;
}

.floater--b {
  right: -6%;
  top: 12%;
}

.floater--c {
  left: 2%;
  bottom: 10%;
}

.drift {
  animation: drift 7s ease-in-out infinite;
}

.drift.b {
  animation-duration: 8.5s;
  animation-delay: -2s;
}

.drift.c {
  animation-duration: 9.5s;
  animation-delay: -4s;
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 520px) {
  .stage {
    min-height: 560px;
  }
  .phone {
    --w: 250px;
  }
  .float {
    font-size: 13px;
    padding: 10px 12px;
  }
  .floater--a {
    left: -2%;
  }
  .floater--b {
    right: -2%;
    top: 6%;
  }
}

/* ---------- Mini kapsül ---------- */

.mini-capsule {
  display: flex;
  gap: 3px;
  width: 190px;
  padding: 3px;
  height: 22px;
  border-radius: 999px;
  background: var(--sunken);
  box-shadow: inset 0 2px 4px rgba(18, 22, 20, 0.07);
}

.mini-capsule span {
  border-radius: 6px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.9s var(--spring);
}

.mini-capsule span:first-child {
  border-start-start-radius: 999px;
  border-end-start-radius: 999px;
}

.is-ready .mini-capsule span {
  transform: scaleX(1);
}

/* ---------- Kapsül bölümü ---------- */

.capsule-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 36px;
  box-shadow: var(--shadow-card);
  padding: clamp(22px, 4vw, 44px);
  display: grid;
  gap: 22px;
}

.capsule-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  color: var(--muted);
  font-weight: 600;
}

.capsule-card__head b {
  color: var(--ink);
  font-size: 18px;
}

.capsule {
  position: relative;
  height: 64px;
  padding: 6px;
  border-radius: 999px;
  background: var(--sunken);
  box-shadow: inset 0 3px 8px rgba(18, 22, 20, 0.08), inset 0 -1px 0 #fff;
  display: flex;
  overflow: visible;
}

.capsule::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 999px;
  pointer-events: none;
  background-image: radial-gradient(rgba(18, 22, 20, 0.13) 1.2px, transparent 1.4px);
  background-size: 11px 11px;
  mask: linear-gradient(90deg, transparent var(--filled, 55%), #000 calc(var(--filled, 55%) + 2%));
  -webkit-mask: linear-gradient(90deg, transparent var(--filled, 55%), #000 calc(var(--filled, 55%) + 2%));
}

.block {
  position: relative;
  z-index: 1;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 72%, #fff), var(--c));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  flex: 0 0 auto;
  width: 0;
  margin-inline-end: 0;
  transition:
    width 1s var(--spring),
    margin 1s var(--spring),
    transform 0.45s var(--spring),
    box-shadow 0.45s var(--ease),
    opacity 0.45s var(--ease);
}

.block:first-child {
  border-start-start-radius: 999px;
  border-end-start-radius: 999px;
}

.capsule.is-in .block {
  width: max(0px, calc(var(--w, 0%) - 5px));
}

.capsule.is-in .block:not(.is-empty) {
  margin-inline-end: 5px;
}

.capsule.has-focus .block {
  opacity: 0.45;
}

.capsule.has-focus .block[aria-pressed="true"] {
  opacity: 1;
  transform: translateY(-8px) scale(1.06, 1.14);
  box-shadow: 0 14px 26px rgba(18, 22, 20, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.legend button {
  border: 0;
  font: inherit;
  cursor: pointer;
  background: transparent;
  border-radius: 18px;
  padding: 12px 8px;
  display: grid;
  gap: 4px;
  justify-items: center;
  color: var(--ink);
  transition: background 0.35s var(--ease), transform 0.35s var(--spring);
}

.legend button:active {
  transform: scale(0.96);
}

.legend button[aria-pressed="true"] {
  background: color-mix(in srgb, var(--c) 32%, transparent);
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.legend span::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c);
  border: 1px solid rgba(18, 22, 20, 0.12);
}

.legend b {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.meals {
  display: grid;
  gap: 4px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.6s var(--ease), opacity 0.4s var(--ease);
}

.meals.is-open {
  max-height: 260px;
  opacity: 1;
}

.meal {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 6px;
  border-top: 1px solid var(--line);
}

.meal img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--sunken);
}

.meal div {
  flex: 1;
}

.meal strong {
  display: block;
  letter-spacing: -0.01em;
}

.meal small {
  color: var(--muted);
  font-weight: 600;
}

.meal em {
  font-style: normal;
  font-weight: 800;
}

/* ---------- Akış (tarama) ---------- */

.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 900px) {
  .flow {
    grid-template-columns: 1fr;
  }
}

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 22px;
  display: grid;
  gap: 16px;
  align-content: start;
  min-height: 360px;
}

.step__n {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.viewfinder {
  position: relative;
  height: 210px;
  border-radius: 22px;
  background: #0f1311 url("img/plate.webp") center / cover;
  overflow: hidden;
}

.viewfinder::before,
.viewfinder::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 18px;
  border: 3px solid transparent;
  border-top-color: #fff;
  border-bottom-color: #fff;
  mask: linear-gradient(90deg, #000 0 18%, transparent 18% 82%, #000 82%);
  -webkit-mask: linear-gradient(90deg, #000 0 18%, transparent 18% 82%, #000 82%);
}

.viewfinder::after {
  border: 0;
  inset: 22px 22px auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  mask: none;
  -webkit-mask: none;
  box-shadow: 0 0 16px var(--lime);
  animation: scan 2.2s ease-in-out infinite;
}

@keyframes scan {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(162px);
  }
}

.stream {
  display: grid;
  gap: 10px;
}

.stream__title {
  height: 30px;
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.skeleton {
  height: 26px;
  width: 70%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--sunken) 30%, #f7f9f6 50%, var(--sunken) 70%);
  background-size: 300% 100%;
  animation: shimmer 1.3s linear infinite;
}

@keyframes shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 13.5px;
  background: var(--card);
  opacity: 0;
  translate: 0 8px;
  transition: opacity 0.5s var(--ease), translate 0.5s var(--spring);
}

.chip.is-in {
  opacity: 1;
  translate: 0 0;
}

.kcal {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 800;
  font-size: 44px;
  letter-spacing: -0.04em;
}

.kcal small {
  font-size: 16px;
  color: var(--muted);
  letter-spacing: 0;
}

/* ---------- Bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.tile {
  position: relative;
  grid-column: span 2;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
  display: grid;
  gap: 12px;
  align-content: start;
  overflow: hidden;
  transition: transform 0.6s var(--spring), box-shadow 0.6s var(--ease);
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.tile--wide {
  grid-column: span 3;
}

.tile--ink {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.tile--ink p {
  color: rgba(255, 255, 255, 0.65);
}

.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

.tile__art {
  height: 150px;
  display: grid;
  align-items: end;
}

@media (max-width: 980px) {
  .tile,
  .tile--wide {
    grid-column: span 3;
  }
}

@media (max-width: 640px) {
  .tile,
  .tile--wide {
    grid-column: span 6;
  }
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 130px;
  position: relative;
}

.bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 22px;
  border-top: 2px dashed var(--mint);
}

.bars span {
  flex: 1;
  border-radius: 8px;
  background: var(--ink);
  height: var(--h);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 1s var(--spring);
}

.bars span.over {
  background: var(--heart);
}

.bars span.today {
  position: relative;
}

.bars span.today::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 11px;
  height: 11px;
  translate: -50% 0;
  border-radius: 50%;
  background: var(--lime);
}

.is-in .bars span {
  transform: scaleY(1);
}

.line-chart path.trend {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s var(--ease);
}

.line-chart .area {
  opacity: 0;
  transition: opacity 1s 0.8s var(--ease);
}

.line-chart .last {
  transform: scale(0);
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.6s 1.4s var(--spring);
}

.is-in .line-chart path.trend {
  stroke-dashoffset: 0;
}

.is-in .line-chart .area {
  opacity: 1;
}

.is-in .line-chart .last {
  transform: scale(1);
}

.hearts {
  display: flex;
  gap: 18px;
  align-items: center;
  height: 120px;
}

.hearts svg {
  width: 52px;
  height: 52px;
  overflow: visible;
}

.hearts .outline path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
}

.hearts .beat {
  animation: beat 1.8s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}

.hearts .ripple {
  fill: none;
  stroke: var(--heart);
  stroke-width: 2;
  transform-origin: center;
  transform-box: fill-box;
  animation: ripple 1.8s ease-out infinite;
}

@keyframes ripple {
  from {
    transform: scale(0.6);
    opacity: 0.7;
  }
  to {
    transform: scale(1.8);
    opacity: 0;
  }
}

.hearts figcaption {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  margin-top: 6px;
}

.coach-bubbles {
  display: grid;
  gap: 8px;
}

.bubble {
  justify-self: start;
  max-width: 92%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  translate: 0 10px;
  transition: opacity 0.5s var(--ease), translate 0.5s var(--spring);
}

.bubble--me {
  justify-self: end;
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}

.is-in .bubble {
  opacity: 1;
  translate: 0 0;
}

.is-in .bubble:nth-child(2) {
  transition-delay: 0.5s;
}

.is-in .bubble:nth-child(3) {
  transition-delay: 0.9s;
}

.is-in .bubble:nth-child(4) {
  transition-delay: 1.3s;
}

.pulse path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.4s var(--ease);
}

.is-in .pulse path {
  stroke-dashoffset: 0;
}

.big-number {
  font-weight: 800;
  font-size: 52px;
  letter-spacing: -0.05em;
  line-height: 1;
}

.marquee {
  display: flex;
  overflow: hidden;
  mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  gap: 10px;
  padding-inline-end: 10px;
  animation: marquee 22s linear infinite;
  flex: none;
}

.marquee__track span {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--canvas);
  border: 1px solid var(--line);
  font-weight: 700;
  white-space: nowrap;
}

@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}

/* ---------- Ekranlar ---------- */

.gallery {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px max(var(--gutter), calc(50vw - var(--max) / 2)) 40px;
  margin-inline: calc(50% - 50vw);
  cursor: grab;
  scrollbar-width: none;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.shot {
  scroll-snap-align: center;
  flex: none;
  display: grid;
  gap: 18px;
  justify-items: center;
}

.shot {
  perspective: 1000px;
  user-select: none;
}

.shot .phone {
  --w: 250px;
}

.gallery img {
  -webkit-user-drag: none;
  pointer-events: none;
}

.shot figcaption {
  display: grid;
  gap: 2px;
  text-align: center;
  max-width: 250px;
}

.shot figcaption b {
  font-size: 17px;
  letter-spacing: -0.01em;
}

.shot figcaption span {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Gizlilik ---------- */

.privacy-band {
  background: var(--ink);
  color: #fff;
  border-radius: 44px;
  padding: clamp(36px, 7vw, 90px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  overflow: hidden;
  position: relative;
}

.privacy-band::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  right: -140px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 196, 168, 0.35), transparent 65%);
}

.privacy-band h2 {
  color: #fff;
}

.privacy-band p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.privacy-list {
  display: grid;
  gap: 14px;
  position: relative;
}

.privacy-list li {
  list-style: none;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-list svg {
  flex: none;
  width: 28px;
  height: 28px;
}

.privacy-list b {
  display: block;
  margin-bottom: 2px;
}

.privacy-list span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 15.5px;
}

@media (max-width: 880px) {
  .privacy-band {
    grid-template-columns: 1fr;
  }
}

/* ---------- Son çağrı ve alt bilgi ---------- */

.cta {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 22px;
}

.cta .lead {
  max-width: 40ch;
}

.cta .stores {
  justify-content: center;
}

.cta__icon {
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 18px 30px rgba(18, 22, 20, 0.22));
}

.cta__icon svg {
  width: 100%;
  height: 100%;
}

.footer {
  border-top: 1px solid var(--line);
  padding-block: 40px 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 15px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.footer a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink-2);
}

.footer a:hover {
  color: var(--mint-deep);
}

/* ---------- Görünür olunca ---------- */

.reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.9s var(--ease), translate 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

span.rise {
  display: inline-block;
}

.eyebrow.rise {
  display: inline-flex;
}

.rise {
  opacity: 0;
  translate: 0 0.5em;
  filter: blur(10px);
  transition:
    opacity 1s var(--ease),
    translate 1s var(--ease),
    filter 1s var(--ease);
  transition-delay: var(--d, 0s);
}

.is-ready .rise {
  opacity: 1;
  translate: 0 0;
  filter: blur(0);
}

.reveal.is-in {
  opacity: 1;
  translate: 0 0;
}

/* ---------- Belgeler (gizlilik, şartlar, destek) ---------- */

.doc {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding-block: 56px 90px;
  align-items: start;
}

@media (max-width: 900px) {
  .doc {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .toc {
    display: none;
  }
}

.toc {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 4px;
  font-size: 14.5px;
}

.toc a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 12px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.toc a:hover {
  background: rgba(18, 22, 20, 0.05);
  color: var(--ink);
}

.doc article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 5vw, 56px);
  max-width: 780px;
}

.doc h1 {
  font-size: clamp(38px, 5vw, 56px);
  margin-bottom: 10px;
}

.doc .updated {
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 28px;
}

.doc h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 38px 0 10px;
  scroll-margin-top: 110px;
}

.doc p,
.doc li {
  color: #2f3531;
  font-size: 16.5px;
}

.doc ul {
  padding-inline-start: 22px;
}

.doc li {
  margin-bottom: 6px;
}

.doc .note {
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--mint-soft);
  border-inline-start: 4px solid var(--mint);
  font-weight: 500;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 12px 0;
}

.doc th,
.doc td {
  text-align: start;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.doc th {
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 640px) {
  .doc thead {
    display: none;
  }
  .doc tr,
  .doc td {
    display: block;
  }
  .doc tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .doc td {
    border: 0;
    padding: 2px 0;
  }
  .doc td + td {
    color: var(--muted);
  }
}

.steps-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.steps-list li {
  counter-increment: step;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 18px;
  background: var(--canvas);
}

.steps-list li::before {
  content: counter(step);
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

.doc details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.doc details summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.doc details summary::after {
  content: "+";
  font-weight: 800;
  transition: transform 0.3s var(--ease);
}

.doc details[open] summary::after {
  transform: rotate(45deg);
}

.doc details p {
  margin: 10px 0 0;
}

[lang-block][hidden] {
  display: none;
}


/* ---------- Ek bileşenler ---------- */

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}

.split .section__head {
  margin-bottom: 0;
}

.split > *,
.bento > *,
.flow > *,
.hero > * {
  min-width: 0;
}

@media (max-width: 520px) {
  .legend span {
    font-size: 12.5px;
    gap: 5px;
  }
  .legend b {
    font-size: 19px;
  }
  .hearts {
    gap: 10px;
  }
  .hearts svg {
    width: 40px;
    height: 40px;
  }
  .hearts figcaption {
    font-size: 11px;
  }
  .capsule {
    height: 52px;
  }
}

@media (max-width: 920px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.pills {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--sunken);
  gap: 2px;
  justify-self: start;
}

.pills button {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--spring);
}

.pills button:active {
  transform: scale(0.95);
}

.pills button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.panel {
  position: relative;
  height: 210px;
  border-radius: 22px;
  background: var(--canvas);
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: hidden;
}

.stream__title .caret {
  width: 2px;
  height: 22px;
  margin-inline-start: 3px;
  background: var(--mint);
  border-radius: 2px;
  animation: caret 1s steps(1) infinite;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

.stream {
  gap: 10px;
}

.stream .chip {
  padding: 5px 10px;
  font-size: 12.5px;
}

.stream .kcal {
  font-size: 34px;
  line-height: 1;
}

.skeleton[hidden] {
  display: none;
}

.panel--portion {
  align-content: space-between;
}

.panel--portion .pills {
  display: flex;
  justify-self: stretch;
  background: var(--card);
}

.panel--portion .pills button {
  flex: 1;
  padding: 7px 4px;
  font-size: 13.5px;
}

.rings {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.ring {
  margin: 0;
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
}

.ring svg {
  width: 56px;
  height: 56px;
  rotate: -90deg;
}

.ring circle {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
}

.ring .track {
  stroke: var(--line);
}

.ring .val {
  stroke: var(--c);
  stroke-dasharray: 100;
  stroke-dashoffset: var(--off, 100);
  transition: stroke-dashoffset 0.9s var(--spring);
}

.ring b {
  position: absolute;
  top: 28px;
  left: 50%;
  translate: -50% -50%;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.ring figcaption {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.hearts figure {
  margin: 0;
  display: grid;
  justify-items: center;
}

.hearts .gone path {
  fill: none;
  stroke: var(--muted);
  stroke-width: 2.5;
  stroke-dasharray: 3 4;
  opacity: 0.6;
}

.bell {
  width: 44px;
  height: 44px;
  flex: none;
  transform-origin: 50% 12%;
}

.is-in .bell {
  animation: ring-bell 2.6s 0.6s ease-in-out infinite;
}

@keyframes ring-bell {
  0%,
  40%,
  100% {
    rotate: 0deg;
  }
  6% {
    rotate: 14deg;
  }
  14% {
    rotate: -12deg;
  }
  22% {
    rotate: 8deg;
  }
  30% {
    rotate: -4deg;
  }
}

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 20px;
  background: var(--canvas);
  border: 1px solid var(--line);
  opacity: 0;
  translate: 0 -12px;
  transition: opacity 0.6s 0.4s var(--ease), translate 0.7s 0.4s var(--spring);
}

.is-in .notice {
  opacity: 1;
  translate: 0 0;
}

.notice svg {
  flex: none;
  width: 36px;
  height: 36px;
}

.notice div {
  flex: 1;
}

.notice header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}

.notice b {
  display: block;
  font-size: 15px;
}

.notice span {
  font-size: 14.5px;
  color: var(--ink-2);
}

.tile__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--canvas);
  border: 1px solid var(--line);
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}

.tile--ink .tag {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.ticker .marquee__track span {
  background: var(--card);
  font-size: 17px;
  padding: 12px 20px;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  justify-self: start;
  transition: background 0.3s var(--ease), transform 0.4s var(--spring);
}

.more:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateX(3px);
}

.privacy-band > div {
  display: grid;
  gap: 18px;
  position: relative;
}

.privacy-list {
  margin: 0;
  padding: 0;
}

mark.todo {
  background: #fff1b8;
  color: #6b4e00;
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 600;
}

.lost {
  min-height: 64vh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 18px;
}

.lost .kcal {
  font-size: clamp(90px, 18vw, 180px);
}

/* ---------- Diller ---------- */

:lang(ar),
:lang(fa) {
  font-family: "Vazirmatn", "Geist", system-ui, sans-serif;
}

:lang(ar) :is(h1, h2, h3),
:lang(fa) :is(h1, h2, h3) {
  letter-spacing: 0;
  line-height: 1.3;
}

:lang(zh) :is(h1, h2, h3) {
  letter-spacing: 0.01em;
  line-height: 1.2;
  font-weight: 700;
}

:lang(zh) h1 {
  font-size: clamp(40px, 6.2vw, 84px);
}

:lang(ar) .lead,
:lang(fa) .lead {
  line-height: 1.8;
}

[dir="rtl"] .ink-word svg {
  scale: -1 1;
}

[dir="rtl"] .capsule::after {
  mask: linear-gradient(270deg, transparent var(--filled, 55%), #000 calc(var(--filled, 55%) + 2%));
  -webkit-mask: linear-gradient(270deg, transparent var(--filled, 55%), #000 calc(var(--filled, 55%) + 2%));
}

[dir="rtl"] .mini-capsule span {
  transform-origin: right;
}

[dir="rtl"] .marquee__track {
  animation-name: marquee-rtl;
}

@keyframes marquee-rtl {
  to {
    transform: translateX(100%);
  }
}

[dir="rtl"] .more:hover {
  transform: translateX(-3px);
}

.lang-menu {
  position: relative;
}

.lang-menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--sunken);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  user-select: none;
  transition: background 0.25s var(--ease);
}

.lang-menu summary::-webkit-details-marker {
  display: none;
}

.lang-menu summary:hover,
.lang-menu[open] summary {
  background: var(--ink);
  color: #fff;
}

.lang-menu summary svg {
  width: 17px;
  height: 17px;
}

.lang-menu__list {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  z-index: 60;
  display: grid;
  min-width: 190px;
  padding: 8px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(246, 248, 244, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-lift);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transform-origin: top right;
  animation: menu-in 0.35s var(--spring);
}

[dir="rtl"] .lang-menu__list {
  transform-origin: top left;
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(-6px);
  }
}

.lang-menu__list a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 14px;
  transition: background 0.2s var(--ease);
}

.lang-menu__list a:hover {
  background: rgba(18, 22, 20, 0.06);
}

.lang-menu__list a[aria-current="true"] {
  background: var(--ink);
  color: #fff;
}

@media (max-width: 760px) {
  .lang-menu {
    margin-inline-start: auto;
  }
}

.doc .translation {
  font-size: 14.5px;
  color: var(--muted);
  margin: -14px 0 24px;
}

@media (max-width: 900px) {
  .doc .toc {
    display: none;
  }
}

/* ---------- Hareketi azalt ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .rise,
  .float,
  .chip,
  .bubble {
    opacity: 1;
    translate: 0 0;
  }
  .ink-word .wave {
    stroke-dashoffset: 0;
  }
  .ink-word .heart,
  .mini-capsule span,
  .bars span {
    transform: none;
  }
}
