/* AvukatLab — tek stil dosyası. Dış yazı tipi, çerez ve betik yoktur; açık/koyu görünüm sistem ayarını izler. */

:root {
  --navy: #1b3a66;
  --navy-deep: #132848;
  --gold: #e3a53a;
  --brand-gold: #c98a1e;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --text: #17202e;
  --muted: #566174;
  --line: #dfe5ee;
  --link: #22589c;
  --ok: #1d8049;
  --danger: #c2392b;
  --note-bg: #fff7e6;
  --note-line: #efd29a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 10px 30px rgba(16, 24, 40, 0.07);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand-gold: #e3a53a;
    --bg: #0d1420;
    --surface: #141d2d;
    --surface-2: #1b2638;
    --text: #e6ebf2;
    --muted: #a2adbe;
    --line: #27334a;
    --link: #8db7f3;
    --ok: #4fc282;
    --danger: #f07b6e;
    --note-bg: #2a2313;
    --note-line: #5d4a1d;
    --shadow: none;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 12px; }

/* Üst bölüm */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; flex-wrap: wrap; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; }
.brand .ad > span { color: var(--brand-gold); }
.site-nav { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.97rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { font-weight: 600; }

/* Giriş */
.hero { padding: clamp(48px, 8vw, 88px) 0 clamp(32px, 5vw, 56px); }
.hero .lead { font-size: clamp(1.08rem, 2vw, 1.25rem); color: var(--muted); max-width: 46em; }
.hero.center { text-align: center; }
.hero.center .lead { margin-inline: auto; }
.hero.center .actions { justify-content: center; }

.app-hero { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: clamp(40px, 7vw, 72px) 0 32px; }
.app-hero img { width: 128px; height: 128px; }
.app-hero .lead { color: var(--muted); font-size: 1.15rem; margin-bottom: 18px; }
@media (max-width: 640px) { .app-hero { grid-template-columns: 1fr; } .app-hero img { width: 96px; height: 96px; } }

/* Düğmeler */
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.98rem;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-deep); }
@media (prefers-color-scheme: dark) { .btn.primary { background: #2b5a9a; border-color: #2b5a9a; } .btn.primary:hover { background: #336ab3; } }
.btn small { font-weight: 400; opacity: 0.8; }

.meta { color: var(--muted); font-size: 0.92rem; }

/* Kartlar */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
/* Dört kart üçlü ızgarada 3 + 1 diziliyordu: ikişerli iki satır */
.cards.ikili { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px;
}
.product { display: flex; flex-direction: column; }
.product > img { width: 84px; height: 84px; margin-bottom: 14px; }
.product ul { padding-left: 1.2em; margin: 0 0 1em; }
.product li { margin-bottom: 0.35em; }
.product .actions { margin-top: auto; padding-top: 8px; }
/* Üç kart yan yana dururken düğmeler bazı kartlarda tek satıra sığıp bazılarında sığmıyordu: hepsi alt alta */
.product .actions { flex-direction: column; align-items: stretch; }
.product .actions .btn { justify-content: center; }

.section { padding: clamp(36px, 6vw, 64px) 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section.flush-top { padding-top: 0; }
.section > .wrap > h2, .section > .narrow > h2 { margin-bottom: 0.8em; }

.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; }
.points h3 { display: flex; align-items: center; gap: 10px; }
.points h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none; }
.points p { color: var(--muted); margin: 0; }

.note {
  background: var(--note-bg); border: 1px solid var(--note-line); border-radius: 12px;
  padding: 16px 20px; margin: 0 0 1.2em;
}
.note p:last-child { margin-bottom: 0; }

/* Görseller */
figure { margin: 0 0 1.5em; }
figure img, figure picture img { display: block; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 10px; }
.figure-center { max-width: 760px; margin-inline: auto; }
.narrow > h2:not(:first-child) { margin-top: 1.6em; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: start; }

/* Adımlar */
.steps { list-style: none; counter-reset: adim; padding: 0; margin: 0 0 1.5em; }
.steps > li { counter-increment: adim; position: relative; padding: 2px 0 18px 52px; }
.steps > li::before {
  content: counter(adim); position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 0.95rem;
}
@media (prefers-color-scheme: dark) { .steps > li::before { background: #2b5a9a; } }
.steps > li > strong:first-child { display: block; margin-bottom: 2px; }

/* macOS uyarı penceresinin temsilî görünümü */
.dialog {
  width: min(330px, 100%); margin: 12px 0 8px; padding: 22px 20px 18px; text-align: center;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px;
  font-size: 0.86rem; line-height: 1.45; box-shadow: var(--shadow);
}
.dialog img { width: 56px; height: 56px; display: block; margin: 0 auto 10px; }
.dialog .baslik { font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
.dialog p { color: var(--muted); margin-bottom: 14px; }
.dialog .dugmeler { display: grid; gap: 10px; }
.dialog .dugme { border-radius: 8px; padding: 6px 10px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
/* macOS'ta öne çıkan (mavi) varsayılan düğme */
.dialog .dugme.varsayilan { background: #2f6fde; border-color: #2f6fde; color: #fff; }
.dialog .dugme.bas { outline: 3px solid var(--ok); outline-offset: 2px; }
.dialog .etiket { display: block; font-size: 0.8rem; font-weight: 700; margin-top: 4px; }
.dialog .etiket.bas { color: var(--ok); }
.dialog .etiket.basma { color: var(--danger); }
.ayar-satiri {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  width: min(520px, 100%); margin: 12px 0 8px; padding: 14px 16px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; font-size: 0.9rem;
}
.ayar-satiri .dugme { border-radius: 8px; padding: 5px 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; outline: 3px solid var(--ok); outline-offset: 2px; white-space: nowrap; }
.temsili { color: var(--muted); font-size: 0.82rem; }

/* Görüntüden Yazıya: ekranda seçim ve panodaki metin (temsilî görünüm) */
.ocr-demo { display: grid; grid-template-columns: minmax(0, 3fr) auto minmax(0, 2fr); gap: 16px 22px; align-items: center; margin-bottom: 10px; }
.ocr-ekran {
  position: relative; overflow: hidden; isolation: isolate;
  background: #fff; color: #1f2733; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 24px 28px; font: 16px/1.55 "Times New Roman", Times, serif;
}
.ocr-ekran p { margin: 0 0 0.8em; }
.ocr-ekran > p:last-child { margin-bottom: 0; }
/* Seçilen alan; çevresi macOS'un ekran resmi seçimindeki gibi kararır */
.ocr-secim {
  position: relative; z-index: 1; margin: 0 -10px 0.8em; padding: 8px 10px;
  outline: 1px solid rgba(255, 255, 255, 0.95); box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.42);
}
.ocr-secim p:last-child { margin-bottom: 0; }
.ocr-ok { color: var(--muted); font-size: 1.8rem; line-height: 1; text-align: center; }
.ocr-pano { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 16px 18px; font-size: 0.95rem; }
.ocr-pano .etiket { display: block; color: var(--muted); font-size: 0.8rem; font-weight: 700; margin-bottom: 6px; }
.ocr-pano p { margin: 0; }
@media (max-width: 720px) { .ocr-demo { grid-template-columns: 1fr; } .ocr-ok { transform: rotate(90deg); } }

/* PDF Küçültücü: Finder'daki dosyalar ve bildirim (temsilî görünüm) */
.kucult-demo { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px 22px; align-items: center; margin-bottom: 10px; }
.kucult-dosyalar { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.kucult-satir { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.kucult-satir:last-child { border-bottom: 0; }
.kucult-satir .ad::before {
  content: "PDF"; display: inline-block; margin-right: 10px; padding: 1px 6px; border-radius: 4px;
  background: #c0392b; color: #fff; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.02em; vertical-align: 2px;
}
.kucult-satir .boyut { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kucult-satir.yeni { background: var(--surface-2); font-weight: 600; }
.kucult-satir.yeni .boyut { color: var(--ok); }
.kucult-bildirim { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 14px 16px; font-size: 0.9rem; }
.kucult-bildirim .etiket { display: block; font-weight: 700; margin-bottom: 4px; }
.kucult-bildirim p { margin: 0; color: var(--muted); }
@media (max-width: 720px) { .kucult-demo { grid-template-columns: 1fr; } }

/* Karşılaştırma tablosu */
.table-wrap { overflow-x: auto; margin-bottom: 1.5em; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 0.95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* İndirme kutuları */
.download { display: grid; gap: 6px; }
.download h3 { margin-bottom: 4px; }
.download .meta { margin-bottom: 10px; }
details { margin-top: 10px; color: var(--muted); font-size: 0.88rem; }
summary { cursor: pointer; }
code, .hash { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.85em; }
.hash { word-break: break-all; display: block; margin-top: 6px; color: var(--text); }

/* Yasal metinler */
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

/* Alt bölüm */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px 30px; flex-wrap: wrap; }
.site-footer p { margin: 0; }
.site-footer a { color: inherit; }
