@font-face { font-family: Outfit; src: url(fonts/outfit-regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Outfit; src: url(fonts/outfit-medium.ttf) format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: Outfit; src: url(fonts/outfit-semibold.ttf) format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Outfit; src: url(fonts/outfit-bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(fonts/jetbrains-mono.ttf) format('truetype'); font-weight: 400; font-display: swap; }

/* Light silver surfaces and graphite type preserve the macOS brand. Layers: content 0, navigation 10, dialogs 10000.
   Shape scale: 6px controls, 16px panels, pill primary actions. */
:root {
  color-scheme: light;
  --page: #f8f9fb;
  --surface: #ffffff;
  --surface-muted: #f1f3f6;
  --ink: #24272e;
  --accent: #315bb8;
  --accent-soft: #e9efff;
  --black: var(--page);
  --white: var(--ink);
  --grey-100: #383e49;
  --grey-200: #555b66;
  --grey-300: #69707c;
  --grey-400: #69707c;
  --grey-500: #747a85;
  --grey-700: #dce0e7;
  --grey-900: #ffffff;
  --glass-bg: #25283205;
  --glass-border: #25283212;
  --glass-border-hover: #25283226;
  --mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --press-duration: 160ms;
  --state-duration: 200ms;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-font-smoothing: antialiased; }
body { background: var(--page); color: var(--ink); font-family: Outfit, -apple-system, BlinkMacSystemFont, sans-serif; line-height: 1.6; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
kbd { font-family: var(--mono); }
::selection { background: #d6deea; color: var(--white); }
:focus-visible { outline: 2px solid var(--accent) !important; outline-offset: 5px; }
button:disabled { cursor: default; opacity: .4; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10001; padding: 10px 18px; border-radius: 8px; background: var(--white); color: var(--black); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.container { width: min(100% - 96px, 1120px); margin-inline: auto; }

nav { position: sticky; top: 0; z-index: 10; height: 72px; display: flex; justify-content: space-between; align-items: center; padding-inline: max(48px, calc((100vw - 1120px) / 2)); background: #f8f9fbea; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid #25283209; }
.nav-logo { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; letter-spacing: -.035em; }
.nav-logo img { width: 25px !important; height: 25px !important; border-radius: 7px !important; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 12px; color: var(--grey-200); transition: color var(--state-duration) ease; }
.nav-links .nav-cta { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 9px 18px; border: 1px solid #315bb8; border-radius: 99px; background: var(--accent); color: #fff; font-weight: 500; box-shadow: 0 2px 7px #315bb81a; }
.nav-menu { display: none; }

.hero { padding: 52px 0 62px; }
.hero-copy { text-align: center; max-width: 980px; margin-inline: auto; }
.hero-badge { display: flex; justify-content: center; align-items: center; gap: 9px; font-size: 11px; color: var(--grey-200); margin-bottom: 24px; }
.hero-badge > span { height: 23px; width: 23px; display: grid; place-items: center; font-size: 14px; background: #25283206; border: 1px solid var(--glass-border); border-radius: 6px; }
.hero h1 { display: flex; flex-direction: column; gap: clamp(10px, 1.5vw, 20px); font-size: clamp(48px, 6.1vw, 78px); font-weight: 500; line-height: 1.2; letter-spacing: -.055em; margin-bottom: 28px; font-optical-sizing: auto; }
.hero-title-line { display: block; line-height: 1.2; white-space: nowrap; }
.hero-title-line:last-child { color: #79808d; }
.rotating-word { display: inline-grid; vertical-align: baseline; padding: .015em .1em .055em; color: var(--accent); background: var(--accent-soft); border-radius: .12em; font-weight: 600; line-height: 1.2; text-align: left; overflow: hidden; }
.rotating-word > span { grid-area: 1 / 1; opacity: 0; }
.rotating-word > span:first-child { opacity: 1; }
.hero-sub { font-size: 16px; color: var(--grey-200); line-height: 1.65; margin-inline: auto; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 24px; }
.btn-primary, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 12px 21px; border: 1px solid transparent; border-radius: 99px; font-size: 12px; font-weight: 500; white-space: nowrap; line-height: 1.3; transition: transform var(--press-duration) var(--ease), background var(--state-duration) ease, border-color var(--state-duration) ease; }
.btn-primary { color: #fafbfc; background: var(--accent); box-shadow: inset 0 1px 0 #ffffff20, 0 3px 10px #315bb826; }
.btn-ghost { background: #25283204; border-color: var(--glass-border); color: var(--grey-100); }
.hero .btn-ghost { border-color: transparent; background: none; }
.btn-primary > span[aria-hidden] { font-size: 18px; line-height: 1; }
.play-icon { font-size: 20px; }
.btn-primary:active, .btn-ghost:active, .demo-run:active, .nav-cta:active { transform: scale(.97); }

/* The example is a working, deterministic comparison, never an AI request. */
.rewrite-demo { margin: 40px auto 0; max-width: 900px; border: 1px solid #2528321a; border-radius: 16px; background: var(--surface); box-shadow: 0 18px 50px #3341550c, 0 3px 10px #33415506, inset 0 1px 0 #fff; overflow: hidden; }
.demo-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 10px 20px; gap: 20px; border-bottom: 1px solid var(--glass-border); background: #fafbfc; }
.demo-app { display: flex; align-items: center; gap: 9px; color: var(--grey-200); font-size: 11px; }
.demo-app img { border-radius: 5px; }
.demo-modes { display: flex; align-items: center; gap: 3px; padding: 3px; background: #eceef2; border: 1px solid #25283209; border-radius: 8px; }
.demo-modes button { min-height: 28px; min-width: 75px; padding: 5px 12px; border: 0; border-radius: 5px; background: transparent; color: var(--grey-300); font-size: 11px; transition: background var(--state-duration) ease, color var(--state-duration) ease; }
.demo-modes button[aria-pressed=true] { color: var(--ink); background: #ffffff; box-shadow: 0 1px 4px #3341551a, inset 0 1px 0 #fff; }
.demo-comparison { display: grid; grid-template-columns: 1fr 1fr; }
.demo-before, .demo-after { min-width: 0; padding: 24px 28px 26px; min-height: 172px; }
.demo-before { position: relative; border-right: 1px solid var(--glass-border);  background: #f8f9fb; }
.demo-before::after { content: '→'; position: absolute; top: 50%; right: -12px; z-index: 1; width: 23px; height: 23px; display: grid; place-items: center; background: #ffffff; border: 1px solid #2528321a; border-radius: 50%; color: var(--grey-200); font-size: 12px; }
.demo-after { background: var(--surface); }
.demo-panel-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--grey-200); font-size: 10px; margin-bottom: 17px; }
.demo-panel-label > span:last-child { font-size: 9px; color: var(--grey-300); }
.demo-source, .demo-text { font-size: 15px; line-height: 1.8; text-align: left; }
.demo-source { color: #555b66; }
.demo-text { color: var(--white); }
.demo-text.is-placeholder { color: #69707c; }
.demo-bottom-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 11px 20px; border-top: 1px solid var(--glass-border); }
.demo-footnote { display: flex; align-items: center; gap: 18px; font-size: 10px; color: var(--grey-300); }
.demo-footnote button { background: transparent; border: 0; padding: 6px 0; color: var(--grey-200); font-size: 10px; }
.demo-run { position: relative; display: flex; align-items: center; gap: 20px; padding: 7px 8px 7px 15px; min-height: 36px; background: var(--accent); color: #fafbfc; border: 0; border-radius: 8px; font-size: 11px; font-weight: 500; transition: transform var(--press-duration) var(--ease); }
.demo-shortcut { display: flex; gap: 3px; }
.demo-shortcut kbd { display: grid; place-items: center; width: 21px; height: 23px; background: #ffffff12; border: 1px solid #ffffff25; border-radius: 4px; font-size: 10px; line-height: 1; box-shadow: 0 1px 0 #00000012; }

.compatibility-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 25px 0; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }
.works-anywhere { display: flex; align-items: center; gap: 32px; }
.works-anywhere-label { font-size: 11px; color: var(--grey-300); max-width: 100px; line-height: 1.5; }
.works-anywhere-logos { display: flex; align-items: center; gap: 26px; }
.works-anywhere-logo { display: flex; align-items: center; filter: grayscale(1); opacity: .65; transition: opacity var(--state-duration) ease; }
.works-anywhere-logo svg { width: 23px; height: 23px; }
.compatibility-platform { font-size: 10px; text-align: right; color: var(--grey-100); line-height: 1.8; }
.compatibility-platform span { color: var(--grey-300); }

section:not(.hero, .compatibility) { padding: 104px 0; }
.section-title { font-size: clamp(34px, 4.3vw, 52px); font-weight: 500; line-height: 1.1; letter-spacing: -.045em; margin-bottom: 20px; }
.section-title span { color: #8d8d98; }
.section-subtitle { font-size: 15px; color: var(--grey-200); line-height: 1.75; max-width: 430px; }
.section-label { display: block; color: var(--grey-200); font-size: 10px; margin-bottom: 20px; }
.how-header { text-align: center; margin-bottom: 48px; }
.how-header .section-title br { display: none; }
.how-header .section-title br::after { content: ' '; }
.how-header .section-subtitle { margin-inline: auto; max-width: 490px; }
.workflow-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 76px; align-items: center; }
.shortcut-stage { min-width: 0; width: 100%; padding: 28px; border: 1px solid var(--glass-border); border-radius: 18px; background: var(--surface); box-shadow: 0 12px 40px #33415508; }
.shortcut-caption { color: var(--grey-200); font-size: 13px; text-align: center; }
.shortcut-trigger { display: block; width: 100%; margin: 28px 0; padding: 0; color: var(--ink); border: 0; border-radius: 14px; background: transparent; }
.shortcut-keyboard { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 4px 2px 14px; }
.shortcut-key { position: relative; display: flex; align-items: flex-start; flex-direction: column; justify-content: space-between; width: 90px; height: 100px; padding: 15px; border: 1px solid #cdd3dd; border-radius: 13px; background: linear-gradient(155deg, #ffffff, #f0f2f6); box-shadow: 0 5px 0 #d8dde6, 0 6px 0 #b8c1ce, 0 10px 14px #33415512, inset 0 1px 0 #fff; transform: translateY(0); }
.shortcut-key--command { width: 120px; }
.shortcut-key > span { font-size: 35px; line-height: 1; font-weight: 400; letter-spacing: -.04em; }
.shortcut-key > small { color: var(--grey-200); font-size: 9px; }
.shortcut-hint { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; color: var(--accent); font-size: 11px; }
.shortcut-example { padding: 18px; border: 1px solid #dce2ec; border-radius: 10px; background: #f8f9fc; }
.shortcut-example-label { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 13px; font-size: 9px; color: var(--grey-300); }
.shortcut-example-label > span:first-child { font-family: var(--mono); font-size: 8px; letter-spacing: .06em; }
.shortcut-example p { min-height: 48px; font-size: 14px; line-height: 1.7; }
.shortcut-example p.is-selected { color: #284a8b; text-decoration: underline; text-decoration-color: #bfd0f7; text-decoration-thickness: .45em; text-underline-offset: -.32em; text-decoration-skip-ink: none; }
.shortcut-stage.is-complete #shortcutState { color: var(--accent); }
.steps { display: grid; gap: 30px; }
.step { position: relative; padding-left: 45px; }
.step-number { position: absolute; top: 2px; left: 0; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #2528321c; border-radius: 50%; color: var(--grey-300); font-family: var(--mono); font-size: 10px; }
.step.is-active .step-number { color: var(--accent); background: var(--accent-soft); border-color: #c9d8fa; }
.step h3 { font-size: 17px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 6px; }
.step p { color: var(--grey-200); font-size: 13px; line-height: 1.7; max-width: 300px; }
.key { padding: 2px 5px; font-family: var(--mono); font-size: 10px; border: 1px solid #2528321a; border-radius: 4px; background: #25283207; }

.instructions { background: #f1f3f6; border-block: 1px solid var(--glass-border); }
.instructions-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.instructions-content { display: flex; flex-direction: column; gap: 25px; }
.instructions-content > div:first-child { margin-bottom: 8px; }
.instruction-point { display: flex; gap: 15px; }
.instruction-point-icon { padding-top: 3px; color: var(--grey-200); }
.instruction-point-icon svg { width: 18px; height: 18px; }
.instruction-point h3 { font-size: 13px; font-weight: 500; margin-bottom: 5px; }
.instruction-point p { color: var(--grey-300); font-size: 12px; line-height: 1.8; max-width: 350px; }
.menu-stage { max-width: 420px; width: 100%; justify-self: end; padding: 18px; border: 1px solid var(--glass-border); border-radius: 20px; background: #ffffff; box-shadow: 0 16px 44px #3341550d, inset 0 1px 0 #fff; }
.menu-stage-caption { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--grey-100); padding: 0 5px 18px; }
.menu-stage-caption img { border-radius: 5px; }
.menu-stage-hint { margin-left: auto; font-size: 10px; color: var(--grey-300); }
.menu-mockup { position: relative; isolation: isolate; padding: 5px; border: 1px solid #25283212; border-radius: 12px; background: #f2f4f7; box-shadow: inset 0 1px 2px #33415506; }
.menu-mockup-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; width: 100%; min-height: 42px; border: 0; border-radius: 7px; background: transparent; color: var(--grey-200); text-align: left; transition: background var(--state-duration) ease, color var(--state-duration) ease; }
.menu-mockup-highlight { position: absolute; z-index: -1; top: 5px; left: 5px; right: 5px; height: 42px; border-radius: 7px; background: #dbe6ff; border: 1px solid #b9cdf6; box-shadow: 0 3px 8px #315bb81c; pointer-events: none; transition: transform 650ms cubic-bezier(0.77, 0, 0.175, 1); }
.menu-mockup-item--active { color: var(--accent); }
.demo-cursor { position: absolute; z-index: 1; left: 34px; top: 20px; width: 22px; height: 26px; opacity: 0; pointer-events: none; }
.demo-cursor svg { display: block; width: 100%; height: 100%; }
.menu-mockup-icon { width: 17px; text-align: center; font-size: 14px; }
.menu-mockup-label { flex: 1; font-size: 12px; }
.menu-mockup-item kbd { font-size: 10px; opacity: .65; }
.preset-preview { min-height: 115px; padding: 22px 14px 10px; }
.preset-preview-label { display: block; margin-bottom: 12px; color: var(--grey-300); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; }
.preset-preview p { font-size: 15px; line-height: 1.7; color: var(--grey-100); }
.menu-stage-footer { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--glass-border); font-size: 10px; text-align: center; color: var(--grey-300); }

.features-header { margin-bottom: 48px; }
.features-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.feature-card { grid-column: span 3; min-width: 0; padding: 25px 12px 0 0; }
.feature-card:nth-child(1) { grid-column: span 7; padding: 32px; background: linear-gradient(140deg, #fff, #f1f3f7); border: 1px solid var(--glass-border); border-radius: 16px; }
.feature-card:nth-child(2) { grid-column: span 5; padding: 32px; background: #eef1f5; border: 1px solid var(--glass-border); border-radius: 16px; }
.feature-icon { color: var(--grey-200); margin-bottom: 22px; }
.feature-icon svg { width: 23px; height: 23px; }
.feature-card h3 { font-size: 16px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 10px; }
.feature-card p { font-size: 12px; line-height: 1.85; color: var(--grey-300); }
.feature-apps { display: flex; gap: 22px; padding-top: 28px; }
.feature-apps .works-anywhere-logo { opacity: .55; }
.feature-apps .works-anywhere-logo svg { width: 25px; height: 25px; }
.feature-card:nth-child(2) .feature-icon { display: grid; place-items: center; height: 46px; width: 42px; background: #25283205; border: 1px solid #25283212; border-radius: 11px; margin-bottom: 25px; box-shadow: 0 4px 12px #3341550b; }

.providers { border-block: 1px solid var(--glass-border); background: #f1f3f6; }
.providers .container { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }
.providers .section-title { font-size: 40px; }
.providers .section-subtitle { font-size: 13px; }
.provider-logos { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.provider-logo { display: flex; align-items: center; flex-direction: column; gap: 15px; }
.provider-logo-icon { display: grid; place-items: center; width: 56px; height: 46px; filter: grayscale(1); opacity: .8; }
.provider-logo-icon svg { width: 42px; height: 42px; }
.provider-logo span { font-size: 12px; color: var(--grey-200); }


.cta { text-align: center; border-top: 1px solid var(--glass-border); background: radial-gradient(ellipse at 50% 80%, #dce2ec66, transparent 65%); }
.cta-logo { border-radius: 13px; box-shadow: 0 8px 20px #3341550f; margin-bottom: 24px; }
.cta h2 { font-size: clamp(38px, 5vw, 62px); font-weight: 500; line-height: 1.1; letter-spacing: -.045em; margin-bottom: 20px; }
.cta h2 span { color: #8d8d98; }
.cta p { color: var(--grey-200); font-size: 14px; }
.cta .hero-actions { margin-top: 28px; }
.featured-badge { text-align: center; padding: 20px 0; }
.featured-badge img { width: 150px; opacity: .55 !important; }
footer { border-top: 1px solid var(--glass-border); padding: 30px 0; }
.footer-inner { display: flex; flex-direction: column; gap: 25px; }
.footer-left { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-brand { font-size: 14px; font-weight: 500; letter-spacing: -.03em; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 11px; color: var(--grey-300); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-right { color: var(--grey-300); font-size: 10px; }

.field-label { display: block; text-align: left; margin-bottom: 6px; font-size: 12px; color: var(--grey-200); }
[role=dialog] { z-index: 10000 !important; }
[role=dialog] > div { max-height: calc(100dvh - 60px); overflow-y: auto; }
#videoModal > div { overflow: visible; }
[role=dialog] input { min-height: 44px; font-size: 16px !important; }
[role=dialog] input::placeholder { color: var(--grey-300); }
[role=dialog] button { min-height: 40px; }
.reveal { opacity: 1; transform: none; }
.motion-ready .reveal { opacity: 0; transform: translateY(12px); transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.motion-ready .reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 40ms; }
.reveal-delay-2 { transition-delay: 80ms; }
.reveal-delay-3 { transition-delay: 120ms; }

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover, .footer-links a:hover { color: var(--white); }
  .nav-links .nav-cta:hover { background: #264da5; border-color: #264da5; color: #fff; }
  .btn-primary:hover { background: #264da5; }
  .btn-ghost:hover { background: #25283209; border-color: #25283225; }
  .works-anywhere-logo:hover { opacity: 1; }
  .menu-mockup-item:not(.menu-mockup-item--active):hover { color: var(--white); background: #25283208; }
  .demo-modes button:not([aria-pressed=true]):hover { color: var(--white); }
  .demo-footnote button:not(:disabled):hover { color: var(--white); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: enter 600ms var(--ease) both; }
  .rewrite-demo { animation: enter 600ms 80ms var(--ease) both; }
  .rotating-word > span { animation: rotate-word 15s var(--ease) infinite; }
  .rotating-word > span:nth-child(2) { animation-delay: -10s; }
  .rotating-word > span:nth-child(3) { animation-delay: -5s; }
  .rotating-word.is-paused > span { animation-play-state: paused; }
  @keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
  /* Hold for reading; the outgoing word clears before the next enters. */
  @keyframes rotate-word {
    0%, 31% { opacity: 1; transform: translateY(0); }
    33.333%, 97.667% { opacity: 0; transform: translateY(-100%); }
    97.668% { opacity: 0; transform: translateY(100%); }
    100% { opacity: 1; transform: translateY(0); }
  }
}
@media (max-width: 1100px) {
  .container { width: calc(100% - 64px); }
  nav { padding-inline: 32px; }
  .workflow-layout { gap: 44px; }
  .instructions-layout { gap: 60px; }
}
@media (max-width: 800px) {
  .container { width: calc(100% - 40px); }
  nav { height: 64px; padding-inline: 20px; }
  .nav-links { gap: 18px; }
  .hero { padding: 44px 0 45px; }
  .hero h1 { font-size: clamp(38px, 6.6vw, 54px); }
  .hero-sub { font-size: 15px; }
  .rewrite-demo { margin-top: 35px; }
  .demo-app { font-size: 10px; }
  .demo-before, .demo-after { padding: 20px; min-height: 200px; }
  .demo-source, .demo-text { font-size: 14px; }
  .demo-panel-label > span:last-child { display: none; }
  .compatibility-inner { gap: 24px; }
  .works-anywhere { gap: 25px; }
  .works-anywhere-logos { gap: 20px; }
  section:not(.hero, .compatibility) { padding: 76px 0; }
  .section-title { font-size: 40px; }
  .workflow-layout { grid-template-columns: 1fr; gap: 36px; }
  .shortcut-stage { max-width: 580px; justify-self: center; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 25px; }
  .step { padding: 0; }
  .step-number { position: static; margin-bottom: 16px; }
  .step h3 { font-size: 15px; }
  .step p { font-size: 12px; }
  .instructions-layout { grid-template-columns: 1fr; gap: 42px; }
  .instructions-content { max-width: 540px; }
  .instruction-point p { max-width: 440px; }
  .menu-stage { justify-self: center; }
  .feature-card { grid-column: span 6; }
  .feature-card:nth-child(1), .feature-card:nth-child(2) { grid-column: span 6; padding: 25px; }
  .feature-apps { gap: 15px; }
  .feature-apps .works-anywhere-logo svg { width: 22px; height: 22px; }
  .providers .container { grid-template-columns: 1fr; gap: 40px; }
  .provider-logos { max-width: 400px; }
  .footer-left { align-items: flex-start; flex-direction: column; gap: 20px; }
}
@media (max-width: 540px) {
  .nav-logo { font-size: 15px; }
  .nav-menu { display: flex; align-items: center; gap: 10px; padding: 10px 0 10px 15px; color: var(--grey-100); border: 0; background: transparent; font-size: 12px; }
  .nav-menu span { font-size: 20px; line-height: 1; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 63px; padding: 16px 20px 22px; border-bottom: 1px solid var(--glass-border); background: #ffffff; gap: 4px; }
  .nav-links.is-open { display: flex; flex-direction: column; align-items: stretch; }
  .nav-links a { padding: 12px; min-height: 44px; font-size: 14px; }
  .nav-links .nav-cta { margin-top: 7px; text-align: center; }
  .hero { padding-top: 36px; }
  .hero-badge { font-size: 10px; margin-bottom: 22px; }
  .hero h1 { font-size: clamp(28px, 8.4vw, 44px); margin-bottom: 20px; }
  .hero-sub { font-size: 13px; line-height: 1.75; }
  .hero-actions { gap: 8px; flex-wrap: wrap; }
  .btn-primary, .btn-ghost { font-size: 11px; padding: 12px 15px; min-height: 44px; gap: 7px; }
  .hero .btn-ghost { padding-inline: 7px; }
  .play-icon { font-size: 18px; }
  .demo-topbar { gap: 10px; flex-direction: column; padding: 16px; }
  .demo-app { font-size: 11px; }
  .demo-modes { width: 100%; }
  .demo-modes button { flex: 1; min-width: 0; min-height: 36px; }
  .demo-comparison { grid-template-columns: 1fr; }
  .demo-before, .demo-after { padding: 20px; min-height: 140px; }
  .demo-before { border-right: 0; border-bottom: 1px solid var(--glass-border); }
  .demo-before::after { top: auto; bottom: -12px; right: 20px; transform: rotate(90deg); }
  .demo-panel-label { font-size: 10px; margin-bottom: 12px; }
  .demo-panel-label > span:last-child { display: inline; }
  .demo-source, .demo-text { font-size: 13px; line-height: 1.85; }
  .demo-bottom-bar { padding: 12px 14px; gap: 10px; }
  .demo-footnote { font-size: 9px; flex-direction: column; align-items: flex-start; gap: 0; }
  .demo-footnote button { font-size: 9px; }
  .demo-run { font-size: 10px; gap: 12px; }
  .demo-shortcut kbd { width: 18px; height: 22px; font-size: 9px; }
  .compatibility-inner { flex-direction: column; align-items: stretch; gap: 19px; padding-block: 22px; }
  .works-anywhere { justify-content: space-between; gap: 15px; }
  .works-anywhere-label { max-width: 85px; font-size: 10px; }
  .works-anywhere-logos { gap: 14px; }
  .works-anywhere-logo svg { width: 20px; height: 20px; }
  .compatibility-platform { text-align: left; font-size: 9px; }
  .compatibility-platform br { display: none; }
  .compatibility-platform span { margin-left: 10px; }
  section:not(.hero, .compatibility) { padding: 64px 0; }
  .section-title { font-size: 36px; }
  .section-subtitle { font-size: 14px; }
  .how-header { margin-bottom: 32px; text-align: left; }
  .how-header .section-title br { display: block; }
  .how-header .section-subtitle { margin: 0; }
  .steps { grid-template-columns: 1fr; gap: 25px; }
  .step { padding-left: 43px; }
  .step-number { position: absolute; }
  .step h3 { font-size: 16px; }
  .step p { font-size: 13px; max-width: none; }
  .shortcut-stage { padding: 22px 18px; }
  .shortcut-keyboard { gap: 10px; }
  .shortcut-key { width: 68px; height: 82px; padding: 12px; border-radius: 10px; }
  .shortcut-key--command { width: 92px; }
  .shortcut-key > span { font-size: 29px; }
  .shortcut-key > small { font-size: 8px; }
  .shortcut-example { padding: 15px; }
  .shortcut-example p { font-size: 13px; }
  .menu-stage { padding: 14px; }
  .menu-mockup-label { font-size: 11px; }
  .menu-mockup-item kbd { font-size: 9px; }
  .menu-mockup-item { gap: 9px; }
  .feature-card, .feature-card:nth-child(1), .feature-card:nth-child(2) { grid-column: 1 / -1; }
  .feature-card:nth-child(n+3) { padding: 20px 0 4px 40px; position: relative; }
  .feature-card:nth-child(n+3) .feature-icon { position: absolute; left: 0; top: 22px; }
  .feature-card:nth-child(n+3) .feature-icon svg { width: 20px; height: 20px; }
  .feature-card p { font-size: 13px; }
  .feature-apps { gap: 16px; }
  .features-header { margin-bottom: 34px; }
  .providers .section-title { font-size: 36px; }
  .cta h2 { font-size: 38px; }
  .cta p { font-size: 13px; }
  .footer-links { gap: 16px 20px; }
}
@media (prefers-reduced-transparency: reduce) { nav { background: var(--black); backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (prefers-contrast: more) { :root { --glass-border: #25283250; --grey-300: #555b66; } }
.keyboard-input :is(button, a) { transition: none; }
.keyboard-input :is(button, a):active { transform: none; }
.keyboard-input .reveal { opacity: 1 !important; transform: none !important; transition: none; }
@media (prefers-reduced-motion: reduce) {
  :root { --press-duration: 0ms; --state-duration: 100ms; }
  html { scroll-behavior: auto; }
  .menu-mockup-highlight { transition: none; }
  *, *::before, *::after { animation: none !important; }
  .btn-primary:active, .btn-ghost:active, .demo-run:active, .nav-cta:active { transform: none; }
  .motion-ready .reveal { opacity: 1; transform: none; }
  .rotating-word > span { opacity: 0; }
  .rotating-word > span:first-child { opacity: 1; }
}

/* Brand artwork uses its original geometry, adapted to the light surface. */
.works-anywhere-logo svg [fill="#FFFFFF"] { fill: #323843; }
.provider-logo-icon svg [fill]:not([fill="none"]) { fill: #626a78; }
.provider-logo-icon svg[fill]:not([fill="none"]) { fill: #626a78; }
#videoModal { background: #353c4dbb !important; }
#videoModal button { color: #fff !important; }

/* Explanatory motion: hold each press long enough to see the shortcut. */
.shortcut-key { transition: transform 160ms var(--ease), background 160ms ease, box-shadow 160ms ease, color 160ms ease; }
.shortcut-key.is-pressed { transform: translateY(6px) scale(.98); color: #fff; border-color: var(--accent); background: var(--accent); box-shadow: 0 1px 0 #203c7a, 0 2px 0 #203c7a; }
.shortcut-key.is-pressed small { color: #edf2ff; }
.demo-run.is-demo-pressed { transform: scale(.96); background: #24468d; }
.demo-shortcut kbd { transition: transform 160ms var(--ease), background 160ms ease, color 160ms ease; }
.demo-shortcut kbd.is-pressed { transform: translateY(3px); color: var(--accent); background: #fff; box-shadow: 0 0 0 2px #b8cdff; }
.shortcut-hint { min-height: 18px; }
.shortcut-example p { min-height: 72px; font-size: 17px; }
.is-writing::after { content: ''; display: inline-block; height: 1em; width: 2px; margin-left: 3px; background: var(--accent); vertical-align: -.12em; }
.menu-stage-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.menu-stage-footer button { color: var(--accent); padding: 8px 0; border: 0; background: transparent; font: inherit; }
#presetProgress { font-family: var(--mono); color: var(--accent); font-size: 10px; }
@media (prefers-reduced-motion: reduce) { .shortcut-key.is-pressed, .demo-run.is-demo-pressed, .demo-shortcut kbd.is-pressed { transform: none; } }
.language-switch { display: flex; gap: 3px; flex-shrink: 0; padding: 3px; border: 1px solid var(--glass-border); border-radius: 99px; }
.language-switch a { padding: 5px 7px; font-size: 10px; line-height: 1.2; color: var(--grey-200); border-radius: 99px; }
.language-switch a[aria-current] { background: var(--accent-soft); color: var(--accent); }
html[lang=fr] .hero h1 { font-size: clamp(36px, 5.1vw, 66px); }
html[lang=fr] .hero-title-line { white-space: normal; }
@media (max-width: 640px) { html[lang=fr] .hero h1 { font-size: clamp(28px, 7.7vw, 45px); } html[lang=fr] .hero-actions { flex-wrap: wrap; } }
.shortcut-example { padding: 0; overflow: hidden; }
.shortcut-example > .shortcut-example-label { padding: 16px 18px 0; align-items: flex-start; min-height: 46px; }
.shortcut-example-label #shortcutState { text-align: right; max-width: 65%; }
.shortcut-before, .shortcut-after { padding: 16px 18px 20px; }
.shortcut-before { border-bottom: 1px solid #dce2ec; }
.shortcut-version-label { display: block; margin-bottom: 10px; color: var(--grey-300); font-size: 10px; }
.shortcut-before p { min-height: 60px; font-size: 14px; color: #747c8b; }
.shortcut-after { min-height: 178px; background: #edf2ff; }
.shortcut-after .shortcut-version-label { color: var(--accent); font-weight: 500; }
.shortcut-after p { min-height: 112px; font-size: 20px; font-weight: 500; line-height: 1.6; color: #244eaa; }
.shortcut-after p.is-placeholder { font-size: 16px; font-weight: 400; color: #7e8ca8; }
.shortcut-stage:is(.is-rewriting, .is-complete) .shortcut-before p { text-decoration: line-through; text-decoration-color: #a5aeba; }
.rewrite-demo:is(.is-rewriting, .is-complete) .demo-after { background: #edf2ff; }
.rewrite-demo:is(.is-rewriting, .is-complete) .demo-text { color: #244eaa; font-size: 18px; font-weight: 500; }
@media (max-width: 480px) { .shortcut-after p { font-size: 18px; min-height: 144px; } .shortcut-after { min-height: 210px; } }
section.how-it-works { padding-top: 64px; }
.how-header { margin-bottom: 36px; }
.shortcut-stage { padding: 24px; }
.shortcut-trigger { margin: 16px 0; }
.shortcut-key { width: 78px; height: 84px; padding: 12px; }
.shortcut-key--command { width: 105px; }
.shortcut-key > span { font-size: 30px; }
.shortcut-before p { min-height: 0; }
.shortcut-example > .shortcut-example-label { min-height: 30px; padding: 14px 18px 0; }
