/* Lab Wala landing page. Every value comes from the app: web/src/styles/global.css and screens.css. */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-wght-normal.woff2) format('woff2-variations'), url(fonts/inter-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --ink: rgba(0, 0, 0, .87); --ink-2: rgba(0, 0, 0, .56); --ink-3: rgba(0, 0, 0, .36);
  --line: rgba(0, 0, 0, .09); --line-2: rgba(0, 0, 0, .15); --fill: rgba(0, 0, 0, .05);
  --accent: #0062d6;                 /* white on it is 5.9:1 */
  --knob: 0 1px 3px rgba(0, 0, 0, .12);
  --font: 'Inter Variable', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --mono: 'SF Mono', ui-monospace, Menlo, 'Cascadia Mono', Consolas, monospace;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
a { color: inherit; }
svg { flex-shrink: 0; }
:focus { outline: none; }
:focus-visible { outline: 3px solid rgba(0, 122, 255, .5); outline-offset: 1px; }
a:focus-visible { border-radius: 4px; }
::selection { background: rgba(0, 122, 255, .3); }

/* ---------- the one screen ---------- */
.hero {
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  background:
    radial-gradient(62% 70% at 12% 0%, rgba(0, 122, 255, .12), rgba(0, 122, 255, 0) 100%),
    radial-gradient(60% 65% at 92% 100%, rgba(255, 204, 0, .10), rgba(255, 204, 0, 0) 100%),
    #fff;
}

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gutter); }
.brand { display: flex; align-items: center; gap: 8px; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.brand svg { color: var(--ink); }

main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px var(--gutter); text-align: center; }
h1 { margin: 0; font-size: 44px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.sub { margin: 10px 0 0; max-width: 560px; font-size: 17px; line-height: 1.5; color: var(--ink-2); text-wrap: balance; }

/* capsule buttons (.lw-btn) */
.lw-btn { height: 34px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px;
  font-size: 13.5px; line-height: 18px; font-weight: 500; white-space: nowrap; text-decoration: none; transition: background .12s, color .12s, box-shadow .12s; }
.lw-btn.primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .10); }
.lw-btn.primary:hover { background: #0058c1; }
/* In the Install state the guide is on screen: the button steps back, so the only accent is Copied. */
.lw-btn.primary.quiet { background: var(--fill); color: var(--ink); box-shadow: none; }
.lw-btn.primary.quiet:hover { background: rgba(0, 0, 0, .085); }

/* segmented control (.lw-seg) */
.lw-seg { display: flex; flex: none; gap: 2px; padding: 2px; height: 30px; border-radius: 999px; background: var(--fill); }
.lw-seg button { position: relative; flex: none; height: 26px; padding: 0 14px; display: flex; align-items: center; border-radius: 999px;
  font-size: 12.5px; line-height: 16px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s; }
.lw-seg button:hover { color: var(--ink); }
.lw-seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--knob); }

.switch { display: none; }
.js .switch { display: flex; justify-content: center; gap: 12px; margin-top: 22px; }
/* auto-advance: a 2px line fills along the bottom of the active segment */
.auto .lw-seg button[aria-pressed="true"]::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px; border-radius: 1px;
  background: var(--ink-3); transform-origin: left center; animation: lw-progress 4.5s linear forwards; }
@keyframes lw-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- the window ---------- */
.stage { position: relative; width: min(1040px, 100%); margin-top: 22px; }
/* Desktop: the hero fits one screen. The window takes the height the rest leaves (--chrome, 357.1px measured
   at 1440 wide: header, h1, sub, switcher, caption, footer and their gaps) at 16:10, and never gets
   narrower than 640px; a shorter screen scrolls instead. */
@media (min-width: 1024px) {
  :root { --chrome: 358px; }
  .stage { width: max(640px, min(100%, 1040px, (100vh - var(--chrome)) * 1.6)); }
  @supports (height: 100svh) { .stage { width: max(640px, min(100%, 1040px, (100svh - var(--chrome)) * 1.6)); } }
}
.window { background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .14), 0 24px 60px rgba(0, 0, 0, .14), 0 2px 6px rgba(0, 0, 0, .06); }
.shots { position: relative; aspect-ratio: 16 / 10; }
.shot { display: block; width: 100%; height: 100%; }
.shot:not(.on) { display: none; }
.cap { margin: 10px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-2); text-wrap: balance; }

/* With JS: one pane at a time, cross-fading in place (240ms); the other is out of flow and hidden. */
.js .shot { position: absolute; inset: 0; display: block; opacity: 0; transition: opacity .24s; }
.js .shot.on { opacity: 1; }
.js .pane { position: relative; z-index: 1; transition: opacity .24s; }
.js .pane:not(.on) { position: absolute; top: 0; left: 0; right: 0; z-index: 0; max-height: 100%; overflow: hidden;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .24s, visibility 0s linear .24s; }
.still *, .still *::after { transition: none !important; }
/* Without JS the guide is a second window under the Labs screen, with both systems' steps. */
html:not(.js) .guide { margin-top: 48px; }

/* ---------- the install guide ---------- */
.guide { text-align: left; padding: 36px var(--gutter) 32px; }
.guide-in { max-width: 640px; margin: 0 auto; }
.guide-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; }
.guide h2 { margin: 0; font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -.44px; }
.os-seg { display: none; }
.js .os-seg { display: flex; }
.os h3 { margin: 20px 0 0; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-2); }
.js .os h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps > li { counter-increment: step; position: relative; padding: 16px 0 16px 30px; }
.steps > li + li { border-top: 1px solid var(--line); }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 16px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.steps p { margin: 0; color: var(--ink-2); }
.steps p + p, .steps p + ul { margin-top: 4px; }
.steps .do { color: var(--ink); }
.steps b { font-weight: 600; color: var(--ink); }
.steps .ui { white-space: nowrap; }
.steps em { font-style: italic; color: var(--ink); }
.steps ul { margin: 0; padding: 0 0 0 18px; list-style: disc; color: var(--ink-2); }
.steps ul li + li { margin-top: 4px; }
kbd { font: 14px var(--mono); color: var(--ink); }

/* the command, with Copy pinned on the right */
.cmd { display: flex; align-items: center; gap: 8px; height: 40px; margin: 10px 0; padding: 0 8px 0 14px; border-radius: 8px; background: var(--fill); }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font: 13px/40px var(--mono); color: var(--ink); scrollbar-width: none; user-select: all; -webkit-user-select: all; }
.cmd code::-webkit-scrollbar { display: none; }
.copy { display: none; }
.js .copy { flex: none; height: 24px; padding: 0 10px; display: inline-flex; align-items: center; gap: 5px; border-radius: 999px;
  background: #fff; box-shadow: var(--knob); font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.copy .i-check, .copy.done .i-copy { display: none; }
.copy.done .i-check { display: block; }
.copy.done { color: var(--accent); }

.notes { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 18px; color: var(--ink-2); }
.notes p { margin: 0; }
.notes p + p { margin-top: 4px; }
.notes a, footer a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 2px; }
.notes a:hover, footer a:hover { text-decoration-color: currentColor; }

footer { padding: 0 var(--gutter) 16px; text-align: center; font-size: 12.5px; line-height: 18px; color: var(--ink-2); }
footer span, footer a { white-space: nowrap; }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  h1 { font-size: 34px; }
}
@media (max-width: 639px) {
  :root { --gutter: 12px; }
  h1 { font-size: 28px; }
  /* the switcher scrolls sideways instead of wrapping */
  .js .switch { justify-content: flex-start; align-self: stretch; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter));
    padding: 4px var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
  .js .switch::-webkit-scrollbar { display: none; }
  .switch > :first-child { margin-left: auto; }
  .switch > :last-child { margin-right: auto; }
  .switch button { scroll-snap-align: start; }
  .js .stage { margin-top: 24px; }
  .guide { padding: 24px 16px 20px; }
  .steps > li { padding-left: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .auto .lw-seg button[aria-pressed="true"]::after { content: none; }
}
