/* GuestReply AI reading pages: the /compare pages and the English blog (Fadi, 2026-11-29).
   One centred reading column (~65 characters a line), Instrument Sans 18px body, Instrument Serif headings,
   the shared site header and footer, comparison tables with footnotes, and the static Card and LinkCard.
   Values come from the design system (GR/docs/design-system/tokens/tokens.css). Load before /inner.css,
   which adds the header's step-by-step collapse, the phone menu and the touch targets. */

:root {
  /* Design-system tokens used here (values as in tokens.css) */
  --paper: #F6F5F1; --sand: #ECE8E0; --surface-raised: #FFFFFF; --line: #DEDAD0; --line-hover: #CFC8BA;
  --midnight: #141F46; --ink-body: #3B3F55; --ink-muted: #675E50; --night-text: #C9D3F0;
  --reply-blue: #0155EF; --reply-blue-hover: #0047CC; --reply-blue-tint: #ADC5F0; --reply-blue-wash: #E8EFFD; --on-reply-blue: #FFFFFF;
  --sky: #01A3FE; --success: #0E7A4E;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 72px;
  --radius-xs: 6px; --radius-sm: 10px; --radius-md: 14px; --radius-lg: 18px; --radius-xl: 24px; --radius-2xl: 32px; --radius-pill: 999px;
  --elev-rest: 0 1px 2px rgba(20, 31, 70, 0.06), 0 6px 18px rgba(20, 31, 70, 0.07);
  --elev-raised: inset 0 -1px 0 rgba(20, 31, 70, 0.06), 0 1px 2px rgba(20, 31, 70, 0.08), 0 4px 10px rgba(20, 31, 70, 0.07);
  --elev-hover: inset 0 -1px 0 rgba(20, 31, 70, 0.06), 0 2px 4px rgba(20, 31, 70, 0.10), 0 12px 24px rgba(20, 31, 70, 0.10);
  --elev-night: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 28px rgba(4, 8, 28, 0.38);
  --elev-button-primary: inset 0 -2px 0 rgba(0, 0, 0, 0.20), 0 1px 2px rgba(1, 30, 90, 0.25), 0 6px 16px rgba(1, 85, 239, 0.24);
  --shadow-cta: inset 0 -2px 0 rgba(0, 0, 0, 0.20), 0 2px 4px rgba(1, 30, 90, 0.25), 0 12px 26px rgba(1, 85, 239, 0.32);
  --ease: cubic-bezier(.2,.7,.2,1);
  /* Short names the shared /inner.css and /nav.js header styles use */
  --card: var(--surface-raised); --reply: var(--reply-blue); --serif: var(--font-serif); --sans: var(--font-sans); --mono: var(--font-mono);
  /* The reading column: 560px of text (65 to 70 characters of 18px Instrument Sans; 680px gave 85), and the wider band tables may use */
  --measure: 560px; --wide: 1040px; --gutter: var(--space-4);
}
@media (min-width: 720px) { :root { --gutter: var(--space-5); } }

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--midnight); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--reply-blue); outline-offset: 2px; }

/* ---- Site header (the same markup on every inner page; /inner.css and /nav.js do the collapsing) ---- */
.top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 18px clamp(16px, 4vw, 56px); background: var(--paper); }
.top nav { display: flex; align-items: center; gap: 26px; font: 500 15px/1 var(--sans); }
.top nav a:not(.btn) { color: var(--ink-body); text-decoration: none; }
.top nav a:not(.btn):hover { color: var(--reply-blue); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: var(--radius-pill); background: var(--reply-blue); color: var(--on-reply-blue); font: 600 16px/1 var(--sans); text-decoration: none; box-shadow: var(--elev-button-primary); transition: transform 150ms var(--ease), box-shadow 150ms, background 150ms; }
.btn:hover { transform: translateY(-2px); background: var(--reply-blue-hover); box-shadow: var(--shadow-cta); }
.btn:active { transform: translateY(1px); }
.btn span { transition: transform 150ms var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 14px; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: var(--radius-pill); background: var(--reply-blue); color: var(--on-reply-blue); font: 600 14px/1 var(--sans); text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---- Site footer ---- */
footer { max-width: 1180px; margin: var(--space-7) auto 0; padding: 22px clamp(16px, 5vw, 56px) 30px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font: 400 13px/1.4 var(--mono); color: var(--ink-muted); }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--reply-blue); }

/* ---- The reading column ---- */
.reading { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: var(--space-6) var(--gutter) var(--space-6); color: var(--ink-body); font: 400 18px/1.6 var(--sans); }
.reading .kicker { font: 400 13px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--reply-blue); }
.reading h1 { margin-top: var(--space-3); font: 400 clamp(40px, 6.4vw, 64px)/1.02 var(--serif); letter-spacing: -.01em; color: var(--midnight); text-wrap: balance; }
.reading h2 { margin-top: var(--space-2); font: 400 clamp(28px, 4.2vw, 38px)/1.08 var(--serif); color: var(--midnight); text-wrap: balance; }
.reading h1 em, .reading h2 em { color: var(--reply-blue); }
.reading h3 { font: 600 18px/1.35 var(--sans); color: var(--midnight); }
.reading p { max-width: var(--measure); }
.reading a:where(:not(.btn, .gr-linkcard, .alt)) { color: var(--reply-blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.reading a:where(:not(.btn, .gr-linkcard, .alt)):hover { color: var(--reply-blue-hover); text-decoration-thickness: 2px; }
.reading strong { color: var(--midnight); font-weight: 600; }

/* Opening: eyebrow, headline, the short verdict, the lead and the trial button */
.reading .hero > * + * { margin-top: var(--space-5); }
.reading .hero > h1 { margin-top: var(--space-3); }
.reading .lead { font: 400 20px/1.55 var(--sans); color: var(--ink-body); }
.reading .actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); }
.reading .alt { font: 500 16px/1.3 var(--sans); color: var(--reply-blue); text-decoration: none; }
.reading .alt:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Sections: eyebrow and H2 above the text, ~48px above each H2 and ~16px below */
.reading .sect { margin-top: var(--space-7); }
.reading .sect > div:last-child { margin-top: var(--space-4); }
.reading .sect > div:last-child:not(.qa-list) > * + * { margin-top: var(--space-4); }

/* Card (static, design system): the short verdict box under the H1 */
.gr-card { background: var(--surface-raised); border-radius: var(--radius-xl); padding: var(--space-6); box-shadow: var(--elev-rest); }
.verdict-box > * + * { margin-top: var(--space-3); }
.verdict-box p, .verdict-box li { font: 400 18px/1.55 var(--sans); color: var(--ink-body); }
.verdict-box ul { margin: var(--space-3) 0 0; padding: 0; list-style: none; }
.verdict-box li + li { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.verdict-box .more { font: 500 16px/1.3 var(--sans); }
.reading .verdict-box a.more { text-decoration: none; }
.reading .verdict-box a.more:hover { text-decoration: underline; }

/* LinkCard (interactive, design system): rows on the /compare hub */
.cards { display: grid; gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.gr-linkcard { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5) var(--space-6); border-radius: var(--radius-xl); background: var(--surface-raised); border: 1px solid var(--line); box-shadow: var(--elev-raised); color: var(--midnight); text-decoration: none; transition: transform 150ms var(--ease), box-shadow 150ms, border-color 150ms; }
.gr-linkcard:hover { transform: translateY(-2px); box-shadow: var(--elev-hover); border-color: var(--line-hover); }
.gr-linkcard:active { transform: translateY(0); box-shadow: var(--elev-raised); }
.gr-linkcard:focus-visible { outline: 2px solid var(--reply-blue); outline-offset: 3px; }
.gr-linkcard-title { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); font: 400 clamp(24px, 3vw, 28px)/1.1 var(--serif); color: var(--midnight); }
.gr-linkcard-arrow { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--paper); border: 1px solid var(--line); color: var(--midnight); font: 400 16px/1 var(--sans); transition: transform 150ms var(--ease), background 150ms, color 150ms, border-color 150ms; }
.gr-linkcard:hover .gr-linkcard-arrow { transform: translateX(3px); background: var(--reply-blue); border-color: var(--reply-blue); color: var(--on-reply-blue); }
.gr-linkcard-body { font: 400 16px/1.5 var(--sans); color: var(--ink-body); }
.gr-linkcard-body .fn-ref { color: var(--ink-muted); }

/* Comparison tables: the full column, up to 1040px wide on large screens, the header row sticks while you scroll */
.table-wrap { width: min(var(--wide), calc(100vw - 2 * var(--gutter))); margin-inline: calc((100% - min(var(--wide), calc(100vw - 2 * var(--gutter)))) / 2); }
.reading .sect > div:last-child > .table-wrap { margin-top: var(--space-5); }
.ctable { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.ctable th, .ctable td { padding: 14px 18px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); font: 400 16px/1.5 var(--sans); color: var(--ink-body); }
.ctable thead th { position: sticky; top: var(--hdr, 80px); z-index: 2; font: 400 13px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); background: var(--paper); }
.ctable thead th:first-child { border-start-start-radius: var(--radius-lg); }
.ctable thead th:last-child { border-start-end-radius: var(--radius-lg); }
.ctable tbody tr:last-child > * { border-bottom: 0; }
.ctable tbody th { width: 22%; font-weight: 600; color: var(--midnight); }
.ctable td { width: 39%; }

/* Small two-column tables (a worked price per tool): same look, kept as a table on phones */
.ladder { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.ladder th, .ladder td { padding: 14px 18px; text-align: start; border-bottom: 1px solid var(--line); font: 400 16px/1.45 var(--sans); color: var(--ink-body); }
.ladder thead th { font: 400 13px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); background: var(--paper); }
.ladder thead th:first-child { border-start-start-radius: var(--radius-lg); }
.ladder thead th:last-child { border-start-end-radius: var(--radius-lg); }
.ladder tbody tr:last-child > * { border-bottom: 0; }
.ladder tbody th { font-weight: 600; color: var(--midnight); }
.ladder td:last-child, .ladder th:last-child { text-align: end; font-family: var(--mono); color: var(--midnight); white-space: nowrap; }

/* Footnote markers in the cells, and the numbered "Sources and details" list under each table */
.fn-ref { font: 500 13px/0 var(--mono); vertical-align: super; margin-inline-start: 2px; white-space: nowrap; }
.reading .fn-ref a { color: var(--reply-blue); text-decoration: none; }
.reading .fn-ref a:hover { text-decoration: underline; }
.table-notes { margin-top: var(--space-5); }
.table-notes .notes-title { font: 400 13px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.table-notes ol { margin: var(--space-3) 0 0; padding-inline-start: 2.2em; }
.table-notes li { font: 400 16px/1.55 var(--sans); color: var(--ink-body); padding: var(--space-1) var(--space-2); margin-inline-start: calc(-1 * var(--space-2)); border-radius: var(--radius-sm); }
.table-notes li + li { margin-top: var(--space-2); }
.table-notes li::marker { font: 500 13px/1 var(--mono); color: var(--ink-muted); }
.table-notes li:target { background: var(--reply-blue-wash); }
.table-notes .fn-label { font-weight: 600; color: var(--midnight); }
.reading .table-notes a.fn-back { margin-inline-start: 6px; text-decoration: none; font: 500 14px/1 var(--sans); }

/* Phones: each table row becomes a card, with the row label as its title and one labelled line per column */
@media (max-width: 640px) {
  .ctable, .ctable tbody, .ctable tr, .ctable tbody th, .ctable td { display: block; width: auto; }
  .ctable { background: none; border: 0; border-radius: 0; }
  .ctable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ctable tbody tr { padding: var(--space-5); background: var(--surface-raised); border-radius: var(--radius-xl); box-shadow: var(--elev-rest); }
  .ctable tbody tr + tr { margin-top: var(--space-3); }
  .ctable tbody th { padding: 0 0 var(--space-2); border: 0; font: 400 24px/1.1 var(--serif); }
  .ctable td { padding: var(--space-3) 0 0; margin-top: var(--space-3); border: 0; border-top: 1px solid var(--line); }
  .ctable tbody tr:last-child > td { border-top: 1px solid var(--line); }
  .ctable td::before { content: attr(data-label); display: block; margin-bottom: var(--space-1); font: 400 13px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
  .gr-card { padding: var(--space-5); }
  .gr-linkcard { padding: var(--space-5); }
}

/* FAQ: raised rows with a round chevron button */
.qa-list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: 18px 0; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { margin: 0; font: 600 18px/1.35 var(--sans); color: var(--midnight); }
.qa summary:hover h3 { color: var(--reply-blue); }
.qa summary i { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-raised); box-shadow: var(--elev-raised); position: relative; transition: background .2s, border-color .2s; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; background: var(--midnight); transform: translate(-50%, -50%); }
.qa summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .25s var(--ease); }
.qa[open] summary i { background: var(--reply-blue); border-color: var(--reply-blue); }
.qa[open] summary i::before, .qa[open] summary i::after { background: var(--on-reply-blue); }
.qa[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.reading .qa p { margin: -2px 0 18px; font: 400 18px/1.6 var(--sans); }

/* ---- Blog posts: byline, table of contents, the article text and the message templates ---- */
.reading .kicker a { color: inherit; text-decoration: none; }
.reading .kicker a:hover { text-decoration: underline; text-underline-offset: 4px; }
.reading .post-meta { font: 400 14px/1.5 var(--sans); color: var(--ink-muted); }
.reading .post-meta a { color: inherit; }
.toc { padding: var(--space-5) var(--space-6); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-xl); }
.toc .toc-title { font: 400 13px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.toc ol { margin: var(--space-3) 0 0; padding-inline-start: 1.6em; }
.toc li { font: 400 16px/1.45 var(--sans); color: var(--ink-body); }
.toc li + li { margin-top: var(--space-2); }
.toc li::marker { font: 500 13px/1 var(--mono); color: var(--ink-muted); }
.reading .toc a { text-decoration: none; }
.reading .toc a:hover { text-decoration: underline; }
.prose { margin-top: var(--space-7); }
.prose > * + * { margin-top: var(--space-4); }
.prose > h2 { margin-top: var(--space-7); scroll-margin-top: calc(var(--hdr, 80px) + var(--space-4)); }
.prose > h2 + * { margin-top: var(--space-4); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { max-width: var(--measure); margin-bottom: 0; padding-inline-start: 1.4em; }
.prose li + li { margin-top: var(--space-3); }
.prose li::marker { color: var(--ink-muted); }
.prose code { font: 500 .88em/1 var(--mono); color: var(--midnight); }
.prose figure { margin-inline: 0; }
.prose figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.prose .zoom-img { display: block; }
.message-template { padding: var(--space-5); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--elev-rest); }
.message-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-3); font: 400 13px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.message-toolbar button { flex-shrink: 0; min-height: 44px; padding: 0 var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--paper); color: var(--midnight); font: 500 14px/1 var(--sans); letter-spacing: 0; text-transform: none; cursor: pointer; transition: background 150ms, border-color 150ms, color 150ms; }
.message-toolbar button:hover { background: var(--reply-blue); border-color: var(--reply-blue); color: var(--on-reply-blue); }
.message-template pre { margin: 0; white-space: pre-wrap; overflow-wrap: break-word; font: 400 17px/1.6 var(--sans); color: var(--midnight); }
.message-template [role=status] { margin-top: var(--space-2); font: 400 13px/1.5 var(--sans); color: var(--ink-muted); }
.message-template [role=status]:empty { display: none; }
.reading .post-end { margin-top: var(--space-7); }
.gr-linkcard-meta { font: 400 13px/1.4 var(--mono); color: var(--ink-muted); }
@media (max-width: 640px) { .toc { padding: var(--space-5); } .message-template { padding: var(--space-4); } }

/* Closing call to action: the one midnight band */
.trial { margin-top: var(--space-8); padding: clamp(28px, 5vw, 48px); background: var(--midnight); color: #fff; border-radius: var(--radius-2xl); box-shadow: var(--elev-night); display: grid; gap: var(--space-5); justify-items: start; }
.reading .trial h2 { margin: 0; color: #fff; }
.reading .trial h2 em { color: var(--reply-blue-tint); }
.reading .trial p { margin-top: var(--space-3); font: 400 18px/1.6 var(--sans); color: var(--night-text); }
.trial .btn:focus-visible { outline-color: var(--sky); }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn span, .gr-linkcard, .gr-linkcard-arrow, .qa summary i, .qa summary i::after, .message-toolbar button { transition: none; }
}
