:root {
  --guide-bg: #f5f5f3;
  --guide-panel: #fff;
  --guide-panel-strong: #fafafa;
  --guide-ink: #141414;
  --guide-muted: #626262;
  --guide-line: rgb(20 20 20 / 14%);
  --guide-line-strong: rgb(20 20 20 / 28%);
  --guide-brand: #4340ff;
  --guide-accent: #c7ef00;
  --guide-radius-action: 3px;
  --guide-radius-panel: 4px;
  --guide-shadow: rgb(20 20 20 / 6%);
  --guide-shadow-hover: rgb(20 20 20 / 9%);
}

/* Shared navigation: one correct brand mark, one legible step-back action. */
.brand-lockup {
  top: 20px;
  left: 24px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: var(--guide-radius-action);
  color: white;
  background: #141414;
  box-shadow: 3px 3px 0 rgb(20 20 20 / 10%);
  transition:
    border-color 150ms ease,
    transform 150ms ease;
}

.brand-lockup:hover,
.brand-lockup:focus-visible {
  border-color: rgb(255 255 255 / 58%);
  background: #1c1c1c;
}

.brand-lockup:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.brand-lockup .brand-symbol {
  display: block;
  width: 34px;
  height: 34px;
}

.corner-action {
  top: 20px;
  right: 24px;
  display: inline-flex;
  width: auto;
  min-width: 88px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--guide-line-strong);
  border-radius: var(--guide-radius-action);
  color: var(--guide-ink);
  background: rgb(255 255 255 / 94%);
  box-sizing: border-box;
  box-shadow: 3px 3px 0 var(--guide-shadow);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  appearance: none;
  backdrop-filter: blur(16px);
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.corner-action:hover {
  border-color: rgb(20 20 20 / 46%);
  color: var(--guide-ink);
  background: white;
  box-shadow: 3px 3px 0 var(--guide-shadow-hover);
}

.corner-action:focus-visible {
  border-color: var(--guide-brand);
  color: var(--guide-ink);
  background: white;
  outline: 2px solid var(--guide-ink);
  outline-offset: 3px;
}

/* Brand-owned onboarding surfaces use the public Docs visual language. */
.welcome-view,
.platform-view,
.signup-view,
.finish-os-view {
  color: var(--guide-ink);
  background: var(--guide-bg);
  color-scheme: light;
}

.welcome-view,
.platform-view {
  background: var(--guide-bg);
}

.welcome-view::before,
.platform-view::before,
.signup-view::before,
.finish-os-view::before {
  background-image:
    linear-gradient(rgb(20 20 20 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(20 20 20 / 4%) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 94%);
  opacity: 0.68;
}

.welcome-frame {
  width: min(1040px, calc(100% - 64px));
}

.choice-grid {
  gap: 14px;
}

.choice {
  min-height: clamp(136px, 17vh, 156px);
  justify-content: center;
  gap: 7px;
  padding: clamp(20px, 2.2vw, 25px) clamp(54px, 4.4vw, 64px)
    clamp(20px, 2.2vw, 25px) clamp(21px, 2.2vw, 26px);
  border: 1px solid var(--guide-line-strong);
  border-radius: var(--guide-radius-panel);
  color: var(--guide-ink);
  background: var(--guide-panel);
  box-shadow:
    inset 3px 0 0 var(--guide-brand),
    3px 3px 0 var(--guide-shadow);
  transition:
    border-color 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
}

.choice::before,
.choice:last-child::before {
  display: none;
}

.choice::after {
  right: 24px;
  bottom: 23px;
  width: 9px;
  height: 9px;
  opacity: 0.32;
  transition:
    opacity 220ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.choice:hover {
  border-color: rgb(20 20 20 / 46%);
  color: var(--guide-ink);
  background: #fdfdfc;
  box-shadow:
    inset 3px 0 0 var(--guide-brand),
    3px 3px 0 var(--guide-shadow-hover);
  outline: none;
  transform: none;
}

.choice:focus-visible {
  border-color: var(--guide-brand);
  color: var(--guide-ink);
  background: #fdfdfc;
  box-shadow:
    inset 3px 0 0 var(--guide-brand),
    3px 3px 0 var(--guide-shadow);
  outline: 2px solid var(--guide-ink);
  outline-offset: 3px;
  transform: none;
}

.choice:hover::after,
.choice:focus-visible::after {
  opacity: 0.74;
  transform: translateX(2px) rotate(45deg);
}

.choice-title {
  max-width: 470px;
  font-size: clamp(1.1rem, 1.7vw, 1.5rem);
  font-weight: 560;
  letter-spacing: -0.028em;
  line-height: 1.3;
}

.choice-index {
  position: absolute;
  top: 21px;
  right: 23px;
  color: var(--guide-brand);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
}

.choice-sub {
  margin-top: 2px;
  color: var(--guide-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.choice-title em,
.choice:hover .choice-title em,
.choice:focus-visible .choice-title em {
  color: var(--guide-brand);
}

.choice:hover .choice-sub,
.choice:focus-visible .choice-sub {
  color: var(--guide-muted);
}

/* Account hand-off keeps the same brand shell instead of changing themes. */
.signup-view {
  background: var(--guide-bg);
}

.browser-window {
  width: min(960px, calc(100% - 80px));
  min-height: min(560px, calc(100dvh - 112px));
  grid-template-rows: 38px 1fr;
  overflow: hidden;
  border: 1px solid var(--guide-line-strong);
  border-radius: var(--guide-radius-panel);
  background: var(--guide-panel);
  box-shadow: 4px 4px 0 var(--guide-shadow);
}

.window-bar {
  border-color: rgb(255 255 255 / 12%);
  color: rgb(255 255 255 / 62%);
  background: var(--guide-ink);
}

.signup-content {
  color: var(--guide-ink);
}

.signup-mark {
  width: 62px;
  height: 62px;
  border: 1px solid var(--guide-line-strong);
  border-radius: var(--guide-radius-panel);
  background: var(--guide-panel-strong);
  box-shadow: 3px 3px 0 var(--guide-shadow);
}

.signup-mark .brand-symbol {
  width: 39px;
  height: 39px;
}

.signup-content h1 {
  margin-top: 18px;
  color: var(--guide-ink);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 540;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.signup-content h1 span {
  color: var(--guide-brand);
}

.signup-content h1 .brand-name {
  color: var(--guide-ink);
}

.signup-instruction {
  margin-top: 14px;
  color: var(--guide-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.action {
  min-height: 42px;
  border: 1px solid var(--guide-line-strong);
  color: var(--guide-ink);
  background: var(--guide-panel);
  font-size: 0.78rem;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.action:hover {
  border-color: rgb(20 20 20 / 48%);
  color: var(--guide-ink);
  background: var(--guide-panel-strong);
  outline: none;
}

.action:focus-visible {
  border-color: var(--guide-brand);
  color: var(--guide-ink);
  background: var(--guide-panel-strong);
  outline: 2px solid var(--guide-ink);
  outline-offset: 3px;
}

.action.primary {
  border-color: var(--guide-ink);
  color: white;
  background: var(--guide-ink);
}

.action.primary:hover,
.action.primary:focus-visible {
  border-color: var(--guide-ink);
  color: white;
  background: #242424;
}

/* Platform chooser: quiet hierarchy, official system marks, one hover edge. */
.platform-frame {
  width: min(920px, calc(100% - 64px));
}

.platform-kicker,
.platform-view .os-kicker {
  color: var(--guide-brand);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.platform-title {
  max-width: 760px;
  margin: 11px 0 22px;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 540;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.platform-grid {
  gap: 14px;
}

.platform-choice {
  min-height: 200px;
  padding: 21px;
  overflow: hidden;
  border: 1px solid var(--guide-line-strong);
  border-radius: var(--guide-radius-panel);
  color: var(--guide-ink);
  background: var(--guide-panel);
  box-shadow: 3px 3px 0 var(--guide-shadow);
  transition:
    border-color 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
}

.platform-choice::before {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 0;
  display: block;
  width: 3px;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: var(--guide-brand);
  content: '';
  opacity: 0.76;
  pointer-events: none;
  transform: scaleY(0.3);
  transform-origin: top;
  transition:
    opacity 220ms ease,
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.platform-choice::after {
  right: 22px;
  bottom: 22px;
  width: 9px;
  height: 9px;
  opacity: 0.32;
  transition:
    opacity 220ms ease,
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.platform-choice:hover {
  border-color: rgb(20 20 20 / 46%);
  color: var(--guide-ink);
  background: #fdfdfc;
  box-shadow: 3px 3px 0 var(--guide-shadow-hover);
  outline: none;
  transform: none;
}

.platform-choice:focus-visible {
  border-color: var(--guide-brand);
  color: var(--guide-ink);
  background: #fdfdfc;
  box-shadow: 3px 3px 0 var(--guide-shadow);
  outline: 2px solid var(--guide-ink);
  outline-offset: 3px;
  transform: none;
}

.platform-choice:hover::before {
  opacity: 1;
  transform: scaleY(0.55);
}

.platform-choice:focus-visible::before {
  opacity: 1;
  transform: scaleY(1);
}

.platform-choice:hover::after,
.platform-choice:focus-visible::after {
  opacity: 0.74;
  transform: translateX(2px) rotate(45deg);
}

.platform-choice-head {
  align-items: center;
}

.platform-icon {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  color: white;
  box-shadow: none;
}

.platform-icon.mac {
  border-radius: 12px;
  color: white;
  background: #171717;
}

.platform-icon.windows {
  color: white;
  background: #0067c0;
}

.platform-icon.windows::before {
  display: none;
}

.system-logo {
  display: block;
  width: 25px;
  height: 25px;
}

.system-ui-icon {
  display: block;
  width: 24px;
  height: 24px;
}

.platform-choice h2 {
  margin: 18px 0 7px;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 620;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.platform-choice p {
  max-width: 380px;
  color: var(--guide-muted);
  font-size: 0.84rem;
  line-height: 1.58;
}

.platform-shortcut {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--guide-line);
  color: rgb(20 20 20 / 48%);
  font-size: 0.64rem;
  line-height: 1.4;
}

/* System rehearsal overlays use each OS accent, never the brand acid color. */
.mac-view {
  --system-accent: #0a84ff;
  --system-accent-rgb: 10 132 255;
  --lime: var(--system-accent);
  --lime-ink: white;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display',
    'SF Pro Text', var(--font-ui);
  background:
    radial-gradient(ellipse at 82% 13%, #dec4ff 0 15%, transparent 42%),
    radial-gradient(ellipse at 14% 82%, #73d8cf 0 17%, transparent 44%),
    radial-gradient(ellipse at 50% 43%, #f6dfbd 0 11%, transparent 38%),
    linear-gradient(145deg, #638cc4 0%, #7a99ca 42%, #416f97 100%);
}

.win-view {
  --system-accent: #0067c0;
  --system-accent-rgb: 0 103 192;
  --lime: var(--system-accent);
  --lime-ink: white;
  font-family: 'Segoe UI Variable', 'Segoe UI', var(--font-ui);
  background:
    radial-gradient(ellipse at 68% 31%, rgb(53 170 255 / 72%) 0 10%, transparent 36%),
    radial-gradient(ellipse at 39% 68%, rgb(25 104 210 / 75%) 0 15%, transparent 42%),
    linear-gradient(142deg, #071b3d 0%, #0b4c86 48%, #071a35 100%);
}

.os-view .brand-lockup {
  left: 24px;
  display: grid;
  width: 40px;
  height: 40px;
  gap: 0;
  font-size: 0;
  text-shadow: none;
}

.os-view .brand-symbol,
.mac-view.os-view .brand-symbol,
.win-view.os-view .brand-symbol {
  width: 31px;
  height: 31px;
}

.mac-view.os-view .brand-lockup {
  top: 50px;
}

.win-view.os-view .brand-lockup {
  top: 18px;
}

.mac-view.os-view .corner-action {
  top: 48px;
}

.mac-desktop-icons {
  top: 112px;
  right: 24px;
}

.win-view.os-view .corner-action {
  top: 16px;
}

.os-coach,
.mac-view .os-coach,
.win-view .os-coach {
  width: min(326px, calc(100% - 48px));
  padding: 15px 16px;
  border: 1px solid rgb(255 255 255 / 46%);
  border-radius: 12px;
  color: #1d1d1f;
  background: rgb(250 250 250 / 90%);
  box-shadow:
    0 14px 38px rgb(0 0 0 / 15%),
    inset 0 1px rgb(255 255 255 / 78%);
  backdrop-filter: blur(26px) saturate(1.28);
}

.mac-view .os-coach {
  top: 101px;
  border-color: rgb(255 255 255 / 52%);
  border-radius: 13px;
  background: rgb(250 250 250 / 88%);
}

.win-view .os-coach {
  top: 73px;
  border-color: rgb(255 255 255 / 38%);
  border-radius: 8px;
  background: rgb(246 249 252 / 92%);
  box-shadow:
    0 12px 34px rgb(0 0 0 / 17%),
    inset 0 1px rgb(255 255 255 / 72%);
}

.os-coach .os-kicker,
.mac-view .os-coach .os-kicker,
.win-view .os-coach .os-kicker {
  color: var(--system-accent);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.os-coach h2,
.mac-view .os-coach h2,
.win-view .os-coach h2 {
  margin: 8px 0 5px;
  color: #1d1d1f;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.os-coach p,
.mac-view .os-coach p,
.win-view .os-coach p {
  color: rgb(29 29 31 / 68%);
  font-size: 0.8rem;
  line-height: 1.56;
}

.os-coach .os-progress,
.mac-view .os-coach .os-progress,
.win-view .os-coach .os-progress {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid rgb(29 29 31 / 10%);
  color: rgb(29 29 31 / 48%);
  font-size: 0.59rem;
}

.os-progress i {
  width: 6px;
  height: 6px;
  background: var(--system-accent);
  box-shadow: none;
}

.os-target::after {
  inset: -5px;
  border: 2px solid var(--system-accent);
  box-shadow: 0 0 0 3px rgb(var(--system-accent-rgb) / 18%);
  animation: target-pulse 1.8s ease-in-out infinite;
}

.os-handoff {
  padding: 12px 24px;
  border-top: 1px solid rgb(255 255 255 / 42%);
  background: rgb(246 246 246 / 90%);
  box-shadow: 0 -10px 35px rgb(0 0 0 / 18%);
  backdrop-filter: blur(24px) saturate(1.2);
}

.os-handoff-copy strong,
.mac-view .os-handoff-copy strong,
.win-view .os-handoff-copy strong {
  color: var(--system-accent);
  font-size: 0.62rem;
}

.os-handoff-copy span,
.mac-view .os-handoff-copy span,
.win-view .os-handoff-copy span {
  color: rgb(20 20 20 / 68%);
  font-size: 0.74rem;
}

.mac-view .action.primary,
.win-view .action.primary {
  border-color: var(--system-accent);
  color: white;
  background: var(--system-accent);
}

/* macOS surface proportions and controls. */
.mac-menubar {
  height: 32px;
  padding: 0 18px;
  color: rgb(19 28 43 / 88%);
  background: rgb(255 255 255 / 46%);
  box-shadow: 0 1px rgb(255 255 255 / 48%);
  font-size: 0.74rem;
  backdrop-filter: blur(28px) saturate(1.45);
}

.mac-menu-left,
.mac-menu-right {
  gap: 14px;
}

.mac-status-icon {
  position: relative;
  display: block;
  flex: 0 0 auto;
  color: currentColor;
}

.mac-wifi {
  width: 16px;
  height: 12px;
  background:
    radial-gradient(circle at 50% 100%, currentColor 0 1.4px, transparent 1.7px),
    radial-gradient(circle at 50% 100%, transparent 0 4px, currentColor 4.2px 4.9px, transparent 5.1px),
    radial-gradient(circle at 50% 100%, transparent 0 7px, currentColor 7.2px 7.9px, transparent 8.1px);
}

.mac-battery {
  width: 19px;
  height: 10px;
  border: 1.4px solid currentColor;
  border-radius: 2px;
}

.mac-battery::before {
  position: absolute;
  inset: 2px;
  background: currentColor;
  content: '';
}

.mac-battery::after {
  position: absolute;
  top: 2px;
  right: -3px;
  width: 2px;
  height: 4px;
  border-radius: 0 1px 1px 0;
  background: currentColor;
  content: '';
}

.mac-control {
  display: grid;
  width: 16px;
  gap: 4px;
}

.mac-control i {
  position: relative;
  display: block;
  height: 1.5px;
  background: currentColor;
}

.mac-control i::after {
  position: absolute;
  top: 50%;
  left: 4px;
  width: 4px;
  height: 4px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: rgb(255 255 255 / 75%);
  content: '';
  transform: translateY(-50%);
}

.mac-control i:last-child::after {
  right: 3px;
  left: auto;
}

.mac-apple::before,
.mac-apple::after {
  display: none;
}

.mac-apple {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
}

.mac-apple .system-logo {
  width: 18px;
  height: 18px;
}

.mac-launchpad {
  top: 12%;
  width: min(760px, calc(100% - 420px));
  min-width: 520px;
  min-height: min(535px, calc(100% - 178px));
  padding: 20px 22px 24px;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 22px;
  color: #1d1d1f;
  background: rgb(247 248 251 / 82%);
  box-shadow:
    0 38px 110px rgb(22 34 56 / 32%),
    inset 0 1px rgb(255 255 255 / 90%);
  backdrop-filter: blur(38px) saturate(1.5);
}

.mac-launch-search {
  min-height: 54px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 13px;
  background: rgb(255 255 255 / 82%);
  box-shadow:
    inset 0 0 0 1px rgb(24 36 58 / 10%),
    0 1px 0 rgb(255 255 255 / 85%);
}

.mac-launch-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: #4d5666;
  background: transparent;
  box-shadow: none;
}

.mac-launch-mark svg {
  width: 20px;
  height: 20px;
}

.mac-launch-input,
.mac-launch-hint {
  font-size: clamp(1rem, 1.7vw, 1.24rem);
  letter-spacing: -0.02em;
}

.mac-launch-tool {
  width: 34px;
  height: 34px;
  font-size: 0.7rem;
}

.mac-launch-cats {
  margin-top: 14px;
}

.mac-launch-cat {
  padding: 7px 12px;
  font-size: 0.74rem;
}

.mac-launch-grid {
  gap: 24px 28px;
  min-height: 250px;
  padding: 28px 10px 4px;
}

.mac-launch-app {
  width: 104px;
  gap: 9px;
  border-radius: 15px;
  font-size: 0.8rem;
}

.mac-launch-app .mac-dock-icon,
.mac-launch-decoy-icon {
  width: 72px;
  height: 72px;
  border-radius: 17px;
}

.mac-launch-term-icon {
  position: relative;
  display: block;
  width: 82px;
  height: 82px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 34%);
  border-radius: 18px;
  color: #f4f6f8;
  background: linear-gradient(180deg, #474a50 0%, #202226 100%);
  box-shadow:
    0 14px 25px rgb(20 28 40 / 24%),
    inset 0 1px rgb(255 255 255 / 16%);
}

.mac-launch-term-icon::before {
  position: absolute;
  inset: 0 0 auto;
  height: 15px;
  background:
    radial-gradient(circle at 9px 8px, #ff5f57 0 2.5px, transparent 3px),
    radial-gradient(circle at 19px 8px, #febc2e 0 2.5px, transparent 3px),
    radial-gradient(circle at 29px 8px, #28c840 0 2.5px, transparent 3px),
    rgb(255 255 255 / 8%);
  content: '';
}

.mac-terminal-glyph {
  position: absolute;
  top: 31px;
  left: 17px;
  font-family: var(--font-mono);
  font-size: 1.25rem;
}

.mac-dock {
  bottom: 11px;
  gap: 7px;
  padding: 8px 11px 7px;
  border-radius: 21px;
  background: rgb(255 255 255 / 48%);
  box-shadow:
    0 16px 42px rgb(20 32 52 / 25%),
    inset 0 1px rgb(255 255 255 / 82%);
  backdrop-filter: blur(32px) saturate(1.55);
}

.mac-dock-item,
.mac-dock-icon {
  width: 54px;
  height: 54px;
}

.mac-dock-item {
  border-radius: 15px;
}

.mac-dock-icon {
  border-radius: 14px;
}

.mac-dock-item:hover,
.mac-dock-item:focus-visible {
  transform: translateY(-7px) scale(1.08);
}

.mac-terminal-window {
  top: 16%;
  width: min(780px, calc(100% - 400px));
  min-height: 440px;
  height: min(640px, calc(100% - 132px));
  grid-template-rows: 42px 1fr;
  border-radius: 12px;
}

.mac-terminal-titlebar {
  background: rgb(39 41 46 / 96%);
}

.term-choice,
.os-copy-button {
  border-color: rgb(var(--system-accent-rgb) / 52%);
  color: var(--system-accent);
  background: rgb(var(--system-accent-rgb) / 10%);
}

.term-choice:hover,
.term-choice:focus-visible,
.os-copy-button:hover,
.os-copy-button:focus-visible {
  border-color: var(--system-accent);
  color: white;
  background: var(--system-accent);
}

.mac-drive-icon,
.win-folder-icon {
  display: grid;
  width: 48px;
  height: 42px;
  place-items: center;
  border-radius: 7px;
}

.mac-drive-icon svg,
.win-folder-icon svg {
  width: 31px;
  height: 31px;
}

/* Windows 11 surface proportions, Mica-like windows, and current logo geometry. */
.win-view::before {
  background:
    radial-gradient(ellipse at 65% 44%, transparent 0 18%, rgb(0 0 0 / 17%) 100%),
    linear-gradient(134deg, transparent 0 46%, rgb(118 205 255 / 10%) 46.2% 47%, transparent 47.2% 100%);
}

.win-logo {
  width: 22px;
  height: 22px;
  background:
    linear-gradient(currentColor 0 0) 0 0 / 47% 47% no-repeat,
    linear-gradient(currentColor 0 0) 100% 0 / 47% 47% no-repeat,
    linear-gradient(currentColor 0 0) 0 100% / 47% 47% no-repeat,
    linear-gradient(currentColor 0 0) 100% 100% / 47% 47% no-repeat;
  transform: none;
}

.win-taskbar {
  height: 50px;
  padding: 0 16px;
  border-top: 1px solid rgb(255 255 255 / 28%);
  background: rgb(18 39 65 / 74%);
  box-shadow: 0 -5px 22px rgb(0 0 0 / 16%);
  backdrop-filter: blur(28px) saturate(1.25);
}

.win-taskbar-inner {
  gap: 4px;
}

.win-start-button,
.win-task-icon {
  width: 42px;
  height: 42px;
  border-radius: 5px;
}

.win-start-button:hover,
.win-start-button:focus-visible,
.win-task-icon:hover,
.win-task-icon:focus-visible {
  border-color: rgb(255 255 255 / 20%);
  background: rgb(255 255 255 / 11%);
}

.win-task-icon svg {
  display: block;
  width: 23px;
  height: 23px;
}

.win-task-icon.powershell {
  display: grid;
  border-radius: 6px;
  color: white;
  background: #0b75c9;
  font-size: 0.72rem;
}

.win-tray {
  right: 112px;
  gap: 9px;
  font-size: 0.74rem;
}

.win-clock {
  right: 16px;
  font-size: 0.68rem;
}

.win-hotkeys {
  gap: 13px;
  padding: 14px 18px;
}

.win-hotkey {
  width: 84px;
  height: 84px;
  border-radius: 9px;
  background: rgb(12 30 52 / 82%);
  box-shadow:
    0 14px 32px rgb(0 0 0 / 26%),
    inset 0 1px rgb(255 255 255 / 17%);
}

.win-hotkey.is-win {
  width: 104px;
}

.win-hotkey .win-logo {
  width: 32px;
  height: 32px;
}

.win-hotkey-letter {
  font-size: 1.9rem;
}

.win-hotkeys:hover .win-hotkey,
.win-hotkeys:focus-visible .win-hotkey {
  border-color: rgb(var(--system-accent-rgb) / 68%);
  background: rgb(13 39 68 / 92%);
}

.win-hotkeys-caption {
  color: rgb(255 255 255 / 78%);
  font-size: 0.72rem;
}

.win-run-scrim {
  inset: 0 0 50px;
  background: rgb(4 12 24 / 16%);
  backdrop-filter: blur(7px) saturate(1.08);
}

.win-run-dialog {
  bottom: 68px;
  width: min(500px, calc(100% - 56px));
  grid-template-rows: 44px auto;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 8px;
  color: #202020;
  background: rgb(243 246 250 / 96%);
  box-shadow: 0 24px 68px rgb(0 0 0 / 38%);
  backdrop-filter: blur(24px);
}

.win-run-titlebar {
  border-color: rgb(32 32 32 / 10%);
  color: #202020;
  background: rgb(235 239 245 / 95%);
  font-size: 0.84rem;
  font-weight: 600;
}

.win-run-body {
  gap: 16px;
  padding: 18px;
}

.win-run-lead {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  color: #343434;
  font-size: 0.82rem;
}

.win-run-glyph {
  width: 42px;
  height: 42px;
  border-radius: 7px;
  color: white;
  background: #0067c0;
  box-shadow: none;
}

.win-run-field {
  min-height: 42px;
  border-color: #8a8a8a;
  border-radius: 4px;
}

.win-run-field input {
  font-size: 0.96rem;
}

.win-run-button {
  min-width: 86px;
  min-height: 36px;
  border-color: #8a8a8a;
  color: #202020;
  background: #fbfbfb;
  font-size: 0.8rem;
}

.win-run-button.is-ok {
  border-color: #0067c0;
  background: #0067c0;
}

.win-powershell-window {
  top: 16%;
  width: min(780px, calc(100% - 400px));
  min-height: 440px;
  height: min(640px, calc(100% - 132px));
  grid-template-rows: 42px 1fr;
  border-radius: 8px;
}

.win-powershell-titlebar {
  background: rgb(12 53 84 / 97%);
}

/* Completion returns to the same branded surface as the entry flow. */
.finish-os-view {
  background: var(--guide-bg);
}

.finish-overlay {
  background: rgb(245 245 243 / 86%);
  backdrop-filter: blur(12px);
}

.finish-panel {
  width: min(480px, 100%);
  gap: 14px;
  padding: 26px;
  border: 1px solid var(--guide-line-strong);
  border-radius: var(--guide-radius-panel);
  color: var(--guide-ink);
  background: var(--guide-panel);
  box-shadow:
    inset 0 3px 0 var(--guide-brand),
    4px 4px 0 var(--guide-shadow);
}

.finish-mark {
  border-color: var(--guide-brand);
  color: white;
  background: var(--guide-brand);
}

.finish-panel h1 {
  font-size: clamp(1.4rem, 2.7vw, 1.9rem);
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.finish-panel p,
.finish-panel p.finish-app-hint {
  color: var(--guide-muted);
  font-size: 0.84rem;
  line-height: 1.58;
}

.finish-actions {
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px solid var(--guide-line);
}

.finish-app-hint a {
  color: var(--guide-brand);
}

.finish-app-hint a:hover,
.finish-app-hint a:focus-visible {
  color: var(--guide-ink);
}

.toast {
  border-color: var(--guide-ink);
  color: white;
  background: var(--guide-ink);
}

@media (max-width: 980px) {
  .mac-launchpad,
  .mac-terminal-window,
  .win-powershell-window {
    width: calc(100% - 370px);
  }
}

@media (max-width: 720px) {
  .brand-lockup {
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
  }

  .brand-lockup .brand-symbol {
    width: 31px;
    height: 31px;
  }

  .corner-action {
    top: 16px;
    right: 16px;
    min-width: 78px;
    height: 40px;
    padding-inline: 13px;
    font-size: 0.72rem;
  }

  .welcome-frame {
    width: calc(100% - 32px);
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .choice {
    min-height: 116px;
    padding: 18px 50px 18px 19px;
  }

  .choice-title {
    max-width: calc(100% - 32px);
    font-size: 1.1rem;
  }

  .choice-index {
    top: 17px;
    right: 18px;
    font-size: 0.56rem;
  }

  .choice-sub {
    font-size: 0.78rem;
  }

  .browser-window {
    width: calc(100% - 32px);
    min-height: calc(100dvh - 112px);
  }

  .signup-content {
    padding: 24px 18px;
  }

  .platform-frame {
    width: calc(100% - 32px);
  }

  .platform-title {
    margin: 10px 0 20px;
    font-size: clamp(1.8rem, 8vw, 2rem);
  }

  .platform-grid {
    gap: 10px;
  }

  .platform-choice {
    min-height: 176px;
    padding: 18px;
  }

  .platform-choice h2 {
    margin-top: 14px;
    font-size: 1.2rem;
  }

  .platform-choice p {
    max-width: calc(100% - 20px);
    font-size: 0.8rem;
  }

  .platform-shortcut {
    display: none;
  }

  .platform-icon {
    width: 43px;
    height: 43px;
    border-radius: 9px;
  }

  .platform-icon .system-logo {
    width: 23px;
    height: 23px;
  }

  .mac-view.os-view .brand-lockup,
  .win-view.os-view .brand-lockup {
    display: grid;
  }

  .mac-view.os-view .brand-lockup {
    top: 45px;
    left: 12px;
  }

  .win-view.os-view .brand-lockup {
    top: 10px;
    left: 10px;
  }

  .mac-view.os-view .corner-action {
    top: 44px;
    right: 12px;
  }

  .win-view.os-view .corner-action {
    top: 10px;
    right: 10px;
  }

  .mac-view .os-coach,
  .win-view .os-coach {
    right: 10px;
    bottom: auto;
    left: 10px;
    width: calc(100% - 20px);
    padding: 13px 14px;
  }

  .mac-view .os-coach {
    top: 102px;
  }

  .win-view .os-coach {
    top: 70px;
  }

  .mac-desktop-icons,
  .win-desktop-icons {
    display: none;
  }

  .mac-view .os-coach h2,
  .win-view .os-coach h2 {
    font-size: 0.96rem;
  }

  .mac-view .os-coach p,
  .win-view .os-coach p {
    font-size: 0.78rem;
  }

  .mac-menubar {
    height: 32px;
    padding-inline: 10px;
  }

  .mac-launchpad,
  .mac-terminal-window,
  .win-powershell-window {
    top: 92px;
    width: calc(100% - 20px);
    height: min(410px, calc(100% - 244px));
  }

  .mac-launchpad {
    min-width: 0;
    min-height: 300px;
    padding: 14px;
    border-radius: 18px;
  }

  .mac-launch-app .mac-dock-icon,
  .mac-launch-decoy-icon {
    width: 62px;
    height: 62px;
  }

  .mac-launch-term-icon {
    width: 70px;
    height: 70px;
  }

  .mac-terminal-glyph {
    top: 27px;
    left: 14px;
    font-size: 1.05rem;
  }

  .mac-dock {
    bottom: 8px;
    gap: 4px;
    padding: 7px 8px 6px;
    border-radius: 17px;
  }

  .mac-dock-item,
  .mac-dock-icon {
    width: 45px;
    height: 45px;
  }

  .win-taskbar {
    height: 50px;
  }

  .win-taskbar-inner {
    margin-right: 64px;
  }

  .win-start-button,
  .win-task-icon {
    width: 39px;
    height: 39px;
  }

  .win-run-scrim {
    inset: 0 0 50px;
  }

  .win-run-dialog {
    top: 72px;
    right: 10px;
    left: 10px;
  }

  .win-hotkeys {
    top: 40%;
  }

  .win-hotkey {
    width: 70px;
    height: 70px;
  }

  .win-hotkey.is-win {
    width: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-lockup,
  .corner-action,
  .choice,
  .choice::after,
  .platform-choice,
  .platform-choice::before,
  .platform-choice::after {
    transition: none;
  }
}
