/* AM One-Pager Layout & Components */

/* Layout */
.page {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============ HEADER ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 70;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 6, 10, 0.7);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-lockup img {
  height: 42px;
  width: auto;
  display: block;
}
.logo-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--fg-1);
  line-height: 1;
}
.logo-text b { font-weight: 800; }
.logo-text span { font-weight: 300; opacity: 0.85; }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a {
  color: var(--fg-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 180ms var(--ease-out);
}
.nav a:hover { color: var(--fg-1); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 120px 0 80px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(129,36,217,0.18), rgba(217,2,199,0.18));
  border: 1px solid rgba(129,36,217, 0.55);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 36px;
  box-shadow:
    0 0 0 1px rgba(129,36,217,0.15),
    0 0 28px rgba(129,36,217,0.45),
    0 0 60px rgba(217,2,199,0.25);
  animation: hero-eyebrow-glow 3.2s ease-in-out infinite;
}
@keyframes hero-eyebrow-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(129,36,217,0.15),
      0 0 24px rgba(129,36,217,0.4),
      0 0 56px rgba(217,2,199,0.22);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(217,2,199,0.25),
      0 0 36px rgba(129,36,217,0.65),
      0 0 80px rgba(217,2,199,0.4);
  }
}
.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand-magenta);
  box-shadow: 0 0 14px var(--brand-magenta), 0 0 28px var(--brand-magenta);
  animation: hero-dot-pulse 1.8s ease-in-out infinite;
}
@keyframes hero-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.7; transform: scale(1.25); }
}
.hero h1 {
  font-family: var(--font-headline);
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--fg-1);
  margin: 0 auto 28px;
  max-width: 1080px;
  text-wrap: balance;
}
.hero h1 .tag {
  display: block;
  font-size: clamp(13px, 1vw, 14px);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 18px;
}
.hero h1 .grad,
.section h2 .grad,
.grad {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}
.hero-sub {
  max-width: 720px;
  margin: 0 auto 40px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-2);
  text-wrap: pretty;
}
.hero-cta-row {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--fg-1);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background 180ms var(--ease-out), border-color 180ms var(--ease-out);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.2);
}
.btn-cta-lg {
  padding: 14px 26px;
  font-size: 15px;
  border-radius: 999px;
}

/* Hero product mock */
.hero-product {
  margin: 70px auto 0;
  max-width: 1100px;
  position: relative;
}
.hero-product-frame {
  border-radius: 22px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.05) inset,
    0 50px 100px -30px rgba(129,36,217,0.4),
    0 30px 60px -20px rgba(0,0,0,0.8);
  overflow: hidden;
}
.hero-product-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(60% 50% at 50% 100%, rgba(217,2,199,0.25), transparent 70%);
  filter: blur(40px);
  z-index: -1;
}

/* Marquee */
.marquee {
  margin-top: 60px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(11, 12, 19, 0.5);
  overflow: hidden;
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  gap: 48px;
  animation: scroll 40s linear infinite;
  width: max-content;
}
@keyframes scroll {
  to { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-2);
  white-space: nowrap;
}
.marquee-item .obj-strike {
  color: var(--accent-red);
  text-decoration: line-through;
  font-weight: 500;
}
.marquee-item .obj-author {
  color: var(--fg-3);
  font-size: 12px;
}
.marquee-item .pipe {
  color: var(--fg-4);
}

/* ============ SECTION GENERIC ============ */
.section {
  padding: 100px 0;
  position: relative;
}
.section-header {
  max-width: 880px;
  margin: 0 auto 60px;
  text-align: center;
}
.section-header.left {
  text-align: left;
  margin: 0 0 60px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding: 5px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  margin-bottom: 18px;
}
.section h2,
.contact h2 {
  font-family: var(--font-headline);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--fg-1);
  margin: 0 0 20px;
  text-wrap: balance;
}
.solution-card h3,
.fwalk-item h3,
.why-card h3,
.pain-card h3 {
  font-family: var(--font-headline);
  letter-spacing: -0.02em;
}
}
.section-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 720px;
  margin: 0 auto;
  text-wrap: pretty;
}
.section-header.left .section-sub { margin: 0; }

/* ============ PAIN CAROUSEL ============ */
.pain-carousel {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(129,36,217,0.10) 0%, transparent 70%),
    #07070A;
  padding: 56px 56px 56px 64px;
  isolation: isolate;
  box-shadow:
    0 0 0 1px rgba(129,36,217,0.10),
    0 0 60px rgba(129,36,217,0.18),
    0 0 120px rgba(217,2,199,0.10);
}
.pain-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.pain-glow--1 {
  width: 50%; aspect-ratio: 1;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(129,36,217,0.20) 0%, transparent 70%);
  animation: pain-pulseC 14s ease-in-out infinite;
}
.pain-glow--2 { display: none; }
.pain-glow--3 { display: none; }
@keyframes pain-pulseC {
  0%,100% { transform: translate(-50%,-50%) scale(1); opacity: 0.7; }
  50%     { transform: translate(-50%,-50%) scale(1.15); opacity: 1; }
}

.pain-stack {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  /* All quotes occupy the same grid cell, only the active one is visible */
  grid-template-areas: "quote";
  align-items: center;
  justify-items: center;
}
.pain-quote {
  grid-area: quote;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  text-align: left;
  opacity: 0;
  transform: translateX(70px) scale(0.96);
  transition:
    opacity 0.6s cubic-bezier(0.32, 0.72, 0.24, 1),
    transform 0.7s cubic-bezier(0.32, 0.72, 0.24, 1);
  pointer-events: none;
}
.pain-quote.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}
.pain-quote.is-leaving {
  opacity: 0;
  transform: translateX(-70px) scale(0.96);
}

.pain-icon {
  flex-shrink: 0;
  width: 44px;
  aspect-ratio: 84 / 60;
  margin-top: 6px;
  filter: drop-shadow(0 0 18px rgba(217,2,199,0.35));
}
.pain-icon svg { width: 100%; height: 100%; display: block; }

.pain-text {
  flex: 0 1 auto;
  max-width: 32ch;
  font-family: var(--font-headline);
  font-size: 32px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--fg-1);
  text-wrap: balance;
}
.pain-text b {
  font-weight: 700;
  font-style: italic;
  color: #fff;
  background: linear-gradient(135deg, rgba(129,36,217,0.55) 0%, rgba(217,2,199,0.55) 50%, rgba(217,2,199,0.55) 100%);
  padding: 0 0.18em;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.pain-dots {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.pain-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  transition: all 0.5s cubic-bezier(0.32, 0.72, 0.24, 1);
}
.pain-dot.is-active {
  width: 28px;
  border-radius: 999px;
  background: linear-gradient(0deg, #8124D9 0%, #D902C7 100%);
  box-shadow: 0 0 12px rgba(217,2,199,0.6);
}

/* ============ PAIN GRID (legacy) ============ */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.pain-card {
  padding: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 180ms var(--ease-out);
}
.pain-card:hover { border-color: var(--border-strong); }
.pain-card .num {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-4);
  letter-spacing: 0.1em;
}
.pain-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(239,68,68,0.12);
  color: var(--accent-red);
  margin-bottom: 18px;
}
.pain-card h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fg-1);
  margin: 0;
  text-wrap: pretty;
}

/* ============ SOLUTION / FEATURE CARDS (10) — wide, alternating image side ============ */
.fcards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fcard {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 36px;
  padding: 36px;
  align-items: stretch;
  transition: border-color 180ms var(--ease-out);
  position: relative;
  overflow: hidden;
}
.fcard:hover { border-color: var(--border-strong); }

/* Even cards: visual on the left */
.fcard--flip .fcard-text   { order: 2; }
.fcard--flip .fcard-visual { order: 1; }

.fcard-text {
  display: flex;
  flex-direction: column;
}

/* Number badge */
.fcard-num {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.fcard-num .bracket { color: var(--fg-4); }
.fcard-num .digit { color: var(--brand-magenta); font-weight: 600; }

/* Title */
.fcard h3 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--fg-1);
  margin: 0 0 16px;
  text-wrap: balance;
}

/* Body copy */
.fcard .copy {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
  text-wrap: pretty;
  flex: 1;
}
.fcard .copy code {
  font-family: var(--font-sans);
  font-style: normal;
  background: var(--violet-soft);
  color: var(--brand-violet-2);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: inherit;
}

/* Tags */
.fcard-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.fcard-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--fg-3);
}

/* Visual side — fixed landscape aspect on all breakpoints; iframe inside is
   scaled to fit (see .feature-visual-wrap). */
.fcard-visual {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-surface-2);
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  align-self: stretch;
}

/* Embedded HTML visual — loaded via iframe so its own styles/scripts stay
   isolated. Each visual is authored at a fixed landscape design size
   (640×480 in Solution.jsx) and scaled to fit the container via JS, so
   internal text and mock UIs keep their intended proportions on mobile. */
.feature-visual-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.feature-visual-frame {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  /* width/height/transform set inline by VisualSlot */
  border: 0;
  background: transparent;
  transform-origin: 50% 50%;
}

/* Placeholder slot — geometric, intentional, "to be filled" */
.solution-visual-slot {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 70% 30%, rgba(129,36,217,0.18), transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(217,2,199,0.12), transparent 55%),
    var(--bg-surface-2);
}
.slot-frame {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 28px;
}
.slot-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-4);
}
.slot-title {
  font-family: var(--font-headline);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.025em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.slot-sub {
  font-size: 13px;
  color: var(--fg-3);
  max-width: 32ch;
  margin-top: 4px;
}
.slot-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 1px;
  z-index: 1;
  opacity: 0.35;
}
.slot-grid span {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
}

/* MessagingMock visuals */
.visual-messaging {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}
.visual-messaging .vm-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.vm-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--brand-gradient);
  flex-shrink: 0;
}
.vm-name { font-size: 13px; color: var(--fg-1); font-weight: 600; }
.vm-role { font-size: 11px; color: var(--fg-3); margin-top: 2px; }
.vm-label {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 4px;
}
.vm-label--teal    { color: var(--accent-teal); }
.vm-label--magenta { color: var(--brand-magenta); }
.vm-block {
  font-size: 12px;
  color: var(--fg-2);
  line-height: 1.55;
  padding: 12px;
  background: var(--bg-input);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.vm-block--accent {
  color: var(--fg-1);
  background: rgba(129,36,217,0.08);
  border-color: rgba(129,36,217,0.25);
}

/* ============ FEATURE WALK (11 numbered) ============ */
.fwalk {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.fwalk-item {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding: 48px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.fwalk-item:nth-child(even) {
  grid-template-columns: 1.1fr 1fr;
}
.fwalk-item:nth-child(even) .fwalk-text { order: 2; }
.fwalk-item:nth-child(even) .fwalk-visual { order: 1; }
.fwalk-num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.fwalk-num .bracket { color: var(--fg-4); }
.fwalk-num .digit { color: var(--brand-magenta); font-weight: 600; }
.fwalk-item h3 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--fg-1);
  margin: 0 0 18px;
  text-wrap: balance;
}
.fwalk-item .copy {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
  text-wrap: pretty;
}
.fwalk-item .copy code {
  font-family: var(--font-sans);
  font-style: normal;
  background: var(--violet-soft);
  color: var(--brand-violet-2);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 14px;
}
.fwalk-tags {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}
.fwalk-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--fg-3);
}
.fwalk-visual {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  background: var(--bg-surface-2);
  position: relative;
}
.fwalk-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============ EXAMPLES MARQUEE ============ */
.examples-track-wrap {
  position: relative;
  overflow: hidden;
  margin: 0 -32px;
  padding: 0 32px;
}
.examples-track-wrap::before,
.examples-track-wrap::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.examples-track-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-page), transparent);
}
.examples-track-wrap::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-page), transparent);
}
.examples-track {
  display: flex;
  gap: 48px;
  animation: scroll 50s linear infinite;
  width: max-content;
}
.example-card {
  flex-shrink: 0;
  height: 380px;
  width: auto;
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
  display: flex;
}
.example-card img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
  /* Image bg is dark — `screen` lifts only the colourful pixels over the page bg,
     so the dark frame around each post fades into the section seamlessly. */
  mix-blend-mode: screen;
}

/* ============ WHY / REALITY GRID ============ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.why-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.why-card .visual {
  aspect-ratio: 16/10;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-surface-2);
  overflow: hidden;
}
.why-card .visual img { width: 100%; height: 100%; object-fit: cover; }
.why-card .eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-magenta);
}
.why-card h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fg-1);
  margin: 0;
  text-wrap: balance;
}

/* ============ STACK (5 layers) ============ */
.stack-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.stack-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-surface);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 240ms var(--ease-out), border-color 240ms var(--ease-out);
}
.stack-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}
.stack-card .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-4);
  letter-spacing: 0.1em;
}
.stack-card .glyph {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0 14px;
  position: relative;
}
.stack-card h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-1);
  margin: 0;
}

/* ============ TESTIMONIALS ============ */
.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.test-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.test-card .quote {
  font-size: 17px;
  line-height: 1.5;
  color: var(--fg-1);
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: pretty;
}
.test-card .author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.test-card .avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-surface-2);
  flex-shrink: 0;
}
.test-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.test-card .name {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-1);
  line-height: 1.3;
}
.test-card .role {
  font-size: 12px;
  color: var(--fg-3);
}

/* ============ PRICING ============ */
.pricing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 48px;
}
.pricing-toggle button {
  padding: 8px 18px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--fg-3);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 180ms var(--ease-out);
}
.pricing-toggle button.active {
  background: rgba(255,255,255,0.06);
  color: var(--fg-1);
}
.pricing-toggle .save {
  font-size: 11px;
  color: var(--brand-magenta);
  margin-left: 4px;
  font-weight: 600;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.pricing-grid--two {
  grid-template-columns: repeat(2, minmax(0, 480px));
  justify-content: center;
}
.price-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.price-card.featured {
  border-color: rgba(129,36,217,0.5);
  background:
    radial-gradient(80% 50% at 50% 0%, rgba(129,36,217,0.12), transparent 70%),
    var(--bg-surface);
  box-shadow: 0 0 40px -10px rgba(129,36,217,0.4);
}
.price-card .badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--cta-gradient);
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.price-card .tier {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-1);
}
.price-card .price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price-card .price {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg-1);
  line-height: 1;
}
.price-card .price-suffix {
  font-size: 14px;
  color: var(--fg-3);
}
.price-card .price-tag {
  font-size: 13px;
  color: var(--fg-3);
}
.price-card .price-yearly-note {
  margin-top: 6px;
  font-size: 12px;
  color: var(--fg-2);
  font-weight: 500;
}
.price-card .features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.price-card .features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.5;
}
.price-card .features svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--brand-violet-2);
}

/* ============ TEAM ============ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  position: relative;
  aspect-ratio: 1/1;
}
.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-card .info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px;
  background: linear-gradient(0deg, rgba(5,6,10,0.95) 0%, rgba(5,6,10,0.7) 60%, transparent 100%);
}
.team-card .info .role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-magenta);
}
.team-card .info .name {
  font-size: 22px;
  font-weight: 700;
  color: var(--fg-1);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

/* ============ FAQ ============ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--border);
  background: var(--bg-surface);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 180ms var(--ease-out);
}
.faq-item.open { border-color: var(--border-strong); }
.faq-q {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--fg-1);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: -0.01em;
}
.faq-q .chev {
  transition: transform 240ms var(--ease-out);
  color: var(--fg-3);
  flex-shrink: 0;
}
.faq-item.open .chev { transform: rotate(180deg); color: var(--brand-magenta); }
.faq-a {
  padding: 0 28px 22px;
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* ============ CONTACT / FINAL CTA ============ */
.contact {
  position: relative;
  border-top: 1px solid var(--border);
  padding: 120px 0;
  overflow: hidden;
}
.contact-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 60% at 50% 50%, rgba(217,2,199,0.18), transparent 60%),
    radial-gradient(40% 50% at 30% 70%, rgba(129,36,217,0.16), transparent 60%);
  z-index: -1;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.contact-cta-wrap {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-cta-wrap h2 { margin-bottom: 16px; }
.contact-cta-wrap .section-sub {
  max-width: 640px;
  margin: 0 auto;
}
.contact-bullets {
  list-style: none;
  padding: 0;
  margin: 36px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  text-align: left;
}
.contact-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg-2);
  font-size: 15px;
}
.contact-bullet-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(129,36,217, 0.15);
  display: grid;
  place-items: center;
  color: var(--brand-violet-2);
  flex-shrink: 0;
}
.contact-cta-btn {
  padding: 16px 40px;
  font-size: 16px;
}
.contact h2 { margin-bottom: 20px; }
.contact .form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 36px;
}
.form-row { display: flex; flex-direction: column; gap: 18px; }
.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--fg-1);
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  transition: border-color 180ms var(--ease-out);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--border-focus);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-meta {
  font-size: 12px;
  color: var(--fg-3);
  line-height: 1.5;
}
.form-meta a { color: var(--brand-violet-2); }

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  background: var(--bg-nav);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer h5 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 18px;
}
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-list a {
  color: var(--fg-2);
  text-decoration: none;
  font-size: 14px;
  transition: color 180ms var(--ease-out);
}
.footer-list a:hover { color: var(--fg-1); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--fg-3);
  font-size: 12px;
}
.footer-bottom .links {
  display: flex;
  gap: 20px;
}
.footer-bottom a { color: var(--fg-3); text-decoration: none; }
.footer-bottom a:hover { color: var(--fg-1); }

/* ============ HAMBURGER + MOBILE DRAWER ============ */
.hamburger {
  display: none; /* shown via media query on tablet/mobile */
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 180ms var(--ease-out), border-color 180ms var(--ease-out);
  flex-shrink: 0;
}
.hamburger:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.2);
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--fg-1);
  border-radius: 2px;
  transition: transform 220ms var(--ease-out), opacity 180ms var(--ease-out);
}
.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--bg-page, #05060a);
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: 96px 28px 32px;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
  overflow-y: auto;
}
.mobile-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav a {
  font-family: var(--font-headline);
  font-size: 28px;
  font-weight: 500;
  color: var(--fg-1);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.02em;
  transition: color 180ms var(--ease-out);
}
.mobile-nav a:hover { color: var(--brand-violet-2); }
.mobile-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}
.mobile-cta .am-btn-primary,
.mobile-cta .btn-ghost {
  width: 100%;
  justify-content: center;
  padding: 14px 22px;
  font-size: 14px;
}

/* Header CTA buttons baseline (desktop) */
.header-login { padding: 8px 14px; font-size: 13px; }
.header-demo  { font-size: 13px; }

/* ============================================================================
   ONEPAGE TEXT-ALIGN DEFENSE
   ----------------------------------------------------------------------------
   When this HTML is pasted into a OnePage.io HTML container, OnePage's own
   stylesheet often applies `text-align: center` to a high-level wrapper. To
   prevent our left-aligned content from being centered against our will, we
   force a `text-align: left` baseline on every block element inside our root
   shell, then opt-in to `text-align: center` on the elements that should be.
   ============================================================================ */
.page,
.page * {
  text-align: inherit;
}
.page {
  text-align: left;
}
/* Explicit centering — these are the only places that should be centered */
.page .hero,
.page .hero h1,
.page .hero-eyebrow,
.page .hero-sub,
.page .hero-cta-row,
.page .section-header:not(.left),
.page .section-header:not(.left) h2,
.page .section-header:not(.left) .section-eyebrow,
.page .section-header:not(.left) .section-sub,
.page .contact-cta-wrap,
.page .contact-cta-wrap h2,
.page .contact-cta-wrap .section-sub,
.page .contact-cta-wrap .section-eyebrow,
.page .pricing-toggle,
.page .pricing-toggle button,
.page .pain-dots,
.page .pain-dot,
.page .am-btn-primary,
.page .btn-ghost,
.page .btn-cta-lg,
.page .price-card .badge,
.page .form-meta,
.page .footer-bottom,
.page .marquee-item,
.page .slot-frame,
.page .slot-meta,
.page .slot-title,
.page .slot-sub {
  text-align: center;
}
/* Marquee items need their own row alignment, but icon row inside is flex */
.page .marquee-track { text-align: left; }

/* ============================================================================
   RESPONSIVE — Tablet (≤1024px) and Mobile (≤640px)
   ============================================================================ */

/* ---- TABLET ≤1024px ---- */
@media (max-width: 1024px) {
  .shell { padding: 0 24px; }
  .section { padding: 80px 0; }

  /* Header — hide nav links, keep logo + CTA, show hamburger */
  .nav { display: none; }
  .hamburger { display: flex; }
  .header-inner { height: 64px; }

  /* Hero — slightly tighter */
  .hero { padding: 90px 0 60px; }
  .hero-product { margin-top: 50px; }

  /* Feature cards stack — visual + text in column */
  .fcard {
    grid-template-columns: 1fr !important;
    padding: 28px;
    gap: 24px;
  }
  /* Mobile order: number+headline → visual → body → tags */
  .fcard--flip .fcard-text   { order: 2; }
  .fcard--flip .fcard-visual { order: 1; }
  /* Visual keeps its 4/3 landscape aspect from the base rule —
     no min-height override needed, iframe is scaled to fit. */

  .fwalk-item {
    grid-template-columns: 1fr !important;
    padding: 32px;
    gap: 32px;
  }
  .fwalk-item:nth-child(even) .fwalk-text { order: 1; }
  .fwalk-item:nth-child(even) .fwalk-visual { order: 2; }

  /* Pricing — keep 2 cols if 2 plans, else 1 col */
  .pricing-grid:not(.pricing-grid--two) {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
  .pricing-grid--two {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  /* Team / Why / Stack — 2 cols */
  .why-grid, .team-grid, .test-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-rail { grid-template-columns: repeat(2, 1fr); }

  /* Contact — stack */
  .contact { padding: 80px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  /* Footer — 2 cols */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ---- MOBILE ≤640px ---- */
@media (max-width: 640px) {
  .shell { padding: 0 18px; }
  .section { padding: 60px 0; }

  /* Header — hide login + demo button on mobile, only logo + hamburger */
  .header-login,
  .header-demo { display: none; }
  .header-inner { height: 60px; }
  .logo-lockup img { height: 36px; }

  /* HERO */
  .hero { padding: 60px 0 40px; }
  .hero-eyebrow {
    padding: 9px 16px;
    font-size: 11px;
    margin-bottom: 22px;
    letter-spacing: 0.14em;
  }
  .hero h1 {
    font-size: clamp(32px, 9vw, 44px);
    margin-bottom: 18px;
  }
  .hero h1 .tag {
    font-size: 11px;
    letter-spacing: 0.14em;
    margin-bottom: 12px;
  }
  .hero-sub {
    font-size: 15px;
    margin-bottom: 28px;
  }
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .hero-cta-row .am-btn-primary,
  .hero-cta-row .btn-ghost {
    width: 100%;
    justify-content: center;
  }
  .hero-product { margin-top: 36px; }

  /* SECTION HEADERS */
  .section-header { margin-bottom: 36px; max-width: 100%; }
  .section h2 {
    font-size: clamp(26px, 7.5vw, 36px);
  }
  .contact h2 {
    font-size: clamp(26px, 7.5vw, 36px);
  }
  .section-sub { font-size: 15px; }

  /* PAIN CAROUSEL — compact */
  .pain-carousel {
    padding: 30px 22px;
    border-radius: 18px;
    max-width: 100%;
  }
  .pain-text {
    font-size: 18px;
    max-width: 100%;
    line-height: 1.35;
  }
  .pain-icon {
    width: 28px;
  }
  .pain-quote {
    gap: 14px;
  }
  .pain-dots { margin-top: 16px; }
  .pain-dot { width: 8px; height: 8px; }
  .pain-dot.is-active { width: 22px; }

  /* SOLUTION FEATURE CARDS — explicit mobile order
     Number+badge → headline → visual → body → tags */
  .fcard {
    padding: 22px;
    gap: 18px;
    border-radius: 16px;
  }
  .fcard-text {
    display: contents; /* let the children flow into the card grid directly */
  }
  .fcard {
    grid-template-columns: 1fr !important;
    grid-auto-flow: row;
  }
  .fcard .fcard-num    { order: 1; margin-bottom: 0; }
  .fcard h3            { order: 2; font-size: 24px; margin: 0; }
  .fcard .fcard-visual { order: 3; margin-top: 6px; }
  .fcard .copy         { order: 4; font-size: 14px; }
  .fcard .fcard-tags   { order: 5; margin-top: 4px; }
  .fcard--flip .fcard-text,
  .fcard--flip .fcard-visual { order: unset; }
  .fcard--flip .fcard-num    { order: 1; }
  .fcard--flip h3            { order: 2; }
  .fcard--flip .fcard-visual { order: 3; }
  .fcard--flip .copy         { order: 4; }
  .fcard--flip .fcard-tags   { order: 5; }

  /* WHY / STACK / TEAM / TESTIMONIALS — single column */
  .why-grid, .team-grid, .test-grid, .stack-rail {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  /* PRICING */
  .price-card { padding: 28px 22px; }
  .price-card .price { font-size: 40px; }
  .pricing-toggle { font-size: 12px; }

  /* FAQ */
  .faq-item { padding: 18px; }
  .faq-q { font-size: 15px; }

  /* CONTACT FORM */
  .contact { padding: 60px 0; }
  .contact .form-card { padding: 24px; border-radius: 18px; }

  /* FOOTER */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center !important;
  }
  .footer-bottom .links { flex-wrap: wrap; justify-content: center; }

  /* MARQUEE — slower / thinner on mobile */
  .marquee { padding: 12px 0; }
  .marquee-item { font-size: 12px; }
  .marquee-track { gap: 32px; }
}

/* ---- VERY SMALL ≤380px ---- */
@media (max-width: 380px) {
  .shell { padding: 0 14px; }
  .hero h1 { font-size: 30px; }
  .section h2 { font-size: 24px; }
  .pain-text { font-size: 17px; }
}
