/* Pluria Labs / Pilcrow site. One stylesheet, no external requests.
   Palette comes from the Pilcrow banner: warm paper, deep teal, charcoal ink. */

:root {
  color-scheme: light dark;
  --paper: #f6f1e7;
  --paper-2: #efe8d9;
  --card: #fbf8f1;
  --ink: #1f2a2d;
  --ink-soft: #4d5b5e;
  --ink-faint: #768487;
  --teal: #356b67;
  --teal-deep: #24504d;
  --teal-ink: #ffffff;
  --sage: #d8e3dd;
  --rule: #ddd4c3;
  --code-bg: #f1ebdd;
  --shadow: 0 1px 2px rgba(31, 42, 45, .06), 0 12px 32px -8px rgba(31, 42, 45, .18);
  --shadow-lg: 0 2px 4px rgba(31, 42, 45, .08), 0 40px 80px -24px rgba(31, 42, 45, .38);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 72rem;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121819;
    --paper-2: #172021;
    --card: #1a2425;
    --ink: #ece6d8;
    --ink-soft: #b2bcba;
    --ink-faint: #85918f;
    --teal: #7fb7af;
    --teal-deep: #a8d3cc;
    --teal-ink: #0f1a1a;
    --sage: #1f302f;
    --rule: #2b3738;
    --code-bg: #0e1415;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -8px rgba(0, 0, 0, .55);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .5), 0 40px 80px -24px rgba(0, 0, 0, .8);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font: 1.0625rem/1.65 var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--teal); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-deep); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--sage); color: var(--ink); }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2rem, 46rem); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: var(--paper); padding: .5rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { left: .5rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.012em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.3rem; letter-spacing: -.005em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.eyebrow { font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin: 0 0 1.1rem; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: var(--ink-soft); line-height: 1.55; max-width: 40rem; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 82%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.1rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink); font: 600 1.45rem/1 var(--serif); letter-spacing: -.01em; }
.brand .mark { color: var(--teal); width: 2rem; height: 2.4rem; object-fit: contain; flex: none; }
.brand small { font: 500 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-left: .5rem; }
.nav { display: flex; align-items: center; gap: 1.5rem; font-size: .95rem; }
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--teal-ink); }

.btn { display: inline-flex; align-items: center; gap: .5rem; font: 600 .98rem/1 var(--sans); padding: .85rem 1.35rem; border-radius: 999px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.btn-primary { background: var(--teal); color: var(--teal-ink); box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--teal) 70%, transparent); }
.btn-primary:hover { background: var(--teal-deep); color: var(--teal-ink); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); border-color: var(--rule); background: transparent; }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-deep); }
.btn-soon { background: transparent; color: var(--ink-soft); border: 1.5px dashed var(--ink-faint); cursor: default; }
.btn-soon:hover { transform: none; color: var(--ink-soft); }
.btn-sm { padding: .55rem 1rem; font-size: .88rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.8rem; }
.fineprint { font-size: .85rem; color: var(--ink-faint); margin-top: 1rem; }

.nav a { white-space: nowrap; }
@media (max-width: 760px) {
  .nav { gap: 1.1rem; }
  .nav a:not(.btn) { display: none; }
  .nav a.keep { display: inline; }
  .brand small { display: none; }
}
@media (max-width: 520px) { .nav a.btn { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(3rem, 8vw, 6rem) 0 0; overflow: hidden; background:
  radial-gradient(60rem 28rem at 50% 0%, color-mix(in srgb, var(--sage) 75%, transparent), transparent 70%),
  var(--paper); }
.hero h1 { max-width: 15ch; margin-inline: auto; }
.hero h1 em { font-style: italic; color: var(--teal); }
.hero .lede { margin-inline: auto; }
.pillars-line { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; justify-content: center; font: italic 1.15rem/1.4 var(--serif); color: var(--ink-soft); margin: 0 0 1.4rem; }
.pillars-line b { font-weight: 600; color: var(--teal); font-style: normal; }

.stage { position: relative; margin: clamp(2.5rem, 6vw, 4.5rem) auto 0; width: min(100%, 64rem); padding-bottom: 4%; }
.stage .mac { width: 84%; margin-left: 0; filter: drop-shadow(0 30px 40px rgba(31, 42, 45, .28)) drop-shadow(0 2px 3px rgba(31, 42, 45, .2)); }
.stage .ipad { position: absolute; right: 0; bottom: 0; width: 30%; }
.stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(to bottom, transparent, var(--paper)); pointer-events: none; }
.hero .stage::after { display: none; }

.device { background: #101214; padding: 2.1%; border-radius: clamp(14px, 3.2vw, 34px); box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.device img { border-radius: clamp(8px, 2vw, 22px); width: 100%; height: auto; }
.shot { display: block; }
.shot img { width: 100%; height: auto; }

@media (max-width: 700px) {
  .stage .mac { width: 100%; }
  .stage .ipad { position: relative; width: 56%; margin: -18% auto 0; right: auto; }
}

/* iPad and iPhone together (Polylogue) */
.stage.handheld { width: min(100%, 48rem); padding-bottom: 0; display: flex; align-items: flex-end; justify-content: center; }
.stage.handheld .ipad-main { width: 74%; }
.stage.handheld .phone { width: 30%; margin-left: -8%; position: relative; z-index: 1; padding: 1.4%; }
.stage.handheld .phone img { border-radius: clamp(10px, 3vw, 30px); }
.stage.handheld { margin-bottom: 3.5rem; }

/* ---------- trust strip ---------- */
.strip { border-block: 1px solid var(--rule); background: var(--card); }
.strip ul { list-style: none; margin: 0; padding: 1.1rem 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2.2rem; font-size: .95rem; color: var(--ink-soft); }
.strip li::before { content: "✓"; color: var(--teal); font-weight: 700; margin-right: .5rem; }

/* ---------- sections ---------- */
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.alt { background: var(--paper-2); }
.section-head { max-width: 42rem; margin: 0 auto clamp(2rem, 5vw, 3.5rem); text-align: center; }
.section-head .lede { margin-inline: auto; }

.pillars { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.pillar { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.pillar .glyph { font: 600 2.6rem/1 var(--serif); color: var(--teal); margin-bottom: .6rem; }
.pillar h3 { margin-bottom: .4rem; }
.pillar p { color: var(--ink-soft); margin: 0; }

.row { display: grid; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .row { grid-template-columns: 1fr 1fr; }
  .row.flip > :first-child { order: 2; }
  .row.wide-visual { grid-template-columns: 5fr 7fr; }
}
.row + .row { margin-top: clamp(3.5rem, 8vw, 6.5rem); }
.checks { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .6rem; }
.checks li { position: relative; padding-left: 1.7rem; color: var(--ink-soft); }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.checks b { color: var(--ink); font-weight: 600; }
.visual { position: relative; }
.visual .device { max-width: 26rem; margin-inline: auto; }
.visual.pair { display: flex; gap: 1rem; justify-content: center; align-items: flex-end; }
.visual.pair .device { width: 48%; }
.visual .caption { text-align: center; font-size: .85rem; color: var(--ink-faint); margin-top: 1rem; }
.visual .backdrop { position: absolute; inset: 8% 4%; background: var(--sage); border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%; filter: blur(2px); z-index: -1; opacity: .8; }
.visual { z-index: 0; }

/* syntax cards */
.syntaxes { display: grid; gap: 1rem; grid-template-columns: 1fr; max-width: 52rem; margin-inline: auto; }
@media (min-width: 640px) { .syntaxes { grid-template-columns: 1fr 1fr; } }
.syntax { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.syntax header { display: flex; justify-content: space-between; align-items: center; padding: .7rem 1rem; border-bottom: 1px solid var(--rule); font: 600 .82rem/1 var(--sans); letter-spacing: .04em; color: var(--ink-soft); background: var(--paper-2); }
.syntax header span:last-child { font-family: var(--mono); font-weight: 500; color: var(--ink-faint); }
.syntax pre { margin: 0; padding: 1.1rem 1rem 1.2rem; font: .92rem/1.7 var(--mono); color: var(--ink); overflow-x: auto; background: var(--code-bg); min-height: 8.2rem; }
.syntax .tk-h { color: var(--teal); font-weight: 700; }
.syntax .tk-b { color: #a8481f; }
@media (prefers-color-scheme: dark) { .syntax .tk-b { color: #e6a077; } }
.arrow-note { text-align: center; margin: 2rem 0 0; font: italic 1.2rem/1.4 var(--serif); color: var(--ink-soft); }
.arrow-note b { font-style: normal; color: var(--teal); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.chip { font: 500 .85rem/1 var(--sans); padding: .5rem .8rem; border-radius: 999px; background: var(--card); border: 1px solid var(--rule); color: var(--ink-soft); }

/* feature grid */
.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.feat { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.5rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.feat:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--teal) 40%, var(--rule)); }
.feat .glyph { font: 600 1.7rem/1 var(--serif); color: var(--teal); display: block; margin-bottom: .7rem; }
.feat h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.feat p { color: var(--ink-soft); margin: 0; font-size: .97rem; line-height: 1.55; }

/* formats */
.formats { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: 1.6rem; }
.format { font: 600 .9rem/1 var(--mono); padding: .7rem 1rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--card); color: var(--ink); }
.format small { display: block; font: 500 .72rem/1.2 var(--sans); color: var(--ink-faint); margin-top: .35rem; }

/* band with banner */
.band { padding: 0; background: #f4efe6; }
.band img { width: 100%; height: auto; max-height: 26rem; object-fit: cover; }

/* privacy block */
.privacy-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.pv { border-top: 2px solid var(--teal); padding-top: 1rem; }
.pv h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.pv p { color: var(--ink-soft); font-size: .96rem; margin: 0; }

/* FAQ */
.faq { max-width: 46rem; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--rule); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font: 600 1.15rem/1.35 var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font: 400 1.5rem/1 var(--sans); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: .8rem 0 0; color: var(--ink-soft); }

/* closing CTA */
.closing { text-align: center; background:
  radial-gradient(40rem 20rem at 50% 100%, color-mix(in srgb, var(--sage) 80%, transparent), transparent 70%), var(--paper); }
.closing h2 { max-width: 18ch; margin-inline: auto; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); background: var(--paper-2); padding: 3rem 0 2.5rem; font-size: .95rem; color: var(--ink-soft); }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr repeat(3, 1fr); }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
.site-footer h4 { margin: 0 0 .7rem; font: 600 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--teal-deep); text-decoration: underline; }
.legal { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); font-size: .85rem; color: var(--ink-faint); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* ---------- prose pages (support, privacy) ---------- */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1.5rem; background: radial-gradient(50rem 18rem at 50% 0%, color-mix(in srgb, var(--sage) 70%, transparent), transparent 70%); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: .3rem; }
.prose { padding-bottom: 5rem; }
.prose h2 { font-size: 1.7rem; margin: 2.6rem 0 .6rem; }
.prose h3 { font-size: 1.25rem; margin: 1.9rem 0 .4rem; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: .55rem; }
.prose li::marker { color: var(--teal); }
.prose blockquote { margin: 1.2rem 0; padding: .8rem 1.1rem; border-left: 3px solid var(--teal); background: var(--card); border-radius: 0 10px 10px 0; color: var(--ink-soft); }
.prose blockquote p:last-child { margin: 0; }
.prose code { font: .9em var(--mono); background: var(--code-bg); padding: .12em .4em; border-radius: 5px; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
.langs { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .92rem; padding: 1rem 1.1rem; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; margin-bottom: 2rem; }
.langs a[aria-current] { font-weight: 700; color: var(--ink); text-decoration: none; }
.cards2 { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin: 1.6rem 0 2rem; }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; font-size: 1.2rem; }
.card p { margin: 0 0 1rem; color: var(--ink-soft); }
.card .btn { margin-top: .2rem; }
[dir="rtl"] .prose ul { padding-left: 0; padding-right: 1.3rem; }
[dir="rtl"] .prose blockquote { border-left: 0; border-right: 3px solid var(--teal); border-radius: 10px 0 0 10px; }

/* home */
.home-hero { padding: clamp(4rem, 10vw, 8rem) 0 clamp(2rem, 5vw, 4rem); text-align: center; background: radial-gradient(60rem 26rem at 50% 0%, color-mix(in srgb, var(--sage) 75%, transparent), transparent 70%); }
.product-card { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; background: var(--card); border: 1px solid var(--rule); border-radius: 22px; padding: clamp(1.5rem, 4vw, 2.8rem); box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.product-card:hover { border-color: var(--teal); color: inherit; }
@media (min-width: 800px) { .product-card { grid-template-columns: 7rem 1fr auto; } }
.product-card img { width: 6.5rem; height: 6.5rem; border-radius: 22%; box-shadow: var(--shadow); }
.product-card h2 { margin: 0 0 .3rem; font-size: 2rem; }
.product-card p { margin: 0; color: var(--ink-soft); }

/* reveal on scroll (JS adds .js; content is visible without it) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media print { .site-header, .site-footer, .strip, .closing { display: none; } body { background: #fff; color: #000; } }

/* ---------- User Guide ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.g-head .lede { max-width: 42rem; }
.g-search { position: relative; margin: 1.4rem 0 0; max-width: 34rem; }
.g-search input { width: 100%; font: 1rem/1.2 var(--sans); padding: .85rem 1rem .85rem 2.6rem; color: var(--ink); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23768487' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat .85rem center; border: 1.5px solid var(--rule); border-radius: 999px; -webkit-appearance: none; appearance: none; }
.g-search input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 22%, transparent); }
.g-results { margin-top: .6rem; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow); max-height: 70vh; overflow: auto; text-align: left; }
.g-results ul { list-style: none; margin: 0; padding: .3rem; }
.g-results a { display: block; padding: .7rem .8rem; border-radius: 10px; text-decoration: none; color: var(--ink); }
.g-results a:hover, .g-results a:focus-visible { background: var(--sage); outline: none; }
.g-results .rt { display: block; font: 600 .95rem/1.3 var(--sans); }
.g-results .rs { display: block; margin-top: .2rem; font-size: .85rem; line-height: 1.45; color: var(--ink-soft); }
.g-results mark { background: color-mix(in srgb, var(--teal) 30%, transparent); color: inherit; border-radius: 3px; padding: 0 .1em; }
.g-none { margin: 0; padding: 1rem; color: var(--ink-soft); font-size: .95rem; }

/* guide home */
.g-home-body { padding-top: 2rem; padding-bottom: 5rem; }
.g-cards { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); }
.g-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.3rem 1.4rem 1.2rem; }
.g-card h3 { font-size: 1.15rem; margin: 0 0 .7rem; display: flex; gap: .7rem; align-items: baseline; }
.roman { font: 600 .78rem/1 var(--sans); letter-spacing: .06em; color: var(--teal); min-width: 2.2rem; flex: none; }
.g-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.g-card a { display: flex; gap: .6rem; text-decoration: none; color: var(--ink-soft); font-size: .95rem; line-height: 1.4; }
.g-card a:hover { color: var(--teal-deep); }
.num { flex: none; min-width: 1.5rem; font: 600 .78rem/1.7 var(--mono); color: var(--ink-faint); }

/* chapter layout */
.guide { display: grid; gap: 2.5rem; grid-template-columns: 1fr; padding-block: 2rem 4rem; align-items: start; }
@media (min-width: 900px) { .guide { grid-template-columns: 17.5rem minmax(0, 1fr); } }
@media (min-width: 1240px) { .guide { grid-template-columns: 17.5rem minmax(0, 1fr) 13.5rem; } }
.g-side { min-width: 0; }
@media (min-width: 900px) { .g-side { position: sticky; top: 5.2rem; max-height: calc(100vh - 6.2rem); overflow-y: auto; padding-right: .5rem; scrollbar-width: thin; } .g-nav > summary { display: none; } .g-search { margin-top: 0; } }
.g-nav > summary { cursor: pointer; font: 600 .95rem/1 var(--sans); padding: .9rem 0; list-style: none; }
.g-nav > summary::-webkit-details-marker { display: none; }
.g-nav > summary::after { content: " ▾"; color: var(--teal); }
.g-nav nav { margin-top: 1.1rem; font-size: .92rem; }
.g-home { display: inline-block; margin-bottom: .6rem; font-weight: 600; text-decoration: none; color: var(--ink); }
.g-part { border-top: 1px solid var(--rule); }
.g-part summary { cursor: pointer; list-style: none; display: flex; gap: .6rem; align-items: baseline; padding: .6rem 0; font: 600 .88rem/1.35 var(--sans); color: var(--ink); }
.g-part summary::-webkit-details-marker { display: none; }
.g-part summary:hover { color: var(--teal-deep); }
.g-part[open] > summary { color: var(--teal-deep); }
.g-part ul { list-style: none; margin: 0 0 .6rem; padding: 0; }
.g-part li a { display: flex; gap: .5rem; padding: .3rem .5rem .3rem 0; text-decoration: none; color: var(--ink-soft); line-height: 1.4; border-radius: 6px; }
.g-part li a:hover { color: var(--ink); }
.g-part li a[aria-current="page"] { color: var(--teal-deep); font-weight: 600; }
.g-searching .g-nav { display: none; }
@media (min-width: 900px) { .g-searching .g-side .g-results { max-height: calc(100vh - 11rem); } }

.g-main { min-width: 0; max-width: 46rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .85rem; color: var(--ink-faint); margin-bottom: 1.4rem; }
.crumbs a { color: var(--ink-faint); text-decoration: none; }
.crumbs a:hover { color: var(--teal-deep); }
.g-main h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); margin-bottom: 1.2rem; }
.g-main h2 { font-size: 1.55rem; margin: 2.6rem 0 .7rem; position: relative; }
.g-main h3 { font-size: 1.2rem; margin: 1.8rem 0 .5rem; position: relative; }
.g-main p, .g-main li { line-height: 1.7; }
.g-main ul, .g-main ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.g-main li { margin-bottom: .45rem; }
.g-main li::marker { color: var(--teal); font-weight: 600; }
.anchor { position: absolute; left: -1.2rem; padding-right: .4rem; color: var(--ink-faint); text-decoration: none; font: 400 1rem/1.4 var(--sans); opacity: 0; transition: opacity .15s; }
h2:hover > .anchor, h3:hover > .anchor, .anchor:focus { opacity: 1; }
@media (max-width: 899px) { .anchor { display: none; } }
.g-main code, .prose code { font: .88em var(--mono); background: var(--code-bg); padding: .12em .4em; border-radius: 5px; }
.g-main pre { background: var(--code-bg); border: 1px solid var(--rule); border-radius: 12px; padding: 1rem 1.1rem; overflow-x: auto; font: .9rem/1.65 var(--mono); }
.g-main pre code { background: none; padding: 0; font: inherit; }
kbd { font: 600 .82em/1 var(--sans); letter-spacing: .02em; display: inline-block; padding: .22em .5em .26em; color: var(--ink); background: var(--card); border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 6px; white-space: nowrap; }
strong.menu { font-weight: 600; color: var(--teal-deep); background: color-mix(in srgb, var(--sage) 80%, transparent); padding: .04em .4em; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.table-wrap { overflow-x: auto; margin: 1.2rem 0 1.6rem; border: 1px solid var(--rule); border-radius: 12px; background: var(--card); }
.g-main table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.g-main th, .g-main td { text-align: left; padding: .6rem .9rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.g-main th { font: 600 .8rem/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); background: var(--paper-2); }
.g-main tr:last-child td { border-bottom: 0; }

.g-pager { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin-top: 3.5rem; }
.g-pager a { display: block; padding: 1rem 1.2rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.g-pager a:hover { border-color: var(--teal); transform: translateY(-1px); }
.g-pager .next { text-align: right; grid-column: 2; }
.g-pager .dir { display: block; font: 600 .75rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: .45rem; }
.g-pager .ttl { font: 600 1.05rem/1.3 var(--serif); }
@media (max-width: 560px) { .g-pager { grid-template-columns: 1fr; } .g-pager .next { grid-column: 1; } }

.g-toc { display: none; }
@media (min-width: 1240px) {
  .g-toc { display: block; position: sticky; top: 5.2rem; font-size: .85rem; }
  .g-toc h2 { font: 600 .75rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 .8rem; }
  .g-toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
  .g-toc a { display: block; padding: .3rem 0 .3rem .9rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-soft); text-decoration: none; line-height: 1.4; }
  .g-toc a:hover { color: var(--ink); }
  .g-toc a.on { color: var(--teal-deep); border-left-color: var(--teal); font-weight: 600; }
}
@media print { .g-side, .g-toc, .g-pager, .crumbs, .anchor { display: none !important; } .guide { display: block; } }

/* ---------- comparison page ---------- */
.compare-page { padding-bottom: 5rem; }
.compare-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); margin: .5rem 0 3rem; }
.compare-grid .card h2 { font-size: 1.35rem; margin: 0 0 .8rem; }
.checks.gaps li::before { content: "–"; color: var(--ink-faint); }
.compare-title { font-size: 1.7rem; margin: 0 0 .6rem; }
.compare-key { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; font-size: .92rem; color: var(--ink-soft); margin: 0 0 1rem; }
.compare-key .mk { display: inline-block; width: 1.2rem; font-weight: 700; color: var(--teal); }
.compare-key .mk.q, td.u .mk { color: #a8741a; }
@media (prefers-color-scheme: dark) { .compare-key .mk.q, td.u .mk { color: #e0b05f; } }

.compare-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.compare-wrap:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
table.compare { width: 100%; min-width: 46rem; border-collapse: separate; border-spacing: 0; font-size: .95rem; }
table.compare th, table.compare td { padding: .55rem .8rem; border-bottom: 1px solid var(--rule); text-align: center; vertical-align: middle; }
table.compare thead th { position: sticky; top: 0; z-index: 2; background: var(--paper-2); font: 600 .85rem/1.2 var(--sans); letter-spacing: .02em; color: var(--ink-soft); padding-block: .8rem; }
table.compare thead th.us { color: var(--teal-deep); background: color-mix(in srgb, var(--sage) 85%, var(--paper-2)); }
table.compare th.feat-h, table.compare tbody th[scope="row"] { text-align: left; position: sticky; left: 0; z-index: 1; background: var(--card); font-weight: 500; color: var(--ink); min-width: 13rem; box-shadow: 1px 0 0 var(--rule); }
table.compare thead th.feat-h { z-index: 3; background: var(--paper-2); }
table.compare tr.grp th { text-align: left; position: static; background: var(--paper-2); font: 600 .75rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--teal-deep); padding: .7rem .8rem; box-shadow: none; }
table.compare td:nth-child(2) { background: color-mix(in srgb, var(--sage) 38%, var(--card)); }
table.compare tbody tr:hover td, table.compare tbody tr:hover th[scope="row"] { background-color: color-mix(in srgb, var(--sage) 55%, var(--card)); }
table.compare tr:last-child td, table.compare tr:last-child th { border-bottom: 0; }
td .mk { font-weight: 700; font-size: 1.05rem; }
td.y .mk { color: var(--teal); }
td.n .mk { color: var(--ink-faint); font-weight: 400; }
td small { display: block; font: 500 .7rem/1.2 var(--sans); color: var(--ink-faint); margin-top: .15rem; }
.compare-notes { max-width: 46rem; margin: 2rem 0 0; }
.compare-notes p { color: var(--ink-soft); }
.compare-notes .fineprint { margin-top: 1.2rem; }
@media print { .compare-wrap { overflow: visible; box-shadow: none; } table.compare thead th, table.compare th[scope="row"] { position: static; } }
@media (max-width: 640px) {
  table.compare { min-width: 33rem; font-size: .85rem; }
  table.compare th, table.compare td { padding: .5rem .4rem; }
  table.compare th.feat-h, table.compare tbody th[scope="row"] { min-width: 8.5rem; max-width: 8.5rem; }
  table.compare thead th { font-size: .75rem; }
}

/* Pricing, guide starting points and theme gallery */
.cards3 { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 2rem 0 .4rem; }
.price { font: 600 2rem/1 var(--serif); color: var(--ink); }
.card p.price { color: var(--ink); }
.price small { font: 500 .9rem var(--sans); color: var(--ink-faint); }
.story-teaser { max-width: 36rem; margin: 2rem auto 0; color: var(--ink-soft); }
.g-start { margin-bottom: 2rem; }
.g-start h2 { font-size: 1.1rem; margin: 0 0 .6rem; }
.g-start ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.8rem; font-size: .92rem; }
.g-start b { display: block; font-weight: 600; }
.g-start a { margin-inline-end: .6rem; }
.theme-page { padding-bottom: 4rem; }
.theme-page .card h2 { font-size: 1.3rem; margin: 1rem 0 .4rem; }
.swatches { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.swatch { display: flex; flex-direction: column; gap: .3rem; padding: .8rem; border-radius: 10px; border: 1px solid var(--rule); font: .72rem/1.5 var(--mono, ui-monospace, monospace); }

.roadmap-page { padding-bottom: 4rem; }
.roadmap-page h2 { margin-top: 2.5rem; }

/* Narrow desktop windows: the top menu wraps instead of running off the page */
@media (min-width: 761px) and (max-width: 1100px) {
  .site-header .nav { flex-wrap: wrap; justify-content: flex-end; min-width: 0; gap: .5rem 1.1rem; padding-block: .6rem; }
}
