/*
  ceyizdan.com — tek stil dosyası.

  Renkler uygulamanın paletinden (docs/BRAND.md, lib/core/theme/app_theme.dart):
  açık tema zemin #FBF5F7, metin #3B2A30, birincil güçlü #A84C69. Bağlantı ve
  düğme rengi "birincil güçlü" — #C25B7A açık zeminde 4,5:1'i tutturmuyor
  (WCAG AA).

  Site YALNIZ açık temada (kullanıcı kararı 2026-10-01): cihaz koyu modda olsa
  da açık açılır. Cihaz temasına göre değişen koyu palet bu yüzden kalktı;
  uygulamanın koyu teması ayrı.

  Satır içi stil YOK: içerik güvenlik politikası (_headers → CSP style-src
  'self') satır içi stili engeller. Kilidi test/data/static_site_test.dart.
*/

@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/DMSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/DMSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/DMSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/InstrumentSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #fbf5f7;
  --surface: #ffffff;
  --surface-alt: #fbf1f4;
  --accent-bg: #fbeef2;
  --line: #f1e2e7;
  --text: #3b2a30;
  --text-soft: #5e4650;
  --link: #a84c69;
  --button: #a84c69;
  --button-text: #ffffff;
  --gold: #9c7434;
  --radius: 18px;
  --max: 1040px;
  --read: 720px;
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip:focus {
  left: 16px;
  top: 12px;
  background: var(--surface);
  padding: 8px 14px;
  z-index: 10;
}

h1,
h2,
h3 {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.2rem);
  margin-top: 1.6em;
}

h3 {
  font-size: 1.45rem;
  margin-top: 1.3em;
}

p,
ul,
ol {
  margin: 0 0 1em;
}

li + li {
  margin-top: 0.35em;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- üst şerit ---------- */

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

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.7rem;
  line-height: 1;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px 18px;
  flex-wrap: wrap;
  font-size: 0.98rem;
}

.site-nav a {
  color: var(--text-soft);
  text-decoration: none;
  padding: 10px 2px;
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

.site-nav a.lang {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
}

/* ---------- ana sayfa ---------- */

.hero {
  padding: 56px 0 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
}

.hero .lead {
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  color: var(--text-soft);
  max-width: 34em;
}

/* İki mağaza rozeti yan yana; dar ekranda alt alta iner, metin rozetin
   içinde kırılabilir (sayfa yatay kaymaz). */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-block;
  background: var(--accent-bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.98rem;
}

.features {
  list-style: none;
  padding: 0;
  margin: 8px 0 48px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.features li {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.features h3 {
  margin: 0 0 0.3em;
  font-size: 1.4rem;
}

.features p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
}

.note {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 0 0 48px;
}

.note h2 {
  margin-top: 0;
  font-size: 1.6rem;
}

.note ul {
  padding-left: 1.2em;
  margin-bottom: 0;
}

/* ---------- metin sayfaları ---------- */

.doc {
  max-width: var(--read);
  padding-top: 40px;
  padding-bottom: 56px;
}

.doc .meta {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.doc .summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 20px 0 8px;
}

.doc .summary > :last-child {
  margin-bottom: 0;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.2em;
  font-size: 0.97rem;
  display: block;
  overflow-x: auto;
}

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

.doc th {
  font-weight: 600;
}

.steps {
  padding-left: 1.3em;
}

.steps li {
  padding-left: 0.2em;
}

.path {
  font-weight: 600;
}

.contact {
  font-size: 1.15rem;
  font-weight: 600;
}

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 18px;
  margin: 0 0 12px;
}

summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px 0;
}

details[open] summary {
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

/* ---------- alt bilgi ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  padding-bottom: 32px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.site-footer a {
  color: var(--text-soft);
}

/* Dar ekranda tablo satırları kart olur: başlık hücresi etiketi
   data-label'dan gelir (satır içi stil yok — CSP). */
@media (max-width: 600px) {
  .doc table.stack,
  .doc table.stack tbody,
  .doc table.stack tr,
  .doc table.stack td {
    display: block;
    width: 100%;
  }

  .doc table.stack thead {
    position: absolute;
    left: -9999px;
  }

  .doc table.stack tr {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 16px;
    margin: 0 0 12px;
  }

  .doc table.stack td {
    border: 0;
    padding: 4px 0;
  }

  .doc table.stack td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-soft);
  }
}

@media (min-width: 760px) {
  .hero {
    grid-template-columns: auto 1fr;
    gap: 36px;
    padding: 72px 0 48px;
  }
}
