/* Shared presentation rules. Product surfaces retain their native geometry. */
:root {
  --site-ink: #20211f;
  --site-muted: #62665b;
  --site-rule: #d5d7cc;
  --site-sage: #e4e7db;
  --site-focus: #7e3626;
  --site-ease: cubic-bezier(.22, 1, .36, 1);
  --site-fast: 160ms;
  --site-enter: 360ms;
}

/* One navigation geometry, on every marketing page. */
:is(.marketing-page, .utility-page) .wrap { width: min(1320px, calc(100% - 112px)); }
:is(.nav-shell, .utility-header) {
  background: #f5f3eef2;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: border-color 180ms;
}
:is(.nav-shell, .utility-header).is-scrolled { border-bottom-color: var(--site-rule); }
:is(.nav, .utility-nav) { height: 80px; position: relative; gap: 24px; }
:is(.brand, .utility-brand) { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; }
:is(.brand, .utility-brand) img { width: 74px; height: auto; }
:is(.nav-center, .utility-links) {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
}
:is(.nav-center, .utility-links) > a { min-height: 44px; white-space: nowrap; color: var(--site-muted); }
:is(.nav-center, .utility-links) > a[aria-current] { color: var(--site-ink); }
:is(.nav-center, .utility-links) > a::after { bottom: 5px; background: #657254; }
.nav-end { margin-left: auto; gap: 12px; }
:is(.nav .pill.small, .utility-nav > .u-button) {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 14px;
  line-height: 22px;
  gap: 12px;
  margin-left: auto;
}
.nav .pill.small .icon { display: none; }
.utility-menu { display: none; }
:is(.menu-toggle, .utility-menu) {
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--site-rule);
  border-radius: 7px;
  color: var(--site-ink);
  background: transparent;
  position: relative;
  transition: background var(--site-fast), border-color var(--site-fast);
}
:is(.menu-toggle, .utility-menu) .icon { width: 20px; height: 20px; }
.utility-menu .icon { transition: opacity 150ms, transform 220ms var(--site-ease); }
.utility-menu[aria-expanded=true] .icon { opacity: 0; transform: rotate(45deg); }
.utility-menu::before, .utility-menu::after {
  content: ''; position: absolute; left: 11px; top: 20px; width: 20px; height: 1.5px;
  background: currentColor; opacity: 0; transition: opacity 150ms, transform 220ms var(--site-ease);
}
.utility-menu[aria-expanded=true]::before { opacity: 1; transform: rotate(45deg); }
.utility-menu[aria-expanded=true]::after { opacity: 1; transform: rotate(-45deg); }
.menu-toggle::before, .menu-toggle::after { left: 11px; top: 20px; }

/* Restrained feedback: surfaces respond; the layout stays still. */
:is(.pill, .u-button) {
  min-height: 52px;
  border-radius: 7px;
  transition: background var(--site-fast), border-color var(--site-fast), box-shadow var(--site-fast);
}
:is(.pill, .u-button):hover { transform: none; box-shadow: none; }
:is(.pill, .u-button):active { transform: none; box-shadow: inset 0 0 0 100px #ffffff12; }
.u-button.secondary { border-color: #b9bfb0; }
.utility-page .u-button { font-size: 14px; line-height: 1.5; font-weight: 400; }
.u-button[aria-disabled=true], .u-button:disabled { color: #5a6052 !important; }
:is(.marketing-page, .utility-page) :is(.nav-shell, .utility-header, .site-footer, .utility-footer, .hero-intro, .cap-tabs, .demo-bar, .inline-demo-controls, .download-layout, .utility-bottom-links, .help-layout, .help-search, .release-filter) :focus-visible {
  outline: 2px solid var(--site-focus);
  outline-offset: 4px;
}
.marketing-page .site-footer :is(a, button):focus-visible,
.utility-page .utility-footer :is(a, button):focus-visible { outline: 2px solid #e6dbbe; outline-offset: 4px; }
:is(.marketing-page, .utility-page) main { scroll-margin-top: 112px; }

/* Typesetting and the rhythm between product and explanation. */
.marketing-page { --section-space: 152px; }
.marketing-page h2 { letter-spacing: -.035em; line-height: 1.4; text-wrap: balance; }
.marketing-page :is(.value-grid h3, .cap-copy h3, .steps h3, .guide-layout h3) { letter-spacing: -.025em; }
.hero { padding-top: 78px; }
.hero-intro { grid-template-columns: 1.25fr 1fr; gap: 80px; margin-bottom: 60px; }
.hero h1 { font-size: clamp(60px, 5.85vw, 88px); letter-spacing: -.04em; line-height: 1.24; }
.hero-last { color: #717767; }
.hero-lead { max-width: 460px; padding-bottom: 4px; }
.hero-lead > p:first-child { max-width: 24em; font-size: 19px; line-height: 1.9; text-wrap: pretty; }
.hero-lead > p:first-child > span { display: block; }
.hero-actions { margin-top: 28px; gap: 28px; }
.platform-note { font-size: 12px; letter-spacing: .02em; margin-top: 20px; }
.eyebrow { font-size: 12px; letter-spacing: .06em; }
.stage-heading { font-size: 13px; margin-bottom: 16px; }
.stage-kicker { font-size: 11px; color: var(--site-muted); }
.section-heading { grid-template-columns: 1.1fr 1fr; gap: 80px; }
.section-heading > p { max-width: 27em; font-size: 18px; line-height: 1.9; text-wrap: pretty; }
.section-intro { margin-bottom: 64px; }
.value-grid > article { padding-top: 28px; }
.value-grid h3 { line-height: 1.45; }
.value-grid p { line-height: 1.9; text-wrap: pretty; }
.value-index { color: #626c57; font-variant-numeric: tabular-nums; margin-bottom: 32px; }
:is(.section-note, .hero-figure > figcaption, .cap-panel figure > figcaption, .device-portrait figcaption, .download-foot > p) { font-size: 12px; line-height: 1.8; }
.cap-tabs { margin-bottom: 48px; }
.capabilities { overflow-anchor: none; }
.cap-tabs > button, .cap-tabs > button:first-child, .cap-tabs > button:last-child { padding-inline: 22px; }
.cap-tabs > button { transition: background var(--site-fast), color var(--site-fast); }
.cap-tabs > button[aria-selected=true] { background: #e7e9df; border-bottom-color: #61734e; }
.cap-panel:not([hidden]) { animation: site-panel-fade var(--site-enter) var(--site-ease) both; }
.cap-copy { padding-top: 8px; }
.cap-copy p { line-height: 1.9; text-wrap: pretty; }
.devices { padding-block: 100px; }
.device-layout { gap: 80px; }
.steps { gap: 48px; }
.steps p { line-height: 1.9; text-wrap: pretty; }
.step-number { color: #626c57; }
.faq summary { line-height: 1.65; }
.faq details p { line-height: 1.9; }
.platform-grid > a { min-height: 220px; transition: background var(--site-fast), border-color var(--site-fast), box-shadow var(--site-fast); }
.platform-grid > a:hover { transform: none; }
.platform-grid p { font-size: 13px; line-height: 1.7; }

/* Chapter controls are distinct from the real product interface below. */
.hero-demo-bar {
  position: relative; top: auto; z-index: 2;
  padding: 12px 22px; gap: 20px;
  background: #e9eae1; border-color: #cbd0c0;
  border-radius: 12px 12px 0 0;
}
.demo-chapters { gap: 6px; }
.demo-chapters > button { min-height: 44px; padding: 10px 14px; font-size: 14px; border-radius: 6px; transition: background var(--site-fast), color var(--site-fast); }
.demo-chapters > button > span { font-size: 11px; opacity: 1; color: #707766; margin-right: 8px; }
.demo-chapters > button[aria-pressed=true] { background: #f8f8f3; box-shadow: 0 1px 3px #26331a08; }
.demo-chapters > button > i { left: 14px; right: 14px; bottom: 4px; height: 1px; background: #61734e; }
.demo-actions { gap: 8px; }
.demo-state { display: inline-flex; align-items: center; gap: 8px; min-width: 100px; font-size: 12px; color: #58634e; }
.demo-state::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
[data-motion-state=paused] .demo-state { color: var(--site-muted); }
[data-motion-state=paused] .demo-state::before { background: transparent; border: 1px solid currentColor; }
:is(.demo-actions, .inline-demo-controls) button { border-radius: 6px; border: 1px solid #b8c0ac; background: transparent; color: #46513b; }
.inline-demo-controls { gap: 8px; }
.hero-stage { background: #dce0d2; padding: 36px 48px 44px; }
.hero-desktop .px-window { box-shadow: 0 30px 52px -24px #39412a40, 0 3px 12px #39412a0a; }
.workspace-lines { opacity: .65; }

/* Supporting pages use the same type, spacing, and surfaces. */
.utility-page :is(h1, h2, h3) { letter-spacing: -.025em; }
.utility-hero { padding: 76px 0 52px; }
.utility-hero h1 { letter-spacing: -.035em; }
.utility-hero .lead { text-wrap: pretty; line-height: 1.9; }
.utility-eyebrow { letter-spacing: .06em; }
.utility-hero .chapter-mark { font-size: 11px; }
.download-layout { gap: 32px; }
.download-primary { border-color: #c5cdb9; }
.platform-tabs { gap: 6px; border-bottom: 1px solid #c5cdb9; padding-bottom: 16px; }
.platform-tabs button { min-width: 44px; font-size: 14px; padding-inline: 16px; }
.platform-tabs button[aria-pressed=true] { box-shadow: 0 1px 3px #39412b08; border-color: #aebaa0; }
.release-label { font-size: 14px; color: #535e49; }
.arch-row label { font-size: 14px; }
.arch-row select { font-size: 16px; background-color: #f7f8f2; border-color: #a8b499; }
.arch-help { font-size: 13px; line-height: 1.8; max-width: 43em; text-wrap: pretty; }
.download-actions { gap: 12px; }
.download-actions .u-button { gap: 14px; }
.download-action-icon { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.download-status { min-height: 24px; margin-top: 12px; font-size: 13px; }
.download-link-info { margin-top: 10px; padding-top: 16px; font-size: 13px; }
.download-link-info summary { min-height: 44px; cursor: pointer; display: list-item; line-height: 24px; padding-block: 10px; }
.download-link-info code { font-size: 12px; overflow-wrap: anywhere; }
.download-next { padding: 32px 34px; }
.download-next .subtle { font-size: 14px; line-height: 1.8; }
.onboard-list { margin-top: 28px; }
.onboard-list p { font-size: 14px; line-height: 1.85; }
.share-block { padding-top: 26px; gap: 22px; }
.share-block p { font-size: 13px; line-height: 1.75; }
.share-block button { min-height: 44px; font-size: 13px; }
.utility-bottom-links { margin-top: 44px; }
.utility-bottom-links p { font-size: 14px; line-height: 1.7; }
.utility-bottom-links > a { transition: background var(--site-fast); border-radius: 0; }
.help-search { border-color: #a4ad98; border-radius: 8px; }
.help-search input { font-size: 16px; }
.help-index a { min-height: 44px; }
.help-article > div { font-size: 16px; line-height: 1.9; }
.help-article summary { font-size: 17px; line-height: 1.6; }
.help-article[open] > div { animation: site-panel-in 260ms var(--site-ease) both; }
.release-entry ul { font-size: 16px; line-height: 1.9; }
.release-filter button { font-size: 14px; }
.release-entry .release-channel { font-size: 13px; }
.guide-layout p { line-height: 1.9; }

/* Footer contrast and hit areas hold on narrow screens too. */
:is(.footer-main > div > a, .footer-main .text-button, .footer-bottom a, .footer-bottom button) { min-height: 44px; }
.footer-bottom { font-size: 12px; gap: 20px; line-height: 1.8; }
.footer-bottom > div { gap: 20px; }
.utility-footer { background: #20231e; color: #c5c7b9; border-top: none; padding: 48px 0 24px; }
.utility-footer-top { border-bottom-color: #4a4c43; padding-bottom: 32px; }
.utility-footer-top img { width: 136px; }
.utility-footer-top p { font-size: 16px; color: #c5c7b9; }
.utility-footer-bottom { font-size: 12px; padding-top: 18px; color: #c5c7b9; }
.utility-footer-bottom button { color: inherit; }
.utility-footer-bottom :is(a, button) { display: inline-flex; align-items: center; min-height: 44px; }
.utility-footer-bottom :is(a, button):hover { color: #fffef8; }
.u-enter { animation-duration: 420ms; }

@media (hover:hover) {
  :is(.menu-toggle, .utility-menu):hover { background: #e9eae2; border-color: #aeb9a0; }
  .demo-chapters > button:hover { background: #f2f3ec; color: var(--site-ink); }
  .cap-tabs > button:hover { background: #eaece4; }
  .utility-bottom-links > a:hover { background: #eceee5; }
}
@keyframes site-panel-in { from { opacity: .3; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes site-panel-fade { from { opacity: .3; } to { opacity: 1; } }

@media (min-width:901px) {
  .cap-panel { min-height: 706px; }
}

@media (max-width:1150px) {
  :is(.marketing-page, .utility-page) .wrap { width: calc(100% - 80px); }
  .hero-intro, .section-heading { gap: 64px; }
  .hero h1 { font-size: 66px; }
  .hero-lead > p:first-child { font-size: 18px; }
  .hero-stage { padding: 30px; }
  .hero-demo-bar { padding-inline: 14px; }
  .demo-chapters > button { padding-inline: 10px; font-size: 13px; }
  .demo-state { min-width: 0; }
  .demo-chapters > button > span { display: none; }
  .download-next { padding-inline: 26px; }
}
@media (max-width:900px) {
  :is(.marketing-page, .utility-page) .wrap { width: calc(100% - 56px); }
  :is(.nav, .utility-nav) { height: 72px; gap: 12px; }
  .nav-center { display: none; }
  .utility-links {
    display: none; position: absolute; top: 72px; left: -28px; right: -28px; transform: none;
    background: var(--paper); border-bottom: 1px solid var(--site-rule);
    padding: 12px 28px 24px; flex-direction: column; align-items: stretch; gap: 4px;
  }
  .utility-links.is-open { display: flex; }
  .utility-links > a::after { display: none; }
  :is(.menu-toggle, .utility-menu) { display: inline-flex; margin: 0; }
  .marketing-page .mobile-nav.wrap {
    position: absolute; top: 72px; left: 0; right: 0; width: 100%;
    padding: 12px 28px 24px; border-top: 0; border-bottom: 1px solid var(--site-rule);
    background: var(--paper);
  }
  .mobile-nav:not([hidden]) { display: flex; flex-direction: column; gap: 4px; }
  :is(.mobile-nav a, .utility-links > a) { min-height: 48px; padding: 12px 0; font-size: 16px; line-height: 24px; }
  :is(.mobile-nav a, .utility-links > a)[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: #657254; }
  .mobile-nav:not([hidden]), .utility-links.is-open { animation: site-panel-in 180ms var(--site-ease); }
  .hero { padding-top: 56px; }
  .hero-intro { grid-template-columns: 1fr; gap: 28px; margin-bottom: 46px; }
  .hero h1 { font-size: 68px; }
  .hero-lead { max-width: 580px; }
  .hero-lead > p:first-child { max-width: 30em; }
  .hero-demo-bar { display: none; }
  .hero-stage { padding: 28px; border-radius: 10px; }
  .section-heading { grid-template-columns: 1fr; gap: 28px; }
  .section-intro { margin-bottom: 40px; }
  .device-layout { gap: 52px; }
  .devices { padding-block: 76px; }
  .demo-state { display: none; }
  .utility-hero { padding: 56px 0 40px; }
  .download-layout { grid-template-columns: 1fr; }
  .guide-heading { margin-bottom: 24px; }
  .guide-layout > aside > nav { border-top: 0; padding-top: 0; }
}
@media (max-width:760px) {
  .download-layout { gap: 24px; }
  .download-next { padding: 28px 24px; }
  .help-index a { font-size: 14px; padding-inline: 8px; }
  .help-search input { font-size: 16px; }
  .help-search .u-button { min-height: 48px; }
  .help-article > div { font-size: 15px; }
  .help-article summary { font-size: 16px; }
  .release-entry ul { font-size: 15px; }
  .release-filter button { font-size: 13px; }
  .utility-footer-top { align-items: flex-start; gap: 22px; }
  .utility-footer-bottom { gap: 14px; }
}
@media (max-width:600px) {
  :is(.marketing-page, .utility-page) .wrap { width: calc(100% - 40px); }
  :is(.nav, .utility-nav) { height: 68px; gap: 10px; }
  :is(.brand, .utility-brand) img { width: 68px; }
  :is(.nav .pill.small, .utility-nav > .u-button) { padding-inline: 15px; font-size: 13px; }
  .nav-end { gap: 10px; }
  .utility-links { top: 68px; left: -20px; right: -20px; padding-inline: 20px; }
  .marketing-page .mobile-nav.wrap { top: 68px; padding-inline: 20px; }
  .hero { padding-top: 44px; }
  .hero h1 { font-size: clamp(40px, 11.7vw, 64px); line-height: 1.3; letter-spacing: -.035em; }
  .hero-intro { gap: 25px; margin-bottom: 38px; }
  .hero-lead { padding-bottom: 0; }
  .hero-lead > p:first-child { font-size: 16px; line-height: 1.9; }
  .hero-actions { margin-top: 24px; gap: 24px; }
  .hero-actions > .pill { min-height: 50px; }
  .hero-actions > .accent-link { font-size: 14px; gap: 10px; }
  .platform-note { font-size: 12px; margin-top: 18px; }
  .eyebrow { font-size: 12px; margin-bottom: 22px; }
  .stage-heading { font-size: 12px; margin-bottom: 14px; }
  .hero-stage { padding: 24px 16px 30px; }
  .marketing-page h2 { letter-spacing: -.025em; }
  .section-heading > p { font-size: 16px; }
  .section-intro { margin-bottom: 36px; }
  .value-index { margin-bottom: 20px; font-size: 12px; }
  .value-grid p, .cap-copy p, .steps p { font-size: 16px; }
  .cap-tabs { gap: 0; margin-bottom: 32px; }
  .cap-tabs > button, .cap-tabs > button:first-child, .cap-tabs > button:last-child { min-height: 56px; padding-inline: 12px; }
  .cap-copy { padding-top: 0; }
  .cap-copy li { font-size: 14px; }
  .guide-layout > aside a { font-size: 14px; }
  .devices { padding-block: 64px; }
  .device-layout { gap: 44px; }
  .device-roles p { font-size: 15px; }
  .steps { gap: 36px; }
  .faq details p { font-size: 15px; }
  .platform-grid > a { padding: 23px 18px; min-height: 224px; }
  .platform-grid p { font-size: 12px; }
  .platform-grid > a > span { font-size: 13px; }
  .footer-main { gap: 32px 24px; }
  .footer-main > div > a, .footer-main .text-button { min-height: 44px; font-size: 14px; }
  .footer-bottom { font-size: 12px; gap: 12px; }
  .footer-bottom > div { gap: 12px 20px; }
  .utility-hero h1 { letter-spacing: -.025em; }
  .utility-hero .lead { text-wrap: balance; }
  [data-page=updates] h1 > span { display: block; }
  [data-page=updates] .lead > span { display: block; }
  .release-filter { flex-wrap: nowrap; gap: 6px; }
  .release-filter button { min-width: 44px; padding-inline: 10px; font-size: 13px; }
  .release-filter .filter-suffix { display: none; }
  [data-page=download] .utility-hero h1 { font-size: clamp(30px, 8.8vw, 42px); line-height: 1.35; }
  [data-page=download] .utility-hero .lead { font-size: 16px; }
  .device-notice { font-size: 13px; line-height: 1.8; align-items: baseline; }
  .platform-tabs { gap: 4px; padding-bottom: 14px; justify-content: space-between; }
  .platform-tabs button { font-size: 13px; padding: 10px; }
  .download-primary { padding-inline: 22px; }
  .download-detail { margin-top: 24px; }
  .download-actions > .u-button { padding-inline: 14px; font-size: 14px; }
  .download-link-info { margin-top: 8px; padding-top: 12px; }
  .arch-help { font-size: 13px; }
  .utility-bottom-links { margin-top: 32px; }
  .utility-footer { padding-top: 40px; }
  .utility-footer-top img { width: 116px; }
  .utility-footer-bottom > div { gap: 4px 20px; }
}
@media (max-width:360px) {
  .release-filter { gap: 2px; }
  .release-filter button { padding-inline: 6px; font-size: 12px; }
  .hero-actions { gap: 20px; }
  .hero-actions > .pill { padding-inline: 18px; gap: 16px; }
  .hero-stage { padding-inline: 10px; }
  .download-primary { padding-inline: 18px; }
  .platform-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .platform-tabs button { font-size: 14px; }
  .platform-grid > a { min-height: 0; }
  .share-block { align-items: start; gap: 16px; }
}
@media (prefers-reduced-motion:reduce) {
  :is(.marketing-page, .utility-page) *,
  :is(.marketing-page, .utility-page) *::before,
  :is(.marketing-page, .utility-page) *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
