/* The public page: light, plain, and about the product. One accent, the
   product's own sans and a serif for the words that matter. No fonts,
   scripts or pictures from anywhere else. */
:root {
  --ink: #18181b; --ink2: #3f3f46; --muted: #6b6b74; --rule: #e4e4e7; --wash: #f6f6f7; --paper: #fff;
  --accent: #3d4ed8; --accent-ink: #2b37a8; --accent-wash: #eef0fd; --code: #141519; --code-ink: #e8e8ec;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Charter, 'Book Antiqua', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
img, video { display: block; max-width: 100%; height: auto; }
code { font: .9em var(--mono); }
h1, h2, h3 { margin: 0; }
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.skip { position: fixed; top: -80px; left: 16px; z-index: 20; padding: 12px 18px; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; }
.skip:focus { top: 12px; }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }

/* Buttons and links that lead somewhere. */
.button, .mast .sign-in { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; transition: background .15s, border-color .15s; }
.button:hover, .mast .sign-in:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.button.secondary { background: var(--paper); color: var(--ink); border-color: var(--rule); }
.button.secondary:hover { background: var(--wash); color: var(--ink); border-color: #d4d4d8; }
.text-link { margin-left: 12px; font-weight: 500; }

/* The bar along the top. */
.mast { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rule); }
.mast-row { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 600; font-size: 17px; text-decoration: none; letter-spacing: -.01em; }
.logo .domain { color: var(--muted); font-weight: 500; }
.mast nav { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 14.5px; }
.mast nav a:not(.sign-in) { color: var(--ink2); text-decoration: none; }
.mast nav a:not(.sign-in):hover { color: var(--ink); }
.mast .sign-in { min-height: 36px; padding: 0 14px; font-size: 14px; white-space: nowrap; }

/* The first screen: the question, what readthis.md is, and the way in. */
.hero { padding: 64px 0 24px; text-align: center; }
.hero h1 { font: 500 clamp(34px, 4.8vw, 54px)/1.08 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
.lede { max-width: 620px; margin: 20px auto 0; font-size: clamp(17px, 1.7vw, 18px); line-height: 1.55; color: var(--ink2); text-wrap: pretty; }
.actions { margin: 30px 0 0; }
.actions .button { min-height: 44px; margin: 0 4px 8px; padding: 0 20px; font-size: 15px; }
.install { min-width: 0; text-align: left; }
.tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--wash); border: 1px solid var(--rule); border-radius: 11px; }
.tabs button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 8px; background: none; font: 500 14px var(--sans); color: var(--muted); cursor: pointer; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(24, 24, 27, .08), 0 0 0 1px rgba(24, 24, 27, .04); }
.install .panel { position: relative; margin-top: 10px; background: var(--code); border-radius: 12px; box-shadow: 0 12px 30px -16px rgba(24, 24, 27, .45); }
.install pre { margin: 0; padding: 18px 96px 18px 20px; overflow-x: auto; font: 14px/1.6 var(--mono); color: var(--code-ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.install pre::before { content: '$ '; color: #7d7f8c; }
.install .panel:last-child pre::before { content: ''; }
.install .copy { position: absolute; top: 12px; right: 12px; min-height: 32px; padding: 0 12px; border: 1px solid #3a3b44; border-radius: 8px; background: #22232a; color: var(--code-ink); font: 500 13px var(--sans); cursor: pointer; }
.install .copy:hover { background: #2c2d36; }
.install .copy.done { color: #9fe3b3; border-color: #2f5a3d; }
.after { max-width: 640px; margin: 14px auto 0; font-size: 14.5px; color: var(--muted); text-wrap: balance; }
.alpha { max-width: 640px; margin: 18px auto 0; padding: 10px 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--wash); font-size: 14px; color: var(--ink2); }

/* Recordings of the real app. */
.film { position: relative; margin: 0; overflow: hidden; background: var(--wash); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 1px 2px rgba(24, 24, 27, .04), 0 28px 60px -28px rgba(24, 24, 27, .3); }
.film video, .film img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hero-film { margin-top: 44px; }
.film .play { position: absolute; right: 12px; bottom: 12px; min-height: 32px; padding: 0 12px; border: 1px solid rgba(24, 24, 27, .12); border-radius: 999px; background: rgba(255, 255, 255, .92); font: 500 13px var(--sans); color: var(--ink2); cursor: pointer; opacity: 0; transition: opacity .2s; }
.film:hover .play, .film .play:focus-visible, .film .play[aria-pressed="false"] { opacity: 1; }

/* Section headings. */
.scene h2, .how > h2, .plain h2, .pricing h2, .faq h2, .last h2 { font: 500 clamp(25px, 2.8vw, 31px)/1.12 var(--serif); letter-spacing: -.015em; text-wrap: balance; }

/* The argument: short sections of plain text. */
.scene { max-width: 680px; padding: 72px 0 0; }
.scene > p { margin: 14px 0 0; font-size: 17px; color: var(--ink2); }

/* The loop: who does what, in order. */
.loop { margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.loop li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.loop .who { font-size: 14px; color: var(--muted); }
.loop p { margin: 0; font-size: 15.5px; color: var(--ink); }

/* Why one place: each part, and what it makes possible. */
.joined { margin: 24px 0 0; border-top: 1px solid var(--rule); }
.joined .row { display: grid; grid-template-columns: 2fr 3fr; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; }
.joined b { font-weight: 600; }

/* A session, as text. */
.term { margin: 0; overflow: hidden; background: var(--code); border-radius: 14px; }
.term figcaption { padding: 12px 20px 0; font-size: 13px; color: #a9aebf; }
.term pre { margin: 0; padding: 12px 20px 20px; color: var(--code-ink); font: 14px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.term code { font: inherit; }
.term .prompt, .term .tool { color: #9aa5f5; }

/* How: each step beside its recording. */
.how { display: flex; flex-direction: column; gap: 72px; padding: 72px 0 0; }
.how > h2 { margin-bottom: -32px; }
.step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 56px; align-items: center; }
.step:nth-child(even of .step) { grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); }
.step:nth-child(even of .step) .copy { order: 2; }
.step h3 { font: 500 clamp(21px, 2.2vw, 25px)/1.2 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.step p { margin: 14px 0 0; color: var(--ink2); }
.step .eyebrow { margin-bottom: 8px; }

/* What it isn't. */
.plain { padding: 72px 0 0; }
.plain .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 28px; }
.plain .cols p { margin: 0; color: var(--ink2); }
.plain .cols b { display: block; margin-bottom: 4px; color: var(--ink); }

/* Pricing. */
.pricing { padding: 104px 0 24px; text-align: center; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; text-align: left; }
.plans article { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--rule); border-radius: 14px; }
.plans article.main { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 24px 50px -30px rgba(61, 78, 216, .45); }
.plans h3 { font-size: 15px; font-weight: 600; color: var(--muted); }
.plans .amount { margin: 6px 0 0; font: 500 30px/1.2 var(--serif); color: var(--ink); }
.plans p { margin: 12px 0 20px; color: var(--ink2); font-size: 15px; flex: 1; }
.plans .button { align-self: flex-start; }
.pricing .note { margin: 22px 0 0; color: var(--muted); font-size: 14.5px; }

/* Questions. */
.faq { max-width: 680px; padding: 72px 0 0; }
.faq h2 { margin-bottom: 20px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 6px 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 20px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 18px; color: var(--ink2); }

/* The last word, and the foot. */
.last { padding: 80px 0; text-align: center; }
.last h2 { margin-bottom: 20px; }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 28px 0 44px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
.foot .made { flex: 1; }
.foot nav { display: flex; gap: 18px; }
.foot nav a { color: var(--muted); }

/* Signing in, in place. */

@media (max-width: 900px) {
  .mast nav a[href="#how"], .mast nav a[href="#pricing"] { display: none; }
  .plain .cols, .plans, .joined .row { grid-template-columns: 1fr; }
  .joined .row { gap: 2px; }
  .loop li { grid-template-columns: 1fr; gap: 2px; }
    .joined .row { grid-template-columns: 1fr; gap: 2px; }
  .joined .row.head { display: none; }
    .loop li,     .step, .step:nth-child(even of .step) { grid-template-columns: 1fr; gap: 24px; }
  .step:nth-child(even of .step) .copy { order: 0; }
    .how { gap: 72px; padding-top: 80px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .mast-row { gap: 12px; }
  .mast nav { gap: 14px; }
  .mast nav a[href="/docs"], .mast nav a[href^="https://github.com"] { display: none; }
  .hero { padding-top: 44px; }
  .tabs { display: flex; overflow-x: auto; max-width: 100%; }
  .tabs button { flex: none; }
  .install pre { padding: 16px 16px 56px; font-size: 13px; }
  .install .copy { top: auto; bottom: 12px; }
  .hero-film { margin-top: 36px; }
    .text-link { display: block; margin: 14px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
