/* Rovenba — tanıtım ve destek sitesi. Statik; build adımı yok. */

:root {
  --bg: #0a0c0f;
  --surface: #12151a;
  --surface-2: #181c22;
  --line: #252a32;
  --line-strong: #353b45;
  --text: #ffffff;
  --text-2: #b9bfc8;
  --text-3: #8c939e;
  --yellow: #fdd42f;
  --yellow-soft: rgba(253, 212, 47, 0.12);
  --on-yellow: #0a0c0f;

  --radius: 14px;
  --radius-sm: 10px;
  --container: 1200px;
  --gutter: 20px;
  --header-h: 64px;

  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--yellow);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--yellow);
  color: var(--on-yellow);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 15, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
  border-radius: 6px;
}

.brand img {
  width: auto;
  height: 20px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded='true'] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded='true'] .icon-close {
  display: block;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.site-nav a[aria-current='page'] {
  color: var(--text);
}

.site-nav a[aria-current='page']::after {
  content: '';
  display: block;
  height: 2px;
  margin-top: 4px;
  background: var(--yellow);
  border-radius: 2px;
}

/* Menü yalnızca JS açıkken daraltılır; JS yoksa bağlantılar alt alta görünür. */
@media (max-width: 760px) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .site-nav {
    width: 100%;
  }

  .js .site-nav {
    display: none;
  }

  .js .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 0 14px;
  }

  .site-nav a {
    padding: 13px 4px;
    border-radius: 0;
    border-top: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .site-nav a:hover {
    background: transparent;
  }

  .site-nav a[aria-current='page'] {
    color: var(--yellow);
  }

  .site-nav a[aria-current='page']::after {
    display: none;
  }
}

/* ---------- Buttons / pills ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.button-primary {
  background: var(--yellow);
  color: var(--on-yellow);
}

.button-primary:hover {
  background: #e6be22;
}

.button-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.button-ghost:hover {
  border-color: var(--text-3);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 400px) {
  .status-pill {
    gap: 8px;
    padding: 0 14px;
    font-size: 0.875rem;
  }
}

.status-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px var(--yellow-soft);
  flex: none;
}

.eyebrow {
  display: inline-block;
  color: var(--yellow);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 72px 0 88px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 56px;
}

.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero h1 .accent {
  color: var(--yellow);
}

.hero-lead {
  max-width: 34rem;
  margin-top: 22px;
  color: var(--text-2);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

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

.hero-figure {
  margin: 0;
}

.route-art {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.route-art .streets path {
  stroke: #232830;
}

.route-art .streets .major {
  stroke: #2d333c;
}

.route-art .route-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.hero-figure figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--text-3);
  font-size: 0.9rem;
}

.hero-figure figcaption svg {
  flex: none;
  width: 18px;
  height: 18px;
}

@media (max-width: 900px) {
  .hero {
    padding: 44px 0 64px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 44rem;
  margin-bottom: 44px;
}

.section-head h2 {
  margin-top: 12px;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 800;
}

.section-head p {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 1.08rem;
}

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

  .section-head {
    margin-bottom: 32px;
  }
}

/* ---------- Feature rows ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-wide {
  grid-column: 1 / -1;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--yellow-soft);
  color: var(--yellow);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature h3 {
  margin-top: 20px;
  font-size: 1.3rem;
  font-weight: 750;
}

.feature > p {
  margin-top: 10px;
  color: var(--text-2);
}

.facts {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.feature-wide .facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 24px;
}

.facts li {
  position: relative;
  padding-left: 20px;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.5;
}

.facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--yellow);
}

.feature-plus {
  border-color: rgba(253, 212, 47, 0.38);
  background: linear-gradient(180deg, rgba(253, 212, 47, 0.06), rgba(253, 212, 47, 0) 55%), var(--surface);
}

.plus-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.plus-mark .plus {
  color: var(--yellow);
}

.note {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 1rem;
}

@media (max-width: 820px) {
  .features {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-wide .facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .feature {
    padding: 22px 20px;
  }
}

/* ---------- Privacy band ---------- */

.privacy-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.privacy-point {
  padding: 26px 24px;
  border-left: 1px solid var(--line);
}

.privacy-point:first-child {
  border-left: 0;
}

.privacy-point h3 {
  font-size: 1.08rem;
  font-weight: 700;
}

.privacy-point p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 1rem;
}

.section-link {
  margin-top: 26px;
  font-weight: 600;
}

@media (max-width: 820px) {
  .privacy-points {
    grid-template-columns: minmax(0, 1fr);
  }

  .privacy-point {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .privacy-point:first-child {
    border-top: 0;
  }
}

/* ---------- Closing CTA ---------- */

.closing {
  padding: 88px 0;
  text-align: center;
}

.closing h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  font-weight: 800;
}

.closing-lead {
  max-width: 34rem;
  margin: 14px auto 0;
  color: var(--text-2);
}

.closing-actions {
  justify-content: center;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 44px 0 52px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.92rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand img {
  width: auto;
  height: 16px;
}

.footer-brand p {
  margin-top: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  padding: 6px 0;
  color: var(--text-2);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ---------- Document pages (privacy / terms / support / delete) ---------- */

.doc-hero {
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--line);
}

.doc-hero h1 {
  margin-top: 12px;
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 800;
}

.doc-hero .lead {
  max-width: 44rem;
  margin-top: 16px;
  color: var(--text-2);
  font-size: 1.1rem;
}

.doc-meta {
  margin-top: 18px;
  color: var(--text-3);
  font-size: 0.9rem;
}

.doc-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  padding-top: 48px;
  padding-bottom: 88px;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  font-size: 0.92rem;
}

.toc h2 {
  color: var(--text-3);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc ol {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}

.toc a {
  display: block;
  padding: 6px 0 6px 14px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  color: var(--text-2);
  text-decoration: none;
  line-height: 1.4;
}

.toc a:hover {
  color: var(--text);
  border-left-color: var(--yellow);
}

.prose {
  max-width: 56rem;
  color: var(--text-2);
}

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

.prose h2 {
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 750;
}

.prose h3 {
  margin-top: 28px;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
}

.prose p,
.prose ul,
.prose ol,
.prose dl {
  margin: 14px 0 0;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 8px;
}

.prose li::marker {
  color: var(--text-3);
}

.prose strong {
  color: var(--text);
  font-weight: 650;
}

.prose code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.92em;
}

.callout {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--yellow);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-2);
}

.callout p:first-child {
  margin-top: 0;
}

.callout-title {
  display: block;
  color: var(--text);
  font-weight: 700;
}

.table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.prose table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose tr:last-child td {
  border-bottom: 0;
}

.prose th {
  background: var(--surface);
  color: var(--text);
  font-weight: 650;
}

.steps {
  counter-reset: step;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  padding: 0 0 0 46px;
  min-height: 32px;
}

.steps li + li {
  margin-top: 14px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--yellow-soft);
  color: var(--yellow);
  font-weight: 750;
  font-size: 0.9rem;
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-card .label {
  color: var(--text-3);
  font-size: 0.85rem;
}

.contact-card .value {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  word-break: break-all;
}

/* /ac/ landing: "Uygulamada aç" (added by open-app.js). */
#open-actions:not(:empty) {
  margin-top: 22px;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-of-type {
  border-top: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 18px 40px 18px 0;
  color: var(--text);
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  margin-top: -2px;
  transform: rotate(-135deg);
}

.faq .answer {
  padding: 0 0 20px;
}

.faq .answer > :first-child {
  margin-top: 0;
}

@media (max-width: 900px) {
  .doc-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 32px;
    padding-bottom: 64px;
  }

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

/* ---------- 404 ---------- */

.not-found {
  padding: 120px 0;
  text-align: center;
}

.not-found h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
}

.not-found p {
  margin-top: 14px;
  color: var(--text-2);
}

.not-found .hero-actions {
  justify-content: center;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .reveal-2 {
    animation-delay: 0.08s;
  }

  .reveal-3 {
    animation-delay: 0.16s;
  }

  .route-art .route-line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 2.2s 0.3s cubic-bezier(0.45, 0, 0.2, 1) forwards;
  }

  .route-art .route-end {
    opacity: 0;
    animation: fade 0.4s 2.3s ease forwards;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes draw {
    to {
      stroke-dashoffset: 0;
    }
  }

  @keyframes fade {
    to {
      opacity: 1;
    }
  }
}

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