
/* ============================================================
   TOKENLAR
   ============================================================ */
:root {
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --brand: #8B5CF6;
  --brand-strong: #6D3FD4;
  --radius: 24px;
  --radius-sm: 15px;
  --wrap: 1080px;
}
* { box-sizing: border-box; }
html { background: #F3F0FF; } /* iOS overscroll rubber-band rengi — JS ile bölüme göre güncellenir */
body {
  margin: 0;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* height:auto ŞART — width/height attribute'ları CLS için duruyor; height:auto
   olmadan attribute yükseklik olduğu gibi uygulanır (img 1391px boyunda çıkar). */
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }

/* ============================================================
   DİL — çift span, CSS ile seçilir (JS kapalıyken ikisi de görünür)
   ============================================================ */
html[data-lang="tr"] [lang="en"] { display: none !important; }
html[data-lang="en"] [lang="tr"] { display: none !important; }

/* ============================================================
   BÖLÜM TEMALARI — her bölüm düz zemin, aralara blend band
   ============================================================ */
.sec {
  background: var(--bg);
  color: var(--ink);
  padding: clamp(64px, 9vh, 92px) max(20px, env(safe-area-inset-left)) clamp(64px, 9vh, 92px) max(20px, env(safe-area-inset-right));
  position: relative;
}
/* Palet 8'e konsolide: 4 ayırt-edilemez koyu zemin (slate/navy/gray/violet)
   tek "midnight"a indi; altın aksan yalnız davetiyenin (black) imzası. */
.sec[data-t="lilac"]    { --bg:#F3F0FF; --ink:#241633; --sub:#4F4566; --accent:#8B5CF6; --card:#FFFFFF; --line:rgba(36,22,51,.10); --chip:rgba(139,92,246,.10); }
.sec[data-t="white"]    { --bg:#FFFFFF; --ink:#1E1B2E; --sub:#6B6580; --accent:#6D3FD4; --card:#FBFAFF; --line:rgba(30,27,46,.10); --chip:rgba(109,63,212,.08); }
.sec[data-t="blush"]    { --bg:#FDF2F8; --ink:#831843; --sub:#9D4E72; --accent:#DB2777; --card:#FFFFFF; --line:rgba(131,24,67,.12); --chip:rgba(219,39,119,.10); }
.sec[data-t="midnight"] { --bg:#141832; --ink:#F1F2FD; --sub:#9CA0C4; --accent:#A78BFA; --card:rgba(255,255,255,.05); --line:rgba(255,255,255,.12); --chip:rgba(167,139,250,.14); }
.sec[data-t="black"]    { --bg:#0A0A0A; --ink:#F5F0E6; --sub:#A29684; --accent:#D4AF37; --card:rgba(255,255,255,.04); --line:rgba(212,175,55,.22); --chip:rgba(212,175,55,.12); }
.sec[data-t="teal"]     { --bg:#06232B; --ink:#ECFEFF; --sub:#7FA8B0; --accent:#22D3EE; --card:rgba(255,255,255,.05); --line:rgba(255,255,255,.12); --chip:rgba(34,211,238,.12); }
.sec[data-t="cream"]    { --bg:#F7EFE2; --ink:#3A2E1E; --sub:#7A6A55; --accent:#B4762C; --card:#FFFDF9; --line:rgba(58,46,30,.12); --chip:rgba(180,118,44,.10); }
.sec[data-t="brand"]    { --bg:#6D3FD4; --ink:#FFFFFF; --sub:#DCD3F7; --accent:#FFFFFF; --card:rgba(255,255,255,.10); --line:rgba(255,255,255,.24); --chip:rgba(255,255,255,.14); }

.blend { height: 100px; background: linear-gradient(180deg, var(--from), var(--to)); }
/* oklab interpolasyonu sRGB'nin gri "çamur bandını" giderir (siyah→krem gibi uzak çiftlerde) */
@supports (background: linear-gradient(in oklab, red, blue)) {
  .blend { background: linear-gradient(in oklab, var(--from), var(--to)); }
}
@media (max-width: 640px) { .blend { height: 60px; } }

/* Anchor navigasyon: sabit nav'ın altında kalmasın + yumuşak kaydırma */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.sec { scroll-margin-top: calc(58px + env(safe-area-inset-top)); }

.wrap { max-width: var(--wrap); margin: 0 auto; }
.narrow { max-width: 720px; margin: 0 auto; }

/* ============================================================
   TİPOGRAFİ
   ============================================================ */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(38px, 7vw, 62px); line-height: 1.06; }
h2 { font-size: clamp(28px, 4.4vw, 42px); line-height: 1.14; }
h3 { font-size: 19px; line-height: 1.3; }
/* h2 (42px) ile h3 (19px) arasındaki uçurumu dolduran ara kademe — birleşik bölümlerin alt başlıkları */
.h-sub { font-size: clamp(21px, 2.2vw, 25px); line-height: 1.25; margin-bottom: 10px; }
.footnote { font-size: 12.5px; color: var(--sub); }
p  { margin: 0; line-height: 1.65; color: var(--sub); }
.eyebrow {
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.lead { font-size: 17px; margin-top: 16px; }
.sec-head { max-width: 660px; margin-bottom: 48px; }

/* ============================================================
   NAV — sabit palet: hem açık hem koyu bölümde okunur
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; gap: 10px;
  padding: calc(8px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
  transition: background-color .3s ease, box-shadow .3s ease;
}
.nav.stuck {
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 rgba(36,22,51,.08);
}
/* Koyu bölümlerin üstünde beyaz bar "yabancı şerit" olmasın — JS luminance ile .dark basar */
.nav.dark.stuck {
  background: rgba(14,13,22,.62);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.nav-brand {
  display: flex; align-items: center; gap: 9px; margin-right: auto;
  text-decoration: none; opacity: 0; transform: translateY(-4px);
  transition: opacity .3s ease, transform .3s ease; pointer-events: none;
}
.nav.stuck .nav-brand { opacity: 1; transform: none; pointer-events: auto; }
.nav-brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-brand span { font-family: var(--serif); font-size: 17px; font-weight: 600; color: #241633; }
.nav.dark .nav-brand span { color: #F1F2FD; }

/* Bölüm menüsü: masaüstünde satır içi linkler; mobilde AYNI eleman nav'ın
   ikinci satırına inip yatay kaydırmalı, hep görünür sekme barı olur.
   Gizli menü (hamburger/panel) bilinçli olarak YOK. */
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 13.5px; font-weight: 600; text-decoration: none; color: #241633;
  padding: 12px 9px; border-radius: 8px; position: relative; white-space: nowrap;
}
.nav-links a::after {
  content: ""; position: absolute; left: 9px; right: 9px; bottom: 7px; height: 2px;
  border-radius: 2px; background: var(--brand); opacity: 0; transition: opacity .2s ease;
}
.nav-links a[aria-current="true"]::after { opacity: 1; }
.nav-links a:hover { color: var(--brand-strong); }
.nav.dark .nav-links a { color: #E4E1F5; }
.nav.dark .nav-links a:hover { color: #fff; }
@media (max-width: 960px) {
  .nav { flex-wrap: wrap; }
  .nav-links {
    order: 10; flex: 1 0 100%;
    margin: 2px -16px -8px; padding: 0 16px 4px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    /* Kenar fade'i JS ile dinamik (--fl/--fr): yalnız o yönde kaydırılacak
       içerik varsa görünür. Başta ikisi de 0 → ilk sekme ASLA kırpılmaz. */
    --fl: 0px; --fr: 0px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent);
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent);
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { padding: 11px 10px; min-height: 44px; display: inline-flex; align-items: center; }
  .nav-links a::after { bottom: 5px; }
}

.pill {
  border: 0; cursor: pointer; font-family: var(--sans); font-weight: 600; font-size: 13px;
  border-radius: 999px; padding: 12px 15px; min-height: 44px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform .12s ease, filter .2s ease;
}
.pill:active { transform: translateY(1px); }
.pill-ghost {
  background: rgba(255,255,255,.86); color: var(--brand-strong);
  border: 1px solid rgba(36,22,51,.12);
  box-shadow: 0 4px 14px rgba(36,22,51,.10);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.nav.dark .pill-ghost { background: rgba(30,26,44,.7); color: #D6C9F5; border-color: rgba(255,255,255,.16); }
.pill-solid {
  background: var(--brand); color: #fff;
  box-shadow: 0 6px 18px rgba(139,92,246,.42);
}
.pill-solid:hover { filter: brightness(1.06); }
.lang-sep { opacity: .35; margin: 0 1px; }
.lang-on { color: var(--brand-strong); }
.nav.dark .lang-on { color: #fff; }
.lang-off { color: #8B85A3; }

/* ============================================================
   BUTONLAR
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--accent); color: var(--bg);
  text-decoration: none; font-weight: 700; font-size: 16px;
  padding: 16px 26px; border-radius: 14px; border: 0; cursor: pointer;
  font-family: var(--sans);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 40%, transparent);
  transition: transform .14s ease, filter .2s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn-lg { font-size: 17px; padding: 18px 32px; }
/* İkincil hero eylemi: birincil butonla yarışmayan sakin varyant */
.btn-ghost {
  background: var(--card); color: var(--accent);
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--ink) 8%, transparent);
}
.meta-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  margin-top: 18px; font-size: 13px; color: var(--sub);
}
.meta-row .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .4; }

/* ============================================================
   TELEFON ÇERÇEVESİ
   ============================================================ */
.phone {
  position: relative; border-radius: 38px; padding: 8px;
  background: linear-gradient(160deg, #3A3A46, #131318 60%);
  box-shadow: 0 30px 70px rgba(0,0,0,.30), 0 0 0 1px rgba(255,255,255,.06) inset;
  width: 100%; max-width: 280px;
}
.phone img { border-radius: 30px; width: 100%; }
.phone::after {
  content: ""; position: absolute; top: 15px; left: 50%; transform: translateX(-50%);
  width: 28%; height: 21px; border-radius: 999px; background: #08080B;
}
.phone-sm { max-width: 220px; }
.phone-xs { max-width: 190px; }
/* Yan yana iki telefon: mobilde ikisi ~145px'e ezilip okunmaz oluyordu —
   ≤640'ta ikincisi gizlenir, kalan tek telefon büyür */
.phone-duo { display: flex; gap: 16px; justify-content: center; }
@media (max-width: 640px) {
  .phone-duo > :nth-child(2) { display: none; }
  .phone-duo .phone-xs { max-width: 230px; margin-top: 0; }
}

/* ============================================================
   REVEAL — tek IntersectionObserver, transform+opacity
   ============================================================ */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.rv.in { opacity: 1; transform: none; }
.rv[style*="--i"] { transition-delay: calc(var(--i) * 70ms); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: calc(104px + env(safe-area-inset-top)); padding-bottom: 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-icon { width: 76px; height: 76px; border-radius: 19px; box-shadow: 0 12px 30px rgba(109,63,212,.30); margin-bottom: 26px; }
.hero h1 .accent { color: var(--brand-strong); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-visual { display: flex; justify-content: center; position: relative; }
.hero-glow {
  position: absolute; inset: -12% -8%; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(139,92,246,.34), transparent 62%);
  filter: blur(30px); z-index: 0;
}
.hero .phone { z-index: 1; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 861px) {
    .hero .phone { animation: floatUp linear both; animation-timeline: view(); animation-range: entry 20% cover 70%; }
    @keyframes floatUp { to { transform: translateY(-34px); } }
  }
}

/* Canlı geri sayım kartı */
.cd-card {
  margin-top: 32px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
  box-shadow: 0 16px 44px rgba(109,63,212,.13);
  max-width: 420px;
}
.cd-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cd-label { font-size: 13px; font-weight: 700; color: var(--ink); }
.cd-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.cd-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blip 1.6s ease-in-out infinite; }
@keyframes blip { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.cd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cd-cell { background: var(--chip); border-radius: 13px; padding: 12px 4px; text-align: center; }
.cd-num { font-size: 27px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); line-height: 1.1; }
.cd-unit { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sub); margin-top: 3px; }
.cd-foot { margin-top: 13px; font-size: 12px; color: var(--sub); }

@media (max-width: 860px) {
  /* Telefon metinden SONRA gelir: 574px'lik görsel başlığı ve butonu
     ekranın altına iterdi. Başlık ilk ekranda kalmalı. */
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding-top: calc(84px + env(safe-area-inset-top)); }
  .hero-icon { width: 62px; height: 62px; margin-bottom: 20px; }
  .cd-card { max-width: none; }
  .hero .phone { max-width: 240px; }
}

/* ============================================================
   KART IZGARALARI
   ============================================================ */
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
/* Metin + telefon ikilileri. DİKKAT: bu değerler inline style ile YAZILMAMALI —
   inline stil medya sorgusunu ezer ve ızgara mobilde tek sütuna inmez. */
.split   { grid-template-columns: 1fr 300px; gap: 44px; align-items: start; }
.split-c { grid-template-columns: 1fr 260px; gap: 44px; align-items: start; }
.split-l { grid-template-columns: 320px 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) {
  .g3, .g2 { grid-template-columns: 1fr; }
  .split, .split-c, .split-l { grid-template-columns: 1fr; gap: 30px; }
}

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.card h3 { margin-bottom: 9px; }
.card p { font-size: 14.5px; }
/* Üç-adım kartları tıklanabilir içindekiler */
a.step-link { display: block; text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease; }
a.step-link:hover { transform: translateY(-2px); box-shadow: 0 12px 30px color-mix(in srgb, var(--ink) 10%, transparent); }
.step-n {
  width: 34px; height: 34px; border-radius: 10px; background: var(--chip); color: var(--accent);
  display: grid; place-items: center; font-weight: 800; font-size: 15px; margin-bottom: 16px;
  font-family: var(--sans);
}

/* Özellik listesi */
.flist { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
/* Metin+telefon ikililerinde satırlar okunur banda insin (736px'e uzuyordu) */
.split .flist, .split-l .flist { max-width: 60ch; }
/* Uzun listeler masaüstünde iki sütuna: organizasyon (10 madde) için */
@media (min-width: 861px) {
  .flist-2 { grid-template-columns: 1fr 1fr; column-gap: 36px; max-width: none; }
  .flist-2 li { font-size: 14px; }
}
.flist li {
  padding: 15px 0; border-bottom: 1px solid var(--line);
  font-size: 15px; line-height: 1.6; color: var(--sub);
}
.flist li:last-child { border-bottom: 0; }
.flist strong { color: var(--ink); font-weight: 700; }
.tag-free {
  display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent); background: var(--chip);
  padding: 3px 8px; border-radius: 6px; margin-left: 6px; vertical-align: 1px;
  font-family: var(--sans);
}

/* ============================================================
   ETKİNLİK TÜRLERİ
   ============================================================ */
.types { display: flex; flex-wrap: wrap; gap: 9px; }
.type {
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  color: var(--sub); font-family: var(--sans); font-size: 14px; font-weight: 600;
  padding: 10px 15px; border-radius: 999px;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .12s ease;
}
.type:hover { transform: translateY(-1px); }
.type[aria-pressed="true"] {
  background: var(--tc, var(--accent)); border-color: var(--tc, var(--accent)); color: #fff;
}
.type-out { margin-top: 26px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.type-out .swatch {
  width: 100%; height: 6px; border-radius: 999px; margin-bottom: 16px;
  background: linear-gradient(90deg, var(--tc, var(--accent)), color-mix(in srgb, var(--tc, var(--accent)) 30%, transparent));
  transition: background .35s ease;
}
.type-name { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--tc, var(--ink)); transition: color .35s ease; }
.type-fam { font-size: 13px; color: var(--sub); margin-top: 5px; }

/* ============================================================
   ZARF
   ============================================================ */
/* Açılan kapak rotateX(180deg) ile zarfın ~62% yüksekliği kadar YUKARI taşar;
   üstteki metnin üzerine binmemesi için yer ayrılır. */
.env-stage { display: flex; justify-content: center; padding-top: 165px; }
@media (max-width: 860px) { .env-stage { padding-top: 130px; } }
.envelope { position: relative; width: 100%; max-width: 320px; aspect-ratio: 4/3; }
.env-back { position: absolute; inset: 0; border-radius: 12px; background: color-mix(in srgb, var(--accent) 82%, #000 26%); }
.env-card {
  position: absolute; left: 8%; right: 8%; bottom: 6%; z-index: 1;
  background: #F7F1E3; border-radius: 8px; padding: 18px 14px; text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  transition: transform .9s cubic-bezier(.22,1,.36,1) .4s;
}
.envelope.open .env-card { transform: translateY(-58%); }
.env-card .ec-t { font-family: var(--serif); font-size: 17px; color: #3A2E1E; }
.env-card .ec-s { font-size: 11px; color: #8A7A63; margin-top: 5px; letter-spacing: .1em; text-transform: uppercase; }
.env-front { position: absolute; inset: 0; z-index: 2; border-radius: 12px; background: color-mix(in srgb, var(--accent) 88%, #000 8%); clip-path: polygon(0 42%, 50% 100%, 100% 42%, 100% 100%, 0 100%); }
.env-flap {
  position: absolute; inset: 0; z-index: 3; border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 94%, #fff 10%);
  clip-path: polygon(0 0, 100% 0, 50% 62%);
  transform-origin: top; transition: transform .55s ease, z-index 0s .3s;
}
.envelope.open .env-flap { transform: rotateX(180deg); z-index: 0; }

/* Şablon karuseli — scroll-snap, sıfır JS */
.carousel {
  display: flex; gap: 12px; overflow-x: auto; padding: 4px 4px 16px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.tpl { flex: 0 0 auto; width: 132px; scroll-snap-align: center; }
.tpl img { width: 132px; height: 186px; object-fit: cover; border-radius: 11px; border: 1px solid var(--line); }
.tpl span { display: block; font-size: 11.5px; color: var(--sub); margin-top: 8px; text-align: center; }
.hint-swipe { font-size: 12px; color: var(--sub); text-align: center; margin-top: 4px; }

/* ============================================================
   AKIŞ (QR → onay)
   ============================================================ */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 12px; }
@media (max-width: 720px) { .flow { grid-template-columns: 1fr; } }
.flow-step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; position: relative; }
.flow-step .n { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--accent); text-transform: uppercase; margin-bottom: 8px; font-family: var(--sans); }
.flow-step h3 { font-size: 16px; margin-bottom: 6px; }
.flow-step p { font-size: 13.5px; }
.qr {
  width: 92px; height: 92px; border-radius: 12px; margin-bottom: 14px;
  background:
    conic-gradient(from 0deg, var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0) 0 0 / 14px 14px,
    var(--card);
  border: 5px solid var(--ink); opacity: .9;
}

/* Onay rozeti */
.badge-ok {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700;
  color: var(--accent); background: var(--chip); padding: 8px 13px; border-radius: 999px;
  font-family: var(--sans);
}
.pop { animation: pop .5s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ============================================================
   YÜZLER
   ============================================================ */
.faces { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 8px; }
/* Statik çip: kenarlıksız + ufak — interaktif .type çipleriyle "tıklanır" sözleşmesi karışmasın */
.face-chip {
  background: var(--chip); color: var(--ink);
  font-size: 12.5px; font-weight: 600; padding: 9px 13px; border-radius: 999px;
  font-family: var(--sans);
}

/* Dynamic Island — scaleX + ters ölçekli içerik.
   min-width/padding animasyonu her karede LAYOUT tetiklerdi; transform compositor'da kalır. */
.island-demo { display: flex; justify-content: center; padding: 26px 0 6px; }
.island {
  background: #000; border-radius: 999px; color: #fff;
  padding: 11px 22px; width: 290px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.10);
  transform: scaleX(.44); transform-origin: center;
  animation: islandGrow 5s ease-in-out infinite;
}
@keyframes islandGrow {
  0%, 22%   { transform: scaleX(.44); }
  38%, 84%  { transform: scaleX(1); }
  100%      { transform: scaleX(.44); }
}
/* Kapsayıcı yatayda ezildiği için içerik ters ölçekle telafi edilir. */
.island-inner {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  transform: scaleX(2.273);
  animation: islandInner 5s ease-in-out infinite;
}
@keyframes islandInner {
  0%, 22%   { transform: scaleX(2.273); }
  38%, 84%  { transform: scaleX(1); }
  100%      { transform: scaleX(2.273); }
}
.island-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.island-txt {
  font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; opacity: 0;
  animation: islandTxt 5s ease-in-out infinite;
}
@keyframes islandTxt { 0%, 30% { opacity: 0; } 45%, 80% { opacity: 1; } 95%, 100% { opacity: 0; } }

/* Sonsuz animasyonlar yalnız bölüm ekrandayken döner — aksi hâlde
   sayfa görünmese bile CPU/pil yakarlar. */
.island, .island-inner, .island-txt, .ai-type, .cd-live i { animation-play-state: paused; }
.sec.vis .island, .sec.vis .island-inner, .sec.vis .island-txt,
.sec.vis .ai-type, .sec.vis .cd-live i { animation-play-state: running; }
.island-num { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 14px; color: var(--accent); }

/* ============================================================
   AI — yazılma efekti
   ============================================================ */
.ai-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.ai-prompt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 12px; }
.ai-type {
  font-family: var(--serif); font-size: 18px; line-height: 1.55; color: var(--ink);
  border-right: 2px solid var(--accent); white-space: nowrap; overflow: hidden;
  width: 0; animation: typing 5s steps(46) infinite alternate, caret .8s step-end infinite;
  max-width: 100%;
}
@keyframes typing { 0%, 8% { width: 0; } 70%, 100% { width: 46ch; } }
@keyframes caret { 50% { border-color: transparent; } }
.ai-note { font-size: 12.5px; color: var(--sub); margin-top: 16px; }
@media (max-width: 560px) { .ai-type { font-size: 15px; white-space: normal; width: auto; animation: none; border-right: 0; } }

/* ============================================================
   FİYAT — sekmeler
   ============================================================ */
.tabs { display: flex; gap: 6px; background: var(--chip); padding: 5px; border-radius: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.tab {
  flex: 1; min-width: 120px; border: 0; cursor: pointer; background: transparent;
  font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--sub);
  padding: 12px 10px; border-radius: 10px;
  transition: background-color .2s ease, color .2s ease;
}
.tab[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 3px 12px rgba(36,22,51,.10); }
.panel { display: none; }
.panel[data-on] { display: block; animation: fadeUp .4s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.free-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.free-cloud span {
  font-size: 13px; background: var(--chip);
  padding: 8px 13px; border-radius: 999px; color: var(--ink);
}
.olist { list-style: none; counter-reset: o; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.olist li {
  counter-increment: o; position: relative; padding-left: 42px;
  font-size: 15px; line-height: 1.6; color: var(--sub);
}
.olist li::before {
  content: counter(o); position: absolute; left: 0; top: -2px;
  width: 27px; height: 27px; border-radius: 8px; background: var(--chip); color: var(--accent);
  display: grid; place-items: center; font-weight: 800; font-size: 13px; font-family: var(--sans);
}
.callout {
  margin-top: 22px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--chip); border: 1px solid var(--line);
  font-size: 13.5px; line-height: 1.6; color: var(--sub);
}
.callout strong { color: var(--ink); }

/* ============================================================
   SSS
   ============================================================ */
.faq { display: grid; gap: 10px; }
details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 20px; transition: border-color .2s ease;
}
details[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 15.5px;
  color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; font-size: 21px; font-weight: 400; color: var(--accent); flex: none;
  transition: transform .25s ease;
}
details[open] summary::after { transform: rotate(45deg); }
details p { font-size: 14.5px; padding-bottom: 20px; }

/* ============================================================
   CTA + KONFETİ
   ============================================================ */
.cta { text-align: center; overflow: hidden; position: relative; }
.cta .btn { background: #fff; color: var(--brand-strong); box-shadow: 0 14px 34px rgba(0,0,0,.22); }
.cta-icon { width: 84px; height: 84px; border-radius: 21px; margin: 0 auto 26px; box-shadow: 0 16px 40px rgba(0,0,0,.28); }
#confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#confetti i {
  position: absolute; top: -14px; width: 8px; height: 13px; border-radius: 2px;
  opacity: 0; animation: fall linear forwards;
}
@keyframes fall { 0% { opacity: .9; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(108vh) rotate(720deg); } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #0A0A0A; color: #9CA3AF; padding: 62px 20px calc(38px + env(safe-area-inset-bottom)); font-size: 14px; }
.footer a { color: #D1D5DB; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.f-grid { display: flex; flex-wrap: wrap; gap: 34px; justify-content: space-between; align-items: flex-start; }
.f-brand { display: flex; align-items: center; gap: 11px; }
.f-brand img { width: 40px; height: 40px; border-radius: 10px; }
.f-name { font-family: var(--serif); font-size: 19px; color: #fff; font-weight: 600; }
.f-meta { font-size: 12.5px; color: #6B7280; margin-top: 3px; }
.f-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.f-bottom { border-top: 1px solid rgba(255,255,255,.09); margin-top: 40px; padding-top: 24px; font-size: 12.5px; color: #6B7280; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

/* ============================================================
   ERİŞİLEBİLİRLİK — tam reset.
   NOT: yalnız animation-duration'ı kısaltmak yetmez; sonsuz
   animasyonlarda saniyede ~1000 iterasyona çıkar (CPU yakar).
   iteration-count ve transition da sıfırlanmalı.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .rv { opacity: 1; transform: none; }
  .ai-type { width: auto; white-space: normal; border-right: 0; }
  .island, .island-inner { transform: none; }
  .island-txt { opacity: 1; }
}

@media (max-width: 640px) {
  .sec { padding: 56px max(18px, env(safe-area-inset-left)) 56px max(18px, env(safe-area-inset-right)); }
  .sec-head { margin-bottom: 34px; }
  .card { padding: 22px; }
  /* Zarf mobilde küçülür: kapak taşması (yükseklik × ~%62) 128px paya sığar */
  .envelope { max-width: 260px; }
  .env-stage { padding-top: 128px; }
  /* Fiyat sekmeleri 375px'e sığmıyor (2+1 kırılıyordu): sekmeler gizlenir,
     üç panel kendi başlıklarıyla alt alta akar */
  .tabs { display: none; }
  .panel { display: block; animation: none; }
  .panel + .panel { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
}

/* ============================================================
   ÇOK-SAYFA EKLERİ
   ============================================================ */
/* İç sayfaların ilk bölümü sabit nav'ın altından başlar */
.pg-first { padding-top: calc(110px + env(safe-area-inset-top)); }
/* İç sayfa başlığı: h1 ama h2 ölçüsünde (sayfa başına tek h1) */
.pg-h1 { font-size: clamp(28px, 4.4vw, 42px); line-height: 1.14; }
/* Vitrin tanıtım kartları */
.promo-card img {
  width: 100%; height: 170px; object-fit: cover; object-position: top;
  border-radius: 13px; margin-bottom: 14px; border: 1px solid var(--line);
}
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr; } }
.trust p { font-size: 14.5px; }
.trust strong { color: var(--ink); display: block; margin-bottom: 6px; font-size: 15.5px; }

/* Mobil sekme barı offset'leri — base tanımlardan SONRA gelmeli (aynı özgüllük:
   son kural kazanır; erken media bloğuna konursa base ezer).
   İki-satırlık nav ~112px → içerik/hero/çapa offset'leri buna göre. */
@media (max-width: 960px) {
  .pg-first { padding-top: calc(166px + env(safe-area-inset-top)); }
  .hero { padding-top: calc(140px + env(safe-area-inset-top)); }
  .sec { scroll-margin-top: calc(116px + env(safe-area-inset-top)); }
}
