/* Dava Asistanı tanıtım sitesi — renk dili uygulama ikonundan: lacivert, krem, bordo. */
:root {
  --bg: #f6f3ec;
  --bg-alt: #ece7dc;
  --surface: #ffffff;
  --text: #16202b;
  --muted: #545e69;
  --line: #d9d2c3;
  --accent: #a53b4a;
  --accent-ink: #ffffff;
  --navy: #14212e;
  --ok: #2f6f55;
  --shadow: 0 1px 2px rgba(20, 33, 46, .06), 0 8px 24px rgba(20, 33, 46, .07);
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1620;
    --bg-alt: #121e2a;
    --surface: #16232f;
    --text: #ece7dc;
    --muted: #a5adb6;
    --line: #26384a;
    --accent: #e0707f;
    --accent-ink: #1a0f12;
    --navy: #0a121a;
    --ok: #7fc8a4;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1620;
  --bg-alt: #121e2a;
  --surface: #16232f;
  --text: #ece7dc;
  --muted: #a5adb6;
  --line: #26384a;
  --accent: #e0707f;
  --accent-ink: #1a0f12;
  --navy: #0a121a;
  --ok: #7fc8a4;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Üst bar */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand img { border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: .95rem; }
.nav a:hover { background: var(--bg-alt); }
.theme-btn, .menu summary { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.theme-btn svg, .menu summary svg { width: 20px; height: 20px; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}
.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 48px; min-width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: grid; }
.menu-panel a { padding: 10px 12px; }
@media (max-width: 859px) { .hide-sm { display: none; } }
@media (min-width: 860px) { .menu { display: none; } }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; gap: 36px; align-items: center; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1fr 1.05fr; } .hero { padding: 80px 0 72px; } }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: .85rem; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-ghost:hover { background: var(--bg-alt); }
.small { font-size: .88rem; color: var(--muted); }

/* Bölümler */
section { padding: 56px 0; }
section.alt { background: var(--bg-alt); }
.section-head { max-width: 44em; margin-bottom: 30px; }
.section-head p { color: var(--muted); }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent); margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; }

.steps { counter-reset: s; display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #f4f1e9; font-weight: 700; margin-bottom: 12px; }
.steps p { color: var(--muted); margin: 0; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 18%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6f55' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 13px no-repeat; }

.note { border-left: 4px solid var(--accent); background: var(--surface); padding: 18px 20px; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); }
.note p:last-child { margin: 0; }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

.contact { background: var(--navy); color: #f4f1e9; border-radius: 20px; padding: 32px 22px; display: grid; gap: 18px; }
@media (min-width: 860px) { .contact { grid-template-columns: 1.3fr 1fr; padding: 44px; align-items: center; } }
.contact p { color: #cbd3db; }
.contact a { color: #f3a6b0; }
.contact .btn-primary { background: #e0707f; color: #1a0f12; }
.contact dl { margin: 0; display: grid; gap: 10px; }
.contact dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #93a0ad; }
.contact dd { margin: 0 0 6px; font-weight: 600; }

footer { padding: 32px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
footer .wrap { display: grid; gap: 10px; }
@media (min-width: 720px) { footer .wrap { grid-template-columns: 1fr auto; align-items: center; } }
footer nav { display: flex; flex-wrap: wrap; gap: 14px; }
footer a { color: var(--muted); }

.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 16px; }
.notfound img { margin: 0 auto 20px; border-radius: 22%; }

/* ---------- Uygulama arayüzü görselleri (temsilî, kurgusal veriler) ---------- */
.app {
  --a-bg: #f5f3ef; --a-surface: #fcfbf8; --a-raised: #ffffff; --a-muted: #efede8;
  --a-navy: #182f43; --a-navy-soft: #e9eef2; --a-burgundy: #7d303a; --a-burgundy-soft: #f6e9eb;
  --a-text: #252b31; --a-soft: #5f6870; --a-faint: #828a91; --a-border: #d9d6cf;
  --a-ok: #3f6e58; --a-ok-soft: #e8f0eb; --a-warn: #956b2c; --a-warn-soft: #f7efdf;
  font: 12.5px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  color: var(--a-text); background: var(--a-bg); border: 1px solid var(--a-border); border-radius: 12px; overflow: hidden;
  box-shadow: 0 28px 70px -24px rgba(13, 20, 26, .45), 0 4px 18px rgba(13, 20, 26, .08);
  text-align: left; user-select: none; container-type: inline-size;
}
:root[data-theme="dark"] .app {
  --a-bg: #15191d; --a-surface: #1c2227; --a-raised: #22292f; --a-muted: #272d32;
  --a-navy: #d7e2e9; --a-navy-soft: #293945; --a-burgundy: #c26e79; --a-burgundy-soft: #3b292d;
  --a-text: #e7e9ea; --a-soft: #b5bbc0; --a-faint: #899198; --a-border: #394047;
  --a-ok: #87b29a; --a-ok-soft: #26382f; --a-warn: #d4ad70; --a-warn-soft: #3d3425;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .app {
    --a-bg: #15191d; --a-surface: #1c2227; --a-raised: #22292f; --a-muted: #272d32;
    --a-navy: #d7e2e9; --a-navy-soft: #293945; --a-burgundy: #c26e79; --a-burgundy-soft: #3b292d;
    --a-text: #e7e9ea; --a-soft: #b5bbc0; --a-faint: #899198; --a-border: #394047;
    --a-ok: #87b29a; --a-ok-soft: #26382f; --a-warn: #d4ad70; --a-warn-soft: #3d3425;
  }
}
.app-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; background: var(--a-muted); border-bottom: 1px solid var(--a-border); }
.app-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.app-bar i:nth-child(2) { background: #febc2e; }
.app-bar i:nth-child(3) { background: #28c840; }
.app-bar span { flex: 1; text-align: center; font-weight: 600; color: var(--a-soft); font-size: 11.5px; margin-right: 40px; }
.app-body { display: grid; grid-template-columns: 172px minmax(0, 1fr); min-height: 330px; }
.app-side { background: var(--a-surface); border-right: 1px solid var(--a-border); padding: 12px 8px; }
.app-side h6 { margin: 12px 8px 4px; font-size: 9.5px; letter-spacing: .07em; color: var(--a-faint); font-weight: 600; }
.app-side h6:first-child { margin-top: 0; }
.app-side a { display: block; padding: 5px 8px; border-radius: 6px; color: var(--a-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-side a.on { background: var(--a-navy-soft); color: var(--a-navy); font-weight: 600; }
.app-side .proj { display: flex; gap: 7px; align-items: center; padding: 6px 8px; border-radius: 8px; background: var(--a-raised); border: 1px solid var(--a-border); font-weight: 600; color: var(--a-text); }
.app-side .proj b { width: 18px; height: 18px; border-radius: 5px; background: var(--a-burgundy); flex: none; }
.app-main { padding: 16px 18px; min-width: 0; }
.app-main h5 { margin: 0 0 2px; font: 600 17px/1.25 "New York", "Iowan Old Style", Georgia, serif; color: var(--a-text); }
.app-sub { color: var(--a-faint); margin: 0 0 12px; font-size: 11.5px; }
.a-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.a-stat { background: var(--a-raised); border: 1px solid var(--a-border); border-radius: 9px; padding: 9px 10px; }
.a-stat small { display: block; color: var(--a-faint); font-size: 10.5px; }
.a-stat strong { font-size: 18px; color: var(--a-navy); }
.a-card { background: var(--a-raised); border: 1px solid var(--a-border); border-radius: 9px; padding: 10px 12px; margin-bottom: 8px; }
.a-card h6 { margin: 0 0 8px; font-size: 10px; letter-spacing: .07em; color: var(--a-faint); }
.a-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid var(--a-border); }
.a-row:first-of-type { border-top: 0; }
.a-row .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.chip.warn { background: var(--a-warn-soft); color: var(--a-warn); }
.chip.ok { background: var(--a-ok-soft); color: var(--a-ok); }
.chip.bad { background: var(--a-burgundy-soft); color: var(--a-burgundy); }
.chip.navy { background: var(--a-navy-soft); color: var(--a-navy); }
.a-progress { height: 6px; border-radius: 999px; background: var(--a-muted); overflow: hidden; margin-top: 6px; }
.a-progress b { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--a-navy); }
.a-btn { display: inline-block; padding: 5px 11px; border-radius: 7px; background: var(--a-burgundy); color: #fff; font-weight: 600; font-size: 11.5px; }
.a-btn.ghost { background: var(--a-raised); color: var(--a-text); border: 1px solid var(--a-border); }
@container (max-width: 500px) {
  .app-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .app-side { display: none; }
}
@container (max-width: 360px) {
  .a-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-grid .a-stat:nth-child(3) { display: none; }
  .diff { grid-template-columns: minmax(0, 1fr); }
}

/* Hero penceresi */
.hero-shot { position: relative; }
.hero-shot .float { position: absolute; right: 0; bottom: -22px; width: 230px; padding: 11px 13px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .82rem; }
.hero-shot .float strong { display: block; margin-bottom: 4px; }
.hero-shot .caption { margin-top: 44px; }
@media (max-width: 640px) { .hero-shot .float { position: static; width: auto; margin-top: 12px; } .hero-shot .caption { margin-top: 12px; } }
.caption { font-size: .8rem; color: var(--muted); margin-top: 14px; text-align: center; }

/* Vitrin bölümü */
.show { display: grid; gap: 28px; align-items: center; margin-bottom: 64px; }
.show:last-child { margin-bottom: 0; }
@media (min-width: 900px) { .show { grid-template-columns: .85fr 1.15fr; gap: 48px; } .show.flip > :first-child { order: 2; } }
.show .tag { font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--accent); text-transform: uppercase; }
.show ul { padding-left: 1.1em; color: var(--muted); margin: 0; }
.show li { margin-bottom: 6px; }

/* Maskeleme karşılaştırması */
.diff { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.diff .pane { background: var(--a-raised); border: 1px solid var(--a-border); border-radius: 9px; padding: 10px 11px; font-family: "New York", Georgia, serif; font-size: 12px; line-height: 1.7; min-height: 150px; }
.diff .pane h6 { font-family: -apple-system, BlinkMacSystemFont, sans-serif; margin: 0 0 6px; font-size: 9.5px; letter-spacing: .07em; color: var(--a-faint); }
.pii { position: relative; display: inline-block; border-radius: 3px; padding: 0 2px; }
.masked .pii .o { display: inline; }
.masked .pii .m { display: none; }
.masked .pii { background: transparent; }
.app.play .masked .pii { animation: piiMark .5s ease forwards; animation-delay: calc(var(--i, 0) * .45s + .4s); }
.app.done .masked .pii .o { display: none; }
.app.done .masked .pii .m { display: inline; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; color: var(--a-burgundy); font-weight: 600; }
.app.done .masked .pii { background: var(--a-burgundy-soft); }
.orig .pii { background: var(--a-warn-soft); }
@keyframes piiMark { from { background: transparent; } to { background: var(--a-warn-soft); box-shadow: 0 0 0 1px var(--a-warn); } }
.gate { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-top: 10px; }
.gate .chip { opacity: 0; transition: opacity .4s; }
.app.done .gate .chip { opacity: 1; }
.p1 { --i: 0; } .p2 { --i: 1; } .p3 { --i: 2; } .p4 { --i: 3; }

/* UYAP aktarım hattı */
.pipe { list-style: none; margin: 0; padding: 0; }
.pipe li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 8px 0; border-top: 1px solid var(--a-border); opacity: .45; transition: opacity .35s; }
.pipe li:first-child { border-top: 0; }
.pipe .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--a-border); display: grid; place-items: center; }
.pipe li.run { opacity: 1; }
.pipe li.run .dot { border-color: var(--a-navy); border-top-color: transparent; animation: spin .8s linear infinite; }
.pipe li.ok { opacity: 1; }
.pipe li.ok .dot { border-color: var(--a-ok); background: var(--a-ok); }
.pipe li.ok .dot::after { content: ""; width: 8px; height: 4px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.pipe small { color: var(--a-faint); display: block; }
.pipe .chip { visibility: hidden; }
.pipe li.ok .chip { visibility: visible; }
@keyframes spin { to { transform: rotate(360deg); } }

/* AI yanıtı */
.ai-q { background: var(--a-navy-soft); color: var(--a-navy); border-radius: 9px 9px 2px 9px; padding: 8px 11px; margin: 0 0 10px auto; max-width: 85%; width: fit-content; }
.ai-a { background: var(--a-raised); border: 1px solid var(--a-border); border-radius: 9px 9px 9px 2px; padding: 10px 12px; min-height: 120px; }
.ai-a p { margin: 0 0 7px; }
.typing { white-space: pre-wrap; }
.typing::after { content: "▍"; color: var(--a-burgundy); animation: blink 1s steps(1) infinite; }
.app.done .typing::after { content: ""; }
@keyframes blink { 50% { opacity: 0; } }
.cite { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; opacity: 0; transform: translateY(4px); transition: opacity .4s, transform .4s; }
.app.done .cite { opacity: 1; transform: none; }

/* Görünüme girince belirme */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .pipe li.run .dot { animation: none; }
  .typing::after { animation: none; }
}
