/* =========================================================
   eSIM bayi — modül stilleri
   Palet: koyu mor #250F26 · neon sarı #CCFF00 · kırık beyaz #F8F6F9
   Tüm yön bağımlı değerler mantıksal özelliklerle (inline-start/end)
   yazıldı; Arapça (RTL) otomatik aynalanır.
   ========================================================= */

:root {
  --plum: #250F26;
  --plum-2: #321634;
  --plum-3: #4B2B4E;
  --neon: #CCFF00;
  --paper: #F8F6F9;
  --text: #F8F6F9;
  --text-2: rgba(248, 246, 249, .74);
  --line: rgba(248, 246, 249, .14);
  --ink-line: rgba(37, 15, 38, .12);

  --f-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --f-body: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-arabic: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 28px;
  --wrap: 72rem;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7rem);
  color-scheme: dark;
}

html[dir="rtl"] {
  --f-display: var(--f-arabic);
  --f-body: var(--f-arabic);
}

/* ---------- Temel (mevcut sitende zaten varsa bu bloğu atlayabilirsin) ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--plum);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--f-body);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html[dir="rtl"] body { line-height: 1.75; }
img, iframe, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6.5vw, 4.75rem); font-weight: 700; line-height: 1.04; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
html[dir="rtl"] :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--neon); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--alt { background: var(--plum-2); }
.lede { color: var(--text-2); font-size: 1.125rem; max-width: 38rem; margin-top: .75rem; }
.fineprint { color: var(--text-2); font-size: .9375rem; margin-top: 1.5rem; max-width: 60ch; }

.sec-head { margin-bottom: 2.5rem; }
.sec-head--split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }

.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -3rem; z-index: 100;
  background: var(--neon); color: var(--plum); padding: .6rem 1rem; border-radius: var(--r-sm); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3rem; padding: .7rem 1.4rem;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--neon); color: var(--plum); }
.btn-primary:hover { background: var(--paper); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--neon); }
.btn-small { min-height: 2.4rem; padding: .4rem 1rem; font-size: .9375rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(37, 15, 38, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font: 700 1.05rem/1 var(--f-display); text-decoration: none; white-space: nowrap; }
.brand-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 18px; direction: ltr; }
.brand-bars i { width: 4px; background: var(--neon); border-radius: 1px; }
.brand-bars i:nth-child(1) { height: 30%; } .brand-bars i:nth-child(2) { height: 55%; }
.brand-bars i:nth-child(3) { height: 80%; } .brand-bars i:nth-child(4) { height: 100%; }

.site-nav { display: flex; gap: 1.25rem; margin-inline-start: auto; }
.site-nav a { text-decoration: none; color: var(--text-2); font-weight: 500; font-size: .9375rem; }
.site-nav a:hover { color: var(--neon); }
.header-tools { display: flex; align-items: center; gap: .75rem; }

.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch button {
  border: 0; background: transparent; color: var(--text-2); cursor: pointer;
  font: 600 .8125rem/1 var(--f-body); padding: .5rem .65rem; border-radius: 999px; min-width: 2.5rem;
}
.lang-switch button[aria-pressed="true"] { background: var(--paper); color: var(--plum); }

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; gap: .5rem 1rem; padding-block: .6rem; }
  .header-tools { margin-inline-start: auto; }
  .site-nav {
    order: 3; width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none;
    padding-bottom: .25rem; gap: 1.1rem;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(4rem, 10vw, 8rem) clamp(3rem, 7vw, 5rem); }
.hero-inner { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem; }
.hero-copy h1 { max-width: 15ch; }
.hero-copy .lede { margin-top: 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-signal { display: flex; align-items: flex-end; gap: 14px; height: clamp(9rem, 22vw, 16rem); direction: ltr; }
.hero-signal i { width: clamp(1.4rem, 3.4vw, 2.6rem); background: var(--neon); border-radius: 6px; transform-origin: bottom; }
.hero-signal i:nth-child(1) { height: 28%; } .hero-signal i:nth-child(2) { height: 52%; }
.hero-signal i:nth-child(3) { height: 76%; } .hero-signal i:nth-child(4) { height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .hero-signal i { animation: bar-rise .6s cubic-bezier(.2, .8, .2, 1) both; }
  .hero-signal i:nth-child(2) { animation-delay: .12s; }
  .hero-signal i:nth-child(3) { animation-delay: .24s; }
  .hero-signal i:nth-child(4) { animation-delay: .36s; }
}
@keyframes bar-rise { from { transform: scaleY(0); } }
@media (max-width: 640px) { .hero-inner { grid-template-columns: 1fr; } .hero-signal { display: none; } }

/* ---------- Segment / sekme kontrolü ---------- */
.segmented { display: inline-flex; background: var(--plum-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.section--alt .segmented { background: var(--plum); }
.segmented button {
  border: 0; background: transparent; color: var(--text); cursor: pointer;
  font: 600 .9375rem/1 var(--f-body); padding: .7rem 1.05rem; border-radius: 999px;
  transition: background-color .15s, color .15s;
}
.segmented button[aria-pressed="true"],
.segmented button[aria-selected="true"] { background: var(--neon); color: var(--plum); }

/* ---------- Paket kartları ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.plan {
  display: flex; flex-direction: column; gap: .35rem;
  padding: 1.75rem 1.5rem 1.5rem; border-radius: var(--r-md);
  background: var(--plum-2); border: 1px solid var(--line);
}
.plan--featured { border: 2px solid var(--neon); }
.plan-amount { font: 700 2.25rem/1.05 var(--f-display); letter-spacing: -.02em; }
.plan-days { color: var(--text-2); }
.plan-cta { margin-top: auto; }
.plan-days { margin-bottom: 1.5rem; }

/* ---------- Uyumluluk kontrolcüsü ---------- */
.compat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .compat { grid-template-columns: 1fr; } }
.compat-form .lede { margin-bottom: 2rem; }

.field { display: grid; gap: .45rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: .9375rem; }
.field select {
  appearance: none; -webkit-appearance: none; width: 100%;
  min-height: 3.25rem; padding-block: .75rem; padding-inline: 1rem 2.75rem;
  background-color: var(--plum);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23CCFF00' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 1.2rem; background-position: right 1rem center;
  color: var(--text); border: 1px solid var(--line); border-radius: var(--r-sm);
  font: 500 1rem/1.3 var(--f-body);
}
html[dir="rtl"] .field select { background-position: left 1rem center; }
.field select:disabled { opacity: .5; cursor: not-allowed; }
.field select option { background: var(--plum); color: var(--text); }

.tip { margin-top: 1.75rem; padding: 1.1rem 1.25rem; border: 1px dashed var(--plum-3); border-radius: var(--r-sm); color: var(--text-2); }
.tip-title { color: var(--text); font-weight: 600; margin-bottom: .25rem; }

.compat-result {
  display: flex; gap: 1.75rem; align-items: flex-start;
  min-height: 15rem; padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--plum); border-radius: var(--r-lg); border: 1px solid var(--line);
}
.compat-result[data-status="yes"] { border: 2px solid var(--neon); }
.compat-result[data-status="empty"] { align-items: center; justify-content: center; text-align: center; }
.compat-empty { color: var(--text-2); max-width: 22rem; }
.compat-text { display: grid; gap: .6rem; }
.compat-model { color: var(--text-2); font-size: .9375rem; }
.compat-title { font-size: clamp(1.3rem, 2.6vw, 1.75rem); }
.compat-text p:not(.compat-model) { color: var(--text-2); }
.compat-note { font-size: .9375rem; border-inline-start: 2px solid var(--plum-3); padding-inline-start: .75rem; }
.compat-text .btn { justify-self: start; margin-top: .5rem; }

/* Sinyal göstergesi: 4 çubuk = destekliyor, 2 = bölgeye bağlı, 0 = desteklemiyor */
.meter { flex: none; display: flex; align-items: flex-end; gap: 6px; height: 72px; position: relative; direction: ltr; }
.meter i { width: 14px; background: var(--plum-3); border-radius: 3px; }
.meter i:nth-child(1) { height: 25%; } .meter i:nth-child(2) { height: 50%; }
.meter i:nth-child(3) { height: 75%; } .meter i:nth-child(4) { height: 100%; }
.meter[data-level="4"] i,
.meter[data-level="2"] i:nth-child(-n+2) { background: var(--neon); }
.meter[data-level="0"]::after {
  content: ""; position: absolute; inset-inline-start: -6px; top: 50%;
  width: calc(100% + 12px); height: 3px; background: var(--paper);
  transform: rotate(-35deg); border-radius: 2px;
}
.meter[data-level="-1"] i { background: transparent; border: 2px dashed var(--plum-3); }
@media (max-width: 520px) { .compat-result:not([data-status="empty"]) { flex-direction: column; } }

/* ---------- Kurulum rehberi ---------- */
.guide-tabs { margin-bottom: 1.5rem; }
.guide-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(1.5rem, 5vw, 4rem); align-items: center;
  padding: clamp(1.25rem, 4vw, 2.5rem); border-radius: var(--r-lg);
  background: var(--plum-2); border: 1px solid var(--line);
}
@media (max-width: 760px) { .guide-panel { grid-template-columns: 1fr; } .phone { justify-self: center; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.step {
  display: grid; grid-template-columns: 2.5rem 1fr; gap: .9rem; align-items: start; width: 100%;
  padding: .9rem 1rem; text-align: start; cursor: pointer;
  background: transparent; color: var(--text); border: 0; border-inline-start: 3px solid var(--line);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; font: inherit;
}
html[dir="rtl"] .step { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.step:hover { background: rgba(248, 246, 249, .04); }
.step[aria-current="step"] { border-inline-start-color: var(--neon); background: var(--plum); }
.step-n { font: 700 1.25rem/1.3 var(--f-display); color: var(--text-2); }
.step[aria-current="step"] .step-n { color: var(--neon); }
.step-t { display: block; font-weight: 600; }
.step-d { display: block; color: var(--text-2); font-size: .9375rem; margin-top: .2rem; }

.phone {
  width: 232px; aspect-ratio: 9 / 18.5; padding: 10px;
  border-radius: 38px; background: var(--plum); border: 2px solid var(--plum-3);
}
.phone-screen {
  position: relative; height: 100%; border-radius: 28px; background: var(--paper); color: var(--plum);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .9rem;
  padding: 1.5rem 1.1rem; text-align: center;
}
.phone-screen::before {
  content: ""; position: absolute; top: 12px; inset-inline: 0; margin-inline: auto;
  width: 70px; height: 20px; border-radius: 999px; background: var(--plum);
}
.phone-icon { width: 76px; height: 76px; border-radius: 22px; background: var(--plum); color: var(--neon); display: grid; place-items: center; }
.phone-count { font-size: .8125rem; font-weight: 600; opacity: .7; }
.phone-title { font: 600 1.05rem/1.3 var(--f-display); }
.phone-dots { display: flex; gap: 6px; }
.phone-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-line); }
.phone-dots i.on { background: var(--plum); width: 20px; border-radius: 4px; }

/* ---------- Konum ---------- */
.find { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .find { grid-template-columns: 1fr; } }
.walk { display: flex; gap: .9rem; align-items: flex-start; margin-top: 1.25rem; font-size: 1.125rem; max-width: 34rem; }
.tram-badge { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 8px; background: var(--neon); color: var(--plum); font: 700 .95rem/1 var(--f-display); }
.facts { display: grid; gap: 1rem; margin: 2rem 0; }
.facts dt { font-size: .875rem; color: var(--text-2); }
.facts dd { margin: .15rem 0 0; font-weight: 500; }
.map-frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--plum-2); }
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.05); }

/* ---------- SSS ---------- */
.faq-wrap > * { max-width: 52rem; }
.faq { margin-top: 2rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.35rem 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.125rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 2rem; height: 2rem; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); color: var(--neon);
  font: 500 1.3rem/1 var(--f-body); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); max-width: 65ch; padding-bottom: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 2.5rem 7rem; border-top: 1px solid var(--line); color: var(--text-2); font-size: .9375rem; }

/* ---------- Yüzen WhatsApp butonu (her dilde sağ altta sabit) ---------- */
.wa-float {
  position: fixed; z-index: 50;
  right: max(1.1rem, env(safe-area-inset-right, 0px));
  bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: .75rem;
  padding: .5rem; padding-inline-end: 1.25rem;
  background: var(--plum); color: var(--text); text-decoration: none;
  border: 2px solid var(--neon); border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(204, 255, 0, .12), 0 10px 30px rgba(0, 0, 0, .35);
  transition: transform .15s, box-shadow .15s;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(204, 255, 0, .2), 0 14px 34px rgba(0, 0, 0, .4); }
.wa-icon { position: relative; width: 3rem; height: 3rem; border-radius: 50%; background: var(--neon); color: var(--plum); display: grid; place-items: center; }
.wa-icon::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--neon); opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .wa-icon::after { animation: wa-ping 2.4s ease-out 1.5s 3; }
}
@keyframes wa-ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }
.wa-text { display: grid; line-height: 1.25; }
.wa-label { font-weight: 600; font-size: .9375rem; }
.wa-online { font-size: .75rem; color: var(--text-2); display: inline-flex; align-items: center; gap: .35rem; }
.wa-online::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--neon); }
@media (max-width: 600px) {
  .wa-float { padding: .4rem; }
  .wa-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
