/* Agent Pets: one stylesheet for every page. System fonts, Apple system colours, light and dark. */

:root {
  color-scheme: light dark;
  --bg: #fff;
  --bg-alt: #f5f5f7;
  --tile: #fff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --hairline: rgba(0, 0, 0, 0.12);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --link: #0066cc;
  --focus: rgba(0, 113, 227, 0.6);
  --nav-bg: rgba(255, 255, 255, 0.72);
  --chip: rgba(0, 0, 0, 0.05);
  --offer: #b64400;
  --shadow-window: 0 0 0 0.5px rgba(0, 0, 0, 0.14), 0 40px 90px -30px rgba(0, 0, 0, 0.35), 0 16px 36px -18px rgba(0, 0, 0, 0.2);

  /* The browser mockup in the hero (Chrome's own light theme). */
  --win-frame: #dfe1e5;
  --win-tab: #fff;
  --win-omnibox: #f1f3f4;
  --win-glyph: #5f6368;
  --win-page: #fff;
  --win-skel: #f1f2f4;
  --win-skel-2: #e8e9ec;
  --win-text: #c4c6cb;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --nav-h: 52px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --bg-alt: #0b0b0c;
    --tile: #1c1c1e;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --hairline: rgba(255, 255, 255, 0.16);
    --accent: #0071e3;
    --accent-hover: #0a7cf0;
    --link: #2997ff;
    --focus: rgba(41, 151, 255, 0.7);
    --nav-bg: rgba(22, 22, 23, 0.72);
    --chip: rgba(255, 255, 255, 0.08);
    --offer: #ff9f0a;
    --shadow-window: 0 0 0 0.5px rgba(255, 255, 255, 0.16), 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 16px 36px -18px rgba(0, 0, 0, 0.7);

    --win-frame: #1f1f22;
    --win-tab: #35363a;
    --win-omnibox: #202124;
    --win-glyph: #9aa0a6;
    --win-page: #18181b;
    --win-skel: #222226;
    --win-skel-2: #2a2a2f;
    --win-text: #4a4a51;
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.47 var(--font);
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

a:hover {
  text-decoration: underline;
}

p,
li {
  text-wrap: pretty;
}

code,
kbd,
pre {
  font-family: var(--mono);
  letter-spacing: 0;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
}

.skip-link:focus {
  top: 12px;
  text-decoration: none;
}

/* Early-bird offer vs regular price: the markup carries both; one class on <html> picks. */
html:not(.early-bird-over) .when-regular,
.early-bird-over .when-early-bird {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: 1128px;
  margin: 0 auto;
  padding: 0 24px;
}

.inline-code {
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--chip);
  font-size: 0.88em;
  white-space: nowrap;
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--hairline);
}

.nav-inner {
  height: 100%;
  max-width: 1128px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font: 600 17px/1 var(--font-display);
  letter-spacing: -0.02em;
}

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

.brand img {
  width: 26px;
  height: 26px;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  opacity: 0.8;
  font-size: 13px;
  letter-spacing: -0.01em;
  transition: opacity 0.2s ease;
}

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

.nav-buy {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 14px;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.nav-buy:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  font: 400 17px/1 var(--font);
  letter-spacing: -0.022em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.3s var(--spring);
}

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

.button:active {
  transform: scale(0.97);
}

.button.wide {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--link);
  font-size: 17px;
}

.text-link::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 6px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(-45deg);
}

.text-link.down::after {
  transform: translateY(-2px) rotate(45deg);
}

/* ---------- Sections ---------- */

.section {
  padding: 128px 0;
}

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

.section-head {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--text-2);
  font: 600 17px/1.2 var(--font-display);
  letter-spacing: -0.01em;
}

.section-head h2 {
  font: 700 clamp(36px, 5.4vw, 56px) / 1.07 var(--font-display);
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.section-head .lede {
  margin-top: 18px;
  color: var(--text-2);
  font: 400 clamp(19px, 2vw, 21px) / 1.4 var(--font-display);
  letter-spacing: -0.012em;
}

/* Scroll reveal: only when JS is running, and never with reduced motion. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 1s var(--ease);
}

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

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 112px;
  overflow: hidden;
  text-align: center;
}

.hero h1 {
  max-width: 900px;
  margin: 0 auto;
  font: 700 clamp(44px, 7vw, 84px) / 1.03 var(--font-display);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero .subhead {
  max-width: 740px;
  margin: 22px auto 0;
  color: var(--text-2);
  font: 400 clamp(19px, 2vw, 22px) / 1.4 var(--font-display);
  letter-spacing: -0.016em;
  text-wrap: balance;
}

.hero-ctas {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 32px;
}

.microcopy {
  margin-top: 20px;
  color: var(--text-2);
  font-size: 14px;
  letter-spacing: -0.01em;
}

.hero-copy > * {
  animation: rise 1s var(--ease) both;
}

.hero-copy > :nth-child(2) {
  animation-delay: 0.06s;
}

.hero-copy > :nth-child(3) {
  animation-delay: 0.12s;
}

.hero-copy > :nth-child(4) {
  animation-delay: 0.18s;
}

.hero-copy > :nth-child(5) {
  animation-delay: 0.24s;
}

/* Early bird, above the headline: quiet, like a "New" eyebrow. */
.offer-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px 14px 6px 12px;
  border-radius: 980px;
  box-shadow: inset 0 0 0 1px var(--hairline);
  color: var(--text);
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: background 0.2s ease;
}

.offer-pill:hover {
  background: var(--chip);
  text-decoration: none;
}

.offer-pill::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 2px;
  border-right: 1.5px solid var(--text-2);
  border-bottom: 1.5px solid var(--text-2);
  transform: rotate(-45deg);
}

.offer-tag {
  color: var(--offer);
  font-weight: 600;
}

.button .sale .was {
  color: inherit;
  opacity: 0.72;
  font-size: 0.88em;
}

.hero .browser {
  animation: rise 1.2s var(--ease) 0.25s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* ---------- Browser mockup ---------- */

.browser {
  position: relative;
  max-width: 1080px;
  margin: 56px auto 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--win-tab);
  box-shadow: var(--shadow-window);
  text-align: left;
}

.browser-top {
  height: 42px;
  display: flex;
  align-items: flex-end;
  padding: 0 14px;
  background: var(--win-frame);
}

.lights {
  display: flex;
  gap: 8px;
  align-self: center;
  margin-right: 18px;
}

.lights i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12);
}

.lights i:nth-child(2) {
  background: #febc2e;
}

.lights i:nth-child(3) {
  background: #28c840;
}

.tab {
  position: relative;
  height: 34px;
  width: 240px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 10px 10px 0 0;
  background: var(--win-tab);
  color: var(--text);
  font-size: 12px;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.tab-favicon {
  width: 14px;
  height: 14px;
  flex: none;
  border-radius: 4px;
  background: linear-gradient(135deg, #5e5ce6, #0a84ff);
}

.tab-title {
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
  background: var(--win-tab);
  border-bottom: 0.5px solid var(--hairline);
  color: var(--win-glyph);
}

.browser-bar svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.omnibox {
  flex: 1;
  min-width: 0;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 15px;
  background: var(--win-omnibox);
  color: var(--text);
  font-size: 13px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
}

.omnibox .host {
  color: var(--text-2);
}

.ext {
  position: relative;
  width: 20px;
  height: 20px;
  flex: none;
}

.ext img {
  width: 20px;
  height: 20px;
}

.badge {
  position: absolute;
  right: -7px;
  bottom: -5px;
  min-width: 16px;
  height: 14px;
  padding: 0 4px;
  border-radius: 4px;
  background: #ff5a5f;
  color: #fff;
  font: 700 10px/14px var(--font);
  letter-spacing: 0;
  text-align: center;
  box-shadow: 0 0 0 1.5px var(--win-tab);
}

.browser-page {
  position: relative;
  height: 460px;
  background: var(--win-page);
  overflow: hidden;
}

/* A faint web app behind the pets: present, never competing. */
.page-skeleton {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 200px 1fr;
}

.skel-side {
  padding: 28px 20px;
  border-right: 0.5px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skel-main {
  padding: 32px 40px;
  min-width: 0;
}

.skel-title {
  color: var(--win-text);
  font: 700 26px/1.1 var(--font-display);
  letter-spacing: -0.02em;
}

.skel-sub {
  margin-top: 8px;
  color: var(--win-text);
  font-size: 14px;
}

.bar {
  display: block;
  height: 10px;
  border-radius: 5px;
  background: var(--win-skel);
}

.bar.strong {
  background: var(--win-skel-2);
}

.skel-cards {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.skel-card {
  height: 108px;
  padding: 18px;
  border-radius: 14px;
  background: var(--win-skel);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.skel-card .bar {
  background: var(--win-skel-2);
}

.skel-card .figure {
  color: var(--win-text);
  font: 700 26px/1 var(--font-display);
  letter-spacing: -0.02em;
}

.skel-chart {
  margin-top: 16px;
  height: 200px;
  border-radius: 14px;
  background: var(--win-skel);
  overflow: hidden;
}

.skel-chart svg {
  width: 100%;
  height: 100%;
}

.skel-chart path {
  fill: none;
  stroke: var(--win-skel-2);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Pets (lanes and stand-alone sprites) ---------- */

.lane {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
}

.pet {
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 58px;
  height: 58px;
  transform-origin: 50% 100%;
  will-change: transform;
}

.pet .sprite {
  width: 100%;
  height: 100%;
}

.pet .bubble-slot {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pet.flip .ap-svg {
  transform: scaleX(-1);
}

.pet[data-state="thinking"],
.pet[data-state="tool"] {
  z-index: 1;
}

.pet[data-state="needs_permission"],
.pet[data-state="waiting"] {
  z-index: 2;
}

/* The hero's pet with its island open stays put, under the island. */
.pet.anchored {
  left: auto;
  right: 64px;
}

/* ---------- The island (mirrors the extension's popover) ---------- */

.island {
  width: 340px;
  max-width: 100%;
  padding: 16px;
  border-radius: 30px;
  background: rgba(0, 0, 0, 0.94);
  color: #f5f5f7;
  font: 400 13px/1.4 var(--font);
  letter-spacing: -0.008em;
  text-align: left;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.12), 0 24px 60px -12px rgba(0, 0, 0, 0.55), 0 8px 20px rgba(0, 0, 0, 0.2);
}

.browser .island {
  position: absolute;
  right: 20px;
  bottom: 104px;
  z-index: 5;
}

.island .head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.island .avatar {
  width: 38px;
  height: 38px;
  flex: none;
  padding: 3px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, color-mix(in srgb, var(--tint) 45%, #fff), color-mix(in srgb, var(--tint) 40%, #000));
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.18);
}

.island .titles {
  flex: 1;
  min-width: 0;
}

.island .name {
  font: 600 16px/1.2 var(--font-display);
  letter-spacing: -0.02em;
}

.island .sub {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  color: rgba(235, 235, 245, 0.55);
  font-size: 12px;
  white-space: nowrap;
}

.island .sub .ap-icon {
  color: rgba(235, 235, 245, 0.4);
}

.island .branch {
  font: 500 11px/1 var(--mono);
}

.island .when {
  flex: none;
  align-self: flex-start;
  margin-top: 3px;
  color: rgba(235, 235, 245, 0.4);
  font-size: 12px;
}

.island .now {
  --tone: rgba(235, 235, 245, 0.6);
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.island .now[data-tone="alert"] {
  --tone: #ff453a;
}

.island .now[data-tone="active"] {
  --tone: #64d2ff;
}

.island .now[data-tone="done"] {
  --tone: #30d158;
}

.island .glyph {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 17%, transparent);
}

.island .now[data-tone="alert"] .glyph {
  animation: island-pulse 1.6s ease-in-out infinite;
}

@keyframes island-pulse {
  50% {
    background: color-mix(in srgb, var(--tone) 30%, transparent);
  }
}

.island .what {
  flex: 1;
  min-width: 0;
}

.island .doing {
  display: block;
  overflow: hidden;
  font: 600 14px/1.25 var(--font);
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.island .detail {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: rgba(235, 235, 245, 0.55);
  font: 500 11.5px/1.35 var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.island .actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 8px;
}

.island .btn {
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.14);
  color: #f5f5f7;
  font: 600 14px/1 var(--font);
  letter-spacing: -0.01em;
  transition: transform 0.25s var(--spring), background 0.2s ease, color 0.2s ease, opacity 0.3s ease;
}

.island .btn.deny {
  color: #ff453a;
}

.island .btn.allow {
  background: #f5f5f7;
  color: #000;
}

.island .thread {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.island .msg.you {
  align-self: flex-end;
  max-width: 86%;
  padding: 7px 12px;
  border-radius: 18px 18px 5px 18px;
  background: #0a84ff;
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
}

.island .msg.agent {
  color: rgba(245, 245, 247, 0.9);
  font-size: 13.5px;
  line-height: 1.45;
}

.island .msg.agent p + p {
  margin-top: 6px;
}

.island .composer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 4px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.08);
}

.island .field {
  flex: 1;
  min-width: 0;
  height: 32px;
  overflow: hidden;
  color: #f5f5f7;
  font: 400 14px/32px var(--font);
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.island .field:empty::before {
  content: attr(data-placeholder);
  color: rgba(235, 235, 245, 0.38);
}

.island .send {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(235, 235, 245, 0.38);
  transition: background 0.2s ease, color 0.2s ease, transform 0.3s var(--spring);
}

.island .send.ready {
  background: #0a84ff;
  color: #fff;
}

.island .send.pressed {
  transform: scale(0.86);
}

.island .foot {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(235, 235, 245, 0.35);
  font-size: 11.5px;
  white-space: nowrap;
}

.island .foot .path {
  min-width: 0;
  overflow: hidden;
  font: 500 11px/1.2 var(--mono);
  text-overflow: ellipsis;
}

.island .foot .despawn {
  margin-left: auto;
  color: rgba(235, 235, 245, 0.5);
}

/* ---------- Works with ---------- */

.works {
  padding: 8px 0 104px;
  text-align: center;
}

.works-label {
  color: var(--text-2);
  font-size: 14px;
}

.wordmarks {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 56px;
  font: 600 clamp(22px, 3vw, 30px) / 1.2 var(--font-display);
  letter-spacing: -0.025em;
}

.wordmarks .mono {
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.works-note {
  margin-top: 18px;
  color: var(--text-2);
  font-size: 14px;
}

/* ---------- Bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.tile {
  position: relative;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  padding: 40px 40px 0;
  border-radius: 28px;
  background: var(--tile);
  overflow: hidden;
}

.tile.span-2 {
  grid-column: span 2;
}

.tile.span-3 {
  grid-column: 1 / -1;
  min-height: 0;
}

/* Wide tiles with a lot to show put the words beside the picture. */
.tile.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 32px;
  padding-bottom: 40px;
}

.tile.split .copy {
  align-self: start;
}

.tile.split .visual {
  padding: 0;
}

.tile h3 {
  font: 700 28px/1.14 var(--font-display);
  letter-spacing: -0.024em;
}

.tile .copy {
  max-width: 420px;
}

.tile .copy p {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.47;
}

.tile .visual {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 0 40px;
}

.tile .note {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 14px;
}

/* Approve: an island answering one request after another. */
.approve-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.approve-stage .island .actions .btn.done {
  background: #30d158;
  color: #000;
}

.approve-stage .island.answered .btn:not(.allow) {
  opacity: 0.35;
}

.approve-stage .island.answered .btn.allow {
  transform: scale(0.96);
}

.static-pet {
  position: relative;
  width: 58px;
  height: 58px;
}

.static-pet .sprite {
  width: 100%;
  height: 100%;
}

/* Know who needs you: the toolbar badge and a pet for each capsule. */
.needs {
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mini-toolbar {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 20px;
  background: var(--bg-alt);
  box-shadow: inset 0 0 0 0.5px var(--hairline);
  color: var(--text-2);
  font-size: 13px;
}

.mini-toolbar .url {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-toolbar .badge {
  box-shadow: 0 0 0 1.5px var(--bg-alt);
}

.needs-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.needs-row .sprite {
  width: 44px;
  height: 44px;
  flex: none;
}

.needs-row .ap-bubble {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  animation: none;
}

.needs-row .ap-bubble[data-kind="alert"] {
  animation: ap-ring 2s ease-out infinite;
}

.tile .island.compact {
  width: 100%;
  max-width: 320px;
}

/* Your Cat: a photo, a crop, a pet in any colour. */
.yourcat {
  width: 100%;
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.crop {
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.35);
}

.crop img {
  width: 100%;
  height: 100%;
}

.crop::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  box-shadow: 0 0 0 200px rgba(0, 0, 0, 0.45), inset 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.yourcat-arrow {
  width: 28px;
  height: 28px;
  color: var(--text-2);
}

.yourcat-pet {
  width: 176px;
  height: 176px;
}

/* The pet plus its name: a dark tag like the one over pets on a page, editable in place. */
.yourcat-petbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.yourcat-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px 6px 13px;
  border-radius: 999px;
  background: #000;
  color: #f5f5f7;
  cursor: text;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.14), 0 6px 16px -6px rgba(0, 0, 0, 0.45);
  transition: box-shadow 0.2s ease, transform 0.3s var(--spring);
}

.yourcat-name:hover {
  transform: scale(1.04);
}

.yourcat-name:focus-within {
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.14), 0 0 0 2.5px var(--tile), 0 0 0 4.5px var(--accent);
}

.yourcat-name input {
  min-width: 2ch;
  max-width: 16ch;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  color: inherit;
  font: 600 14px/1.2 var(--font);
  letter-spacing: -0.01em;
  text-align: center;
}

.yourcat-name svg {
  width: 12px;
  height: 12px;
  flex: none;
  opacity: 0.6;
}

.yourcat-pick {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.swatch {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.3s var(--spring), box-shadow 0.2s ease;
}

.swatch:hover {
  transform: scale(1.1);
}

.swatch[aria-pressed="true"] {
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.2), 0 0 0 2.5px var(--tile), 0 0 0 4.5px var(--text);
}

.swatch-label {
  color: var(--text-2);
  font-size: 14px;
}

/* Eight pets in a row. */
.lineup {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lineup li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.lineup .sprite {
  width: 100%;
  max-width: 96px;
  aspect-ratio: 1;
}

.lineup .label {
  font: 600 15px/1.2 var(--font-display);
  letter-spacing: -0.015em;
}

.lineup .species {
  color: var(--text-2);
  font-size: 13px;
}

.span-3 .copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 48px;
}

.span-3 .copy-row .copy {
  max-width: 560px;
}

/* Gather: a floor, a segmented control, pets heading to the corner. */
.gather-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.segmented {
  display: inline-flex;
  padding: 2px;
  border-radius: 9px;
  background: var(--chip);
}

.segmented button {
  min-width: 84px;
  height: 30px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font: 500 13px/1 var(--font);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.segmented button[aria-pressed="true"] {
  background: var(--tile);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.06);
}

@media (prefers-color-scheme: dark) {
  .segmented button[aria-pressed="true"] {
    background: #636366;
  }
}

.floor {
  position: relative;
  width: 100%;
  height: 84px;
  border-bottom: 1px solid var(--hairline);
}

/* Notifications: the banner the extension posts. */
.notification {
  width: 100%;
  max-width: 380px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 4px 12px;
  padding: 14px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--bg-alt) 80%, transparent);
  box-shadow: 0 0 0 0.5px var(--hairline), 0 18px 40px -16px rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.notification img {
  width: 38px;
  height: 38px;
  grid-row: span 2;
}

.notification .n-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.notification .n-time {
  color: var(--text-2);
  font-weight: 400;
}

.notification .n-body {
  font-size: 13px;
  line-height: 1.35;
}

.notification .n-body code {
  color: var(--text-2);
  font-size: 12px;
}

.notification .n-actions {
  grid-column: 1 / -1;
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.notification .n-actions span {
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--chip);
  font-size: 13px;
  font-weight: 500;
}

/* Private: the three pieces on your computer, and the short list of what goes out. */
.local-map {
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.local-box {
  border-radius: 22px;
  padding: 16px;
  box-shadow: inset 0 0 0 1.5px var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.local-box .label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.local-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg-alt);
  font-size: 14px;
  font-weight: 500;
}

.local-node code {
  color: var(--text-2);
  font-size: 12px;
}

.local-out {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

/* ---------- How it works ---------- */

.terminal {
  max-width: 760px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #1d1d1f;
  color: #f5f5f7;
  box-shadow: var(--shadow-window);
  text-align: left;
}

.terminal-bar {
  position: relative;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  background: #2c2c2e;
  color: rgba(235, 235, 245, 0.6);
  font-size: 13px;
  font-weight: 500;
}

.terminal-bar .lights {
  position: absolute;
  left: 14px;
  top: 16px;
  margin: 0;
}

.copy-button {
  position: absolute;
  right: 10px;
  top: 8px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #f5f5f7;
  font: 500 13px/1 var(--font);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s ease;
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.copy-button svg {
  width: 14px;
  height: 14px;
}

.copy-button .done {
  display: none;
}

.copy-button.copied .idle {
  display: none;
}

.copy-button.copied .done {
  display: inline;
}

.terminal pre {
  margin: 0;
  padding: 22px 24px 26px;
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

/* Long lines wrap under their text, not under the ✓. */
.terminal .line {
  display: block;
  padding-left: 2ch;
  text-indent: -2ch;
}

.terminal .prompt {
  color: #8e8e93;
  user-select: none;
}

.terminal .cmd {
  color: #fff;
  font-weight: 600;
}

.terminal .ok {
  color: #30d158;
}

.terminal .dim {
  color: rgba(235, 235, 245, 0.6);
}

.steps {
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font: 600 15px/1 var(--font-display);
}

.steps h3 {
  font: 700 21px/1.2 var(--font-display);
  letter-spacing: -0.02em;
}

.steps p {
  margin-top: 8px;
  color: var(--text-2);
}

.steps-foot {
  margin-top: 56px;
  color: var(--text-2);
  font-size: 14px;
  text-align: center;
}

/* ---------- Pricing ---------- */

.price-card {
  max-width: 500px;
  margin: 0 auto;
  padding: 48px;
  border-radius: 32px;
  background: var(--tile);
  text-align: center;
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.3);
}

.price-card .plan {
  font: 600 21px/1.2 var(--font-display);
  letter-spacing: -0.02em;
}

.price {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
}

.price .amount {
  font: 700 88px/1 var(--font-display);
  letter-spacing: -0.045em;
}

.price .terms {
  color: var(--text-2);
  font-size: 17px;
}

/* The regular price, struck through beside the early-bird one. */
.was {
  color: var(--text-2);
  text-decoration-thickness: 0.08em;
}

.price .was {
  font: 600 34px/1 var(--font-display);
  letter-spacing: -0.03em;
}

.earlybird {
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--offer) 9%, transparent);
  font-size: 15px;
  line-height: 1.45;
}

.earlybird-note {
  margin-top: 2px;
  color: var(--text-2);
  font-size: 13px;
}

.includes {
  margin: 32px 0;
  padding: 28px 0 0;
  border-top: 0.5px solid var(--hairline);
  list-style: none;
  display: grid;
  gap: 12px;
  text-align: left;
}

.includes li {
  position: relative;
  padding-left: 30px;
}

.includes li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #30d158;
}

.includes li::after {
  content: "";
  position: absolute;
  left: 8.5px;
  top: 7.5px;
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.price-fine {
  margin-top: 18px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
}

.price-fine strong {
  color: var(--text);
  font-weight: 600;
}

.requirements {
  max-width: 500px;
  margin: 28px auto 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  border-top: 0.5px solid var(--hairline);
}

.faq-list details {
  border-bottom: 0.5px solid var(--hairline);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font: 600 19px/1.3 var(--font-display);
  letter-spacing: -0.018em;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  width: 12px;
  height: 12px;
  flex: none;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.6px 12px no-repeat;
  color: var(--text-2);
  transition: transform 0.35s var(--ease);
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list summary:focus-visible {
  outline-offset: 6px;
  border-radius: 6px;
}

.faq-list .answer {
  padding: 0 40px 26px 0;
  color: var(--text-2);
}

.faq-list .answer p + p {
  margin-top: 10px;
}

/* ---------- Footer ---------- */

.footer {
  padding: 28px 0 36px;
  background: var(--bg-alt);
  border-top: 0.5px solid var(--hairline);
  color: var(--text-2);
  font-size: 12px;
  letter-spacing: -0.01em;
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}

.footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.footer a {
  color: var(--text);
  opacity: 0.8;
}

/* ---------- Documents (setup, legal) ---------- */

.doc {
  max-width: calc(68ch + 48px);
  margin: 0 auto;
  padding: 88px 24px 128px;
}

.doc h1 {
  font: 700 clamp(36px, 6vw, 52px) / 1.08 var(--font-display);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.doc .updated {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 15px;
}

.doc .intro {
  margin-top: 24px;
  color: var(--text-2);
  font: 400 21px/1.42 var(--font-display);
  letter-spacing: -0.014em;
}

.doc h2 {
  margin-top: 56px;
  font: 700 26px/1.2 var(--font-display);
  letter-spacing: -0.022em;
}

.doc h3 {
  margin-top: 32px;
  font: 600 19px/1.3 var(--font-display);
  letter-spacing: -0.018em;
}

.doc p,
.doc ul,
.doc ol {
  margin-top: 14px;
  line-height: 1.6;
}

.doc ul,
.doc ol {
  padding-left: 1.3em;
}

.doc li + li {
  margin-top: 8px;
}

.doc .terminal {
  margin-top: 20px;
}

.doc .callout {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--bg-alt);
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.5;
}

.doc .callout strong {
  color: var(--text);
}

/* A single copyable command. */
.command {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 8px 10px 8px 20px;
  border-radius: 14px;
  background: #1d1d1f;
  color: #f5f5f7;
}

@media (prefers-color-scheme: dark) {
  .command {
    background: #1c1c1e;
    box-shadow: inset 0 0 0 0.5px var(--hairline);
  }
}

.command code {
  min-width: 0;
  overflow-x: auto;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.command code::before {
  content: "$ ";
  color: #8e8e93;
  font-weight: 400;
}

.command .copy-button {
  position: static;
  flex: none;
}

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0.05em 0.4em;
  border-radius: 5px;
  background: var(--tile);
  box-shadow: inset 0 0 0 0.5px var(--hairline), 0 1px 0 var(--hairline);
  font: 500 0.86em/1.5 var(--font);
  text-align: center;
}

/* A key combination: its keys stay together on one line. */
kbd.combo {
  display: inline-flex;
  gap: 3px;
  min-width: 0;
  padding: 0;
  background: none;
  box-shadow: none;
  font-size: 1em;
  white-space: nowrap;
  vertical-align: baseline;
}

.setup-hero {
  display: flex;
  align-items: flex-end;
  gap: 18px;
}

.setup-hero .static-pet {
  width: 84px;
  height: 84px;
  flex: none;
}

.doc .setup-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.doc .setup-steps > li {
  counter-increment: step;
  position: relative;
  margin-top: 48px;
  padding-left: 52px;
}

.setup-steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font: 600 15px/1 var(--font-display);
}

.setup-steps h2 {
  margin-top: 0;
  font-size: 24px;
}

.not-found {
  min-height: calc(100vh - var(--nav-h) - 90px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 24px;
  text-align: center;
}

.not-found .static-pet {
  width: 96px;
  height: 96px;
  margin-bottom: 20px;
}

.not-found h1 {
  font: 700 clamp(36px, 6vw, 52px) / 1.08 var(--font-display);
  letter-spacing: -0.03em;
}

.not-found p {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 19px;
}

.not-found .hero-ctas {
  margin-top: 28px;
}

/* ---------- Responsive ---------- */

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

  .tile.span-2,
  .tile.wide-on-tablet {
    grid-column: 1 / -1;
  }

  .lineup {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 24px;
  }
}

@media (max-width: 860px) {
  .page-skeleton {
    grid-template-columns: 1fr;
  }

  .skel-side {
    display: none;
  }

  .skel-main {
    padding: 24px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 36px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 734px) {
  :root {
    --nav-h: 48px;
  }

  body {
    font-size: 17px;
  }

  .nav-links {
    display: none;
  }

  .nav-buy {
    margin-left: auto;
  }

  .section {
    padding: 88px 0;
  }

  .section-head {
    margin-bottom: 44px;
  }

  .hero {
    padding: 56px 0 72px;
  }

  .browser {
    margin-top: 48px;
    border-radius: 12px;
  }

  .browser-top {
    height: 36px;
    padding: 0 10px;
  }

  .lights {
    gap: 6px;
    margin-right: 12px;
  }

  .lights i {
    width: 10px;
    height: 10px;
  }

  .tab {
    width: 160px;
    height: 28px;
  }

  .browser-bar {
    height: 38px;
    gap: 10px;
    padding: 0 10px;
  }

  .browser-bar .nav-glyph {
    display: none;
  }

  .browser-page {
    height: 540px;
  }

  .skel-cards {
    grid-template-columns: 1fr 1fr;
  }

  .skel-cards .skel-card:nth-child(3) {
    display: none;
  }

  .browser .island {
    right: 12px;
    left: 12px;
    width: auto;
  }

  .pet.anchored {
    right: 40px;
  }

  .works {
    padding-bottom: 80px;
  }

  .wordmarks {
    gap: 8px 24px;
    font-size: 21px;
  }

  .bento {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .tile {
    min-height: 0;
    padding: 32px 24px 0;
    border-radius: 24px;
  }

  .tile h3 {
    font-size: 24px;
  }

  .tile .visual,
  .tile.split .visual {
    padding: 32px 0;
  }

  .tile.split {
    display: flex;
    gap: 0;
    padding-bottom: 0;
  }

  .yourcat {
    gap: 12px;
  }

  .crop {
    width: 120px;
    height: 120px;
    border-radius: 16px;
  }

  .crop::after {
    inset: 8px;
  }

  .yourcat-arrow {
    width: 20px;
    height: 20px;
  }

  .yourcat-pet {
    width: 128px;
    height: 128px;
  }

  .price-card {
    padding: 36px 24px;
    border-radius: 28px;
  }

  .terminal pre {
    padding: 18px 18px 22px;
    font-size: 12px;
  }

  .price .amount {
    font-size: 72px;
  }

  .faq-list .answer {
    padding-right: 0;
  }

  .footer ul {
    margin-left: 0;
  }

  .doc {
    padding-top: 64px;
  }

  .doc .setup-steps > li {
    padding-left: 0;
    padding-top: 48px;
  }
}

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

  .hero-copy > *,
  .hero .browser {
    animation: none;
  }

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

  .island .glyph,
  .island .btn,
  .island .send,
  .swatch,
  .button {
    animation: none !important;
    transition: none;
  }
}
