/* Homepage renewal 2026-10 (MAS 26.41 screens).
   The hero is a bright Mac screen on the dark page: a menu bar with the Agent Cat status item,
   the real popover, and a track where the cat runs while agents work and sleeps when they stop.
   Colors come from the app's SoftGaugeTheme.light and its provider palette. */

:root {
  --h26-ground: #f3efe7;
  --h26-card: #fbf9f4;
  --h26-track: #ece6da;
  --h26-ink: #2b1f1a;
  --h26-ink-2: #5c4a3d;
  --h26-ink-3: #78614d;
  --h26-rust: #b5451f;
  --h26-peach: #f3d2bc;
  --h26-sky: #cfe5e8;
  --h26-claude: #e0967a;
  --h26-codex: #8f9bc4;
  --h26-gemini: #9cc3a7;
  --h26-kimi: #e9c46a;
  --h26-copilot: #86aecb;
  --h26-grok: #a79bb0;
  --h26-ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- hero: the screen ---------- */
.campaign-hero:has(> .h26-screen) { padding: clamp(18px, 3vw, 36px) clamp(0px, 2vw, 28px) clamp(56px, 7vw, 96px); }
.h26-screen {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  border-radius: 30px;
  overflow: hidden;
  color: var(--h26-ink);
  background:
    radial-gradient(58% 72% at 6% 0%, var(--h26-peach) 0, rgba(243, 210, 188, 0) 62%),
    radial-gradient(52% 64% at 100% 100%, var(--h26-sky) 0, rgba(207, 229, 232, 0) 62%),
    var(--h26-ground);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 50px 140px -30px rgba(255, 146, 110, .28), 0 30px 80px -40px rgba(0, 0, 0, .8);
}

.h26-menubar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 36px;
  padding: 0 14px 0 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--h26-ink);
  background: rgba(251, 249, 244, .58);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid rgba(43, 31, 26, .07);
}
.h26-menubar-app { font-weight: 700; }
.h26-menubar-menus { display: flex; gap: 16px; color: var(--h26-ink-2); }
.h26-menubar-extras { display: flex; align-items: center; gap: 14px; margin-left: auto; color: var(--h26-ink-2); }
.h26-menubar-extras svg { display: block; width: 16px; height: 16px; }

.h26-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 9px 0 6px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--h26-ink);
  font: inherit;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.h26-status[aria-expanded="true"] { background: rgba(43, 31, 26, .1); }
.h26-status:focus-visible { outline: 2px solid var(--h26-rust); outline-offset: 2px; }
.h26-status-cat {
  width: 36px;
  height: 18px;
  background: url("/assets/cute-cat-orange-sprite.webp") no-repeat 0 -36px / 216px 90px;
  animation: h26-frames-sm .5s steps(6) infinite;
}
.h26-status-tags { display: inline-flex; gap: 7px; }
.h26-status-tags b { font-weight: 700; }
.h26-status-tags i { font-style: normal; font-weight: 600; color: var(--h26-ink-3); }

.h26-body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  padding: clamp(40px, 5.5vw, 76px) clamp(24px, 5vw, 72px) 0;
}

.campaign .h26-title {
  margin: 0;
  font-size: clamp(2.5rem, 4.7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.055em;
  color: var(--h26-ink);
  word-break: keep-all;
}
.campaign .h26-lede {
  max-width: 31em;
  margin: clamp(18px, 2.2vw, 26px) 0 0;
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  line-height: 1.62;
  color: var(--h26-ink-2);
  word-break: keep-all;
}

.h26-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 3vw, 36px); }
.h26-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.02em;
  text-decoration: none;
  transition: transform .25s var(--h26-ease), box-shadow .25s var(--h26-ease), background-color .2s;
}
.h26-btn::after { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--h26-icon) center / contain no-repeat; mask: var(--h26-icon) center / contain no-repeat; order: -1; }
.h26-btn-mac {
  --h26-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='12' rx='2'/%3E%3Cpath d='M2 20h20'/%3E%3C/svg%3E");
  color: var(--h26-card);
  background: var(--h26-ink);
  box-shadow: 0 10px 24px -12px rgba(43, 31, 26, .7);
}
.h26-btn-win {
  --h26-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4h8v8H3zM13 4h8v8h-8zM3 14h8v6H3zM13 14h8v6h-8z'/%3E%3C/svg%3E");
  color: var(--h26-ink);
  background: rgba(251, 249, 244, .75);
  box-shadow: inset 0 0 0 1.5px rgba(43, 31, 26, .16);
}
.h26-btn:hover { transform: translateY(-2px); }
.h26-btn-mac:hover { box-shadow: 0 16px 30px -12px rgba(43, 31, 26, .75); }
.h26-btn:focus-visible { outline: 3px solid var(--h26-rust); outline-offset: 3px; }

.h26-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 18px 0 0; font-size: .9rem; color: var(--h26-ink-3); }
.h26-meta a { color: var(--h26-ink-2); text-decoration: underline; text-decoration-color: rgba(43, 31, 26, .3); text-underline-offset: 3px; }
.h26-meta a:hover { color: var(--h26-rust); }
.h26-meta .campaign-download-count { margin: 0; color: var(--h26-ink-3); font-size: inherit; }
.h26-meta .campaign-download-count strong { color: var(--h26-ink); font-variant-numeric: tabular-nums; }

/* the popover hangs from the status item */
.h26-popover {
  position: relative;
  justify-self: end;
  width: min(100%, 410px);
  margin: calc(-1 * clamp(40px, 5.5vw, 76px) + 6px) 0 0;
  transform-origin: 82% 0;
}
.h26-popover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(43, 31, 26, .06), 0 30px 60px -24px rgba(91, 61, 40, .45);
}
.h26-popover figcaption { margin-top: 10px; font-size: .76rem; color: var(--h26-ink-3); text-align: right; }
.h26-popover[data-open="false"] { opacity: 0; transform: translateY(-10px) scale(.97); pointer-events: none; }
.h26-popover { transition: opacity .35s var(--h26-ease), transform .45s var(--h26-ease); }

/* the track: the memorable part */
.h26-run {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: clamp(18px, 3vw, 40px);
  padding: clamp(18px, 3vw, 34px) clamp(24px, 5vw, 72px) clamp(26px, 3.4vw, 40px);
}
.h26-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(43, 31, 26, .08); }
.h26-switch button {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--h26-ink-2);
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.h26-switch button[aria-pressed="true"] { background: var(--h26-card); color: var(--h26-ink); box-shadow: 0 2px 8px -2px rgba(43, 31, 26, .25); }
.h26-switch button:focus-visible { outline: 2px solid var(--h26-rust); outline-offset: 2px; }

.h26-track { position: relative; height: 120px; overflow: hidden; }
.h26-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--h26-claude) 0 16%, var(--h26-codex) 0 33%, var(--h26-gemini) 0 50%, var(--h26-kimi) 0 66%, var(--h26-copilot) 0 83%, var(--h26-grok) 0 100%) 0 0 / 360px 6px repeat-x;
  opacity: .9;
  animation: h26-belt .9s linear infinite;
}
.h26-cat {
  position: absolute;
  left: 34%;
  bottom: 12px;
  width: 216px;
  height: 108px;
  background: url("/assets/cute-cat-orange-sprite.webp") no-repeat 0 -216px / 1296px 540px;
  animation: h26-frames .42s steps(6) infinite;
}
.h26-hero[data-cat="sleep"] .h26-cat { background-position-y: -324px; animation-duration: 2.4s; }
.h26-hero[data-cat="sleep"] .h26-track::before { animation-play-state: paused; filter: saturate(.35); }
.h26-hero[data-cat="sleep"] .h26-status-cat { background-position-y: -54px; animation-duration: 2.4s; }
.h26-done { position: absolute; left: calc(34% + 210px); bottom: 54px; font-size: .9rem; font-weight: 700; color: var(--h26-ink-3); opacity: 0; transition: opacity .3s; }
.h26-hero[data-cat="sleep"] .h26-done { opacity: 1; }

@keyframes h26-frames { to { background-position-x: -1296px; } }
@keyframes h26-frames-sm { to { background-position-x: -216px; } }
@keyframes h26-belt { to { background-position-x: -360px; } }

/* one orchestrated entrance: the cat sprints in, then the popover drops */
@media (prefers-reduced-motion: no-preference) {
  .h26-hero.is-entering .h26-cat { animation: h26-frames .42s steps(6) infinite, h26-enter 1.25s var(--h26-ease) both; }
  .h26-hero.is-entering .h26-popover { animation: h26-drop .7s var(--h26-ease) .55s both; }
}
@keyframes h26-enter { from { transform: translateX(-140%); } to { transform: none; } }
@keyframes h26-drop { from { opacity: 0; transform: translateY(-14px) scaleY(.92); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .h26-cat, .h26-status-cat, .h26-track::before { animation: none !important; }
  .h26-popover, .h26-btn { transition: none; }
}

/* ---------- screens: the MAS views, big ---------- */
.h26-screens { padding: clamp(64px, 9vw, 128px) 0 clamp(40px, 6vw, 80px); color: var(--campaign-cream, #f5efe5); }
.h26-band { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.h26-band + .h26-band { margin-top: clamp(72px, 10vw, 140px); }
.h26-band--flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.h26-band--flip .h26-band-copy { order: 2; }
.h26-band--wide { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.campaign .h26-band h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 800; line-height: 1.08; letter-spacing: -.05em; word-break: keep-all; }
.campaign .h26-band p { max-width: 30em; margin: 16px 0 0; font-size: 1.06rem; line-height: 1.65; color: #cfc6b8; word-break: keep-all; }
.h26-band--wide p { margin-inline: auto; }
.h26-shot {
  margin: 0;
  padding: clamp(14px, 2vw, 26px);
  border-radius: 28px;
  background:
    radial-gradient(70% 80% at 0% 0%, var(--h26-peach) 0, rgba(243, 210, 188, 0) 60%),
    radial-gradient(60% 70% at 100% 100%, var(--h26-sky) 0, rgba(207, 229, 232, 0) 60%),
    var(--h26-ground);
}
.h26-band--wide .h26-shot { width: min(100%, 840px); margin-top: clamp(28px, 4vw, 48px); }
.h26-shot img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 24px 50px -26px rgba(91, 61, 40, .55); }
.h26-shot figcaption { margin-top: 10px; font-size: .74rem; color: var(--h26-ink-3); text-align: left; }

.h26-providers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; font-size: .92rem; font-weight: 600; color: #e9e1d4; }
.h26-providers li { display: inline-flex; align-items: center; gap: 8px; }
.h26-providers li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); }

.h26-facts { display: grid; gap: 18px; margin: 28px 0 0; padding: 0; list-style: none; }
.h26-facts li { display: grid; gap: 3px; padding-left: 18px; border-left: 3px solid var(--dot, var(--h26-gemini)); }
.h26-facts b { font-size: 1.04rem; color: #f5efe5; }
.h26-facts span { font-size: .95rem; color: #bdb3a4; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .h26-menubar-menus { display: none; }
  .h26-body { grid-template-columns: minmax(0, 1fr); }
  .h26-popover { justify-self: center; width: min(100%, 380px); margin: 8px 0 0; transform-origin: 50% 0; }
  .h26-run { grid-template-columns: minmax(0, 1fr); }
  .h26-band, .h26-band--flip { grid-template-columns: minmax(0, 1fr); }
  .h26-band--flip .h26-band-copy { order: 0; }
}
@media (max-width: 560px) {
  .h26-screen { border-radius: 22px; margin-inline: 12px; }
  .h26-menubar { gap: 10px; padding: 0 8px 0 14px; }
  .h26-menubar-extras .h26-clock, .h26-menubar-extras svg { display: none; }
  .h26-btn { width: 100%; justify-content: center; }
  .h26-cat { width: 162px; height: 81px; background-size: 972px 405px; background-position-y: -162px; left: 18%; }
  .h26-hero[data-cat="sleep"] .h26-cat { background-position-y: -243px; }
  .h26-done { left: calc(18% + 158px); bottom: 40px; }
  @keyframes h26-frames { to { background-position-x: -972px; } }
}
.h26-shot--card { justify-self: start; width: min(100%, 600px); }
.h26-shot--card img { image-rendering: auto; }

/* ---------- free: we don't charge ---------- */
.h26-free { padding: clamp(72px, 10vw, 140px) 0; color: #f5efe5; }
.h26-free-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: end; }
.h26-free-zero {
  margin: 0 0 6px;
  font-size: clamp(6rem, 17vw, 15rem);
  font-weight: 800;
  line-height: .86;
  letter-spacing: -.07em;
  color: #fbf9f4;
  font-variant-numeric: tabular-nums;
}
.h26-free-zero::after {
  content: "";
  display: block;
  height: 10px;
  margin-top: 18px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--h26-claude) 0 17%, var(--h26-codex) 0 34%, var(--h26-gemini) 0 51%, var(--h26-kimi) 0 68%, var(--h26-copilot) 0 85%, var(--h26-grok) 0 100%);
}
.campaign .h26-free h2 { margin: 26px 0 0; font-size: clamp(2.2rem, 4.6vw, 3.8rem); font-weight: 800; line-height: 1.04; letter-spacing: -.05em; color: #fbf9f4; }
.campaign .h26-free-head p:not(.h26-free-zero) { max-width: 28em; margin: 16px 0 0; font-size: 1.08rem; line-height: 1.65; color: #cfc6b8; word-break: keep-all; }
.h26-free-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.h26-free-list li {
  display: grid;
  gap: 4px;
  padding: 22px 24px;
  border-radius: 22px;
  background: #1c1915;
  box-shadow: inset 0 0 0 1px rgba(245, 239, 229, .08);
}
.h26-free-list b { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 800; letter-spacing: -.04em; color: #fbf9f4; }
.h26-free-list em { font-style: normal; color: var(--dot); }
.h26-free-list span { font-size: .98rem; color: #bdb3a4; word-break: keep-all; }
.campaign .h26-free-note { grid-column: 1 / -1; margin: 0; font-size: .92rem; color: #a99e8f; word-break: keep-all; }
.h26-free-note a { color: #f5efe5; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .h26-free-grid { grid-template-columns: minmax(0, 1fr); align-items: start; } }

/* every platform, said once and linked */
.h26-devices { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0 0; }
.h26-devices-lead { margin-right: 4px; font-size: .95rem; font-weight: 800; color: var(--h26-ink); }
.h26-devices a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(251, 249, 244, .8);
  box-shadow: inset 0 0 0 1px rgba(43, 31, 26, .12);
  color: var(--h26-ink);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}
.h26-devices a:hover { background: var(--h26-card); box-shadow: inset 0 0 0 1.5px var(--h26-ink); }
.h26-devices a:focus-visible { outline: 2px solid var(--h26-rust); outline-offset: 2px; }
.h26-meta > span:first-child { font-weight: 700; color: var(--h26-ink-2); }

/* ---------- phones: first screen (TRA-2760) ----------
   Paid Meta visitors are almost all on phones, and most left without passing the Mac-screen
   hero. Phones open on the ad's own promise, the Mac link button and the ad video; the
   Mac-screen hero follows below. Desktop and tablets never render this section. */
.h26-mfirst { display: none; }
@media (max-width: 560px) and (pointer: coarse) {
  .h26-mfirst { display: block; padding: 18px 16px 6px; color: var(--campaign-cream); }
  .campaign .h26-mfirst-eyebrow { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #bdb3a4; }
  .campaign .h26-mfirst-promise { margin: 6px 0 0; font-size: clamp(1.75rem, 8.2vw, 2.15rem); font-weight: 800; line-height: 1.14; letter-spacing: -.045em; color: #fbf9f4; word-break: keep-all; text-wrap: balance; }
  .h26-mfirst-promise em { font-style: normal; color: var(--campaign-accent); white-space: nowrap; }
  .h26-mfirst-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    margin: 16px 0 0;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--campaign-accent);
    color: var(--h26-ink);
    font: inherit;
    font-size: 1.06rem;
    font-weight: 800;
    letter-spacing: -.01em;
    cursor: pointer;
  }
  .h26-mfirst-cta:active { transform: scale(.985); }
  .campaign .h26-mfirst-note { margin: 8px 0 0; font-size: 13px; line-height: 1.45; text-align: center; color: #bdb3a4; word-break: keep-all; }
  .h26-mfirst-media { position: relative; margin: 14px 0 0; }
  .h26-mfirst-video { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 18px; background: #16130f; object-fit: cover; }
  .h26-mfirst-play {
    position: absolute;
    left: 50%;
    bottom: 16%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 20px 0 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(16, 16, 13, .8);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 10px 30px rgba(0, 0, 0, .35);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fbf9f4;
    font: inherit;
    font-size: .95rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
  }
  .h26-mfirst-play[hidden] { display: none; }
  .h26-mfirst-play span { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--campaign-accent); }
  .h26-mfirst-play span::after { content: ""; position: absolute; top: 8px; left: 11px; border-style: solid; border-width: 6px 0 6px 9px; border-color: transparent transparent transparent var(--h26-ink); }
  .campaign-hero:has(> .h26-screen) { padding-top: 10px; }
}
