
/* Sigma landing page - standalone. Tokens echo @repo/ui (Satoshi, 24px cards,
   pill buttons, the slate→cobalt agent disc, the cobalt→coral orbit) on a white
   canvas in the spirit of attio.com: one typeface, two-tone headlines, a
   hairline-bordered column, live UI mockups instead of screenshots. */

:root {
  --canvas: #fcfcfd;
  --canvas-2: #f5f6f8;
  --surface: #ffffff;
  --ink: #0b1220;
  --ink-2: #1b2740;
  --muted: #5f6b7a;
  --muted-2: #6b7684;
  --line: #e6e8ec;
  --line-strong: #d6dae1;
  --accent: #2563eb;
  --accent-ink: #1d4ed8;
  --accent-soft: #e8efff;
  --coral: #f97316;
  --coral-soft: #fff1e6;
  --cobalt: #2563eb;
  --plum: #806a90;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --green: #1f772d;
  --green-soft: #e6f4ea;
  --amber: #a74d08;
  --amber-soft: #fff4e0;
  --slate: #334155;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 1px 2px rgb(11 18 32 / 0.05), 0 8px 24px -12px rgb(11 18 32 / 0.12);
  --shadow-float: 0 2px 6px rgb(11 18 32 / 0.06), 0 30px 80px -30px rgb(11 18 32 / 0.28);
  --nav-h: 64px;
  /* Centred glyphs for the run-step check and the composer's send arrow. */
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --arrow-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 19V5M6 11l6-6 6 6' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

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

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

body {
  margin: 0;
  font-family:
    'Satoshi',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

b {
  font-weight: 700;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* ── Scroll progress + smooth scroll ────────────────────────────────────── */

.progress {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  height: 3px;
  z-index: 70;
  background: linear-gradient(90deg, var(--cobalt), var(--plum), var(--coral));
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

/* Lenis drives the scroll; native smooth scrolling would fight it. */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

.skip {
  position: absolute;
  inset-inline-start: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 500;
}
.skip:focus {
  inset-inline-start: 12px;
}

/* ── The column ─────────────────────────────────────────────────────────── */

.frame {
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
}

@media (min-width: 1024px) {
  .frame {
    border-inline: 1px solid var(--line);
  }
}

.cell {
  padding: clamp(56px, 8vw, 104px) clamp(20px, 4vw, 56px);
}

.measure {
  max-width: 26ch;
}

/* ── Type ───────────────────────────────────────────────────────────────── */

.display {
  margin: 0;
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-wrap: balance;
}
.display.sm {
  font-size: clamp(2.25rem, 5.4vw, 4rem);
}

.h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: pretty;
}

.h2 .rest,
.display .rest {
  color: var(--muted);
  font-weight: 500;
}

/* Serif-italic accent words with the cobalt→plum→coral gradient. */
.display em,
.h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.grad-text {
  background: linear-gradient(95deg, var(--cobalt) 0%, var(--plum) 50%, var(--coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* italic glyphs overhang their box; pad the painted area so the gradient reaches them */
em.grad-text {
  padding-block: 0 0.12em;
  padding-inline: 0 0.14em;
  margin-inline-end: -0.14em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.h2 .lead::after {
  content: ' ';
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow:
    0 1px 2px rgb(11 18 32 / 0.25),
    inset 0 1px 0 rgb(255 255 255 / 0.08);
}
.btn-primary:hover {
  background: var(--ink-2);
  box-shadow:
    0 6px 18px -8px rgb(11 18 32 / 0.5),
    inset 0 1px 0 rgb(255 255 255 / 0.08);
}
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-secondary:hover {
  background: var(--canvas-2);
}
.btn-ghost {
  padding: 0 12px;
  color: var(--muted);
}
.btn-ghost:hover {
  color: var(--ink);
}
/* Gradient wipe on hover: cobalt→plum→coral rises from the bottom. */
.btn-grad {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-grad::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(95deg, var(--cobalt), var(--plum), var(--coral));
  transform: translateY(101%);
  transition: transform 0.45s cubic-bezier(0.7, 0, 0.2, 1);
}
.btn-grad:hover::before,
.btn-grad:focus-visible::before {
  transform: translateY(0);
}
.btn-grad:hover,
.btn-grad:focus-visible {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 30px -12px rgb(37 99 235 / 0.55);
}
.btn-grad .arrow {
  transition: transform 0.35s var(--ease-out);
}
.btn-grad:hover .arrow,
.btn-grad:focus-visible .arrow {
  transform: translateY(3px);
}
@media (prefers-reduced-motion: reduce) {
  .btn-grad::before,
  .btn-grad .arrow {
    transition: none;
  }
}

.btn-lg {
  min-height: 52px;
  padding: 0 26px;
  font-size: 16px;
}

/* ── Announcement + nav ─────────────────────────────────────────────────── */

.announce {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
}
.announce a {
  display: block;
  padding: 10px 16px;
}
.announce a:hover span {
  transform: translateX(3px);
}
.announce span {
  display: inline-block;
  transition: transform 0.2s var(--ease-out);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--canvas) 0%, transparent);
  border-bottom: 1px solid transparent;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.nav.scrolled {
  background: rgb(252 252 253 / 0.78);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--nav-h);
  border-inline-color: transparent;
}
.nav.scrolled .nav-inner {
  border-inline-color: transparent;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nav-links {
  display: none;
  gap: 4px;
  margin-inline-start: 8px;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  transition:
    color 0.18s,
    background 0.18s;
}
.nav-links a:hover {
  color: var(--ink);
  background: var(--canvas-2);
}
.nav-cta {
  display: none;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
}
.nav-burger {
  position: relative;
  margin-inline-start: auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
}
.nav-burger i {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease-out);
}
.nav-burger i:first-child {
  top: 18px;
}
.nav-burger i:last-child {
  top: 25px;
}
.nav-burger[aria-expanded='true'] i:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.nav-burger[aria-expanded='true'] i:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}
/* The language switch: always in the header, at every width. It takes the
   auto margin, so the buttons after it sit right beside it. */
.nav-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding-inline: 12px;
  margin-inline-start: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    color 0.18s,
    background 0.18s,
    border-color 0.18s;
}
.nav-lang:hover {
  color: var(--ink);
  background: var(--canvas-2);
  border-color: var(--line-strong);
}
.nav-lang:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.nav-lang ~ .nav-cta,
.nav-lang ~ .nav-burger {
  margin-inline-start: 0;
}
.mobile-menu {
  display: grid;
  gap: 4px;
  padding: 8px 16px 20px;
  background: rgb(252 252 253 / 0.96);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.mobile-menu[hidden] {
  display: none;
}
.mobile-menu a:not(.btn) {
  padding: 12px 8px;
  font-size: 17px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn {
  margin-top: 12px;
}

@media (min-width: 1024px) {
  .nav-links,
  .nav-cta {
    display: inline-flex;
  }
  .nav-burger,
  .mobile-menu {
    display: none;
  }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding-top: clamp(56px, 9vw, 112px);
  overflow: clip;
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-inline: 20px;
  border-inline-color: transparent;
}
.hero .display {
  max-width: 11ch;
}
.hero-sub {
  max-width: 34rem;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  text-wrap: pretty;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #d4d9e2 1px, transparent 1.3px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
  opacity: 0.8;
}
.blob-wrap {
  position: absolute;
  will-change: transform;
}
.blob {
  width: 46vw;
  max-width: 640px;
  min-width: 320px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.62;
}
.blob-a {
  background: #bcd0ff;
}
.blob-b {
  background: #e6dbff;
}
.blob-c {
  background: #ffd9c2;
}
.blob-wrap-a {
  top: -10%;
  left: 8%;
}
.blob-wrap-b {
  top: 10%;
  right: 4%;
}
.blob-wrap-c {
  top: 42%;
  left: 36%;
}

@media (prefers-reduced-motion: no-preference) {
  .blob-a {
    animation: drift 18s ease-in-out infinite alternate;
  }
  .blob-b {
    animation: drift 22s ease-in-out infinite alternate-reverse;
  }
  .blob-c {
    animation: drift 26s ease-in-out infinite alternate;
  }
}
@keyframes drift {
  from {
    transform: translate3d(-4%, -3%, 0) scale(1);
  }
  to {
    transform: translate3d(6%, 5%, 0) scale(1.12);
  }
}

/* ── Hero mockup (the app frame) ────────────────────────────────────────── */

.hero-mock {
  position: relative;
  width: 100%;
  max-width: 1040px;
  margin-top: clamp(48px, 7vw, 88px);
  margin-bottom: clamp(56px, 8vw, 104px);
  /* The compact layout is picked by a container query, not by JS, so the
     frame has its final height on first paint (no layout shift). */
  container: hero-mock / inline-size;
}
.scaler {
  --w: 1040;
  --h: 620;
  --s: 1;
  position: relative;
  width: 100%;
  aspect-ratio: var(--w) / var(--h);
  /* The unscaled 1040px frame would widen the document; layout containment
     turns that overflow into ink, so the shadow still paints and nothing scrolls. */
  contain: layout;
}
.scaler > .app {
  /* Out of flow, so the box above keeps its aspect ratio instead of growing to
     the unscaled frame's height. */
  position: absolute;
  top: 0;
  left: 0;
  width: calc(var(--w) * 1px);
  height: calc(var(--h) * 1px);
  transform: scale(var(--s));
  transform-origin: 0 0;
}
@container hero-mock (width < 720px) {
  .scaler {
    --w: 440;
    --h: 780;
  }
}

.app {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-float);
  overflow: hidden;
  text-align: start;
  font-size: 13px;
  line-height: 1.45;
}
.app-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}
.win-dots {
  display: inline-flex;
  gap: 6px;
}
.win-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}
.app-url {
  flex: 1;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pub-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 700;
  font-size: 12px;
}
.pub-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.app-body {
  display: grid;
  grid-template-columns: 350px 1fr;
  flex: 1;
  min-height: 0;
}
@container hero-mock (width < 720px) {
  .app-body {
    grid-template-columns: 1fr;
    grid-template-rows: 420px 1fr;
  }
}

.chat {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-inline-end: 1px solid var(--line);
}
@container hero-mock (width < 720px) {
  .chat {
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
  }
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.chat-head b {
  display: block;
  font-size: 13px;
}
.chat-head small {
  color: var(--muted);
  font-size: 11.5px;
}
/* Pixel's mark, as the app draws it: a slate→cobalt disc that wears two bar
   eyes in a chat header (bobbing, blinking, following the cursor) and a sparkle
   beside a message. Every measure is a fraction of --s, like the component. */
.pixel-disc {
  --s: 32px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--slate), var(--accent));
  color: #fff;
  box-shadow: 0 1px 2px rgb(11 18 32 / 0.12);
}
.pixel-disc.sm {
  --s: 24px;
}
.pixel-disc svg {
  width: 50%;
  height: 50%;
  fill: currentColor;
}
.pixel-disc.eyes {
  gap: calc(var(--s) * 0.16);
  padding-bottom: calc(var(--s) * 0.1);
}
.pixel-disc .eye {
  display: flex;
  transition: transform 75ms ease-out;
}
.pixel-disc .eye i {
  display: block;
  width: max(2px, calc(var(--s) * 0.08));
  height: max(5px, calc(var(--s) * 0.2));
  border-radius: 999px;
  background: currentColor;
}
@media (prefers-reduced-motion: no-preference) {
  .pixel-disc.eyes {
    animation: bob 2.8s ease-in-out infinite;
  }
  .pixel-disc .eye i {
    animation: blink 5.4s ease-in-out infinite;
  }
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}
@keyframes blink {
  0%,
  92%,
  100% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.12);
  }
}

.chat-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  overflow: hidden;
}
.bubble {
  max-width: 92%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
}
.bubble.me {
  align-self: flex-start;
  background: linear-gradient(145deg, #3b5fe6, #1e3fb3);
  color: #fff;
  border-end-start-radius: 4px;
}
.bubble.px {
  align-self: flex-end;
  background: var(--canvas-2);
  border-end-end-radius: 4px;
}
.caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-inline-start: 2px;
  vertical-align: -2px;
  background: currentColor;
  opacity: 0;
}
.typing .caret {
  opacity: 1;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret {
  50% {
    opacity: 0;
  }
}

.run-card {
  align-self: stretch;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.run-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.run-title {
  font-weight: 700;
  font-size: 12.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.run-state {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber);
}
.run-card.done .run-state {
  background: var(--green-soft);
  color: var(--green);
}
.run-steps {
  display: grid;
  gap: 6px;
}
.run-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12.5px;
}
.run-steps li.on {
  color: var(--ink);
}

.tick {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  position: relative;
  transition: all 0.3s var(--ease-out);
}
.on > .tick,
li.on .tick {
  border-color: var(--green);
  background: var(--green);
}
.on > .tick::after,
li.on .tick::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  -webkit-mask: var(--check) center / 62% no-repeat;
  mask: var(--check) center / 62% no-repeat;
}
/* The step after the last finished one is the one in flight. */
.run-steps li.on + li:not(.on) .tick {
  border-color: var(--accent);
  border-top-color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .run-steps li.on + li:not(.on) .tick {
    animation: spin 0.9s linear infinite;
  }
}
.run-card.done .run-steps li .tick {
  animation: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 12px 12px;
  padding-block: 9px;
  padding-inline: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-2);
  font-size: 13px;
}
.send {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  position: relative;
}
.send::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  -webkit-mask: var(--arrow-up) center / 58% no-repeat;
  mask: var(--arrow-up) center / 58% no-repeat;
}

.preview {
  padding: 26px;
  background:
    radial-gradient(circle, #dfe3ea 1px, transparent 1.2px) 0 0 / 18px 18px,
    var(--canvas-2);
  overflow: hidden;
}
.site {
  --sa: #2563eb;
  --sb: #e8efff;
  display: grid;
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  min-height: 100%;
}
.site i {
  display: block;
  border-radius: 6px;
  background: #e9ecf1;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.s-logo {
  width: 22px;
  height: 22px;
  border-radius: 50% !important;
  background: var(--sa) !important;
}
.s-links {
  display: flex;
  gap: 8px;
  margin-inline-start: 8px;
}
.s-links i {
  width: 34px;
  height: 7px;
}
.s-btn {
  margin-inline-start: auto;
  width: 54px;
  height: 20px;
  border-radius: 999px !important;
  background: var(--ink) !important;
}
.site-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
  align-items: center;
}
.s-copy {
  display: grid;
  gap: 8px;
}
.s-h1 {
  width: 92%;
  height: 16px;
  background: var(--ink) !important;
}
.s-h1.short {
  width: 60%;
}
.s-p {
  width: 88%;
  height: 7px;
  margin-top: 4px;
}
.s-p.short {
  width: 64%;
  margin-top: 0;
}
.s-cta {
  width: 78px;
  height: 22px;
  margin-top: 6px;
  border-radius: 999px !important;
  background: var(--sa) !important;
}
.s-img {
  aspect-ratio: 4 / 3;
  border-radius: 10px !important;
  background:
    linear-gradient(135deg, var(--sb), transparent 60%), linear-gradient(45deg, #f3d9c4, #e9ecf1) !important;
}
.site-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.site-cards i {
  height: 46px;
  background: var(--sb) !important;
}
.site-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.site-gallery i {
  aspect-ratio: 1;
}
.site-gallery i:nth-child(1) {
  background: linear-gradient(160deg, #f6e0cc, #e8c9ad) !important;
}
.site-gallery i:nth-child(2) {
  background: linear-gradient(160deg, #e9ecf1, #d7dce4) !important;
}
.site-gallery i:nth-child(3) {
  background: linear-gradient(160deg, #f1dcc9, #d8b89a) !important;
}
.site-gallery i:nth-child(4) {
  background: linear-gradient(160deg, var(--sb), #dfe6f7) !important;
}
.site-foot {
  height: 18px;
  background: var(--canvas-2) !important;
}

/* ── Staged elements inside mockups ─────────────────────────────────────
   JS raises `on` as a loop advances. Without motion everything stays visible. */

/* Revealed with a clip wipe instead of an opacity fade, so text is never
   half-transparent (a mid-fade frame fails contrast checks). The 24px
   outset keeps shadows unclipped once shown. */
html.motion [data-at] {
  clip-path: inset(-24px -24px calc(100% + 24px) -24px);
  transform: translateY(8px);
  transition:
    clip-path 0.5s var(--ease-out),
    transform 0.5s var(--ease-out);
}
html.motion [data-at].on {
  clip-path: inset(-24px);
  transform: none;
}

/* ── Pre-reveal hiding ──────────────────────────────────────────────────── */

html.js:not(.static) [data-hero]:not(.revealed),
html.js:not(.static) [data-reveal]:not(.revealed),
html.js:not(.static) [data-reveal-child]:not(.revealed) {
  opacity: 0;
}
html.js:not(.static) .display .w {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
  vertical-align: bottom;
}
.display .wi {
  display: inline-block;
}
/* hero words are split into clipped spans; keep the italic overhang inside the clip */
.display .wi > em.grad-text {
  margin-inline-end: 0;
}
.display .w:has(em.grad-text) {
  margin-inline-end: -0.14em;
}

/* ── Works-with strip ───────────────────────────────────────────────────── */

.works-frame {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.works-grid {
  display: none;
}
.works li,
.marquee span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.marquee {
  overflow: hidden;
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 44px;
  width: max-content;
  padding-right: 44px;
}
@media (prefers-reduced-motion: no-preference) {
  .marquee-track {
    animation: marquee 32s linear infinite;
  }
  .marquee:hover .marquee-track {
    animation-play-state: paused;
  }
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
@media (min-width: 1024px) {
  .marquee {
    display: none;
  }
  .works-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
  }
  .works-grid li {
    padding: 26px 8px;
    border-inline-end: 1px solid var(--line);
    transition: background 0.2s;
  }
  .works-grid li:last-child {
    border-inline-end: 0;
  }
  .works-grid li:hover {
    background: var(--canvas-2);
  }
}

/* Integration marks are the vendors' own: full-colour vectors for Google Ads,
   Search Console, Meta, WhatsApp and Instagram (Iconify "logos"), Hostinger's
   vector (Simple Icons), and Google's own product icons, as 192px PNGs, for
   Merchant Center and Business Profile, which have no published vector. */
.glyph {
  flex: none;
  display: block;
  width: 24px;
  height: 24px;
  color: var(--ink);
}
.glyph use {
  pointer-events: none;
}

/* ── Intro ──────────────────────────────────────────────────────────────── */

.intro .cell {
  border-bottom: 1px solid var(--line);
}

/* ── Tour ───────────────────────────────────────────────────────────────── */

.tour {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .tour {
    grid-template-columns: 240px 1fr;
  }
}

.rail {
  position: sticky;
  top: var(--nav-h);
  /* The chip row's min-content width would otherwise size the whole grid column. */
  min-width: 0;
  z-index: 10;
  background: rgb(252 252 253 / 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.rail-sticky {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.rail-sticky::-webkit-scrollbar {
  display: none;
}
.rail-label {
  display: none;
}
.rail-list {
  display: flex;
  gap: 6px;
}
.rail-list a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s;
}
.rail-list a[aria-current] {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--ink);
}
.rail-ind {
  display: none;
}

@media (min-width: 1024px) {
  .rail {
    position: static;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: 0;
    border-inline-end: 1px solid var(--line);
  }
  .rail-sticky {
    position: sticky;
    top: calc(var(--nav-h) + 72px);
    display: block;
    padding-block: 0;
    padding-inline: 32px 0;
    margin-top: 104px;
    overflow: visible;
  }
  .rail-label {
    display: block;
    margin-block: 0 14px;
    margin-inline: 16px 0;
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .rail-list {
    display: grid;
    gap: 2px;
  }
  .rail-list a {
    min-height: 0;
    padding: 8px 16px;
    border: 0;
    border-radius: 0;
    font-size: 15px;
  }
  .rail-list a[aria-current] {
    background: none;
  }
  .rail-list a:hover {
    color: var(--ink);
  }
  .rail-ind {
    display: block;
    position: absolute;
    inset-inline-start: 32px;
    top: 0;
    width: 2px;
    height: 36px;
    background: var(--coral);
    border-radius: 2px;
    transform: translateY(var(--y, 0px));
    transition: transform 0.4s var(--ease-out);
  }
}

.steps {
  min-width: 0;
}
.step {
  border-bottom: 1px solid var(--line);
}
.step:last-child {
  border-bottom: 0;
}
.step-head {
  padding: clamp(48px, 7vw, 96px) clamp(20px, 4vw, 56px) clamp(32px, 4vw, 48px);
}
.step-head .h2 {
  max-width: 30ch;
}
.stage {
  padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 56px) clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle, #dfe3ea 1px, transparent 1.2px) 0 0 / 20px 20px,
    var(--canvas-2);
  overflow: hidden;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}
.label {
  display: block;
  margin: 14px 0 6px;
  color: var(--muted-2);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.label:first-child {
  margin-top: 0;
}
.mock {
  font-size: 13.5px;
  line-height: 1.45;
}

/* 01 Describe */
.mock-describe {
  display: grid;
  gap: 18px;
  max-width: 640px;
  margin-inline: auto;
}
.profile {
  padding: 18px 20px;
}
.profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--coral-soft);
  color: var(--amber);
  font-weight: 700;
  font-size: 16px;
}
.profile-name b {
  display: block;
  font-size: 15px;
}
.profile-name small {
  color: var(--muted);
}
.meter {
  position: relative;
  margin-inline-start: auto;
  width: 48px;
  height: 48px;
}
.meter svg {
  transform: rotate(-90deg);
}
.meter circle {
  fill: none;
  stroke-width: 3.5;
}
.meter-bg {
  stroke: var(--line);
}
.meter-fg {
  stroke: var(--green);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 8;
}
html.motion .meter-fg {
  stroke-dashoffset: 100;
}
.meter-val {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 700;
}
.facts {
  display: grid;
  gap: 2px;
  padding-top: 8px;
}
.facts li {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.facts li:last-child {
  border-bottom: 0;
}
.fact-k {
  color: var(--muted);
  font-size: 12.5px;
}
.fact-v {
  font-weight: 500;
}
.src {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.src-g {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.src-s {
  background: var(--canvas-2);
  color: var(--ink-2);
}
.src-i {
  background: #fde8f1;
  color: #be185d;
}
.sources {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 6px;
  padding-inline: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: var(--shadow-card);
}
.source .glyph {
  width: 20px;
  height: 20px;
}

/* 02 Build */
.mock-build {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 820px;
  margin-inline: auto;
}
@media (min-width: 720px) {
  .mock-build {
    grid-template-columns: 170px 1fr;
    grid-template-rows: auto auto;
  }
  .build-controls {
    grid-column: 1 / -1;
  }
}
.tpl-list {
  display: grid;
  gap: 6px;
  align-content: start;
}
.tpl-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12.5px;
}
.tpl-list span {
  color: var(--muted);
}
.mini-page-wrap {
  padding: 14px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.mini-page {
  --a: #2563eb;
  --b: #e8efff;
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  transition:
    --a 0.5s,
    --b 0.5s;
}
.mini-page i {
  display: block;
  border-radius: 5px;
  background: #e9ecf1;
  transition: background 0.5s ease;
}
.mp-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mp-logo {
  width: 16px;
  height: 16px;
  border-radius: 50% !important;
  background: var(--a) !important;
}
.mp-links {
  display: flex;
  gap: 6px;
  margin-inline-start: auto;
}
.mp-links i {
  width: 24px;
  height: 5px;
}
.mp-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px 4px;
}
.mp-copy {
  display: grid;
  gap: 6px;
}
.mp-h1 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  transition: color 0.5s;
}
.mp-p {
  width: 90%;
  height: 5px;
}
.mp-p.short {
  width: 62%;
}
.mp-cta {
  width: 52px;
  height: 16px;
  margin-top: 4px;
  border-radius: 999px !important;
  background: var(--a) !important;
}
.mp-img {
  aspect-ratio: 4 / 3;
  border-radius: 8px !important;
  background: linear-gradient(135deg, var(--b), #f3d9c4) !important;
}
.mp-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mp-services i {
  height: 34px;
  background: var(--b) !important;
}
.mp-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.mp-gallery i {
  aspect-ratio: 1;
}
.mp-gallery i:nth-child(odd) {
  background: linear-gradient(160deg, #f6e0cc, #e8c9ad);
}
.mp-reviews {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mp-reviews i {
  height: 28px;
  border-inline-start: 3px solid var(--a);
  border-radius: 4px;
}
.mp-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mp-map {
  height: 40px;
  background:
    radial-gradient(circle at 60% 40%, var(--a) 3px, transparent 4px),
    repeating-linear-gradient(45deg, #eef1f5 0 6px, #e6eaf0 6px 12px) !important;
}
.mp-form {
  height: 40px;
  background: var(--b) !important;
}
.build-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.swatches {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.sw {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%);
  box-shadow: 0 0 0 2px transparent;
  transition:
    box-shadow 0.3s,
    transform 0.3s var(--ease-out);
}
.sw.on {
  box-shadow:
    0 0 0 2px var(--surface),
    0 0 0 4px var(--ink);
  transform: scale(1.08);
}
.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--canvas-2);
  border: 1px solid var(--line);
}
.seg-opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  transition:
    background 0.3s,
    color 0.3s,
    box-shadow 0.3s;
}
.seg-opt.on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgb(11 18 32 / 0.12);
}

/* 03 Launch */
.mock-launch {
  max-width: 820px;
  margin-inline: auto;
}
.campaign {
  position: relative;
  padding: 18px 20px 20px;
}
.camp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot.g {
  background: #4285f4;
}
.dot.m {
  background: #0866ff;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-block: 4px;
  padding-inline: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  transition:
    background 0.4s,
    color 0.4s;
}
.badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.badge em {
  font-style: normal;
}
.badge.paused {
  background: var(--amber-soft);
  color: var(--amber);
}
.badge.live {
  background: var(--green-soft);
  color: var(--green);
}
@media (prefers-reduced-motion: no-preference) {
  .badge.live i {
    animation: pulse-dot 1.6s ease-out infinite;
  }
}
@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgb(31 119 45 / 0.5);
  }
  100% {
    box-shadow: 0 0 0 8px rgb(31 119 45 / 0);
  }
}
.camp-body {
  display: grid;
  gap: 20px;
  padding-top: 16px;
}
@media (min-width: 720px) {
  .camp-body {
    grid-template-columns: 1fr 1fr;
  }
}
.kw {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.kw span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12.5px;
  font-weight: 500;
}
.ad-h {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.ad-d {
  color: var(--muted);
}
.ad-preview {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--canvas);
}
.ad-tag {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
}
.ad-preview b {
  display: block;
  color: #1a0dab;
  font-size: 14px;
  line-height: 1.3;
}
.ad-preview small {
  display: block;
  color: var(--green);
  font-size: 12px;
  margin: 2px 0 4px;
}
.ad-preview p {
  color: var(--muted);
  font-size: 12.5px;
}
.approve {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.approve-q {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.approve-q p {
  font-size: 13px;
}
.approve-btns {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}
.btn-mini {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 12.5px;
  font-weight: 700;
  transition:
    transform 0.15s,
    background 0.2s;
}
.btn-mini.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-mini.pressed {
  transform: scale(0.94);
  background: var(--accent);
  border-color: var(--accent);
}
.cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 14px;
  height: 18px;
  opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 18'%3E%3Cpath d='M1 1l12 7.5-5.2 1.2L10 16l-2.4 1-2.3-6.3L1 14z' fill='%230b1220' stroke='%23fff' stroke-width='1.2'/%3E%3C/svg%3E")
    no-repeat;
  transform: translate(var(--x, 0px), var(--y, 0px));
  transition:
    transform 0.9s var(--ease-out),
    opacity 0.3s;
  pointer-events: none;
  z-index: 2;
}
.cursor.show {
  opacity: 1;
}

/* 04 Leads */
.mock-leads {
  display: grid;
  gap: 20px;
  max-width: 760px;
  margin-inline: auto;
  align-items: center;
}
@media (min-width: 720px) {
  .mock-leads {
    grid-template-columns: 300px 1fr;
    gap: 36px;
  }
}
.phone {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  aspect-ratio: 300 / 540;
  border-radius: 34px;
  background: var(--ink);
  padding: 10px;
  box-shadow: var(--shadow-float);
}
.phone-site {
  position: absolute;
  inset: 10px;
  border-radius: 26px;
  background: #fff;
  overflow: hidden;
  padding: 18px 14px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.phone-site i,
.phone-site span {
  display: block;
  border-radius: 5px;
  background: #e9ecf1;
}
.ps-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}
.ps-nav i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--coral);
}
.ps-nav span {
  width: 60px;
  height: 7px;
}
.ps-hero i {
  height: 14px;
  background: var(--ink);
  margin-bottom: 6px;
  width: 85%;
}
.ps-hero i.short {
  width: 55%;
}
.ps-rows i {
  height: 50px;
  margin-bottom: 8px;
  background: var(--coral-soft);
}
.widget {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-float);
  font-size: 12.5px;
}
.w-head {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.w-head b {
  grid-column: 2;
  font-size: 12.5px;
  line-height: 1.2;
}
.w-head small {
  grid-column: 2;
  color: var(--muted);
  font-size: 10.5px;
}
.w-head .pixel-disc {
  grid-row: 1 / span 2;
}
.w-msg {
  max-width: 88%;
  padding: 7px 10px;
  border-radius: 12px;
  line-height: 1.4;
}
.w-msg.visitor {
  justify-self: start;
  background: var(--ink);
  color: #fff;
  border-end-start-radius: 4px;
}
.w-msg.bot {
  justify-self: end;
  background: var(--canvas-2);
  border-end-end-radius: 4px;
}
.saved {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding-block: 3px;
  padding-inline: 4px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 700;
  font-size: 11.5px;
}
.radar {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
}
.radar::before,
.radar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--green);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .radar::before {
    animation: radar 2s ease-out infinite;
  }
  .radar::after {
    animation: radar 2s ease-out 0.7s infinite;
  }
}
@keyframes radar {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}
.toasts {
  display: grid;
  gap: 12px;
  align-content: center;
}
.toast {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.toast b {
  display: block;
  font-size: 13.5px;
}
.toast small {
  color: var(--muted);
  font-size: 12.5px;
}
.t-ic {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  position: relative;
}
.t-ic.mail {
  background: var(--accent-soft);
}
.t-ic.mail::after {
  content: '';
  position: absolute;
  inset-inline-start: 9px;
  top: 12px;
  width: 18px;
  height: 12px;
  border: 1.8px solid var(--accent-ink);
  border-radius: 3px;
  background: linear-gradient(
      135deg,
      transparent 48%,
      var(--accent-ink) 49%,
      var(--accent-ink) 51%,
      transparent 52%
    )
    no-repeat center / 100% 50%;
}
.t-ic.wa {
  background: #e4f8ea;
}
.t-ic.wa::after {
  content: 'W';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #0f6e3b;
  font-weight: 700;
  font-style: normal;
  font-size: 14px;
}
.t-ic.tbl {
  background: var(--coral-soft);
}
.t-ic.tbl::after {
  content: '';
  position: absolute;
  inset-inline-start: 9px;
  top: 10px;
  width: 18px;
  height: 16px;
  border-radius: 3px;
  border: 1.8px solid var(--amber);
  background:
    linear-gradient(var(--amber), var(--amber)) no-repeat 0 5px / 100% 1.5px,
    linear-gradient(var(--amber), var(--amber)) no-repeat 0 10px / 100% 1.5px;
}

/* 05 Tune */
.mock-tune {
  display: grid;
  gap: 16px;
  max-width: 860px;
  margin-inline: auto;
}
.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.day {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 10px 4px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}
.day small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.day span {
  display: none;
  font-size: 11px;
  color: var(--muted);
}
.day.weekly {
  border-color: var(--coral);
  background: var(--coral-soft);
}
.day.weekly.on .tick {
  border-color: var(--coral);
  background: var(--coral);
}
@media (min-width: 720px) {
  .day span {
    display: block;
  }
}
.tune-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 720px) {
  .tune-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}
.report {
  padding: 16px 18px;
}
.report-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.thinking {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.thinking i {
  width: 46px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--line) 0 30%, var(--accent) 50%, var(--line) 70% 100%) 0
    0 / 300% 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .thinking i {
    animation: sweep 1.4s linear infinite;
  }
}
.thinking.done {
  color: var(--green);
}
.thinking.done i {
  background: var(--green);
  animation: none;
}
@keyframes sweep {
  to {
    background-position: -200% 0;
  }
}
.report-lines {
  display: grid;
  gap: 10px;
  padding-top: 12px;
}
.report-lines li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
}
.report-lines .tick {
  margin-top: 2px;
}
.chart {
  padding: 16px 18px 12px;
}
.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.line {
  width: 100%;
  height: auto;
}
.line .grid line {
  stroke: var(--line);
  stroke-dasharray: 3 4;
}
#chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
}
#chart-dot {
  fill: var(--accent);
  stroke: #fff;
  stroke-width: 2;
}
html.motion #chart-line {
  stroke-dashoffset: 100;
}
html.motion #chart-area,
html.motion #chart-dot {
  opacity: 0;
}
.chart-x {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 11px;
}

/* ── Pixel section ──────────────────────────────────────────────────────── */

.pixel {
  border-top: 1px solid var(--line);
}
.pixel .cell:first-child {
  padding-bottom: 24px;
}
.diagram-cell {
  padding-top: 24px;
  padding-bottom: 40px;
}
.diagram {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
}
.d-wires {
  display: none;
}
@media (min-width: 900px) {
  .diagram {
    grid-template-columns: 1fr 120px 1.1fr 120px 1fr;
    gap: 0;
  }
  .d-wires {
    display: block;
    height: 240px;
    width: 100%;
  }
}
.d-wires path {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.5;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
}
html.js:not(.static) .d-wires path:not(.drawn) {
  stroke-dashoffset: 100;
}
.d-col {
  display: grid;
  gap: 12px;
}
.d-node {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 4px;
}
.d-node small {
  color: var(--muted-2);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.d-node b {
  font-size: 16px;
}
.d-node > span:not(.pixel-disc) {
  color: var(--muted);
  font-size: 13.5px;
}
.d-node.core {
  justify-items: start;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #f6f8fc);
  border-color: #c9d6f5;
  box-shadow:
    0 0 0 6px var(--accent-soft),
    var(--shadow-card);
}
.d-node.core .pixel-disc {
  --s: 40px;
  margin-bottom: 6px;
}
.d-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.d-tags i {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--canvas-2);
  font-style: normal;
  font-size: 11.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--ink-2);
}
.d-node.sm {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}
.d-node.sm b {
  font-size: 14px;
}
.d-out {
  gap: 8px;
}
.props {
  display: grid;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
@media (min-width: 720px) {
  .props {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}
.prop h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.prop p {
  color: var(--muted);
  font-size: 16px;
}

/* ── Stack ──────────────────────────────────────────────────────────────── */

.stack {
  border-top: 1px solid var(--line);
}
.stack .cell {
  padding-bottom: 32px;
}
.tiles {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
@media (min-width: 640px) {
  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .tiles {
    grid-template-columns: repeat(4, 1fr);
  }
}
.tile {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 28px clamp(20px, 3vw, 32px) 32px;
  border-inline-end: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out),
    background 0.3s;
}
.tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  z-index: 1;
}
.tile .glyph {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 12px;
  margin-bottom: 8px;
  background: var(--canvas-2);
}
.tile b {
  font-size: 16px;
}
.tile span {
  color: var(--muted);
  font-size: 14.5px;
}
@media (min-width: 1024px) {
  .tile:nth-child(4n) {
    border-inline-end: 0;
  }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .tile:nth-child(2n) {
    border-inline-end: 0;
  }
}
@media (max-width: 639px) {
  .tile {
    border-inline-end: 0;
  }
}

/* ── Principles ─────────────────────────────────────────────────────────── */

.principles-grid {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .principles-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.principles-grid li {
  padding: 36px clamp(20px, 3vw, 32px);
  border-inline-end: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.principles-grid li:last-child {
  border-inline-end: 0;
}
@media (max-width: 1023px) {
  .principles-grid li:nth-child(2n) {
    border-inline-end: 0;
  }
}
@media (max-width: 719px) {
  .principles-grid li {
    border-inline-end: 0;
  }
}
.principles-grid b {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
  letter-spacing: -0.015em;
}
.principles-grid p {
  color: var(--muted);
  font-size: 15px;
}

/* ── FAQ ────────────────────────────────────────────────────────────────── */

.faq .cell {
  padding-bottom: 16px;
}
.faq-list {
  padding: 0 clamp(20px, 4vw, 56px) clamp(56px, 8vw, 96px);
  max-width: 820px;
}
.qa {
  border-bottom: 1px solid var(--line);
}
.qa h3 {
  margin: 0;
  font-size: inherit;
}
.q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 44px;
  padding: 20px 0;
  text-align: start;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  transition: color 0.2s;
}
.q:hover {
  color: var(--accent-ink);
}
.q i {
  flex: none;
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition:
    transform 0.35s var(--ease-out),
    background 0.2s;
}
.q i::before,
.q i::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.6px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.q i::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.35s var(--ease-out);
}
.q[aria-expanded='true'] i {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  transform: rotate(180deg);
}
.q[aria-expanded='true'] i::after {
  transform: translate(-50%, -50%) rotate(0deg);
}
.a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-out);
}
.a > div {
  min-height: 0;
  overflow: hidden;
}
.a p {
  max-width: 62ch;
  padding-block: 0 22px;
  padding-inline: 0 44px;
  color: var(--muted);
}
.a.open {
  grid-template-rows: 1fr;
}

/* ── Final CTA ──────────────────────────────────────────────────────────── */

.final {
  position: relative;
  overflow: clip;
  border-top: 1px solid var(--line);
}
.final-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.final-bg .blob {
  position: absolute;
}
.final-bg .blob-a {
  left: 10%;
  top: -30%;
}
.final-bg .blob-c {
  right: 8%;
  bottom: -40%;
}
.final-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(80px, 12vw, 160px) 20px;
}
.final .hero-sub {
  margin-top: 18px;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer-inner {
  display: grid;
  gap: 24px;
  padding: 40px clamp(20px, 4vw, 56px) 48px;
  border-inline-color: transparent;
}
@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .footer-copy {
    grid-column: 1 / -1;
  }
}
.footer-brand p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.footer-links a {
  padding: 8px 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}
.footer-links a:hover {
  color: var(--ink);
}
.footer-copy {
  color: var(--muted-2);
  font-size: 13px;
}

/* ── Below-the-fold rendering budget ───────────────────────────────────── */

.pixel,
.stack,
.principles,
.faq,
.final {
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

/* ── WhatsApp, on every page ─────────────────────────────────────────────── */

.wa-float {
  position: fixed;
  inset-block-end: calc(20px + env(safe-area-inset-bottom, 0px));
  inset-inline-end: 20px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  box-shadow:
    0 2px 6px rgb(11 18 32 / 0.18),
    0 10px 28px -10px rgb(11 18 32 / 0.45);
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}
.wa-float:hover {
  background: #1ebe5b;
  transform: translateY(-2px);
}
.wa-float svg {
  width: 30px;
  height: 30px;
}
@media print {
  .wa-float {
    display: none;
  }
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* The waiting list card: one form behind every "Get early access" button (a pop-up)
   and on /waitlist/ (inline, the page every profile links to). setupWaitlist(). */
.wl-dialog {
  width: min(480px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
}
.wl-dialog::backdrop {
  background: rgb(11 18 32 / 0.55);
}
.wl-card {
  position: relative;
  padding: clamp(20px, 4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-float);
  text-align: start;
}
.wl-card.is-inline {
  max-width: 560px;
  margin: 32px auto 0;
  box-shadow: var(--shadow-card);
}
.wl-card.is-inline .wl-x,
.wl-card.is-inline .wl-title {
  display: none;
}
.wl-x {
  position: absolute;
  inset-inline-end: 10px;
  top: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.wl-title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.wl-form,
.wl-row {
  display: grid;
  gap: 14px;
}
@media (min-width: 640px) {
  .wl-row {
    grid-template-columns: 1fr 1fr;
  }
}
.wl-field {
  display: grid;
  gap: 6px;
}
.wl-field span {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}
.wl-field input {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--canvas);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.wl-field input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
[dir='rtl'] .wl-field input[dir='ltr'] {
  text-align: right;
}
.wl-check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 15px;
  color: var(--muted);
  cursor: pointer;
}
.wl-check input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--accent);
}
.wl-go {
  width: 100%;
}
.wl-go:disabled {
  opacity: 0.6;
  cursor: progress;
}
.wl-error {
  margin: 0;
  font-size: 15px;
  color: #b42318;
}
/* Each part sets its own display, which would beat the hidden attribute. */
.wl-card [hidden] {
  display: none;
}
.wl-hp {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.wl-done {
  padding: 12px 0 4px;
  text-align: center;
}
.wl-tick {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
}
.wl-done-title {
  outline: none;
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.wl-done-text {
  margin: 6px 0 0;
  color: var(--muted);
}
    