/* ============================================================
   Line by Air — marketing site
   "Paper and instrument" (brand brief §6–7): Bone paper is the page,
   Slate frames the product, Sky marks the sign-up. Sienna only on calls
   to action and the highlighted lot. Inter + JetBrains Mono, 400/500.
   ============================================================ */

:root {
  --paper: #F4F0E8;          /* Bone — page */
  --paper-2: #ECE7DD;        /* alternate section */
  --card: #FAF8F3;
  --ink: #1F2421;            /* Slate — text, dark bands */
  --ink-2: #5F5A50;          /* secondary text */
  --ink-3: #8A8478;          /* Stone — captions, hints */
  --rule: rgba(31, 36, 33, 0.14);
  --rule-strong: rgba(31, 36, 33, 0.3);
  --sky: #C5D0D6;
  --sienna: #C26D4F;
  --sienna-dk: #AD5D41;
  --bone: #F4F0E8;           /* text on dark */

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: var(--font-sans);
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius: 10px;
  --radius-lg: 16px;
  --container: 1240px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.narrow { max-width: 820px; }

/* ── Typography ─────────────────────────────────────────────── */
.display {
  font-weight: 500;
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
}
.display-sm {
  font-weight: 500;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 18px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.lede { font-size: clamp(1.02rem, 1.4vw, 1.12rem); color: var(--ink-2); margin: 0 0 26px; max-width: 56ch; }
.lede strong { color: var(--ink); font-weight: 500; }
.body-muted { color: var(--ink-2); margin: 0; }
.mono { font-family: var(--font-mono); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-size: 15px; font-weight: 500;
  padding: 12px 22px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.btn-primary { background: var(--sienna); color: var(--bone); }
.btn-primary:hover { background: var(--sienna-dk); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; margin-top: 8px; }

/* ── Header / nav ───────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 240, 232, 0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand-mark { color: var(--sienna); }
.brand-word { font-weight: 500; letter-spacing: 0.01em; font-size: 17px; }
.brand-accent { color: inherit; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14.5px; color: var(--ink-2); transition: color 0.15s var(--ease); }
.nav-links a:hover, .nav-links a.is-current { color: var(--ink); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--bone); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform 0.2s var(--ease), opacity 0.2s var(--ease); }

/* ── Home: product demo band (Slate) + headline ─────────────── */
.instrument { background: var(--ink); color: var(--bone); padding: clamp(36px, 5vw, 56px) 0 clamp(48px, 6vw, 72px); }
.frame { position: relative; max-width: 1180px; margin: 0 auto; }
.tick { position: absolute; width: 18px; height: 18px; pointer-events: none; border: 0 solid var(--bone); opacity: 0.3; }
.tick.tl { left: -14px; top: -14px; border-left-width: 1px; border-top-width: 1px; }
.tick.tr { right: -14px; top: -14px; border-right-width: 1px; border-top-width: 1px; }
.caption { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 22px 2px 0; color: rgba(244, 240, 232, 0.62); }
.caption span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.instrument .cin .c-steps { margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(244, 240, 232, 0.12); justify-content: space-between; }

.hero { padding: clamp(64px, 9vw, 112px) 0 clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; align-items: end; }
.hero-grid .eyebrow { grid-column: 1 / -1; }
.hero-grid .display { grid-column: 1 / span 8; margin: 0; }
.hero-side { grid-column: 9 / span 4; padding-bottom: 6px; }
.hero-side .lede { margin: 0 0 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-line { font-size: 13px; color: var(--ink-3); margin: 16px 0 0; }

/* ── Bands / sections ───────────────────────────────────────── */
.band { padding: clamp(56px, 8vw, 96px) 0; background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band-text { font-weight: 500; font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.3; letter-spacing: -0.02em; margin: 0; color: var(--ink-2); }
.band-text strong { color: var(--ink); font-weight: 500; }

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 760px; margin: 0 0 56px; }
.section-head .display-sm { margin-bottom: 0; }
.section-sub { color: var(--ink-2); margin: 16px 0 0; }

/* ── Features ───────────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 24px; counter-reset: feat; }
.feature { border-top: 1px solid var(--ink); padding-top: 18px; counter-increment: feat; }
.feature::before { content: counter(feat, decimal-leading-zero); display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink-3); margin-bottom: 28px; }
.feature h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* ── Steps ──────────────────────────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding-top: 18px; border-top: 1px solid var(--rule-strong); }
.step-num { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 28px; letter-spacing: 0.08em; }
.step h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 8px; }
.step p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* ── Accuracy ───────────────────────────────────────────────── */
#accuracy .lede strong { color: var(--ink); }

/* ── Pricing ────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card { position: relative; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 30px 26px; display: flex; flex-direction: column; }
.price-card .btn-block { margin-top: auto; }
.price-card.featured { background: var(--ink); color: var(--bone); border-color: var(--ink); box-shadow: 0 30px 60px -30px rgba(31, 36, 33, 0.55); }
.price-card.featured .price-per, .price-card.featured li { color: rgba(244, 240, 232, 0.72); }
.price-card.featured .price-tag { color: rgba(244, 240, 232, 0.5); }
.price-card.featured .btn-primary { margin-top: auto; }
.price-badge { position: absolute; top: -11px; left: 26px; margin: 0; background: var(--sienna); color: var(--bone); font-size: 11px; padding: 3px 10px; border-radius: 20px; letter-spacing: 0.06em; }
.price-card h3 { font-size: 18px; font-weight: 500; margin: 0 0 10px; }
.price { margin: 0 0 4px; }
.price-amt { font-size: 2.6rem; font-weight: 500; letter-spacing: -0.03em; }
.price-per { color: var(--ink-2); font-size: 15px; margin-left: 2px; }
.price-tag { font-size: 12px; color: var(--ink-3); margin: 0 0 20px; letter-spacing: 0.04em; }
.price-hint { font-size: 0.85rem; color: var(--ink-3); margin: auto 0 12px; text-align: center; }
.price-hint a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.price-hint + .btn-block { margin-top: 0; }
.price-card ul { list-style: none; margin: 0 0 26px; padding: 0; }
.price-card li { position: relative; padding-left: 20px; margin: 10px 0; color: var(--ink-2); font-size: 14.5px; }
.price-card li::before { content: ""; position: absolute; left: 1px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.price-card.featured li::before { background: var(--sienna); }
.billing-cycle { display: flex; width: max-content; margin: 0 auto 28px; padding: 4px; gap: 4px; background: var(--card); border: 1px solid var(--rule); border-radius: 999px; }
.billing-cycle[hidden] { display: none; }
.billing-cycle button { font: 500 14px var(--font-sans); color: var(--ink-2); background: none; border: 0; border-radius: 999px; padding: 8px 18px; cursor: pointer; transition: background 0.15s var(--ease), color 0.15s var(--ease); }
.billing-cycle button span { font-size: 11px; letter-spacing: 0.04em; color: var(--sienna); margin-left: 4px; }
.billing-cycle button[aria-pressed="true"] { background: var(--ink); color: var(--bone); }
.billing-cycle button[aria-pressed="true"] span { color: #E3A88F; }
.pricing-note { text-align: center; color: var(--ink-3); font-size: 12px; margin: 28px 0 0; }

/* ── CTA / form (Sky) ───────────────────────────────────────── */
.cta-section { background: var(--sky); }
.cta-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 24px; align-items: end; }
.cta-grid .display { grid-column: 1 / span 6; margin: 0; }
.cta-grid .eyebrow { color: #4c5a62; }
.cta-side { grid-column: 8 / span 5; }
.cta-side .lede { color: #3e4a51; margin: 0 0 18px; }
.access-form { display: flex; gap: 8px; padding: 6px; background: var(--paper); border-radius: 12px;
  box-shadow: 0 1px 0 rgba(31, 36, 33, 0.06), 0 18px 40px -24px rgba(31, 36, 33, 0.45); }
.access-form input { flex: 1; min-width: 0; font: inherit; font-size: 15px; color: var(--ink); background: transparent; border: 0; padding: 12px; outline: none; }
.access-form input::placeholder { color: var(--ink-3); }
.access-form .btn { padding: 12px 20px; border-radius: 8px; }
.form-msg { margin: 14px 0 0; color: #2c6446; font-size: 14px; }
.form-msg.err { color: #A5432A; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Footer (Slate) ─────────────────────────────────────────── */
.site-footer { background: var(--ink); color: rgba(244, 240, 232, 0.62); padding: 64px 0 36px; }
.site-footer .brand-word { color: var(--bone); }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer-tag { color: rgba(244, 240, 232, 0.45); font-size: 11px; margin: 10px 0 0; letter-spacing: 0.16em; text-transform: uppercase; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { color: rgba(244, 240, 232, 0.65); font-size: 14px; transition: color 0.15s var(--ease); }
.footer-links a:hover { color: var(--bone); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(244, 240, 232, 0.12); }
.disclaimer { color: rgba(244, 240, 232, 0.55); font-size: 12.5px; margin: 0; max-width: 60ch; }
.copyright { color: rgba(244, 240, 232, 0.45); font-size: 11px; margin: 0; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.85rem; }
.footer-legal a { color: rgba(244, 240, 232, 0.65); }
.footer-legal a:hover { color: var(--bone); }

/* ── Reveal-on-scroll (no-JS safe: visible by default) ──────── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-grid .display, .hero-side, .cta-grid .display, .cta-side { grid-column: 1 / -1; }
  .hero-side { margin-top: 24px; padding: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .nav-links a.btn-primary { margin-top: 12px; border-bottom: 0; }
  .nav-toggle { display: flex; }
  .feature-grid, .steps { grid-template-columns: 1fr; gap: 32px; }
  .tick { display: none; }
  .instrument .cin .c-steps { justify-content: center; }
  .access-form { flex-direction: column; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── Learn page ─────────────────────────────────────────────── */
.page-head { padding: clamp(56px, 8vw, 96px) 0 clamp(8px, 2vw, 24px); }
.page-head .lede { margin-bottom: 0; }
.video-section { padding-top: clamp(32px, 5vw, 56px); }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.video-card {
  background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.video-card:hover { border-color: var(--rule-strong); box-shadow: 0 20px 40px -28px rgba(31, 36, 33, 0.45); }
.video-thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  padding: 0; border: 0; background: var(--ink); cursor: pointer;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; transition: opacity 0.2s var(--ease); }
.video-thumb:hover img { opacity: 1; }
.video-play {
  position: absolute; inset: 0; margin: auto; width: 58px; height: 58px;
  border-radius: 50%; background: rgba(31, 36, 33, 0.82);
  border: 1px solid rgba(244, 240, 232, 0.4);
  transition: transform 0.18s var(--ease), background 0.18s var(--ease);
}
.video-play::after {
  content: ""; position: absolute; left: 55%; top: 50%;
  transform: translate(-50%, -50%);
  border-left: 16px solid var(--bone); border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
.video-thumb:hover .video-play { transform: scale(1.06); background: rgba(31, 36, 33, 0.95); }
.video-thumb:focus-visible { outline: 2px solid var(--sienna); outline-offset: -2px; }
.video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.video-body { padding: 16px 18px 18px; }
.video-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 6px; }
.video-body h3 { font-size: 16.5px; font-weight: 500; margin: 0 0 6px; }
.video-body p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* Empty state — shown until the first video is added */
.video-ghosts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.video-ghost {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg);
  border: 1px dashed var(--rule-strong); background: var(--paper-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.ghost-play { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--rule-strong); position: relative; }
.ghost-play::after {
  content: ""; position: absolute; left: 55%; top: 50%;
  transform: translate(-50%, -50%);
  border-left: 13px solid var(--ink-3); border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
.ghost-caption { font-size: 11px; color: var(--ink-3); letter-spacing: 0.06em; }
.video-empty-note { text-align: center; color: var(--ink-2); margin: 28px auto 0; max-width: 52ch; }
.text-link { color: var(--ink); border-bottom: 1px solid var(--sienna); transition: color 0.15s var(--ease); }
.text-link:hover { color: var(--sienna-dk); }

/* Planned topics */
.topic-list { list-style: none; margin: 0; padding: 0; max-width: 720px; }
.topic-list li {
  display: flex; align-items: baseline; gap: 18px;
  padding: 14px 2px; border-bottom: 1px solid var(--rule);
  color: var(--ink); font-size: 15.5px;
}
.topic-list li:first-child { border-top: 1px solid var(--rule); }
.topic-num { color: var(--ink-3); font-size: 12px; letter-spacing: 0.08em; }

/* ── Long-form pages (guide, troubleshooting, legal, download) ─────── */
.doc { padding: clamp(16px, 3vw, 32px) 0 clamp(56px, 8vw, 96px); }
.doc-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 860px) { .doc-grid { grid-template-columns: minmax(0, 1fr); } .doc-toc { display: none; } }
.doc-toc { position: sticky; top: 92px; font-size: 0.9rem; }
.doc-toc p { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--rule); }
.doc-toc a { display: block; padding: 4px 12px; color: var(--ink-2); margin-left: -1px; border-left: 1px solid transparent; }
.doc-toc a:hover { color: var(--ink); border-left-color: var(--ink); }
.prose { max-width: 70ch; color: var(--ink-2); line-height: 1.7; }
.prose h2 { font-weight: 500; letter-spacing: -0.02em; color: var(--ink); font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin: 52px 0 12px; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--ink); font-size: 1.05rem; font-weight: 500; margin: 28px 0 8px; scroll-margin-top: 96px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 1.3em; display: grid; gap: 6px; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose a { color: var(--ink); border-bottom: 1px solid var(--sienna); }
.prose a:hover { color: var(--sienna-dk); }
.prose kbd { font-family: var(--font-mono); font-size: 0.82em; color: var(--ink); background: var(--card); border: 1px solid var(--rule-strong); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; white-space: nowrap; }
.prose .ui { color: var(--ink); font-weight: 500; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 0.94rem; }
.prose th, .prose td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.callout { background: var(--card); border: 1px solid var(--rule); border-left: 2px solid var(--sienna); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 18px; }
.callout p:last-child { margin-bottom: 0; }
.draft-banner { background: rgba(194, 109, 79, 0.1); border: 1px solid rgba(194, 109, 79, 0.4); color: var(--ink); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 28px; font-size: 0.92rem; }
.doc-updated { font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-3); margin: 0 0 24px; }
.faq details { border-bottom: 1px solid var(--rule); padding: 16px 0; }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; color: var(--ink); font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--ink-3); font-family: var(--font-mono); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); max-width: 70ch; }
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 0 0 24px; }
.download-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 22px; display: grid; gap: 10px; }
.download-card h3 { margin: 0; color: var(--ink); }
.download-card p { margin: 0; color: var(--ink-2); font-size: 0.92rem; }
.plan-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 16px; }
.plan-grid .download-card { align-content: start; }
.plan-grid .download-card p { margin-bottom: 6px; }
/* Buttons inside long-form pages keep their own colours. */
.prose a.btn-primary { color: var(--bone); border: 1px solid transparent; }
.prose a.btn-primary:hover { color: var(--bone); }
.prose a.btn-ghost { color: var(--ink); border: 1px solid var(--rule-strong); }
.prose a.btn-ghost:hover { color: var(--paper); background: var(--ink); border-color: var(--ink); }

/* "Purchasing opens soon" (checkout.js, while SALES_OPEN is false) */
.sales-soon { font-size: 12px; letter-spacing: 0.04em; color: var(--ink-3); margin: 14px 0 0; }
.sales-soon a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.soon-dialog { border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--card); color: var(--ink); padding: 28px 26px; max-width: min(420px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(31, 36, 33, 0.25); }
.soon-dialog::backdrop { background: rgba(31, 36, 33, 0.45); }
.soon-dialog h3 { margin: 0 0 10px; font-size: 1.25rem; font-weight: 500; }
.soon-dialog p { margin: 0 0 22px; color: var(--ink-2); }
.soon-actions { display: flex; gap: 10px; flex-wrap: wrap; }
