/*
 * Cuebots product site. Plain CSS; light, dark or Auto (macOS) from the footer's switch.
 *
 * Typography follows developer.apple.com's type scale (sizes, line heights, weights and its two breakpoints at
 * 1068px and 734px), with SF Pro Display from 19px up and SF Pro Text below. Letter spacing is never negative: where
 * Apple tightens, this page keeps `normal`; Apple's small positive tracking at narrow widths is kept. The brand and
 * every heading are set in Cue Sans, the face made for Cuebots; body copy stays SF Pro.
 */

/*
 * Cue Sans, served as WOFF2 built from the OTFs beside them by scripts/180_build_site_fonts.py; a browser fetches only
 * the weights the page uses. Bump `?v=` whenever the files are rebuilt: the names stay the same, and a cached copy of
 * an older build would otherwise keep showing.
 */
@font-face {
  font-family: "Cue Sans";
  src: url("fonts/cue-sans-light.woff2?v=2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cue Sans";
  src: url("fonts/cue-sans-light-italic.woff2?v=2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Cue Sans";
  src: url("fonts/cue-sans-regular.woff2?v=2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cue Sans";
  src: url("fonts/cue-sans-regular-italic.woff2?v=2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Cue Sans";
  src: url("fonts/cue-sans-medium.woff2?v=2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cue Sans";
  src: url("fonts/cue-sans-medium-italic.woff2?v=2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Cue Sans";
  src: url("fonts/cue-sans-semibold.woff2?v=2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cue Sans";
  src: url("fonts/cue-sans-semibold-italic.woff2?v=2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Cue Sans";
  src: url("fonts/cue-sans-bold.woff2?v=2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cue Sans";
  src: url("fonts/cue-sans-bold-italic.woff2?v=2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --tertiary: #86868b;
  --line: #d2d2d7;
  --link: #0066cc;
  --button: #0071e3;
  --button-hover: #0077ed;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --focus: #0066cc;
  --switch-blue: #0071e3;
  --switch-text: #0066cc;
  --dock-border: rgba(255, 255, 255, 0.24);
  --dock-fill: rgba(255, 255, 255, 0.08);
  --dock-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.24), inset 0 -0.5px 0 rgba(255, 255, 255, 0.04),
    0 12px 32px rgba(0, 18, 50, 0.16);
  --label-border: rgba(0, 0, 0, 0.12);
  --label-fill: rgba(246, 246, 246, 0.82);
  --label-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  --label-text: #1d1d1f;
  --logo-mono-filter: none;
  /* Solid fallback beneath the flat logo-inspired wallpaper. The tint keeps white copy readable. */
  --hero-bg: #1478ee;
  --hero-tint: rgba(0, 26, 74, 0.46);
  /* The tinted wallpaper's navy, which runs along most of the top edge at every width (the lighter diagonal band only
     reaches the right of it), for the browser bar (theme-color, .edge-tint). */
  --hero-edge: #063e97;
  /* The icon's blues, cobalt into its sky, for brand-colored words. */
  --brand-text: linear-gradient(90deg, #1b8bfe, #30a0fe 45%, #6cc4ff);

  --blue: #0a84ff;
  --orange: #ff9f0a;
  --purple: #bf5af2;
  --green: #30d158;
  --teal: #40c8e0;
  --pink: #ff375f;

  --radius: 18px;
  --radius-big: 30px;
  /* Header border-box height, also used to extend the hero backdrop to the page's top edge. */
  --nav-height: 52px;
  --max: 1200px;
  --text-max: 640px;
  --window-shadow: drop-shadow(0 30px 40px rgba(14, 30, 60, 0.18)) drop-shadow(0 8px 14px rgba(14, 30, 60, 0.12));

  /* SF Pro through the system font where the named face isn't installed (it is not a web font here). */
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "SF Pro Icons", "Helvetica Neue", Helvetica,
    Arial, sans-serif;
  --font-text: "SF Pro Text", -apple-system, BlinkMacSystemFont, "SF Pro Icons", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  --font-mono: "SF Mono", Menlo, monospace;
  /* The brand face, falling back to SF Pro Display while it loads. */
  --font-brand: "Cue Sans", var(--font-display);

  color-scheme: light;
}

/*
 * Dark values, after the Cue site: the footer's Light / Dark / Auto switch (theme.js) sets <html data-theme>. Dark
 * applies them outright; Auto (and no script at all) applies them when macOS is dark. Every light/dark difference
 * on the page is one of these variables, so this list is the only thing written twice.
 */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --bg-alt: #161617;
  --card: #1d1d1f;
  --text: #f5f5f7;
  --muted: #86868b;
  --tertiary: #6e6e73;
  --line: #424245;
  --link: #2997ff;
  --nav-bg: rgba(0, 0, 0, 0.72);
  --window-shadow: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.25));
  --focus: #9ecbff;
  --switch-text: #2997ff;
  --dock-border: rgba(255, 255, 255, 0.18);
  --dock-fill: rgba(255, 255, 255, 0.04);
  --dock-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.14), inset 0 -0.5px 0 rgba(255, 255, 255, 0.025),
    0 12px 32px rgba(0, 0, 0, 0.22);
  --label-border: rgba(255, 255, 255, 0.16);
  --label-fill: rgba(40, 40, 44, 0.82);
  --label-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  --label-text: #f5f5f7;
  --logo-mono-filter: invert(1);
  --hero-bg: #0d4fb5;
  --hero-tint: rgba(0, 26, 74, 0.6);
  --hero-edge: #053583;
  --brand-text: linear-gradient(90deg, #30a0fe, #b8e6fd);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    color-scheme: dark;
    --bg: #000000;
    --bg-alt: #161617;
    --card: #1d1d1f;
    --text: #f5f5f7;
    --muted: #86868b;
    --tertiary: #6e6e73;
    --line: #424245;
    --link: #2997ff;
    --nav-bg: rgba(0, 0, 0, 0.72);
    --window-shadow: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.25));
    --focus: #9ecbff;
    --switch-text: #2997ff;
    --dock-border: rgba(255, 255, 255, 0.18);
    --dock-fill: rgba(255, 255, 255, 0.04);
    --dock-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.14), inset 0 -0.5px 0 rgba(255, 255, 255, 0.025),
      0 12px 32px rgba(0, 0, 0, 0.22);
    --label-border: rgba(255, 255, 255, 0.16);
    --label-fill: rgba(40, 40, 44, 0.82);
    --label-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    --label-text: #f5f5f7;
    --logo-mono-filter: invert(1);
    --hero-bg: #0d4fb5;
    --hero-tint: rgba(0, 26, 74, 0.6);
    --hero-edge: #053583;
  --brand-text: linear-gradient(90deg, #30a0fe, #b8e6fd);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 106.25%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.4705882353;
  letter-spacing: normal;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-brand);
  font-weight: 600;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

code,
kbd {
  font-family: var(--font-mono);
  font-size: 0.85em;
}

code {
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: var(--bg-alt);
}

kbd {
  display: inline-block;
  padding: 0 0.4em;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  font-family: var(--font-text);
  line-height: 1.5;
  white-space: nowrap;
}

/* Type scale: Apple's classes, named after them. */

.type-headline-super {
  font-size: 80px;
  line-height: 1.05;
}

.type-headline-elevated {
  font-size: 64px;
  line-height: 1.0625;
}

.type-headline {
  font-size: 48px;
  line-height: 1.0834933333;
}

.type-headline-reduced {
  font-size: 40px;
  line-height: 1.1;
}

.type-eyebrow {
  font-family: var(--font-brand);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1666666667;
  letter-spacing: 0.009em;
}

.type-eyebrow-reduced {
  font-family: var(--font-brand);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.1904761905;
  letter-spacing: 0.011em;
}

.type-intro {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.381002381;
  letter-spacing: 0.011em;
}

.type-headline-body {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4705882353;
}

.type-body-reduced {
  font-size: 14px;
  line-height: 1.4285914286;
}

.type-caption {
  font-size: 12px;
  line-height: 1.3333733333;
}

@media (max-width: 1068px) {
  .type-headline-super {
    font-size: 64px;
    line-height: 1.0625;
  }

  .type-headline-elevated {
    font-size: 48px;
    line-height: 1.0834933333;
  }

  .type-headline {
    font-size: 40px;
    line-height: 1.1;
  }

  .type-headline-reduced {
    font-size: 32px;
    line-height: 1.125;
    letter-spacing: 0.004em;
  }

  .type-eyebrow {
    font-size: 21px;
    line-height: 1.1904761905;
    letter-spacing: 0.011em;
  }
}

@media (max-width: 734px) {
  .type-headline-super {
    font-size: 48px;
    line-height: 1.0834933333;
  }

  .type-headline-elevated {
    font-size: 40px;
    line-height: 1.1;
  }

  .type-headline {
    font-size: 32px;
    line-height: 1.125;
    letter-spacing: 0.004em;
  }

  .type-headline-reduced {
    font-size: 28px;
    line-height: 1.1428571429;
    letter-spacing: 0.007em;
  }

  .type-eyebrow-reduced {
    font-size: 19px;
    line-height: 1.2105263158;
    letter-spacing: 0.012em;
  }

  .type-intro {
    font-size: 19px;
    line-height: 1.4211026316;
    letter-spacing: 0.012em;
  }
}

.center {
  text-align: center;
}

.muted {
  color: var(--muted);
}

.sub {
  max-width: var(--text-max);
  margin: 1.2em auto 0;
  color: var(--muted);
}

/* Navigation: sticky, turns translucent once the page scrolls (script.js adds .floating). */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--nav-height);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s, border-color 0.25s;
}

/*
 * Safari 26 ignores theme-color and tints its bars from a solid fixed element at the top edge; the nav is clear or
 * frosted (backdrop-filter stops the sampling), so this strip carries the colour instead: the hero's blue at the top,
 * the page's background once the nav floats. Only on iOS, where the bars are tinted; script.js re-inserts it when its
 * colour changes, because Safari reads it only as it appears. Its colour also feeds the theme-color meta tags.
 */
.edge-tint {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 11;
  height: 6px;
  background-color: var(--hero-edge);
  pointer-events: none;
}

.nav.floating + .edge-tint {
  background-color: var(--bg);
}

@supports (-webkit-touch-callout: none) {
  .edge-tint {
    display: block;
  }
}

.nav.floating {
  background: var(--nav-bg);
  border-bottom-color: color-mix(in srgb, var(--line) 60%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-brand);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.1904761905;
  letter-spacing: 0.011em;
}

.brand:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text);
  font-size: 12px;
  line-height: 1.3333733333;
  opacity: 0.8;
}

.nav-links a:hover {
  opacity: 1;
  text-decoration: none;
}

/* Buttons: Apple's pill buttons. */

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 980px;
  background: var(--button);
  color: #fff;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.1764805882;
  transition: background-color 0.2s;
}

.button:hover {
  background: var(--button-hover);
  text-decoration: none;
}

.button svg {
  width: 17px;
  height: 17px;
}

.button-small {
  padding: 4px 12px;
  font-size: 12px;
  line-height: 1.3333733333;
}

.button-large {
  padding: 18px 31px;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.1904761905;
  letter-spacing: 0.011em;
}

.link-arrow {
  font-size: 17px;
}

.link-arrow::after {
  content: " ›";
  display: inline-block;
  transition: transform 0.2s;
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

.fineprint {
  margin-top: 18px;
  color: var(--muted);
}

/* Hero */

.hero {
  max-width: 980px;
  margin: 0 auto;
  /* A magnified Dock may run past a phone's edges; it must not make the page scroll sideways. */
  overflow-x: clip;
  padding: 72px max(24px, env(safe-area-inset-right)) 56px max(24px, env(safe-area-inset-left));
  text-align: center;
}

/* Text on the hero's blue: white in both themes, with a white button. */
.hero h1 {
  color: #ffffff;
}

.hero .lede,
.hero .fineprint {
  color: rgba(255, 255, 255, 0.86);
}

.hero .link-arrow {
  color: #ffffff;
}

.hero .button {
  background: #ffffff;
  color: #0066cc;
}

.hero .button:hover {
  background: #f0f6ff;
}

/* Over the blue the nav bar is white; once it floats over the page it takes the page's colors again. */
.nav:not(.floating) .brand,
.nav:not(.floating) .nav-links a {
  color: #ffffff;
}

.nav:not(.floating) .button-small {
  background: #ffffff;
  color: #0066cc;
}

/*
 * The hero's Dock: a clear glass shelf, the app icon magnified in the middle and the subagent robots smaller
 * toward each end, all sitting on the shelf's baseline the way magnified Dock icons do.
 */

/*
 * Centred by translation, not as an inline box in a centred line: a magnified Dock wider than the hero (a phone's
 * resting Dock already fills it) then grows out both sides alike, where an overflowing line runs off to the right.
 */
.dock {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  width: max-content;
  /* Fixed at the resting height: magnified icons grow up out of it instead of pushing the page down. */
  height: 146px;
  gap: 10px;
  margin: 0 0 40px 50%;
  padding: 0 18px 10px;
  translate: -50% 0;
  /* How much a robot grows under the pointer (script.js reads it); less on a phone, where the Dock fills the width. */
  --dock-growth: 0.75;
  /* A finger sliding sideways drives the magnification (script.js); one moving up or down still scrolls the page. */
  touch-action: pan-y;
}

.dock::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 72px;
  border: 0.5px solid var(--dock-border);
  border-radius: 24px;
  background: var(--dock-fill);
  box-shadow: var(--dock-shadow);
  -webkit-backdrop-filter: blur(32px) saturate(115%);
  backdrop-filter: blur(32px) saturate(115%);
}

/*
 * The Dock's name label, like macOS's: a small frosted rounded box above the icon under the pointer, with a tail.
 * script.js places it over whichever icon is hovered and moves it as the icon magnifies.
 */

.dock-label {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 4px 11px 5px;
  border: 0.5px solid var(--label-border);
  border-radius: 8px;
  background: var(--label-fill);
  box-shadow: var(--label-shadow);
  color: var(--label-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}

/*
 * The tail sits just below the box rather than overlapping it, so the translucent fill doesn't darken twice. --tail
 * (set by script.js) keeps it over the icon when the box is held inside the window.
 */
.dock-label::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: calc(var(--tail, 50%) - 7px);
  width: 14px;
  height: 6px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* Pressing a robot to slide along the Dock shouldn't select it or open the image preview. */
.dock-item {
  flex: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.14));
}

.dock-app {
  width: 136px;
  filter: drop-shadow(0 14px 22px rgba(10, 108, 240, 0.32));
}

.size-4 { width: 84px; }
.size-3 { width: 64px; }
.size-2 { width: 52px; }
.size-1 { width: 44px; }

.lede {
  max-width: 680px;
  margin: 1.6em auto 0;
  color: var(--muted);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 36px;
}

/*
 * The flat blue wallpaper sits behind the nav bar, hero and top half of the screenshot; the window's lower half
 * rests on the plain page. The window's width is known (min(1200px, viewport - stage padding)) and so is its aspect
 * ratio, so the blue's bottom edge lands on the window's middle at every width without measuring.
 */
.hero-area {
  /* Wide enough to clear a landscape iPhone's sensor housing (viewport-fit=cover). */
  --stage-gutter: max(48px, env(safe-area-inset-left), env(safe-area-inset-right));
  --stage-bottom: 96px;
  --window-width: min(1200px, 100vw - 2 * var(--stage-gutter));
  position: relative;
}

.stage {
  position: relative;
  padding: 24px var(--stage-gutter) var(--stage-bottom);
}

.hero-backdrop {
  position: absolute;
  top: calc(-1 * var(--nav-height));
  right: 0;
  bottom: calc(var(--stage-bottom) + var(--window-width) * 772 / 1200 / 2);
  left: 0;
  z-index: -1;
  background-color: var(--hero-bg);
  background-image: linear-gradient(var(--hero-tint), var(--hero-tint)), url("images/wallpaper-flat.webp");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}

.window {
  display: block;
  filter: var(--window-shadow);
}

.window img {
  width: 100%;
}

.window-hero {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* Intro */

.intro {
  max-width: 900px;
  margin: 0 auto;
  padding: 128px 24px 40px;
  text-align: center;
}

.statement {
  font-family: var(--font-brand);
  font-weight: 600;
  text-wrap: balance;
}

.intro em {
  font-style: normal;
  background: var(--brand-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Feature heading blocks */

.feature {
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px 24px 48px;
  text-align: center;
}

.feature-text {
  max-width: 820px;
  margin: 0 auto;
}

.feature-text .type-intro {
  max-width: var(--text-max);
  margin: 1.2em auto 0;
  color: var(--muted);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 32px auto 0;
  padding: 0;
  list-style: none;
}

.pill-list li {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 980px;
  background: var(--card);
  font-size: 14px;
  line-height: 1.4285914286;
}

/* Grey rounded panels with a screenshot bleeding off the bottom edge. */

.panel {
  max-width: var(--max);
  margin: 24px auto 0;
  padding: 64px 64px 0;
  overflow: hidden;
  border-radius: var(--radius-big);
  background: var(--bg-alt);
}

.panel-copy {
  max-width: 600px;
  margin: 0 auto 48px;
  text-align: center;
}

.panel-copy p {
  margin-top: 0.8em;
  color: var(--muted);
}

.window-bleed {
  max-width: min(1000px, 100%);
  margin: 0 auto -6%;
}

.window-narrow {
  max-width: min(720px, 100%);
  margin-bottom: -18%;
}

.panel-settings {
  margin-top: 96px;
}

.panel-branches {
  margin-top: 24px;
}

/* Screenshot beside text */

.split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
  gap: 64px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 24px 0;
}

.split-copy h3 {
  margin-top: 1.6em;
}

.split-copy p {
  margin-top: 0.6em;
  color: var(--muted);
}

.glyphs {
  display: flex;
  gap: 4px;
}

.glyphs img {
  width: 56px;
  transition: transform 0.3s;
}

.glyphs img:hover {
  transform: translateY(-4px) rotate(-6deg);
}

/* Card grids */

.grid-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 144px 24px 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card h4 {
  margin: 0;
}

.card p {
  margin-top: 6px;
  color: var(--muted);
}

.card.compact {
  padding: 24px;
}

/* iOS Settings–style tiles: a rounded tile, a top-lit vertical gradient, a white Lucide glyph. */

.tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 23%;
  background: linear-gradient(180deg, var(--tile-top), var(--tile-bottom));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.12);
}

.tile svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0.5px 0.5px rgba(0, 0, 0, 0.15));
}

.tile-blue { --tile-top: #4ba6ff; --tile-bottom: #0a6cff; }
.tile-orange { --tile-top: #ffbe4d; --tile-bottom: #ff8a00; }
.tile-purple { --tile-top: #d382f7; --tile-bottom: #9a3fe0; }
.tile-green { --tile-top: #5fe07a; --tile-bottom: #24b143; }
.tile-teal { --tile-top: #6fd6fb; --tile-bottom: #1a9fe0; }
.tile-pink { --tile-top: #ff7a92; --tile-bottom: #e8304f; }

/* Models */

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.duo-card {
  display: flex;
  flex-direction: column;
  padding: 48px 48px 44px;
  border-radius: var(--radius-big);
  background: var(--bg-alt);
}

.duo-card h3 {
  margin-top: auto;
  padding-top: 36px;
}

.duo-card p {
  margin-top: 0.6em;
  color: var(--muted);
}

.duo-visual {
  display: grid;
  flex: 1;
  place-items: center;
  min-height: 320px;
}

.duo-visual .window {
  width: 100%;
}

.window-small {
  max-width: 480px;
  margin: 0 auto;
}

/* Model makers' marks, bare on the page (never boxed), each named underneath. */

.model-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 28px;
  max-width: 900px;
  margin: 56px auto 0;
  padding: 0;
  list-style: none;
}

.model-row li {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: 64px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3333733333;
}

.logo-slot {
  display: grid;
  place-items: center;
}

.logo-slot .logo {
  width: 44px;
  height: 44px;
}

.logo-slot-small .logo {
  width: 32px;
  height: 32px;
}

/* Single-color marks are drawn in black; the dark theme turns them white. */
.logo-mono {
  filter: var(--logo-mono-filter);
}

.logo-slot-large img {
  width: 128px;
}

.local-stack {
  display: grid;
  justify-items: center;
  gap: 28px;
}

.local-models {
  display: flex;
  gap: 24px;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title img {
  width: 28px;
}

/* Privacy */

.privacy {
  max-width: 1000px;
  margin: 144px auto 0;
  padding: 0 24px;
  text-align: center;
}

.privacy-icon svg {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  fill: none;
  stroke: var(--green);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.privacy-grid p {
  margin-top: 6px;
  color: var(--muted);
}

/* Download */

.download {
  max-width: 900px;
  margin: 160px auto 0;
  padding: 0 24px 120px;
  text-align: center;
}

.download-icon {
  margin: 0 auto 28px;
  filter: drop-shadow(0 16px 24px rgba(10, 108, 240, 0.28));
}

.download .button {
  margin-top: 36px;
}

/* Footer, after the Cue site's layout at Apple's footer scale (12-17px): about with the appearance switch, then
   link columns. */

.site-footer {
  background: var(--bg-alt);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px max(24px, env(safe-area-inset-right)) 36px max(24px, env(safe-area-inset-left));
}

.footer-about .brand {
  font-size: 17px;
  line-height: 1.2353641176;
  letter-spacing: normal;
}

.footer-about .brand img {
  width: 28px;
}

.footer-about p {
  max-width: 320px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4285914286;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  width: 130px;
  height: 24px;
  margin-top: 18px;
  padding: 1px;
  border: 1px solid var(--switch-blue);
  border-radius: 999px;
}

.theme-switch label {
  position: relative;
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 20px;
  border-radius: 999px;
  color: var(--switch-text);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.theme-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
}

.theme-switch label:hover {
  background: color-mix(in srgb, var(--switch-blue) 12%, transparent);
}

.theme-switch label:has(input:checked),
.theme-switch label:has(input:checked):hover {
  background: var(--switch-blue);
  color: #fff;
}

.theme-switch label:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}

.footer-links h2 {
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.4285914286;
}

.footer-links a {
  display: block;
  width: fit-content;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4285914286;
}

.footer-links a:hover {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-legal {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom))
    max(24px, env(safe-area-inset-left));
  border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  color: var(--tertiary);
  font-size: 12px;
  line-height: 1.3333733333;
}

/* Motion: only when the reader hasn't asked for less of it. */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .js .reveal.visible {
    opacity: 1;
    transform: none;
  }

  .card:hover {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Layout breakpoints: Apple's two. */

@media (max-width: 1068px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split-copy {
    max-width: var(--text-max);
    margin: 0 auto;
  }

  .panel {
    margin-right: 16px;
    margin-left: 16px;
    padding: 48px 32px 0;
  }
}

@media (max-width: 734px) {
  .nav-links {
    display: none;
  }

  .nav-inner {
    justify-content: space-between;
  }

  /* A phone has room for the app and its three nearest robots on each side, a size smaller. */
  .dock {
    --dock-growth: 0.4;
    gap: 4px;
    height: 88px;
    padding: 0 12px 8px;
  }

  .dock::before {
    height: 44px;
    border-radius: 18px;
  }

  .dock-item.far {
    display: none;
  }

  .dock-app { width: 80px; }
  .size-4 { width: 44px; }
  .size-3 { width: 34px; }
  .size-2 { width: 28px; }

  .hero-area {
    --stage-gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
    --stage-bottom: 56px;
  }

  .hero-backdrop {
    background-position: 65% top;
  }

  .grid,
  .grid-4,
  .duo,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .duo-card {
    padding: 32px 24px;
  }

  .panel {
    padding: 40px 20px 0;
    border-radius: var(--radius);
  }

  .feature {
    padding-top: 96px;
  }

  .grid-section,
  .privacy {
    margin-top: 96px;
    padding-top: 0;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .footer-links {
    gap: 20px;
  }
}

