/* Shared styles for the content pages (about, use cases, comparisons, guides).
   Same tokens, type and palette as the home page. No JavaScript needed. */
@font-face { font-family: "Instrument Sans"; src: url("/fonts/InstrumentSans.woff2") format("woff2-variations"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/Archivo.woff2") format("woff2-variations"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/IBMPlexMono-400.woff2") format("woff2"); font-weight: 400; font-display: optional; }
:root {
  color-scheme: light;
  --paper: #f4f2ee;
  --card: #fbfaf7;
  --ink: #15161f;
  --text: #15161f;
  --mute: #5f5d58;
  --line: #e0dcd4;
  --line-strong: #cbc6bc;
  --brass: #c79a68;
  --brass-deep: #8f6139;
  --ok: #3f7a4a;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Archivo", var(--sans);
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgb(244 242 238 / 0.88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand .mark { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); display: grid; place-items: center; }
.brand .mark svg { width: 17px; height: 17px; color: var(--paper); }
.brand b { font-family: var(--display); font-weight: 650; font-size: 18px; letter-spacing: -0.01em; }
.nav nav { display: flex; align-items: center; gap: 24px; }
.nav nav a { color: var(--mute); text-decoration: none; font-size: 14px; }
.nav nav a:hover { color: var(--text); }
.nav nav a.btn.primary { color: var(--paper); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 11px; font: 500 15px var(--sans); text-decoration: none; border: 1px solid var(--line-strong); color: var(--text); background: var(--card); transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s; }
.btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--paper); box-shadow: 0 8px 20px -8px rgb(21 22 31 / 0.5); }
.btn.primary:hover { background: #2a2b36; }
.btn.small { padding: 8px 14px; font-size: 14px; border-radius: 9px; }

/* article */
.doc { max-width: 760px; margin: 0 auto; padding: 36px 0 0; }
.crumbs { font-size: 13.5px; color: var(--mute); margin: 0 0 28px; }
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs span { margin: 0 6px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass-deep); margin: 0 0 14px; }
h1 { font-family: var(--display); font-weight: 680; font-size: clamp(34px, 5.2vw, 54px); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 20px; text-wrap: balance; }
.answer { font-size: clamp(18px, 2.1vw, 20.5px); line-height: 1.55; color: var(--text); margin: 0 0 14px; }
.meta { font-size: 13.5px; color: var(--mute); margin: 0 0 8px; }
.doc h2 { font-family: var(--display); font-weight: 650; font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.025em; line-height: 1.15; margin: 56px 0 14px; text-wrap: balance; }
.doc h3 { font-size: 18.5px; letter-spacing: -0.01em; margin: 30px 0 6px; }
.doc p, .doc li { color: #3c3b38; }
.doc p { margin: 0 0 16px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 18px; }
.doc li { margin: 0 0 8px; }
.doc li::marker { color: var(--brass-deep); }
.doc b, .doc strong { color: var(--text); font-weight: 600; }
.doc a { color: var(--brass-deep); text-underline-offset: 2px; }
.doc a:hover { color: var(--text); }
.doc code { font-family: var(--mono); font-size: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

/* callouts and cards */
.note { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--brass); border-radius: 12px; padding: 16px 20px; margin: 24px 0; font-size: 16px; }
.note p:last-child { margin: 0; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 28px 0; }
.facts div { background: var(--card); padding: 16px 18px; }
.facts dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--mute); margin: 0 0 4px; }
.facts dd { margin: 0; font-size: 15.5px; color: var(--text); }
.steps { list-style: none; padding: 0 !important; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 14px 0 14px 44px !important; border-top: 1px solid var(--line); margin: 0 !important; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 14px; width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: var(--paper); font: 500 13px var(--mono); display: grid; place-items: center; }

/* comparison tables */
.table { overflow-x: auto; margin: 24px 0 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-top: 1px solid var(--line); }
thead th { border-top: 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); font-weight: 400; background: #f7f5f1; }
tbody th { font-weight: 600; width: 26%; }
td { color: #3c3b38; }
caption { caption-side: bottom; text-align: left; font-size: 13px; color: var(--mute); padding: 10px 14px; }

/* faq */
.faq { margin-top: 56px; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); color: var(--mute); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0 !important; font-size: 16px; }

/* related + cta */
.related { margin: 56px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.related a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; text-decoration: none; color: var(--text); transition: border-color 0.2s, transform 0.2s var(--ease); }
.related a:hover { border-color: var(--ink); transform: translateY(-2px); color: var(--text); }
.related b { display: block; font-size: 16px; margin-bottom: 2px; }
.related span { font-size: 14px; color: var(--mute); }
.cta-box { margin: 72px 0 0; padding: 56px 28px; text-align: center; background: var(--ink); color: #edebe6; border-radius: 24px; position: relative; overflow: hidden; }
.cta-box::before { content: ""; position: absolute; left: 50%; top: -60%; width: 800px; height: 520px; transform: translateX(-50%); background: radial-gradient(closest-side, rgb(199 154 104 / 0.25), transparent); }
.cta-box > * { position: relative; }
.cta-box h2 { font-family: var(--display); font-weight: 680; font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -0.03em; line-height: 1.08; margin: 0 auto 12px; color: #fff; max-width: 18em; text-wrap: balance; }
.cta-box p { color: #a9a69f; margin: 0 auto 26px; max-width: 34em; font-size: 16.5px; }
.cta-box .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-box .btn.primary { background: #edebe6; border-color: #edebe6; color: var(--ink); }
.cta-box .btn { background: transparent; color: #edebe6; border-color: #3a3b47; }
.cta-box .btn:hover { border-color: #edebe6; }

/* footer */
.foot { margin-top: 88px; border-top: 1px solid var(--line); padding: 40px 0 48px; display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 28px; font-size: 14px; color: var(--mute); }
.foot .fh { font: 400 11.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); margin: 0 0 10px; }
.foot a { display: block; color: var(--mute); text-decoration: none; padding: 4px 0; }
.foot a:hover { color: var(--text); }
.foot p:not(.fh) { margin: 10px 0 0; max-width: 22em; }

a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

@media (max-width: 900px) {
  .nav nav a:not(.btn) { display: none; }
  .foot { grid-template-columns: repeat(2, 1fr); }
  .foot > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 16px; }
  .doc { padding-top: 24px; }
  .facts, .related { grid-template-columns: 1fr; }
  .cta-box { padding: 44px 20px; border-radius: 20px; }
}
