:root {
  color-scheme: light dark;
  --sans: 'Manrope', Arial, sans-serif;
  --display: 'Space Grotesk', Arial, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --page: light-dark(#f5f6fb, #131b2b);
  --ink: light-dark(#101e45, #edf2ff);
  --muted: light-dark(#425374, #aebed9);
  --line: light-dark(#b7c5e3, #3d5070);
  --surface: light-dark(#fff, #202e46);
  --accent: light-dark(#1744e8, #b8c8ff);
  --accent-ink: light-dark(#fff, #101f51);
  --hero: light-dark(#1949e9, #183b9f);
  --hero-ink: #fff;
  --hover-lift: 3px;
  font-family: var(--sans);
  background: var(--page);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden], [data-copy="dev"] { display: none !important; }
html[data-audience="dev"] [data-copy="public"] { display: none !important; }
html[data-audience="dev"] span[data-copy="dev"] { display: inline !important; }
html[data-audience="dev"] div[data-copy="dev"] { display: block !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 20; padding: 14px 18px; background: var(--ink); color: var(--page); font-weight: 800; }
.skip-link:focus { top: 12px; }
.site-shell { max-width: 1240px; margin: 0 auto; padding: 34px 48px 24px; }
.site-header { display: flex; align-items: center; gap: 30px; border-bottom: 2px solid var(--ink); padding-bottom: 23px; }
.brand { font: 700 35px/1 var(--display); letter-spacing: -2px; }
.site-nav { display: flex; gap: 25px; align-items: center; margin-left: auto; font-size: 13px; font-weight: 800; }
.site-nav a { display: flex; gap: 8px; align-items: center; min-height: 44px; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.nav-count { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--line); border-radius: 50%; font: 10px var(--mono); }
.audience-switch { display: none; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.js .audience-switch { display: flex; }
.audience-switch button { border: 0; border-radius: 2px; background: transparent; padding: 10px 15px; min-height: 40px; font-size: 12px; font-weight: 800; }
.audience-switch button[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); }
.audience-switch button span { margin-left: 4px; }
.page-intro { background: var(--hero); color: var(--hero-ink); padding: 38px 38px 35px; margin: 28px 0 32px; }
.eyebrow { font: 500 10px/1.7 var(--mono); text-transform: uppercase; letter-spacing: 1.4px; margin: 0; color: var(--muted); }
.page-intro .eyebrow { color: #d5e0ff; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); }
.page-intro h1 { font-size: clamp(36px, 5vw, 62px); font-weight: 700; line-height: 1.03; letter-spacing: -2.8px; margin: 13px 0 15px; max-width: 900px; text-wrap: balance; }
.intro-description { font-size: 15px; line-height: 1.7; margin-bottom: 0; color: #e6ecff; max-width: 670px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.section-heading h2 { font-size: 28px; line-height: 1.15; letter-spacing: -1px; margin: 5px 0 0; }
.quiet-note { font-size: 11px; color: var(--muted); }
.story-list { display: grid; gap: 25px; }
.story-item { display: grid; grid-template-columns: 1fr 1.12fr; gap: 50px; padding-top: 25px; border-top: 1px solid var(--line); min-width: 0; }
.story-item:nth-child(even) .story-text { grid-column: 2; grid-row: 1; }
.story-item:nth-child(even) .story-preview { grid-column: 1; grid-row: 1; }
.story-text { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 15px 0; }
.story-overline { font: 500 11px/1.6 var(--mono); color: var(--tone); margin-bottom: 13px; }
.story-overline > span { font: 10px/1.6 var(--sans); color: var(--muted); margin-left: 15px; }
.story-headline { font: 700 clamp(26px, 3.2vw, 38px)/1.06 var(--display); letter-spacing: -1.5px; margin-bottom: 15px; }
.story-summary { color: var(--muted); font-size: 14px; line-height: 1.75; max-width: 370px; margin-bottom: 22px; }
.story-link { display: inline-flex; gap: 18px; font-size: 12px; font-weight: 800; line-height: 1.5; }
.story-link > span:last-child { color: var(--tone, var(--accent)); transition: transform .2s; }
.is-preview .story-link > span:last-child, .more-product:hover .more-title > span { transform: translate(2px, -2px); }
.ranker { --tone: light-dark(#143ba6, #9bb7ff); --wash: light-dark(#a9c4ef, #26477e); --soft: light-dark(#dce8ff, #213350); }
.mobis { --tone: light-dark(#5340a1, #baa8ff); --wash: light-dark(#bcaeea, #423271); --soft: light-dark(#e9e3fb, #312747); }
.hourport { --tone: light-dark(#1c5676, #8bc9f3); --wash: light-dark(#a7cee4, #23435a); --soft: light-dark(#dfeff6, #233744); }
.calendar { --tone: light-dark(#854026, #efac8d); --wash: light-dark(#e5b18e, #63412d); --soft: light-dark(#f5e2d1, #3c3026); }
.wikirace { --tone: light-dark(#705900, #e7cf64); --wash: light-dark(#e1cf77, #5a4d1e); --soft: light-dark(#f3ecc8, #39331f); }
.preview-surface { display: flex; align-items: center; justify-content: center; position: relative; min-width: 0; overflow: hidden; background: var(--wash); border-radius: 5px; padding: 30px; }
.story-preview { min-height: 300px; }
.demo-mount { display: block; width: 100%; max-width: 370px; position: relative; transform-origin: 50% 75%; transition: transform .32s cubic-bezier(.2,.7,.2,1); }
.is-preview [data-demo], .sample-live [data-demo] { transform: translateY(calc(-1 * var(--hover-lift))); }
.annotation { position: absolute; left: 12px; bottom: 11px; right: 12px; padding: 7px 10px; background: var(--surface); border: 1px dashed var(--tone); color: var(--tone); font: 9px/1.5 var(--mono); border-radius: 2px; }
html[data-audience="dev"] .preview-surface { background-image: linear-gradient(color-mix(in srgb, var(--tone) 15%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--tone) 15%, transparent) 1px, transparent 1px); background-size: 22px 22px; }
html[data-audience="dev"] .story-preview, html[data-audience="dev"] .catalog-preview { padding-bottom: 56px; }
.more-section { margin-top: 48px; padding-top: 25px; border-top: 2px solid var(--ink); }
.more-heading { margin-bottom: 25px; }
.text-action { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 800; line-height: 1.5; min-height: 44px; padding: 7px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.text-action:hover { color: var(--accent); border-bottom-color: var(--accent); }
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.more-product { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); padding-bottom: 17px; }
.more-preview { height: 290px; padding: 20px 18px; }
.more-title { display: flex; justify-content: space-between; margin: 15px 0 7px; font: 700 22px/1.2 var(--display); letter-spacing: -.7px; }
.more-title > span { color: var(--tone); transition: transform .2s; }
.more-copy { font-size: 13px; line-height: 1.6; color: var(--muted); margin-bottom: 12px; }
.product-stage { font: 10px/1.6 var(--mono); color: var(--muted); }
.more-product .product-stage { margin-top: auto; }
.collection-invite { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 31px 0 35px; }
.collection-invite p { font: 700 23px/1.3 var(--display); letter-spacing: -.5px; margin: 0; }
.solid-action { display: inline-flex; gap: 24px; justify-content: space-between; align-items: center; padding: 15px 21px; min-height: 48px; border-radius: 3px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; line-height: 1.5; }
.solid-action:hover { filter: brightness(1.12); }
.site-footer { display: flex; justify-content: space-between; gap: 22px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; }
.site-footer a:hover { color: var(--accent); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.library-tools { display: none; gap: 18px; align-items: stretch; margin: 0 0 20px; }
.js .library-tools { display: flex; }
.search-field { flex: 1; display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); padding: 9px 15px; border-radius: 3px; }
.search-field > span:first-child { font-size: 24px; line-height: 1; }
.search-field input { padding: 5px 0; width: 100%; min-width: 0; border: 0; background: transparent; font-size: 14px; }
.search-field input::placeholder { color: var(--muted); opacity: 1; }
.stage-field { display: flex; align-items: center; gap: 15px; font-size: 11px; font-weight: 800; }
.stage-field select { font-size: 12px; border: 1px solid var(--line); padding: 13px 10px; border-radius: 3px; background: var(--surface); min-height: 48px; }
.filter-line { display: none; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 26px; }
.js .filter-line { display: flex; }
.category-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.category-filters button { background: transparent; border: 1px solid var(--line); border-radius: 3px; padding: 10px 14px; font-size: 12px; font-weight: 800; min-height: 44px; }
.category-filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--page); }
.result-count { font: 10px/1.5 var(--mono); color: var(--muted); flex-shrink: 0; }
.catalog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 36px 24px; }
.catalog-card { min-width: 0; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); padding-bottom: 19px; }
.catalog-preview { min-height: 300px; padding: 24px 17px; }
html[data-audience="dev"] .catalog-preview { min-height: 330px; }
.catalog-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px; font: 9px/1.7 var(--mono); color: var(--muted); margin: 13px 0 7px; }
.catalog-name { display: flex; justify-content: space-between; gap: 10px; font-size: 27px; letter-spacing: -1px; margin: 0 0 7px; }
.catalog-name > span { color: var(--tone); }
.catalog-description { font-size: 13px; line-height: 1.6; color: var(--muted); margin-bottom: 17px; }
.catalog-card .story-link { margin-top: auto; }
.empty-results { padding: 50px 20px 60px; background: var(--surface); border: 1px dashed var(--line); text-align: center; }
.empty-results h2 { font-size: 29px; letter-spacing: -1px; margin-bottom: 12px; }
.empty-results p { font-size: 14px; color: var(--muted); }
.library-end { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 43px 0; }
.library-end p { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 0; }
.detail-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; }
.detail-heading { padding: 15px 0 30px; max-width: 850px; }
.detail-heading .eyebrow { color: var(--tone); }
.detail-heading h1 { font-size: clamp(36px,5vw,61px); line-height: 1.06; letter-spacing: -2.5px; margin: 16px 0 22px; text-wrap: balance; }
.detail-heading > p:last-child { color: var(--muted); font-size: 17px; line-height: 1.8; max-width: 720px; margin-bottom: 0; }
.detail-visual { margin: 0 0 40px; }
.large-preview { min-height: 390px; padding: 45px 25px; }
.large-preview .demo-mount { max-width: 440px; }
.large-preview .mini-app { padding: 20px; }
.preview-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.play-preview { display: none; font-size: 11px; }
.js .play-preview { display: inline-flex; }
.story-body { display: grid; grid-template-columns: 1fr 1.6fr; gap: 70px; padding: 30px 0; border-top: 1px solid var(--line); }
.story-body h2 { font-size: 30px; line-height: 1.15; letter-spacing: -1px; margin: 10px 0; }
.story-body p:not(.eyebrow) { color: var(--muted); font-size: 15px; line-height: 1.9; margin: 0; }
.feature-section { margin: 20px 0 40px; }
.feature-section h2 { font-size: 24px; letter-spacing: -.8px; margin-bottom: 22px; }
.feature-section ul { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; list-style: none; margin: 0; padding: 0; counter-reset: feature; }
.feature-section li { border-top: 2px solid var(--tone); padding: 17px 0 0; color: var(--muted); font-size: 13px; line-height: 1.85; counter-increment: feature; }
.feature-section li::before { content: '0' counter(feature); display: block; font: 500 11px var(--mono); color: var(--tone); margin-bottom: 12px; }
.dev-intro { display: flex; justify-content: space-between; gap: 20px; align-items: center; border-top: 1px solid var(--line); padding: 25px 0; }
.stack-list { display: flex; gap: 8px; flex-wrap: wrap; }
.stack-list span { font: 10px/1.6 var(--mono); border: 1px solid var(--line); padding: 6px 9px; border-radius: 2px; }
.dev-notes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; margin: 10px 0 40px; }
.dev-notes article { border-top: 2px solid var(--tone); padding-top: 18px; }
.dev-notes h2 { font-size: 23px; line-height: 1.2; letter-spacing: -.8px; margin-bottom: 15px; }
.dev-notes p { font-size: 13px; line-height: 1.9; color: var(--muted); margin: 0; }
.availability-section { display: flex; align-items: center; justify-content: space-between; gap: 40px; background: var(--soft); padding: 27px 30px; border-left: 3px solid var(--tone); margin-bottom: 45px; }
.availability-section > div { max-width: 690px; }
.availability-section .eyebrow { color: var(--tone); }
.availability-section p:last-child { font-size: 13px; line-height: 1.85; margin: 8px 0 0; }
.availability-section .solid-action { flex-shrink: 0; max-width: 240px; }
.related-section { border-top: 2px solid var(--ink); padding: 22px 0 35px; }
.related-products { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px; }
.related-card { display: flex; gap: 17px; align-items: center; min-width: 0; padding: 17px 0; }
.related-icon { display: grid; place-items: center; width: 56px; height: 56px; flex-shrink: 0; border-radius: 3px; font-size: 24px; color: var(--tone); background: var(--wash); transition: transform .2s; }
.related-card:hover .related-icon { transform: translateY(-3px); }
.related-card strong { font: 700 22px/1.3 var(--display); letter-spacing: -.6px; }
.related-copy { display: block; font-size: 12px; line-height: 1.6; color: var(--muted); margin-top: 5px; }
.not-found { padding: 100px 0 120px; }
.not-found h1 { font-size: clamp(40px,6vw,70px); line-height: 1.05; letter-spacing: -2px; margin: 15px 0 25px; }
.not-found p:not(.eyebrow) { color: var(--muted); line-height: 1.7; }
@media (min-width: 1100px) { .story-preview .demo-mount { max-width: 350px; } }
@media (max-width: 900px) {
  .site-shell { padding: 28px 30px 22px; }
  .site-header { gap: 20px; }
  .site-nav { gap: 18px; }
  .story-item { gap: 30px; }
  .story-preview { min-height: 290px; padding: 25px; }
  .story-headline { font-size: 29px; letter-spacing: -1px; }
  .more-grid { gap: 18px; }
  .more-preview { padding: 22px 12px; }
  .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .story-body { gap: 35px; }
  .feature-section ul, .dev-notes { gap: 20px; }
  .availability-section { gap: 25px; }
}
@media (max-width: 650px) {
  .site-shell { padding: 23px 22px 22px; }
  .site-header { flex-wrap: wrap; gap: 17px 15px; padding-bottom: 16px; }
  .brand { font-size: 31px; letter-spacing: -1.7px; margin-right: auto; }
  .audience-switch { order: 1; }
  .audience-switch button { padding: 9px 13px; }
  .site-nav { order: 2; margin-left: 0; width: 100%; justify-content: space-between; gap: 12px; }
  .site-nav a { min-height: 34px; }
  .page-intro { margin: 21px 0 24px; padding: 28px 25px 27px; }
  .page-intro h1 { font-size: 42px; letter-spacing: -2px; margin-top: 14px; }
  .intro-description { font-size: 13px; line-height: 1.8; }
  .eyebrow { font-size: 9px; letter-spacing: 1.1px; }
  .quiet-note { display: none; }
  .story-list { gap: 27px; }
  .story-item { grid-template-columns: 1fr; gap: 20px; padding-top: 21px; }
  .story-item:nth-child(even) .story-text, .story-item:nth-child(even) .story-preview { grid-column: auto; grid-row: auto; }
  .story-text { padding: 0; }
  .story-headline { font-size: 34px; letter-spacing: -1.3px; margin-bottom: 12px; }
  .story-summary { max-width: 430px; margin-bottom: 16px; }
  .story-preview { min-height: 270px; padding: 25px; }
  .more-section { margin-top: 35px; padding-top: 21px; }
  .section-heading { gap: 12px; }
  .section-heading h2 { font-size: 25px; }
  .section-heading .text-action { font-size: 11px; gap: 10px; }
  .more-grid { grid-template-columns: 1fr; gap: 23px; }
  .more-product { display: grid; grid-template-columns: 145px 1fr; gap: 0 16px; align-items: start; padding-bottom: 23px; }
  .more-preview { grid-row: 1/4; height: 154px; padding: 14px 9px; }
  .more-preview .demo-mount { width: 220px; min-width: 220px; transform: scale(.57); transform-origin: 50% 50%; }
  .is-preview .more-preview [data-demo] { transform: translateY(-3px) scale(.57); }
  .more-title { font-size: 22px; margin: 9px 0 7px; }
  .more-copy { font-size: 12px; line-height: 1.65; margin-bottom: 10px; }
  .more-product .product-stage { margin-top: 0; font-size: 9px; }
  .collection-invite { align-items: flex-start; flex-direction: column; gap: 17px; }
  .collection-invite p { font-size: 22px; }
  .site-footer { flex-direction: column; gap: 12px; }
  .site-footer a { min-height: 35px; display: flex; align-items: center; gap: 10px; }
  .library-tools { flex-direction: column; gap: 12px; }
  .search-field { min-height: 50px; }
  .stage-field { justify-content: flex-end; }
  .stage-field select { flex: 1; }
  .filter-line { flex-direction: column; align-items: flex-start; gap: 15px; }
  .category-filters { gap: 6px; }
  .category-filters button { font-size: 11px; padding: 10px 11px; }
  .catalog-grid { grid-template-columns: 1fr; gap: 28px; }
  .catalog-preview { min-height: 300px; padding: 28px; }
  .catalog-name { font-size: 29px; }
  .library-end { flex-direction: column; align-items: flex-start; gap: 14px; padding: 30px 0; }
  .detail-top { padding: 15px 0; }
  .detail-heading { padding-top: 12px; }
  .detail-heading h1 { font-size: 41px; letter-spacing: -1.9px; margin: 13px 0 20px; }
  .detail-heading > p:last-child { font-size: 15px; line-height: 1.8; }
  .large-preview { min-height: 320px; padding: 25px; }
  .large-preview .mini-app { padding: 13px; }
  .preview-foot { gap: 12px; font-size: 9px; }
  .play-preview { font-size: 10px; gap: 8px; flex-shrink: 0; }
  .story-body { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .story-body h2 { font-size: 29px; }
  .story-body p:not(.eyebrow) { font-size: 14px; }
  .feature-section ul, .dev-notes { grid-template-columns: 1fr; gap: 24px; }
  .feature-section li { padding-top: 13px; }
  .feature-section li::before { margin-bottom: 7px; }
  .dev-intro { flex-direction: column; align-items: flex-start; gap: 15px; }
  .dev-notes { margin-top: 0; }
  .availability-section { flex-direction: column; align-items: flex-start; gap: 20px; padding: 22px; }
  .related-products { grid-template-columns: 1fr; gap: 0; }
  .related-card { border-bottom: 1px solid var(--line); }
  .related-card:last-child { border-bottom: 0; }
}
@media (max-width: 360px) {
  .site-shell { padding: 20px 16px; }
  .brand { font-size: 27px; }
  .audience-switch button { padding: 9px 10px; font-size: 11px; }
  .page-intro { padding: 25px 20px; }
  .page-intro h1 { font-size: 37px; }
  .story-headline { font-size: 30px; }
  .story-preview, .catalog-preview { padding: 23px 17px; }
  .more-product { grid-template-columns: 120px 1fr; gap: 0 14px; }
  .more-preview { height: 145px; }
  .more-preview .demo-mount { transform: scale(.49); }
  .is-preview .more-preview [data-demo] { transform: translateY(-3px) scale(.49); }
  .more-title { font-size: 20px; }
  .detail-heading h1 { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
