/* ==========================================================================
   Space Control.io — landing site
   Design tokens and values transcribed from the Claude Design handoff
   ("Space Control Site.dc.html"). Desktop (>=1200px) is the authoritative
   layout; breakpoints below only reflow, they never change the type scale
   or spacing above 1200px.
   ========================================================================== */

:root {
  --ink: #222222;
  --pink: #FF1F5A;
  --pink-dark: #D6104A;
  --muted: #4A5361;
  --grey: #8A919C;
  --wash: #F5F5F7;
  --edge: #E4E6EA;
  --on-dark: #B8C0CC;

  --line: #22222414;
  --line-strong: #22222418;
  --line-input: #22222233;
  --line-dark: #ffffff1a;

  --shell: 1200px;
  --gutter: 32px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: Poppins, "Helvetica Neue", Arial, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--pink); }

input, select, textarea { font-family: inherit; }

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

img, svg { display: block; }

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

.wrap {
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pink-dark);
  margin-bottom: 16px;
}
.eyebrow--pink { color: var(--pink); }

.dot { color: var(--pink); }

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

.btn {
  display: inline-block;
  border-radius: 99px;
  font-weight: 600;
  text-align: center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--pink   { background: var(--pink); color: #fff; padding: 14px 26px; font-size: 15px; }
.btn--pink:hover { background: var(--pink-dark); color: #fff; }
.btn--outline { border: 1.5px solid var(--ink); padding: 13px 26px; font-size: 15px; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--dark   { background: var(--ink); color: #fff; padding: 10px 18px; font-weight: 600; }
.btn--dark:hover { background: var(--pink); color: #fff; }
.btn--white  { background: #fff; color: var(--ink); padding: 15px 26px; font-weight: 700; font-size: 15px; }
.btn--white:hover { background: var(--wash); color: var(--pink); }

/* ── Nav ─────────────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #FFFFFFee;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -1.2px;
  color: var(--pink);
  line-height: 1;
}
.logo:hover { color: var(--pink); }
/* The wordmark is wrapped so the flex gap above applies only between a future
   logo mark and the word, never between "SpaceCtrl" and its trailing dot. */
.logo__word { display: inline-block; }
.logo .logo__dot { color: var(--ink); }
.nav__links {
  display: flex;
  gap: 26px;
  font-size: 14px;
  font-weight: 500;
  margin-left: 16px;
}
.nav__links a[aria-current="page"] { color: var(--pink); }
.nav__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 500;
}
.nav__toggle { display: none; }
/* "Sign in" exists twice: in the actions row (desktop) and inside the
   collapsed menu (mobile). Exactly one is visible at any width. */
.nav__links .nav__signin { display: none; }

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

.hero {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px var(--gutter) 40px;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  max-width: var(--shell);
  margin: 0 auto;
}
.hero__title {
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -2px;
  font-weight: 700;
  text-wrap: balance;
}
.hero__aside { padding-top: 8px; max-width: 440px; justify-self: end; }
.hero__glyphs {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 34px;
  color: var(--ink);
}
.hero__kicker {
  font-size: 17px;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 26px;
}
.hero__arrow { margin-bottom: 26px; }
.hero__lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 30px;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 64px auto 0;
  max-width: var(--shell);
}
.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 60px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}
.hero__wedge {
  display: block;
  margin-bottom: -190px;
  margin-right: 60px;
  pointer-events: none;
  position: relative;
  z-index: 1;
}

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

.hero-media { padding-bottom: 96px; }
.hero-media__frame {
  position: relative;
  height: 560px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--wash);
}
.hero-media__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-media__play {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1.5px solid #2222222e;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Lifecycle ───────────────────────────────────────────────────────────── */

.lifecycle { padding-bottom: 96px; text-align: center; }
.lifecycle__eyebrow { font-size: 18px; color: var(--muted); margin-bottom: 18px; }
.lifecycle__title {
  font-size: 48px;
  line-height: 1.12;
  letter-spacing: -1.5px;
  font-weight: 700;
  margin: 0 auto 64px;
  max-width: 900px;
  text-wrap: balance;
}
.lifecycle__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px;
}
.lifecycle__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 22px;
}
.lifecycle__card {
  background: var(--wash);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.lifecycle__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--edge);
}
.lifecycle__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lifecycle__badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-size: 16px;
  line-height: 1;
  box-shadow: 0 8px 20px -8px #22222280;
}
.lifecycle__body { text-align: left; padding: 24px 24px 28px; }
.lifecycle__name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.4px;
  margin-bottom: 8px;
}
.lifecycle__desc { font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* ── Trust strip ─────────────────────────────────────────────────────────── */

.trust { padding-top: 32px; padding-bottom: 72px; }
.trust__label {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey);
  text-align: center;
  margin-bottom: 22px;
}
.trust__logos {
  display: flex;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.3px;
  color: #22222280;
}

/* ── Modules ─────────────────────────────────────────────────────────────── */

.modules { background: var(--ink); color: #fff; }
.modules .wrap { padding-top: 88px; padding-bottom: 88px; }
.modules__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
}
.modules__title {
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -1.4px;
  font-weight: 700;
}
.modules__lede { font-size: 16px; line-height: 1.6; color: var(--on-dark); }
.modules__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
.module-tile {
  background: var(--ink);
  padding: 26px 24px;
  display: block;
  color: #fff;
  transition: background-color .15s ease;
}
.module-tile:hover { background: #243040; color: #fff; }
.module-tile__icon { width: 40px; height: 40px; margin-bottom: 18px; }
.module-tile__name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -.3px;
}
.module-tile__desc { font-size: 13.5px; line-height: 1.5; color: var(--on-dark); }

/* ── Advantage ───────────────────────────────────────────────────────────── */

.advantage { background: var(--wash); }
.advantage .wrap { padding-top: 96px; padding-bottom: 96px; }
.advantage__title {
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -1.4px;
  font-weight: 700;
  margin-bottom: 20px;
  max-width: 720px;
}
.advantage__lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 56px;
  max-width: 640px;
}
.advantage__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.adv-card {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 32px 28px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 460px;
}
.adv-card--flush { padding-bottom: 32px; overflow: visible; }
.adv-card__head {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 10px;
}
.adv-card__num { font-size: 14px; font-weight: 700; color: var(--pink); }
.adv-card__title { font-size: 19px; font-weight: 700; letter-spacing: -.4px; }
.adv-card__desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 28px 34px;
}
.adv-card__stage { margin-top: auto; }

/* 01 — assistant */
.assistant { position: relative; padding: 0 6px 28px; }
.assistant__bubble {
  display: inline-block;
  background: var(--wash);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 12px;
  animation: scPop 7s ease-in-out infinite;
  animation-delay: -5s;
}
.assistant__panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  gap: 20px;
  align-items: center;
  box-shadow: 0 12px 30px -18px #22222240;
}
.assistant__legend {
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.assistant__legend div { display: flex; gap: 8px; align-items: center; }
.assistant__swatch { width: 8px; height: 8px; border-radius: 2px; }
.assistant__prompt {
  margin-top: 12px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 8px 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 8px 24px -16px #22222240;
}
.assistant__typing {
  display: flex;
  align-items: center;
  font-size: 14px;
  overflow: hidden;
  white-space: nowrap;
}
.assistant__typing > span:first-child {
  display: inline-block;
  overflow: hidden;
  animation: scType 7s steps(22) infinite;
}
.assistant__caret {
  display: inline-block;
  width: 1.5px;
  height: 16px;
  background: var(--ink);
  margin-left: 2px;
  animation: scCaret 1s step-end infinite;
}
.assistant__send {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

/* 02 — phone */
.phone-stage {
  margin-top: auto;
  position: relative;
  height: 300px;
  display: flex;
  justify-content: flex-start;
  padding-left: 14px;
}
.phone {
  width: 220px;
  height: 330px;
  background: var(--ink);
  border-radius: 36px 36px 0 0;
  padding: 10px 10px 0;
  box-shadow: 0 20px 50px -20px #22222266;
}
.phone__screen {
  background: var(--wash);
  border-radius: 28px 28px 0 0;
  height: 100%;
  padding: 14px 12px 0;
  position: relative;
  overflow: hidden;
}
.phone__toast {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: 0 8px 20px -10px #22222240;
  animation: scSlideIn 6s ease-in-out infinite;
  z-index: 2;
}
.phone__avatar {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.phone__toast-copy { font-size: 10.5px; line-height: 1.35; }
.phone__toast-copy b { font-weight: 700; }
.phone__toast-copy span { color: var(--muted); display: block; }
.phone__datebar {
  margin-top: 62px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
}
.phone__datebar > span:first-child { color: var(--pink); }
.phone__datebar > span:last-child { background: #fff; border-radius: 6px; padding: 4px 8px; }
.phone__rooms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.phone__thumb { height: 48px; border-radius: 8px; }
.phone__room-name { font-size: 10.5px; font-weight: 700; margin-top: 6px; }
.phone__room-meta { font-size: 9.5px; color: var(--muted); }
.phone__slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
  height: 80px;
}
.phone__event {
  background: var(--pink);
  border-radius: 8px;
  padding: 8px;
  color: #fff;
  font-size: 9.5px;
  line-height: 1.3;
  transform-origin: top;
  animation: scGrow 6s ease-out infinite;
}
.phone__event b { font-weight: 700; display: block; }
.phone__empty { border: 1px dashed var(--on-dark); border-radius: 8px; }
.phone__stores {
  position: absolute;
  right: 0;
  bottom: 24px;
  display: grid;
  gap: 8px;
  animation: scFloat 4s ease-in-out infinite;
}
.phone__store {
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 10px 24px -12px #22222280;
}
.phone__store span { font-size: 8px; font-weight: 500; opacity: .7; display: block; }

/* 03 — tool tiles */
.tools {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-left: 34px;
}
.tool {
  aspect-ratio: 1;
  border-radius: 14px;
  background: var(--wash);
  border: 1px solid #22222210;
  position: relative;
  overflow: hidden;
  animation: scFloat 4s ease-in-out infinite;
}
.tool img {
  position: absolute;
  inset: 22%;
  width: 56%;
  height: 56%;
  object-fit: contain;
}
.tool__name {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  padding: 6px;
}

/* ── Differentiators ─────────────────────────────────────────────────────── */

.diff .wrap { padding-top: 96px; padding-bottom: 96px; }
.diff__title {
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -1.4px;
  font-weight: 700;
  margin-bottom: 56px;
  max-width: 720px;
}
.diff__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
}
.diff__heading {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.8px;
  margin-bottom: 14px;
}
.diff__copy {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 20px;
}
.diff__list { display: grid; gap: 10px; font-size: 15px; }
.diff__list li { display: flex; gap: 10px; }
.diff__list li::before { content: "—"; color: var(--pink); font-weight: 700; }

.pipeline {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 16px 40px -20px #22222240;
}
.pipeline__head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--grey);
  margin-bottom: 14px;
}
.pipeline__head b { font-weight: 700; color: var(--ink); }
.pipeline__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.pipeline__stage {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--muted);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}
.pipeline__stage span { color: var(--grey); font-weight: 500; }
.pipeline__card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  margin-top: 8px;
  font-size: 12px;
}
.pipeline__card b { font-weight: 600; display: block; }
.pipeline__card span { color: var(--grey); margin-top: 3px; display: block; }

.portal {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px -20px #22222240;
}
.portal__bar {
  background: var(--ink);
  color: #fff;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.portal__bar b { font-weight: 700; letter-spacing: -.3px; }
.portal__tag { font-size: 11px; background: #ffffff26; padding: 4px 8px; border-radius: 4px; }
.portal__body {
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  font-size: 13px;
}
.portal__stat { border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.portal__stat-label { color: var(--grey); font-size: 11px; }
.portal__stat-value {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.5px;
  margin-top: 4px;
}
.portal__stat-note { color: var(--grey); margin-top: 2px; }
.portal__actions {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.portal__btn {
  background: var(--ink);
  color: #fff;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.diff__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature {
  background: var(--wash);
  border-radius: 4px;
  padding: 36px 32px;
}
.feature__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #FF1F5A1a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature__icon i { display: block; }
.feature__icon .sq { width: 14px; height: 14px; background: var(--pink); border-radius: 3px; }
.feature__icon .ring { width: 14px; height: 14px; border: 3px solid var(--pink); border-radius: 50%; }
.feature__icon .bars {
  width: 14px; height: 4px; background: var(--pink);
  box-shadow: 0 5px 0 var(--pink), 0 -5px 0 var(--pink);
}
.feature__title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.4px;
  margin-bottom: 8px;
}
.feature__desc { font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* ── Integrations band ───────────────────────────────────────────────────── */

.integrations {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.integrations .wrap {
  padding-top: 72px;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 56px;
  align-items: center;
}
.integrations__title {
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -1px;
  font-weight: 700;
  margin-bottom: 16px;
}
.integrations__lede { font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.integrations__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.integrations__chip {
  background: var(--wash);
  border-radius: 4px;
  padding: 16px 14px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.integrations__chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--ink);
  display: block;
  flex: none;
}

/* ── Stats ───────────────────────────────────────────────────────────────── */

.stats .wrap { padding-top: 64px; padding-bottom: 64px; }
.stats__band {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: linear-gradient(90deg, #FFFFFF 0%, #F5F5F7 50%, #FFFFFF 100%);
  padding: 36px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0 56px;
}
.stats__item { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.stats__value {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -1.8px;
  color: var(--pink);
  line-height: 1;
}
.stats__label {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.4;
  max-width: 170px;
}
.stats__rule { width: 1px; height: 44px; background: #22222230; }

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

.faq .wrap { padding-top: 32px; padding-bottom: 96px; }
.faq__title {
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -1.4px;
  font-weight: 700;
  margin-bottom: 56px;
  text-align: center;
}
.faq__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px 64px;
}
.faq__q {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.3px;
  margin-bottom: 8px;
}
.faq__a { font-size: 15px; line-height: 1.6; color: var(--muted); }

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

.cta .wrap { padding-bottom: 96px; }
.cta__box {
  background: var(--pink);
  color: #fff;
  border-radius: 16px;
  padding: 64px;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 40px;
  align-items: center;
}
.cta__title {
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: -1.4px;
  font-weight: 700;
  margin-bottom: 14px;
}
.cta__lede { font-size: 16.5px; line-height: 1.55; color: #FFFFFFd9; }
.cta__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  justify-self: end;
}
.cta__note { font-size: 13px; color: #FFFFFFb3; }

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

.footer { background: var(--ink); color: #fff; }
.footer .wrap {
  padding-top: 64px;
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -1.1px;
  color: var(--pink);
  line-height: 1;
}
.footer__logo .logo__dot { color: #fff; }
.footer__blurb {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--on-dark);
  max-width: 300px;
}
.footer__col { display: grid; gap: 10px; font-size: 14px; align-content: start; }
.footer__col a { color: #fff; }
.footer__col a:hover { color: var(--pink); }
.footer__head {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 4px;
}
.footer__bar { border-top: 1px solid var(--line-dark); }
.footer__bar .wrap {
  padding-top: 22px;
  padding-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--grey);
  grid-template-columns: none;
}
.footer__by { display: flex; align-items: center; gap: 8px; }
.footer__by i {
  width: 14px;
  height: 14px;
  border: 2px solid var(--grey);
  border-radius: 50%;
  display: block;
}
.footer__by b { color: #fff; font-weight: 700; }

/* ── Product page ────────────────────────────────────────────────────────── */

.page-head { padding-top: 80px; padding-bottom: 56px; }
.page-head__title {
  font-size: 52px;
  line-height: 1.04;
  letter-spacing: -1.4px;
  font-weight: 700;
  margin-bottom: 20px;
  max-width: 800px;
}
.page-head__lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 640px;
}
.product .wrap--split {
  padding-bottom: 96px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.product__toc {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
}
.product__toc a {
  padding: 8px 12px;
  border-left: 2px solid var(--line);
  color: var(--muted);
}
.product__toc a:hover { border-left-color: var(--pink); color: var(--ink); }
.product__list { display: flex; flex-direction: column; gap: 20px; }
.module-row {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 32px;
  scroll-margin-top: 90px;
}
.module-row__num {
  font-size: 11px;
  color: var(--pink);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.module-row__name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.7px;
  margin-bottom: 10px;
}
.module-row__copy {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 18px;
}
.module-row__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.module-row__tag {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 4px;
  background: var(--wash);
  border: 1px solid var(--line);
}
.module-row__shot {
  background: var(--wash);
  border: 1px dashed #22222233;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--grey);
  text-align: center;
  padding: 16px;
  min-height: 150px;
}

/* ── Blog page ───────────────────────────────────────────────────────────── */

.blog-head {
  padding-top: 80px;
  padding-bottom: 48px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  flex-wrap: wrap;
}
.blog-head__title {
  font-size: 52px;
  line-height: 1.04;
  letter-spacing: -1.4px;
  font-weight: 700;
}
.blog-head__filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
}
.chip { padding: 7px 14px; border-radius: 99px; border: 1px solid #22222222; }
.chip--on { background: var(--ink); color: #fff; border-color: var(--ink); }
.blog__body { padding-bottom: 96px; }
.post-featured {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 40px;
  transition: border-color .15s ease;
}
.post-featured:hover { border-color: var(--pink); color: inherit; }
.post-featured__art {
  background: var(--ink);
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  color: #fff;
}
.post-featured__flag {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--pink);
  font-weight: 700;
}
.post-featured__body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.post-featured__meta { font-size: 13px; color: var(--grey); margin-bottom: 14px; }
.post-featured__title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.9px;
  line-height: 1.15;
  margin-bottom: 14px;
  color: var(--ink);
}
.post-featured__excerpt { font-size: 15px; line-height: 1.6; color: var(--muted); }
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .15s ease;
}
.post-card:hover { border-color: var(--pink); color: inherit; }
.post-card__art { height: 170px; }
.post-card__body { padding: 22px 24px 26px; }
.post-card__cat {
  font-size: 12px;
  color: var(--pink-dark);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.post-card__title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.5px;
  line-height: 1.2;
  margin-bottom: 10px;
  color: var(--ink);
}
.post-card__meta { font-size: 13px; color: var(--grey); }

/* ── Demo page ───────────────────────────────────────────────────────────── */

.demo {
  padding-top: 80px;
  padding-bottom: 96px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 72px;
  align-items: start;
}
.demo__title {
  font-size: 48px;
  line-height: 1.04;
  letter-spacing: -1.6px;
  font-weight: 700;
  margin-bottom: 20px;
}
.demo__lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 36px;
}
.demo__steps { display: grid; gap: 22px; }
.demo__step { display: flex; gap: 16px; }
.demo__step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.demo__step b { font-weight: 700; display: block; margin-bottom: 3px; }
.demo__step p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.demo__panel {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 36px;
  box-shadow: 0 16px 40px -20px #22222240;
}
.demo__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
.field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.field--wide { grid-column: 1 / -1; }
.field input,
.field select {
  border: 1px solid var(--line-input);
  border-radius: 6px;
  padding: 11px 12px;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.field input::placeholder { color: var(--grey); }
.fieldset {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 0;
  padding: 0;
  margin: 0;
}
.fieldset legend { padding: 0; font-weight: 600; }
.fieldset__options { display: flex; flex-wrap: wrap; gap: 8px; }
.pillbox {
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 10px;
  border: 1px solid #22222222;
  border-radius: 99px;
  display: flex;
  gap: 6px;
  align-items: center;
  cursor: pointer;
  transition: border-color .15s ease;
}
.pillbox:hover { border-color: var(--pink); }
.pillbox input { margin: 0; accent-color: var(--pink); }
.demo__submit {
  grid-column: 1 / -1;
  background: var(--pink);
  color: #fff;
  text-align: center;
  padding: 15px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 15px;
  margin-top: 6px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: background-color .15s ease;
}
.demo__submit:hover { background: var(--pink-dark); }
.demo__fineprint {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--grey);
  line-height: 1.5;
}
.demo__done { text-align: center; padding: 40px 12px; }
.demo__done-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pink);
  margin: 0 auto 20px;
}
.demo__done-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.8px;
  margin-bottom: 10px;
}
.demo__done p { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* ── Animations ──────────────────────────────────────────────────────────── */

@keyframes scType   { 0%,10%{width:0} 55%,80%{width:100%} 100%{width:100%} }
@keyframes scCaret  { 0%,100%{opacity:1} 50%{opacity:0} }
@keyframes scRing   { 0%{stroke-dasharray:0 314} 60%,100%{stroke-dasharray:var(--len) 314} }
@keyframes scPop    { 0%,45%{opacity:0;transform:translateY(8px)} 60%,100%{opacity:1;transform:none} }
@keyframes scSlideIn{ 0%,15%{opacity:0;transform:translateY(-14px)} 30%,80%{opacity:1;transform:none} 95%,100%{opacity:0;transform:translateY(-14px)} }
@keyframes scGrow   { 0%,25%{transform:scaleY(0)} 55%,100%{transform:scaleY(1)} }
@keyframes scFloat  { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .assistant__bubble,
  .assistant__typing > span:first-child,
  .assistant__caret,
  .phone__toast,
  .phone__event,
  .phone__stores,
  .tool,
  .ring-seg {
    animation: none !important;
  }
  .assistant__typing > span:first-child { width: 100%; }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .hero { padding-top: 88px; }
  .hero__title { font-size: 52px; letter-spacing: -1.6px; }
  .lifecycle__title { font-size: 40px; letter-spacing: -1.2px; }
  .modules__title,
  .advantage__title,
  .diff__title,
  .faq__title { font-size: 34px; letter-spacing: -1.1px; }
  .page-head__title,
  .blog-head__title { font-size: 42px; }
  .demo__title { font-size: 38px; letter-spacing: -1.2px; }
  .cta__box { padding: 48px; }
  .cta__title { font-size: 32px; letter-spacing: -1.1px; }
  .product .wrap--split { grid-template-columns: 1fr; gap: 32px; }
  .product__toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .product__toc a {
    border-left: 0;
    border: 1px solid var(--line);
    border-radius: 99px;
    padding: 6px 12px;
    font-size: 13px;
  }
  .product__toc a:hover { border-color: var(--pink); }
  .demo { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 900px) {
  /* Row order under 900px: logo | (auto gap) | Request a demo | hamburger.
     "Sign in" moves into the collapsed menu so the row always fits. */
  .nav__inner { gap: 12px; }
  .nav__links { display: none; }
  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .nav.is-open .nav__links a { padding: 10px 0; font-size: 16px; }
  .nav__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line-input);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    padding: 0;
    flex: none;
    order: 3;
  }
  .nav__actions { gap: 12px; margin-left: auto; }
  .nav__actions .nav__signin { display: none; }
  .nav__links .nav__signin { display: block; }

  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__aside { justify-self: start; max-width: 560px; }
  .hero__foot { margin-top: 40px; }
  .hero__wedge { width: 160px; height: 180px; margin-bottom: -110px; margin-right: 0; }
  .hero-media__frame { height: 380px; }

  .modules__head { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .diff__row { grid-template-columns: 1fr; gap: 32px; margin-bottom: 64px; }
  .diff__row--flip > div:first-child { order: 2; }
  .integrations .wrap { grid-template-columns: 1fr; gap: 32px; }
  .cta__box { grid-template-columns: 1fr; gap: 28px; }
  .cta__actions { justify-self: start; }
  .stats__rule { display: none; }
  .stats__band { gap: 12px 40px; }
  .footer .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .module-row { grid-template-columns: 1fr; gap: 24px; }
  .post-featured { grid-template-columns: 1fr; }
  .post-featured__art { min-height: 200px; }
  .post-featured__body { padding: 28px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .logo { font-size: 22px; letter-spacing: -1px; }
  .nav__actions .btn--dark { padding: 9px 14px; font-size: 13px; }
  .hero { padding-top: 64px; padding-bottom: 24px; }
  .hero__title { font-size: 38px; letter-spacing: -1.2px; }
  .hero__scroll { display: none; }
  .hero__foot { justify-content: flex-end; }
  .hero-media__frame { height: 260px; }
  .lifecycle__title { font-size: 30px; letter-spacing: -.8px; margin-bottom: 40px; }
  .modules__title,
  .advantage__title,
  .diff__title,
  .faq__title,
  .cta__title { font-size: 27px; letter-spacing: -.8px; }
  .page-head__title,
  .blog-head__title,
  .demo__title { font-size: 32px; letter-spacing: -1px; }
  .lifecycle,
  .advantage .wrap,
  .diff .wrap,
  .faq .wrap,
  .cta .wrap,
  .modules .wrap { padding-top: 56px; padding-bottom: 56px; }
  .cta__box { padding: 32px 24px; }
  .demo__panel { padding: 24px; }
  .demo__form { grid-template-columns: 1fr; }
  .field { grid-column: 1 / -1; }
  .pipeline__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .portal__body { grid-template-columns: 1fr; }
  .portal__actions { flex-direction: column; align-items: flex-start; }
  .footer .wrap { grid-template-columns: 1fr; }
  .post-featured__body { padding: 24px; }
  .post-featured__title { font-size: 22px; letter-spacing: -.6px; }
  .stats__value { font-size: 34px; letter-spacing: -1.2px; }
}
