/* Layeroom web sitesi: uygulamayla aynı nötr gri tema (app/lib/core/theme.dart, karar 12).
   Renkler yalnızca buradaki değişkenlerde; sayfalarda elle renk yazılmaz. */

:root {
  color-scheme: light dark;

  /* Açık tema: theme.dart _lightScheme */
  --surface: #f4f4f2;
  --surface-card: #ffffff;
  --surface-raised: #ecece9;
  --on-surface: #1e1e1e;
  --on-surface-muted: #6b6b6b;
  --outline: #ddddd8;
  --primary: #2e2e30;
  --on-primary: #ffffff;
  --error: #d64545;
  --on-error: #ffffff;

  /* Logonun çivit rengi: yalnızca küçük vurgularda (bağlantı altı çizgisi, adım numarası). */
  --brand: #6366f1;

  --radius: 14px;
  --content: 64rem;
  --prose: 44rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Koyu tema: theme.dart _darkScheme */
    --surface: #1c1c1e;
    --surface-card: #232325;
    --surface-raised: #2a2a2d;
    --on-surface: #ededed;
    --on-surface-muted: #a0a0a5;
    --outline: #444448;
    --primary: #e6e6e6;
    --on-primary: #1c1c1e;
    --error: #e06060;
    --on-error: #1c1c1e;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

/* "hidden" özelliği, display veren sınıflardan (.form gibi) güçlü olsun. */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

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

.skip-link {
  position: absolute;
  left: -999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--surface-card);
  padding: 0.5rem 1rem;
  z-index: 10;
}

.wrap {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Üst çubuk --- */

.site-header {
  border-bottom: 1px solid var(--outline);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
}

.brand img {
  width: 1.9rem;
  height: auto;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--on-surface-muted);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--on-surface);
}

.lang {
  font-size: 0.9rem;
  border: 1px solid var(--outline);
  border-radius: 999px;
  padding: 0.15rem 0.75rem;
  text-decoration: none;
}

/* --- Ana sayfa --- */

.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4.5rem 0 3.5rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--on-surface-muted);
  margin: 0 0 2rem;
  max-width: 34rem;
}

.hero-mark {
  justify-self: center;
  width: min(100%, 18rem);
  height: auto;
}

.availability {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.pill.outline {
  background: transparent;
  color: var(--on-surface);
  border: 1px solid var(--outline);
}

section {
  padding: 3rem 0;
}

section h2 {
  font-size: 1.75rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

.section-lead {
  color: var(--on-surface-muted);
  margin: 0 0 2rem;
  max-width: 40rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--on-surface-muted);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  background: var(--surface-card);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}

.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid var(--brand);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.steps strong {
  display: block;
  margin-bottom: 0.25rem;
}

.steps span {
  color: var(--on-surface-muted);
}

.promise {
  background: var(--surface-raised);
  border-radius: var(--radius);
  padding: 2rem;
}

.promise p {
  margin: 0;
  max-width: 44rem;
}

/* --- Yazı sayfaları (gizlilik, koşullar, destek) --- */

.prose {
  max-width: var(--prose);
  padding: 3rem 0 4rem;
}

.prose h1 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

.prose .meta {
  color: var(--on-surface-muted);
  margin: 0 0 2.5rem;
}

.prose h2 {
  font-size: 1.35rem;
  margin: 2.5rem 0 0.75rem;
}

.prose h3 {
  font-size: 1.1rem;
  margin: 1.75rem 0 0.5rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.97rem;
}

.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--outline);
}

.prose th {
  font-weight: 600;
}

.notice {
  background: var(--surface-raised);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

/* --- Form (hesap silme) --- */

.form {
  display: grid;
  gap: 1rem;
  max-width: 26rem;
  margin: 1.5rem 0;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

.form input {
  font: inherit;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--outline);
  background: var(--surface-card);
  color: var(--on-surface);
}

.button {
  font: inherit;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 0;
  background: var(--primary);
  color: var(--on-primary);
  cursor: pointer;
  justify-self: start;
}

.button.danger {
  background: var(--error);
  color: var(--on-error);
}

.button[disabled] {
  opacity: 0.55;
  cursor: progress;
}

.form-message {
  margin: 0;
}

.form-message.error {
  color: var(--error);
}

/* --- Alt çubuk --- */

.site-footer {
  border-top: 1px solid var(--outline);
  padding: 2rem 0 3rem;
  color: var(--on-surface-muted);
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--on-surface);
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 2.5rem;
    gap: 2rem;
  }

  .hero-mark {
    grid-row: 1;
    width: 9rem;
  }

  /* Dar ekranda geniş tablolar sayfayı taşırmaz, kendi içinde yana kayar. */
  .prose table {
    display: block;
    overflow-x: auto;
    font-size: 0.92rem;
  }

  .site-nav {
    margin-left: 0;
    width: 100%;
    order: 3;
    padding-bottom: 0.75rem;
  }
}
