/* ===== Layout additions ===== */
body { min-height: 0; }
.hero { max-width: 880px; margin: 0 auto; padding: 2px 24px 0; text-align: center; display: flex; flex-direction: column; align-items: center; overflow: visible; }
h1 { font-size: 64px; max-width: 1100px; margin: 0 0 16px; }
h1 .line { display: block; white-space: nowrap; }
.hero .sub { margin: 0 auto 26px; font-size: 18px; }
.prompt { margin-bottom: 14px; text-align: left; }
.chips { margin-bottom: 40px; }
.prompt-go { cursor: pointer; }

.frame { max-width: 1120px; margin: 0 auto; padding: 0 48px; }
.section { padding: 104px 0; border-top: 1px dashed rgba(17,17,17,.35); }
.section-alt { background: rgba(255,255,255,.55); }
.eyebrow { display: block; text-align: center; color: var(--black); margin-bottom: 14px; }
.section-title { font-size: 46px; text-align: center; margin-bottom: 14px; }
.section-sub { font-size: 17px; line-height: 1.5; color: var(--muted); text-align: center; max-width: 620px; margin: 0 auto 48px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { position: relative; padding: 26px 24px 24px; background: #fff; }
.step-num { position: absolute; top: 18px; right: 20px; font-family: "Archivo Black", sans-serif; font-size: 30px; color: var(--green); letter-spacing: -.04em; }
.step .label, .tool .label { display: block; margin-bottom: 14px; color: var(--black); }
.step h3, .tool h3 { font-size: 20px; }
.step p, .tool p { font-size: 15px; line-height: 1.45; }
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tool { padding: 22px 22px 20px; background: #fff; box-shadow: 3px 3px 0 rgba(17,17,17,.06); transition: transform .2s ease-out, box-shadow .2s ease-out; }
.tool:hover { box-shadow: 5px 5px 0 var(--green); }

.cta { padding: 112px 0 120px; border-top: 1px dashed rgba(17,17,17,.35); text-align: center; }
.cta-title { font-size: 56px; margin: 0 auto 18px; }
.btn-big { font-size: 16px; padding: 16px 28px; }
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 36px;
  flex-wrap: wrap;
  padding: 28px 48px;
  border-top: 1px solid var(--black);
  background: rgba(245, 246, 247, 0.9);
}
.footer-logo { display: block; line-height: 0; }
.footer img { height: 26px; width: auto; display: block; }
.footer-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-links a {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.footer-links a:hover { color: var(--ink); }
.footer-copy {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin: 0;
}

/* ===== Scroll reveal (uxpilot: framer-motion initial {opacity:0,y:20} -> {opacity:1,y:0},
   duration .3s, ease "easeOut" = cubic-bezier(0,0,.58,1), once, in-view amount .4, card stagger .2s) ===== */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s cubic-bezier(0,0,.58,1) var(--d, 0s), transform .3s cubic-bezier(0,0,.58,1) var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.tool.is-in:hover { transform: translate(-2px,-2px); }
@media print { .js .reveal { opacity: 1 !important; transform: none !important; } }

/* ===== Mascot: uxpilot-style character motion (anticipation squash -> hop with spin -> land squash -> settle,
   blink-like glance), but as a pure CSS infinite loop. 0% and 100% keyframes are identical. ===== */
.mascot-stage { position: relative; width: 132px; height: 128px; margin-bottom: 6px; display: flex; align-items: flex-end; justify-content: center; z-index: 210; pointer-events: none; overflow: visible; }
/* Sit above the sticky header (z-index 200) while jumping; drop under the open nav menu. */
body.pid-open .mascot-stage { z-index: 1; } /* below header (200) and menu overlay (180) */
.mascot-wrap {
  width: 132px; display: block;
  animation: mascot-hop 3.2s linear infinite !important;
  animation-play-state: running !important;
  transform-origin: 50% 100%;
  will-change: transform;
}
.mascot-body { animation: mascot-spin 3.2s linear infinite !important; animation-play-state: running !important; transform-origin: 50% 52%; will-change: transform; }
.mascot-body img { display: block; width: 100%; height: auto; }
.mascot-shadow { position: absolute; bottom: -4px; left: 50%; width: 84px; height: 10px; margin-left: -42px; border-radius: 50%; background: rgba(17,17,17,.14); animation: mascot-shadow 3.2s linear infinite !important; animation-play-state: running !important; }

@keyframes mascot-hop {
  0%   { transform: translateY(0) scale(1,1); animation-timing-function: ease-in-out; }
  14%  { transform: translateY(-4px) scale(1,1) rotate(-4deg); animation-timing-function: ease-in-out; }   /* glance left */
  28%  { transform: translateY(0) scale(1,1) rotate(3deg); animation-timing-function: ease-in-out; }      /* glance right */
  40%  { transform: translateY(0) scale(1.08,.9); animation-timing-function: cubic-bezier(.2,.7,.3,1); }  /* anticipation squash */
  56%  { transform: translateY(-34px) scale(.95,1.06); animation-timing-function: cubic-bezier(.6,0,.8,.4); } /* hop apex, stretched */
  70%  { transform: translateY(0) scale(1.1,.88); animation-timing-function: cubic-bezier(.3,1.4,.5,1); }  /* land squash */
  80%  { transform: translateY(-5px) scale(.98,1.02); animation-timing-function: ease-in-out; }           /* rebound */
  90%  { transform: translateY(0) scale(1,1); animation-timing-function: ease-in-out; }
  100% { transform: translateY(0) scale(1,1); }
}
@keyframes mascot-spin {          /* the gear spins a full turn while airborne, like uxpilot's propeller */
  0%, 40%   { transform: rotate(0deg); }
  70%, 100% { transform: rotate(360deg); }
}
@keyframes mascot-shadow {
  0%, 30%, 90%, 100% { transform: scale(1); opacity: 1; }
  40% { transform: scale(1.08); opacity: 1; }
  56% { transform: scale(.6); opacity: .45; }
  70% { transform: scale(1.12); opacity: 1; }
}
/* Never stop the mascot, even with reduced-motion on (explicit owner requirement) */
@media (prefers-reduced-motion: reduce) {
  .mascot-wrap { animation: mascot-hop 3.2s linear infinite !important; }
  .mascot-body { animation: mascot-spin 3.2s linear infinite !important; }
  .mascot-shadow { animation: mascot-shadow 3.2s linear infinite !important; }
  .js .reveal { transition-duration: .01s; }
}

/* ===== Marquee (uxpilot: duplicated list, translate -50%, linear infinite, "slow" = 80s per set,
   gap 3rem, items 32px tall, mask fade 10% each edge, no pause on hover) ===== */
.marquee-block { padding: 8px 0 56px; text-align: center; }
.marquee-title { display: block; color: var(--black); margin-bottom: 6px; }
.marquee {
  overflow: hidden; max-width: 1280px; margin: 0 auto;
  -webkit-mask-image: linear-gradient(to right, transparent, #fff 10%, #fff 90%, transparent);
          mask-image: linear-gradient(to right, transparent, #fff 10%, #fff 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee var(--marquee-duration, 150s) linear infinite; animation-play-state: running !important; will-change: transform; }
.marquee-group { display: flex; align-items: center; gap: 48px; padding: 16px 48px 16px 0; list-style: none; flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.wm { display: inline-flex; align-items: center; gap: 8px; height: 32px; white-space: nowrap; color: var(--black); opacity: .78; line-height: 1; }
.wm-a { font-family: "Archivo Black", sans-serif; font-size: 20px; letter-spacing: -.04em; text-transform: uppercase; }
.wm-b { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 21px; letter-spacing: -.02em; }
.wm-c { font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 15px; letter-spacing: .14em; }
.wm-d { font-family: "Space Grotesk", sans-serif; font-weight: 500; font-size: 22px; font-style: italic; letter-spacing: -.03em; }
.g { display: inline-block; flex-shrink: 0; }
.g-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.g-plus { width: 14px; height: 14px; background: linear-gradient(var(--black),var(--black)) center/100% 3px no-repeat, linear-gradient(var(--black),var(--black)) center/3px 100% no-repeat; }
.g-arrow { width: 14px; height: 14px; border-top: 3px solid var(--green); border-right: 3px solid var(--green); transform: rotate(45deg) scale(.8); }
.g-gear { width: 16px; height: 16px; border-radius: 50%; border: 4px dotted var(--black); }

@media (max-width: 800px) {
  h1 { font-size: 40px; }
  h1 .line { white-space: normal; }
  .frame { padding: 0 20px; }
  .section { padding: 72px 0; }
  .section-title { font-size: 32px; }
  .cta-title { font-size: 36px; }
  .steps, .tools { grid-template-columns: 1fr; }
  .footer { padding: 22px 20px; }
  .footer-links { gap: 16px; }
}

/* Phone: two-row wrap like the 7:02pm deployed layout (not a scrolling strip). */
@media (max-width: 800px) {
  .chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    overflow: visible;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .chips-track,
  .chips-group { display: contents; }
  .chips-group[aria-hidden="true"] { display: none; }
}

@media (min-width: 801px) {
  .chips-track, .chips-group { display: contents; }
  .chips-group[aria-hidden="true"] { display: none; }
}

/* About us: same type as section-sub, two short paragraphs */
.about-copy {
  max-width: 620px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
.about-copy p {
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

/* Footer: links clear of the chat launcher; desktop links sit where they did with the copyright line; phone footer max two lines */
@media (min-width: 1101px) {
  .footer::after { content: ""; width: 249px; flex: 0 0 249px; }
}
@media (min-width: 801px) and (max-width: 1100px) {
  .footer { justify-content: flex-start; padding-right: 104px; }
}
@media (min-width: 600px) and (max-width: 800px) {
  .footer { padding-right: 104px; }
}
