/* Vidlune tanıtım sitesi
   Düzen: sola hizalı tek sütun akış; kahramanda solda tempo başlığı, sağda çalışan telefon demosu.
   Fikir: ay ışığı (lila zemin) + gece sahnesi (koyu çivit) + uygulamanın kırmızı-turuncu vurgusu. */
:root {
  --moon: #ECEAF5;      /* sayfa zemini */
  --paper: #FAF9FE;     /* yüzey */
  --ink: #1C1838;       /* metin, gece mavisi */
  --muted: #5D5880;     /* ikincil metin */
  --line: #D5D1E7;      /* çizgiler */
  --lilac: #B4ABE2;     /* iz kareleri, ikincil vurgu */
  --accent: #FF4F2B;    /* marka vurgusu */
  --accent-ink: #FFFFFF;
  --stage: #221D46;     /* demo sahnesi */
  --stage-floor: #2E2860;
  --font: "Archivo", "Noto Sans Arabic", "Hiragino Sans", "PingFang SC", "Apple SD Gothic Neo", "Microsoft YaHei", "Malgun Gothic", "Yu Gothic", "Noto Sans CJK SC", "Noto Sans Devanagari", "Nirmala UI", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 4vw, 2.6rem);
  --step-4: clamp(2.9rem, 9vw, 5.6rem);
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --moon: #14112A; --paper: #1C1838; --ink: #EEECF8; --muted: #A5A0C6; --line: #322D57;
    --lilac: #7268BE; --accent: #FF6A48; --stage: #0F0C22; --stage-floor: #1C1840; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --moon: #14112A; --paper: #1C1838; --ink: #EEECF8; --muted: #A5A0C6; --line: #322D57;
  --lilac: #7268BE; --accent: #FF6A48; --stage: #0F0C22; --stage-floor: #1C1840; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--moon);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--font);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
html.i18n-pending body { visibility: hidden; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.wrap.narrow { max-width: 760px; }

h1, h2, h3 { margin: 0; text-wrap: balance; }
h2 {
  font-size: var(--step-3);
  line-height: 1.1;
  font-weight: 800;
  font-variation-settings: "wdth" 110;
  letter-spacing: -0.015em;
}
h3 { font-size: var(--step-1); font-weight: 700; line-height: 1.25; }
p { margin: 0; }

/* ---------- üst bar ---------- */
.site-head {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--moon) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.3rem; font-variation-settings: "wdth" 112; letter-spacing: -0.01em; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; font-size: 0.95rem; font-weight: 600; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav .nav-web { color: var(--ink); }
.lang { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: 0.85rem; cursor: pointer; background: var(--paper); }
.lang select { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 16px; width: 100%; }
.lang:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- kahraman ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.tempo { display: flex; flex-direction: column; max-width: 100%; font-size: var(--step-4); line-height: 0.98; font-weight: 850; letter-spacing: -0.025em; }
/* tempo: genişlik = hız. Yavaş satır geniş, hızlı satır dar. */
.tempo span { white-space: nowrap; }
.tempo .t-slow { font-variation-settings: "wdth" 125; font-weight: 800; }
.tempo .t-mid  { font-variation-settings: "wdth" 96; font-weight: 850; }
.tempo .t-fast { font-variation-settings: "wdth" 62; font-weight: 900; color: var(--accent); }
.lede { margin-top: 28px; max-width: 34em; font-size: var(--step-1); line-height: 1.5; color: var(--muted); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 56px; padding: 8px 20px; border-radius: 12px;
  background: var(--ink); color: var(--moon); text-decoration: none;
}
.store-main { font-weight: 700; font-size: 1rem; line-height: 1.2; }
.store-soon { font-size: 0.78rem; opacity: 0.75; line-height: 1.2; }
.store.live .store-soon { display: none; }
.store:not(.live) { cursor: default; }
.web-link { display: inline-block; margin-top: 18px; color: var(--muted); font-weight: 600; text-underline-offset: 4px; }
.web-link:hover { color: var(--ink); }

/* ---------- demo ---------- */
.demo { margin: 0; justify-self: center; width: 100%; max-width: 360px; }
.phone {
  background: var(--ink);
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 30px 60px -30px rgba(28, 24, 56, 0.55);
}
:root[data-theme="dark"] .phone { background: #2A2552; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .phone { background: #2A2552; } }
.screen { position: relative; border-radius: 30px 30px 10px 10px; overflow: hidden; background: var(--stage); aspect-ratio: 9 / 13; }
#stage { display: block; width: 100%; height: 100%; }
.hud { position: absolute; top: 14px; inset-inline-end: 14px; display: flex; gap: 6px; font-weight: 700; font-size: 0.8rem; }
.hud span { background: rgba(255, 255, 255, 0.14); color: #fff; border-radius: 999px; padding: 4px 9px; font-variant-numeric: tabular-nums; }
.controls { padding: 12px 6px 6px; color: #F2F0FB; }
.timeline { position: relative; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.16); margin: 4px 6px 14px; direction: ltr; }
.loop-band { position: absolute; top: -3px; bottom: -3px; border-radius: 4px; background: color-mix(in srgb, var(--accent) 45%, transparent); border: 1.5px solid var(--accent); }
.playhead { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; }
.ctrl-row { display: flex; align-items: center; justify-content: center; gap: 18px; direction: ltr; }
.ctrl-row.options { gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.play { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; }
.play .i-play { display: none; }
.play.paused .i-play { display: block; }
.play.paused .i-pause { display: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.1); color: #fff; display: grid; place-items: center; cursor: pointer; }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
.speeds { display: inline-flex; background: rgba(255, 255, 255, 0.1); border-radius: 999px; padding: 3px; }
.chip { font: inherit; font-size: 0.85rem; font-weight: 700; border: 0; border-radius: 999px; padding: 7px 12px; background: transparent; color: #E6E3F6; cursor: pointer; font-variant-numeric: tabular-nums; }
.speeds .chip.on { background: #fff; color: #1C1838; }
.chip.toggle { background: rgba(255, 255, 255, 0.1); }
.chip.toggle[aria-pressed="true"] { background: var(--accent); color: #fff; }
.demo figcaption { margin-top: 16px; display: grid; gap: 2px; font-weight: 600; font-size: 0.95rem; }
.demo .hint { color: var(--muted); font-weight: 400; font-size: 0.9rem; }

/* ---------- kendini çek, karşılaştır ---------- */
.compare { background: var(--stage); color: #F2F0FB; padding: clamp(56px, 8vw, 104px) 0; }
.compare h2 { color: #fff; }
.compare .section-lede { color: #C5C0E3; }
.compare .soon { background: rgba(255, 255, 255, 0.14); color: #fff; }
.cmp-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: 44px; }
.cmp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cmp-step {
  width: 100%; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 16px; align-items: start;
  text-align: start; font: inherit; color: inherit; background: transparent; border: 0; border-radius: var(--radius);
  padding: 16px 18px; cursor: pointer; opacity: 0.62;
}
.cmp-step:hover { opacity: 0.9; }
.cmp-step[aria-pressed="true"] { opacity: 1; background: rgba(255, 255, 255, 0.07); }
.cmp-step .num { font-size: 3rem; color: var(--lilac); }
.cmp-step[aria-pressed="true"] .num { color: var(--accent); }
.cmp-step strong { display: block; font-size: var(--step-1); font-weight: 750; font-variation-settings: "wdth" 108; line-height: 1.25; margin-bottom: 4px; color: #fff; }
.cmp-step span span { color: #C5C0E3; font-size: 0.97rem; }

.cmp-viewer { margin: 0; background: #0E0B21; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 28px; padding: 12px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.cmp-screens { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; direction: ltr; }
.cmp-screen { position: relative; aspect-ratio: 9 / 12; border-radius: 18px; overflow: hidden; background: var(--stage); }
:root[data-theme="dark"] .cmp-screen { background: #1A1640; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cmp-screen { background: #1A1640; } }
.cmp-screen canvas { display: block; width: 100%; height: 100%; }
.cmp-label { position: absolute; top: 12px; inset-inline-start: 12px; font-size: 0.8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); color: #fff; }
.cmp-label.you { background: #F4F2FF; color: #1C1838; }
.cmp-track { display: block; width: 100%; height: 64px; margin-top: 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); direction: ltr; }
.cmp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 6px 4px; min-height: 60px; }
.cmp-status { font-weight: 600; font-size: 0.95rem; color: #E6E3F6; flex: 1 1 16em; }
.cmp-status.ok::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5BE3A4; margin-inline-end: 8px; vertical-align: middle; }
.cmp-practice { font: inherit; font-weight: 700; font-size: 0.92rem; border: 0; border-radius: 999px; padding: 10px 18px; background: var(--accent); color: #fff; cursor: pointer; }
.cmp-practice[aria-pressed="true"] { background: #F4F2FF; color: #1C1838; }
.cmp-note { margin-top: 28px; color: #C5C0E3; font-size: 0.95rem; max-width: 46em; }

/* ---------- bölümler ---------- */
section h2 + * { margin-top: 32px; }
.steps, .features, .who, .pricing, .faq { padding: clamp(56px, 8vw, 96px) 0; }
.steps { background: var(--paper); border-block: 1px solid var(--line); }
.step-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.step-list li { display: grid; gap: 10px; align-content: start; }
.num { font-size: 4rem; line-height: 1; font-weight: 300; font-variation-settings: "wdth" 62; color: var(--lilac); }
.step-list p, .feature p { color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 48px); row-gap: 40px; }
.feature { border-top: 2px solid var(--ink); padding-top: 16px; display: grid; gap: 8px; align-content: start; }
.soon { display: inline-block; vertical-align: middle; font-size: 0.72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--lilac) 35%, transparent); color: var(--ink); white-space: nowrap; }

.who { background: var(--stage); color: #F2F0FB; }
.who h2 { color: #fff; }
.who-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.who-list li { display: grid; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.who-list strong { font-size: var(--step-2); font-weight: 800; font-variation-settings: "wdth" 112; line-height: 1.1; }
.who-list span { color: #C5C0E3; }

.section-lede { margin-top: 14px; color: var(--muted); max-width: 40em; font-size: var(--step-1); line-height: 1.5; }
.table-scroll { position: relative; overflow-x: auto; margin-top: 36px; }
.plans { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.plans th, .plans td { text-align: start; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.plans tbody tr:last-child th, .plans tbody tr:last-child td { border-bottom: 0; }
.plans thead th { vertical-align: bottom; }
.plans tbody th { font-weight: 600; width: 40%; }
.plans td { color: var(--muted); }
.plans .pro { background: color-mix(in srgb, var(--accent) 7%, transparent); color: var(--ink); }
.plan-name { display: block; font-size: var(--step-2); font-weight: 800; font-variation-settings: "wdth" 112; }
.plan-price { display: block; font-weight: 700; margin-top: 4px; }
.plan-year { display: block; color: var(--muted); font-weight: 400; font-size: 0.9rem; }
.fine { margin-top: 16px; color: var(--muted); font-size: 0.92rem; }

.web-band { background: var(--lilac); color: #1C1838; padding: clamp(40px, 6vw, 64px) 0; }
.web-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.web-row p { margin-top: 8px; max-width: 38em; }
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 12px; background: #1C1838; color: #fff; text-decoration: none; font-weight: 700; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { margin-top: 28px; border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 0; font-weight: 700; font-size: var(--step-1); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.6rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 40em; }

.site-foot { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 0.92rem; color: var(--muted); }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-row nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- sağdan sola ---------- */
[dir="rtl"] .tempo, [dir="rtl"] h2, [dir="rtl"] .brand { letter-spacing: 0; }

/* ---------- dar ekran ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .demo { justify-self: start; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .who-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav a:not(.nav-web) { display: none; }
  .cmp-grid { grid-template-columns: minmax(0, 1fr); }
  .cmp-viewer { order: -1; }
}
@media (max-width: 600px) {
  .cmp-step { padding: 12px 10px; gap: 12px; grid-template-columns: 1.9rem minmax(0, 1fr); }
  .cmp-step .num { font-size: 2.4rem; }
  .cmp-viewer { padding: 8px; border-radius: 22px; }
  .cmp-screens { gap: 6px; }
  .cmp-screen { border-radius: 14px; }
  .cmp-label { top: 8px; inset-inline-start: 8px; font-size: 0.72rem; padding: 3px 8px; }
}
@media (max-width: 600px) {
  .step-list, .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .nav { display: none; }
  .lang { margin-inline-start: auto; }
  .demo { max-width: 100%; }
  .store { flex: 1 1 100%; }
  .who-list { grid-template-columns: minmax(0, 1fr); }
  .plans { min-width: 0; font-size: 0.92rem; }
  .plans th, .plans td { padding: 12px 10px; }
  .plans tbody th { width: 44%; }
  .plan-name { font-size: var(--step-1); }
}
