/* bestelklaar.nl: koyu tema. Renk/font/boşluk SADECE :root değişkenlerinde; önce mobil, geniş ekran @media ile.
   Satır içi stil yok (CSP style-src 'self'). Yapı ilhamı: koyu zemin, çok büyük ince başlıklar, tek vurgu rengi, bol boşluk,
   iki kolonlu zigzag bölümler. Renkler Bestelklaar'ın kendi kırmızısından türetildi (kopya değil). */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/fonts/inter-latin-wght.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;
}
/* Metrik uyumlu yedek: Inter yüklenene kadar Arial, Inter'in ölçüsüne yaklaştırılır → font takasında satır sonları/yükseklik kıpırdamaz (CLS). */
@font-face { font-family: "Inter Fallback"; src: local("Arial"); size-adjust: 107.4%; ascent-override: 90.2%; descent-override: 22.5%; line-gap-override: 0%; }

:root {
    --bk-brand: #DB4838; --bk-ink: #3E3E40;
    --font: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    /* Zemin ve metin (koyu). Kontrast: metin/zemin ≥ 15:1, soluk metin ≥ 7:1, vurgu/zemin ≥ 6:1, koyu yazı/vurgu ≥ 6:1. */
    --bg: #0e0d0d; --surface: #161514; --surface-2: #1d1b1a; --line: rgb(255 255 255 / .12);
    --text: #f4f1ee; --muted: #aaa49e;
    --accent: #f26b58; --on-accent: #170b09; --accent-soft: rgb(242 107 88 / .14);

    /* Bölüm tonları (hepsi koyu; LandingDesignTests her biri için metin ≥ 15:1, soluk metin ≥ 7:1 doğrular). Prijs bir ton açık (D3). */
    --tone-hero: #0e0d0d; --tone-calc: #0d1117; --tone-steps: #0c1412; --tone-features: #140f16;
    --tone-control: #16110c; --tone-price: #241311; --tone-faq: #121212; --tone-apply: #170d0c;
    --motif-opacity: .13;   /* motifler (img/motif/*.svg): telefonda hareket fark edilsin diye %13 (önceki %6 görünmüyordu); ince çizgi, metin okunurluğu etkilenmez */
    --route-map-opacity: .34;   /* hero teslimat rotası haritası (img/route/*.svg; çizgiler kendi içinde ~%40): soluk */

    --radius: 20px; --radius-sm: 12px;
    --wrap: 1180px; --gutter: 20px; --section-gap: 96px;
    --h1: clamp(2.5rem, 9vw, 5.6rem);
    --h2: clamp(2rem, 6vw, 3.9rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-weight: 250; letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: var(--h2); margin-bottom: 28px; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 6px; }
p { margin: 0 0 16px; }
[id] { scroll-margin-top: 88px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
          border: 2px solid var(--accent); border-radius: 999px; background: var(--accent); color: var(--on-accent);
          font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s, background-color .15s; }
.button:hover { background: #ff7f6d; border-color: #ff7f6d; }
.button.secondary { background: transparent; color: var(--accent); }
.button.secondary:hover { background: var(--accent-soft); }
.button.small { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.link-quiet { color: var(--text); font-weight: 500; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.link-quiet:hover { color: var(--accent); }
.note { color: var(--muted); font-size: .92rem; }
.eyebrow { margin: 0 0 20px; color: var(--accent); font-size: .85rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

/* --- Üst ve alt --- */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
       padding: 12px var(--gutter); background: rgb(14 13 13 / .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand img { display: block; width: 140px; height: auto; }
.top nav { display: flex; align-items: center; gap: 24px; }
.top nav a:not(.button) { display: none; color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.top nav a:not(.button):hover { color: var(--text); }
.bottom { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 0; padding: 40px var(--gutter);
          border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.bottom ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.bottom a { color: inherit; }

/* Bölümler tam genişlikte bant (kendi tonu + motifi); içerik --wrap genişliğinde ortalı. Boşluk: üst + alt yarım aralık (toplam eskisiyle aynı). */
main > section {
    --tone: var(--tone-hero); --tone-next: var(--tone);
    position: relative; isolation: isolate; overflow: clip;
    padding: calc(var(--section-gap) / 2) max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
    background: var(--glow, linear-gradient(transparent, transparent)), linear-gradient(to bottom, var(--tone) calc(100% - 96px), var(--tone-next) 100%);
    background-color: var(--tone);
}
/* Motif katmanı: bölümün kendi arka planının üstünde, içeriğin altında; metin okunurluğuna dokunmaz. */
main > section::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: var(--motif-opacity); }
main.text { max-width: 760px; margin: 0 auto; padding: 56px var(--gutter) var(--section-gap); }
main.text h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); margin-bottom: 24px; }
main.text h2 { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.01em; margin: 36px 0 10px; }
.center { text-align: center; }

/* --- Hero: büyük ince başlık + sipariş fişi parçacık animasyonu (hero.js; JS yoksa/azaltılmış harekette sade/sabit) --- */
.hero { position: relative; display: grid; align-items: center; gap: 8px; padding-top: 56px; min-height: 0; }
.hero-text { position: relative; z-index: 1; max-width: 880px; }
.hero h1 { font-size: var(--h1); margin-bottom: 28px; }
.hero h1 span { display: block; color: var(--muted); }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); font-weight: 300; color: var(--muted); max-width: 56ch; margin: 0 0 32px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin: 0 0 20px; }

/* Hero sahnesi (süs, aria-hidden): telefon (müşteri) + restoran paneli kartı. Tüm ölçüler cqw (sahne genişliğine orantılı); yalnız transform/opacity animasyonu.
   Temel stil = SON DURUM (kart görünür, "Onderweg"); animasyon `both` ile 0%'dan başlayıp son durumda kalır: azaltılmış harekette/JS'siz sabit son durum. */
.hero-scene { width: 100%; max-width: 480px; margin-top: 24px; justify-self: center; }
.scene { container-type: inline-size; position: relative; width: 100%; aspect-ratio: 1 / .96; pointer-events: none; }
.scene-stage { position: absolute; inset: 0; animation: sc-fade 4s ease 2; }   /* ilk iki döngünün sonunda yumuşak sönme; 3. döngü son durumda kalır */
.sc-phone { position: absolute; right: 1cqw; top: 2cqw; width: 42cqw; height: 88cqw; padding: 2cqw; border-radius: 7cqw; background: #000; border: 1px solid var(--line); }
.sc-screen { position: relative; display: flex; flex-direction: column; gap: 3cqw; height: 100%; padding: 4cqw 3cqw; border-radius: 5cqw; overflow: hidden;
             background: var(--surface); font-size: 3cqw; line-height: 1.3; }
.sc-bar { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.sc-cart { position: relative; padding: 1.2cqw 2.4cqw; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 2.6cqw; font-weight: 500; }
.sc-badge { position: absolute; top: -2cqw; right: -1.5cqw; min-width: 4cqw; height: 4cqw; border-radius: 50%; background: var(--accent); color: var(--on-accent);
            font-size: 2.6cqw; font-weight: 700; line-height: 4cqw; text-align: center; animation: sc-badge 4s ease 3 both; }
.sc-item { display: flex; align-items: center; gap: 2cqw; padding: 2.5cqw; border-radius: 3cqw; background: var(--surface-2); }
.sc-thumb { flex: none; width: 9cqw; height: 9cqw; border-radius: 2cqw; background: var(--accent-soft); border: 1px solid rgb(242 107 88 / .4); }
.sc-title { flex: 1; min-width: 0; }
.sc-title small { display: block; color: var(--muted); font-size: 2.6cqw; }
.sc-plus { flex: none; display: grid; place-items: center; width: 5.5cqw; height: 5.5cqw; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; }
.sc-fly { position: absolute; left: 5.5cqw; top: 15.5cqw; width: 9cqw; height: 9cqw; animation: sc-fly-x 4s ease-in 3 both; }
.sc-fly i { display: block; width: 100%; height: 100%; border-radius: 2cqw; background: var(--accent); opacity: 0; animation: sc-fly-y 4s ease-out 3 both; }
.sc-btn { position: relative; margin-top: auto; padding: 3cqw; border-radius: 999px; background: var(--accent); color: var(--on-accent); text-align: center; font-size: 2.8cqw; font-weight: 600; }
.sc-btn::after { content: ""; position: absolute; inset: -1cqw; border: 2px solid var(--accent); border-radius: 999px; opacity: 0; animation: sc-ring 4s ease 3 both; }
.sc-card { position: absolute; left: 0; top: 20cqw; width: 60cqw; padding: 4cqw; border-radius: 3.5cqw; background: var(--surface-2); border: 1px solid var(--line);
           box-shadow: 0 3cqw 8cqw -3cqw rgb(0 0 0 / .8); font-size: 3cqw; animation: sc-card 4s cubic-bezier(.2, .7, .2, 1) 3 both; }
.sc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2.5cqw; color: var(--muted); }
.sc-head strong { color: var(--text); font-size: 4.4cqw; font-weight: 300; }
.sc-line { display: flex; justify-content: space-between; padding-bottom: 2.5cqw; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.sc-status { position: relative; height: 7cqw; margin-top: 3cqw; }
.st { position: absolute; left: 0; top: 0; padding: 1.3cqw 3cqw; border-radius: 999px; border: 1px solid var(--line); font-size: 2.8cqw; font-weight: 600; opacity: 0; white-space: nowrap; }
.st-1 { color: var(--muted); animation: sc-st1 4s ease 3 both; }
.st-2 { color: var(--accent); background: var(--accent-soft); border-color: rgb(242 107 88 / .4); animation: sc-st2 4s ease 3 both; }
.st-3 { color: var(--on-accent); background: var(--accent); border-color: var(--accent); opacity: 1; animation: sc-st3 4s ease 3 both; }
.scene-controls { min-height: 44px; margin: 12px 0 0; text-align: center; }   /* düğme için yer baştan ayrılır (CLS 0) */
.scene-toggle { min-height: 36px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: .85rem; cursor: pointer; }
.scene-toggle:hover { color: var(--text); border-color: var(--muted); }
.scene.is-paused *, .scene.is-paused *::after, .scene.is-away *, .scene.is-away *::after { animation-play-state: paused; }
.scene.is-restart *, .scene.is-restart *::after { animation: none; }   /* "opnieuw afspelen": sınıf kalkınca animasyonlar baştan başlar */

@keyframes sc-fade { 0%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sc-card { 0%, 19% { opacity: 0; transform: translateX(14cqw); } 33%, 100% { opacity: 1; transform: none; } }
@keyframes sc-st1 { 0%, 32% { opacity: 0; } 36%, 53% { opacity: 1; } 57%, 100% { opacity: 0; } }
@keyframes sc-st2 { 0%, 53% { opacity: 0; } 57%, 72% { opacity: 1; } 76%, 100% { opacity: 0; } }
@keyframes sc-st3 { 0%, 72% { opacity: 0; } 76%, 100% { opacity: 1; } }
@keyframes sc-badge { 0%, 17% { opacity: 0; transform: scale(.5); } 21% { opacity: 1; transform: scale(1.3); } 26%, 100% { opacity: 1; transform: none; } }
@keyframes sc-fly-x { 0%, 2% { transform: translateX(0); } 18%, 100% { transform: translateX(22cqw); } }
@keyframes sc-fly-y { 0%, 2% { opacity: 1; transform: translateY(0) scale(1); } 18% { opacity: 1; transform: translateY(-13cqw) scale(.4); } 19%, 100% { opacity: 0; transform: translateY(-13cqw) scale(.4); } }
@keyframes sc-ring { 0%, 20% { opacity: 0; transform: scale(1); } 24% { opacity: .7; } 34%, 100% { opacity: 0; transform: scale(1.1); } }

/* --- Hesaplayıcı (iki kolon: başlık | form + sonuç) --- */
.calc { display: grid; gap: 32px; align-items: start; }
.calc h2 { margin-bottom: 0; }
.calc-form { display: grid; gap: 16px; margin-bottom: 20px; }
.calc-form label, .apply-form label { display: grid; gap: 8px; font-weight: 500; font-size: .95rem; }
input, textarea { width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; color: var(--text);
                  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.calc-result { display: grid; gap: 10px; margin: 0; }
.calc-result > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px;
                     padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.calc-result dt { color: var(--muted); }
.calc-result dd { margin: 0; font-size: 1.3rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-result .saving { background: var(--accent-soft); border-color: rgb(242 107 88 / .4); }
.calc-result .saving dd { color: var(--accent); font-size: 1.9rem; font-weight: 300; }
.calc-result small { display: block; font-size: .85rem; font-weight: 500; color: var(--muted); text-align: right; }

/* --- Zigzag bölümler (metin | görsel, sırayla yer değiştirir) --- */
.row { display: grid; gap: 40px; align-items: center; }
.row-visual { display: grid; place-items: center; }
.steps { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding-left: 64px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 44px; height: 44px;
                    border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font-weight: 300; font-size: 1.3rem; }
.steps p, .features p { margin: 0; color: var(--muted); }
.features { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; }
.features li { padding-top: 20px; border-top: 1px solid var(--line); }

/* Telefon çerçevesi (gerçek menü görüntüsü) ve süs amaçlı sahte arayüz kartları (aria-hidden) */
.phone { width: min(300px, 78vw); margin: 0; padding: 10px; border-radius: 38px; background: #000; border: 1px solid var(--line); }
.phone img { display: block; width: 100%; border-radius: 28px; }
.mock { width: min(380px, 100%); padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.mock-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; font-size: .9rem; color: var(--muted); }
.mock-head strong { color: var(--text); font-size: 1.4rem; font-weight: 300; }
.mock ul { margin: 0 0 18px; padding: 0; list-style: none; }
.mock li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.mock-total { display: flex; justify-content: space-between; margin-bottom: 18px; font-weight: 600; }
.mock-total span:last-child { color: var(--accent); }
.mock-btn { display: block; padding: 14px; border-radius: 999px; background: var(--accent); color: var(--on-accent); text-align: center; font-weight: 600; }
.mock-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.mock-chips span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; }
.mock-chips .on { border-color: var(--accent); color: var(--accent); }
.mock-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mock-switch { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--accent); }
.mock-switch::after { content: ""; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--on-accent); }

/* --- Fiyat --- */
.price { text-align: center; }
.price h2 { margin-bottom: 8px; }
.price-tag { margin: 28px 0 32px; }
.price-tag strong { display: block; font-size: clamp(4.2rem, 17vw, 10rem); font-weight: 200; letter-spacing: -0.05em; line-height: 1; color: var(--accent); }
.price-tag small { color: var(--muted); font-size: 1.05rem; }
.price ul { display: inline-block; margin: 0 0 32px; padding: 0; list-style: none; text-align: left; }
.price li { padding: 8px 0 8px 32px; position: relative; }
.price li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }

/* --- SSS --- */
.faq { display: grid; gap: 0; max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; font-weight: 500; font-size: 1.05rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.6rem; font-weight: 300; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 64ch; }

/* --- Başvuru formu --- */
.apply > p { color: var(--muted); max-width: 56ch; }
.apply-form { display: grid; gap: 18px; padding: 24px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.apply-form .grid { display: grid; gap: 18px; }
.apply-form small { color: var(--muted); font-weight: 400; }
.apply-form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.apply-form legend { font-weight: 500; margin-bottom: 8px; padding: 0; }
.apply-form fieldset label, .apply-form label.check { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.apply-form input[type=radio], .apply-form input[type=checkbox] { width: 22px; min-height: 22px; accent-color: var(--accent); }
.apply-form .button { justify-self: start; }
.form-error { margin: 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.field-error { color: var(--accent); font-size: .9rem; font-weight: 500; }
[aria-invalid="true"] { border-color: var(--accent); }
/* Bal küpü: ekran dışında (display:none bazı botlarca atlanır). */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Yalnız ekran okuyucuya (akan sayıların nihai değeri) */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* --- Bölüm tonları + motifler (img/motif/*.svg: kendi çizimimiz, tek renk). Her bölüm bir sonrakine alt kenarda 96px'lik gradyanla akar. --- */
.hero { --tone: var(--tone-hero); --tone-next: var(--tone-calc);
        --glow: radial-gradient(ellipse 55% 60% at 88% 8%, var(--accent-soft), transparent 70%); }
.hero::before { background: url("/img/motif/rings.svg") no-repeat calc(100% + 140px) -90px / min(760px, 130vw);
                transform-origin: calc(100% + 140px - min(760px, 130vw) / 2) calc(min(760px, 130vw) / 2 - 90px); }   /* motifin merkezi */
.calc { --tone: var(--tone-calc); --tone-next: var(--tone-steps); }
.calc::before { inset: -32px 0 0 -32px; --tile: 32px; background: url("/img/motif/grid.svg") 0 0 / 32px; }   /* katman bir döşeme kadar taşar: kayma kesintisiz döner */
.steps-sec { --tone: var(--tone-steps); --tone-next: var(--tone-features); }
.steps-sec::before { background: url("/img/motif/path.svg") no-repeat 50% 78% / min(1200px, 170vw); }
.features-sec { --tone: var(--tone-features); --tone-next: var(--tone-control); }
.features-sec::before { inset: -16px 0 0 -16px; --tile: 16px; background: url("/img/motif/hatch.svg") 0 0 / 16px; }
.control-sec { --tone: var(--tone-control); --tone-next: var(--tone-price); }
.control-sec::before { background: url("/img/motif/arcs.svg") no-repeat 100% 100% / min(900px, 150vw); transform-origin: 100% 100%; }
.price { --tone: var(--tone-price); --tone-next: var(--tone-faq); }
.price::before { background: url("/img/motif/rays.svg") no-repeat 50% 40% / min(900px, 170vw);
                 transform-origin: 50% calc((100% - min(900px, 170vw)) * .4 + min(900px, 170vw) / 2); }
.faq-sec { --tone: var(--tone-faq); --tone-next: var(--tone-apply); }
.faq-sec::before { inset: -24px 0 0 -24px; --tile: 24px; background: url("/img/motif/dots.svg") 0 0 / 24px; }
.apply { --tone: var(--tone-apply); --tone-next: var(--bg);
         padding-inline: max(var(--gutter), calc((100% - 860px) / 2 + var(--gutter))); }
.apply::before { inset: 0 0 0 -1200px; background: url("/img/motif/waves.svg") repeat-x 0 100% / 1200px 240px; }   /* 1200px = dalga döşemesi */

/* --- Arka plan motiflerinde ÇOK YAVAŞ hareket (ek katman; yapı/renk/düzen aynı). Yalnız transform + opacity (kompozitör), metnin ARKASINDA.
   `.motion` sınıfını scene.js ekler: duraklatma kontrolü (hero düğmesi) yoksa hareket HİÇ başlamaz (WCAG 2.2.2). Genel duraklatma / ekran dışı / gizli sekme: animation-play-state.
   Süreler (kullanıcı kararı 02.10.2026, telefonda hareket fark edilmiyordu): nefes 12–15 sn, kaymalar 24–30 sn, ışın turu 70 sn. --- */
.motion .hero::before { animation: mo-breathe 13s ease-in-out infinite; }
.motion .calc::before { animation: mo-drift 30s linear infinite; }
.motion .steps-sec::before { animation: mo-float 12s ease-in-out infinite; }
.motion .features-sec::before { animation: mo-drift 24s linear infinite; }
.motion .control-sec::before { animation: mo-breathe 15s ease-in-out infinite; }
.motion .price::before { animation: mo-spin 70s linear infinite; }
.motion .faq-sec::before { animation: mo-drift 28s linear infinite; }
.motion .apply::before { animation: mo-flow 30s linear infinite; }
html.motion-paused main > section::before, html.motion-hidden main > section::before, .motion main > section.is-away::before { animation-play-state: paused !important; }

@keyframes mo-breathe { 0%, 100% { transform: scale(1); opacity: .13; } 50% { transform: scale(1.07); opacity: .1; } }
@keyframes mo-drift { to { transform: translate(var(--tile), var(--tile)); } }
@keyframes mo-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }
@keyframes mo-spin { to { transform: rotate(360deg); } }
@keyframes mo-flow { to { transform: translateX(1200px); } }

/* --- Hero teslimat rotası (kullanıcı kararı 02.10.2026): metnin ARKASINDA, tıklanamaz; kendi çizdiğimiz soluk mahalle haritası (img/route/*.svg) + restoranın çıkış halkası
   + rota boyunca ilerleyen nokta (kuyruklu) + evde onay işareti. ~10 sn döngü; yalnız transform/opacity (kompozitör), canvas/WebGL YOK.
   Düzen: `.rt` hero'yu kaplar (container), `.rt-stage` haritanın en-boy oranını koruyarak onu "cover" yapar; nokta/halka/onay konumları sahnenin cqw/cqh birimleriyle
   (harita ile birebir hizalı). Dar ekran: dik harita (2:5); ≥ 960 px: yatay (3:2). Temel stil = TAMAMLANMIŞ rota (onay görünür, nokta yok): azaltılmış hareket/JS yok. --- */
.rt { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; container-type: size; }
.rt-stage { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: max(100cqw, 40cqh); height: max(100cqh, 250cqw); container-type: size; }
.rt-map { position: absolute; inset: 0; background: url("/img/route/map-tall.svg") center / 100% 100% no-repeat; opacity: var(--route-map-opacity); }
.rt-pulse, .rt-dot { position: absolute; left: 0; top: 0; border-radius: 50%; }
.rt-pulse { left: 27.5cqw; top: 57cqh; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 2px solid var(--accent); opacity: 0; }
.rt-dot { width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--accent); box-shadow: 0 0 0 6px rgb(242 107 88 / .3); opacity: 0; transform: translate(72.5cqw, 26cqh); }
.rt-dot.t1 { --a: .6; width: 10px; height: 10px; margin: -5px 0 0 -5px; box-shadow: none; }
.rt-dot.t2 { --a: .35; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; box-shadow: none; }
.rt-ok { position: absolute; left: 72.5cqw; top: 19.8cqh; display: grid; place-items: center; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.rt-ok svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 960px) {
    .rt-stage { width: max(100cqw, 150cqh); height: max(100cqh, 66.667cqw); }
    .rt-map { background-image: url("/img/route/map-wide.svg"); opacity: .26; -webkit-mask-image: linear-gradient(to right, rgb(0 0 0 / .4) 40%, #000 66%); mask-image: linear-gradient(to right, rgb(0 0 0 / .4) 40%, #000 66%); }   /* geniş ekranda metin sütunu üstünde harita daha da soluk */
    .rt-pulse { left: 22.5cqw; top: 77.5cqh; }
    .rt-dot { transform: translate(85cqw, 17.5cqh); }
    .rt-ok { left: 85cqw; top: 9.75cqh; }
}
.motion .rt-pulse { animation: rt-pulse 10s ease-out infinite both; }
.motion .rt-dot { animation: rt-dot-t 10s linear infinite both; }
.motion .rt-dot.t1 { animation-delay: .22s; }
.motion .rt-dot.t2 { animation-delay: .44s; }
.motion .rt-ok { animation: rt-ok 10s ease infinite both; }
@media (min-width: 960px) { .motion .rt-dot { animation-name: rt-dot-w; } }
html.motion-paused .rt-stage *, html.motion-hidden .rt-stage *, .motion .hero.is-away .rt-stage * { animation-play-state: paused !important; }

@keyframes rt-pulse { 0% { opacity: .85; transform: scale(.4); } 9% { opacity: 0; transform: scale(1.7); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes rt-ok { 0%, 66% { opacity: 0; transform: scale(.3); } 71% { opacity: 1; transform: scale(1.18); } 74%, 90% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(1); } }
@keyframes rt-dot-t {
    0% { transform: translate(27.50cqw, 57.00cqh) scale(0.4); opacity: 0; }
    3% { transform: translate(27.50cqw, 57.00cqh) scale(1); opacity: var(--a, 1); }
    5% { transform: translate(27.50cqw, 57.00cqh) scale(1); opacity: var(--a, 1); }
    20.5% { transform: translate(72.50cqw, 57.00cqh) scale(1); opacity: var(--a, 1); }
    34.2% { transform: translate(72.50cqw, 41.00cqh) scale(1); opacity: var(--a, 1); }
    43.7% { transform: translate(45.00cqw, 41.00cqh) scale(1); opacity: var(--a, 1); }
    56.5% { transform: translate(45.00cqw, 26.00cqh) scale(1); opacity: var(--a, 1); }
    66.0% { transform: translate(72.50cqw, 26.00cqh) scale(1); opacity: var(--a, 1); }
    68% { transform: translate(72.50cqw, 26.00cqh) scale(0.5); opacity: 0; }
    100% { transform: translate(72.50cqw, 26.00cqh) scale(0.5); opacity: 0; }
}
@keyframes rt-dot-w {
    0% { transform: translate(22.50cqw, 77.50cqh) scale(0.4); opacity: 0; }
    3% { transform: translate(22.50cqw, 77.50cqh) scale(1); opacity: var(--a, 1); }
    5% { transform: translate(22.50cqw, 77.50cqh) scale(1); opacity: var(--a, 1); }
    27.3% { transform: translate(60.00cqw, 77.50cqh) scale(1); opacity: var(--a, 1); }
    39.2% { transform: translate(60.00cqw, 47.50cqh) scale(1); opacity: var(--a, 1); }
    46.7% { transform: translate(72.50cqw, 47.50cqh) scale(1); opacity: var(--a, 1); }
    58.6% { transform: translate(72.50cqw, 17.50cqh) scale(1); opacity: var(--a, 1); }
    66.0% { transform: translate(85.00cqw, 17.50cqh) scale(1); opacity: var(--a, 1); }
    68% { transform: translate(85.00cqw, 17.50cqh) scale(0.5); opacity: 0; }
    100% { transform: translate(85.00cqw, 17.50cqh) scale(0.5); opacity: 0; }
}

/* --- Hero kartlarında hafif parallax (kullanıcı kararı 02.10.2026): kaydırınca iki kart ters yönde birkaç px, masaüstünde fare ile çok hafif eğim.
   Değerleri scene.js yazar (--sy/--px/--py, -1…1); `translate` ayrı özellik olduğundan kartların kendi `transform` animasyonlarıyla çakışmaz. Yalnız transform; değer yoksa 0. --- */
.scene-stage { transform: perspective(900px) rotateX(calc(var(--py, 0) * -3deg)) rotateY(calc(var(--px, 0) * 4deg)); }
.sc-phone { translate: calc(var(--px, 0) * -5px) calc(var(--sy, 0) * 9px - var(--py, 0) * 3px); }
.sc-card { translate: calc(var(--px, 0) * 7px) calc(var(--sy, 0) * -7px + var(--py, 0) * 4px); }


@media (min-width: 700px) {
    :root { --gutter: 32px; --section-gap: 128px; }
    .top nav a:not(.button) { display: inline; }
    .calc-form { grid-template-columns: repeat(3, 1fr); }
    .calc-result { grid-template-columns: repeat(3, 1fr); }
    .calc-result > div { flex-direction: column; }
    .calc-result small { text-align: left; }
    .features { grid-template-columns: 1fr 1fr; gap: 32px 40px; }
    .apply-form .grid { grid-template-columns: 1fr 1fr; }
    .apply-form { padding: 36px; }
}
@media (min-width: 960px) {
    .hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); padding-top: 72px; min-height: min(64vh, 620px); }
    .row { grid-template-columns: 1fr 1fr; gap: 80px; }
    .row.reverse .row-visual { order: -1; }
    .features { grid-template-columns: 1fr; gap: 0; }
    .features li { padding: 22px 0; }
    .calc { grid-template-columns: 5fr 7fr; gap: 64px; }
}

/* --- Kaydırınca yumuşak renk geçişi (D4: yalnız destekleyen tarayıcıda; yoksa her bölüm kendi sabit tonuyla, kenarlarda gradyanla). ---
   Bölüm arka planları şeffaflaşır, gövde rengi sayfa ilerlemesine bağlı olarak bölüm tonları arasında akar (CSS, JS yok).
   Yüzdeler bölüm merkezlerinin 1280/820/390 px ölçümlerinin ortalaması; aradaki renkler koyu tonların karışımı (kontrast sözleşmesi korunur). */
@supports (animation-timeline: scroll()) {
    @media (prefers-reduced-motion: no-preference) {
        main > section { background: var(--glow, linear-gradient(transparent, transparent)); }
        body { animation: tone-flow linear both; animation-timeline: scroll(root block); }
    }
}
@keyframes tone-flow {
    0% { background-color: var(--tone-hero); }
    15% { background-color: var(--tone-calc); }
    27% { background-color: var(--tone-steps); }
    42% { background-color: var(--tone-features); }
    56% { background-color: var(--tone-control); }
    69% { background-color: var(--tone-price); }
    81% { background-color: var(--tone-faq); }
    96%, 100% { background-color: var(--tone-apply); }
}

/* --- Belirme (reveal.js ekler) ve hover: yalnız transform/opacity/renk --- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
main > section > .reveal:nth-child(2) { transition-delay: .08s; }
main > section > .reveal:nth-child(3) { transition-delay: .16s; }
main > section > .reveal:nth-child(n+4) { transition-delay: .24s; }
.calc-result > div, .mock, .features li { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
@media (hover: hover) {
    .button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 28px -10px rgb(242 107 88 / .55); }
    .calc-result > div:hover, .mock:hover { transform: translateY(-2px); border-color: rgb(242 107 88 / .45); box-shadow: 0 14px 32px -16px rgb(0 0 0 / .7); }
    .features li:hover { border-top-color: var(--accent); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    main > section::before { animation: none !important; }   /* arka plan motifleri tamamen sabit */
    .rt-stage * { animation: none !important; }   /* rota TAMAMLANMIŞ hâliyle sabit (onay işareti görünür, nokta yok) */
    .scene-stage, .scene *, .scene *::after { animation: none !important; }   /* sahne sabit son durumda; duraklat düğmesi gereksiz (scene.js açmaz) */
    .reveal { opacity: 1; transform: none; transition: none; }              /* hiçbir şey gizlenmez/kaymaz */
    .button, .calc-result > div, .mock, .features li { transition: background-color .15s, border-color .15s; }   /* hareket yok, yalnız renk */
    .button:hover, .button:focus-visible, .calc-result > div:hover, .mock:hover { transform: none; box-shadow: none; }
}
