/* Crew landing page. Plain CSS, no build step. The palette, type and shapes come from the app itself
   (src/renderer/shared/theme/tokens.css): warm cream surfaces, an espresso ink, one coral action colour, Figtree for
   everything and JetBrains Mono for commands. The dark scheme is the app's dark Modules palette. */

@font-face {
  font-family: 'Figtree';
  src: url('../fonts/figtree-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --bg: #fff9f0;
  --bg-band: #f8eddc;
  --bg-warm: #f3e6d3;
  --card: #ffffff;
  --ink: #4a3b32;
  --ink-2: #6e5b4f;
  --ink-3: #695749;
  --line: #e8d7bf;
  --line-2: #dcc8ae;
  --coral: #f08a5d;
  --coral-hover: #ea8153;
  --coral-edge: #d9744a;
  --on-coral: #3f3029;
  --link: #a3441b;
  --focus: #2b6cb0;
  --select: #ffd9a8;
  --tint-coral: #fde5d6;

  --work-tint: #ddf1fa;
  --work-deep: #1d6a8f;
  --think-tint: #ece5fa;
  --think-deep: #5f43b0;
  --wait-tint: #fff0cf;
  --wait-deep: #8a5700;
  --done-tint: #dcf4e7;
  --done-deep: #1d7a4c;
  --done: #3db87a;

  --shadow-sm: 0 1px 2px rgba(92, 62, 35, 0.1);
  --shadow-md: 0 4px 12px rgba(92, 62, 35, 0.12), 0 1px 2px rgba(92, 62, 35, 0.08);
  --shadow-lg: 0 18px 48px rgba(92, 62, 35, 0.2), 0 2px 8px rgba(92, 62, 35, 0.08);

  --radius: 10px;
  --radius-lg: 16px;
  --font-ui: 'Figtree', ui-sans-serif, 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Consolas, 'SF Mono', Menlo, monospace;
  --gutter: clamp(16px, 4vw, 32px);
  --wrap: 1180px;
  --sky-glow: #fde3cf;
  --cloud: #ffffff;
  --cloud-opacity: 0.85;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1612;
    --bg-band: #231d18;
    --bg-warm: #2a221c;
    --card: #2b241e;
    --ink: #f0e5d8;
    --ink-2: #bba99a;
    --ink-3: #9a897b;
    --line: #3a3129;
    --line-2: #4b4036;
    --link: #f4a57d;
    --focus: #86bbe8;
    --select: #5b4228;
    --tint-coral: #3a2a22;

    --work-tint: #1b3441;
    --work-deep: #8fd1f0;
    --think-tint: #2c2542;
    --think-deep: #c8b8f5;
    --wait-tint: #3d2e12;
    --wait-deep: #f6c66f;
    --done-tint: #17342a;
    --done-deep: #82dcab;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.42), 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.3);
    --sky-glow: #3a2a22;
    --cloud: #5a4a40;
    --cloud-opacity: 0.35;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection {
  background: var(--select);
}
img,
video,
svg {
  max-width: 100%;
}
img {
  height: auto;
}
h1,
h2,
h3,
h4,
p,
ul,
figure {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
a {
  color: var(--link);
  text-underline-offset: 3px;
}
code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  overflow-wrap: anywhere;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
section[id] {
  scroll-margin-top: 72px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.nowrap {
  white-space: nowrap;
}
.muted {
  color: var(--ink-2);
}
.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.wrap.narrow {
  width: min(780px, 100% - 2 * var(--gutter));
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 600;
}
.skip:focus {
  top: 12px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 120ms ease,
    background-color 120ms ease,
    box-shadow 120ms ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-primary {
  background: var(--coral);
  border-color: var(--coral-edge);
  color: var(--on-coral);
  box-shadow: 0 2px 0 var(--coral-edge);
}
.btn-primary:hover {
  background: var(--coral-hover);
  box-shadow:
    0 3px 0 var(--coral-edge),
    var(--shadow-md);
}
.btn-small {
  min-height: 40px;
  padding: 0 18px;
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.topbar-in {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand-name {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
}
.mug {
  display: block;
  overflow: visible;
}
.steam path {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: steam 3.4s ease-in-out 2;
}
.steam .s2 {
  animation-delay: 0.35s;
}
.steam .s3 {
  animation-delay: 0.7s;
}
.brand:hover .steam path {
  animation-iteration-count: infinite;
}
@keyframes steam {
  0%,
  100% {
    transform: translateY(0) scaleY(1);
    opacity: 1;
  }
  50% {
    transform: translateY(-16px) scaleY(1.08);
    opacity: 0.55;
  }
}
.nav {
  display: flex;
  gap: 4px;
}
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: var(--radius);
}
.nav a:hover {
  color: var(--ink);
  background: var(--bg-warm);
}
@media (max-width: 760px) {
  .nav {
    display: none;
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px) 0 clamp(36px, 6vw, 72px);
  background:
    radial-gradient(1100px 460px at 50% -8%, var(--sky-glow), transparent 72%),
    linear-gradient(var(--bg), var(--bg));
  text-align: center;
}
.sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* two clouds that bob in the margins of the hero (like the day sky in the app), only where there is a margin to put them in */
.cloud {
  display: none;
  position: absolute;
  fill: var(--cloud);
  opacity: var(--cloud-opacity);
  animation: bob 11s ease-in-out infinite;
}
.cloud.c1 {
  top: 96px;
  left: 2.5%;
}
.cloud.c2 {
  top: 210px;
  right: 3%;
  animation-delay: -5s;
}
@keyframes bob {
  50% {
    transform: translateY(10px);
  }
}
@media (min-width: 1360px) {
  .cloud {
    display: block;
  }
}
.hero-in {
  position: relative;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 80%, transparent);
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 600;
}
.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--done);
}
h1 {
  margin: 18px auto 0;
  max-width: 20ch;
  font-size: clamp(2.5rem, 6.2vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}
.lead {
  margin: 16px auto 0;
  max-width: 44em;
  font-size: clamp(1.08rem, 2vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* the three download buttons: the one for your computer is filled, the others always stay visible */
.downloads {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}
.dl {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 64px;
  min-width: 220px;
  padding: 10px 24px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    background-color 120ms ease;
}
.dl:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.dl-main {
  font-weight: 700;
  font-size: 1.05rem;
}
.dl-sub {
  font-size: 0.85rem;
  color: var(--ink-2);
  font-weight: 500;
}
.dl.is-primary {
  background: var(--coral);
  border-color: var(--coral-edge);
  color: var(--on-coral);
  box-shadow: 0 3px 0 var(--coral-edge);
  min-height: 72px;
  min-width: 270px;
}
.dl.is-primary:hover {
  background: var(--coral-hover);
  box-shadow:
    0 4px 0 var(--coral-edge),
    var(--shadow-md);
}
.dl.is-primary .dl-main {
  font-size: 1.2rem;
}
.dl.is-primary .dl-sub {
  color: var(--on-coral);
  font-weight: 600;
}
.hero-note {
  margin: 18px auto 0;
  max-width: 44em;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.stage {
  margin: clamp(24px, 4vw, 40px) auto 0;
  max-width: 1180px;
}
.frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-lg);
  line-height: 0;
}
.frame img,
.frame video {
  display: block;
  width: 100%;
  height: auto;
}
.frame-hero {
  border-radius: clamp(10px, 1.6vw, 20px);
  aspect-ratio: 1200 / 750;
}
.frame-hero picture,
.frame-hero .stage-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 640px) {
  .frame-hero {
    aspect-ratio: 4 / 3;
  }
}
.stage-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
  opacity: 0;
  transition: opacity 400ms ease;
}
.stage-video.on {
  opacity: 1;
}
.vid-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.vid-toggle[hidden] {
  display: none;
}
.vid-toggle svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vid-toggle .ic-play {
  display: none;
  fill: currentColor;
}
.vid-toggle[aria-pressed='true'] .ic-play {
  display: block;
}
.vid-toggle[aria-pressed='true'] .ic-pause {
  display: none;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.states {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 650;
  line-height: 1.5;
}
.b-think {
  background: var(--think-tint);
  color: var(--think-deep);
}
.b-work {
  background: var(--work-tint);
  color: var(--work-deep);
}
.b-wait {
  background: var(--wait-tint);
  color: var(--wait-deep);
}
.b-done {
  background: var(--done-tint);
  color: var(--done-deep);
}

/* ---------- three ideas ---------- */
.ideas {
  padding: 8px 0 clamp(48px, 7vw, 88px);
}
.cards3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 860px) {
  .cards3 {
    grid-template-columns: minmax(0, 1fr);
  }
}
.idea,
.engine {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 26px 28px;
  box-shadow: var(--shadow-sm);
}
.icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--tint-coral);
  color: var(--ink);
}
.icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.idea p,
.engine p {
  margin-top: 8px;
  color: var(--ink-2);
}

/* ---------- features ---------- */
.feature {
  padding: clamp(56px, 8vw, 104px) 0;
}
.feature.alt {
  background: var(--bg-band);
  border-block: 1px solid var(--line);
}
.kicker {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--link);
  margin-bottom: 8px;
}
h2 {
  font-size: clamp(1.8rem, 4.2vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
  text-wrap: balance;
}
.copy p {
  margin-top: 16px;
  color: var(--ink-2);
  text-wrap: pretty;
}
.copy h2 + p {
  margin-top: 18px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.split.reverse {
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  justify-content: center;
}
.split.reverse .copy {
  order: 2;
}
@media (max-width: 980px) {
  .split,
  .split.reverse {
    grid-template-columns: minmax(0, 1fr);
  }
  .split.reverse .copy {
    order: 0;
  }
}
.shot-wrap figcaption,
.shot-wrap .cap {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.ticks {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}
.ticks li {
  position: relative;
  padding-left: 34px;
  color: var(--ink-2);
}
.ticks li strong {
  color: var(--ink);
  font-weight: 650;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--done-tint);
}
.ticks li::after {
  content: '';
  position: absolute;
  left: 7.5px;
  top: calc(0.2em + 5px);
  width: 6px;
  height: 10px;
  border: solid var(--done-deep);
  border-width: 0 2.2px 2.2px 0;
  transform: rotate(40deg) scale(0.9);
}
.center-head {
  max-width: 760px;
  margin: 0 auto clamp(28px, 4vw, 44px);
  text-align: center;
}
.center-head p:not(.kicker) {
  margin-top: 16px;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ---------- tabs ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 18px;
  border-radius: 12px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
}
.tabs button {
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}
.tabs button:hover {
  color: var(--ink);
}
.tabs button[aria-selected='true'] {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}
.tabs-big button {
  min-height: 46px;
  padding: 0 22px;
  font-size: 1.02rem;
}
.chat-shots {
  max-width: 400px;
  margin-inline: auto;
  width: 100%;
}
.chat-shots .tabs {
  margin-inline: auto;
}
.frame-chat {
  background: var(--card);
}
.views-tabs .tabs {
  margin-bottom: 20px;
}
.vcap {
  max-width: 46em;
  margin: 0 auto 20px;
  text-align: center;
  color: var(--ink-2);
}
.vcap strong {
  color: var(--ink);
}
.vpanel[hidden],
[role='tabpanel'][hidden] {
  display: none;
}

/* ---------- professional mode ---------- */
.pro {
  background: #14181c;
  color: #e4e8ec;
  border-block: 1px solid #2d343b;
}
.pro .kicker {
  color: #ffc94d;
}
.pro h2 {
  color: #e4e8ec;
}
.pro .center-head p:not(.kicker) {
  color: #a8b1ba;
}
.frame-dark {
  border-color: #2d343b;
  background: #121518;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  border-radius: 6px;
}

/* ---------- works with ---------- */
.engine .tag {
  display: inline-block;
  margin-top: 10px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--tint-coral);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 650;
}
.engine .check {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}
.engines .engine:first-child .tag {
  background: var(--done-tint);
  color: var(--done-deep);
}

/* ---------- privacy ---------- */
.readout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  max-width: 820px;
  margin: 0 auto clamp(28px, 4vw, 44px);
  padding: 16px 24px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.readout-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--done);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--done) 25%, transparent);
  animation: pulse 2.8s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--done) 0%, transparent);
  }
}
.readout-text {
  font-size: 1.15rem;
  font-weight: 600;
}
.readout-text strong {
  font-size: 1.35rem;
  color: var(--done-deep);
}
.readout-src {
  flex-basis: 100%;
  font-size: 0.88rem;
  color: var(--ink-2);
}
.cards2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 980px) {
  .cards2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .cards2 {
    grid-template-columns: minmax(0, 1fr);
  }
}
.pcard {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.pcard h3 {
  font-size: 1.1rem;
}
.pcard p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.98rem;
}

/* ---------- download ---------- */
.download {
  padding: clamp(56px, 8vw, 96px) 0;
  background:
    radial-gradient(900px 380px at 50% 0%, var(--sky-glow), transparent 72%), var(--bg-warm);
  border-block: 1px solid var(--line);
}
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 860px) {
  .dl-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.dl.big {
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  padding: 24px;
  min-width: 0;
  border-radius: var(--radius-lg);
  position: relative;
}
.dl.big .dl-main {
  font-size: 1.35rem;
}
.dl-file {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.dl-act {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line-2);
  font-weight: 700;
}
.dl-act svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dl.big.is-primary {
  background: var(--card);
  color: var(--ink);
  border: 2px solid var(--coral-edge);
  box-shadow: var(--shadow-md);
  min-height: 0;
}
.dl.big.is-primary .dl-sub {
  color: var(--ink-2);
  opacity: 1;
}
.dl.big.is-primary .dl-main {
  font-size: 1.35rem;
}
.dl.big.is-primary .dl-act {
  background: var(--coral);
  border-color: var(--coral-edge);
  color: var(--on-coral);
  box-shadow: 0 2px 0 var(--coral-edge);
}
.dl-flag {
  margin-bottom: 8px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--on-coral);
  font-size: 0.8rem;
  font-weight: 700;
}
.dl-flag[hidden] {
  display: none;
}
.mobile-note {
  margin: 20px auto 0;
  max-width: 40em;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--wait-tint);
  color: var(--wait-deep);
  font-weight: 600;
  text-align: center;
}
.mobile-note[hidden] {
  display: none;
}
.mac-hint {
  margin: 18px auto 0;
  max-width: 40em;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.mac-hint[hidden] {
  display: none;
}
.install-notes {
  margin-top: clamp(32px, 5vw, 56px);
}
.install-notes > h3 {
  text-align: center;
  margin-bottom: 18px;
}
.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 760px) {
  .notes-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.note {
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--wait-deep) 30%, transparent);
  background: var(--wait-tint);
  color: var(--wait-deep);
}
.note h4 {
  font-size: 1.05rem;
  font-weight: 700;
}
.note p {
  margin-top: 6px;
  color: inherit;
}
.note strong {
  font-weight: 750;
}

/* ---------- FAQ ---------- */
.faq {
  padding: clamp(56px, 8vw, 96px) 0;
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list details:first-child {
  border-top: 1px solid var(--line);
}
.faq-list summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 14px 40px 14px 4px;
  font-weight: 650;
  font-size: 1.08rem;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  width: 9px;
  height: 9px;
  border: solid var(--ink-2);
  border-width: 0 2.4px 2.4px 0;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 150ms ease;
}
.faq-list details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}
.faq-list summary:hover {
  color: var(--link);
}
.faq-list details p {
  padding: 0 40px 20px 4px;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ---------- footer ---------- */
.footer {
  padding: 40px 0 56px;
  background: var(--bg-band);
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.95rem;
}
.foot-in {
  display: grid;
  gap: 18px;
}
.foot-brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.foot-brand .brand-name {
  color: var(--ink);
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.foot-nav a {
  color: var(--ink-2);
  padding: 4px 0;
}
.fine {
  max-width: 60em;
  font-size: 0.88rem;
  color: var(--ink-3);
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .cloud,
  .steam path,
  .readout-dot {
    animation: none !important;
  }
  .btn:hover,
  .dl:hover {
    transform: none;
  }
}

@media print {
  .topbar,
  .sky,
  .vid-toggle {
    display: none;
  }
}

/* ---------- round two: phones, the Professional-mode tabs, calmer sky ---------- */
@media (prefers-color-scheme: dark) {
  .cloud {
    display: none;
  }
}
@media (max-width: 700px) {
  .cloud {
    display: none;
  }
}
@media (max-width: 560px) {
  .downloads {
    flex-direction: column;
    align-items: stretch;
    max-width: 380px;
    margin-inline: auto;
  }
  .dl,
  .dl.is-primary {
    min-width: 0;
    width: 100%;
  }
  .tabs-big {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .tabs-big button {
    padding: 0 8px;
  }
}

/* A screenshot of a wide window stays readable on a phone: the frame scrolls sideways instead of shrinking the picture to a strip. */
.frame-scroll {
  overflow-x: visible;
}
@media (max-width: 760px) {
  .frame-scroll {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  .frame-scroll > img,
  .frame-scroll > picture,
  .frame-scroll > picture > img {
    width: 860px;
    max-width: none;
  }
  .frame-scroll > picture {
    display: block;
  }
}

.pro-tabs .tabs {
  margin-bottom: 22px;
}
.tabs-dark {
  background: #1a1e22;
  border-color: #2d343b;
  border-radius: 4px;
}
.tabs-dark button {
  color: #a8b1ba;
  border-radius: 2px;
}
.tabs-dark button:hover {
  color: #e4e8ec;
}
.tabs-dark button[aria-selected='true'] {
  background: #38424b;
  border-color: #69737e;
  color: #e4e8ec;
  box-shadow: none;
}
.pro :focus-visible {
  outline-color: #ffd24a;
}

.scroll-hint {
  display: none;
  margin-top: 10px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-2);
}
.pro .scroll-hint {
  color: #a8b1ba;
}
@media (max-width: 760px) {
  .scroll-hint {
    display: block;
  }
}

/* a download whose address isn't filled in yet (config.js): shown, but quiet and not clickable */
.dl-soon {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}
