/* Chatshelf: stylesheet for every page of the site. A library card catalogue: cream catalogue cards on a desk, call numbers typed in Courier Prime, one teal accent, oak only on drawer fronts with brass labels and pulls. Atkinson Hyperlegible for text. */

@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/Atkinson-400.woff2") format("woff2"); }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/CourierPrime-400.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/Atkinson-700.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  --bg: #e3ebeb;
  --surface: #fbf8ee;
  --soft: #f0ead9;
  --ink: #1d2433;
  --muted: #565f6d;
  --line: #d9d3c0;
  --rule: #bcd3d0;
  --accent: #0e7c86;
  --accent-hover: #0a636b;
  --accent-ink: #ffffff;
  --accent-soft: #d3e9e9;
  --link: #0b6a73;
  --oak: #8a5a2b;
  --drawer: #efe1cb;
  --brass: #9a7a2c;
  --type: "Courier Prime", "Courier New", Courier, monospace;
  --radius: 3px;
  --radius-sm: 2px;
  --font: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: var(--font);
  --shadow: 0 1px 0 rgba(29, 36, 51, 0.06), 0 8px 24px rgba(29, 36, 51, 0.10);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12171a;
    --surface: #20262b;
    --soft: #2a3036;
    --ink: #e8eaed;
    --muted: #a8b0bb;
    --line: #3a424a;
    --rule: #3d5156;
    --accent: #3fb4c0;
    --accent-hover: #6cd0da;
    --accent-ink: #0f1418;
    --accent-soft: #19343a;
    --link: #3fb4c0;
    --oak: #b98550;
    --drawer: #3a2e22;
    --brass: #cfa94f;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body { margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.65; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.2em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; }
.skip:focus { top: 12px; color: var(--accent-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--font); font-weight: 700; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.05rem, 1.3rem + 3.2vw, 3.4rem); line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.2; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
h3 { font-size: 1.25rem; line-height: 1.3; }
p { margin: 0; }

/* header: a drawer front with the name on its label holder */
.site-header { background: var(--surface); border-top: 5px solid var(--accent); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; padding: 6px 10px; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--accent); color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; padding: 12px 22px; border-radius: var(--radius-sm); border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--accent); }
.btn.quiet:hover { background: var(--accent-soft); color: var(--ink); border-color: var(--accent); }

/* hero: a fan of index cards, one per site, filed in the same folder */
.hero { padding: 64px 0 0; background: var(--bg); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; padding-bottom: 56px; }
.hero h1 { margin-bottom: 20px; }
.hero .lede { font-size: 1.2rem; line-height: 1.55; color: var(--muted); max-width: 34rem; margin-bottom: 28px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.hero .cta-note { margin-top: 18px; font-size: 0.95rem; color: var(--muted); }
.fan { position: relative; display: grid; gap: 0; padding: 8px 0 16px; max-width: 430px; justify-self: center; width: 100%; }
.fan .card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 2px; box-shadow: var(--shadow); padding: 18px 22px 20px; margin-top: -12px; }
.fan .card:first-child { margin-top: 0; }
.fan .card:nth-child(1) { transform: rotate(-2.2deg); z-index: 1; }
.fan .card:nth-child(2) { transform: rotate(1.4deg) translateX(14px); z-index: 2; }
.fan .card:nth-child(3) { transform: rotate(-0.8deg); z-index: 3; }
.fan .card::after { content: ""; position: absolute; left: 50%; bottom: 8px; width: 11px; height: 11px; margin-left: -5px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35); }
.fan .callno { display: block; font: 400 0.95rem/1.4 var(--type); letter-spacing: 0.04em; color: var(--link); padding-bottom: 6px; margin-bottom: 14px; border-bottom: 1px solid var(--rule); }
.fan .t { display: block; font-size: 1.2rem; font-weight: 700; line-height: 1.25; }
.fan .f { display: flex; align-items: center; gap: 8px; margin: 8px 0 12px; font-size: 0.92rem; color: var(--muted); }
.mark { display: inline-block; font: 400 0.85rem/1 var(--type); letter-spacing: 0.04em; color: var(--link); }
.swatch { display: inline-block; width: 11px; height: 11px; border-radius: 2px; background: #c8501c; }
.drawer-front { background: var(--drawer); border-top: 1px solid var(--oak); border-bottom: 8px solid var(--oak); }
.drawer-front .wrap { display: flex; align-items: center; justify-content: center; gap: 18px; padding-top: 22px; padding-bottom: 22px; }
.drawer-front .label { background: var(--surface); color: var(--ink); border: 3px solid var(--brass); border-radius: 2px; padding: 4px 22px; font-weight: 700; text-align: center; }
.drawer-front .pull { width: 54px; height: 14px; border-radius: 7px; background: var(--brass); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.22); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .drawer-front .wrap { transition: transform 0.18s ease-out; }
  .drawer-front:hover .wrap { transform: translateX(8px); }
  /* the one orchestrated moment: the three cards drop into the drawer when the page opens */
  .fan .card { animation: drop 0.55s cubic-bezier(0.3, 1.35, 0.6, 1) both; }
  .fan .card:nth-child(2) { animation-delay: 0.14s; }
  .fan .card:nth-child(3) { animation-delay: 0.28s; }
}
@keyframes drop { from { opacity: 0; translate: 0 -34px; } to { opacity: 1; translate: 0 0; } }

/* sections are cards filed behind drawer tabs */
main > section { padding: 56px 0 0; border: 0; background: var(--bg); }
main > section:last-child { padding-bottom: 72px; }
main > section > .wrap { position: relative; max-width: 900px; background: var(--surface); border: 1px solid var(--line); border-radius: 2px; box-shadow: var(--shadow); padding: 44px 52px 64px; }
main > section > .wrap::after { content: ""; position: absolute; left: 50%; bottom: 22px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35); }
.tab { position: absolute; top: -32px; left: 52px; background: var(--accent); color: var(--accent-ink); font: 400 0.95rem/1.4 var(--type); letter-spacing: 0.03em; padding: 4px 18px 3px; border-radius: 3px 3px 0 0; }
#problem .tab { left: 190px; }
#free .tab { left: 330px; }
#pricing .tab { left: 470px; }
#faq .tab { left: 610px; }
.rule { display: none; }
section.ground { background: var(--bg); }
.sub { color: var(--muted); font-size: 1.1rem; max-width: 40rem; margin-bottom: 24px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 26px; max-width: 38rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 11px; height: 11px; border-radius: 50%; border: 3px solid var(--accent); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.pair figure { margin: 0; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; background: var(--bg); }
.pair figcaption { padding: 10px 14px; font-size: 0.92rem; color: var(--muted); border-top: 1px solid var(--line); background: var(--surface); }
.shot { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 2px; box-shadow: var(--shadow); overflow: hidden; }

/* pricing */
.price-table { width: 100%; max-width: 860px; border-collapse: collapse; table-layout: fixed; }
.price-table th, .price-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; font-weight: 400; }
.price-table th:first-child, .price-table td:first-child { padding-left: 0; width: 42%; }
.price-table thead th { font-size: 0.95rem; color: var(--muted); font-weight: 650; }
.price-table tbody th { font-weight: 500; }
.price-table .yes { color: var(--link); font-weight: 600; }
.price-table .no { color: var(--muted); }
.price-table tfoot th, .price-table tfoot td { border-bottom: 0; padding-top: 22px; }
.price { font-family: var(--type); font-size: 2rem; line-height: 1.1; margin: 0 0 4px; font-variant-numeric: lining-nums; }
.price small { font-family: var(--font); font-size: 0.9rem; color: var(--muted); }
.price-note { color: var(--muted); font-size: 0.9rem; margin: 0 0 12px; }
.price-table .btn { display: flex; width: 100%; max-width: 240px; margin: 0 0 8px; }
.table-note { color: var(--muted); max-width: 46rem; margin-top: 20px; }

/* faq */
.faq { max-width: 46rem; margin: 24px 0 0; }
.faq dt { font-weight: 650; font-size: 1.1rem; margin-top: 24px; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 6px 0 0; color: var(--muted); }
.faq dd + dd { margin-top: 8px; }

/* privacy policy and other text pages */
main.doc { max-width: 760px; margin: 0 auto; padding-top: 48px; padding-bottom: 72px; }
.doc h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); margin-bottom: 16px; }
.doc h2 { font-size: 1.5rem; margin: 36px 0 10px; }
.doc p, .doc ul, .doc ol { margin: 0 0 16px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc code { background: var(--soft); padding: 1px 5px; border-radius: 2px; font: 400 0.92em var(--type); }
.doc a { overflow-wrap: anywhere; }

/* guides: long-form pages that share the .doc layout */
.crumbs { font: 400 0.95rem/1.5 var(--type); color: var(--muted); margin: 0 0 14px; }
.doc .lede { font-size: 1.2rem; line-height: 1.55; color: var(--muted); margin-bottom: 20px; }
.doc .cta-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 0 0 8px; }
.doc .cta-note { color: var(--muted); font-size: 0.95rem; margin: 0 0 12px; }
.doc .btn { text-decoration: none; }
.doc figure.shot { margin: 24px 0; }
.doc figure.shot.tall { max-width: 300px; }
.doc figcaption { padding: 10px 14px; font-size: 0.9rem; color: var(--muted); border-top: 1px solid var(--line); }
.doc blockquote { margin: 0 0 16px; padding: 4px 0 4px 16px; border-left: 4px solid var(--accent); color: var(--ink); }
.doc blockquote p { margin: 0 0 8px; }
.doc blockquote cite { display: block; font-style: normal; font-size: 0.9rem; color: var(--muted); }
.doc .source { color: var(--muted); font-size: 0.9rem; }
.doc .box { background: var(--surface); border: 1px solid var(--line); border-radius: 2px; padding: 22px 24px; margin: 36px 0 0; }
.doc .box h2 { margin: 0 0 8px; font-size: 1.4rem; }
.doc .box p:last-child { margin-bottom: 0; }
.doc .more { list-style: none; padding: 0; }
.doc .more li { margin: 8px 0; }

.compare { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 0 0 20px; font-size: 0.95rem; }
.compare th, .compare td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-weight: 400; overflow-wrap: anywhere; }
.compare thead th { color: var(--muted); font-weight: 650; }
.compare thead th:first-child { width: 22%; }
.compare tbody th { font-weight: 600; width: 22%; padding-left: 0; }
.compare th:first-child { padding-left: 0; }

.doc .guide-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 14px; }
.guide-list li { margin: 0; }
.guide-list a { display: block; padding: 14px 18px 12px; background: var(--drawer); border: 1px solid var(--oak); border-bottom-width: 4px; border-radius: 2px; text-decoration: none; color: var(--ink); }
.guide-list a:hover { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .guide-list a { transition: transform 0.18s ease-out, box-shadow 0.18s ease-out; }
  .guide-list a:hover, .guide-list a:focus-visible { transform: translateX(8px); box-shadow: -4px 0 0 var(--oak); }
}
.guide-list b { display: inline-block; font-family: var(--font); font-size: 1.15rem; font-weight: 700; line-height: 1.25; color: var(--link); background: var(--surface); border: 2px solid var(--brass); border-radius: 2px; padding: 1px 12px; margin-bottom: 6px; }
.guide-list span { display: block; color: var(--ink); }

/* 404 */
.notfound { padding-top: 88px; padding-bottom: 96px; max-width: 720px; margin: 0 auto; }
.notfound h1 { margin-bottom: 12px; }
.notfound p { color: var(--muted); font-size: 1.15rem; margin-bottom: 28px; }
.notfound .cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  body { font-size: 16px; }
  .nav { gap: 4px 12px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .doc .box { padding: 18px 16px; }
  .doc .cta-row .btn { width: 100%; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare thead { display: none; }
  .compare tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .compare th, .compare td, .compare tbody th { padding: 0; border: 0; width: 100%; }
  .compare tbody th { margin-bottom: 4px; }
  .compare td { padding: 2px 0; }
  .compare td::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 600; }

  /* the pricing table stacks: one block per feature, then one block per plan */
  .price-table, .price-table tbody, .price-table tfoot, .price-table tr, .price-table th, .price-table td { display: block; width: 100%; max-width: none; }
  .price-table thead { display: none; }
  .price-table tbody tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .price-table th, .price-table td, .price-table th:first-child, .price-table td:first-child { padding: 0; border: 0; width: 100%; }
  .price-table tbody th { font-weight: 600; margin-bottom: 6px; }
  .price-table tbody td { display: flex; justify-content: space-between; gap: 16px; padding: 2px 0; }
  .price-table tbody td::before { content: attr(data-label); color: var(--muted); font-weight: 400; }
  .price-table tfoot tr { padding: 20px 0 0; }
  .price-table tfoot th, .price-table tfoot th:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; }
  .price-table tfoot td { padding: 0 0 20px; }
  .price-table tfoot td::before { content: attr(data-label); display: block; font-size: 0.85rem; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
  .price-table tfoot .btn { display: flex; width: 100%; margin: 0 0 8px; }
}

.tag { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 2px; background: var(--accent); color: var(--accent-ink); font: 400 0.78rem/1.6 var(--type); vertical-align: 0.1em; }


/* overrides on the shared table and text rules */
.price-table th:first-child, .price-table td:first-child { width: 40%; }
.price-table thead th { color: var(--ink); font-weight: 700; }
.price-table .yes { color: var(--link); font-weight: 700; }
.price { font-weight: 400; font-size: 2rem; }
.faq dt { font-weight: 700; }
.doc .box { border-top: 4px solid var(--accent); }
.doc blockquote { border-left-color: var(--accent); }

.site-footer { padding: 48px 0 0; background: var(--surface); border-top: 8px solid var(--accent); }
.footer-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 40px; padding-bottom: 28px; }
.footer-col h2 { font-family: var(--type); font-size: 1rem; font-weight: 400; letter-spacing: 0.03em; margin: 0 0 8px; padding: 0; border: 0; color: var(--link); }
.footer-col a { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; font-size: 0.95rem; }
.footer-col a:hover { color: var(--link); text-decoration: underline; }
.trademark { border-top: 1px solid var(--line); padding: 18px 0 40px; color: var(--muted); font-size: 0.85rem; }

@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-bottom: 40px; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  main > section > .wrap { padding: 40px 32px 60px; }
}
@media (max-width: 640px) {
  main > section { padding-top: 48px; }
  main > section > .wrap { padding: 32px 18px 58px; border-radius: 4px; }
  .tab, #problem .tab, #free .tab, #pricing .tab, #faq .tab { left: 18px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero .btn { width: 100%; }
  .drawer-front .label { padding: 6px 12px; font-size: 0.92rem; }
  .drawer-front .pull { width: 34px; }
}

/* store-soon */
.btn.store-soon, .btn.store-soon:hover { background: transparent; color: inherit; border-style: dashed; opacity: .6; cursor: default; filter: none; box-shadow: none; transform: none }
.footer-col .store-soon { display: block; padding: 4px 0; opacity: .6; cursor: default }
.updated { margin: 4px 0 18px; color: var(--muted); font: 400 0.95rem/1.5 var(--type); }
@media (max-width: 640px) {
  .price-table th:first-child, .price-table td:first-child { width: 100%; }
}

/* changelog: one article per release, version and date on one line */

.offer-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; letter-spacing: 0.04em; padding: 1px 6px; border: 1px dashed currentColor; border-radius: 3px; }
.copy-code { margin-left: 4px; padding: 0; font: inherit; color: inherit; background: none; border: 0; text-decoration: underline; cursor: pointer; }
