:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --bg-accent: #edf3fa;
  --surface: #ffffff;
  --surface-subtle: #f1f5f9;
  --obsidian: #0d1522;
  --obsidian-2: #152236;
  --obsidian-border: rgba(255, 255, 255, 0.14);
  --ink: #0f172a;
  --ink-secondary: #334155;
  --muted: #55657a;
  --line: #dfe6ef;
  --line-strong: #c8d3e1;
  --accent: #0a7aff;
  --accent-hover: #0062d6;
  --accent-soft: rgba(10, 122, 255, 0.1);
  --accent-ring: rgba(10, 122, 255, 0.28);
  --cyan: #38bdf8;
  --emerald: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.06);
  --shadow-stage: 0 24px 60px rgba(10, 20, 38, 0.18), 0 4px 14px rgba(10, 20, 38, 0.08);
  --shadow-menu: 0 16px 40px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(15, 23, 42, 0.06);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Hiragino Kaku Gothic ProN", "Apple SD Gothic Neo", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(920px 440px at 78% -40px, rgba(56, 189, 248, 0.11), transparent 65%),
    radial-gradient(720px 360px at 12% 40px, rgba(10, 122, 255, 0.06), transparent 60%),
    var(--bg);
}

a {
  color: var(--accent);
  text-underline-offset: 0.22em;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--obsidian);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 16px;
}

.container {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
}

.doc-shell .container {
  max-width: 1080px;
}

/* ==================== Shared Header & Top-Bar Language Switcher ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 251, 0.86);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(200, 211, 225, 0.65);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(13, 21, 34, 0.16);
}

.brand:hover {
  opacity: 0.86;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.site-nav a:hover {
  background: rgba(15, 23, 42, 0.055);
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  background: var(--obsidian);
  color: #ffffff;
  font-weight: 600;
}

/* Language Switcher Dropdown in Header */
.lang-switcher {
  position: relative;
  flex-shrink: 0;
}

.lang-switcher summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 4px 11px 4px 5px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.lang-switcher summary::-webkit-details-marker {
  display: none;
}

.lang-switcher summary:hover {
  background: #ffffff;
  border-color: var(--accent);
}

.lang-switcher[open] summary {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.lang-icon-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(10, 122, 255, 0.13);
  color: var(--accent-hover);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-switcher summary:hover .lang-icon-badge,
.lang-switcher[open] .lang-icon-badge {
  background: var(--accent);
  color: #ffffff;
}

.lang-icon {
  width: 17px;
  height: 17px;
  display: block;
}

.lang-chevron {
  width: 14px;
  height: 14px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.16s ease;
}

.lang-switcher[open] .lang-chevron {
  transform: rotate(180deg);
}

.lang-label-short {
  display: none;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 164px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-menu);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 60;
}

.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  padding: 7px 11px;
  border-radius: 9px;
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.lang-menu a:hover {
  background: var(--surface-subtle);
  color: var(--ink);
}

.lang-menu a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-weight: 700;
}

.lang-check,
.lang-check-spacer {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ==================== Shared Footer ==================== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  padding: 28px 0 36px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.footer-brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex-shrink: 0;
}

.footer-brand strong {
  color: var(--ink);
  font-weight: 600;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
}

.footer-links a {
  color: var(--ink-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ==================== Home Hero ==================== */
.home main {
  flex: 1;
}

.hero {
  padding: clamp(30px, 4.2vw, 54px) 0 clamp(40px, 5vw, 64px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.88fr) minmax(540px, 1.12fr);
  gap: clamp(32px, 4.2vw, 64px);
  align-items: center;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.platform-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

h1, h2, h3 {
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-wrap: balance;
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.14;
}

.hero-lead {
  margin: 18px 0 0;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.7;
  color: var(--ink-secondary);
  max-width: 38em;
}

.hero-answers {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-answers li {
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: baseline;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(200, 211, 225, 0.7);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-secondary);
}

.hero-answers strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.btn-primary {
  background: var(--obsidian);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(13, 21, 34, 0.18);
}

.btn-primary:hover {
  background: #1b2a42;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  background: var(--surface-subtle);
  border-color: #aebdce;
}

.hero-footnote {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ==================== Interactive Remote Stage ==================== */
.stage-card {
  background: var(--obsidian);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: var(--shadow-stage);
  overflow: hidden;
  color: #e2e8f0;
}

.stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  flex-wrap: wrap;
}

.stage-origin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.origin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--emerald-soft);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.origin-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

.stage-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.segmented {
  display: inline-flex;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.seg-btn,
.edge-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: #cbd5e1;
  font: 500 12px/1 var(--font-sans);
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.seg-btn:hover,
.edge-toggle:hover {
  color: #ffffff;
}

.seg-btn[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 600;
}

.edge-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.edge-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

.stage-viewport {
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, #0b1220 0%, #101a2c 100%);
  transition: padding 0.2s ease;
}

.stage-card[data-viewer="phone"] .stage-viewport {
  padding: 14px 22px 12px;
}

.remote-frame {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
  background: #1a2d44;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: border-radius 0.2s ease, padding 0.2s ease;
}

.phone-bezel-pill,
.phone-home-bar {
  display: none;
}

.stage-card[data-viewer="phone"] .remote-frame {
  padding: 6px 24px 12px 24px;
  background: #0a0f18;
  border: 3px solid #334155;
  border-radius: 28px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 18px 36px rgba(0, 0, 0, 0.55);
}

.stage-card[data-viewer="phone"] .phone-bezel-pill {
  display: block;
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 54px;
  border-radius: 999px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stage-card[data-viewer="phone"] .phone-home-bar {
  display: block;
  width: 84px;
  height: 4px;
  margin: 7px auto 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

.stage-card[data-viewer="phone"] .remote-screen-shell {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.remote-label-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(10, 17, 29, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: #94a3b8;
}

.remote-target {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e2e8f0;
  font-weight: 600;
}

.remote-target-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.space-pills {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.space-dot {
  width: 18px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transition: background-color 0.2s ease, width 0.2s ease;
}

.space-dot.is-active {
  width: 26px;
  background: var(--cyan);
}

/* ==================== Simulated Controlled Mac Screen ==================== */
.mac-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: clip;
  user-select: none;
  background:
    radial-gradient(120% 70% at 80% 10%, rgba(242, 224, 210, 0.9), transparent 55%),
    linear-gradient(180deg, #9fb8d1 0%, #7d9ab8 38%, #486684 70%, #243b55 100%);
}

.mac-wallpaper {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mac-wallpaper::before,
.mac-wallpaper::after {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  border-radius: 50% 50% 0 0;
}

.mac-wallpaper::before {
  bottom: -24%;
  height: 68%;
  background: linear-gradient(165deg, rgba(66, 95, 124, 0.85), rgba(38, 62, 88, 0.94));
  transform: rotate(-5deg);
}

.mac-wallpaper::after {
  bottom: -34%;
  height: 58%;
  background: linear-gradient(175deg, rgba(39, 63, 90, 0.95), rgba(20, 35, 53, 0.98));
  transform: rotate(4deg);
}

.mac-menubar {
  position: relative;
  z-index: 4;
  height: 24px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(244, 247, 251, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #172030;
  font-size: 11px;
  font-weight: 500;
}

.mac-menu-left,
.mac-menu-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mac-menu-app {
  font-weight: 700;
}

.mac-menu-sp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(10, 122, 255, 0.14);
  color: #0759c4;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.02em;
}

/* Spaces track */
.spaces-track {
  position: absolute;
  inset: 24px 0 0 0;
  z-index: 2;
  display: flex;
  width: 300%;
  height: calc(100% - 24px);
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.mac-screen[data-space="0"] .spaces-track { transform: translateX(0%); }
.mac-screen[data-space="1"] .spaces-track { transform: translateX(-33.3333%); }
.mac-screen[data-space="2"] .spaces-track { transform: translateX(-66.6667%); }

.mac-screen.is-boundary-left .spaces-track {
  transform: translateX(1.2%);
}

.mac-screen.is-boundary-right .spaces-track {
  transform: translateX(-67.8667%);
}

.mac-screen.is-mission-control .spaces-track {
  opacity: 0;
  pointer-events: none;
}

.space-slide {
  position: relative;
  flex: 0 0 33.333333%;
  width: 33.333333%;
  max-width: 33.333333%;
  min-width: 0;
  height: 100%;
  overflow: clip;
  padding: 16px 18px 46px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.sim-window {
  width: min(74%, 468px);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(8, 15, 28, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.sim-titlebar {
  height: 24px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.traffic-lights {
  display: inline-flex;
  gap: 5px;
}

.traffic-lights i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
}

.traffic-lights i:nth-child(1) { background: #ff5f57; }
.traffic-lights i:nth-child(2) { background: #febc2e; }
.traffic-lights i:nth-child(3) { background: #28c840; }

/* Space 1: Terminal */
.sim-terminal {
  background: rgba(20, 25, 34, 0.94);
  color: #dbe7f5;
}

.sim-terminal .sim-titlebar {
  background: #232a36;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sim-terminal-body {
  padding: 13px 15px 15px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.65;
}

.term-dim { color: #7e8fa6; }
.term-ok { color: #4ade80; }
.term-prompt { color: #60a5fa; }

.term-caret {
  display: inline-block;
  width: 6px;
  height: 12px;
  vertical-align: -2px;
  margin-left: 2px;
  border-radius: 1px;
  background: #38bdf8;
  animation: caret-blink 1.2s steps(1) infinite;
}

.focus-chip {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 10.5px;
  color: #93c5fd;
}

.focus-chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #38bdf8;
}

/* Space 2: Light Browser */
.sim-browser {
  width: min(78%, 486px);
  background: rgba(255, 255, 255, 0.97);
  color: #1e293b;
}

.sim-browser .sim-titlebar {
  background: #f1f5f9;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
}

.sim-urlbar {
  margin: 0 auto;
  padding: 2px 12px;
  border-radius: 5px;
  background: #ffffff;
  border: 1px solid #dce4ee;
  color: #64748b;
  font-size: 10px;
}

.sim-browser-body {
  padding: 15px 17px;
  font-size: 12px;
}

.sim-browser-body h4 {
  margin: 0 0 6px;
  font-size: 13px;
  color: #0f172a;
}

.sim-browser-body p {
  margin: 0 0 10px;
  color: #475569;
  line-height: 1.5;
}

.sim-doc-bars {
  display: grid;
  gap: 6px;
}

.sim-doc-bars span {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: #e2e8f0;
}

.sim-doc-bars span:nth-child(1) { width: 88%; }
.sim-doc-bars span:nth-child(2) { width: 72%; }
.sim-doc-bars span:nth-child(3) { width: 54%; background: #cfe3ff; }

/* Space 3: Editor */
.sim-editor {
  background: #171d29;
  color: #cbd5e1;
}

.sim-editor .sim-titlebar {
  background: #1e2636;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sim-editor-body {
  padding: 13px 15px 15px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.65;
}

.code-kw { color: #f472b6; }
.code-type { color: #38bdf8; }
.code-fn { color: #a5b4fc; }
.code-num { color: #fbbf24; }

.mac-dock {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.mac-screen.is-mission-control .mac-dock {
  opacity: 0;
}

.dock-icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  display: block;
}

.dock-icon.i-finder { background: linear-gradient(180deg, #60a5fa, #2563eb); }
.dock-icon.i-safari { background: linear-gradient(180deg, #38bdf8, #0284c7); }
.dock-icon.i-term { background: #1e293b; border: 1px solid rgba(255, 255, 255, 0.2); }
.dock-icon.i-notes { background: linear-gradient(180deg, #fde047, #f59e0b); }
.dock-icon.i-sp { background: transparent; overflow: hidden; }
.dock-icon.i-sp img { width: 100%; height: 100%; object-fit: cover; }

.handle-backdrop {
  position: absolute;
  inset: 24px 0 0 0;
  z-index: 8;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: default;
  display: none;
}

.mac-screen.is-expanded .handle-backdrop {
  display: block;
}

/* ==================== Authentic Liquid Glass Mini Pebble (Plan A) ==================== */
.pebble-anchor {
  position: absolute;
  top: 52%;
  right: 8px;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
}

.mac-screen[data-edge="left"] .pebble-anchor {
  right: auto;
  left: 8px;
}

.mac-screen.is-mission-control .pebble-anchor {
  opacity: 0;
  pointer-events: none;
}

.pebble-collapsed {
  position: relative;
  width: 28px;
  height: 58px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(31, 46, 66, 0.28) 55%, rgba(255, 255, 255, 0.22));
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    0 6px 20px rgba(8, 15, 28, 0.36),
    inset 0 1px 1px rgba(255, 255, 255, 0.75);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pebble-collapsed::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 2px solid rgba(56, 189, 248, 0.72);
  opacity: 0;
  pointer-events: none;
  animation: pebble-pulse 2.4s ease-out infinite;
}

.pebble-collapsed:hover {
  transform: scale(1.06);
  box-shadow:
    0 8px 24px rgba(10, 122, 255, 0.36),
    0 0 0 2px rgba(255, 255, 255, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.pebble-grip {
  width: 3.5px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.48);
}

.pebble-callout {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(13, 21, 34, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.56);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(8, 15, 28, 0.38);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pebble-callout::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -5px;
  width: 8px;
  height: 8px;
  background: rgba(13, 21, 34, 0.92);
  border-top: 1px solid rgba(56, 189, 248, 0.56);
  border-right: 1px solid rgba(56, 189, 248, 0.56);
  transform: translateY(-50%) rotate(45deg);
}

.mac-screen[data-edge="left"] .pebble-callout {
  right: auto;
  left: calc(100% + 12px);
}

.mac-screen[data-edge="left"] .pebble-callout::after {
  right: auto;
  left: -5px;
  border-top: 0;
  border-right: 0;
  border-bottom: 1px solid rgba(56, 189, 248, 0.56);
  border-left: 1px solid rgba(56, 189, 248, 0.56);
}

.mac-screen.is-expanded .pebble-collapsed,
.mac-screen.is-expanded .pebble-callout {
  display: none;
}

.pebble-expanded {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.mac-screen[data-edge="left"] .pebble-expanded {
  align-items: flex-start;
}

.mac-screen.is-expanded .pebble-expanded {
  display: flex;
  animation: island-in 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.pebble-islands {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.mac-screen[data-edge="left"] .pebble-islands {
  flex-direction: row-reverse;
}

.pebble-capsule {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px;
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(31, 46, 66, 0.34) 55%, rgba(255, 255, 255, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  box-shadow:
    0 12px 30px rgba(8, 15, 28, 0.42),
    inset 0 1px 1px rgba(255, 255, 255, 0.72);
}

.pebble-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.pebble-btn svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.68));
}

.pebble-btn:hover,
.pebble-btn:focus-visible {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.16));
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.42);
  transform: scale(1.04);
}

.pebble-close {
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(31, 46, 66, 0.34) 55%, rgba(255, 255, 255, 0.16));
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  box-shadow:
    0 12px 30px rgba(8, 15, 28, 0.42),
    inset 0 1px 1px rgba(255, 255, 255, 0.72);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.pebble-close svg {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.68));
}

.pebble-close:hover,
.pebble-close:focus-visible {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(31, 46, 66, 0.32));
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.42);
  transform: scale(1.04);
}

.pebble-hint-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(13, 21, 34, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 11px;
  color: #e2e8f0;
  white-space: nowrap;
}

.pebble-hint-sep {
  opacity: 0.38;
}

/* Mission Control Interactive Overlay (High-Contrast Dark Frosted) */
.mission-control {
  position: absolute;
  inset: 24px 0 0 0;
  z-index: 12;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px 12px;
  background: linear-gradient(180deg, rgba(12, 20, 34, 0.82) 0%, rgba(16, 28, 46, 0.78) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.mac-screen.is-mission-control .mission-control {
  display: flex;
  animation: fade-in 0.18s ease;
}

.mc-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mc-space-btn {
  appearance: none;
  border: 2px solid rgba(255, 255, 255, 0.24);
  background: rgba(15, 23, 42, 0.62);
  border-radius: 10px;
  padding: 7px 8px;
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.16s ease, transform 0.16s ease, background-color 0.16s ease;
}

.mc-space-btn:hover {
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(30, 41, 59, 0.84);
  transform: translateY(-1px);
}

.mc-space-btn[aria-current="true"] {
  border-color: #38bdf8;
  background: rgba(10, 122, 255, 0.3);
}

.mc-thumb {
  height: 50px;
  border-radius: 6px;
  padding: 6px;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #6482a2, #253b56);
}

.mc-thumb-win {
  width: 68%;
  height: 100%;
  border-radius: 3px;
  background: #171f2c;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.mc-thumb-win.is-light {
  background: #f8fafc;
  margin-left: auto;
}

.mc-thumb-win.is-code {
  background: #1d273b;
  border-left: 3px solid #38bdf8;
}

.mc-space-btn span {
  font-size: 11px;
  font-weight: 600;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mc-preview-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  flex: 1;
  align-items: center;
  padding: 4px 10px;
}

.mc-mini-window {
  height: 104px;
  border-radius: 9px;
  background: rgba(20, 28, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #cbd5e1;
  font-size: 10.5px;
}

.mc-mini-window.is-light {
  background: rgba(248, 250, 252, 0.94);
  color: #334155;
}

.mc-mini-bars {
  display: grid;
  gap: 5px;
}

.mc-mini-bars i {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: rgba(148, 163, 184, 0.34);
}

.mc-mini-bars i:first-child { width: 78%; }
.mc-mini-bars i:last-child { width: 52%; }

.mc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(13, 21, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 11px;
  color: #e2e8f0;
}

.mc-exit {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-radius: 999px;
  padding: 3px 10px;
  font: 600 11px/1.4 var(--font-sans);
  cursor: pointer;
}

.mc-exit:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Stage Footer */
.stage-footer {
  padding: 12px 16px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stage-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.step-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.35;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.step-chip b {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-chip.is-active {
  background: rgba(10, 122, 255, 0.18);
  border-color: rgba(56, 189, 248, 0.55);
  color: #f8fafc;
}

.step-chip.is-active b {
  background: var(--accent);
  color: #ffffff;
}

.stage-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: #cbd5e1;
}

.stage-status-text {
  margin: 0;
  min-height: 1.4em;
}

.stage-kbd-hint {
  color: #7e92ad;
  font-size: 11.5px;
  white-space: nowrap;
}

/* ==================== Home Sections ==================== */
.section {
  padding: clamp(44px, 5.5vw, 72px) 0;
}

.section-bordered {
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 840px;
  margin-bottom: clamp(24px, 3vw, 36px);
}

.section-kicker {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 2.9vw, 33px);
  font-weight: 750;
}

.section-head p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.anatomy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.anatomy-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mini-scene {
  height: 124px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #273e5a 0%, #152438 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-edge-win {
  position: absolute;
  left: 14px;
  top: 18px;
  width: 64%;
  height: 82px;
  border-radius: 8px;
  background: rgba(15, 22, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mini-edge-pebble {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(31, 46, 66, 0.32));
  border: 1px solid rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.24);
}

.mini-edge-pebble::before {
  content: "";
  width: 3px;
  height: 18px;
  border-radius: 99px;
  background: #ffffff;
}

.mini-island-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mini-island-capsule {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.mini-well {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.32);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mini-well.is-hi {
  background: rgba(56, 189, 248, 0.38);
  border-color: rgba(255, 255, 255, 0.85);
}

.mini-close-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.65);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mini-scene svg {
  width: 16px;
  height: 16px;
}

.mini-split {
  width: 100%;
  height: 100%;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr auto 1.25fr;
  align-items: center;
  gap: 10px;
}

.mini-device {
  height: 100%;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 10.5px;
  line-height: 1.3;
}

.mini-device.is-local {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #a7f3d0;
}

.mini-device.is-remote {
  background: rgba(10, 122, 255, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.6);
  color: #e0f2fe;
}

.mini-device strong {
  color: #ffffff;
  font-size: 11px;
}

.mini-arrow {
  color: #7dd3fc;
  font-size: 16px;
  font-weight: 700;
}

.mini-space-shift {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
}

.mini-space-tag {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
}

.mini-space-tag.is-on {
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
}

.anatomy-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.anatomy-card h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
}

.anatomy-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.65;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.role-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.role-card.is-controlled {
  border-color: rgba(10, 122, 255, 0.32);
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.role-badge.is-local {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.role-badge.is-controlled {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.role-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.role-card p {
  margin: 0 0 14px;
  color: var(--ink-secondary);
  font-size: 14.5px;
}

.role-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.role-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--muted);
}

.role-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
}

.role-card.is-controlled .role-list li::before {
  background: var(--accent);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.fact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
}

.fact-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}

.fact-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

kbd {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--surface-subtle);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--ink);
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.setup-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
}

.setup-num {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--obsidian);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.setup-step h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.setup-step p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

.handoff-band {
  background: var(--obsidian);
  color: #e2e8f0;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-stage);
}

.handoff-copy {
  max-width: 680px;
}

.handoff-copy h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(22px, 2.5vw, 28px);
}

.handoff-copy p {
  margin: 0;
  color: #cbd5e1;
  font-size: 15px;
}

.handoff-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-light {
  background: #ffffff;
  color: var(--obsidian);
}

.btn-light:hover {
  background: #eef4fb;
  transform: translateY(-1px);
}

.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* ==================== Document Pages (/support & /privacy) ==================== */

.document { background: #fbfcfe; }
.doc-shell { flex: 1; padding: 72px 0 88px; }
.doc-shell .container { max-width: 840px; }
.doc-card { max-width: 680px; margin: 0 auto; }
.doc-card h1 {
  margin: 0 0 42px;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.doc-card h2 {
  margin: 40px 0 14px;
  font-size: 21px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -0.015em;
  scroll-margin-top: 90px;
}
.doc-card p, .doc-card li {
  color: var(--ink-secondary);
  overflow-wrap: break-word;
  line-height: 1.85;
}
.doc-card p { margin: 0 0 18px; }
.document-privacy .doc-card > p:first-of-type {
  font-size: 19px;
  line-height: 1.8;
  margin-bottom: 40px;
}
.support-question {
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.support-question summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 23px 0;
  cursor: pointer;
  list-style: none;
}
.support-question summary::-webkit-details-marker { display: none; }
.support-question summary::after {
  content: "+";
  flex: 0 0 24px;
  color: var(--muted);
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}
.support-question[open] summary::after { content: "−"; }
.support-question summary:hover h2 { color: var(--accent-hover); }
.support-question summary h2 { margin: 0; font-size: 19px; }
.support-answer { padding: 0 32px 24px 0; }
.support-answer > :last-child { margin-bottom: 0; }
.doc-card ol {
  padding: 0 0 0 24px;
  margin: 0;
}
.doc-card ol li { padding-left: 12px; margin-bottom: 20px; }
.doc-card ol li:last-child { margin-bottom: 0; }
.doc-card ol li::marker { color: var(--accent-hover); font-weight: 600; }
.doc-card > h2 { margin-top: 40px; }
.document-support .doc-card > h2 { padding-top: 32px; border-top: 1px solid var(--line); }
.contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 18px;
}
.contact-email {
  color: var(--accent-hover);
  font-size: 17px;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-email:hover { text-decoration: underline; }
.copy-button {
  appearance: none;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink-secondary);
  font: 500 14px/1.2 var(--font-sans);
  cursor: pointer;
}
.copy-button:hover { background: var(--surface-subtle); border-color: var(--muted); }
.copy-button.is-copied { color: #047857; border-color: #047857; }
.doc-card > p:last-child {
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.doc-card > p:last-child a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  color: var(--accent-hover);
  text-decoration: none;
}
.doc-card > p:last-child a::after { content: "→"; }
.doc-card > p:last-child a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .doc-shell { padding: 40px 0 56px; }
  .doc-shell .container { padding: 0 22px; }
  .doc-card h1 { margin-bottom: 30px; }
  .support-question summary { gap: 14px; padding: 21px 0; }
  .support-answer { padding-right: 0; }
  .document-privacy .doc-card > p:first-of-type { font-size: 18px; margin-bottom: 32px; }
}
.step-title { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 600; }
.document .footer-brand { min-width: 0; }
.document .footer-brand > span { min-width: 0; overflow-wrap: anywhere; }
.document .footer-brand img { flex-shrink: 0; }
.document .footer-links { min-width: 0; }


/* ==================== Animations ==================== */
@keyframes pebble-pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.85;
  }
  70%, 100% {
    transform: scale(1.38);
    opacity: 0;
  }
}

@keyframes island-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes caret-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ==================== Responsive Breakpoints ==================== */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .anatomy-grid,
  .role-grid,
  .setup-grid {
    grid-template-columns: 1fr;
  }

  .stage-steps {
    grid-template-columns: 1fr;
  }

  .stage-kbd-hint {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 12px;
  }

  .header-inner {
    min-height: 58px;
    gap: 6px;
  }

  .brand {
    font-size: 15px;
    gap: 6px;
  }

  .brand img {
    width: 26px;
    height: 26px;
    border-radius: 6px;
  }

  .header-right {
    gap: 4px;
  }

  .site-nav {
    gap: 2px;
  }

  /* On narrow phones the brand logo serves as Home so header stays on one clean line */
  .site-nav .nav-home {
    display: none;
  }

  .site-nav a {
    padding: 5px 7px;
    font-size: 12.5px;
    min-height: 32px;
  }

  .lang-switcher summary {
    padding: 3px 7px 3px 4px;
    min-height: 32px;
    gap: 4px;
    font-size: 12px;
  }

  .lang-icon-badge {
    width: 22px;
    height: 22px;
  }

  .lang-icon {
    width: 14px;
    height: 14px;
  }

  .lang-label-full {
    display: none;
  }

  .lang-label-short {
    display: inline;
  }

  .hero {
    padding: 22px 0 36px;
  }

  .hero-answers li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .stage-toolbar {
    padding: 10px 12px;
  }

  .stage-viewport,
  .stage-card[data-viewer="phone"] .stage-viewport {
    padding: 10px;
  }

  .stage-card[data-viewer="phone"] .remote-frame {
    padding: 5px 16px 10px 16px;
    border-radius: 22px;
  }

  .mac-screen {
    aspect-ratio: 4 / 3;
    min-height: 248px;
  }

  .mac-menu-extra {
    display: none;
  }

  .space-slide {
    padding: 10px 12px 42px;
  }

  .sim-window {
    width: 84%;
  }

  .sim-terminal-body,
  .sim-editor-body {
    font-size: 10px;
    padding: 8px 10px;
  }

  .pebble-anchor {
    top: 58%;
  }

  .pebble-capsule {
    gap: 4px;
    padding: 4px;
  }

  .pebble-btn {
    width: 36px;
    height: 36px;
  }

  .pebble-btn svg {
    width: 19px;
    height: 19px;
  }

  .pebble-close {
    width: 44px;
    height: 44px;
  }

  .pebble-close svg {
    width: 18px;
    height: 18px;
  }

  .pebble-hint-row {
    font-size: 10px;
    padding: 3px 8px;
    gap: 5px;
  }

  .mc-strip {
    gap: 6px;
  }

  .mc-space-btn {
    padding: 5px 6px;
  }

  .mc-thumb {
    height: 28px;
  }

  .mc-mini-window {
    height: 66px;
    padding: 6px 8px;
  }

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

  .contact-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .pebble-collapsed::after {
    display: none;
  }
}

@media (max-width: 440px) {
  .document .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    padding-top: 10px;
    padding-bottom: 8px;
  }
  .document .header-right { display: contents; }
  .document .lang-switcher { grid-column: 2; grid-row: 1; }
  .document .site-nav { grid-column: 1 / -1; grid-row: 2; }
  .document .site-nav .nav-home { display: inline-flex; }
  .document .site-nav a { min-height: 40px; }
  .document .footer-brand { width: 100%; }
}
