/* MJourney Labs website. Light theme, soft blue accents. */

@font-face {
  font-family: "Space Grotesk";
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-500.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-700.woff2") format("woff2");
}

:root {
  color-scheme: light;

  --bg: #ffffff;
  --surface: #f6f9ff;
  --surface-2: #eef4ff;
  --line: #e2e9f5;
  --line-strong: #cfdbef;
  --text: #0e1a2e;
  --text-2: #3d4b63;
  --muted: #5f6f88;

  --blue: #2f6bff;
  --blue-600: #1d55e6;
  --blue-700: #1843b8;
  --blue-50: #f0f5ff;
  --blue-100: #e1ebff;
  --blue-200: #c6d8ff;
  --sky: #69b7ff;
  --violet: #7d7cff;
  --amber: #ffb547;

  --navy: #0d1c3a;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(16, 36, 80, 0.06), 0 1px 1px rgba(16, 36, 80, 0.04);
  --shadow: 0 10px 30px -12px rgba(22, 52, 120, 0.18), 0 2px 6px rgba(22, 52, 120, 0.05);
  --shadow-lg: 0 30px 60px -24px rgba(22, 52, 120, 0.3), 0 8px 20px -8px rgba(22, 52, 120, 0.12);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1160px;
  --gutter: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--text);
}

h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--blue-600);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue-700);
}

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

::selection {
  background: var(--blue-100);
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container.narrow {
  max-width: 820px;
}

.center {
  text-align: center;
}

/* ---------- Buttons and small pieces ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-600) 100%);
  color: #fff;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(47, 107, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.button:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(47, 107, 255, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.button:active {
  transform: translateY(0);
}

.button svg {
  transition: transform 0.25s var(--ease);
}

.button:hover svg {
  transform: translateX(3px);
}

.button-small {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.94rem;
}

.button-ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.button-ghost:hover {
  color: var(--blue-700);
  border-color: var(--blue-200);
  box-shadow: var(--shadow);
}

.button-light {
  background: #fff;
  color: var(--blue-700);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.4);
}

.button-light:hover {
  color: var(--blue-700);
}

.button-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

.button-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.center .actions {
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--blue-600);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  color: var(--text-2);
  line-height: 1.6;
}

.soft {
  color: var(--muted);
}

.gradient-text {
  background: linear-gradient(100deg, var(--blue) 10%, var(--violet) 55%, var(--sky) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-100);
  flex: none;
}

.tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-copy .status-pill {
  margin-top: 18px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
}

.text-link span {
  transition: transform 0.25s var(--ease);
}

.text-link:hover span {
  transform: translateX(4px);
}

.fine-print {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px -16px rgba(22, 52, 120, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--container);
  min-height: 70px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu a:not(.button) {
  position: relative;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.97rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.nav-menu a:not(.button):hover,
.nav-menu a[aria-current="page"] {
  color: var(--blue-700);
  background: var(--blue-50);
}

.nav-menu .button {
  margin-left: 10px;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.menu-bar,
.menu-bar::before,
.menu-bar::after {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  margin-left: -9px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.menu-bar {
  top: 50%;
  margin-top: -1px;
}

.menu-bar::before,
.menu-bar::after {
  content: "";
  left: 0;
  margin-left: 0;
}

.menu-bar::before {
  transform: translateY(-6px);
}

.menu-bar::after {
  transform: translateY(6px);
}

.nav.is-open .menu-bar {
  background: transparent;
}

.nav.is-open .menu-bar::before {
  transform: rotate(45deg);
}

.nav.is-open .menu-bar::after {
  transform: rotate(-45deg);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(22, 52, 120, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }

  .nav.is-open .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-menu a:not(.button) {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 1.05rem;
  }

  .nav-menu .button {
    margin: 10px 0 0;
  }

  /* Without JavaScript the menu stays visible as a simple list. */
  html:not(.js) .nav {
    flex-wrap: wrap;
  }

  html:not(.js) .menu-toggle {
    display: none;
  }

  html:not(.js) .nav-menu {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 12px;
  }
}

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

.section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.section-tinted {
  background: linear-gradient(180deg, var(--surface) 0%, #fafcff 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 52px);
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head p:not(.eyebrow) {
  color: var(--text-2);
  font-size: 1.1rem;
}

.section-link {
  margin: 32px 0 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.split .section-head {
  margin-bottom: 0;
}

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

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

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(640px 420px at 82% 18%, rgba(105, 183, 255, 0.28), transparent 70%),
    radial-gradient(560px 380px at 62% 78%, rgba(125, 124, 255, 0.16), transparent 70%),
    radial-gradient(520px 320px at 8% 8%, rgba(47, 107, 255, 0.1), transparent 70%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 85%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(47, 107, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 107, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-copy .lead {
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-copy h1 {
  max-width: 640px;
}

.hero-product h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
}

.hero-visual {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1200px;
}

.hero-visual figcaption {
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.hero-visual figcaption .tag {
  margin: 0 6px 0 0;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--blue-600);
}

.product-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.product-title img {
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.product-title strong,
.product-title h2,
.product-title h3 {
  display: block;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.2;
}

.product-title span,
.product-title p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    margin-top: 12px;
  }
}

/* Entrance animation */
.hero-in {
  animation: rise 0.9s var(--ease) both;
}

.hero-in-2 {
  animation-delay: 0.08s;
}

.hero-in-3 {
  animation-delay: 0.16s;
}

.hero-in-4 {
  animation-delay: 0.24s;
}

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

/* ---------- Phone mockup ---------- */

.phone {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 300 / 610;
  padding: 12px;
  border-radius: 46px;
  background: linear-gradient(160deg, #1b2a4a 0%, #0d1830 100%);
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  transition: transform 0.6s var(--ease);
}

.phone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 2;
  width: 86px;
  height: 22px;
  margin-left: -43px;
  border-radius: 999px;
  background: #0b1428;
}

.phone-screen {
  height: 100%;
  overflow: hidden;
  padding: 50px 16px 18px;
  border-radius: 36px;
  background: linear-gradient(180deg, #f5f8ff 0%, #ffffff 40%);
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.4;
}

.screen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.screen-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
}

.screen-hero {
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(47, 107, 255, 0.8);
}

.screen-hero small {
  display: block;
  opacity: 0.8;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.screen-hero strong {
  display: block;
  margin: 2px 0 10px;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.screen-sub {
  font-size: 0.78rem;
  opacity: 0.85;
}

.week-dots {
  display: flex;
  gap: 6px;
}

.week-dots i {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
}

.week-dots i.on {
  background: #fff;
}

.week-dots i.today {
  background: var(--amber);
}

.screen-list,
.screen-cards,
.screen-path {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.screen-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-weight: 600;
}

.screen-list em {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 500;
}

.tick {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
}

.done .tick {
  border-color: var(--blue);
  background: var(--blue);
}

.done .tick::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.screen-ring {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--blue-50);
}

.screen-ring svg {
  width: 44px;
  height: 44px;
  transform: rotate(-90deg);
}

.screen-ring strong,
.screen-ring span {
  display: block;
}

.screen-ring span {
  color: var(--muted);
  font-size: 0.74rem;
}

.ring-track,
.ring-fill {
  fill: none;
  stroke-width: 5;
}

.ring-track {
  stroke: var(--blue-100);
}

.ring-fill {
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-dasharray: 67 100;
  animation: ring 1.6s 0.4s var(--ease) both;
}

.ring-fill-lg {
  stroke-width: 7;
  stroke-dasharray: 75 100;
}

@keyframes ring {
  from {
    stroke-dasharray: 0 100;
  }
}

.screen-path li {
  position: relative;
  margin: 0;
  padding: 0 0 14px 26px;
  color: var(--muted);
  font-weight: 600;
}

.screen-path li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 4px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
}

.screen-path li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 19px;
  bottom: 2px;
  width: 2px;
  background: var(--line);
}

.screen-path li.done {
  color: var(--text);
}

.screen-path li.done::before {
  border-color: var(--blue);
  background: var(--blue);
}

.screen-path li.done::after {
  background: var(--blue-200);
}

.screen-path li.current {
  color: var(--blue-700);
}

.screen-path li.current::before {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-100);
}

.screen-goal {
  padding: 12px;
  border-radius: 14px;
  background: var(--blue-50);
  font-weight: 600;
}

.screen-goal small {
  color: var(--muted);
}

.bar {
  height: 8px;
  margin: 8px 0 6px;
  border-radius: 99px;
  background: var(--blue-100);
  overflow: hidden;
}

.bar i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--violet));
}

.screen-timer {
  position: relative;
  width: 190px;
  margin: 18px auto 18px;
}

.screen-timer svg {
  width: 100%;
  height: auto;
  transform: rotate(-90deg);
}

.screen-timer div {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.screen-timer strong {
  font-family: var(--font-display);
  font-size: 2rem;
}

.screen-timer span,
.screen-note {
  color: var(--muted);
  font-size: 0.8rem;
}

.screen-note {
  text-align: center;
}

.screen-cards li {
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.screen-cards li:first-child {
  border-color: var(--blue-200);
  background: var(--blue-50);
}

.screen-cards strong,
.screen-cards span {
  display: block;
}

.screen-cards span {
  color: var(--muted);
  font-size: 0.76rem;
}

/* Floating cards around the hero phone */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(226, 233, 245, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  line-height: 1.25;
  animation: float 7s ease-in-out infinite;
}

.float-card strong,
.float-card small {
  display: block;
}

.float-card small {
  color: var(--muted);
}

.float-icon {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.float-icon-soft {
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 1rem;
}

.float-a {
  top: 3%;
  left: max(-8px, calc(50% - 300px));
}

.float-b {
  top: 63%;
  right: max(-8px, calc(50% - 305px));
  animation-delay: -2.5s;
}

.float-c {
  bottom: 22%;
  left: max(-8px, calc(50% - 290px));
  animation-delay: -4.5s;
}

@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 520px) {
  .float-card {
    font-size: 0.78rem;
  }

  .float-a {
    top: -14px;
  }

  .float-c {
    display: none;
  }
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

.card > :last-child {
  margin-bottom: 0;
}

.card p {
  color: var(--text-2);
}

.card h2 {
  font-size: 1.35rem;
}

.card-large h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.6rem);
}

.spotlight {
  overflow: hidden;
}

.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, -40%), rgba(47, 107, 255, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.spotlight > * {
  position: relative;
  z-index: 1;
}

.spotlight:hover {
  transform: translateY(-4px);
  border-color: var(--blue-200);
  box-shadow: var(--shadow);
}

.spotlight:hover::before {
  opacity: 1;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
  border: 1px solid var(--blue-100);
  transition: transform 0.35s var(--ease);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--blue-600);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spotlight:hover .card-icon {
  transform: scale(1.06) rotate(-3deg);
}

.card-quote {
  padding: 36px;
  background: linear-gradient(160deg, #fff 0%, var(--surface) 100%);
}

.card-quote h3 {
  color: var(--blue-700);
}

.card-quote p:not(.eyebrow) {
  font-size: 1.12rem;
  line-height: 1.6;
}

.ticks {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 30px;
  color: var(--text-2);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-100);
}

.ticks li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  width: 5px;
  height: 9px;
  border: solid var(--blue-600);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

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

/* ---------- Product feature ---------- */

.product-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow);
}

.product-feature-copy > p {
  color: var(--text-2);
}

.product-feature-visual {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(300px 200px at 80% 10%, rgba(105, 183, 255, 0.3), transparent 70%),
    radial-gradient(300px 200px at 10% 90%, rgba(125, 124, 255, 0.2), transparent 70%),
    var(--surface-2);
}

.product-feature-phone {
  display: flex;
  justify-content: center;
}

.product-feature-phone .phone {
  width: min(270px, 70vw);
}

.mini-cards {
  display: grid;
  gap: 14px;
}

.mini-card {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.mini-card:nth-child(2) {
  margin-left: 28px;
}

.product-feature:hover .mini-card {
  box-shadow: var(--shadow);
}

.product-feature:hover .mini-card:nth-child(1) {
  transform: translateX(-4px);
}

.product-feature:hover .mini-card:nth-child(2) {
  transform: translateX(4px);
}

.mini-card small {
  color: var(--muted);
  font-size: 0.8rem;
}

.mini-card p {
  margin: 4px 0;
  font-style: italic;
  color: var(--text-2);
}

.mini-label {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-700);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-path {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 8px;
}

.mini-path i {
  flex: 1;
  height: 4px;
  background: var(--blue);
  position: relative;
}

.mini-path i::after {
  content: "";
  position: absolute;
  right: -6px;
  top: -5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid #fff;
}

.mini-path i.now::after {
  box-shadow: 0 0 0 4px var(--blue-100);
}

.mini-path i.next {
  background: var(--blue-100);
}

.mini-path i.next::after {
  background: var(--blue-100);
}

.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 56px;
  margin-bottom: 8px;
}

.mini-bars i {
  flex: 1;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--sky), var(--blue));
}

.mini-bars .h4 { height: 40%; }
.mini-bars .h5 { height: 50%; }
.mini-bars .h6 { height: 60%; }
.mini-bars .h7 { height: 70%; }
.mini-bars .h8 { height: 80%; }
.mini-bars .h9 { height: 92%; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 26px;
}

.facts div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.facts dd {
  margin: 2px 0 0;
  font-weight: 600;
}

@media (max-width: 900px) {
  .product-feature {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .facts {
    grid-template-columns: 1fr;
  }

  .mini-card:nth-child(2) {
    margin-left: 0;
  }
}

/* ---------- Tech list ---------- */

.tech-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.tech-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s;
}

.tech-list li:last-child {
  border-bottom: 0;
}

.tech-list li:hover {
  background: var(--blue-50);
}

.tech-list span {
  color: var(--muted);
  text-align: right;
}

@media (max-width: 560px) {
  .tech-list li {
    flex-direction: column;
    gap: 2px;
  }

  .tech-list span {
    text-align: left;
  }
}

/* ---------- Steps ---------- */

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

.steps-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.step p {
  margin: 0;
  color: var(--text-2);
}

.step-number {
  display: inline-block;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

@media (max-width: 760px) {
  .steps,
  .steps-4 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Showcase tabs ---------- */

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.tabs {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.tabs button {
  display: block;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease), background 0.25s;
}

.tabs button strong,
.tabs button span {
  display: block;
}

.tabs button strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.tabs button span {
  color: var(--muted);
  font-size: 0.95rem;
}

.tabs button:hover {
  border-color: var(--blue-200);
  transform: translateX(4px);
}

.tabs button[aria-selected="true"] {
  border-color: var(--blue);
  background: var(--blue-50);
  box-shadow: inset 4px 0 0 var(--blue), var(--shadow-sm);
}

.showcase-visual {
  display: flex;
  justify-content: center;
}

.showcase-visual .phone-screen {
  animation: screen-in 0.45s var(--ease);
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

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

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(32px, 5vw, 56px);
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(500px 300px at 90% 0%, rgba(105, 183, 255, 0.5), transparent 70%),
    radial-gradient(400px 260px at 0% 100%, rgba(125, 124, 255, 0.45), transparent 70%),
    linear-gradient(135deg, var(--blue-600) 0%, var(--blue-700) 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.cta-band h2 {
  color: #fff;
  max-width: 620px;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  max-width: 560px;
}

.cta-band .eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

.cta-band a:not(.button) {
  color: #fff;
}

.cta-band .actions {
  flex: none;
}

@media (max-width: 860px) {
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px);
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(105, 183, 255, 0.22), transparent 70%),
    radial-gradient(500px 260px at 0% 0%, rgba(47, 107, 255, 0.08), transparent 70%),
    linear-gradient(180deg, #f7faff 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.4rem);
}

.page-hero .lead {
  margin-bottom: 0;
}

.page-hero .actions {
  margin-top: 28px;
}

.updated {
  margin: 0;
  color: var(--muted);
}

/* ---------- Prose (legal pages and long text) ---------- */

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

.prose h2 {
  margin-top: 1.8em;
  font-size: clamp(1.35rem, 2.4vw, 1.6rem);
}

.prose h3 {
  margin-top: 1.4em;
}

.prose > :first-child {
  margin-top: 0;
}

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

.prose li {
  margin-bottom: 0.5em;
}

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

.prose table {
  width: 100%;
  margin: 1em 0 1.6em;
  border-collapse: collapse;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--surface);
  color: var(--text);
}

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

.faq details {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.faq details[open] {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  position: relative;
  padding: 18px 52px 18px 22px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border: solid var(--blue-600);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}

.faq-body {
  padding: 0 22px 18px;
  color: var(--text-2);
}

.faq-body p {
  margin: 0;
}

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

.price-card {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, #fff 0%, var(--blue-50) 100%);
  box-shadow: var(--shadow);
}

.price {
  margin: 0 0 24px;
  color: var(--muted);
}

.price strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 3rem;
}

/* ---------- Forms ---------- */

.signup-card {
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(105, 183, 255, 0.22), transparent 70%),
    #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.signup-card > p:not(.eyebrow) {
  color: var(--text-2);
}

.signup-form,
.signup-email {
  max-width: 520px;
  margin: 24px auto 0;
  text-align: left;
}

.signup-email {
  text-align: center;
}

.signup-form > label:first-child {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.signup-row {
  display: flex;
  gap: 10px;
}

.signup-row input {
  flex: 1;
  min-width: 0;
}

input[type="email"],
input[type="text"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

textarea {
  resize: vertical;
  min-height: 140px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-100);
}

.consent {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--blue);
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.form-status {
  min-height: 1.4em;
  margin: 12px 0 0;
  font-weight: 600;
}

.form-status.is-error {
  color: #c62f3b;
}

.form-status.is-success {
  color: var(--blue-700);
}

@media (max-width: 520px) {
  .signup-row {
    flex-direction: column;
  }
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: start;
}

.contact-form {
  padding: clamp(24px, 4vw, 36px);
}

.field {
  margin-bottom: 16px;
}

html:not(.js) .contact-form button {
  display: none;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.contact-cards {
  display: grid;
  gap: 16px;
}

.contact-cards .card {
  padding: 22px 24px;
}

.contact-cards h2 {
  font-size: 1.1rem;
}

.contact-cards p {
  margin-bottom: 0.5em;
}

address {
  font-style: normal;
  color: var(--text-2);
}

.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  margin-bottom: 6px;
}

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

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

.site-footer {
  margin-top: 40px;
  padding: 64px 0 28px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-brand p {
  margin: 14px 0 0;
  color: var(--text-2);
}

.footer-brand .footer-note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-col h2 {
  margin-bottom: 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  padding: 4px 0;
  color: var(--text-2);
  font-size: 0.96rem;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--blue-600);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 860px) {
  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

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

/* ---------- Scroll reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Small screens ---------- */

@media (max-width: 520px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 1rem;
  }

  .card,
  .step {
    padding: 22px;
  }

  .actions .button {
    flex: 1 1 auto;
  }
}

/* ---------- 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;
  }

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

  .hero-in,
  .float-card,
  .ring-fill {
    animation: none !important;
  }
}
