/* Last Word — one stylesheet for every page. Colours from the Plaud2Claude design system.
   No inline styles anywhere (the Content-Security-Policy has no 'unsafe-inline'). */
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/InstrumentSerif-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('/assets/fonts/InstrumentSerif-Italic.woff2') format('woff2'); }

:root {
  --bg: #0b0c0f; --panel: #14161b; --panel2: #1a1d24; --line: #2a2e38; --line-strong: #60697f;
  --text: #e8eaf0; --soft: #b9bfcc; --mute: #9097a6; --blue: #4c7df0; --on-blue: #0b0c0f; --link: #8fb0ff;
  --green: #3fb97a; --green-bg: #12261c; --green-line: #245c41;
  --amber: #e0a63c; --amber-bg: #2a2212; --amber-line: #6b5320;
  --chip-blue-bg: #141d33; --chip-blue-line: #2c4686;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.55; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--blue); color: var(--on-blue); padding: 10px 16px; border-radius: 6px; font-weight: 600; }
.skip:focus { left: 8px; }

/* Top bar */
.top { border-bottom: 1px solid var(--line); }
.topnav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; padding-block: 12px; }
.topnav a { text-decoration: none; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
.topnav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.topnav .brand { font-family: var(--serif); font-size: 28px; color: var(--text); flex-grow: 1; font-weight: 400; }
.topnav .btn-sm { color: var(--on-blue); padding: 0 16px; }

/* Buttons */
.btn, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 6px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn { background: var(--blue); color: var(--on-blue); border: 0; }
.btn:hover { background: #6a93f3; color: var(--on-blue); }
.btn-ghost { color: var(--text); border: 1px solid var(--line-strong); background: transparent; }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Type */
.eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 18px; }
.h1 { font-family: var(--serif); font-weight: 400; font-size: 76px; line-height: 1.02; max-width: 900px; }
.h1 em { font-style: italic; color: var(--link); }
.h1-story { font-size: 64px; line-height: 1.05; }
.h1-firms { font-size: 68px; line-height: 1.04; max-width: 880px; }
.lede { margin-top: 28px; max-width: 640px; font-size: 19px; color: var(--soft); }
.h2 { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1.1; margin-bottom: 40px; }
.h2.tight { margin-bottom: 12px; }
.h2-sub { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.15; margin: 48px 0 12px; }
.intro { max-width: 620px; color: var(--soft); margin-bottom: 40px; }
.soft { color: var(--soft); }
.small { font-size: 15px; }
.fine { font-size: 12px; color: var(--mute); }
.step { font-size: 12px; letter-spacing: .07em; color: var(--mute); text-transform: uppercase; }
.card h3 { font-size: 19px; margin: 8px 0; }
.card b, .card strong { display: block; }
.card p { color: var(--soft); }
.card .small { margin-top: 6px; }

/* Sections */
.hero { padding-block: 96px 64px; }
.hero-firms { padding-block: 88px 56px; }
.band { border-top: 1px solid var(--line); }
.band-alt { background: var(--panel); }
.band > .wrap { padding-block: 88px; }
.band-firms > .wrap { padding-block: 80px; }

/* Grids */
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.row { display: flex; flex-wrap: wrap; gap: 20px; }
.row > * { flex: 1 1 280px; min-width: 0; }
ul.cols3, ol.cols3, ul.plain, ol.plain { list-style: none; margin: 0; padding: 0; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.card.dashed { border: 1px dashed var(--line-strong); }
.promise { border-top: 2px solid var(--blue); padding-top: 16px; }
.promise b { display: block; }
.promise span { color: var(--soft); }

/* Chips */
.chip { display: inline-block; font-size: 11px; font-weight: 600; line-height: 1.6; border-radius: 4px; padding: 1px 7px; border: 1px solid var(--line); background: var(--panel2); color: var(--mute); white-space: nowrap; }
.chip.g { color: var(--green); background: var(--green-bg); border-color: var(--green-line); }
.chip.a { color: var(--amber); background: var(--amber-bg); border-color: var(--amber-line); }
.chip.b { color: var(--link); background: var(--chip-blue-bg); border-color: var(--chip-blue-line); }
.chip.solid { color: var(--on-blue); background: var(--blue); border-color: var(--blue); }

/* Home: app screenshot */
.shot { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.shot img { width: 100%; }
.shot figcaption { font-size: 12px; color: var(--mute); padding: 10px 16px; border-top: 1px solid var(--line); }
.shot-wrap { padding-bottom: 96px; }

/* Home: two doors */
.door { display: block; text-decoration: none; color: var(--text); border: 1px solid var(--line-strong); border-radius: 12px; padding: 32px; }
.door:hover { color: var(--text); border-color: var(--text); }
.door .step { color: var(--mute); }
.door > span { display: block; }
.door-title { font-family: var(--serif); font-size: 36px; line-height: 1.15; margin: 10px 0; }
.door p { color: var(--soft); margin-bottom: 18px; }
.door .go { color: var(--link); font-weight: 600; }
.door.primary { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.door.primary:hover { background: #6a93f3; color: var(--on-blue); }
.door.primary .step, .door.primary p, .door.primary .go { color: var(--on-blue); }
.door.primary .go { font-weight: 700; }

/* Story page */
.article { padding-block: 80px 40px; }
.demo { margin: 48px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; }
.demo img, .demo video { width: 100%; height: auto; display: block; background: var(--bg); }
.demo figcaption { font-size: 14px; color: var(--mute); padding: 10px 16px; border-top: 1px solid var(--line); }
.rules { margin: 0; padding-left: 22px; color: var(--soft); display: flex; flex-direction: column; gap: 10px; }
.rules b { color: var(--text); }
.status-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.status-list .chip { margin-right: 6px; }
.cta { margin-top: 64px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.cta > div { flex: 1 1 300px; }
.cta b { font-size: 18px; display: block; }

/* Firms page: integrations table */
.table-box { border: 1px solid var(--line); border-radius: 8px; background: var(--bg); overflow-x: auto; }
.table-box table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.table-box th { text-align: left; font-size: 11px; letter-spacing: .07em; color: var(--mute); font-weight: 400; text-transform: uppercase; padding: 12px 16px; }
.table-box td { padding: 12px 16px; border-top: 1px solid var(--line); }
.table-box td:nth-child(2) { color: var(--soft); }
.qa b { display: block; }
.qa p { margin-top: 4px; color: var(--soft); }

/* Firms page: pricing */
.tier { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.tier.lead { border: 2px solid var(--blue); }
.tier .chip { align-self: flex-start; }
.tier-name { font-size: 20px; font-weight: 700; }
.tier:not(.lead) .tier-name { margin-top: 26px; }
.price { font-family: var(--serif); font-size: 40px; line-height: 1.2; }
.price span { font-family: var(--sans); font-size: 16px; color: var(--mute); }
.tier p { color: var(--soft); font-size: 15px; }
.tier .btn, .tier .btn-ghost { margin-top: auto; }

/* Firms page: form */
.form-wrap { max-width: 720px; margin: 0 auto; padding: 80px 24px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.fld input, .fld select, .fld textarea { background: var(--bg); color: var(--text); border: 1px solid var(--line-strong); border-radius: 6px; padding: 11px 12px; font: inherit; font-size: 16px; min-height: 46px; width: 100%; }
.fld textarea { resize: vertical; }
.fld [aria-invalid="true"] { border-color: var(--amber); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--soft); min-height: 44px; }
.check label { padding-top: 2px; cursor: pointer; }
.check input { width: 24px; height: 24px; margin: 0; accent-color: var(--blue); flex: none; }
.form .btn { align-self: flex-start; padding-inline: 24px; }
.form-error { border: 1px solid var(--amber-line); background: var(--amber-bg); color: var(--text); border-radius: 6px; padding: 12px 14px; font-size: 15px; }
.form-error:empty { display: none; }
.hp, .sr-only { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; }

/* Plain text pages (privacy, security, thanks, 404) */
.prose { padding-block: 80px; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.15; margin: 40px 0 10px; }
.prose p, .prose li { color: var(--soft); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.prose b, .prose strong { color: var(--text); }
.prose .lede { margin-top: 20px; }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: 0; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-block: 24px 8px; font-size: 13px; color: var(--mute); }
.foot-copy { flex-grow: 1; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot-legal { font-size: 12px; color: var(--mute); padding-bottom: 32px; }

@media (max-width: 820px) {
  .cols3, .cols2 { grid-template-columns: minmax(0, 1fr); }
  .h1, .h1-story, .h1-firms { font-size: 44px; }
  .h2 { font-size: 36px; }
  .hero, .hero-firms { padding-block: 56px 40px; }
  .band > .wrap, .band-firms > .wrap { padding-block: 56px; }
  .article, .prose { padding-block: 48px 32px; }
  .lede { font-size: 17px; }
  .shot-wrap { padding-bottom: 56px; }
}
@media (max-width: 480px) {
  .wrap, .form-wrap { padding-inline: 16px; }
  .topnav { gap: 0 14px; }
  .topnav .brand { flex-basis: 100%; }
  .h1, .h1-story, .h1-firms { font-size: 38px; }
  .door { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.article-end { padding-bottom: 80px; }
.more { margin-top: 32px; }
.price .amount { font-family: var(--serif); font-size: 40px; color: var(--text); }
