/* ═══════════════════════════════════════════════════════════
   YiYo — ana sayfa ve alt sayfalar (meal-plan, faq …)
   site.css'teki token'ları tüketir. Üst çubuk, telefon çerçevesi,
   plakalar, SSS, indir bölümü ve mobil alt çubuk alt sayfalarda da
   kullanılıyor; yalnız alt sayfalara özgü düzen css/sub.css'te. Ölçüler: --pw telefon çerçevesinin genişliği,
   geri kalan oranlar ondan türüyor.
   ═══════════════════════════════════════════════════════════ */

:root {
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 54px);
  --radius-plate: 32px;
  --radius-card: 20px;
}

html { scroll-padding-top: 84px; }
body { font-size: 17px; }

main { display: block; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Tipografi ────────────────────────────────────────── */

h1, h2, h3 {
  font-family: "Bricolage Grotesque","Bricolage Grotesque Fallback", "Instrument Sans","Instrument Sans Fallback", sans-serif;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.02;
  text-wrap: balance;
  color: var(--fg);
}

h1 { font-size: clamp(38px, 6vw, 70px); line-height: .98; letter-spacing: -.035em; }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: clamp(19px, 1.7vw, 24px); letter-spacing: -.01em; line-height: 1.2; }
.split .copy h2 { font-size: clamp(30px, 3.4vw, 42px); }

.lede {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 34em;
  text-wrap: pretty;
}

p { text-wrap: pretty; }

.copy { max-width: 36em; }
.copy p + p { margin-top: 14px; }
.copy h2 + .lede, .copy h2 + p { margin-top: 18px; }

/* Seçenek listesi: satır içi metin, nokta ile ayrılmış (buton gibi
   görünen tıklanmaz haplar yerine) */
.tags {
  list-style: none;
  display: block;
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-soft);
  max-width: 36em;
}
.tags li { display: inline; }
/* Nokta önceki maddeye yapışık: satır kırılınca yeni satır "·" ile başlamasın */
.tags li:not(:last-child)::after { content: "\00a0· "; color: var(--fg-muted); }

/* ── Üst çubuk ────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.topbar.is-stuck { border-bottom-color: var(--edge-soft); }

.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 68px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: "Bricolage Grotesque","Bricolage Grotesque Fallback", sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.01em;
  color: var(--fg);
}
.wordmark img { width: 30px; height: 30px; border-radius: 9px; display: block; }

.topbar nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.topbar .link {
  display: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-soft);
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
.topbar .link:hover,
.topbar .link:focus-visible { color: var(--fg); background: var(--edge-soft); }

.topbar .tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

/* Nav CTA: masaüstünde yazı + QR açılır kutusu, mobilde kısa yazı */
.get {
  position: relative;
  display: inline-flex;
}
.get .btn { padding: 11px 18px; font-size: 14px; }
.get .btn .long { display: none; }
.get .btn .short { display: inline; }

.qr-pop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 184px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: 16px;
  box-shadow: 0 18px 44px -20px var(--shadow);
  text-align: center;
  font-size: 13px;
  line-height: 1.35;
  color: var(--fg-soft);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
/* QR her temada açık zemin + koyu modül: ters kontrastlı kodu her okuyucu çözemiyor */
.qr-pop svg { width: 148px; height: 148px; display: block; margin: 0 auto 8px; background: #fff; color: #1E3A5F; border-radius: 8px; padding: 4px; }
/* Yalnız imleçle: klavye kullanıcısı indir bölümündeki erişilebilir QR'a ulaşıyor */
@media (hover: hover) and (pointer: fine) and (min-width: 761px) {
  .get:hover .qr-pop { opacity: 1; transform: none; pointer-events: auto; }
}

@media (min-width: 960px) {
  .topbar .link { display: inline-block; }
  .get .btn .long { display: inline; }
  .get .btn .short { display: none; }
}

/* Maskot çizimleri: width CSS'ten, height orandan (HTML height özniteliği ezilir) */
.buddy { height: auto; display: block; }

/* ── Telefon çerçevesi ────────────────────────────────── */

.phone {
  --pw: 280px;
  width: var(--pw);
  flex: none;
  aspect-ratio: 1206 / 2622;
  padding: calc(var(--pw) * .03);
  border-radius: calc(var(--pw) * .155);
  background: #15171A;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    0 40px 70px -36px var(--shadow),
    0 10px 24px -16px var(--shadow);
}
.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: calc(var(--pw) * .125);
  background: var(--surface);
}
:root[data-theme="dark"] .phone {
  background: #2A3038;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 40px 70px -36px rgba(0, 0, 0, .9);
}
:root[data-theme="dark"] .plate { border: 1px solid var(--edge-soft); }

/* Kesik telefon: yalnız ekranın üst kısmı, alt taraf kartın içinde kaybolur */
.crop {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
}
.crop .phone { margin: 0 auto; }

/* ── Bölüm düzeni ─────────────────────────────────────── */

/* Bol boşluk, kısa metin: her bölüm tek fikir, ayrıntı alt sayfada */
.section { padding-block: clamp(56px, 8vw, 112px); }
.section + .section { padding-top: 0; }

.center { text-align: center; }
h2.center, .section-head.center { margin-inline: auto; }
h2.center { max-width: 18em; }
.section-head.center .lede { margin-inline: auto; }

.plate {
  --plate-pad: clamp(28px, 5vw, 64px);
  border-radius: var(--radius-plate);
  padding: var(--plate-pad);
  background: var(--surface);
}
.plate--peach { background: var(--tint-peach); }
.plate--sky   { background: var(--tint-sky); }
.plate--leaf  { background: var(--tint-leaf); }
.plate--sand  { background: var(--tint-sand); }
.plate--navy  { background: var(--navy); color: var(--on-navy); }
.plate--navy h2, .plate--navy h3 { color: var(--on-navy); }
.plate--navy .lede, .plate--navy p { color: var(--on-navy-muted); }
.plate--navy a { color: var(--on-navy); }

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.1fr .9fr; }
  .split--flip { grid-template-columns: 1fr 1fr; }
  .split--flip > .copy { order: 2; }
}

.section-head { max-width: 40em; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head .lede { margin-top: 14px; }

/* "Devamı" bağlantısı: alt sayfaya giden tek kapı */
/* Satır içi: uzun çeviride iki satıra kırılırsa ok metnin sonunda kalır */
.more {
  display: inline;
  font-weight: 600;
  font-size: 16px;
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}
.more::after { content: "\00a0→" / ""; display: inline-block; transition: transform .2s ease; }
.more:hover::after, .more:focus-visible::after { transform: translateX(4px); }
.plate--navy .more { color: var(--on-navy); }
.more-row { margin-top: 26px; }
.copy .more-row { margin-top: 24px; }

/* ── Hero ─────────────────────────────────────────────── */

.hero { padding-block: clamp(24px, 5vw, 72px) clamp(40px, 6vw, 88px); }

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.hero .copy { max-width: 32em; }
.hero .kicker { font-size: 15px; font-weight: 500; color: var(--fg-muted); margin-bottom: 18px; }
.hero h1 { max-width: 11em; }
.hero .lede { margin-top: 22px; font-size: clamp(18px, 1.5vw, 22px); max-width: 24em; }
.hero .store-row { margin-top: 30px; }
.hero .assurance { margin-top: 16px; font-size: 14px; color: var(--fg-muted); }

.stage {
  --pw: clamp(220px, 54vw, 280px);
  position: relative;
  width: min(100%, 540px);
  margin-inline: auto;
  min-height: calc(var(--pw) * 2.17 + 40px);
  display: flex;
  justify-content: center;
}
.stage .phone { transform: rotate(-3deg); position: relative; z-index: 2; }

/* Telefonun arkasında yumuşak bir güneş, iki yanında gerçek tabaklar */
.stage .sun {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 46%;
  width: calc(var(--pw) * 1.9);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 45%, var(--tint-peach) 0 58%, transparent 59%);
}
.stage .dish {
  position: absolute;
  z-index: 1;
  width: calc(var(--pw) * .62);
  height: auto;
  border-radius: 50%;
  box-shadow: 0 26px 50px -26px var(--shadow);
}
.stage .dish-1 { left: -2%; top: 18%; }
.stage .dish-2 { right: -4%; bottom: 4%; width: calc(var(--pw) * .7); }

/* Uygulamanın gerçek verileriyle çerçeve dışına taşan kartlar */
.chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 18px 40px -22px var(--shadow);
  border: 1px solid var(--edge-soft);
  font-size: 14px;
  line-height: 1.2;
  color: var(--fg);
  white-space: nowrap;
}
.chip img { width: 34px; height: 34px; display: block; object-fit: contain; }
.chip b { display: block; font-weight: 700; font-size: 15px; }
.chip small { display: block; color: var(--fg-soft); font-size: 12px; margin-top: 2px; }
.chip--peach { background: var(--tint-peach); }
.chip--sky   { background: var(--tint-sky); }
.chip--leaf  { background: var(--tint-leaf); }

.chip-1 { top: -2%; left: 0; }
.chip-2 { top: 40%; right: 0; }
.chip-3 { bottom: 30%; left: 0; }

.stage .buddy {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: -8px;
  width: clamp(110px, 24vw, 160px);
  height: auto;
}

@media (max-width: 899px) {
  /* Dar ekranda kalabalık olmasın: tek tabak, iki kart */
  .stage .dish-1 { display: none; }
  .stage .dish-2 { right: -6%; bottom: 12%; width: calc(var(--pw) * .55); }
  .chip-3 { display: none; }
}

@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
  .stage { margin-inline: auto 0; }
  .chip-1 { left: 2%; }
  .chip-2 { right: -6%; }
  .chip-3 { left: -4%; }
  .stage .dish-1 { left: -10%; }
  .stage .buddy { right: -20px; bottom: -14px; width: clamp(120px, 12vw, 150px); }
}

/* Tek seferlik giriş: telefon yerine oturur, kartlar ardından çıkar.
   Yalnız JS çalışıyorsa (html.js) — aksi hâlde her şey baştan yerinde. */
.js .stage .phone { animation: settle .8s cubic-bezier(.2, .7, .2, 1) both; }
.js .stage .chip  { animation: pop .5s cubic-bezier(.2, .7, .2, 1) both; }
.js .stage .dish  { animation: pop .7s cubic-bezier(.2, .7, .2, 1) .25s both; }
.js .stage .chip-1 { animation-delay: .45s; }
.js .stage .chip-2 { animation-delay: .6s; }
.js .stage .chip-3 { animation-delay: .75s; }
.js .stage .buddy { animation: pop .6s cubic-bezier(.2, .7, .2, 1) .5s both; }

@keyframes settle {
  from { opacity: 0; transform: translateY(28px) rotate(-6deg); }
  to   { opacity: 1; transform: translateY(0) rotate(-3deg); }
}
@keyframes pop {
  from { opacity: 0; transform: translateY(10px) scale(.94); }
  to   { opacity: 1; transform: none; }
}

/* ── Nasıl çalışır: üç kare ───────────────────────────── */

#nasil-calisir h2 { margin-bottom: clamp(28px, 4vw, 48px); }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 1000px;
  margin-inline: auto;
}
.step { text-align: center; }
.step h3 { margin-top: 18px; color: var(--go-ink); font-size: 19px; }
.step p { margin: 6px auto 0; color: var(--fg-soft); font-size: 16px; max-width: 22em; }

/* Kare görsel: ekran görüntüsünün üst kısmı ya da fotoğraf */
.shot {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 26px;
  container-type: inline-size;
}
.shot--sand  { background: var(--tint-sand); }
.shot--peach { background: var(--tint-peach); }
.shot--photo { padding: 0; background: var(--tint-sky); }
.shot--photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
.shot .phone { --pw: 64cqw; box-shadow: 0 30px 50px -30px var(--shadow); }

@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}
@media (max-width: 759px) {
  .steps { max-width: 420px; }
}

/* ── Plan: taşan hafta şeridi ─────────────────────────── */

.plan-visual { position: relative; display: flex; justify-content: center; }
.plan-visual .phone { --pw: clamp(220px, 50vw, 280px); }
.plan-visual .buddy {
  position: absolute;
  left: 2%;
  bottom: -6px;
  width: clamp(96px, 18vw, 150px);
  z-index: 3;
}
@media (max-width: 899px) { .plan-visual .buddy { left: auto; right: 0; width: 96px; } }

.week {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.week > li { min-width: 0; }
.week > li {
  background: var(--surface);
  border-radius: 18px;
  padding: 12px 12px 10px;
  border: 1px solid var(--edge-soft);
}
.week .day {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--fg-muted);
  margin-bottom: 8px;
}
.week .day.today {
  color: var(--go-ink);
}
.week ul { list-style: none; display: grid; gap: 6px; }
.week ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.2;
  color: var(--fg);
  min-width: 0;
}
.week ul li img { width: 24px; height: 24px; object-fit: contain; flex: none; }
.week ul li span { display: block; min-width: 0; overflow-wrap: anywhere; }
.week ul li small { display: block; color: var(--fg-muted); font-size: 12px; margin-top: 2px; }

@media (max-width: 1099px) {
  .week {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    margin-inline: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 10px;
    scrollbar-width: thin;
  }
  .week > li { flex: 0 0 156px; scroll-snap-align: start; }
}

.plan-visual + .week, .plate + .week { margin-top: 16px; }

/* ── Tarif: fotoğraf kartları ─────────────────────────── */

.dishes {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.6vw, 20px);
}
.dish-card {
  background: var(--surface);
  border: 1px solid var(--edge-soft);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 44px -34px var(--shadow);
}
.dish-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.dish-card span {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 12px 16px 14px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.25;
}
.dish-card span { flex-wrap: wrap; row-gap: 2px; hyphens: auto; }
.dish-card small { color: var(--fg-muted); font-weight: 500; font-size: 13px; white-space: nowrap; }
@media (max-width: 520px) {
  .dish-card span { flex-direction: column; gap: 2px; padding: 10px 12px 12px; font-size: 14px; }
}

/* ── Hedefler: renkli kartlar ─────────────────────────── */

.goals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.6vw, 20px);
}
.goal {
  position: relative;
  min-height: 190px;
  border-radius: 24px;
  padding: 22px 22px 22px;
  overflow: hidden;
}
.goal--peach { background: var(--tint-peach); }
.goal--leaf  { background: var(--tint-leaf); }
.goal--sky   { background: var(--tint-sky); }
.goal--sand  { background: var(--tint-sand); }
.goal h3 { font-size: clamp(20px, 2vw, 25px); }
.goal p { hyphens: auto; overflow-wrap: break-word; margin-top: 8px; font-size: 14.5px; line-height: 1.45; color: var(--fg-soft); max-width: calc(100% - 70px); }
.goal img {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 80px;
  height: 80px;
  object-fit: contain;
}
@media (min-width: 900px) {
  .goals-band { grid-template-columns: .8fr 1.2fr; }
}
@media (max-width: 520px) {
  .goals { grid-template-columns: 1fr; }
  .goal { min-height: 0; padding-right: 100px; }
  .goal p { max-width: none; }
}

/* ── Takip: iki kart ──────────────────────────────────── */

.pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.pair .card {
  background: var(--surface);
  border-radius: var(--radius-plate);
  border: 1px solid var(--edge-soft);
  padding: 24px 24px 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  overflow: hidden;
}
.pair .card p { color: var(--fg-soft); font-size: 15.5px; margin-top: 8px; }
.pair .crop {
  position: relative;
  overflow: hidden;
  height: 430px;
  border-radius: 20px 20px 0 0;
  background: var(--tint-peach);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 22px;
}
.pair .phone { --pw: 210px; box-shadow: none; flex: none; }
/* Telefonun üstü görünür, alt ucu kartın altından taşar; grafik
   ekranın üst üçte ikisinde olduğu için kayma gerekmiyor (eski sürüm
   telefonu -190px kaydırıp kartın içinde bitiriyor, altta boş şerit
   bırakıyordu). */
.pair .crop--chart { background: var(--tint-sand); }
@media (min-width: 760px) {
  .pair { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 759px) { .pair .crop { height: 380px; } }

/* ── İnsanlar + sayılar ───────────────────────────────── */

.people-band .photo {
  position: relative;
  margin: 0;
}
.people-band .photo > img:first-child {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-plate);
}
.people-band .buddy {
  position: absolute;
  right: -14px;
  bottom: -26px;
  width: clamp(84px, 11vw, 132px);
}

/* ── Gizlilik bandı ───────────────────────────────────── */

.privacy-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.privacy-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--on-navy);
}
.privacy-list li::before {
  content: "";
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--go) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.privacy-links { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; font-size: 15px; }
.privacy-links a { text-underline-offset: 4px; }
@media (min-width: 760px) { .privacy-list { grid-template-columns: repeat(3, 1fr); } }

/* ── SSS ──────────────────────────────────────────────── */

#sss h2 { margin-bottom: clamp(24px, 3vw, 40px); }
.faq { max-width: 760px; margin-inline: auto; }
.faq details { border-top: 1px solid var(--edge); }
.faq details:last-child { border-bottom: 1px solid var(--edge); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  font-weight: 600;
  font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+" / "";
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--edge);
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
  color: var(--fg-muted);
  transition: transform .25s ease, background-color .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--edge-soft); }
.faq summary:hover::after { border-color: var(--fg); color: var(--fg); }
.faq details p { padding: 0 4px 20px; color: var(--fg-soft); max-width: 60ch; }
.faq details p a { color: var(--accent-ink); }

/* ── İndir ────────────────────────────────────────────── */

.section.download { padding-bottom: clamp(16px, 3vw, 32px); }
.download .plate { position: relative; overflow: hidden; }
.download .split { align-items: center; }
.download .store-row { margin-top: 26px; }
.download .qr {
  margin-top: 26px;
  display: none;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--fg-muted);
  max-width: 24em;
}
.download .qr svg {
  width: 116px; height: 116px;
  padding: 8px;
  background: #fff;
  color: #1E3A5F;
  border-radius: 12px;
  flex: none;
}
@media (min-width: 900px) { .download .qr { display: flex; } }

.download .disclaimer {
  margin-top: 26px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-muted);
  max-width: 60ch;
}

.download .end-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 300px;
}
.download .end-visual .phone {
  --pw: clamp(220px, 46vw, 270px);
  position: relative;
  z-index: 1;
  transform: rotate(6deg) translateY(20%);
}
.download .end-visual .dish {
  position: absolute;
  z-index: 0;
  right: -2%;
  top: 2%;
  width: clamp(150px, 20vw, 220px);
  height: auto;
  border-radius: 50%;
  box-shadow: 0 26px 50px -26px var(--shadow);
}
.download .end-visual .buddy {
  position: absolute;
  left: -6%;
  bottom: -12px;
  width: clamp(96px, 13vw, 140px);
  z-index: 2;
}

/* Sayfanın altında mobil çubuk varken footer'ın son satırı görünür kalsın */
body.has-dock { padding-bottom: 72px; }
@media (min-width: 761px) { body.has-dock { padding-bottom: 0; } }

/* ── Mobil alt çubuk ──────────────────────────────────── */

.dock[hidden] { display: none; }
.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--edge-soft);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform .3s ease, visibility 0s .3s;
}
.dock.is-on { transform: none; visibility: visible; transition-delay: 0s; }
.dock .btn { flex: 1; padding: 14px 18px; font-size: 15px; }
.dock .badge-free { flex: none; }
@media (min-width: 761px) { .dock { display: none; } }

/* Lacivert zeminde odak halkası görünür kalsın (1.4.11) */
.plate--navy :focus-visible,
.site-footer :focus-visible { outline-color: var(--on-navy); }

/* ── Hareket tercihleri ───────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .js .stage .phone, .js .stage .chip, .js .stage .buddy, .js .stage .dish { animation: none; }
  .dock, .faq summary::after, .qr-pop, .topbar, .store-badge, .more { transition: none; }
}

/* ── Plan plakası: fotoğraf + plakanın içindeki hafta şeridi ── */

.plan-visual.photo { margin: 0; display: block; }
.plan-visual.photo > img:first-child {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 24px;
}
.plate .week { margin-top: clamp(24px, 3vw, 40px); }
.week .day.today {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--go-ink);
  color: #fff;
}
:root[data-theme="dark"] .week .day.today { color: var(--bg); }
.week > li:has(.today) { border-color: var(--go-edge); box-shadow: 0 12px 30px -20px var(--shadow); }
@media (min-width: 1100px) {
  .plate .week { gap: 8px; }
  .plate .week > li { padding: 10px 8px 8px; }
  .plate .week ul li { gap: 6px; }
  .plate .week ul li img { width: 20px; height: 20px; }
}
@media (max-width: 1099px) {
  .week { scroll-padding-inline: var(--gutter); }
  /* Plakanın içinde kenardan kenara kaysın, ilk kart iç boşlukta dursun */
  .plate .week {
    margin-inline: calc(-1 * var(--plate-pad));
    padding-inline: var(--plate-pad);
    scroll-padding-inline: var(--plate-pad);
  }
  .plate .week > li { flex-basis: 140px; }
}

.recipe-band .store-row { margin-top: 22px; }

/* Dar ekranda üç adım yan yana kayan şerit (alt alta 1.200px yer kaplıyordu) */
@media (max-width: 759px) {
  .steps {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    gap: 14px;
    max-width: none;
    margin-inline: calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 10px;
    scrollbar-width: thin;
  }
  .step { flex: 0 0 78%; scroll-snap-align: start; }
}

/* Çok dar telefonda alt çubuktaki düğme tek satırda kalsın */
@media (max-width: 400px) {
  .dock .badge-free { display: none; }
  .dock .btn { white-space: nowrap; }
}
