/* levori.app — uygulamanın koyu tasarım dili (levori-mobile src/theme/tokens.ts).
   Her şey bu sunucudan gelir: CSP default-src 'self'. Harici yazı tipi, betik,
   görsel eklenmez; eklenirse nginx.conf'taki CSP onu zaten engeller.
   Satır içi style="" de CSP'ye takılır — her değer bu dosyada durur. */

@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/Figtree-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/Figtree-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/Figtree-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas: #150F1C;
  --ink: #F7F1F4;
  --ink-2: #CCBFD5;
  --ink-3: #9B89B0;
  --accent: #D2ACF8;
  --primary: #E6D3D8;
  --primary-hover: #F1E4E8;
  --on-primary: #1E1226;
  --hairline: rgba(255, 255, 255, 0.14);
  --well: rgba(255, 255, 255, 0.06);
  --well-stroke: rgba(255, 255, 255, 0.16);

  --card-fill: linear-gradient(160deg, rgba(199, 166, 238, 0.12) 0%, rgba(156, 120, 201, 0.05) 55%, rgba(139, 95, 196, 0.1) 100%);
  --card-stroke: rgba(217, 195, 242, 0.3);
  --card-shadow: 0 14px 34px -18px rgba(10, 4, 18, 0.5);
  --card-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --glass-fill: linear-gradient(180deg, rgba(58, 37, 71, 0.55), rgba(106, 74, 134, 0.35));
  --glass-stroke: rgba(217, 195, 242, 0.45);

  --alert-fill: linear-gradient(160deg, rgba(229, 72, 77, 0.16), rgba(229, 72, 77, 0.06));
  --alert-stroke: rgba(244, 164, 172, 0.55);

  --r-card: 22px;
  --r-pill: 999px;
  --wrap: 1080px;
  --prose: 720px;
  --gutter: 20px;

  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  background: var(--canvas);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Üstte uygulamadaki topGlow + screen gradyanı; aşağısı düz canvas. */
  background:
    radial-gradient(90% 540px at 50% -140px, rgba(122, 78, 114, 0.55), rgba(122, 78, 114, 0) 100%),
    linear-gradient(180deg, #3A2740 0, #1D1426 280px, var(--canvas) 680px),
    var(--canvas);
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }

h1, h2, h3 { color: var(--ink); text-wrap: balance; }

h1 {
  font-weight: 400;
  font-size: clamp(2.5rem, 1.7rem + 3.6vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

h2 {
  font-weight: 400;
  font-size: clamp(1.75rem, 1.35rem + 1.8vw, 2.625rem);
  line-height: 1.14;
  letter-spacing: -0.022em;
}

h3 {
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

strong, b { font-weight: 600; color: var(--ink); }

a {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap-prose { max-width: calc(var(--prose) + 2 * var(--gutter)); }

.skip {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 10;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ── Üst çubuk ─────────────────────────────────────────────────────────── */
.site-header { padding: 14px 0; }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 8px;
}
.brand img { height: 26px; width: auto; }

.header-nav { display: flex; align-items: center; gap: 4px; }

.header-nav a,
.footer-links a {
  color: var(--ink-2);
  text-decoration: none;
}
.header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 0.9375rem;
}
.header-nav a:hover,
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.header-nav a[aria-current="page"],
.footer-links a[aria-current="page"] { color: var(--ink); }

.header-nav .lang {
  border: 1px solid var(--well-stroke);
  background: var(--well);
}

/* ── Ortak bloklar ─────────────────────────────────────────────────────── */
.section { padding: 56px 0; }
.section-tight { padding-top: 24px; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow + h1,
.eyebrow + h2 { margin-top: 14px; }

.lead {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.6;
  color: var(--ink-2);
}
h1 + .lead,
h2 + .lead,
h2 + p { margin-top: 16px; }

.muted { color: var(--ink-3); }
.small { font-size: 0.9375rem; }

.section-head { max-width: 640px; }

.card {
  background: var(--card-fill);
  border: 1px solid var(--card-stroke);
  border-radius: var(--r-card);
  padding: 24px;
  box-shadow: var(--card-shadow), var(--card-highlight);
}
.card h3 + p,
.card h2 + p { margin-top: 8px; }
.card p + p { margin-top: 10px; }

.card-alert {
  background: var(--alert-fill);
  border-color: var(--alert-stroke);
}
.card-alert h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }

.grid { display: grid; gap: 14px; }
.section-head + .grid,
.section-head + .steps,
.section-head + .card { margin-top: 32px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
}
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 12px 30px -14px rgba(230, 198, 210, 0.45);
}
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-glass {
  background: var(--glass-fill);
  border: 1px solid var(--glass-stroke);
  color: var(--ink);
}
.btn-glass:hover { color: var(--ink); border-color: var(--accent); }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  background: var(--well);
  color: var(--ink-2);
  font-size: 0.875rem;
}

.more { display: inline-block; margin-top: 18px; font-weight: 500; }

/* ── Tanıtım: giriş ────────────────────────────────────────────────────── */
.hero { padding: 32px 0 48px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }

/* Dar ekranda .split alt alta akar; başlıkla gövde arasına boşluk. */
.split > * + * { margin-top: 28px; }
.hero-note { margin-top: 18px; color: var(--ink-3); font-size: 0.9375rem; }

.hero-orb { display: grid; place-items: center; }
.hero-orb img {
  width: min(60vw, 240px);
  aspect-ratio: 1;
  animation: breathe 11s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(0.95); opacity: 0.88; }
  45% { transform: scale(1.02); opacity: 1; }
}

/* ── Tanıtım: Reset adımları ───────────────────────────────────────────── */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: step;
}
.steps > li {
  counter-increment: step;
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 16px;
  padding-bottom: 26px;
}
.steps > li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: var(--well);
  border: 1px solid var(--card-stroke);
  color: var(--accent);
  font-weight: 600;
}
.steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19.5px;
  top: 46px;
  bottom: 6px;
  width: 1px;
  background: var(--hairline);
}
.steps > li > * { grid-column: 2; }
.steps h3 { padding-top: 8px; }
.steps p { margin-top: 4px; }

.outcomes {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.outcomes li {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--card-stroke);
  background: var(--well);
  color: var(--ink);
  font-size: 0.9375rem;
}

.honest { margin-top: 8px; }

/* ── Tanıtım: araçlar ve gizlilik ──────────────────────────────────────── */
.tool h3 { font-size: 1.0625rem; }
.tool p { font-size: 0.9875rem; }

.checklist {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.checklist li {
  position: relative;
  padding-left: 26px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  border: 1.5px solid var(--accent);
}

/* ── Metin sayfaları ───────────────────────────────────────────────────── */
.page-head { padding: 32px 0 8px; }
.page-head .lead { margin-top: 16px; }
.updated { margin-top: 14px; color: var(--ink-3); font-size: 0.9375rem; }

.prose { padding: 24px 0 24px; }
.prose > * + * { margin-top: 16px; }
.prose h2 {
  margin-top: 56px;
  font-size: clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem);
  scroll-margin-top: 24px;
}
.prose h3 { margin-top: 28px; }
.prose h2 + *,
.prose h3 + * { margin-top: 12px; }
.prose ul,
.prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--ink-3); }
.prose .card { margin-top: 24px; }
.prose .card ul,
.prose .card ol { margin-top: 12px; }
.prose .card h2,
.prose .card h3,
.prose .toc h2 { margin-top: 0; }
.prose .card > * + * { margin-top: 12px; }
.prose .h3-size {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.prose .checklist { padding-left: 0; }
.prose .checklist li + li { margin-top: 0; }
.prose .actions { margin-top: 20px; }
.prose .card-alert h2:not(.h3-size) { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }

.toc ol { margin-top: 10px; columns: 1; }
.toc li + li { margin-top: 4px; }

.basis { display: grid; gap: 12px; margin-top: 16px; }
.basis .card { margin-top: 0; padding: 20px; }
.basis dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px 16px;
  margin-top: 10px;
  font-size: 0.9875rem;
}
.basis dt { color: var(--ink-3); font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; }
.basis dd + dt { margin-top: 8px; }

.steps-inline { padding-left: 1.25em; }

.faq { margin-top: 16px; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 0;
  cursor: pointer;
  color: var(--ink);
  font-weight: 500;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font-size: 1.375rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 0 20px; }
.faq .answer > * + * { margin-top: 10px; }

/* ── Alt bilgi ─────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 56px;
  padding: 36px 0 44px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-3);
  font-size: 0.9375rem;
}
.footer-note { max-width: 640px; }
.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 20px;
  margin-top: 20px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer-meta { margin-top: 12px; }

/* ── Geniş ekran ───────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .site-header { padding: 22px 0; }
  .brand img { height: 30px; }
  .grid-2,
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .basis dl { grid-template-columns: 140px 1fr; }
  .basis dd + dt { margin-top: 0; }
  .basis dt { padding-top: 3px; }
  .card { padding: 28px; }
}

@media (min-width: 900px) {
  .section { padding: 88px 0; }
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 48px; }
  .hero-orb img { width: 100%; max-width: 380px; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
  .split > .section-head + * { margin-top: 0; }
  .page-head { padding-top: 56px; }
  .toc ol { columns: 2; column-gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-orb img { animation: none; }
}

@media (forced-colors: active) {
  .card,
  .btn,
  .pill { border: 1px solid CanvasText; }
}
