@font-face {
  font-family: Plex;
  src: url('/launcher-regular.woff2') format('woff2');
  font-display: swap;
  font-weight: 400;
}
@font-face {
  font-family: Plex;
  src: url('/launcher-bold.woff2') format('woff2');
  font-display: swap;
  font-weight: 700;
}
@font-face {
  font-family: PlexMono;
  src: url('/homepage/mono.woff2') format('woff2');
  font-display: swap;
}

:root {
  color-scheme: light dark;
  font-family: Plex, Arial, sans-serif;
  font-synthesis: none;
  scroll-padding-top: 20px;
  --canvas: light-dark(#f4f5f7, #13181f);
  --ink: light-dark(#1a2430, #edf2f9);
  --muted: light-dark(#4c5b6e, #a9b7c9);
  --accent: light-dark(#2454bd, #aec8ff);
  --line: light-dark(#cdd5e0, #384453);
  --surface: light-dark(#fff, #1c242e);
  --surface-hover: light-dark(#e9eef6, #273443);
  --selected: light-dark(#e3ebfd, #293e62);
  --primary: light-dark(#254aa0, #355aab);
  --primary-hover: light-dark(#18397f, #416cc2);
  --command-bg: light-dark(#eef2f7, #121922);
  color: var(--ink);
  background: var(--canvas);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; --mark-invert: invert(1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) { --mark-invert: invert(1); }
}

* { box-sizing: border-box; }
body, p, h1, h2, h3, figure { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(1040px, calc(100% - 40px)); margin-inline: auto; }
main { display: flex; flex-direction: column; }
main > .hero { order: 0; }
main > .guide { order: 1; }
main > .workspace { order: 2; }
main > .features { order: 3; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  top: 8px;
  left: 16px;
  z-index: 1;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--surface);
}
.skip-link:focus { transform: none; }

.navigation, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 12px;
}
.navigation { border-bottom: 1px solid var(--line); }
.footer { border-top: 1px solid var(--line); }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1;
}
.wordmark img { width: 24px; height: 24px; }
.navigation .wordmark img { filter: brightness(0) var(--mark-invert, invert(0)); }
.navigation nav, .footer nav { display: flex; align-items: center; gap: clamp(8px, 2vw, 20px); }
.navigation nav a, .footer nav a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  font-size: 14px;
  color: var(--muted);
}
.navigation nav a:hover, .footer nav a:hover { color: var(--accent); }
.nav-start { padding-inline: 10px; }

.icon-button, .theme-toggle {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.icon-button:hover, .theme-toggle:hover { color: var(--ink); background: var(--surface-hover); }
.icon-button svg, .theme-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle .sun-icon, .theme-toggle[aria-pressed="true"] .moon-icon { display: none; }
.theme-toggle[aria-pressed="true"] .sun-icon { display: block; }

.hero { padding-block: clamp(32px, 6vw, 76px) clamp(28px, 5vw, 58px); }
.hero h1 {
  max-width: 850px;
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1.04;
  text-wrap: balance;
}
.hero-description {
  max-width: 54ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding-inline: 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}
.primary { color: #fff; background: var(--primary); }
.primary:hover { background: var(--primary-hover); }
.secondary { border-color: var(--line); background: var(--surface); }
.secondary:hover { background: var(--surface-hover); }

/* Older homepage HTML can still be cached separately from its stylesheet. */
.desk-note, .page-light, .wordmark-caption { display: none; }

h2 {
  font-size: clamp(23px, 3vw, 31px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.2;
}
.workspace { margin-bottom: clamp(32px, 6vw, 68px); }
.workspace h2 { margin-bottom: 16px; }
.workspace :is(.gallery-controls, #gallery-status) { display: none; }
.workspace :is(.workspace-gallery, .gallery-track) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(10px, 2vw, 20px);
  padding: clamp(10px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, var(--surface), var(--command-bg));
}
.workspace figure {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 6px 18px #00000012;
}
.workspace :is(.workspace-desktop, .gallery-slide:first-child) { grid-column: 1 / -1; }
.workspace :is(.workspace-phone, .gallery-slide-mobile) { width: min(100%, 220px); }
.workspace :is(.workspace-phone, .gallery-slide-mobile):nth-child(2) { justify-self: end; }
.workspace img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}
.workspace figcaption {
  padding: 8px clamp(8px, 2vw, 12px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (min-width: 1000px) {
  .workspace :is(.workspace-gallery, .gallery-track) {
    grid-template-columns: minmax(0, 2.6fr) repeat(2, minmax(0, .7fr));
    align-items: center;
    gap: 14px;
  }
  .workspace :is(.workspace-desktop, .gallery-slide:first-child) { grid-column: auto; }
  .workspace figcaption { padding-inline: 8px; font-size: 13px; }
}

.guide { margin-bottom: clamp(32px, 6vw, 64px); }
.guide-section + .guide-section { margin-top: 28px; }
.guide h2, .features h2 { margin-bottom: 10px; }
.guide-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  width: min(100%, 520px);
  padding: 3px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}
.platform-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.guide-tabs button {
  min-height: 44px;
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: clamp(12px, 2.5vw, 14px);
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
}
.guide-tabs button:hover { color: var(--ink); background: var(--surface-hover); }
.guide-tabs button[aria-selected="true"] {
  border-color: var(--line);
  color: var(--accent);
  background: var(--selected);
}
.guide-option, .guide-panel {
  padding: clamp(12px, 2.5vw, 20px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.guide-option:not([hidden]) + .guide-option:not([hidden]) { margin-top: 8px; }
.guide-option h3 { font-size: 18px; }
.guide-option p, .guide-panel p, .connect-steps, .guide-note {
  margin-top: 9px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.guide-option h3[hidden] + :is(p, ol) { margin-top: 0; }
.guide-option :is(p, li) code { overflow-wrap: anywhere; }
.guide-option strong, .guide-panel strong { color: var(--ink); }
.command {
  display: flex;
  align-items: start;
  gap: 2px;
  margin-top: 9px;
  padding: 2px 3px 2px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--command-bg);
}
.command pre {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding-block: 12px;
  font: 13px/1.54 PlexMono, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.command code { font: inherit; }
.copy-command .copied-symbol, .copy-command[data-copied] .copy-symbol { display: none; }
.copy-command[data-copied] .copied-symbol { display: block; color: var(--accent); }
.connect-steps { padding-left: 21px; margin-bottom: 0; }
.connect-steps li + li { margin-top: 6px; }
.connect-steps li::marker { color: var(--accent); font-weight: 700; }
.guide-note a, .guide-link { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.guide-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; }

.features { margin-bottom: clamp(28px, 5vw, 56px); }
.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature-list article { border-top: 1px solid var(--line); padding-top: 10px; }
.feature-list h3 { font-size: 17px; line-height: 1.3; }
.feature-list p { color: var(--muted); font-size: 15px; line-height: 1.5; margin-top: 4px; }
.footer nav { flex-wrap: wrap; gap: 0 12px; }

@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .navigation nav { gap: 4px; }
  .navigation nav a { font-size: 13px; }
  .navigation .wordmark { font-size: 22px; }
  .navigation .wordmark img { width: 20px; height: 20px; }
  .nav-start { padding-inline: 4px; }
  .feature-list { grid-template-columns: 1fr; gap: 10px; }
  .footer { flex-wrap: wrap; }
}
