/* Direction A: terminal-native. Panes split by hairlines like tmux, prompt labels sit on the rules. */
.top {
  border-bottom: 1px solid var(--line);
}

.hero {
  padding: 72px 0 112px;
}

.hero h1 {
  font: 400 clamp(26px, 3.4vw + 15px, 54px)/1.14 var(--mono);
  letter-spacing: -0.035em;
  text-wrap: wrap;
}

/* Lines break only between phrases, and the cursor stays on the last one. */
.hero h1 > span {
  white-space: nowrap;
}

.hero h1 em {
  font-style: normal;
  color: var(--green);
}

.cursor {
  display: inline-block;
  width: 0.48em;
  height: 0.86em;
  margin-left: 0.1em;
  vertical-align: -0.06em;
  background: var(--green);
  animation: blink 1.1s steps(1) 4;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.lede {
  margin-top: 24px;
  max-width: 64ch;
  color: var(--ink-2);
  font-size: clamp(18px, 0.6vw + 15px, 21px);
  line-height: 1.5;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.meta {
  margin-top: 16px;
  color: var(--ink-3);
  font: 400 16px/1.5 var(--mono);
}

/* Install command: one line where it fits; on phones it breaks before the pipe and Copy drops below. */
.cmd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-height: 48px;
  max-width: 100%;
  padding: 4px 4px 4px 16px;
  border-radius: 8px;
  background: var(--raise);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.cmd code {
  padding-block: 8px;
  color: var(--ink);
  font: 400 min(15px, 3.9vw)/1.4 var(--mono);
}

.cmd span {
  white-space: nowrap;
}

.cmd button {
  flex: none;
  margin-left: auto;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--ink-2);
  font: 500 14px/1.5 var(--mono);
  cursor: pointer;
}

.cmd button:hover {
  background: rgb(255 255 255 / 0.06);
  color: var(--ink);
}

.shot-hero {
  margin-top: 56px;
}

code {
  font: 0.95em var(--mono);
}

/* Panes */
.pane {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--line);
}

.prompt {
  position: absolute;
  top: 0;
  left: 0;
  padding-right: 14px;
  background: var(--bg);
  color: var(--ink-3);
  font: 500 14px/1.5 var(--mono);
  transform: translateY(-50%);
}

.prompt::before {
  content: "> ";
  color: var(--green);
  white-space: pre;
}

.pane-text {
  padding-top: 40px;
}

.pane h2 {
  max-width: 18ch;
  font-size: clamp(26px, 1.4vw + 19px, 36px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.pane-text p {
  margin-top: 14px;
  max-width: 40ch;
  color: var(--ink-2);
}

.pane > .shot {
  padding: 32px 0 64px;
}

/* One app zoom for every shot: 789.6 app px fill the column. */
.pane > figure.shot img {
  width: calc((100% - 8px) * var(--app) / 789.6);
}

.shot-workers { --app: 784; }
.shot-terminal { --app: 642.5; }
.shot-memory { --app: 399.2; }
.shot-phone { --app: 430.3; }
.shot-themes { --app: 784; }

.shot-memory img,
.shot-phone img {
  margin-inline: auto;
}

/* Picker: the app's cross picker in app px, cropped like its shot; picker.js sets the shots' zoom. */
.picker {
  --accent: #ed6549;
  --spring: linear(0.0000, 0.0572, 0.1867, 0.3424, 0.4963, 0.6332, 0.7465, 0.8350, 0.9008, 0.9472, 0.9782, 0.9974, 1.0083, 1.0134, 1.0148, 1.0140, 1.0121, 1.0098, 1.0075, 1.0055, 1.0038, 1.0025, 1.0015, 1.0008, 1.0003, 1.0000, 0.9999, 0.9998, 0.9998, 0.9998, 0.9998);
  position: relative;
  width: 670px;
  max-width: 100%;
  height: 380px;
  overflow: hidden;
  border-radius: 9.66px;
  background: radial-gradient(ellipse 330px 270px at center, color-mix(in srgb, var(--accent) 9%, transparent), transparent), #030407f5;
  color: #f2f3f5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  zoom: var(--z);
  touch-action: pan-y;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.picker:focus {
  touch-action: none;
}

/* Zoom thins the site's focus ring to 1 px; keep it 2. */
.picker:focus-visible {
  outline-width: calc(2px / var(--z));
  outline-offset: calc(3px / var(--z));
}

.picker::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  box-shadow: inset 0 0 0 0.8px rgb(255 255 255 / 0.09);
  pointer-events: none;
}

.picker[data-family="gpt"] { --accent: #3594ff; }
.picker[data-family="grok"] { --accent: #8b929c; }
.picker[data-family="gemini"] { --accent: #aa7bfa; }
.picker[data-family="metamuse"] { --accent: #43ce8b; }

.picker-stage {
  height: 100%;
}

.picker-plane {
  position: relative;
  height: 100%;
  transition: transform 600ms var(--spring);
}

.picker-column {
  position: absolute;
  top: calc(50% - 50px);
  left: calc(50% - 55px);
  display: flex;
  flex-direction: column;
  gap: 30px;
  transition: transform 600ms var(--spring);
  will-change: transform;
}

.picker-cell {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 110px;
  height: 100px;
  padding: 10px 6px;
  border: 1px solid #53545f;
  border-radius: 16px;
  background: linear-gradient(145deg, #191a22, #090b10);
  opacity: 0.5;
  box-shadow: inset 0 1px 1px #ffffff12;
  text-align: center;
  cursor: pointer;
  transition: opacity 180ms, background 180ms;
}

.picker-cell > svg {
  flex-shrink: 0;
  color: #c9ccd3;
  margin-bottom: 3px;
}

.picker-cell:hover { opacity: 0.85; }
.picker-cell.on { opacity: 1; background: linear-gradient(145deg, #20212b, #0b0e16); }
.picker-column .on { border-color: transparent; transform: scale(1.12, 1.14); }

.picker-engine {
  color: #a7a9b3;
  font-size: 10px;
  line-height: 1;
}

.picker-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.picker-badge {
  padding: 1px 7px;
  border: 1px solid #53545f;
  border-radius: 999px;
  background: #ffffff14;
  color: #c9ccd3;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.picker-ring {
  position: absolute;
  z-index: 2;
  top: calc(50% - 46px);
  left: calc(50% - 55px);
  width: 110px;
  height: 92px;
  border: 2px solid var(--accent);
  border-radius: 16px;
  box-shadow: 0 0 7px color-mix(in srgb, var(--accent) 65%, transparent), 0 0 25px color-mix(in srgb, var(--accent) 35%, transparent), inset 0 0 16px color-mix(in srgb, var(--accent) 8%, transparent);
  pointer-events: none;
}

.picker-ring-effort {
  transition: transform 600ms var(--spring);
  will-change: transform;
}

.picker-ring-model {
  top: calc(50% - 57px);
  left: calc(50% - 62px);
  width: 124px;
  height: 114px;
  border-radius: 18px;
}

.picker-efforts {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.picker-effort {
  position: absolute;
  top: calc(50% - 46px);
  left: calc(50% - 55px);
  height: 92px;
  gap: 10px;
  pointer-events: auto;
}

.picker-chevron {
  position: absolute;
  z-index: 3;
  top: calc(50% - 12px);
  left: 50%;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  color: #c5c8d0;
  cursor: pointer;
}

.picker-up { top: calc(50% - 78px); }
.picker-down { top: calc(50% + 54px); }

.picker-left,
.picker-right {
  border-radius: 50%;
  background: #030407;
  box-shadow: 0 0 16px 12px #030407;
}

.picker-hint {
  width: calc(670px * var(--z));
  max-width: 100%;
  margin-top: 12px;
  color: var(--ink-3);
  font: 500 14px/1.5 var(--mono);
  text-align: center;
}

.picker-taps { display: none; }

@media (pointer: coarse) {
  .picker-keys { display: none; }
  .picker-taps { display: inline; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 960px) {
  .pane {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }

  .pane-text {
    padding: 56px 48px 72px 0;
  }

  .pane > .shot {
    padding: 56px 0 72px 48px;
    border-left: 1px solid var(--line);
  }
}

/* Themes: one look at a time; the shots share one cell, so switching never moves the page. */
.theme-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
}

.theme-pick button {
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--ink-3);
  font: 500 14px/1.5 var(--mono);
  cursor: pointer;
}

.theme-pick button:hover {
  color: var(--ink);
}

.theme-pick [aria-pressed="true"] {
  background: var(--raise);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.theme-screen {
  display: grid;
}

/* The new shot fades in over the old one, which drops out once it is covered. */
.theme-screen img {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0s 0.2s, visibility 0s 0.2s;
}

.shot-themes:has([value="terminal"][aria-pressed="true"]) .t-terminal,
.shot-themes:has([value="multiplexer"][aria-pressed="true"]) .t-multiplexer,
.shot-themes:has([value="modal"][aria-pressed="true"]) .t-modal,
.shot-themes:has([value="logfile"][aria-pressed="true"]) .t-logfile {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease;
}

/* Download */
.get {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 12px;
}

.btn-xl {
  min-height: 60px;
  padding: 0 32px;
  font-size: 18px;
}

.get .meta {
  margin-top: 0;
}

.fine {
  max-width: 52ch;
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 16px;
}

.fine b {
  color: var(--ink-2);
  font-weight: 600;
}

/* Footer: a status line */
.foot {
  border-top: 1px solid var(--line);
}

.foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 28px 0 40px;
  color: var(--ink-3);
  font: 400 14px/1.5 var(--mono);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.foot a {
  color: var(--ink-2);
  text-underline-offset: 3px;
}

.foot a:hover {
  color: var(--ink);
}
