/* Inferlets page: three demo cards on the welcome banner's gradient, then the enterprise offers. */
.inferlet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 8px 0 48px;
}

.inferlet-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  padding: 28px;
  border-radius: 20px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(120deg, var(--c1), var(--c2));
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}

.inferlet-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 90% at 12% 20%, var(--g1), transparent 70%),
    radial-gradient(45% 80% at 58% 30%, var(--g2), transparent 70%),
    radial-gradient(50% 90% at 95% 15%, var(--g3), transparent 70%);
  pointer-events: none;
}

.inferlet-card > * { position: relative; }

.inferlet-card.is-speculative { --c1: #3b5bfd; --c2: #a855f7; --g1: rgba(64,132,255,.95); --g2: rgba(110,231,183,.8); --g3: rgba(232,121,249,.9); }
.inferlet-card.is-prefix      { --c1: #0ea5e9; --c2: #22c55e; --g1: rgba(34,211,238,.9); --g2: rgba(163,230,53,.75); --g3: rgba(56,189,248,.85); }
.inferlet-card.is-prefill     { --c1: #f97316; --c2: #ec4899; --g1: rgba(253,186,116,.9); --g2: rgba(251,113,133,.8); --g3: rgba(250,204,21,.8); }

.inferlet-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
}

.inferlet-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
}

.inferlet-card p { margin: 0; font-size: 15px; line-height: 1.5; opacity: .92; }

.inferlet-link {
  align-self: flex-start;
  margin-top: 20px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: #1d1d1f;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.inferlet-link:hover { background: #fff; }
.inferlet-link:active { transform: scale(.97); }

.enterprise-head { margin: 24px 0 16px; }
.enterprise-head h2 { margin: 0 0 8px; font-size: 26px; }
.enterprise-head p { margin: 0; color: var(--color-label-secondary); max-width: 760px; line-height: 1.5; }

.enterprise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.enterprise-card {
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--color-separator);
  background: var(--color-chrome);
}

.enterprise-card h3 { margin: 0 0 8px; font-size: 17px; }
.enterprise-card p { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: var(--color-label-secondary); }
.enterprise-card a { font-size: 14px; font-weight: 600; color: var(--color-accent); text-decoration: none; }
.enterprise-card a:hover { text-decoration: underline; }

@media (prefers-color-scheme: dark) {
  .enterprise-card { border-color: rgba(255, 255, 255, .1); }
}

/* ---- the inferlet store: two featured programs on the banner's gradients, then a shelf of the rest ---- */
.store-head { margin-bottom: 24px; }

.store-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; margin-bottom: 40px; }

.store-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 28px;
  border-radius: 22px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(120deg, var(--c1), var(--c2));
}
.store-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 90% at 12% 20%, var(--g1), transparent 70%),
    radial-gradient(45% 80% at 58% 30%, var(--g2), transparent 70%),
    radial-gradient(50% 90% at 95% 15%, var(--g3), transparent 70%);
  pointer-events: none;
}
.store-feature > * { position: relative; }
.store-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.store-feature h2 { margin: 0 0 10px; font-size: 26px; line-height: 1.12; font-weight: 700; letter-spacing: -.01em; }
.store-body { margin: 0; font-size: 15px; line-height: 1.45; opacity: .92; }

.store-stat { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: auto 0 20px; padding-top: 24px; }
.store-stat b { font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.store-stat span { font-size: 13px; opacity: .85; }

/* the app strip at the foot of a featured card: icon, name, Get */
.store-app { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(12px); }
.store-app-name { flex: 1; font-size: 14px; font-weight: 600; }

/* app icons: a squircle on the program's gradient, a white glyph */
.store-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .25); }
.store-icon.is-large { width: 56px; height: 56px; border-radius: 13px; }
.store-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.store-icon.is-large svg { width: 28px; height: 28px; }

.is-speculative { --c1: #3b5bfd; --c2: #a855f7; --g1: rgba(64,132,255,.95); --g2: rgba(110,231,183,.8); --g3: rgba(232,121,249,.9); }
.is-prefix      { --c1: #0ea5e9; --c2: #22c55e; --g1: rgba(34,211,238,.9); --g2: rgba(163,230,53,.75); --g3: rgba(56,189,248,.85); }
.is-prefill     { --c1: #f97316; --c2: #ec4899; --g1: rgba(253,186,116,.9); --g2: rgba(251,113,133,.8); --g3: rgba(250,204,21,.8); }
.is-tools       { --c1: #6366f1; --c2: #0ea5e9; }
.is-sink        { --c1: #14b8a6; --c2: #6366f1; }

/* Get: Apple's pill, blue on grey */
.store-get { flex: none; min-width: 64px; padding: 5px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; text-align: center; text-decoration: none; color: var(--color-accent); background: var(--color-fill); }
.store-feature .store-get { color: #fff; background: rgba(255, 255, 255, .25); }
.store-get.is-soon { font-weight: 500; color: var(--color-label-tertiary); }
.store-feature .store-get.is-soon { color: rgba(255, 255, 255, .75); }

.store-preview { padding: 1px 6px; border-radius: 5px; font-size: 10px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--color-label-secondary); background: var(--color-fill); }
.store-feature .store-preview { color: #fff; background: rgba(255, 255, 255, .22); }

/* the shelf: App Store rows, two columns, hairlines between */
.store-shelf-title { margin: 0 0 6px; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.store-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); column-gap: 32px; margin: 0; padding: 0; list-style: none; }
.store-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: .5px solid var(--color-separator); }
.store-text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.store-name { font-size: 14px; font-weight: 600; color: var(--color-label); }
.store-workload { font-size: 12px; color: var(--color-label-secondary); }
.store-benefit { margin-top: 3px; font-size: 12px; color: var(--color-label-tertiary); }
.store-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.store-chip { font-size: 13px; font-weight: 700; color: var(--color-label); font-variant-numeric: tabular-nums; }
.store-side .store-preview { margin-top: -4px; }
.store-footnote { margin: 24px 0 0; font-size: 12px; color: var(--color-label-tertiary); }

/* the featured card's foot: the Add to Playground switch, alone, at the end */
.store-feature-foot { display: flex; justify-content: flex-end; }
.store-feature .store-toggle span:first-child { font-size: 14px; font-weight: 600; }

/* an iOS-style switch: a capsule track, a white knob, green when on */
.store-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.store-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.store-switch { position: relative; flex: none; width: 42px; height: 26px; border-radius: 13px; background: var(--color-fill); transition: background .18s ease; }
.store-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .18s ease; }
.store-toggle input:checked + .store-switch { background: #34c759; }
.store-toggle input:checked + .store-switch::after { transform: translateX(16px); }
.store-toggle input:focus-visible + .store-switch { outline: 3px solid color-mix(in srgb, var(--color-accent) 45%, transparent); outline-offset: 1px; }
.store-toggle input:disabled + .store-switch { opacity: .45; }
.store-toggle:has(input:disabled) { cursor: default; }
.store-feature .store-switch { background: rgba(255, 255, 255, .3); }

/* the playground: a macOS Terminal window */
.term { overflow: hidden; border: .5px solid rgba(0, 0, 0, .35); border-radius: 12px; background: #1e1e1e; box-shadow: 0 12px 32px rgba(0, 0, 0, .18); }
.term-bar { position: relative; display: flex; align-items: center; justify-content: center; height: 30px; background: #2d2d2d; border-bottom: .5px solid rgba(0, 0, 0, .5); }
.term-lights { position: absolute; left: 12px; display: flex; gap: 8px; }
.term-lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.term-lights i:nth-child(2) { background: #febc2e; }
.term-lights i:nth-child(3) { background: #28c840; }
.term-title { font-size: 12px; font-weight: 600; color: #a1a1a6; }
.term-body { max-height: 320px; min-height: 140px; overflow-y: auto; padding: 12px 14px 0; font: 12.5px/1.55 var(--font-mono); color: #f5f5f7; }
.term-out { white-space: pre-wrap; margin-bottom: 6px; }
.term-out.is-dim { color: #a1a1a6; }
.term-out.is-echo { color: #f5f5f7; }
.term-out.is-error { color: #ff6961; }
.term-out.is-code { color: #9fe870; }
.term-line { display: flex; align-items: center; gap: 8px; padding: 6px 14px 12px; font: 12.5px var(--font-mono); cursor: text; }
.term-prompt { color: #64d2ff; }
.term-line input { flex: 1; border: 0; outline: 0; padding: 0; font: inherit; color: #f5f5f7; background: transparent; caret-color: #f5f5f7; }

/* rows, settled: two lines of text, one control centered at the end, separators starting at the text */
.store-row { position: relative; gap: 14px; padding: 12px 0; border-bottom: 0; }
.store-row::after { content: ""; position: absolute; right: 0; bottom: 0; left: 70px; border-bottom: .5px solid var(--color-separator); }
.store-text { gap: 2px; }
.store-name { font-size: 15px; }
.store-workload { font-size: 13px; }
.store-workload b { font-weight: 600; color: var(--color-label); }
.store-soon { flex: none; font-size: 13px; color: var(--color-label-tertiary); }

/* simpler: one centered column; the inferlets in one rounded group, as System Settings groups its rows */
.store-shelf { margin-top: 8px; }
.store-shelf + .store-shelf { margin-top: 36px; }
.store-list { display: block; border-radius: 12px; overflow: hidden; background: var(--color-card); border: .5px solid var(--color-panel-outline); }
.store-row { gap: 14px; padding: 12px 16px; }
.store-row::after { left: 86px; right: 0; }
.store-row:last-child::after { display: none; }
.store-icon.is-large { width: 52px; height: 52px; border-radius: 12px; }
.store-icon.is-large svg { width: 26px; height: 26px; }

/* the playground placeholder: a quiet tag, a window that only says what is coming */
.store-shelf-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.store-dev { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--color-label-secondary); background: var(--color-fill); }
.term.is-placeholder .term-body { min-height: 96px; padding-bottom: 14px; }

/* tiles: the full content width, three across where it fits, each a quiet rounded card */
.store-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; border: 0; border-radius: 0; background: none; overflow: visible; }
.store-tile { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 14px; background: var(--color-card); border: .5px solid var(--color-panel-outline); }
.store-tile-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.store-tile .store-icon { width: 44px; height: 44px; border-radius: 11px; }
.store-tile .store-icon svg { width: 24px; height: 24px; }
.store-tile .store-name { font-size: 15px; font-weight: 600; }
.store-tile .store-workload { font-size: 13px; color: var(--color-label-secondary); }
.store-figure { margin-top: 10px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--color-label); }

/* one rhythm on an 8-point grid: 32 between sections, 16 between tiles, 20 inside a tile */
#inferlets .store-head { margin-bottom: 32px; }
#inferlets .store-head .welcome-tagline { margin: 4px 0 0; }
#inferlets .store-shelf { margin: 0; }
#inferlets .store-shelf + .store-shelf { margin-top: 32px; }
#inferlets .store-list { gap: 16px; }
#inferlets .store-tile { gap: 2px; padding: 20px; }
#inferlets .store-tile-top { margin-bottom: 16px; }
#inferlets .term { box-shadow: none; }
#inferlets .term.is-placeholder .term-body { min-height: 0; padding: 14px 16px; }

/* tiles as Shortcuts draws them: each filled with its own gradient, a white glyph, white type */
#inferlets .store-tile {
  position: relative;
  overflow: hidden;
  border: 0;
  color: #fff;
  background: linear-gradient(145deg, var(--c1), var(--c2));
}
#inferlets .store-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .22), transparent 60%);
  pointer-events: none;
}
#inferlets .store-tile > * { position: relative; }
.store-glyph { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#inferlets .store-tile .store-name { color: #fff; }
#inferlets .store-tile .store-workload { color: rgba(255, 255, 255, .8); }
#inferlets .store-tile .store-switch { background: rgba(255, 255, 255, .28); }
#inferlets .store-tile .store-toggle input:checked + .store-switch { background: rgba(255, 255, 255, .95); }
#inferlets .store-tile .store-toggle input:checked + .store-switch::after { background: var(--c2); box-shadow: none; }
#inferlets .term.is-placeholder .term-body { min-height: 480px; }

/* on a phone: one tile per row, the playground the width of the screen and a sensible height */
@media (max-width: 899px) {
  #inferlets .store-list { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; }
  #inferlets .store-shelf + .store-shelf { margin-top: 24px; }
  #inferlets .term.is-placeholder .term-body { min-height: 280px; }
}

/* phones: two tiles a row, as Shortcuts lays them out on iPhone, so the playground follows close behind */
@media (max-width: 899px) {
  #inferlets .store-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #inferlets .store-tile { padding: 14px; border-radius: 16px; }
  #inferlets .store-tile-top { margin-bottom: 18px; }
  #inferlets .store-glyph { width: 24px; height: 24px; }
  #inferlets .store-tile .store-name { font-size: 14px; line-height: 1.25; }
  #inferlets .store-tile .store-workload {
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  #inferlets .store-tile .store-switch { width: 38px; height: 23px; border-radius: 12px; }
  #inferlets .store-tile .store-switch::after { width: 19px; height: 19px; }
  #inferlets .store-tile .store-toggle input:checked + .store-switch::after { transform: translateX(15px); }
}

/* the headline, as Apple opens a product page: a large title, a tinted line under it, a short paragraph */
.inf-hero { max-width: 760px; margin: 8px 0 40px; }
.inf-title { margin: 0; font-size: 48px; line-height: 1.08; font-weight: 700; letter-spacing: -.02em; color: var(--color-label); }
.inf-label {
  display: inline-block;
  margin: 10px 0 0;
  font-size: 28px; line-height: 1.15; font-weight: 600; letter-spacing: -.01em;
  background: linear-gradient(90deg, #f97316, #ec4899 40%, #8b5cf6 75%, #3b82f6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.inf-text { margin: 14px 0 0; font-size: 19px; line-height: 1.45; color: var(--color-label-secondary); }
@media (max-width: 899px) {
  .inf-hero { margin: 4px 0 28px; }
  .inf-title { font-size: 34px; }
  .inf-label { font-size: 22px; }
  .inf-text { font-size: 17px; }
}

/* the live terminal: pie on WebGPU in the tab, a centered title, the answer's TTFT at the right */
#inferlets .term.is-live { cursor: text; }
#inferlets .term.is-live .term-body { min-height: 480px; max-height: 480px; padding: 14px 16px; }
#inferlets .term.is-live .term-line { padding: 0; }
#inferlets .term.is-live .term-line[hidden] { display: none; }
.term-title { overflow: hidden; max-width: calc(100% - 220px); white-space: nowrap; text-overflow: ellipsis; }
.term-ttft { position: absolute; right: 12px; font: 600 11.5px var(--font-mono); color: #9fe870; font-variant-numeric: tabular-nums; cursor: help; }
.term-ttft[hidden] { display: none; }
.term-out.is-answer { color: #f5f5f7; }
.term-out.is-answer:empty::before { content: "▍"; color: #a1a1a6; animation: term-blink 1s steps(1) infinite; }
.term-line input { caret-shape: block; }
@keyframes term-blink { 50% { opacity: 0; } }
@media (max-width: 899px) {
  #inferlets .term.is-live .term-body { min-height: 280px; max-height: 360px; }
  .term-title { max-width: calc(100% - 170px); }
}

/* the GPU capsule, right after the traffic lights: green when WebGPU found an adapter, grey when not */
.term-gpu { position: absolute; left: 72px; display: inline-flex; align-items: center; gap: 6px; max-width: 220px; height: 18px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; color: #30d158; background: rgba(48, 209, 88, .14); }
.term-gpu::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.term-gpu.is-none { color: #a1a1a6; background: rgba(255, 255, 255, .08); }
.term-gpu[hidden] { display: none; }
.term-gpu { overflow: hidden; text-overflow: ellipsis; }
.term.is-live .term-title { max-width: calc(100% - 600px); }
@media (max-width: 1100px) { .term.is-live .term-title { max-width: calc(100% - 420px); } .term-gpu { max-width: 120px; } }
@media (max-width: 600px) {
  .term-gpu, .term-gpu.is-none { max-width: none; padding: 0 6px; gap: 0; font-size: 0; }
  .term.is-live .term-title { max-width: calc(100% - 176px); font-size: 11px; }
}

/* the title bar's right side: TTFT, then the GPU capsule; no title */
.term-status { position: absolute; right: 12px; display: inline-flex; align-items: center; gap: 10px; max-width: calc(100% - 90px); }
.term-status .term-ttft,
.term-status .term-gpu { position: static; }
.term-status .term-gpu { max-width: 260px; }
@media (max-width: 899px) { .term-status .term-gpu { max-width: none; } }

/* the answer's Markdown, drawn as a rich terminal draws it */
.term-out.is-answer b { font-weight: 700; color: #fff; }
.term-out.is-answer i { font-style: italic; color: #e5e5ea; }
.term-out.is-answer code,
.term-out.is-answer .md-code { color: #9fe870; }
.term-out.is-answer .md-h { color: #64d2ff; }
.term-out.is-answer .md-bullet { color: #a1a1a6; }
.term-out.is-answer .md-rule { color: #48484a; }

/* the live terminal is a quarter taller */
#inferlets .term.is-live .term-body { min-height: 600px; max-height: 600px; }
#inferlets .term.is-placeholder .term-body { min-height: 600px; }
@media (max-width: 899px) {
  #inferlets .term.is-live .term-body { min-height: 350px; max-height: 450px; }
  #inferlets .term.is-placeholder .term-body { min-height: 350px; }
}

/* before the first click: a centered cover, as a video waits with its play button */
.term-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 24px; text-align: center; font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif); cursor: pointer; }
#inferlets .term.is-live .term-body:has(.term-cover) { position: relative; }
.term-cover-eyebrow { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.01em; color: #f5f5f7; }
.term-cover-title {
  margin: 8px 0 28px; font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em;
  background: linear-gradient(90deg, #f97316, #ec4899 40%, #8b5cf6 75%, #3b82f6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.term-cover-play { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .14); backdrop-filter: blur(12px); transition: transform .2s, background .2s; }
.term-cover-play svg { width: 26px; height: 26px; margin-left: 3px; fill: #fff; }
.term-cover:hover .term-cover-play { transform: scale(1.06); background: rgba(255, 255, 255, .22); }
.term-cover-hint { margin: 12px 0 0; font-size: 13px; color: #8e8e93; }
@media (max-width: 899px) {
  .term-cover-eyebrow { font-size: 18px; }
  .term-cover-title { margin-bottom: 22px; font-size: 26px; }
  .term-cover-play { width: 56px; height: 56px; }
}

/* the cover, as an Apple product page opens a section: a tinted eyebrow, a large white headline, a blue pill */
.term-cover { background: radial-gradient(60% 55% at 50% 45%, rgba(139, 92, 246, .16), transparent 70%), radial-gradient(40% 40% at 30% 60%, rgba(249, 115, 22, .08), transparent 70%); }
.term-cover-eyebrow {
  font-size: 21px; font-weight: 600; letter-spacing: .005em;
  background: linear-gradient(90deg, #f97316, #ec4899 50%, #8b5cf6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.term-cover-title { margin: 6px 0 30px; font-size: 56px; line-height: 1.07; letter-spacing: -.015em; background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #f5f5f7; }
.term-cover-cta { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 980px; font-size: 17px; font-weight: 400; color: #fff; background: #0071e3; transition: background .2s; }
.term-cover-cta svg { width: 20px; height: 20px; }
.term-cover-cta circle { fill: none; stroke: currentColor; stroke-width: 1.6; }
.term-cover-cta path { fill: currentColor; }
.term-cover:hover .term-cover-cta { background: #0077ed; }
@media (max-width: 899px) {
  .term-cover-eyebrow { font-size: 17px; }
  .term-cover-title { margin-bottom: 24px; font-size: 32px; }
  .term-cover-cta { height: 40px; padding: 0 18px; font-size: 15px; }
}

/* dark mode: the window sits deeper than the page and carries a light hairline, as a macOS window does in Dark Mode */
:root[data-theme="dark"] #inferlets .term { background: #0d0d10; border-color: rgba(255, 255, 255, .16); box-shadow: 0 0 0 .5px rgba(255, 255, 255, .06), 0 24px 60px rgba(0, 0, 0, .55); }
:root[data-theme="dark"] #inferlets .term .term-body { background: #0d0d10; }
:root[data-theme="dark"] .term-cover { background: radial-gradient(60% 60% at 50% 45%, rgba(139, 92, 246, .28), transparent 70%), radial-gradient(45% 45% at 28% 62%, rgba(249, 115, 22, .16), transparent 70%), radial-gradient(40% 40% at 74% 64%, rgba(59, 130, 246, .16), transparent 70%); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #inferlets .term { background: #0d0d10; border-color: rgba(255, 255, 255, .16); box-shadow: 0 0 0 .5px rgba(255, 255, 255, .06), 0 24px 60px rgba(0, 0, 0, .55); }
  :root:not([data-theme="light"]) #inferlets .term .term-body { background: #0d0d10; }
  :root:not([data-theme="light"]) .term-cover { background: radial-gradient(60% 60% at 50% 45%, rgba(139, 92, 246, .28), transparent 70%), radial-gradient(45% 45% at 28% 62%, rgba(249, 115, 22, .16), transparent 70%), radial-gradient(40% 40% at 74% 64%, rgba(59, 130, 246, .16), transparent 70%); }
}

/* the GPU in the title bar, as macOS shows status there: quiet grey text after a chip symbol, no capsule */
.term-status .term-gpu,
.term-status .term-gpu.is-none { height: auto; padding: 0; gap: 5px; border-radius: 0; background: none; font-size: 12px; font-weight: 500; color: #98989d; }
.term-status .term-gpu::before {
  width: 13px; height: 13px; border-radius: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='6' y='6' width='12' height='12' rx='2.5'/%3E%3Crect x='9.5' y='9.5' width='5' height='5' rx='1'/%3E%3Cpath d='M9 2.5v3M15 2.5v3M9 18.5v3M15 18.5v3M2.5 9h3M2.5 15h3M18.5 9h3M18.5 15h3'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='6' y='6' width='12' height='12' rx='2.5'/%3E%3Crect x='9.5' y='9.5' width='5' height='5' rx='1'/%3E%3Cpath d='M9 2.5v3M15 2.5v3M9 18.5v3M15 18.5v3M2.5 9h3M2.5 15h3M18.5 9h3M18.5 15h3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.term-status .term-gpu.is-none { color: #6e6e73; }
@media (max-width: 899px) { .term-status .term-gpu, .term-status .term-gpu.is-none { font-size: 11px; } }

/* no shadow on the terminal in any mode; dark mode keeps its hairline */
#inferlets .term,
:root[data-theme="dark"] #inferlets .term { box-shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #inferlets .term { box-shadow: none; } }

/* TTFT, as macOS shows a reading in a title bar: a stopwatch symbol, a grey label, the figure in white */
.term-status .term-ttft { display: inline-flex; align-items: center; gap: 5px; font: 500 12px var(--font-sans, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif); color: #98989d; }
.term-status .term-ttft[hidden] { display: none; }
.term-status .term-ttft::before {
  content: ""; width: 13px; height: 13px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='13.5' r='7.5'/%3E%3Cpath d='M12 13.5V9.5M10 2.5h4M18.5 6.5l1.3-1.3'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='13.5' r='7.5'/%3E%3Cpath d='M12 13.5V9.5M10 2.5h4M18.5 6.5l1.3-1.3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.term-ttft-value { font-weight: 600; color: #f5f5f7; font-variant-numeric: tabular-nums; }
.term-status { gap: 16px; }
@media (max-width: 899px) { .term-status .term-ttft { font-size: 11px; } .term-status { gap: 12px; } }

/* no outline around the terminal in any mode */
#inferlets .term,
:root[data-theme="dark"] #inferlets .term { border: 0; box-shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #inferlets .term { border: 0; box-shadow: none; } }

/* the cover is plain: no glow behind the button */
.term-cover,
:root[data-theme="dark"] .term-cover { background: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .term-cover { background: none; } }
