/* bdhtml2pdf website. No external fonts, scripts or trackers. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-soft: #f5f6fb;
  --surface: #ffffff;
  --ink: #161a2c;
  --ink-2: #454b63;
  --muted: #646a80;
  --line: #e2e4ee;
  --accent: #4252d9;
  --accent-ink: #ffffff;
  --accent-soft: #eceefe;
  --accent-text: #3442c4;
  --good: #1d7a4c;
  --bad: #b3261e;
  --bar-other: #8e93a8;
  --code-bg: #10142a;
  --code-ink: #e6e8f5;
  --shadow: 0 1px 2px rgba(22, 26, 44, .06), 0 10px 30px rgba(22, 26, 44, .08);
  --radius: 14px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", "Noto Sans", Roboto, Ubuntu, Cantarell, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Noto Sans Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1020;
    --bg-soft: #141831;
    --surface: #171b35;
    --ink: #eef0fa;
    --ink-2: #c3c7dc;
    --muted: #9ba1bb;
    --line: #2a2f52;
    --accent: #8c98ff;
    --accent-ink: #0d1020;
    --accent-soft: #1f2550;
    --accent-text: #a9b2ff;
    --good: #5fd39a;
    --bad: #ff8a80;
    --bar-other: #5c6280;
    --code-bg: #0a0d1c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
code, kbd, pre { font-family: var(--mono); font-size: .9em; }
:not(pre) > code { padding: .1em .35em; border-radius: 5px; background: var(--bg-soft); border: 1px solid var(--line); }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  padding: 10px 16px; border-radius: 8px; background: var(--accent); color: var(--accent-ink);
}
.skip:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  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);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 19px; letter-spacing: -.01em; }
.logo img { width: 30px; height: 30px; }
.site-header nav { margin-left: auto; }
.site-header nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-header nav a { display: block; padding: 6px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 550; }
.site-header nav a:hover { background: var(--bg-soft); color: var(--ink); }
.site-header nav a.gh { color: var(--ink); border: 1px solid var(--line); }
@media (max-width: 860px) {
  .site-header nav li:not(.keep) { display: none; }
}

/* Hero */
.hero { padding: 72px 0 40px; background: radial-gradient(1000px 420px at 85% -10%, var(--accent-soft), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; margin: 0 0 18px; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 14px; font-weight: 650; }
.hero h1 { margin: 0; font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 800; }
.hero h1 .arrow { color: var(--accent-text); }
.hero .lede { margin: 20px 0 0; font-size: 1.2rem; color: var(--ink-2); max-width: 36em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 650; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); }
.btn svg { width: 18px; height: 18px; }
.cmd { margin: 28px 0 0; padding: 12px 16px; border-radius: 10px; background: var(--code-bg); color: var(--code-ink); font-size: 15px; overflow-x: auto; }
.cmd .p { color: #8b93c9; user-select: none; }
.shot { margin: 0; }
.shot .paper { display: block; padding: 10px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); }
.shot .paper img { border-radius: 6px; }
.shot figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }
@media (max-width: 900px) {
  .hero { padding-top: 44px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
}

.notice { margin-top: 8px; }
.notice p { margin: 0; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink-2); font-size: 15px; }
.notice strong { color: var(--ink); }

/* Sections */
section.block { padding: 84px 0 0; }
section.block:last-of-type { padding-bottom: 96px; }
.kicker { margin: 0 0 8px; color: var(--accent-text); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.15; letter-spacing: -.025em; }
.intro { margin: 14px 0 0; max-width: 46em; color: var(--ink-2); font-size: 1.08rem; }
h3 { margin: 0; font-size: 1.12rem; letter-spacing: -.01em; }

.grid { display: grid; gap: 18px; margin-top: 36px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.card p { margin: 8px 0 0; color: var(--ink-2); font-size: 15.5px; }
.icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); }
.icon svg { width: 22px; height: 22px; }

/* Samples */
.samples { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
@media (max-width: 1000px) { .samples { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .samples { grid-template-columns: 1fr; } }
.sample { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.sample .thumb { display: flex; align-items: flex-end; justify-content: center; aspect-ratio: 600 / 806; padding: 18px 18px 0; background: var(--bg-soft); border-bottom: 1px solid var(--line); overflow: hidden; }
.sample .thumb picture { width: 100%; }
.sample .thumb img { width: 100%; box-shadow: var(--shadow); border-radius: 4px 4px 0 0; }
.sample .thumb.landscape { align-items: center; padding-bottom: 18px; }
.sample .thumb.landscape img { border-radius: 4px; }
.sample .body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.sample p { margin: 6px 0 14px; color: var(--ink-2); font-size: 15px; flex: 1; }
.sample .links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14.5px; font-weight: 600; }
.sample .meta { color: var(--muted); font-weight: 450; }

/* Pipeline */
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 36px 0 0; padding: 0; list-style: none; counter-reset: step; }
.pipeline li { position: relative; padding: 18px 18px 18px; margin-right: 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.pipeline li:not(:last-child)::after { content: ""; position: absolute; right: -15px; top: 50%; width: 12px; height: 12px; border-top: 2px solid var(--muted); border-right: 2px solid var(--muted); transform: translateY(-50%) rotate(45deg); }
.pipeline li:last-child { margin-right: 0; }
.pipeline b { display: block; font-size: 15.5px; }
.pipeline span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.45; }
@media (max-width: 900px) {
  .pipeline { grid-template-columns: 1fr; gap: 18px; }
  .pipeline li { margin-right: 0; }
  .pipeline li:not(:last-child)::after { right: auto; left: 28px; top: auto; bottom: -15px; transform: rotate(135deg); }
}
.components { margin-top: 28px; }

/* Results */
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
@media (max-width: 820px) { .charts { grid-template-columns: 1fr; } }
.chart { margin: 0; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.chart figcaption { margin-bottom: 16px; }
.chart figcaption b { display: block; font-size: 1.05rem; }
.chart figcaption span { color: var(--muted); font-size: 14px; }
.bars { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.bars li { display: grid; grid-template-columns: 8.5em 1fr 4.5em; align-items: center; gap: 12px; font-size: 15px; }
.bars .name { color: var(--ink-2); }
.bars .track { display: block; height: 14px; }
.bars .bar { display: block; height: 100%; min-width: 4px; border-radius: 0 4px 4px 0; background: var(--bar-other); }
.bars .us .bar { background: var(--accent); }
.bars .us .name { color: var(--ink); font-weight: 700; }
.bars .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.bars .w31 { width: 12.4%; } .bars .w10 { width: 4%; } .bars .w35 { width: 14%; } .bars .w250 { width: 100%; }
.bars .s31 { width: 7.3%; } .bars .s13 { width: 3%; } .bars .s39 { width: 9%; } .bars .s432 { width: 100%; }

.table-wrap { margin-top: 24px; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
caption { padding: 16px 18px 4px; text-align: left; font-weight: 700; }
th, td { padding: 11px 16px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
thead th { border-top: 0; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
tbody th { font-weight: 600; color: var(--ink-2); }
td.us { background: color-mix(in srgb, var(--accent-soft) 60%, transparent); font-weight: 650; }
.ok { color: var(--good); font-weight: 650; }
.no { color: var(--bad); font-weight: 650; }
.note { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

/* Security */
.score { display: flex; align-items: baseline; gap: 10px; }
.score b { font-size: 2.2rem; letter-spacing: -.03em; line-height: 1; }
.score span { color: var(--muted); font-size: 14px; }
.checks { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }
.checks li { display: flex; gap: 8px; }
.checks svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--good); }

/* Turkish */
.tr { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; margin-top: 36px; }
@media (max-width: 820px) { .tr { grid-template-columns: 1fr; } }
.tr .demo { padding: 26px; border-radius: var(--radius); background: var(--code-bg); color: var(--code-ink); font-family: var(--mono); font-size: 15px; line-height: 1.8; overflow-x: auto; }
.tr .demo .k { color: #9aa5ff; } .tr .demo .r { color: #ffd479; font-weight: 700; } .tr .demo .c { color: #7e86b3; }
.alphabet { margin: 16px 0 0; font-size: 1.6rem; letter-spacing: .06em; font-weight: 650; }

/* Install */
pre.code { margin: 0; padding: 18px 20px; border-radius: 12px; background: var(--code-bg); color: var(--code-ink); overflow-x: auto; font-size: 14.5px; line-height: 1.65; }
pre.code .c { color: #7e86b3; }
.steps { counter-reset: s; margin: 36px 0 0; padding: 0; list-style: none; display: grid; gap: 22px; }
.steps > li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.steps > li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-weight: 750; }
.steps h3 { margin: 6px 0 10px; }
.steps p { margin: 0 0 12px; color: var(--ink-2); }

/* Status */
.issues { margin: 0; padding-left: 1.2em; color: var(--ink-2); }
.issues li + li { margin-top: 8px; }

/* Footer */
.site-footer { padding: 36px 0 48px; border-top: 1px solid var(--line); background: var(--bg-soft); color: var(--muted); font-size: 14.5px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--ink-2); }
.site-footer p { margin: 0; }

/* 404 */
.lost { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.lost h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0; letter-spacing: -.03em; }
.lost p { color: var(--ink-2); }

@media print {
  .site-header, .skip, .actions { display: none; }
  body { font-size: 11pt; }
  section.block { padding-top: 24pt; }
}
