/* kolophi.ai: every page shares this. */
:root {
  --bg: #f6f3ec; --surface: #fffdf8; --ink: #1d1b17; --muted: #5e584d; --rule: #ddd6c8;
  --accent: #7a2e22; --accent-ink: #fffdf8;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #151310; --surface: #1d1a16; --ink: #ece6da; --muted: #a79f90; --rule: #34302a; --accent: #e09a7f; --accent-ink: #151310; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); }
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
header { border-bottom: 1px solid var(--rule); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.mark { font: 600 22px var(--serif); letter-spacing: .02em; color: var(--ink); text-decoration: none; }
.brand { display: flex; align-items: baseline; gap: 14px; }
/* "from Esketit", at the foot of every page. */
.esketit { display: flex; align-items: baseline; gap: 6px; text-decoration: none; opacity: .75; }
.esketit:hover { opacity: 1; }
.esketit .from { font-size: 11px; color: var(--muted); }
.esketit .name { font-size: 11px; font-weight: 800; letter-spacing: .28em; margin-right: -.28em; text-transform: uppercase; color: #ff003c; }
footer .esketit { width: 100%; justify-content: center; gap: 10px; padding-top: 20px; border-top: 1px solid var(--rule); }
footer .esketit .from { font-size: 12px; }
footer .esketit .name { font-size: 13px; letter-spacing: .45em; margin-right: -.45em; }
header nav a { margin-left: 22px; color: var(--muted); text-decoration: none; font-size: 15px; }
header nav a:hover, header nav a[aria-current="page"] { color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; }
.hero { padding: 88px 0 64px; }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); max-width: 18ch; }
.hero p.lede { font-size: 20px; color: var(--muted); max-width: 38em; margin: 24px 0 36px; }
/* The top of every page other than the home page. */
.hero.page { padding: 64px 0 48px; }
.hero.page h1 { font-size: clamp(34px, 5vw, 50px); max-width: 22ch; }
.hero.page p.lede { margin-bottom: 0; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 36px 0 0; font-size: 15px; color: var(--muted); }
.facts li::before { content: "✓"; color: var(--accent); margin-right: 8px; font-weight: 700; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 13px 22px; border-radius: 6px; text-decoration: none; font-weight: 600; border: 0; font-size: 17px; font-family: var(--sans); cursor: pointer; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); margin-left: 10px; }
section { padding: 72px 0; border-top: 1px solid var(--rule); }
section h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 14px; }
section > .wrap > p.intro { color: var(--muted); max-width: 42em; margin: 0 0 40px; }
.try { margin: 32px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.try span { color: var(--muted); }
section > .wrap > h2 + ul { margin-top: 24px; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.flow div { padding: 22px 22px 22px 0; border-top: 2px solid var(--ink); margin-right: 18px; }
.flow div::before { counter-increment: step; content: "0" counter(step); display: block; font: 600 14px var(--sans); color: var(--accent); margin-bottom: 8px; }
.flow h3 { font-size: 21px; margin-bottom: 6px; }
.flow p, .grid p { margin: 0; color: var(--muted); font-size: 16px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid div { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 24px; }
.grid.links a { display: block; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 24px; color: var(--ink); text-decoration: none; }
.grid.links a:hover { border-color: var(--accent); }
.grid.links h3::after { content: " →"; color: var(--accent); }
.grid h3 { font-size: 20px; margin-bottom: 8px; }
.rules { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 48px; }
.rules li { break-inside: avoid; padding: 12px 0 12px 26px; border-bottom: 1px solid var(--rule); position: relative; }
.rules li::before { content: "§"; position: absolute; left: 0; color: var(--accent); font-family: var(--serif); }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 0; }
.shots figure { margin: 0; }
.shots figure.wide { grid-column: 1 / -1; }
.shots img { width: 100%; height: auto; display: block; border: 1px solid var(--rule); border-radius: 8px; background: #fff; }
.shots figcaption { color: var(--muted); font-size: 15px; margin-top: 10px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
tr:last-child td { border-bottom: 0; }
th { font-size: 14px; color: var(--muted); font-weight: 600; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.plans > div { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 24px; display: flex; flex-direction: column; align-items: flex-start; }
.plans h3 { font-size: 20px; }
.plans .price { font: 600 28px var(--serif); margin: 10px 0 6px; }
.plans .allow { color: var(--muted); font-size: 15px; margin: 0 0 20px; flex: 1; }
.plans .price span { font: 15px var(--sans); color: var(--muted); }
.plans .alt { display: block; min-height: 1.6em; font-size: 15px; margin-top: 12px; }
p.note { color: var(--muted); font-size: 15px; max-width: 46em; margin: 24px 0 0; }
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; }
section.first { border-top: 0; }
.about h1 { font-size: clamp(34px, 5vw, 50px); margin-bottom: 18px; }
.about dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 16px; }
.about dt { color: var(--muted); }
.about dd { margin: 0; }
.cta { background: var(--surface); }
.cta .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.cta p { color: var(--muted); }
footer { border-top: 1px solid var(--rule); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; }
footer nav a { color: var(--muted); margin-right: 16px; }

/* Documents: security, subprocessors, terms, privacy, the DPA. */
.doc { max-width: 760px; padding: 56px 24px 72px; margin: 0 auto; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 8px; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; }
.doc h3 { font-size: 19px; margin: 24px 0 8px; }
.doc p, .doc li { max-width: 46em; }
.doc li { margin-bottom: 6px; }
.doc .table-wrap { margin: 16px 0; }
.doc .pack { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 16px 20px; font-size: 16px; }

/* Forms: paying by invoice. */
form.signup { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; max-width: 640px; margin-top: 24px; }
form.signup label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--muted); }
form.signup label.full { grid-column: 1 / -1; }
form.signup input, form.signup select { font: 17px var(--sans); padding: 10px 12px; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); color: var(--ink); }
form.signup .actions { grid-column: 1 / -1; }

@media (max-width: 900px) {
  header nav a { margin-left: 14px; font-size: 14px; }
}
/* Below this the header can't fit every link on one line; the home page links to the rest. */
@media (max-width: 740px) {
  header nav a.hide-sm { display: none; }
}
@media (max-width: 820px) {
  .flow, .grid { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .rules { columns: 1; }
  .cta .wrap, .about { grid-template-columns: 1fr; gap: 24px; }
  .shots { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap, .doc { padding-left: 16px; padding-right: 16px; }
  .plans { grid-template-columns: 1fr; }
  .flow, .grid { grid-template-columns: 1fr; }
  .flow div { margin-right: 0; }
  .hero { padding: 64px 0 48px; }
  .btn.ghost { margin: 12px 0 0; }
  form.signup { grid-template-columns: 1fr; }
  th, td { padding: 10px 12px; }
}
@media print {
  header nav, footer nav, .no-print { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .doc { padding: 0; max-width: none; }
  a { color: #000; }
}
