:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
  --page: #fff;
  --surface: #f5f5f7;
  --raised: #fff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --soft-line: #e8e8ed;
  --blue: #0071e3;
  --link: #0066cc;
  --code: #fbfbfd;
  --code-fg: #36363b;
  --header: rgba(255,255,255,.88);
  scroll-behavior: smooth;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #000;
  --surface: #161617;
  --raised: #222224;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --line: #424245;
  --soft-line: #333336;
  --blue: #0071e3;
  --link: #2997ff;
  --code: #1c1c1e;
  --code-fg: #e4e4e9;
  --header: rgba(20,20,22,.88);
}
@media(prefers-color-scheme:dark) {
  :root[data-theme="auto"] {
    color-scheme: dark;
    --page: #000;
    --surface: #161617;
    --raised: #222224;
    --ink: #f5f5f7;
    --muted: #a1a1a6;
    --line: #424245;
    --soft-line: #333336;
    --blue: #0071e3;
    --link: #2997ff;
    --code: #1c1c1e;
    --code-fg: #e4e4e9;
    --header: rgba(20,20,22,.88);
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
a, button, input, select { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #0071e3; outline-offset: 4px; }
::selection { background: #b9dafb; color: #151517; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 15px; z-index: 100; background: var(--ink); color: var(--page); padding: 12px; border-radius: 10px; }
.skip-link:focus { top: 10px; }

/* A compact product navigation, with the page given room to breathe. */
.site-header { position: sticky; top: 0; z-index: 10; min-height: 65px; max-width: 1200px; margin: auto; padding: 16px 36px; display: flex; align-items: center; gap: 30px; border-bottom: 1px solid var(--soft-line); background: var(--header); backdrop-filter: blur(20px); }
.brand { display: flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 650; letter-spacing: -.7px; }
.brand-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #fff; background: #0071e3; font-size: 15px; font-weight: 500; }
.brand-icon > span { width: 17px; height: 15px; border: 1px solid #ffffffc9; border-radius: 4px; line-height: 12px; text-align: center; font-size: 10px; }
.site-header nav { display: flex; gap: 27px; align-items: center; margin-left: auto; font-size: 11px; }
.site-header nav a:hover { color: var(--link); }
.site-header nav a span { display: none; }
.theme-control { display: flex; align-items: center; gap: 6px; border-left: 1px solid var(--line); padding-left: 20px; color: var(--muted); }
.theme-control > span[aria-hidden] { font-size: 17px; }
.theme-control select { border: 0; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }
main { max-width: 1200px; margin: auto; padding: 0 36px; }

/* The product, front and center. */
.hero { text-align: center; padding: 53px 0 0; }
.hero-eyebrow { font-size: 20px; letter-spacing: -.5px; font-weight: 600; margin: 0 0 15px; }
.hero h1 { font-size: clamp(60px, 6.5vw, 88px); line-height: 1.045; font-weight: 650; letter-spacing: -4.8px; margin: 0 0 22px; }
.hero h1 span { color: #86868b; }
.hero-description { color: var(--muted); font-size: 19px; line-height: 1.45; letter-spacing: -.4px; margin: 0; }
.hero-actions { display: flex; justify-content: center; align-items: center; gap: 28px; margin: 25px 0 20px; }
.primary-button { display: inline-flex; justify-content: center; align-items: center; background: var(--blue); color: #fff; padding: 11px 24px; border-radius: 24px; font-size: 14px; }
.primary-button:hover, .preview-primary:hover, .run-button:hover { background: #0077ed; }
.text-link { color: var(--link); font-size: 14px; }
.text-link:hover { text-decoration: underline; }
.text-link span { font-size: 20px; margin-left: 4px; line-height: 1; }
.install-command { display: flex; align-items: center; justify-content: center; width: max-content; max-width: 100%; gap: 14px; margin: auto; padding: 0; background: transparent; border: 0; color: var(--muted); }
.install-command code { font-size: 10px; }
.install-command > span { color: var(--link); font-size: 10px; }
.hero-stage { position: relative; max-width: 850px; height: 365px; margin: 45px auto 0; background: var(--surface); border: 1px solid var(--soft-line); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 65px -30px #00000026, 0 1px 3px #00000005; }
.window-toolbar { display: flex; justify-content: space-between; align-items: center; height: 37px; padding: 0 16px; border-bottom: 1px solid var(--soft-line); color: var(--muted); background: var(--raised); font-size: 9px; }
.window-dots { display: flex; gap: 5px; width: 54px; }
.window-dots i { width: 7px; height: 7px; background: var(--line); border-radius: 50%; }
.window-toolbar-end { width: 54px; text-align: right; font-size: 9px; }
.workspace-decoration { position: absolute; inset: 37px 0 0; display: flex; text-align: left; opacity: .55; filter: blur(1.5px); pointer-events: none; }
.workspace-sidebar { width: 145px; flex: none; padding: 27px 17px; background: var(--raised); border-right: 1px solid var(--soft-line); display: flex; flex-direction: column; gap: 17px; color: var(--muted); font-size: 9px; }
.workspace-wordmark { font-weight: 650; font-size: 12px; margin: 0 0 9px; color: var(--ink); }
.workspace-selected { padding: 7px 10px; margin: -7px -10px; background: var(--surface); border-radius: 5px; color: var(--ink); }
.workspace-main { padding: 27px; flex: 1; }
.workspace-heading { display: block; font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 24px; }
.workspace-blocks { display: flex; gap: 16px; }
.workspace-blocks i { height: 66px; border-radius: 9px; flex: 1; background: var(--raised); border: 1px solid var(--soft-line); }
.workspace-lines { display: flex; flex-direction: column; gap: 16px; margin-top: 30px; }
.workspace-lines i { display: block; width: 100%; height: 7px; background: var(--line); opacity: .4; border-radius: 5px; }
.workspace-lines i:last-child { width: 60%; }
.preview-dialog { position: absolute; z-index: 1; width: 350px; left: 50%; top: 52%; transform: translate(-50%,-50%); border: 1px solid var(--soft-line); background: var(--raised); border-radius: 20px; padding: 24px 24px 22px; box-shadow: 0 18px 50px #0000001a; }
.preview-symbol { display: grid; place-items: center; margin: 0 auto 14px; width: 43px; height: 43px; border-radius: 50%; background: #e8f2ff; color: #0071e3; font-size: 22px; font-weight: 400; }
.preview-dialog h2 { font-size: 21px; line-height: 1.2; letter-spacing: -.7px; font-weight: 650; margin: 0 0 10px; }
.preview-dialog p { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 0 0 21px; }
.preview-actions { display: flex; gap: 9px; }
.preview-actions button { border: 0; border-radius: 9px; padding: 10px; flex: 1; font-size: 11px; }
.preview-secondary { background: var(--surface); color: var(--ink); }
.preview-primary { background: #0071e3; color: #fff; }
.stage-caption { position: absolute; bottom: 14px; left: 0; right: 0; z-index: 1; font-size: 9px; color: var(--muted); }
.feature-strip { display: grid; grid-template-columns: repeat(4,1fr); max-width: 900px; margin: 0 auto; padding: 48px 0 55px; text-align: center; }
.feature-strip > div { display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--soft-line); }
.feature-strip > div:last-child { border: 0; }
.feature-strip strong { font-size: 23px; font-weight: 600; letter-spacing: -.7px; }
.feature-strip span { font-size: 11px; color: var(--muted); }

/* An approachable, working product gallery. */
.playground { padding: 63px 0; scroll-margin-top: 75px; border-top: 1px solid var(--soft-line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 36px; }
.eyebrow { color: var(--muted); font-size: 14px; font-weight: 550; letter-spacing: -.2px; }
.section-heading h2 { font-size: 42px; font-weight: 650; letter-spacing: -1.8px; line-height: 1.12; margin: 10px 0 0; }
.section-heading > p { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0; }
.explorer-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 27px; align-items: start; }
.explorer-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; margin-bottom: 20px; }
.filter-group { display: flex; gap: 2px; padding: 3px; background: var(--surface); border-radius: 22px; }
.filter { border: 0; border-radius: 18px; padding: 7px 12px; background: transparent; color: var(--muted); font-size: 10px; white-space: nowrap; }
.filter.active { color: var(--ink); background: var(--raised); box-shadow: 0 1px 5px #00000012; }
.filter > span { margin-left: 3px; color: var(--muted); font-size: 8px; }
.search-box { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 145px; margin-left: auto; border-radius: 10px; padding: 7px 10px; background: var(--surface); }
.search-box > span { font-size: 20px; line-height: 1; color: var(--muted); }
.search-box input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--ink); font-size: 10px; }
.example-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.example-card { display: flex; flex-direction: column; align-items: start; padding: 22px; min-height: 184px; border: 1px solid transparent; border-radius: 18px; background: var(--surface); color: var(--ink); text-align: left; transition: transform .2s, background .2s, border-color .2s; }
.example-card:hover { transform: translateY(-3px); border-color: var(--line); }
.example-card.selected { border-color: #0071e3; }
.card-top { width: 100%; display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.card-icon { display: grid; place-items: center; height: 27px; min-width: 27px; font-size: 21px; font-weight: 400; color: var(--link); }
.card-category { color: var(--muted); font-size: 7px; text-transform: uppercase; letter-spacing: .4px; }
.card-title { font-size: 14px; font-weight: 600; letter-spacing: -.4px; margin-bottom: 6px; }
.card-description { color: var(--muted); font-size: 11px; line-height: 1.6; }
.card-cta { display: flex; width: 100%; justify-content: space-between; color: var(--link); font-size: 10px; margin-top: auto; padding-top: 18px; }
.card-cta > span { font-size: 14px; }
.example-count { color: var(--muted); font-size: 10px; margin-top: 17px; }
.empty-state { padding: 45px 20px; background: var(--surface); border-radius: 18px; color: var(--muted); text-align: center; }
.inspector { position: sticky; top: 88px; border: 1px solid var(--soft-line); border-radius: 20px; background: var(--raised); overflow: hidden; }
.inspector-topline { display: flex; align-items: center; gap: 7px; padding: 19px 23px; border-bottom: 1px solid var(--soft-line); color: var(--muted); font-size: 8px; letter-spacing: .7px; }
.inspector-language { margin-left: auto; font-size: 7px; }
.status-dot { width: 5px; height: 5px; display: inline-block; border-radius: 50%; background: #34a853; }
.inspector-title { padding: 23px; }
.inspector-title h3 { margin: 0 0 7px; font-size: 24px; letter-spacing: -.8px; line-height: 1.15; font-weight: 600; }
.inspector-title p { margin: 0; font-size: 11px; line-height: 1.6; color: var(--muted); }
.code-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--soft-line); padding: 0 23px; }
.code-tabs button { border: 0; background: transparent; padding: 11px 0; font-size: 10px; color: var(--muted); }
.code-tabs [role="tab"][aria-selected="true"] { color: var(--link); box-shadow: 0 1px var(--link); }
.code-tabs #copy-code { margin-left: auto; font-size: 9px; color: var(--link); }
#result-dot { font-size: 6px; color: var(--link); }
.code-filename { padding: 18px 23px 0; display: flex; gap: 9px; align-items: center; background: var(--code); color: var(--muted); font: 9px monospace; }
.code-filename > span { color: var(--link); font-size: 8px; }
.code-block { min-height: 280px; max-height: 450px; margin: 0; padding: 22px 23px 29px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--code); color: var(--code-fg); font: 11px/1.9 "SFMono-Regular",Consolas,monospace; tab-size: 2; }
.inspector-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 23px; border-top: 1px solid var(--soft-line); }
.inspector-bottom > span { color: var(--muted); font-size: 9px; }
.run-button { background: var(--blue); color: #fff; border: 0; border-radius: 19px; padding: 10px 15px; font-size: 10px; flex: none; }
.run-button span { margin-left: 12px; }
.inspector-note { font-size: 9px; color: var(--muted); padding: 0 23px 19px; margin: 0; }

.declarative-section { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; align-items: center; padding: 55px; margin: 10px 0 0; border-radius: 26px; background: var(--surface); }
.declarative-copy h2 { font-size: 39px; font-weight: 650; line-height: 1.1; letter-spacing: -1.5px; margin: 15px 0 20px; }
.declarative-copy p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.declarative-copy p code { font-size: 10px; color: var(--ink); }
.declarative-actions { display: flex; gap: 10px; margin: 24px 0 15px; }
.outline-button { border: 1px solid var(--line); border-radius: 18px; display: flex; align-items: center; justify-content: space-between; gap: 23px; padding: 9px 15px; background: var(--raised); font-size: 10px; color: var(--ink); }
.danger-link { color: #d73131; }
.declarative-copy form { display: flex; align-items: center; gap: 10px; max-width: 350px; }
.declarative-copy form input { min-width: 0; width: 100%; background: var(--raised); color: var(--ink); font-size: 11px; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line); }
.declarative-copy form button { border: 0; border-radius: 20px; padding: 10px 14px; background: var(--blue); color: #fff; font-size: 10px; white-space: nowrap; }
.declarative-copy form button span { margin-left: 10px; }
.markup-card { border: 1px solid var(--soft-line); border-radius: 18px; background: var(--raised); overflow: hidden; }
.markup-header,.markup-footer { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 9px; padding: 18px 21px; border-bottom: 1px solid var(--soft-line); }
.markup-card pre { font: 11px/2 monospace; margin: 0; padding: 22px; overflow: auto; color: var(--code-fg); }
.markup-footer { justify-content: start; gap: 8px; border-top: 1px solid var(--soft-line); border-bottom: 0; }
.closing-note { text-align: center; padding: 75px 0 80px; }
.closing-icon { display: grid; place-items: center; width: 47px; height: 47px; border-radius: 14px; background: #0071e3; color: #fff; font-size: 26px; margin: 0 auto; }
.closing-note h2 { font-size: 36px; font-weight: 650; letter-spacing: -1.4px; margin: 23px 0 17px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; max-width: 1200px; margin: auto; padding: 25px 36px; border-top: 1px solid var(--soft-line); color: var(--muted); font-size: 9px; }
.site-footer > div { display: flex; gap: 21px; }
.footer-divider { margin: 0 7px; }

/* Keep the real demo components aligned with the product presentation. */
:root .cm-root,:root .cm-toasts { --cm-primary: #0071e3; --cm-primary-fg: #fff; --cm-radius: 20px; --cm-btn-radius: 10px; --cm-font: -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
:root .cm-root { --cm-bg: #fff; --cm-fg: #1d1d1f; --cm-muted: #6e6e73; --cm-border: #d2d2d7; --cm-neutral: #f0f0f3; --cm-neutral-fg: #1d1d1f; --cm-backdrop: rgb(0 0 0 / .2); }
.cm-root .cm-title { font: 600 24px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; letter-spacing: -.7px; }
.cm-root.cm-dark { --cm-bg: #222224; --cm-fg: #f5f5f7; --cm-muted: #a1a1a6; --cm-border: #424245; --cm-neutral: #363639; --cm-neutral-fg: #f5f5f7; }
@media(prefers-color-scheme:dark) { .cm-root.cm-auto { --cm-bg: #222224; --cm-fg: #f5f5f7; --cm-muted: #a1a1a6; --cm-border: #424245; --cm-neutral: #363639; --cm-neutral-fg: #f5f5f7; } }

@media(max-width:1050px) {
  .hero h1 { font-size: 75px; letter-spacing: -4px; }
  .hero-description { font-size: 17px; }
  .section-heading h2 { font-size: 36px; }
  .explorer-layout { gap: 20px; }
  .search-box { flex-basis: 100%; }
  .declarative-section { padding: 35px; gap: 30px; }
  .declarative-copy h2 { font-size: 33px; }
  .example-card { padding: 18px; }
}
@media(max-width:760px) {
  .site-header { padding: 16px 22px; gap: 20px; }
  .brand { font-size: 17px; }
  .site-header nav { gap: 20px; }
  .nav-demo { display: none; }
  main { padding: 0 22px; }
  .hero { padding-top: 47px; }
  .hero h1 { font-size: 61px; letter-spacing: -3px; }
  .hero-eyebrow { font-size: 18px; }
  .hero-description { font-size: 16px; }
  .hero-stage { margin-top: 35px; height: 340px; }
  .workspace-sidebar { width: 105px; }
  .workspace-main { padding: 20px; }
  .feature-strip { padding: 38px 0 43px; }
  .feature-strip strong { font-size: 19px; }
  .feature-strip span { font-size: 9px; }
  .playground { padding: 42px 0; }
  .section-heading { flex-direction: column; align-items: start; gap: 15px; }
  .section-heading > p br { display: none; }
  .section-heading h2 { font-size: 37px; }
  .explorer-layout { grid-template-columns: 1fr; gap: 26px; }
  .inspector { position: static; }
  .search-box { flex-basis: auto; }
  .declarative-section { grid-template-columns: 1fr; padding: 30px; gap: 28px; }
  .declarative-copy h2 { font-size: 36px; }
  .closing-note { padding: 55px 0; }
  .closing-note h2 { font-size: 32px; }
  .site-footer { padding: 23px 22px; flex-direction: column; gap: 12px; }
}
@media(max-width:440px) {
  .site-header { gap: 14px; padding: 14px 18px; min-height: 60px; }
  .brand { font-size: 15px; letter-spacing: -.5px; gap: 7px; }
  .brand-icon { width: 25px; height: 25px; border-radius: 7px; }
  .site-header nav { gap: 15px; font-size: 10px; }
  .theme-control { border-left: 0; padding-left: 0; gap: 0; }
  .theme-control > span[aria-hidden] { display: none; }
  .theme-control select { width: 61px; font-size: 9px; }
  main { padding: 0 18px; }
  .hero { padding-top: 37px; }
  .hero-eyebrow { font-size: 17px; margin-bottom: 15px; }
  .hero h1 { font-size: clamp(41px,10.8vw,49px); line-height: 1.08; letter-spacing: -2px; margin-bottom: 18px; }
  .hero-description { font-size: 14px; max-width: 310px; margin: auto; }
  .hero-description br { display: none; }
  .hero-actions { gap: 23px; margin: 23px 0 19px; }
  .primary-button { font-size: 12px; padding: 10px 21px; }
  .text-link { font-size: 12px; }
  .install-command { gap: 10px; }
  .install-command code { font-size: 8px; }
  .install-command > span { font-size: 9px; }
  .hero-stage { height: 315px; border-radius: 15px; margin-top: 30px; }
  .window-toolbar { font-size: 8px; padding: 0 12px; }
  .window-dots i { width: 6px; height: 6px; }
  .workspace-sidebar { width: 80px; padding: 20px 12px; font-size: 8px; }
  .workspace-wordmark { font-size: 9px; }
  .workspace-main { padding: 18px 14px; }
  .workspace-heading { font-size: 12px; }
  .workspace-blocks { gap: 9px; }
  .workspace-blocks i { height: 45px; }
  .preview-dialog { width: calc(100% - 44px); max-width: 320px; padding: 21px 18px 19px; border-radius: 18px; }
  .preview-symbol { width: 37px; height: 37px; margin-bottom: 12px; font-size: 20px; }
  .preview-dialog h2 { font-size: 20px; letter-spacing: -.7px; }
  .preview-dialog p { font-size: 11px; margin-bottom: 18px; }
  .preview-actions button { padding: 9px; font-size: 10px; }
  .stage-caption { font-size: 8px; bottom: 11px; }
  .feature-strip { grid-template-columns: 1fr 1fr; gap: 25px 0; padding: 34px 0 40px; }
  .feature-strip > div:nth-child(2) { border: 0; }
  .feature-strip strong { font-size: 23px; }
  .feature-strip span { font-size: 10px; }
  .section-heading h2 { font-size: 34px; letter-spacing: -1.3px; }
  .eyebrow { font-size: 13px; }
  .filter-group { width: 100%; justify-content: space-between; }
  .filter { padding: 7px 11px; }
  .search-box { flex-basis: 100%; padding: 9px 12px; }
  .example-grid { gap: 11px; }
  .example-card { min-height: 191px; padding: 18px 15px; border-radius: 15px; }
  .card-title { font-size: 13px; }
  .card-description { font-size: 10px; }
  .card-category { font-size: 6px; }
  .card-cta { font-size: 9px; }
  .inspector-title h3 { font-size: 23px; }
  .inspector-bottom { padding: 18px; }
  .inspector-bottom > span { font-size: 8px; max-width: 145px; }
  .code-block { font-size: 10px; padding-left: 20px; padding-right: 20px; min-height: 240px; }
  .declarative-section { padding: 25px; border-radius: 22px; }
  .declarative-copy h2 { font-size: 33px; }
  .declarative-copy p { font-size: 11px; }
  .declarative-actions { gap: 8px; }
  .outline-button { gap: 15px; padding: 8px 12px; }
  .declarative-copy form { gap: 8px; }
  .declarative-copy form input { font-size: 10px; }
  .declarative-copy form button { padding: 10px; font-size: 9px; }
  .declarative-copy form button span { margin-left: 5px; }
  .markup-card pre { font-size: 9px; padding: 18px 15px; }
  .markup-header,.markup-footer { padding: 15px; font-size: 8px; }
  .closing-note h2 { font-size: 30px; }
  .site-footer { padding-left: 18px; padding-right: 18px; font-size: 8px; }
}
@media(prefers-reduced-motion:reduce) {
  :root { scroll-behavior: auto; }
  .example-card { transition: none; }
  .example-card:hover { transform: none; }
}
