:root {
  --ink: #11110f;
  --muted: #686762;
  --muted-light: #9c9b93;
  --paper: #f5f5f1;
  --white: #ffffff;
  --line: #deddd6;
  --blue: #1769ff;
  --blue-deep: #075beb;
  --blue-soft: #e8efff;
  --shadow: 0 22px 58px rgba(17, 17, 15, .14);
  --font: "SF Pro Display", "SF Pro Text", Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; text-underline-offset: 3px; }
::selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 3px solid rgba(23, 105, 255, .35); outline-offset: 4px; }
.shell { width: min(1240px, calc(100% - 80px)); margin: 0 auto; }
.skip-link { position: fixed; z-index: 20; top: 12px; left: 12px; padding: 10px 13px; border-radius: 8px; background: var(--ink); color: var(--white); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 10; top: 0; border-bottom: 1px solid rgba(222, 221, 214, .78); background: rgba(245, 245, 241, .89); backdrop-filter: blur(18px); transition: background-color 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease; }
.site-header.is-top { border-bottom-color: transparent; background: transparent; backdrop-filter: none; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 32px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink); text-decoration: none; }
.sourcebook-mark { flex: 0 0 auto; width: 31px; height: 31px; }
.sourcebook-wordmark { color: var(--ink); font-family: "SF Pro Rounded", "SF Pro Display", system-ui, sans-serif; font-size: 20px; font-weight: 760; letter-spacing: -.025em; line-height: 1; white-space: nowrap; }
.sourcebook-wordmark span { margin-left: 5px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; vertical-align: middle; }
.desktop-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.desktop-nav a { color: #53524d; font-size: 14px; font-weight: 630; text-decoration: none; transition: color .18s ease; }
.desktop-nav a:hover { color: var(--ink); }
.github-nav-link, .github-button { display: inline-flex; align-items: center; gap: 7px; }
.github-nav-link svg { width: 16px; height: 16px; fill: currentColor; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.language-toggle { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid rgba(194, 193, 186, .78); border-radius: 8px; background: rgba(255, 255, 255, .54); }
.language-option { min-width: 29px; min-height: 29px; padding: 0 7px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font: inherit; font-size: 11px; font-weight: 730; letter-spacing: .02em; cursor: pointer; transition: background .18s ease, color .18s ease; }
.language-option { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.language-option:hover { color: var(--ink); }
.language-option.is-active { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(17, 17, 15, .1); }
.header-download { flex: 0 0 auto; padding: 11px 15px; border-radius: 8px; background: var(--ink); color: var(--white); font-size: 13px; font-weight: 730; text-decoration: none; transition: background .18s ease, transform .18s ease; }
.header-download:hover { background: #32312d; transform: translateY(-1px); }

.hero { overflow: hidden; padding: clamp(72px, 8vw, 112px) 0 88px; background: var(--white); }
.hero-grid { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-copy { position: relative; z-index: 2; display: grid; justify-items: center; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 1200px; margin-bottom: 24px; font-size: clamp(50px, 5.4vw, 78px); font-weight: 760; letter-spacing: -.05em; line-height: .96; }
.hero-lede { max-width: 680px; margin-bottom: 30px; color: #4f4e49; font-size: 18px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; border-radius: 9px; font-size: 14px; font-weight: 700; text-decoration: none; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { padding: 8px 19px 8px 15px; background: var(--blue); box-shadow: 0 11px 24px rgba(23, 105, 255, .24); color: var(--white); }
.button-primary:hover { background: var(--blue-deep); }
.button-primary svg { width: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.button-primary span { display: grid; gap: 1px; }
.button-primary strong { font-size: 14px; }
.button-primary small { color: rgba(255, 255, 255, .77); font-size: 11px; font-weight: 560; }
.button-secondary { padding: 0 17px; border: 1px solid #cbc9c2; color: var(--ink); }
.button-secondary:hover { border-color: #898780; background: var(--white); }
.github-button svg { width: 19px; height: 19px; fill: currentColor; }
.hero-visual { position: relative; width: 100%; max-width: 1020px; min-width: 0; aspect-ratio: 2752 / 1338; margin-top: 28px; overflow: hidden; isolation: isolate; }
.hero-visual img { position: relative; z-index: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-visual::after { position: absolute; z-index: 1; inset: 0; content: ""; pointer-events: none; background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 11%, rgba(255, 255, 255, 0) 89%, #fff 100%), linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 9%, rgba(255, 255, 255, 0) 91%, #fff 100%); }

.section { padding: 136px 0; }
h2 { margin-bottom: 0; font-size: clamp(38px, 4vw, 58px); font-weight: 740; letter-spacing: -.04em; line-height: 1.02; }
.connect-section { background: var(--white); }
.connect-layout { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: clamp(48px, 7vw, 100px); }
.connect-description { max-width: 560px; margin: 20px 0 0; color: var(--muted); font-size: 18px; line-height: 1.62; }
.connect-support { margin: 16px 0 0; color: #85847e; font-size: 13px; font-weight: 560; line-height: 1.55; }
.connect-copy { grid-column: 2; min-width: 0; }
.connect-shot { grid-column: 1; grid-row: 1; min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: var(--shadow); }
.connect-shot img { display: block; width: 100%; height: auto; }
.pick-section { background: var(--paper); }
.pick-layout { display: grid; grid-template-columns: .75fr 1.25fr; align-items: center; gap: clamp(48px, 8vw, 128px); }
.pick-intro p { max-width: 402px; margin: 23px 0 28px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.title-accent { display: inline-block; }
.title-accent-pick { font-family: "Iowan Old Style", "Baskerville", Georgia, serif; font-weight: 700; letter-spacing: -.055em; line-height: .98; }
.picker-capture { aspect-ratio: 2.25 / 1; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: var(--shadow); }
.picker-capture img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.book-scenarios { padding-top: 76px; }
.book-scenarios-intro { display: grid; grid-template-columns: minmax(0, .8fr) minmax(300px, 1.2fr); gap: 28px 64px; align-items: end; margin-bottom: 28px; }
.scenario-eyebrow, .scenario-type { margin: 0; color: var(--blue-deep); font-size: 12px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.book-scenarios h3 { margin: 0; font-size: clamp(27px, 3vw, 42px); font-weight: 740; letter-spacing: -.04em; line-height: 1.05; }
.book-scenarios-intro > p:last-child { max-width: 560px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.scenario-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.scenario-card { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 16px; min-height: 100%; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: var(--ink); text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.scenario-card:hover { border-color: #a9c4ff; box-shadow: 0 15px 30px rgba(17, 17, 15, .10); transform: translateY(-3px); }
.scenario-card img { width: 74px; height: 74px; border-radius: 50%; background: var(--blue-soft); object-fit: cover; }
.scenario-card h4 { margin: 7px 0 8px; font-size: 18px; letter-spacing: -.025em; line-height: 1.16; }
.scenario-card div > p:not(.scenario-type) { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.scenario-card span { display: inline-block; margin-top: 14px; color: var(--blue-deep); font-size: 13px; font-weight: 720; }
.supported-formats { display: grid; justify-items: start; padding-top: 4px; }
.supported-types { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 11px 18px; max-width: 1030px; padding: 0; margin: 0; list-style: none; }
.supported-types li { display: inline-flex; align-items: center; gap: 7px; color: #4f4e49; font-size: 13px; font-weight: 680; white-space: nowrap; }
.format-icon { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: var(--blue); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.75; }

.principle-section { padding: 102px 0; background: #d9e5ff; }
.principle-inner { display: grid; grid-template-columns: 1fr .58fr; gap: 48px; align-items: end; }
.principle-inner p:last-child { max-width: 455px; margin: 0 0 4px auto; color: #31507e; font-size: 18px; line-height: 1.55; }

.download-section { padding: 140px 0; background: var(--white); }
.download-panel { display: grid; grid-template-columns: .84fr 1.16fr; gap: 84px; padding: 58px; border-radius: 19px; background: var(--ink); color: var(--white); }
.download-copy > p:not(.section-label) { max-width: 402px; margin: 23px 0 28px; color: #b9b8b2; font-size: 16px; line-height: 1.6; }
.download-options { display: grid; gap: 10px; }
.download-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border: 1px solid #343430; border-radius: 11px; background: #171716; }
.download-tab { min-height: 38px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: #8f8e88; font: inherit; font-size: 13px; font-weight: 720; cursor: pointer; transition: background .18s ease, color .18s ease; }
.download-tab:hover { color: var(--white); }
.download-tab.is-active { background: #30302d; color: var(--white); }
.download-tab-panel { display: grid; gap: 10px; }
.download-tab-panel[hidden] { display: none; }
.download-option { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; min-height: 76px; padding: 14px 17px; border: 1px solid var(--white); border-radius: 10px; background: var(--white); color: var(--ink); text-decoration: none; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.download-option:hover, .download-option.recommended:hover { border-color: #9ebdff; background: #f4f7ff; transform: translateX(3px); }
.download-option.recommended { border-color: var(--white); background: var(--white); }
.download-option span:first-child { display: grid; gap: 4px; }
.download-option strong { font-size: 15px; }
.download-option small { color: #64635e; font-size: 12px; }
.picker-download small { display: inline-flex; align-items: baseline; white-space: nowrap; }
.download-option small .store-optional { color: var(--blue-deep); font-size: inherit; font-style: normal; font-weight: 780; }
.option-action { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 13px; border-radius: 7px; background: var(--blue); color: var(--white); font-size: 12px; font-weight: 720; }
.download-option:hover .option-action { background: #2050b5; }
.release-note { grid-column: 2; margin: -33px 0 0; color: #96958e; font-size: 12px; }
.release-note a { color: #e1e0db; }

.faq-section { padding: 112px 0 128px; background: var(--paper); scroll-margin-top: 96px; }
.faq-layout { display: block; }
.faq-intro { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.faq-intro h2 { font-size: clamp(36px, 3.5vw, 48px); }
.faq-intro p { max-width: 390px; margin: 0 0 4px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.faq-list { max-width: 1040px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { position: relative; display: flex; align-items: center; min-height: 72px; padding: 18px 36px 18px 0; color: var(--ink); font-size: 17px; font-weight: 680; line-height: 1.4; list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { position: absolute; top: 50%; right: 4px; width: 14px; height: 14px; content: ""; background: linear-gradient(var(--muted), var(--muted)) center / 14px 1.5px no-repeat, linear-gradient(var(--muted), var(--muted)) center / 1.5px 14px no-repeat; transform: translateY(-50%); transition: transform 180ms ease; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--blue-deep); }
.faq-item summary:focus-visible { border-radius: 3px; }
.faq-item p { max-width: 72ch; padding: 0 34px 22px 0; margin: -1px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.faq-item p a { margin-left: 4px; color: var(--blue-deep); font-weight: 650; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.site-footer { padding: 28px 0; border-top: 1px solid var(--line); background: var(--white); }
.footer-inner { display: flex; align-items: center; gap: 22px; }
.footer-brand .sourcebook-mark { width: 28px; height: 28px; }
.footer-brand .sourcebook-wordmark { font-size: 18px; }
.footer-inner > div { display: flex; gap: 18px; margin-left: auto; }
.footer-inner a { color: var(--muted); font-size: 13px; font-weight: 630; text-decoration: none; }
.footer-inner a:hover { color: var(--ink); }

@media (max-width: 960px) {
  .shell { width: min(100% - 48px, 760px); }
  .desktop-nav { display: none; }
  .hero { padding-top: 82px; }
  .connect-layout, .pick-layout, .download-panel { grid-template-columns: 1fr; }
  .book-scenarios-intro { grid-template-columns: 1fr; gap: 16px; }
  .scenario-grid { grid-template-columns: 1fr; }
  .connect-description { max-width: 620px; }
  .connect-copy, .connect-shot { grid-column: auto; grid-row: auto; }
  .connect-shot { max-width: 760px; }
  .principle-inner { grid-template-columns: 1fr; gap: 22px; }
  .principle-inner p:last-child { margin-left: 0; }
  .download-panel { gap: 46px; padding: 40px; }
  .release-note { grid-column: auto; margin: -24px 0 0; }
  .faq-section { padding: 84px 0 92px; scroll-margin-top: 80px; }
  .faq-intro { align-items: start; flex-direction: column; gap: 12px; margin-bottom: 26px; }
  .faq-intro p { max-width: 430px; }
  .faq-item summary { min-height: 66px; font-size: 16px; }
}

@media (max-width: 560px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { height: 64px; gap: 12px; }
  .sourcebook-mark { width: 28px; height: 28px; }
  .sourcebook-wordmark { font-size: 18px; }
  .sourcebook-wordmark span { display: none; }
  .header-download { padding: 9px 11px; font-size: 12px; }
  .header-actions { gap: 6px; }
  .language-toggle { padding: 2px; }
  .language-option { min-width: 27px; min-height: 27px; padding-inline: 5px; }
  .header-download .download-platform { display: none; }
  .hero { padding: 60px 0 62px; }
  h1 { font-size: clamp(43px, 13.2vw, 59px); }
  .hero-lede { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-visual { margin-top: 30px; }
  .section { padding: 80px 0; }
  h2 { font-size: 38px; }
  .connect-description { margin-top: 18px; font-size: 16px; line-height: 1.6; }
  .connect-support { margin-top: 14px; font-size: 12px; }
  .connect-shot { border-radius: 9px; }
  .picker-capture { aspect-ratio: 2.25 / 1; }
  .book-scenarios { padding-top: 56px; }
  .book-scenarios h3 { font-size: 30px; }
  .scenario-card { grid-template-columns: 64px minmax(0, 1fr); padding: 16px; }
  .scenario-card img { width: 64px; height: 64px; }
  .supported-formats { padding-top: 20px; }
  .supported-types { gap: 9px 14px; }
  .supported-types li { font-size: 12px; }
  .format-icon { width: 15px; height: 15px; }
  .principle-section { padding: 74px 0; }
  .principle-inner p:last-child { font-size: 16px; }
  .download-section { padding: 80px 0; }
  .download-panel { padding: 28px 20px; border-radius: 13px; }
  .download-option { gap: 10px; min-height: 71px; padding-inline: 12px; }
  .faq-section { padding: 72px 0 80px; scroll-margin-top: 72px; }
  .faq-intro { gap: 10px; margin-bottom: 22px; }
  .faq-intro h2 { font-size: 36px; }
  .faq-intro p { font-size: 14px; }
  .faq-item summary { min-height: 62px; padding-block: 15px; font-size: 15px; }
  .faq-item p { padding-right: 12px; padding-bottom: 19px; font-size: 14px; }
  .footer-inner { flex-wrap: wrap; gap: 12px 16px; }
  .footer-inner > div { width: 100%; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
  html { scroll-behavior: auto; }
  .faq-item summary::after { transition: none; }
}

/* Homepage review refresh */
.site-header.is-top { border-bottom-color: transparent; background: transparent; backdrop-filter: none; }
.hero { padding: clamp(64px, 8vw, 104px) 0 86px; }
.hero-inner { display: grid; justify-items: center; text-align: center; }
.hero-copy { display: grid; justify-items: center; width: 100%; }
.hero h1 { width: 100%; max-width: 980px; margin-bottom: 21px; text-wrap: balance; }
.hero-lede { max-width: 760px; margin-bottom: 28px; color: #4f4e49; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.55; }
.hero-lede strong { color: var(--ink); font-weight: 760; }
.hero-video { width: 100%; max-width: 1080px; margin: 40px 0 0; }
.hero-video video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 16px; background: #101010; box-shadow: var(--shadow); object-fit: contain; }
.hero-video figcaption { margin-top: 13px; color: var(--muted); font-size: 13px; }
.button span[aria-hidden="true"] { font-size: 17px; }
.book-section { background: var(--paper); }
.book-intro { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 35px; }
.book-intro > div { max-width: 760px; }
.book-intro p { max-width: 720px; margin: 19px 0 0; color: var(--muted); font-size: 17px; line-height: 1.62; }
.book-visual { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: var(--shadow); }
.book-visual img { display: block; width: 100%; height: auto; }
.book-workflows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.workflow-card { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-content: start; gap: 15px; min-height: 186px; padding: 19px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); color: var(--ink); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.workflow-card:hover { transform: translateY(-3px); border-color: #a9c4ff; box-shadow: 0 15px 30px rgba(17,17,15,.1); }
.workflow-card img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.workflow-card h3 { margin: 7px 0 8px; font-size: 17px; letter-spacing: -.025em; line-height: 1.22; }
.workflow-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.workflow-card .scenario-type { color: var(--blue-deep); font-size: 11px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.workflow-card span { display: inline-block; margin-top: 12px; color: var(--blue-deep); font-size: 13px; font-weight: 720; }
.book-section .supported-types { margin-top: 24px; }
.picker-section { background: var(--white); }
.picker-layout { display: grid; grid-template-columns: .78fr 1.22fr; align-items: center; gap: clamp(48px, 8vw, 120px); }
.picker-copy { max-width: 470px; }
.picker-copy > p { margin: 21px 0 25px; color: var(--muted); font-size: 17px; line-height: 1.62; }
.picker-sources { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 27px; list-style: none; }
.picker-sources li { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: #4f4e49; font-size: 12px; font-weight: 650; }
.picker-visual { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); box-shadow: var(--shadow); }
.picker-visual img { display: block; width: 100%; height: auto; }
.collab-section { background: var(--paper); }
.collab-intro { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 26px; }
.collab-intro > div { max-width: 800px; }
.collab-intro p { max-width: 650px; margin: 18px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.collab-tabs { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; min-width: min(100%, 330px); padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #e9e9e3; }
.collab-tab { min-height: 42px; padding: 0 22px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 730; cursor: pointer; transition: background .18s ease, color .18s ease, box-shadow .18s ease; }
.collab-tab.is-active { background: var(--white); color: var(--ink); box-shadow: 0 1px 4px rgba(17,17,15,.1); }
.collab-tab:hover { color: var(--ink); }
.collab-panel { display: grid; grid-template-columns: .86fr 1.14fr; align-items: center; gap: clamp(40px, 7vw, 90px); min-height: 430px; padding: 36px 0 0; }
.collab-panel[hidden] { display: none; }
.collab-copy { min-width: 0; }
.collab-summary { min-height: 178px; }
.collab-summary h3 { max-width: 540px; margin: 0 0 16px; font-size: clamp(28px, 3.1vw, 41px); font-weight: 740; letter-spacing: -.04em; line-height: 1.08; }
.collab-summary p { max-width: 500px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.agent-logo-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 23px 0 28px; }
.agent-logo { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; min-height: 40px; padding: 7px 11px; border: 1px solid rgba(222,221,214,.9); border-radius: 9px; background: rgba(255,255,255,.76); color: #3f3e39; }
.agent-logo img { display: block; width: 19px; height: 19px; object-fit: contain; }
.agent-logo strong { font-size: 12px; font-weight: 690; white-space: nowrap; }
.agent-wordmark > span { display: inline-grid; width: 20px; height: 20px; place-items: center; border-radius: 6px; background: #262622; color: white; font-size: 11px; font-weight: 800; }
.collab-panel .button { min-height: 47px; }
.carousel-visual { min-width: 0; }
.collab-video { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--white); box-shadow: var(--shadow); }
.collab-video video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper); }
.carousel-pause, .marquee-toggle { padding: 4px 7px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 11px; cursor: pointer; }
.carousel-pause:hover, .marquee-toggle:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.logo-marquee { position: relative; overflow: hidden; width: min(100%, 590px); margin: 20px 0 26px; mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); }
.logo-marquee-track { display: flex; width: max-content; gap: 9px; animation: logo-scroll 32s linear infinite; }
.logo-marquee:hover .logo-marquee-track, .logo-marquee:focus-within .logo-marquee-track, .logo-marquee.is-paused .logo-marquee-track { animation-play-state: paused; }
.logo-marquee .agent-logo { min-height: 37px; padding: 6px 10px; }
.logo-marquee .agent-logo img { width: 17px; height: 17px; }
.logo-marquee .agent-logo strong { font-size: 11px; }
.text-logo strong { color: #fa4f73; }
@keyframes logo-scroll { to { transform: translateX(-50%); } }
.local-section { padding: 100px 0; background: #d9e5ff; }
.local-inner { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 44px; }
.local-inner > div { max-width: 790px; }
.local-inner h2 { margin-bottom: 18px; }
.local-inner p { margin: 0; color: #31507e; font-size: 17px; line-height: 1.65; }
.local-inner code { padding: 2px 5px; border-radius: 4px; background: rgba(255,255,255,.5); color: #20385f; font-size: .9em; }
.local-inner .button-secondary { border-color: rgba(49,80,126,.45); }
.download-section { scroll-margin-top: 90px; }
.download-panel { grid-template-columns: .74fr 1.26fr; align-items: center; }
.download-copy h2 { max-width: 430px; }
.download-release { margin: -12px 0 0; color: #96958e; font-size: 12px; }
.download-options { gap: 10px; }
.download-option { min-height: 70px; }
.release-note { grid-column: 2; margin: -28px 0 0; }
.release-note a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer { background: var(--white); }

/* Narrow-screen reading order and clearer media format list */
.supported-formats { margin: 17px 0 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.72); }
.book-section .supported-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px 18px; max-width: none; margin: 0; }
.book-section .supported-types li { gap: 9px; color: #45443f; font-size: 13px; font-weight: 640; white-space: normal; }
.format-icon { width: 19px; height: 19px; }
.book-workflows { margin-top: 0; }
.use-cases-eyebrow { margin: 29px 0 17px; color: var(--ink); font-size: clamp(22px, 2.4vw, 28px); font-weight: 740; letter-spacing: -.03em; text-align: center; text-transform: none; }
.picker-copy > p { margin-bottom: 26px; }

.logo-marquee:hover .logo-marquee-track, .logo-marquee:focus-within .logo-marquee-track { animation-play-state: paused; }

/* Three-step download path */
.download-section { padding: 118px 0; background: var(--paper); }
.download-wrap { padding: 0; }
.download-heading { max-width: 690px; margin-bottom: 35px; }
.download-heading .section-kicker { margin: 0 0 13px; color: var(--blue-deep); font-size: 11px; font-weight: 760; letter-spacing: .12em; }
.download-heading h2 { font-size: clamp(38px, 4vw, 54px); }
.download-heading > p:last-child { margin: 18px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.download-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 15px; background: var(--white); list-style: none; }
.download-step { position: relative; display: grid; grid-template-columns: 39px minmax(0, 1fr); align-content: start; gap: 14px; min-width: 0; padding: 27px 24px 25px; }
.download-step + .download-step { border-left: 1px solid var(--line); }
.step-number { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue-deep); font-size: 11px; font-weight: 780; }
.download-step h3 { margin: 4px 0 9px; font-size: 17px; letter-spacing: -.02em; line-height: 1.2; }
.download-step p { min-height: 76px; margin: 0 0 17px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.step-actions { display: grid; gap: 8px; }
.step-actions .button { justify-content: space-between; min-height: 43px; font-size: 12px; }
.step-actions .button-secondary { border-color: var(--line); }
.step-meta { display: block; margin-top: 11px; color: var(--muted-light); font-size: 11px; }
.text-link { display: inline-block; color: var(--blue-deep); font-size: 13px; font-weight: 710; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.step-divider { display: inline-block; margin: 8px 8px 0; color: var(--muted-light); font-size: 11px; }
.download-wrap .release-note { margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.download-wrap .release-note a { color: #4f4e49; }

@media (max-width: 960px) {
  .book-section .supported-types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .download-steps { grid-template-columns: 1fr; }
  .download-step { grid-template-columns: 40px minmax(0, 1fr); padding: 23px; }
  .download-step + .download-step { border-top: 1px solid var(--line); border-left: 0; }
  .download-step p { min-height: 0; max-width: 56ch; }
  .step-actions { display: flex; flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .book-section .supported-types { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 10px; }
  .supported-formats { padding: 17px 15px; }
  .book-section .supported-types li { gap: 7px; font-size: 12px; }
  .format-icon { width: 18px; height: 18px; }
  .download-section { padding: 78px 0; }
  .download-heading { margin-bottom: 25px; }
  .download-step { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 20px 16px; }
  .step-number { width: 29px; height: 29px; }
  .download-step h3 { font-size: 16px; }
  .step-actions { display: grid; }
  .step-actions .button { width: 100%; }
}

@media (max-width: 960px) {
  .book-workflows { grid-template-columns: 1fr; }
  .workflow-card { min-height: 0; }
  .picker-layout, .collab-panel, .local-inner { grid-template-columns: 1fr; }
  .picker-copy { max-width: 700px; }
  .picker-visual { max-width: 760px; }
  .collab-panel { gap: 32px; min-height: 0; }
  .carousel-visual { max-width: 760px; }
  .local-inner { gap: 26px; align-items: start; }
  .local-inner .button { justify-self: start; }
  .download-panel { grid-template-columns: 1fr; gap: 30px; }
  .release-note { grid-column: auto; margin: 0; }
}
@media (max-width: 560px) {
  .hero { padding: 58px 0 68px; }
  .hero h1 { font-size: clamp(41px, 12vw, 57px); }
  .hero-lede { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-video { margin-top: 31px; }
  .hero-video video { border-radius: 10px; }
  .hero-video figcaption { font-size: 12px; }
  .section { padding: 78px 0; }
  .book-intro, .collab-intro { align-items: start; flex-direction: column; gap: 21px; }
  .book-intro p, .picker-copy > p { font-size: 15px; }
  .workflow-card { grid-template-columns: 48px minmax(0,1fr); padding: 14px; }
  .workflow-card img { width: 48px; height: 48px; }
  .picker-layout { gap: 30px; }
  .picker-sources { gap: 7px; }
  .collab-tabs { width: 100%; }
  .collab-tab { padding-inline: 12px; }
  .collab-panel { padding-top: 25px; }
  .collab-summary h3 { font-size: 30px; }
  .collab-summary p { font-size: 15px; }
  .agent-logo-row { gap: 7px; }
  .agent-logo { gap: 6px; min-height: 36px; padding: 6px 8px; }
  .agent-logo strong { font-size: 11px; }
  .local-section { padding: 74px 0; }
  .local-inner p { font-size: 15px; }
  .download-section { padding: 78px 0; }
  .download-panel { padding: 28px 20px; }
  .download-option { gap: 8px; padding: 12px 10px; }
  .download-option strong { font-size: 13px; }
  .download-option small { font-size: 11px; }
  .option-action { padding-inline: 9px; font-size: 11px; }
  .footer-inner { flex-wrap: wrap; }
  .footer-inner > div { flex-wrap: wrap; gap: 12px; width: 100%; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track { animation: none; }
  .workflow-card, .button, .collab-tab { transition: none; }
}

/* Final pass: formats live inside the Book frame and stay centered. */
.book-visual .supported-formats { margin: 0; padding: 21px 24px 23px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: var(--white); text-align: center; }
.book-section .supported-types { display: flex; flex-wrap: wrap; justify-content: center; gap: 13px 25px; margin: 0; }
.book-section .supported-types li { justify-content: center; }
.book-intro > .button { flex: 0 0 auto; white-space: nowrap; }
.coming-soon { display: inline-flex; align-items: center; min-height: 38px; padding: 0 10px; border: 1px dashed #c9c8c0; border-radius: 8px; color: var(--muted); font-size: 11px; font-weight: 640; white-space: nowrap; }
@media (max-width: 960px) {
  .book-section .supported-types { display: grid; grid-template-columns: repeat(3, max-content); justify-content: center; }
  .collab-summary { min-height: 0; }
}
@media (max-width: 560px) {
  .book-visual .supported-formats { padding: 17px 12px 19px; }
  .book-section .supported-types { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-items: center; gap: 12px 8px; }
  .book-section .supported-types li { justify-content: flex-start; }
  .book-intro > .button { align-self: flex-start; max-width: 100%; padding-inline: 13px; font-size: 13px; }
  .coming-soon { min-height: 34px; }
}

/* The supported formats browse horizontally inside the Book frame. */
.book-visual .formats-carousel { display: grid; grid-template-columns: minmax(0, 870px); align-items: center; justify-content: center; width: 100%; }
.book-visual .formats-viewport { min-width: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.book-visual .formats-viewport::-webkit-scrollbar { display: none; }
.book-section .supported-types { display: flex; width: max-content; min-width: 100%; max-width: none; flex-wrap: nowrap; justify-content: flex-start; gap: 9px; padding: 2px 3px 8px; margin: 0; }
.book-section .supported-types li { flex: 0 0 auto; min-height: 38px; gap: 8px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: #4f4e49; font-size: 12px; line-height: 1; white-space: nowrap; scroll-snap-align: start; }
.book-section .format-icon { width: 16px; height: 16px; stroke: #898880; }
@media (max-width: 560px) {
  .book-visual .supported-formats { padding: 17px 10px 19px; }
  .book-visual .formats-carousel { grid-template-columns: minmax(0, 1fr); }
  .book-section .supported-types li { min-height: 36px; gap: 7px; padding: 7px 11px; font-size: 11px; }
}
