/* CepteKalan Support — layout system */
:root {
  color-scheme: light;
  --bg: #eef1f8;
  --bg-mesh-1: rgba(0, 122, 255, 0.12);
  --bg-mesh-2: rgba(52, 199, 89, 0.08);
  --bg-mesh-3: rgba(94, 92, 230, 0.06);
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.12);
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --brand: #007aff;
  --brand-strong: #0062cc;
  --brand-soft: rgba(0, 122, 255, 0.08);
  --brand-glow: rgba(0, 122, 255, 0.18);
  --success: #059669;
  --success-soft: rgba(5, 150, 105, 0.1);
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.08);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
  --content-max: 1080px;
  --sidebar-w: 240px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #070b14;
    --bg-mesh-1: rgba(0, 122, 255, 0.16);
    --bg-mesh-2: rgba(52, 199, 89, 0.06);
    --bg-mesh-3: rgba(94, 92, 230, 0.1);
    --surface: #0f172a;
    --surface-soft: #111827;
    --line: rgba(148, 163, 184, 0.12);
    --line-strong: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --brand-soft: rgba(0, 122, 255, 0.14);
    --brand-glow: rgba(0, 122, 255, 0.24);
    --success-soft: rgba(52, 211, 153, 0.12);
    --danger-soft: rgba(248, 113, 113, 0.12);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
  }
}

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

/* i18n — layout display rules must not override language hiding */
[hidden] { display: none !important; }
html[lang="tr"] [data-lang-block="en"],
html[lang="en"] [data-lang-block="tr"] {
  display: none !important;
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font: 15px/1.6 var(--font);
  background:
    radial-gradient(800px 420px at 0% 0%, var(--bg-mesh-1), transparent 60%),
    radial-gradient(700px 380px at 100% 0%, var(--bg-mesh-2), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; transition: color 0.15s var(--ease); }
a:hover { color: var(--brand-strong); }
img { display: block; max-width: 100%; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}
.skip-link:focus { top: 16px; }

/* Shell */
.shell {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
}

.site-header .page {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand:hover { color: var(--text); }

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.brand-name {
  font-size: 0.9375rem;
  line-height: 1.15;
}

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

.site-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--brand);
  background: var(--brand-soft);
}

.header-divider {
  width: 1px;
  height: 24px;
  background: var(--line-strong);
  margin: 0 4px;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}
.lang-switch a,
.lang-switch span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}
.lang-switch a[aria-current="page"],
.lang-switch span[aria-current="page"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* Breadcrumb */
.breadcrumb-bar {
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}
.breadcrumb-bar .page {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding-top: 0;
  padding-bottom: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before {
  content: "/";
  color: var(--text-muted);
  opacity: 0.5;
}
.breadcrumb a { color: var(--text-secondary); font-weight: 500; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current="page"] { color: var(--text); font-weight: 600; }

.breadcrumb-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.breadcrumb-action:hover {
  border-color: rgba(0, 122, 255, 0.25);
  color: var(--brand);
}
.breadcrumb-action svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Page intro */
.page-intro {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--line);
}

.page-intro-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.page-intro-main { min-width: 0; }

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.lead {
  margin: 0;
  max-width: 56ch;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
}

.page-meta {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.intro-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.intro-panel-title {
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.intro-stats {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.intro-stats li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.intro-stats li:last-child { border-bottom: 0; padding-bottom: 0; }
.intro-stats li:first-child { padding-top: 0; }
.intro-stats strong {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.intro-stats span { color: var(--text-muted); font-size: 0.8125rem; text-align: right; }

.intro-actions {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.link-appstore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.link-appstore svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.intro-stats .link-appstore {
  color: inherit;
}
.intro-stats .link-appstore svg {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}

.btn-primary {
  border: 1px solid transparent;
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-strong); color: #fff; }

.btn-secondary {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
}
.btn-secondary:hover { border-color: rgba(0, 122, 255, 0.3); color: var(--brand); }

/* Main content area */
.content {
  padding: 32px 0 48px;
}

.section-block + .section-block {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.section-label {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.section-title {
  margin: 0 0 20px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

/* Support grid — 3 equal columns */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.support-cell {
  padding: 24px;
  background: var(--surface);
}

.support-cell h2 {
  margin: 0 0 14px;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.support-cell p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.support-cell p + p { margin-top: 10px; }

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature-list li {
  position: relative;
  padding: 0 0 10px 16px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}
.feature-list li:last-child { padding-bottom: 0; }

.contact-email {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  word-break: break-all;
}

/* FAQ — full width table-like */
.faq-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: 0; }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background 0.15s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
  flex-shrink: 0;
  margin-top: -4px;
}
.faq-item[open] summary {
  background: var(--surface-soft);
  color: var(--brand);
}
.faq-item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
  border-color: var(--brand);
}

.faq-answer {
  padding: 0 20px 18px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* Checklist */
.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}
.checklist li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
.checklist li:last-child { border-bottom: 0; padding-bottom: 0; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag.ok { background: var(--success-soft); color: var(--success); }
.tag.warn { background: var(--danger-soft); color: var(--danger); }

/* Policy layout */
.policy-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.policy-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.policy-toc {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.policy-toc-title {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.policy-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.policy-toc li {
  counter-increment: toc;
  border-bottom: 1px solid var(--line);
}
.policy-toc li:last-child { border-bottom: 0; }
.policy-toc a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}
.policy-toc a::before {
  content: counter(toc, decimal-leading-zero);
  min-width: 22px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.policy-toc a:hover,
.policy-toc a.is-active {
  color: var(--brand);
}
.policy-toc a.is-active::before { color: var(--brand); }

.policy-doc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.policy-section {
  padding: 28px 32px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.policy-section + .policy-section {
  border-top: 1px solid var(--line);
}

.policy-section h2 {
  margin: 0 0 10px;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.policy-section p {
  margin: 0;
  max-width: 68ch;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.policy-section p + p { margin-top: 10px; }

.policy-section .contact-email {
  margin-top: 12px;
}

/* Bottom action bar */
.action-bar {
  margin-top: 32px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.action-bar-text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.action-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer .page {
  padding-top: 32px;
  padding-bottom: 24px;
}

.footer-row {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-brand p {
  margin: 10px 0 0;
  max-width: 280px;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-col h3 {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-links {
  display: grid;
  gap: 8px;
}
.footer-links span {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
}
.footer-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}
.footer-links a:hover { color: var(--brand); }

.footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.footer-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
  text-align: center;
}

.footer-copy-sep {
  color: var(--text-muted);
  opacity: 0.45;
  user-select: none;
}

.footer-appinico {
  font-weight: 600;
  color: var(--text-secondary);
}
.footer-appinico:hover {
  color: var(--brand);
}

.btn-appstore {
  border: 1px solid var(--line-strong);
  background: var(--text);
  color: var(--surface);
}
.btn-appstore:hover {
  opacity: 0.92;
  color: var(--surface);
}

/* Privacy */
.policy-nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.policy-nav-pills a {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.policy-nav-pills a:hover {
  border-color: rgba(0, 122, 255, 0.28);
  color: var(--brand);
}

.policy-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.policy-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.policy-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}
.policy-list li { margin-bottom: 6px; }
.policy-list li:last-child { margin-bottom: 0; }

.policy-note {
  margin-top: 12px;
  color: var(--text-secondary);
}

:focus-visible {
  outline: 2px solid rgba(0, 122, 255, 0.5);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .page-intro-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .intro-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
  }
  .intro-panel-title { grid-column: 1 / -1; margin-bottom: 0; }
  .intro-actions {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .policy-layout {
    grid-template-columns: 1fr;
  }
  .policy-sidebar {
    position: static;
  }
  .policy-toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
  }
  .policy-toc li { border-bottom: 0; }
}

@media (max-width: 640px) {
  .page { padding: 0 16px; }

  .site-nav a:not([aria-current="page"]) {
    display: none;
  }

  .breadcrumb-bar .page {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 10px;
    padding-bottom: 10px;
    min-height: auto;
  }

  .intro-panel {
    grid-template-columns: 1fr;
  }

  .policy-toc ol {
    grid-template-columns: 1fr;
  }

  .policy-section {
    padding: 22px 20px;
  }

  .action-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .action-bar-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
