main { max-width: none; padding: 0 0 96px; }
main > section:not(.browser-workspace) { width: calc(100% - 48px); max-width: 632px; margin-inline: auto; }
.browser-workspace { width: 100%; height: 100dvh; min-height: 560px; display: flex; flex-direction: column; background: #fff; color: #253044; outline-offset: -3px; }
.workspace-header { min-height: 72px; flex-shrink: 0; display: flex; align-items: center; gap: 24px; padding: 12px 28px; border-bottom: 1px solid #e4e8f0; }
.workspace-brand { display: flex; gap: 10px; align-items: center; color: inherit; text-decoration: none; font-weight: 600; }
.workspace-brand img { border-radius: 7px; }
.workspace-brand span { border-left: 1px solid #dde2ec; padding-left: 12px; font-size: 12px; color: #6b7280; font-weight: 400; }
.workspace-header h1 { font-size: 15px; font-weight: 500; color: #6b7280; letter-spacing: normal; margin: 0; }
.workspace-header .nav-btn { margin-left: auto; font-size: 12px; white-space: nowrap; }
.browser-workspace button { font: inherit; color: inherit; border: 1px solid transparent; border-radius: 8px; background: transparent; cursor: pointer; font-size: 12px; padding: 8px 12px; min-height: 36px; white-space: nowrap; }
.browser-workspace button:hover { background: #edf1fa; }
.browser-workspace button[aria-pressed=true] { color: #3659b3; background: #eaf0ff; border-color: #d3defa; }
.workspace-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 28px; flex-shrink: 0; }
.demo-instruction { font-size: 13px; line-height: 1.6; color: #626b79; }
.demo-controls { display: flex; align-items: center; gap: 6px; }
.demo-controls button[data-action=align] { border-color: #dce2ec; }
.workspace-body { display: flex; flex: 1; min-height: 0; padding: 0 20px; }
.workspace-stage { flex: 1; position: relative; min-width: 0; overflow: hidden; isolation: isolate; border: 1px solid #dde3ef; border-radius: 18px; background: radial-gradient(ellipse at 20% 90%, #c9d8f5, transparent 70%), linear-gradient(135deg, #edf1fa, #e5e0f2); }
.background-window, .workspace-overlay { position: absolute; left: 0; top: 0; border: 1px solid #7484a945; border-radius: 10px; box-shadow: 0 12px 35px #18243c20; }
.background-window { overflow: hidden; background: #fff; }
.workspace-overlay { z-index: 2; will-change: transform; touch-action: none; cursor: grab; contain: layout style; }
.workspace-overlay.dragging { cursor: grabbing; }
.workspace-window-bar { height: 34px; padding: 0 10px; display: flex; align-items: center; gap: 12px; background: #f7f8fb; border-bottom: 1px solid #dce2ec; border-radius: 10px 10px 0 0; font-size: 11px; color: #4e586a; }
#overlay-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.background-window img, .workspace-overlay img { display: block; width: 100%; height: auto; pointer-events: none; border-radius: 0 0 9px 9px; }
.workspace-tip { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); font-size: 11px; line-height: 1.6; color: #526078; text-align: center; width: max-content; max-width: calc(100% - 32px); pointer-events: none; z-index: 3; padding: 8px 14px; background: #f9faff; border: 1px solid #e1e6f1; border-radius: 999px; }
.workspace-status { width: 100%; min-height: 60px; padding: 12px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 11px; color: #626b79; flex-shrink: 0; }
.demo-extras { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.demo-import { position: relative; }
.demo-import summary { font-size: 12px; cursor: pointer; padding: 8px 10px; border-radius: 8px; list-style: none; }
.demo-import summary::-webkit-details-marker { display: none; }
.demo-import summary:hover { background: #edf1fa; }
.demo-import-panel { position: absolute; right: 0; bottom: calc(100% + 12px); z-index: 5; width: min(320px, calc(100vw - 40px)); padding: 20px; background: white; color: #253044; border: 1px solid #dde3ef; border-radius: 14px; box-shadow: 0 12px 40px #18243c25; }
.demo-import-panel strong { font-size: 13px; }
.demo-import-panel p { margin: 10px 0 14px; font-size: 12px; line-height: 1.7; color: #626b79; }
.demo-import-panel button { border-color: #dce2ec; margin-top: 5px; }
#workspace-help { margin: auto; max-width: 520px; width: calc(100% - 32px); max-height: calc(100dvh - 48px); overflow-y: auto; border: 1px solid #dce2ec; border-radius: 20px; padding: 28px; color: #253044; background: white; box-shadow: 0 30px 100px #0004; }
#workspace-help::backdrop { background: #18243c66; }
.help-heading { display: flex; align-items: center; justify-content: space-between; }
.help-heading h2 { font-size: 23px; }
#workspace-help p { font-size: 13px; line-height: 1.7; color: #626b79; margin: 16px 0; }
#workspace-help dl { display: grid; grid-template-columns: 1fr auto; gap: 14px 20px; font-size: 12px; }
#workspace-help dd { font-family: ui-monospace, monospace; }
.workspace-nojs { font-size: 12px; padding: 16px; }
[hidden] { display: none !important; }
@media(max-width: 900px) { .workspace-header h1 { display: none; } }
@media(max-width: 620px) {
  .workspace-header { padding-inline: 16px; gap: 8px; }
  .workspace-brand span { display: none; }
  .workspace-toolbar { flex-direction: column; gap: 10px; padding: 14px 12px; }
  .workspace-body { padding: 0 10px; }
  .workspace-status { flex-direction: column; gap: 4px; padding: 10px 16px; text-align: center; }
  .demo-controls { gap: 3px; }
  .demo-controls button { padding-inline: 10px; }
}

/* Lead with the Mac app, then let the example demonstrate the comparison. */
.browser-workspace { height: auto; min-height: 100dvh; }
.workspace-header { min-height: 64px; }
.workspace-guide { margin-left: auto; font-size: 13px; color: #626b79; text-decoration: none; }
.workspace-guide:hover { color: #3659b3; }
.workspace-header .nav-btn { margin-left: 0; }
.product-intro { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; width: 100%; max-width: 1120px; margin-inline: auto; padding: 36px 28px 28px; }
.product-intro h1 { display: block; font-size: clamp(34px, 4vw, 48px); font-weight: 800; line-height: 1.08; letter-spacing: -1.5px; color: #0d0d0d; }
.intro-copy > p { font-size: 15px; line-height: 1.7; color: #626b79; max-width: 520px; }
.intro-copy .btn-download { display: inline-flex; align-items: center; justify-content: center; margin-top: 18px; font-size: 13px; text-decoration: none; }
.intro-copy > .intro-trust { margin-top: 12px; font-size: 11px; color: #596171; }
.workspace-toolbar { width: 100%; max-width: 1120px; margin-inline: auto; }
.demo-instruction h2 { font-size: 14px; font-weight: 600; color: #343b47; line-height: 1.5; }
.demo-instruction p { margin-top: 3px; font-size: 12px; line-height: 1.6; }
.workspace-body { flex: 1 0 auto; min-height: clamp(320px, 44dvh, 520px); }
.workspace-stage { min-height: inherit; }
.native-bridge, .benefits { text-align: center; }
.native-bridge h2, .benefits h2 { font-size: clamp(30px, 5vw, 40px); font-weight: 800; line-height: 1.1; letter-spacing: -1.5px; }
.native-bridge p { max-width: 510px; margin: 20px auto 24px; font-size: 15px; line-height: 1.75; color: #626b79; }
.native-bridge .btn-download { display: inline-flex; font-size: 13px; text-decoration: none; }
.benefit-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; text-align: left; }
.benefit-cards h3 { font-size: 15px; line-height: 1.45; font-weight: 600; }
.benefit-cards p { margin-top: 10px; color: #626b79; font-size: 13px; line-height: 1.75; }
.native-proof { margin: 28px 0 0; }
.native-proof img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid #e1e5ec; }
.native-proof figcaption { max-width: 510px; margin: 14px auto 0; font-size: 11px; color: #626b79; line-height: 1.7; }
.more-shortcuts { width: 100%; text-align: left; }
.more-shortcuts > summary { display: flex; align-items: center; justify-content: center; gap: 10px; width: fit-content; margin: 0 auto; border: 1px solid #dfe3ec; border-radius: 999px; padding: 10px 16px; font-size: 13px; font-weight: 500; color: #3659b3; background: #f4f6fc; cursor: pointer; list-style: none; }
.more-shortcuts > summary::-webkit-details-marker { display: none; }
.more-shortcuts > summary:hover { background: #eaf0ff; }
.shortcuts-hide { display: none; }
.more-shortcuts[open] .shortcuts-show { display: none; }
.more-shortcuts[open] .shortcuts-hide { display: inline; }
.shortcut-expand-icon { transition: transform 180ms ease; }
.more-shortcuts[open] .shortcut-expand-icon { transform: rotate(45deg); }
.shortcuts-expanded { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.cta h2 { max-width: 560px; line-height: 1.15; }
@media(max-width: 760px) {
  .product-intro { grid-template-columns: 1fr; gap: 18px; padding: 28px 24px 20px; text-align: center; }
  .intro-copy > p { margin-inline: auto; }
  .benefit-cards { grid-template-columns: 1fr; gap: 22px; }
  .benefit-cards article { padding-left: 18px; border-left: 2px solid #dce5fb; }
}
@media(max-width: 620px) {
  .workspace-header { min-height: 64px; }
  .workspace-guide { display: none; }
  .workspace-header .nav-btn { margin-left: auto; }
  .workspace-toolbar { text-align: center; }
  .workspace-body { min-height: 320px; }
  .workspace-tip { max-width: calc(100% - 24px); font-size: 10px; }
}
@media(prefers-reduced-motion: reduce) { .shortcut-expand-icon { transition: none; } }

/* A small, guided comparison supports the hero instead of acting like a full editor. */
.browser-workspace { min-height: 0; height: auto; }
.product-intro { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 44px 24px 24px; text-align: center; }
.product-intro h1 { font-size: clamp(36px, 4.5vw, 52px); max-width: 720px; }
.intro-copy > p { max-width: 600px; margin-inline: auto; }
.intro-copy .btn-download { margin-top: 20px; }
.workspace-toolbar { max-width: 960px; padding: 16px 0; width: calc(100% - 48px); }
.workspace-body { flex: none; width: calc(100% - 48px); max-width: 960px; height: clamp(320px, 46dvh, 480px); min-height: 0; padding: 0; margin-inline: auto; }
.workspace-stage { height: 100%; min-height: 0; }
.workspace-status { max-width: 960px; margin-inline: auto; padding: 10px 0; width: calc(100% - 48px); min-height: 48px; }
.demo-controls .demo-align { background: #eaf0ff; border-color: #d3defa; color: #3659b3; }
.demo-controls .demo-align:hover { background: #dfe8ff; }
@media(max-width: 620px) {
 .product-intro { padding-top: 30px; }
 .workspace-toolbar { align-items: center; padding-block: 14px; }
 .workspace-body { height: 320px; min-height: 0; }
 .workspace-status { flex-direction: row; text-align: left; gap: 12px; }
}

.workspace-overlay.is-aligning { transition: transform 280ms cubic-bezier(.2,.8,.2,1); }
@media(prefers-reduced-motion: reduce) { .workspace-overlay.is-aligning { transition: none; } }

/* Pair product evidence with a calm, readable benefit list. */
main > section.benefits { max-width: 1040px; }
.benefits > .section-subheadline { max-width: 520px; }
.benefit-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 48px; margin-top: 36px; }
.benefit-layout .native-proof { margin: 0; min-width: 0; }
.native-proof-frame { padding: 24px; border: 1px solid #e1e6f0; border-radius: 24px; background: linear-gradient(145deg, #f1f4fb, #f7f7fb); }
.native-proof-frame img { border-radius: 12px; box-shadow: 0 12px 28px #22355516; }
.benefit-layout .native-proof figcaption { margin-top: 14px; font-size: 11px; }
.benefit-layout .benefit-cards { display: flex; flex-direction: column; gap: 0; margin: 0; }
.benefit-cards article { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 16px; padding: 22px 0; border: 0; }
.benefit-cards article + article { border-top: 1px solid #e4e8ef; }
.benefit-icon, .workflow-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #dfe6f5; border-radius: 12px; background: #f1f5ff; color: #4965ba; flex-shrink: 0; }
.section-icon { display: block; width: 22px; height: 22px; }
.benefit-cards h3 { font-size: 16px; line-height: 1.45; }
.benefit-cards p { margin-top: 7px; font-size: 14px; line-height: 1.7; }
/* Keep the workflow visual and scannable without numbered badges. */
main > section.how-it-works { max-width: 960px; }
.how-it-works > .section-subheadline { max-width: 520px; }
.workflow-steps { gap: 20px; margin-top: 32px; }
.workflow-steps li { display: flex; flex-direction: column; align-items: stretch; padding: 24px; gap: 20px; border-radius: 20px; background: #fff; border-color: #e1e5ed; box-shadow: 0 4px 16px #22355505; }
.workflow-copy { display: flex; flex-direction: column; flex: 1; }
.workflow-steps h3 { font-size: 17px; line-height: 1.4; margin-bottom: 9px; }
.workflow-steps p { font-size: 14px; line-height: 1.75; margin-bottom: 22px; }
.workflow-keys { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: auto; padding-top: 16px; border-top: 1px solid #edf0f5; }
.workflow-keys > span { display: inline-flex; align-items: center; gap: 6px; color: #626b79; font-size: 11px; white-space: nowrap; }
.workflow-keys kbd { display: inline-block; padding: 3px 5px; border: 1px solid #e0e4ec; border-bottom-width: 2px; border-radius: 5px; background: #f8f9fc; font-family: ui-monospace, monospace; font-size: 10px; }
.how-it-works .secondary-button { margin-top: 28px; }
@media(max-width: 900px) { .workflow-steps { gap: 12px; } .workflow-steps li { padding: 20px; } .benefit-layout { gap: 28px; } }
@media(max-width: 760px) {
 .benefit-layout { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
 .benefit-layout .native-proof { max-width: 560px; width: 100%; margin-inline: auto; }
 .benefit-layout .benefit-cards { max-width: 560px; margin-inline: auto; }
 .benefit-cards article { padding: 20px 0; }
 .workflow-steps { grid-template-columns: 1fr; gap: 14px; }
 .workflow-steps li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 18px; padding: 22px; }
 .workflow-steps p { margin-bottom: 18px; }
}

/* Benefits use their own layout; product examples stay inside the interactive browser demo. */
.benefit-layout { display: block; margin-top: 32px; }
.benefit-layout .benefit-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: none; }
.benefit-cards article { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 28px; border: 1px solid #e1e5ed; border-radius: 20px; background: linear-gradient(145deg, #fff, #f7f9fd); }
.benefit-cards article + article { border-top: 1px solid #e1e5ed; }
.benefit-cards h3 { font-size: 17px; }
.benefit-cards p { margin-top: 10px; }
@media(max-width: 760px) {
 .benefit-layout .benefit-cards { grid-template-columns: 1fr; gap: 14px; }
 .benefit-cards article { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 18px; padding: 22px; }
}

/* Restore the production hero and floating navigation. */
.product-intro { padding-top: 112px; padding-bottom: 20px; }
.product-intro h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 800; letter-spacing: -2px; line-height: 1.05; }
.intro-copy > p { max-width: 400px; font-size: 17px; line-height: 1.55; }
.intro-copy > .intro-trust { margin-top: 12px; font-size: 11px; }
.demo-instruction p { margin: 0; }
.quick-faq > h2 { margin-bottom: 24px; }
.shortcut-row { min-height: 58px; }
@media(max-width: 620px) { .product-intro { padding-top: 112px; } }

/* The comparison is a self-contained section below the production hero. */
main > section.landing-hero { padding-bottom: 0; }
.demo-heading { width: calc(100% - 48px); max-width: 680px; margin: 0 auto 24px; text-align: center; }
.demo-heading h2 { font-size: clamp(30px, 5vw, 40px); font-weight: 800; line-height: 1.15; }
.demo-heading p { max-width: 460px; margin: 16px auto 0; font-size: 15px; line-height: 1.7; color: #626b79; }
.comparison-demo .workspace-status { font-size: 12px; line-height: 1.7; padding-block: 14px; align-items: flex-start; }
.comparison-demo .workspace-status > span { max-width: 680px; }
.comparison-demo .workspace-status > button { flex-shrink: 0; }

.comparison-feature { text-align: center; }
.comparison-feature h2 { font-size: clamp(30px, 5vw, 40px); font-weight: 800; line-height: 1.15; }
.comparison-feature p { max-width: 480px; margin: 18px auto 0; font-size: 15px; line-height: 1.7; color: #626b79; }
.comparison-feature .comparison-detail { margin-top: 12px; font-size: 13px; }

main > section.privacy-note { max-width: 820px; display: grid; grid-template-columns: minmax(0, 1fr) 240px; align-items: center; gap: 40px; padding: 36px; border: 1px solid #e1e6f0; border-radius: 24px; background: #fafbfe; text-align: left; }
.privacy-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.privacy-graphic { display: block; width: 100%; height: auto; }
@media(max-width: 620px) {
 main > section.privacy-note { grid-template-columns: 1fr; gap: 20px; padding: 28px 24px; text-align: center; }
 .privacy-copy { align-items: center; }
 .privacy-graphic { width: 180px; margin-inline: auto; grid-row: 1; }
}

/* Share the homepage's shortcut rows, keycaps, and optically sized glyphs. */
#workspace-help { max-width: 600px; padding: 0; overflow: hidden; border-radius: 24px; }
#workspace-help[open] { display: flex; flex-direction: column; }
#workspace-help .help-heading { align-items: flex-start; gap: 20px; padding: 24px 24px 20px; flex-shrink: 0; }
#workspace-help .help-heading h2 { font-size: 24px; line-height: 1.25; }
#workspace-help #workspace-help-intro { margin: 10px 0 0; max-width: 400px; font-size: 12px; }
#workspace-help .modal-close { display: grid; place-items: center; width: 40px; height: 40px; min-height: 40px; padding: 0; flex: 0 0 40px; border: 1px solid #e1e5ed; border-radius: 50%; background: #f5f7fb; color: #626b79; transition: background 150ms ease, color 150ms ease; }
#workspace-help .modal-close:hover { background: #e9eef9; color: #3659b3; }
#workspace-help .modal-close:focus-visible { outline: 2px solid #365edc; outline-offset: 3px; }
.help-shortcuts-body { overflow-y: auto; min-height: 0; padding: 0 16px 20px; overscroll-behavior: contain; }
.help-shortcuts-body .shortcut-group { margin: 0; }
.help-shortcuts-body .shortcut-group + .shortcut-group { margin-top: 14px; }
.help-shortcut-list { list-style: none; margin: 0; padding: 0; }
#workspace-help .shortcut-row { grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); min-height: 54px; padding: 10px 8px; gap: 12px; }
#workspace-help .shortcut-name { font-size: 13px; }
#workspace-help .help-footnote { margin: 18px 8px 0; font-size: 11px; line-height: 1.7; }
@media(max-width: 520px) {
 #workspace-help .help-heading { padding: 22px 18px 18px; gap: 12px; }
 #workspace-help .help-heading h2 { font-size: 21px; }
 .help-shortcuts-body { padding-inline: 10px; }
 #workspace-help .shortcut-row { grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: 10px; padding-inline: 2px; }
 #workspace-help .shortcut-name { font-size: 12px; }
}
@media(prefers-reduced-motion: reduce) { #workspace-help .modal-close { transition: none; } }

.help-shortcuts-body { scrollbar-gutter: stable both-edges; }
#workspace-help .shortcut-row { align-items: center; }
#workspace-help .help-footnote { text-align: center; }
