/* Alpa Player web sitesi — uygulama ile aynı dil. İki tema: gece (Siyah &
   Gümüş) ve gündüz (açık zemin). js/theme.js <html data-theme> değerini
   cihazın tercihine ya da kullanıcının seçimine göre ayarlar. */
@font-face { font-family: Inter; font-weight: 200; font-display: swap; src: url(../fonts/Inter-ExtraLight.ttf); }
@font-face { font-family: Inter; font-weight: 300; font-display: swap; src: url(../fonts/Inter-Light.ttf); }
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(../fonts/Inter-Regular.ttf); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(../fonts/Inter-Medium.ttf); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(../fonts/Inter-SemiBold.ttf); }

:root {
  --bg: #000;
  --surface: #0e0e12;
  --surface-2: #16161c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(226, 232, 240, 0.25);
  --platinum: #e2e8f0;
  --silver: #94a3b8;
  --text: #fff;
  --text-2: #a1a1aa;
  --muted: #71717a;
  --orange: #e0512a;
  --light: #f2f0eb;
  --ok: #86efac;
  --bad: #fca5a5;
  --link: #e2e8f0;
  --header-bg: rgba(0, 0, 0, 0.82);
  --header-solid: rgba(0, 0, 0, 0.96);
  --wm-light: #f2f0eb;
  --wm-player: #e2e8f0;
  --btn-bg: rgba(255, 255, 255, 0.08);
  --btn-hover: rgba(255, 255, 255, 0.14);
  --primary-bg: #e2e8f0;
  --primary-fg: #000;
  --primary-hover: #fff;
  --icon: #e2e8f0;
  --check-bg: rgba(226, 232, 240, 0.12);
  --scrim: rgba(0, 0, 0, 0.94);
  --heading-accent: #e2e8f0;
  --control: #e2e8f0;
  --card-shadow: none;
  --tv-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 120px rgba(0, 0, 0, 0.8);
  --mark-opacity: 0.05;
  --radius: 22px;
  --max: 1200px;
  color-scheme: dark;
}

/* Gündüz teması */
:root[data-theme="light"] {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --surface-2: #efeee9;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.2);
  --silver: #64748b;
  --text: #111114;
  --text-2: #52525b;
  --muted: #71717a;
  --ok: #15803d;
  --bad: #b91c1c;
  --link: #111114;
  --header-bg: rgba(247, 246, 243, 0.85);
  --header-solid: rgba(247, 246, 243, 0.98);
  --wm-light: #141413;
  --wm-player: #3f3f46;
  --btn-bg: rgba(0, 0, 0, 0.06);
  --btn-hover: rgba(0, 0, 0, 0.11);
  --primary-bg: #111114;
  --primary-fg: #fff;
  --primary-hover: #000;
  --icon: #3f3f46;
  --check-bg: rgba(0, 0, 0, 0.07);
  --scrim: rgba(15, 15, 18, 0.62);
  --heading-accent: #111114;
  --control: #111114;
  --card-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
  --tv-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  --mark-opacity: 0.08;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
body { transition: background-color 0.25s, color 0.25s; }
a:hover { color: var(--text); }
h1, h2, h3 { margin: 0; font-weight: 200; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.05; }
h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.1; }
h3 { font-size: 22px; font-weight: 400; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-2); }
.label { font-size: 13px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: var(--text-2); }
section { padding: 110px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head .label { margin-bottom: 16px; display: block; }
.section-head p { margin-top: 18px; color: var(--text-2); font-size: 19px; }

/* --- Üst şerit --- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand img { width: 34px; height: 34px; }
.wordmark { font-size: 17px; letter-spacing: 0.04em; white-space: nowrap; }
.wordmark b { font-weight: 600; }
.wordmark .o { color: var(--orange); }
.wordmark .l { color: var(--wm-light); }
.wordmark .p { font-weight: 200; color: var(--wm-player); letter-spacing: 0.32em; margin-left: 0.35em; }
.nav { display: flex; gap: 28px; margin-left: auto; align-items: center; }
.nav a { color: var(--text-2); font-size: 15px; }
.nav a:hover { color: var(--text); }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: var(--text); font-size: 26px; cursor: pointer; }

/* --- Düğmeler --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px; border-radius: 26px; border: 0; cursor: pointer;
  background: var(--btn-bg); color: var(--text); font: 400 16px Inter, sans-serif;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--btn-hover); transform: scale(1.02); color: var(--text); }
.btn.primary { background: var(--primary-bg); color: var(--primary-fg); font-weight: 500; }
.btn.primary:hover { background: var(--primary-hover); color: var(--primary-fg); }
.btn.small { height: 42px; padding: 0 20px; font-size: 15px; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; }
.row { display: flex; flex-wrap: wrap; gap: 14px; }

/* --- Vitrin --- */
.hero { padding: 90px 0 70px; position: relative; overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.hero p.lead { margin: 26px 0 36px; font-size: 21px; color: var(--text-2); max-width: 560px; }
.hero .tag { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.hero .tag img { width: 22px; height: 22px; }
.tv {
  position: relative; border-radius: 18px; padding: 10px; background: #111116;
  box-shadow: var(--tv-shadow);
}
.tv img { border-radius: 10px; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.tv::after { content: ''; position: absolute; left: 38%; right: 38%; bottom: -26px; height: 16px;
  border-radius: 0 0 10px 10px; background: #18181d; }
.bg-mark { position: absolute; right: -120px; top: 20px; width: 560px; opacity: var(--mark-opacity); filter: grayscale(1); pointer-events: none; }

/* --- Cihazlar --- */
.devices { padding: 40px 0 10px; }
.devices .wrap { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.device { background: var(--surface); border-radius: 18px; padding: 20px 16px; text-align: center; }
.device svg { width: 30px; height: 30px; fill: var(--silver); margin: 0 auto 10px; display: block; }
.device b { display: block; font-weight: 400; font-size: 15px; }
.device span { font-size: 13px; color: var(--muted); }
.device.soon span { color: var(--orange); }

/* --- Özellikler --- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--surface); border-radius: var(--radius); padding: 30px; }
.feature svg { width: 30px; height: 30px; fill: var(--icon); margin-bottom: 18px; }
.feature p { color: var(--text-2); margin-top: 10px; font-size: 16px; }

/* --- Kurumlar --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; color: var(--text-2); }
.checks li::before { content: '✓'; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 11px;
  background: var(--check-bg); color: var(--text); font-size: 12px; line-height: 22px; text-align: center; font-weight: 500; }
.checks b { color: var(--text); font-weight: 400; }

/* --- Görseller --- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shot { background: var(--surface); border-radius: 18px; overflow: hidden; cursor: zoom-in; border: 0; padding: 0; text-align: left; color: inherit; font: inherit; }
.shot img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform 0.4s; }
.shot:hover img { transform: scale(1.03); }
.shot span { display: block; padding: 14px 18px 18px; font-size: 15px; color: var(--text-2); }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.92); display: none;
  align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox.on { display: flex; }
.lightbox img { max-height: 90vh; border-radius: 12px; }

/* --- Fiyatlar --- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan { background: var(--surface); border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; }
.plan.featured { background: var(--surface-2); box-shadow: 0 0 0 1px var(--line-strong); }
.plan .price { font-size: 38px; font-weight: 200; margin: 18px 0 4px; }
.plan .price small { font-size: 15px; color: var(--text-2); }
.plan .note { font-size: 14px; color: var(--muted); min-height: 22px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; flex: 1; }
.plan li { font-size: 15px; color: var(--text-2); padding-left: 20px; position: relative; }
.plan li::before { content: '—'; position: absolute; left: 0; color: var(--muted); }
.plan .badge { align-self: flex-start; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--primary-fg);
  background: var(--primary-bg); border-radius: 12px; padding: 3px 10px; margin-bottom: 14px; font-weight: 500; }
.pay-methods { margin-top: 26px; color: var(--muted); font-size: 14px; }

/* --- SSS --- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border-radius: 18px; padding: 0 24px; }
.faq summary { cursor: pointer; padding: 22px 0; font-size: 18px; font-weight: 400; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--muted); font-weight: 200; font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 22px; color: var(--text-2); }

/* --- Uyarı bandı --- */
.notice { background: var(--surface); border-radius: var(--radius); padding: 28px 32px; display: flex; gap: 22px; align-items: flex-start; }
.notice svg { flex: none; width: 28px; height: 28px; fill: var(--orange); }
.notice p { color: var(--text-2); }
.notice b { color: var(--text); font-weight: 500; }

/* --- Alt bilgi --- */
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 40px; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
footer h4 { margin: 0 0 14px; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; font-weight: 500; color: var(--muted); }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a, footer li { color: var(--text-2); font-size: 15px; }
.signature { text-align: center; margin-top: 44px; color: var(--muted); font-size: 14px; }
.signature b { color: var(--text-2); font-weight: 500; }
.karo { display: inline-flex; gap: 2px; vertical-align: -3px; margin: 0 4px; }
.karo i { width: 18px; height: 18px; border-radius: 4px; font: 600 12px/18px Inter, sans-serif; font-style: normal; text-align: center; }
.karo i:nth-child(1) { background: var(--orange); color: #141413; }
.karo i:nth-child(2) { background: var(--light); color: #141413; }
.karo i:nth-child(3) { background: #232321; color: var(--light); }
.karo i:nth-child(4) { background: var(--light); color: var(--orange); }

/* --- Yasal giriş penceresi --- */
.gate { position: fixed; inset: 0; z-index: 100; background: var(--scrim); display: flex;
  align-items: center; justify-content: center; padding: 20px; }
.gate .box { width: 100%; max-width: 760px; max-height: 92vh; display: flex; flex-direction: column;
  background: var(--surface); border-radius: 26px; box-shadow: 0 0 0 1px var(--line); }
.gate header { padding: 30px 34px 18px; }
.gate header h2 { font-size: 28px; font-weight: 300; margin-top: 10px; }
.gate .text { overflow-y: auto; padding: 0 34px; color: var(--text-2); font-size: 15.5px; }
.gate .text h3 { font-size: 16px; font-weight: 500; color: var(--heading-accent); margin: 18px 0 6px; }
.gate .text p { margin-bottom: 10px; }
.gate .text strong { color: var(--text); font-weight: 500; }
.gate footer { border: 0; margin: 0; padding: 20px 34px 28px; }
.gate label { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 15px; margin-bottom: 18px; cursor: pointer; }
.gate input[type=checkbox] { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--control); flex: none; }
.gate .row { justify-content: space-between; align-items: center; }

/* --- Formlar (ödeme) --- */
.page { padding: 70px 0 90px; }
.form-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.card { background: var(--surface); border-radius: var(--radius); padding: 30px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.fields .wide { grid-column: 1 / -1; }
.fields label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-2); }
input, select, textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid transparent;
  background: var(--surface-2); color: var(--text); font: 300 16px Inter, sans-serif;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--silver); }
.methods { display: grid; gap: 12px; margin: 22px 0; }
.method { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 16px; background: var(--surface-2); cursor: pointer; }
.method input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--control); }
.method b { font-weight: 500; display: block; }
.method span { color: var(--text-2); font-size: 14px; }
.method.off { opacity: 0.45; cursor: not-allowed; }
.agree { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-2); margin: 10px 0 20px; }
.agree input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--control); }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 18px 0 0; font-size: 15px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; }
.summary .total { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; font-size: 20px; display: flex; justify-content: space-between; }
.msg { padding: 14px 18px; border-radius: 14px; margin-bottom: 18px; background: var(--surface-2); }
.msg.error { color: var(--bad); }
.msg.ok { color: var(--ok); }
.iban { font: 500 18px ui-monospace, Consolas, monospace; letter-spacing: 1px; color: var(--text); word-break: break-all; }

/* --- Yasal sayfalar --- */
.legal-page { max-width: 860px; }
.legal-page h1 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 10px; }
.legal-page .updated { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.legal-page h2 { font-size: 22px; font-weight: 500; margin: 34px 0 10px; color: var(--heading-accent); }
.legal-page p, .legal-page li { color: var(--text-2); }
.legal-page p + p { margin-top: 12px; }
.legal-page ul { padding-left: 22px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.legal-nav a { padding: 8px 16px; border-radius: 18px; background: var(--surface); font-size: 14px; color: var(--text-2); }
.legal-nav a.on { background: var(--primary-bg); color: var(--primary-fg); }

/* --- Mobil --- */
@media (max-width: 980px) {
  .hero .grid, .split, .form-grid { grid-template-columns: 1fr; }
  .features, .gallery { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .devices .wrap { grid-template-columns: repeat(3, 1fr); }
  footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  section { padding: 76px 0; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--header-solid); border-bottom: 1px solid var(--line); padding: 10px 24px 20px; align-items: stretch; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 17px; }
  .menu-btn { display: block; }
  .features, .gallery, .plans, .fields { grid-template-columns: 1fr; }
  .devices .wrap { grid-template-columns: repeat(2, 1fr); }
  footer .cols { grid-template-columns: 1fr; }
  .gate header, .gate .text, .gate footer { padding-left: 22px; padding-right: 22px; }
  .notice { flex-direction: column; }
}

.plan h3 { margin-top: 14px; }
.hidden { display: none !important; }
.mt { margin-top: 34px; }
.about { margin-top: 16px; max-width: 360px; }
.plan.soon { color: inherit; }
.plan.soon .label { margin-top: 18px; display: block; color: var(--orange); }
.plan[data-download] p { margin-top: 8px; font-size: 15px; }
.checkout-title { margin: 12px 0 34px; }
.mt-sm { margin-top: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.small-text { font-size: 14px; margin-top: 18px; }
.done-card { max-width: 720px; }
.bank { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; }
.bank dt { color: var(--muted); }
.bank dd { margin: 0; }
[hidden] { display: none !important; }

/* Kartlar gündüz temasında hafif gölgeyle ayrışır. */
.feature, .plan, .device, .card, .faq details, .notice, .shot, .gate .box { box-shadow: var(--card-shadow); }
.plan.featured { box-shadow: 0 0 0 1px var(--line-strong), var(--card-shadow); }

/* Gece / gündüz düğmesi */
.theme-btn {
  width: 42px; height: 42px; border-radius: 21px; border: 0; cursor: pointer; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--btn-bg); color: var(--text); transition: background 0.2s;
}
.theme-btn:hover { background: var(--btn-hover); }
.theme-btn svg { width: 20px; height: 20px; fill: currentColor; }
.theme-btn .sun { display: none; }
:root[data-theme="light"] .theme-btn .sun { display: block; }
:root[data-theme="light"] .theme-btn .moon { display: none; }
.top .theme-btn { margin-left: 18px; }
@media (max-width: 680px) { .top .theme-btn { margin-left: 10px; } .menu-btn { margin-left: auto; } }

/* Tarayıcıda dene */
.demo-tv { max-width: 1040px; margin: 0 auto; }
.demo-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000;
  display: flex; align-items: center; justify-content: center; }
.demo-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.demo-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.demo-start { position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 10px; background: #e2e8f0; color: #000; }
.demo-start:hover { background: #fff; color: #000; }
.demo-start svg { width: 20px; height: 20px; fill: currentColor; }
.demo-actions { justify-content: center; margin-top: 46px; }
.demo-note { max-width: 820px; margin-left: auto; margin-right: auto; text-align: center; }
.demo-frame:not(.started) { cursor: pointer; }
/* Üst bölüm: başlık ortada, altında canlı deneme televizyonu. */
.hero:has(.hero-head) { padding-top: 34px; }
.hero-head { max-width: 900px; margin: 0 auto 30px; text-align: center; }
.hero-head .tag { justify-content: center; margin-bottom: 12px; }
.hero-head h1 { font-size: clamp(32px, 4vw, 50px); }
.hero .hero-head p.lead { margin: 14px auto 0; max-width: 720px; font-size: 18px; }
.demo-tv { max-width: 1120px; }
.demo-tv { position: relative; z-index: 1; }
