/* Tilki DB website. Sharp corners, the fox orange as the one accent, light and dark from the OS. */
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("fonts/poppins-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("fonts/poppins-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("fonts/poppins-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("fonts/poppins-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("fonts/poppins-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("fonts/poppins-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }

:root {
  --bg: #fbf7f1; --panel: #f3ece3; --panel2: #ebe2d6; --line: #ddd2c4; --fg: #1d1714; --muted: #6d6158; --faint: #9a8e84;
  --accent: #d9561a; --accent-fg: #ffffff; --accent-soft: #f7e1d3; --code: #2a211c;
  --ui: "Poppins", "Segoe UI", system-ui, sans-serif; --mono: "JetBrains Mono", Consolas, monospace;
  --wrap: 1180px; color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14110f; --panel: #1c1815; --panel2: #25201c; --line: #352e28; --fg: #f1ebe4; --muted: #a99d93; --faint: #776b62; --accent: #f26a21; --accent-fg: #14110f; --accent-soft: #3a2418; --code: #0f0d0b; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--ui); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(var(--wrap), 100% - 32px); margin: 0 auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--accent); color: var(--accent-fg); padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; letter-spacing: -.02em; }
.brand img { width: 30px; height: 30px; }
.brand span { color: var(--muted); font-weight: 600; }
.top nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--fg); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border: 1px solid var(--line); background: var(--panel); font: 600 15px var(--ui); text-decoration: none; color: var(--fg); cursor: pointer; }
.btn:hover { border-color: var(--faint); }
.btn.pri { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn.pri:hover { filter: brightness(1.06); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.small { padding: 8px 14px; font-size: 14px; }

/* hero */
.hero { padding: 72px 0 40px; text-align: center; }
.eyebrow { display: inline-block; font: 600 12px var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent-soft); background: var(--accent-soft); padding: 4px 10px; }
.hero h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.08; letter-spacing: -.03em; margin: 18px auto 16px; max-width: 900px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); max-width: 720px; margin: 0 auto 28px; text-wrap: pretty; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.meta { margin-top: 14px; font-size: 13px; color: var(--faint); }
.shot { margin: 48px auto 0; border: 1px solid var(--line); background: var(--panel); padding: 8px; box-shadow: 0 30px 80px -30px rgb(0 0 0 / 45%); }
.shot img { width: 100%; height: auto; }

/* engines */
.engines { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; padding: 26px 0 8px; color: var(--muted); font-weight: 600; font-size: 15px; }
.engines span::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--accent); margin-right: 10px; vertical-align: 2px; }

/* sections */
section.block { padding: 80px 0; border-top: 1px solid var(--line); }
.sec-head { max-width: 720px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(26px, 4vw, 38px); line-height: 1.15; letter-spacing: -.02em; margin: 10px 0 12px; text-wrap: balance; }
.sec-head p { color: var(--muted); margin: 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feat { background: var(--bg); padding: 26px 24px; }
.feat svg { width: 26px; height: 26px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: square; stroke-linejoin: miter; }
.feat h3 { font-size: 17px; margin: 14px 0 6px; letter-spacing: -.01em; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }

/* alternating showcase */
.show { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; padding: 40px 0; }
.show.flip { grid-template-columns: 7fr 5fr; }
.show.flip .txt { order: 2; }
.show h3 { font-size: clamp(22px, 3vw, 28px); line-height: 1.2; letter-spacing: -.02em; margin: 10px 0 12px; }
.show p { color: var(--muted); margin: 0 0 14px; }
.show ul { margin: 0; padding: 0; list-style: none; }
.show li { padding: 6px 0 6px 22px; position: relative; font-size: 15px; }
.show li::before { content: ""; position: absolute; left: 0; top: 15px; width: 10px; height: 2px; background: var(--accent); }
.show figure { margin: 0; border: 1px solid var(--line); background: var(--panel); padding: 6px; }
.tag { font: 600 12px var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
code, kbd { font: 13px var(--mono); }
kbd { border: 1px solid var(--line); background: var(--panel); padding: 1px 6px; }

/* privacy strip */
.privacy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.privacy div { border: 1px solid var(--line); padding: 22px; background: var(--panel); }
.privacy b { display: block; margin-bottom: 6px; }
.privacy p { margin: 0; color: var(--muted); font-size: 15px; }

/* download */
.download { text-align: center; }
.download .box { border: 1px solid var(--line); background: var(--panel); padding: 44px 24px; }
.download h2 { font-size: clamp(26px, 4vw, 38px); margin: 10px 0; letter-spacing: -.02em; }
.download p { color: var(--muted); margin: 0 auto 24px; max-width: 620px; }
.req { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 26px; margin-top: 22px; font-size: 14px; color: var(--muted); }

/* faq */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer nav a { text-decoration: none; }
footer nav a:hover { color: var(--fg); }
.made { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.made img { height: 34px; width: auto; }
.made .on-dark { display: none; }
@media (prefers-color-scheme: dark) { .made .on-dark { display: block; } .made .on-light { display: none; } }

/* legal pages (rendered from Markdown into _layout.html) */
.doc { max-width: 760px; padding: 56px 0 72px; }
.doc h1 { font-size: clamp(28px, 4.5vw, 40px); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 8px; }
.doc h2 { font-size: 21px; margin: 36px 0 8px; letter-spacing: -.01em; }
.doc h3 { font-size: 17px; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--fg); }
.doc a { color: var(--accent); }
.doc code { background: var(--panel); border: 1px solid var(--line); padding: 1px 5px; word-break: break-word; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }

/* phones */
@media (max-width: 900px) {
  .grid, .privacy { grid-template-columns: 1fr 1fr; }
  .show, .show.flip { grid-template-columns: 1fr; gap: 20px; }
  .show.flip .txt { order: 0; }
}
@media (max-width: 600px) {
  .top nav a:not(.keep) { display: none; }
  .grid, .privacy { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  section.block { padding: 56px 0; }
  .btn { width: 100%; justify-content: center; }
  .top .btn { width: auto; }
}
