/* logticks.com: the only stylesheet. System fonts, no framework. Light and dark follow the visitor's OS setting. */
:root {
  --bg: #ffffff; --soft: #f4f7fc; --card: #ffffff; --ink: #0e1a30; --text: #33415a; --muted: #5a6880;
  --line: #e1e7f1; --brand: #2f6fed; --brand-strong: #1f56c9; --brand-soft: #eaf1ff; --on-brand: #ffffff;
  --tick: #e0342f; --good: #0f7a55; --good-soft: #e5f6ef; --warn: #96600a; --warn-soft: #fdf3dc; --bad: #b3261e; --bad-soft: #fdecea;
  --shadow: 0 1px 2px rgba(14, 26, 48, .06), 0 12px 32px -12px rgba(14, 26, 48, .18);
  --radius: 14px; --wrap: 1160px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a111f; --soft: #0f182a; --card: #121c31; --ink: #eef2fa; --text: #c3cde0; --muted: #94a2bb;
    --line: #233150; --brand: #6c9bff; --brand-strong: #8fb3ff; --brand-soft: #172848; --on-brand: #07101f;
    --tick: #ff6b63; --good: #56d3a4; --good-soft: #0f2b24; --warn: #f0c060; --warn-soft: #2e2510; --bad: #ff8a80; --bad-soft: #33161a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .7);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font: 400 1.0625rem/1.65 var(--sans); color: var(--text); background: var(--bg); overflow-wrap: break-word; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-strong); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
code { font: .9em var(--mono); background: var(--brand-soft); color: var(--ink); padding: .12em .4em; border-radius: 6px; overflow-wrap: anywhere; }
pre { margin: 22px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); overflow-x: auto; font: .86rem/1.55 var(--mono); color: var(--ink); tab-size: 2; }
pre code { background: none; padding: 0; border-radius: 0; font: inherit; white-space: pre; overflow-wrap: normal; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 40px, 760px); margin-inline: auto; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--on-brand); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.center .lead { margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 .78rem/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--brand-strong); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 3px; height: 14px; background: var(--tick); border-radius: 2px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 650 1rem/1 var(--sans); padding: 14px 22px; border-radius: 10px; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-strong); color: var(--on-brand); transform: translateY(-1px); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn--ghost:hover { border-color: var(--brand); color: var(--ink); }
.btn--sm { padding: 10px 16px; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.center .actions { justify-content: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 1.25rem/1 var(--sans); letter-spacing: -.03em; color: var(--ink); text-decoration: none; }
.brand b { color: var(--brand); font-weight: 800; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { padding: 8px 11px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 550; font-size: .95rem; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--soft); }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; font: 600 .95rem var(--sans); padding: 9px 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
@media (max-width: 1020px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 12px 10px; font-size: 1.02rem; }
  .nav .btn { margin: 8px 0 0; }
}

/* Hero */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 0; overflow: hidden; background: linear-gradient(var(--soft), var(--bg) 70%); }
.hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 18px; opacity: .7;
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 12px), repeating-linear-gradient(90deg, var(--muted) 0 1px, transparent 1px 60px);
  -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }
.hero h1 { max-width: 17ch; margin-inline: auto; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero__note { margin-top: 14px; font-size: .9rem; color: var(--muted); }
.hero__shot { margin-top: clamp(36px, 6vw, 64px); }
.page-hero { padding: clamp(44px, 7vw, 84px) 0 clamp(28px, 4vw, 44px); background: linear-gradient(var(--soft), var(--bg)); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); max-width: 22ch; }

/* Screenshots */
figure { margin: 0; }
figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); text-align: center; }
.shot { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.shot__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--soft); border-bottom: 1px solid var(--line); }
.shot__bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.shot__bar em { margin-left: 10px; font: normal .74rem var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot img { width: 100%; }

/* Sections */
.section { padding: clamp(52px, 8vw, 96px) 0; }
.section--soft { background: var(--soft); border-block: 1px solid var(--line); }
.section__head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.center.section__head, .section__head.center { margin-inline: auto; }
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card h3 { margin-top: 14px; }
a.card { text-decoration: none; color: inherit; display: block; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--brand); transform: translateY(-2px); }
.icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); }
.icon svg { width: 22px; height: 22px; }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(28px, 5vw, 56px) 0; }
.feature:nth-of-type(even) .feature__text { order: 2; }
.feature__text ul, .ticks { list-style: none; padding: 0; margin: 16px 0 0; }
.feature__text li, .ticks li { position: relative; padding: 0 0 0 28px; margin: 0 0 9px; }
.feature__text li::before, .ticks li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 12px; height: 7px; border: solid var(--brand); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
@media (max-width: 860px) { .feature { grid-template-columns: minmax(0, 1fr); } .feature:nth-of-type(even) .feature__text { order: 0; } }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.subnav a { padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); font-size: .9rem; font-weight: 550; text-decoration: none; }
.subnav a:hover { border-color: var(--brand); color: var(--ink); }
.group-head { padding-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); margin-top: clamp(20px, 4vw, 40px); scroll-margin-top: 80px; }
.group-head:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.plain { margin: 14px 0 0; padding-left: 1.2em; }
.plain li { margin-bottom: 6px; }

/* Steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 700 .85rem var(--mono); color: var(--brand-strong); margin-bottom: 10px; }
.steps strong { display: block; color: var(--ink); margin-bottom: 4px; }

/* Pricing */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.plan--main { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan__price { font: 800 2.6rem/1 var(--sans); color: var(--ink); letter-spacing: -.04em; margin: 10px 0 4px; }
.plan__price small { font: 500 .95rem var(--sans); color: var(--muted); letter-spacing: 0; }
.plan .btn { width: 100%; margin: 18px 0 6px; }
.badge { display: inline-block; font: 700 .72rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin: 24px 0; }
table.t { border-collapse: collapse; width: 100%; font-size: .94rem; min-width: 560px; }
.t th, .t td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.t thead th { background: var(--soft); color: var(--ink); font-weight: 700; white-space: nowrap; }
.t tbody tr:last-child td, .t tbody tr:last-child th { border-bottom: 0; }
.t tbody th { color: var(--ink); font-weight: 650; }
.t td.yes { color: var(--good); font-weight: 600; } .t td.no { color: var(--muted); } .t td.warn { color: var(--warn); font-weight: 600; }
.t .us { background: var(--brand-soft); }

/* Callouts, quotes, examples */
.callout { border: 1px solid var(--line); border-left: 4px solid var(--brand); background: var(--soft); border-radius: 10px; padding: 18px 20px; margin: 26px 0; }
.callout h4 { margin-bottom: 6px; } .callout p:last-child { margin-bottom: 0; }
.callout--warn { border-left-color: var(--warn); background: var(--warn-soft); }
.callout--good { border-left-color: var(--good); background: var(--good-soft); }
.example { border: 1px dashed var(--line); border-radius: var(--radius); padding: 24px; margin: 30px 0; background: var(--card); }
.example__label { font: 700 .74rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-strong); }
.example__note { font-size: .88rem; color: var(--muted); margin: 12px 0 0; }
.quote { margin: 34px 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--tick); }
.quote p { font-size: 1.3rem; line-height: 1.4; color: var(--ink); font-weight: 650; margin: 0; }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 9px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .28em; width: 17px; height: 17px; border: 2px solid var(--brand); border-radius: 5px; }

/* Diagrams: flows and the chat illustration */
.diagram { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 22px; margin: 30px 0; }
.diagram__title { display: block; font: 700 .76rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin-bottom: 8px; }
.flow__node { flex: 1 1 150px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--soft); }
.flow__node strong { display: block; color: var(--ink); font-size: .95rem; } .flow__node span { font-size: .85rem; color: var(--muted); }
.flow__node--accent { border-color: var(--brand); background: var(--brand-soft); }
.flow__node--good { border-color: var(--good); background: var(--good-soft); }
.flow__node--warn { border-color: var(--warn); background: var(--warn-soft); }
.flow__arrow { flex: 0 0 18px; align-self: center; height: 2px; background: var(--muted); position: relative; }
.flow__arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left-color: var(--muted); border-right: 0; }
@media (max-width: 640px) { .flow { flex-direction: column; } .flow__node { flex: 0 0 auto; } .flow__arrow { width: 2px; height: 16px; flex-basis: 16px; align-self: flex-start; margin-left: 22px; } .flow__arrow::after { right: -4px; top: auto; bottom: -1px; border: 5px solid transparent; border-top-color: var(--muted); border-bottom: 0; } }
.chat { display: grid; gap: 12px; }
.chat__msg { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; }
.chat__who { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 .72rem var(--sans); background: var(--soft); border: 1px solid var(--line); color: var(--ink); }
.chat__who--bot { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.chat__name { font-size: .82rem; color: var(--muted); margin-bottom: 2px; } .chat__name b { color: var(--ink); }
.chat__text { background: var(--soft); border: 1px solid var(--line); border-radius: 4px 12px 12px 12px; padding: 9px 13px; font-size: .95rem; display: inline-block; max-width: 100%; }
.chat__text code { white-space: normal; }
.cmds { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin: 0; }
.cmds div { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--card); }
.cmds dt { margin-bottom: 4px; } .cmds dd { margin: 0; font-size: .92rem; color: var(--muted); }

/* Blog */
.post-list { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.post-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.post-card:hover { border-color: var(--brand); transform: translateY(-2px); color: inherit; }
.post-card__img { aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; width: 100%; border-bottom: 1px solid var(--line); background: var(--soft); }
.post-card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { margin: 4px 0 0; font-size: 1.12rem; line-height: 1.3; }
.post-card p { margin: 0; font-size: .94rem; color: var(--muted); }
.post-card .meta { margin-top: auto; padding-top: 8px; }
.tag { align-self: flex-start; display: inline-block; font: 700 .72rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); }
.meta { font-size: .86rem; color: var(--muted); }
@media (min-width: 900px) { .post-card--lead { grid-column: 1 / -1; flex-direction: row; } .post-card--lead .post-card__img { width: 55%; border-bottom: 0; border-right: 1px solid var(--line); } .post-card--lead h3 { font-size: 1.6rem; } .post-card--lead .post-card__body { padding: 32px; justify-content: center; } .post-card--lead .meta { margin-top: 0; } }
.post-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 3vw, 36px); background: linear-gradient(var(--soft), var(--bg)); }
.post-hero h1 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); margin-top: 14px; }
.back { font-size: .9rem; color: var(--muted); text-decoration: none; display: inline-block; margin-bottom: 18px; }
.post { padding: 12px 0 clamp(48px, 7vw, 80px); }
.post h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin-top: 1.9em; }
.post h3 { margin-top: 1.6em; }
.post li { margin-bottom: 7px; }
.post figure { margin: 30px 0; }
.wide { width: min(100vw - 40px, 1040px); margin-left: 50%; transform: translateX(-50%); }
.post-end { margin-top: 44px; padding: 28px; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid var(--line); }
.post-end h3 { margin-top: 0; }
.more { padding: clamp(40px, 6vw, 64px) 0; background: var(--soft); border-top: 1px solid var(--line); }

/* Legal */
.legal h2 { font-size: 1.4rem; margin-top: 2em; scroll-margin-top: 80px; }
.legal h3 { margin-top: 1.5em; }
.toc { columns: 2; column-gap: 32px; padding: 18px 18px 18px 38px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); font-size: .95rem; }
@media (max-width: 560px) { .toc { columns: 1; } }

/* CTA band */
.cta { padding: clamp(52px, 7vw, 84px) 0; text-align: center; background: var(--ink); color: #c9d4e8; }
.cta h2 { color: #fff; }
.cta .lead { color: #c9d4e8; margin-inline: auto; }
.cta .actions { justify-content: center; }
.cta .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.cta .btn--primary { background: #4f86f7; color: #fff; }
@media (prefers-color-scheme: dark) { .cta { background: #060b15; border-top: 1px solid var(--line); } }

/* Form */
.form { display: grid; gap: 14px; margin-top: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .93rem; color: var(--ink); }
.form input, .form select, .form textarea { font: 400 1rem var(--sans); padding: 12px 13px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; }
.form textarea { min-height: 140px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form__status { font-size: .92rem; color: var(--good); margin: 0; min-height: 1.3em; }

/* Footer */
.site-footer { padding: 52px 0 28px; border-top: 1px solid var(--line); background: var(--soft); font-size: .94rem; }
.footer__grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }
.site-footer h4 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; } .site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--text); text-decoration: none; } .site-footer a:hover { color: var(--brand-strong); text-decoration: underline; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-strong); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.site-footer .linkish { color: var(--text); text-decoration: none; }

/* Cookie bar */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; display: none; }
.cookie-banner.is-open { display: block; }
.cookie-banner__inner { max-width: 860px; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.cookie-banner p { margin: 0; font-size: .92rem; flex: 1 1 320px; }
.cookie-banner__actions { display: flex; gap: 8px; }
.cookie-banner button { font: 650 .9rem var(--sans); padding: 10px 16px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.cookie-banner button[data-cookie="yes"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
