:root {
  --ink: #111827;
  --muted: #64748b;
  --line: #dbe4ef;
  --panel: #ffffff;
  --wash: #f6f8fb;
  --navy: #172033;
  --teal: #7c3aed;
  --blue: #2f6df6;
  --amber: #b45309;
  --red: #b91c1c;
  --green: #8b5cf6;
  --emerald-glow: rgba(124, 58, 237, 0.28);
  --violet: #6d28d9;
  --purple-deep: #22145f;
  --purple-bright: #7c3aed;
  --purple-soft: #f3e8ff;
  --shadow: 0 18px 44px rgba(31, 20, 95, 0.12);
  --radius: 10px;
  --font: "Inter", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  max-width: 100%;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.18), transparent 34%), linear-gradient(180deg, #fbfbff, #eef4ff 54%, #f8fafc);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
}

@property --outline-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.app-shell {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 18px 0 40px;
  overflow-x: clip;
}

.topbar,
.panel,
.step-card,
.output-card,
.draft-table,
.metric-card,
.notice {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(0, 1fr) auto;
  grid-template-areas: "brand progress actions";
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  max-width: 100%;
  overflow: visible;
  padding: 12px 20px;
  border-color: rgba(124, 58, 237, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px rgba(31, 20, 95, 0.1);
}

.brand {
  grid-area: brand;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  width: fit-content;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 950;
}

.brand strong {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand strong span {
  color: #111827;
}

.brand strong em {
  margin-left: 1px;
  background: linear-gradient(135deg, #7c3aed, #2f6df6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}

.brand-logo {
  display: grid;
  flex: 0 0 auto;
  width: auto;
  height: 54px;
  place-items: center;
  overflow: hidden;
}

.brand-logo img {
  width: auto;
  max-width: 238px;
  height: 54px;
  object-fit: contain;
}

.progress {
  grid-area: progress;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: center;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.progress::-webkit-scrollbar {
  display: none;
}

.progress button,
.ghost,
.primary,
.soft-button,
.template-card,
.quick-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.progress button {
  flex: 0 1 auto;
  min-height: 42px;
  padding: 10px 14px;
  border-color: rgba(124, 58, 237, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  font-size: clamp(12.8px, 0.82vw, 14px);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(31, 20, 95, 0.05);
}

.progress button.active {
  border-color: var(--teal);
  background: linear-gradient(135deg, #7c3aed, #2f6df6);
  color: #fff;
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.24);
}

.progress button.locked {
  opacity: 0.55;
}

.primary,
.ghost,
.soft-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  text-decoration: none;
}

.primary {
  border-color: transparent;
  background: var(--teal);
  color: #fff;
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.26);
}

.soft-button {
  background: #eef6ff;
  color: var(--blue);
}

.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 104px;
  max-width: 142px;
  border-color: rgba(124, 58, 237, 0.28);
  background: linear-gradient(135deg, #7c3aed, #2f6df6);
  color: #fff;
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.18);
}

.login-button span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-button.logged-in {
  background: linear-gradient(135deg, #111827, #2f6df6);
}

.topbar-actions {
  grid-area: actions;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.mobile-topbar-menu {
  display: none;
}

.mobile-topbar-menu summary {
  list-style: none;
}

.mobile-topbar-menu summary::-webkit-details-marker {
  display: none;
}

.contact-nav-button {
  min-width: 104px;
  border-color: rgba(124, 58, 237, 0.22);
  color: #5b21b6;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 20px rgba(31, 20, 95, 0.05);
}

.account-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #8bfcf6;
  box-shadow: 0 0 0 3px rgba(139, 252, 246, 0.22), 0 0 14px rgba(139, 252, 246, 0.8);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.88fr);
  gap: 28px;
  align-items: center;
  min-height: 500px;
  margin-bottom: 46px;
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 22px;
  padding: 46px;
  background:
    radial-gradient(circle at 58% 48%, rgba(124, 58, 237, 0.26), transparent 29%),
    radial-gradient(circle at 82% 26%, rgba(47, 109, 246, 0.18), transparent 28%),
    linear-gradient(120deg, #ffffff 0%, #fbfaff 44%, #efe7ff 100%);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(40, 25, 109, 0.18);
}

.home-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(124, 58, 237, 0.08);
  color: #5b21b6;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 560px;
  margin-bottom: 12px;
  color: #111827;
  font-size: clamp(42px, 4.6vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
}

.home-hero p {
  max-width: 560px;
  color: #667085;
  font-size: 18px;
}

.home-visual {
  position: relative;
  min-height: 360px;
  border: 0;
  border-radius: 24px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.campaign-context-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  background: linear-gradient(135deg, #fbfaff, #f5f3ff);
  box-shadow: var(--shadow);
}

.campaign-context-bar span,
.campaign-context-bar strong,
.campaign-context-bar small {
  display: block;
}

.campaign-context-bar small {
  color: var(--muted);
}

.hero-flow-card {
  position: absolute;
  inset: 28px 30px 34px 34px;
  display: grid;
  gap: 22px;
  border: 1px solid rgba(31, 41, 55, 0.14);
  border-radius: 24px;
  padding: 36px 42px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 26px 70px rgba(31, 20, 95, 0.16);
  backdrop-filter: blur(14px);
}

.hero-flow-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(124, 58, 237, 0.18);
  border-radius: 18px;
  pointer-events: none;
}

.hero-flow-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 14px;
  align-items: center;
}

.hero-flow-step::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 36px;
  width: 2px;
  height: 22px;
  background: linear-gradient(#b8b5ff, transparent);
}

.hero-flow-step:last-child::after {
  display: none;
}

.hero-flow-step b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #eef2ff;
  color: #6d28d9;
}

.hero-flow-step strong,
.hero-flow-step small {
  display: block;
}

.hero-flow-step strong {
  color: #1f2937;
  font-size: 19px;
}

.hero-flow-step small {
  max-width: 260px;
  color: #9ca3af;
}

.hero-float {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(31, 41, 55, 0.12);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.82);
  color: #6b7280;
  font-weight: 850;
  box-shadow: 0 14px 32px rgba(31, 20, 95, 0.12);
}

.hero-float.mailbox-one {
  top: 6px;
  right: 18px;
}

.hero-float.mailbox-two {
  top: 72px;
  right: -4px;
  opacity: 0.72;
}

.hero-import-tile {
  position: absolute;
  z-index: 2;
  left: -18px;
  top: 120px;
  width: 134px;
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 18px;
  padding: 18px 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 40px rgba(31, 20, 95, 0.11);
  text-align: center;
}

.hero-import-tile b,
.hero-import-tile small {
  display: block;
}

.hero-import-tile b {
  color: #7c3aed;
  font-size: 28px;
}

.hero-import-tile small {
  color: #6b7280;
  font-weight: 800;
}

.hero-chart-card {
  position: absolute;
  z-index: 3;
  right: 4px;
  bottom: 8px;
  width: 210px;
  border: 1px solid rgba(31, 41, 55, 0.1);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 50px rgba(31, 20, 95, 0.16);
}

.hero-chart-line {
  height: 84px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, transparent 0 18%, rgba(124, 58, 237, 0.16) 18% 20%, transparent 20% 38%, rgba(47, 109, 246, 0.18) 38% 40%, transparent 40% 64%, rgba(124, 58, 237, 0.2) 64% 66%, transparent 66%),
    linear-gradient(180deg, #f8f7ff, #ffffff);
}

.hero-chart-card span {
  display: block;
  margin-top: 10px;
  color: #7c3aed;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-engine-pill {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%);
  border-radius: 18px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9 54%, #2f6df6);
  color: #fff;
  font-size: 18px;
  font-weight: 950;
  box-shadow: 0 20px 44px rgba(124, 58, 237, 0.36);
}

.home-visual.transform-visual {
  position: relative;
  min-height: 420px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 51% 49%, rgba(124, 58, 237, 0.2), transparent 29%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(248, 247, 255, 0.94));
}

.home-visual.magic-flow {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 44%, rgba(124, 58, 237, 0.22), transparent 31%),
    radial-gradient(circle at 78% 72%, rgba(47, 109, 246, 0.14), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(247, 244, 255, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 28px 70px rgba(31, 20, 95, 0.12);
}

.visual-beam {
  position: absolute;
  left: 80px;
  right: 80px;
  top: 190px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.1), #8b5cf6 38%, #2f6df6 68%, rgba(124, 58, 237, 0.08));
  box-shadow: 0 0 26px rgba(124, 58, 237, 0.28);
}

.visual-beam::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
  width: 52px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 26px rgba(124, 58, 237, 0.72);
  animation: flowLight 3.8s ease-in-out infinite;
}

.bulk-file-zone,
.personalise-zone,
.email-output-zone {
  position: absolute;
  z-index: 2;
  display: grid;
  align-content: start;
  border: 1px solid rgba(124, 58, 237, 0.14);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 54px rgba(31, 20, 95, 0.12);
  backdrop-filter: blur(14px);
}

.bulk-file-zone,
.email-output-zone {
  top: 68px;
  width: 152px;
  min-height: 224px;
  padding: 16px 15px;
}

.bulk-file-zone {
  left: 24px;
}

.email-output-zone {
  right: 24px;
}

.personalise-zone {
  left: 50%;
  top: 42px;
  width: 158px;
  min-height: 252px;
  justify-items: center;
  padding: 18px 14px;
  text-align: center;
  transform: translateX(-50%);
}

.step-badge {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #2f6df6);
  color: #fff;
  font-size: 16px;
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.26);
}

.bulk-file-zone > strong,
.personalise-zone > strong,
.email-output-zone > strong {
  margin-top: 15px;
  color: #111827;
  font-size: 17px;
  line-height: 1.12;
}

.personalise-zone small {
  max-width: 124px;
  margin-top: 12px;
  color: #667085;
  font-size: 12px;
  line-height: 1.35;
}

.file-cluster,
.email-cluster {
  position: relative;
  min-height: 128px;
  margin-top: 18px;
}

.lead-file,
.email-mini {
  position: absolute;
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 15px 34px rgba(31, 20, 95, 0.1);
}

.lead-file {
  display: grid;
  gap: 9px;
  width: 88px;
  height: 82px;
  padding: 11px 12px;
}

.lead-file b {
  color: #6d28d9;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.lead-file span {
  height: 8px;
  border-radius: 999px;
  background: #eadcff;
}

.lead-file span:nth-child(2) {
  width: 100%;
}

.lead-file span:nth-child(3) {
  width: 78%;
}

.lead-file span:nth-child(4) {
  width: 58%;
}

.lead-file.file-main {
  left: 31px;
  top: 38px;
  z-index: 3;
  animation: fileFloat 4.5s ease-in-out infinite;
}

.lead-file.file-back {
  width: 74px;
  height: 70px;
  opacity: 0.82;
}

.lead-file.file-back.one {
  left: -5px;
  top: 1px;
  transform: rotate(-15deg);
}

.lead-file.file-back.two {
  right: -7px;
  top: 0;
  transform: rotate(15deg);
}

.email-mini {
  width: 78px;
  height: 88px;
  padding: 12px 10px;
}

.email-mini b {
  display: block;
  width: 40px;
  height: 8px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8b5cf6, #2f6df6);
}

.email-mini span {
  display: block;
  height: 8px;
  margin-top: 9px;
  border-radius: 999px;
  background: #dbeafe;
}

.email-mini span:nth-child(2) {
  width: 100%;
}

.email-mini span:nth-child(3) {
  width: 70%;
}

.email-mini.one {
  left: 0;
  top: 8px;
  transform: rotate(-8deg);
}

.email-mini.two {
  right: 4px;
  top: 0;
  transform: rotate(7deg);
}

.email-mini.three {
  left: 20px;
  top: 45px;
  z-index: 2;
  transform: rotate(-2deg);
  animation: emailFloat 4.5s ease-in-out infinite;
}

.email-mini.four {
  right: 20px;
  top: 50px;
  transform: rotate(10deg);
  opacity: 0.84;
}

.ai-gem {
  position: relative;
  display: grid;
  width: 98px;
  height: 98px;
  place-items: center;
  margin-top: 18px;
  border-radius: 32px;
  background: radial-gradient(circle at 34% 28%, #ffffff, #a78bfa 22%, #7c3aed 58%, #241044);
  color: #fff;
  font-size: 27px;
  font-weight: 950;
  box-shadow: 0 24px 60px rgba(124, 58, 237, 0.38);
  animation: aiGemPulse 3.6s ease-in-out infinite;
}

.ai-gem::before {
  content: "";
  position: absolute;
  inset: -20px;
  border: 1px dashed rgba(124, 58, 237, 0.24);
  border-radius: 38px;
  animation: aiRing 13s linear infinite;
}

.output-ribbon {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 3;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.output-ribbon span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid rgba(124, 58, 237, 0.14);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.9);
  color: #5b21b6;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 14px 30px rgba(31, 20, 95, 0.1);
}

@keyframes flowLight {
  0% {
    left: 0;
    opacity: 0;
  }
  15%, 80% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 42px);
    opacity: 0;
  }
}

@keyframes aiGemPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

@keyframes fileFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes emailFloat {
  0%, 100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-7px) rotate(-2deg);
  }
}

.file-stack,
.email-stack,
.ai-core {
  position: absolute;
}

.file-stack {
  left: 0;
  top: 54px;
  display: grid;
  gap: 14px;
  width: 148px;
}

.file-stack article {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(124, 58, 237, 0.13);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(31, 20, 95, 0.12);
  animation: sourceFloat 5.6s ease-in-out infinite;
}

.file-stack article:nth-child(2) {
  transform: translateX(20px);
  animation-delay: -1.6s;
}

.file-stack b {
  color: #6d28d9;
  font-size: 13px;
  letter-spacing: 0.1em;
}

.file-stack span {
  height: 8px;
  border-radius: 999px;
  background: #e9d5ff;
}

.file-stack span:nth-child(3) {
  width: 74%;
}

.file-stack span:nth-child(4) {
  width: 58%;
}

.ai-core {
  left: 44%;
  top: 49%;
  display: grid;
  width: 128px;
  height: 128px;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #ffffff, #a78bfa 24%, #7c3aed 58%, #241044);
  color: #fff;
  font-size: 34px;
  font-weight: 950;
  box-shadow: 0 28px 70px rgba(124, 58, 237, 0.38);
  animation: aiPulse 3.8s ease-in-out infinite;
}

.ai-core::before,
.ai-core::after {
  content: "";
  position: absolute;
  inset: -20px;
  border: 1px solid rgba(124, 58, 237, 0.24);
  border-radius: 50%;
  animation: aiRing 9s linear infinite;
}

.ai-core::after {
  inset: -38px;
  border-style: dashed;
  animation-duration: 14s;
  animation-direction: reverse;
}

.ai-core i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f6df6;
  box-shadow: 0 0 18px rgba(47, 109, 246, 0.8);
  animation: particleMove 3.2s ease-in-out infinite;
}

.ai-core i:nth-child(2) { left: -66px; top: 38px; animation-delay: -0.4s; }
.ai-core i:nth-child(3) { right: -68px; top: 54px; animation-delay: -0.9s; }
.ai-core i:nth-child(4) { left: -46px; bottom: 30px; animation-delay: -1.5s; }
.ai-core i:nth-child(5) { right: -46px; bottom: 38px; animation-delay: -2.1s; }

.email-stack {
  right: 0;
  top: 38px;
  width: 220px;
}

.email-card-main,
.mini-email-card,
.tracker-card {
  border: 1px solid rgba(31, 41, 55, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 58px rgba(31, 20, 95, 0.16);
}

.email-card-main {
  display: grid;
  gap: 9px;
  min-height: 202px;
  padding: 18px;
  animation: emailRise 5.4s ease-in-out infinite;
}

.email-card-main small,
.email-card-main em {
  color: #7c3aed;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.email-card-main strong {
  color: #111827;
  font-size: 16px;
  line-height: 1.2;
}

.email-card-main p {
  margin: 0;
  color: #667085;
  font-size: 14px;
}

.mini-email-card,
.tracker-card {
  position: absolute;
  padding: 13px 15px;
  color: #241044;
  font-weight: 950;
}

.mini-email-card {
  left: -38px;
  bottom: -38px;
}

.tracker-card {
  right: 12px;
  bottom: -78px;
  color: #2f6df6;
}

.transform-visual::before,
.transform-visual::after {
  content: "";
  position: absolute;
  top: 52%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #7c3aed, transparent);
}

.transform-visual::before {
  left: 138px;
  width: 108px;
}

.transform-visual::after {
  right: 206px;
  width: 92px;
}

@keyframes aiPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 28px 70px rgba(124, 58, 237, 0.34);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.04);
    box-shadow: 0 36px 86px rgba(124, 58, 237, 0.48);
  }
}

@keyframes aiRing {
  to {
    transform: rotate(360deg);
  }
}

@keyframes agentFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes sourceFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes emailRise {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.01); }
}

@keyframes particleMove {
  0%, 100% { opacity: 0.45; transform: translateX(0) scale(0.8); }
  50% { opacity: 1; transform: translateX(18px) scale(1.2); }
}

.product-overview,
.workflow-cards,
.simple-steps,
.sample-output-grid,
.pricing-grid,
.launch-stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 42px;
}

.product-overview article,
.workflow-cards article,
.simple-steps article,
.sample-output-grid article,
.pricing-card,
.launch-stack-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.product-overview article {
  border: 1px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(from var(--outline-angle, 0deg), rgba(124, 58, 237, 0.08), rgba(124, 58, 237, 0.62), rgba(47, 109, 246, 0.18), rgba(124, 58, 237, 0.08)) border-box;
  box-shadow: 0 18px 42px rgba(31, 20, 95, 0.09), 0 0 0 1px rgba(124, 58, 237, 0.04);
  animation: premiumOutline 8s linear infinite;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-overview article:nth-child(2) {
  animation-delay: -2.6s;
}

.product-overview article:nth-child(3) {
  animation-delay: -5.2s;
}

.product-overview article:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(31, 20, 95, 0.14), 0 0 0 1px rgba(124, 58, 237, 0.06);
}

.product-overview article::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), transparent 38%, rgba(47, 109, 246, 0.05));
}

.product-overview article::after {
  content: "";
  position: absolute;
  top: -30%;
  left: -55%;
  width: 42%;
  height: 160%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58), transparent);
  transform: rotate(18deg);
  animation: cardSheen 7.5s ease-in-out infinite;
}

.product-overview article span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.08);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-overview h2,
.product-overview p {
  position: relative;
  z-index: 1;
}

@keyframes premiumOutline {
  to {
    --outline-angle: 360deg;
  }
}

@keyframes cardSheen {
  0%, 42% {
    opacity: 0;
    transform: translateX(0) rotate(18deg);
  }
  55% {
    opacity: 0.85;
  }
  72%, 100% {
    opacity: 0;
    transform: translateX(360%) rotate(18deg);
  }
}

.product-overview h2,
.workflow-cards strong,
.simple-steps strong,
.sample-output-grid strong {
  display: block;
  margin: 5px 0;
  font-size: 18px;
}

.product-overview article h2 {
  max-width: 290px;
  font-size: 20px;
  line-height: 1.14;
}

.product-overview p,
.workflow-cards p,
.simple-steps p,
.sample-output-grid small {
  margin: 0;
  color: var(--muted);
}

.simple-onboarding {
  margin: 50px 0;
  padding: 32px;
  background:
    radial-gradient(circle at 14% 12%, rgba(124, 58, 237, 0.08), transparent 32%),
    linear-gradient(135deg, #fff, #f8f7ff);
}

.simple-steps {
  position: relative;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 0 0;
}

.simple-steps::before {
  content: "";
  position: absolute;
  top: 48px;
  left: 7%;
  right: 7%;
  height: 2px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.12), rgba(47, 109, 246, 0.52), rgba(124, 58, 237, 0.12));
  box-shadow: 0 0 22px rgba(124, 58, 237, 0.16);
}

.simple-steps article {
  z-index: 1;
  min-height: 168px;
  border-color: rgba(124, 58, 237, 0.14);
  background:
    radial-gradient(circle at 18% 14%, rgba(124, 58, 237, 0.08), transparent 28%),
    rgba(255, 255, 255, 0.94);
}

.simple-steps b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #2f6df6);
  color: #fff;
  font-weight: 950;
}

.modal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 999px;
  padding: 7px 12px;
  background: #fff;
  color: #6d28d9;
  font-weight: 900;
  text-decoration: none;
}

.danger-action {
  border-color: rgba(220, 38, 38, 0.25);
  color: #b91c1c;
}

.modal-links {
  display: block;
  margin-top: 12px;
}

.public-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin: 40px 0 18px;
  border-top: 1px solid rgba(124, 58, 237, 0.12);
  padding: 20px 4px 0;
  color: #667085;
  font-size: 13px;
}

.public-footer nav {
  display: flex;
  gap: 18px;
}

.public-footer a,
.footer-link-button {
  color: #5b21b6;
  font-weight: 800;
  text-decoration: none;
}

.footer-link-button {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.public-footer a:hover,
.footer-link-button:hover {
  text-decoration: underline;
}

.sample-output {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: center;
  margin: 50px 0;
  padding: 34px;
}

.sample-output-grid article {
  min-height: 126px;
}

.agent-workflow {
  margin-top: 50px;
  overflow: hidden;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 14%, rgba(124, 58, 237, 0.08), transparent 34%),
    #fff;
}

.home-final-cta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-top: 50px;
  padding: 30px 34px;
  background: linear-gradient(135deg, #ffffff, #f5f3ff);
}

.home-final-cta h2 {
  margin-bottom: 6px;
  font-size: 28px;
}

.home-final-cta p {
  margin: 0;
  color: var(--muted);
}

.agent-workflow-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.agent-workflow-map::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 42px;
  height: 2px;
  background: linear-gradient(90deg, #ddd6fe, #7c3aed, #2f6df6, #ddd6fe);
}

.agent-node {
  position: relative;
  z-index: 1;
  min-height: 168px;
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 42px rgba(31, 20, 95, 0.09);
}

.agent-node b {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #2f6df6);
  color: #fff;
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.24);
}

.agent-node strong {
  display: block;
  margin-bottom: 7px;
  color: #111827;
  font-size: 18px;
}

.agent-node p {
  margin: 0;
  color: var(--muted);
}

.home-command-center {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 34px;
  align-items: center;
  margin: 58px 0;
  overflow: hidden;
  padding: 38px;
  background:
    radial-gradient(circle at 80% 18%, rgba(47, 109, 246, 0.16), transparent 30%),
    radial-gradient(circle at 18% 80%, rgba(124, 58, 237, 0.14), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f8f7ff 50%, #eef4ff 100%);
}

.home-command-center::before {
  content: "";
  position: absolute;
  inset: 18px;
  pointer-events: none;
  border: 1px solid rgba(124, 58, 237, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(124, 58, 237, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(47, 109, 246, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 68% 46%, black, transparent 72%);
}

.command-copy,
.command-orbit,
.home-output-lab > * {
  position: relative;
  z-index: 1;
}

.command-copy span,
.output-lab-copy span,
.output-lab-grid article span,
.orbit-card span {
  display: inline-flex;
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.command-copy h2,
.output-lab-copy h2 {
  margin: 8px 0 10px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.command-copy > p,
.output-lab-copy p {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

.command-path {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.command-path article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border: 1px solid rgba(124, 58, 237, 0.14);
  border-radius: 20px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 44px rgba(31, 20, 95, 0.07);
}

.command-path b {
  display: grid;
  height: 42px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #111827, #312e81 52%, #7c3aed);
  color: #fff;
  font-size: 12px;
}

.command-path strong {
  display: block;
  font-size: 17px;
}

.command-path p {
  margin: 4px 0 0;
  color: var(--muted);
}

.command-orbit {
  max-width: 100%;
  overflow: hidden;
  min-height: 480px;
}

.orbit-ring {
  position: absolute;
  inset: 42px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08), transparent 58%);
  animation: orbitSpin 18s linear infinite;
}

.orbit-ring.inner {
  inset: 118px;
  border-color: rgba(47, 109, 246, 0.22);
  animation-duration: 12s;
  animation-direction: reverse;
}

.orbit-ring::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 50%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #7c3aed;
  box-shadow: 0 0 28px rgba(124, 58, 237, 0.7);
}

.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 154px;
  height: 154px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 42px;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.82), transparent 22%),
    linear-gradient(135deg, #2f6df6, #7c3aed 58%, #21145f);
  color: #fff;
  box-shadow: 0 28px 70px rgba(124, 58, 237, 0.34);
}

.orbit-core b {
  font-size: 38px;
  line-height: 1;
}

.orbit-core small {
  margin-top: -44px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.orbit-card {
  position: absolute;
  width: 210px;
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: 22px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(31, 20, 95, 0.14);
}

.orbit-card strong {
  display: block;
  margin-top: 7px;
  font-size: 17px;
}

.card-input {
  top: 38px;
  left: 0;
}

.card-ai {
  top: 132px;
  right: 8px;
}

.card-review {
  bottom: 38px;
  left: 80px;
}

@keyframes orbitSpin {
  to {
    transform: rotate(360deg);
  }
}

.home-output-lab {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 26px;
  align-items: stretch;
  margin: 52px 0;
  padding: 34px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(33, 20, 95, 0.96)),
    #111827;
  color: #fff;
}

.home-output-lab::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.42), transparent 66%);
}

.output-lab-copy p {
  color: #cbd5e1;
}

.output-lab-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
}

.output-lab-grid article {
  min-height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.output-lab-grid article span {
  color: #c4b5fd;
}

.output-lab-grid article strong {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: 18px;
  line-height: 1.32;
}

.output-workbook-preview {
  grid-row: span 2;
}

.sheet-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 18px 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.sheet-preview i,
.sheet-preview b {
  min-height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
}

.sheet-preview i {
  background: linear-gradient(135deg, #7c3aed, #2f6df6);
}

.sheet-preview b:nth-of-type(1),
.sheet-preview b:nth-of-type(4) {
  background: rgba(196, 181, 253, 0.24);
}

.home-pipeline,
.home-transform {
  position: relative;
  margin: 54px 0;
  overflow: hidden;
  border-color: rgba(124, 58, 237, 0.18);
  background:
    radial-gradient(circle at 72% 20%, rgba(47, 109, 246, 0.13), transparent 32%),
    radial-gradient(circle at 12% 84%, rgba(124, 58, 237, 0.13), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 247, 255, 0.96) 48%, rgba(239, 246, 255, 0.96));
}

.home-pipeline::before,
.home-transform::before {
  content: "";
  position: absolute;
  inset: 18px;
  pointer-events: none;
  border-radius: 26px;
  background:
    linear-gradient(90deg, rgba(124, 58, 237, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(47, 109, 246, 0.035) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at 62% 48%, black, transparent 72%);
}

.home-pipeline {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 34px;
  align-items: center;
  padding: 40px;
}

.pipeline-intro,
.pipeline-flow,
.transform-copy,
.transform-stage {
  position: relative;
  z-index: 1;
}

.pipeline-intro h2,
.transform-copy h2 {
  margin: 8px 0 12px;
  max-width: 620px;
  color: var(--ink);
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.transform-copy h2 {
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.02;
}

.pipeline-intro > p:not(.eyebrow),
.transform-copy > p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.pipeline-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.pipeline-flow::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 50%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0), rgba(124, 58, 237, 0.55), rgba(47, 109, 246, 0.5), rgba(124, 58, 237, 0));
  box-shadow: 0 0 28px rgba(124, 58, 237, 0.26);
}

.pipeline-card {
  position: relative;
  min-width: 0;
  min-height: 255px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 24px 60px rgba(31, 20, 95, 0.11);
  backdrop-filter: blur(18px);
}

.pipeline-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(47, 109, 246, 0.08), rgba(255, 255, 255, 0));
  opacity: 0.7;
}

.pipeline-card > span {
  position: absolute;
  top: -14px;
  left: 50%;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #2f6df6);
  color: #fff;
  font-weight: 950;
  box-shadow: 0 16px 34px rgba(124, 58, 237, 0.28);
}

.pipeline-card strong {
  color: var(--ink);
  font-size: 20px;
  letter-spacing: -0.025em;
}

.pipeline-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.pipeline-icon {
  display: grid;
  min-height: 100px;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(47, 109, 246, 0.08));
}

.sheet-icon {
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding: 14px;
}

.sheet-icon i,
.sheet-icon b {
  width: 100%;
  height: 14px;
  border-radius: 999px;
}

.sheet-icon i {
  background: linear-gradient(135deg, #7c3aed, #2f6df6);
}

.sheet-icon b {
  background: #dbe4f5;
}

.ai-icon {
  position: relative;
  overflow: hidden;
}

.ai-icon strong {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, #a78bfa, #7c3aed 58%, #2f6df6);
  color: #fff;
  font-size: 26px;
  box-shadow: 0 20px 42px rgba(124, 58, 237, 0.28);
}

.ai-icon i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #7c3aed;
  box-shadow: 0 0 18px rgba(124, 58, 237, 0.6);
}

.ai-icon i:nth-child(2) {
  left: 26%;
  top: 28%;
}

.ai-icon i:nth-child(3) {
  right: 24%;
  bottom: 24%;
}

.mail-icon {
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 18px;
  place-items: stretch;
}

.mail-icon i,
.mail-icon b,
.mail-icon em {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: #dbe4f5;
}

.mail-icon i {
  width: 62%;
  background: linear-gradient(90deg, #7c3aed, #2f6df6);
}

.mail-icon em {
  width: 44%;
  background: #c7d9f7;
}

.pack-icon {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  padding: 16px;
}

.pack-icon i {
  display: grid;
  min-height: 58px;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--purple);
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(31, 20, 95, 0.08);
}

.home-transform {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 34px;
  padding: 36px;
  align-items: center;
}

.home-agent-system::after,
.home-transform::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -38px;
  width: 3px;
  height: 76px;
  border-radius: 999px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0), rgba(124, 58, 237, 0.5), rgba(47, 109, 246, 0));
  box-shadow: 0 0 28px rgba(124, 58, 237, 0.28);
  animation: pageFlowDrop 3.6s ease-in-out infinite;
}

.home-transform::after {
  bottom: auto;
  top: -38px;
}

.transform-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) 86px minmax(0, 1.05fr);
  gap: 22px;
  align-items: center;
}

.transform-stage::before {
  content: "";
  position: absolute;
  left: 27%;
  right: 27%;
  top: 50%;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.22), rgba(47, 109, 246, 0.48), rgba(34, 197, 94, 0.2), transparent);
  animation: flowLine 3.8s ease-in-out infinite;
}

.transform-board {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 312px;
  padding: 22px;
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 24px 60px rgba(31, 20, 95, 0.09);
}

.transform-board span {
  display: inline-flex;
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.transform-board strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.12;
}

.transform-board small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.mini-sheet {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 28px;
  gap: 10px;
  margin: 22px 0 4px;
  padding: 18px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid rgba(100, 116, 139, 0.14);
}

.mini-sheet::before,
.mini-sheet::after {
  content: "";
  position: absolute;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.18), rgba(47, 109, 246, 0.14));
  opacity: 0.9;
  animation: sheetScan 3.4s ease-in-out infinite;
}

.mini-sheet::before {
  left: 18px;
  right: 82px;
  top: 22px;
}

.mini-sheet::after {
  left: 18px;
  width: 46%;
  bottom: 22px;
  animation-delay: -1.3s;
}

.mini-sheet i,
.mini-sheet b {
  height: 12px;
  border-radius: 999px;
}

.mini-sheet i {
  background: #c4b5fd;
}

.mini-sheet b {
  background: #dbe4f5;
}

.mini-sheet em {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: #fff7ed;
}

.mini-sheet em::after {
  content: "!";
  color: #f97316;
  font-style: normal;
  font-size: 11px;
  font-weight: 950;
}

.transform-arrow {
  position: relative;
  z-index: 2;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #2f6df6);
  color: #fff;
  font-size: 16px;
  font-weight: 950;
  box-shadow: 0 22px 44px rgba(124, 58, 237, 0.28);
  animation: transformPulse 2.8s ease-in-out infinite;
}

.transform-arrow b {
  position: relative;
  z-index: 2;
}

.transform-arrow span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.11);
}

.transform-arrow span:first-child {
  left: -22px;
  animation: dotTravelLeft 2.8s ease-in-out infinite;
}

.transform-arrow span:last-child {
  right: -22px;
  animation: dotTravelRight 2.8s ease-in-out infinite;
}

.after-stack {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.after-stack div {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 15px 16px 15px 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.92), rgba(239, 246, 255, 0.92));
  border: 1px solid rgba(34, 197, 94, 0.16);
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.06);
  transform-origin: left center;
  animation: afterCardLift 4.8s ease-in-out infinite;
}

.after-stack div:nth-child(2) {
  animation-delay: -1.4s;
}

.after-stack div:nth-child(3) {
  animation-delay: -2.8s;
}

.after-stack div::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 17px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: #047857;
  background: rgba(220, 252, 231, 0.95);
  font-size: 14px;
  font-weight: 950;
}

.after-stack b {
  color: var(--ink);
  font-size: 15px;
}

.after-stack small {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

@keyframes flowLine {
  0%,
  100% {
    opacity: 0.42;
    transform: scaleX(0.82);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes sheetScan {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 0.9;
    transform: translateY(28px);
  }
}

@keyframes transformPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 22px 44px rgba(124, 58, 237, 0.28);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 28px 58px rgba(47, 109, 246, 0.34);
  }
}

@keyframes dotTravelLeft {
  0%,
  100% {
    opacity: 0.35;
    transform: translateX(-10px) scale(0.7);
  }
  50% {
    opacity: 1;
    transform: translateX(16px) scale(1);
  }
}

@keyframes dotTravelRight {
  0%,
  100% {
    opacity: 0.35;
    transform: translateX(10px) scale(0.7);
  }
  50% {
    opacity: 1;
    transform: translateX(-16px) scale(1);
  }
}

@keyframes afterCardLift {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(4px);
  }
}

.home-agent-system {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
  gap: 34px;
  align-items: center;
  margin: 54px 0;
  padding: 38px;
  overflow: hidden;
  border-color: rgba(124, 58, 237, 0.18);
  background:
    radial-gradient(circle at 82% 12%, rgba(47, 109, 246, 0.16), transparent 32%),
    radial-gradient(circle at 14% 82%, rgba(124, 58, 237, 0.12), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f8f7ff 48%, #eef4ff 100%);
}

.home-agent-system::before {
  content: "";
  position: absolute;
  inset: 22px;
  pointer-events: none;
  border-radius: 26px;
  border: 1px solid rgba(124, 58, 237, 0.12);
  background:
    radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.09), transparent 40%),
    linear-gradient(90deg, rgba(124, 58, 237, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(47, 109, 246, 0.035) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  mask-image: radial-gradient(circle at 62% 48%, black, transparent 78%);
}

.agent-system-copy,
.agent-system-map {
  position: relative;
  z-index: 1;
}

.agent-system-copy h2 {
  margin: 8px 0 12px;
  max-width: 660px;
  color: var(--ink);
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.agent-system-copy > p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.agent-system-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.agent-system-map::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0), rgba(124, 58, 237, 0.55), rgba(47, 109, 246, 0.45), rgba(124, 58, 237, 0));
  box-shadow: 0 0 26px rgba(124, 58, 237, 0.2);
}

.agent-system-map::after {
  content: "";
  position: absolute;
  left: 8%;
  top: calc(50% - 4px);
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #7c3aed;
  box-shadow: 0 0 22px rgba(124, 58, 237, 0.7);
  animation: agentFlowDot 5.8s ease-in-out infinite;
}

.agent-system-card {
  position: relative;
  min-width: 0;
  min-height: 230px;
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 24px;
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 255, 0.88));
  box-shadow: 0 22px 56px rgba(31, 20, 95, 0.1);
  backdrop-filter: blur(18px);
  animation: agentCardFloat 7s ease-in-out infinite;
  overflow: hidden;
}

.agent-system-card::before {
  content: "";
  position: absolute;
  inset: auto 18px 0 18px;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.1), rgba(47, 109, 246, 0.55), rgba(34, 197, 94, 0.24));
  opacity: 0.72;
}

.agent-system-card::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -44px;
  width: 118px;
  height: 118px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.13), transparent 68%);
}

.agent-system-card.message,
.agent-system-card.tracker {
  animation-delay: -2.4s;
}

.agent-system-card.review {
  animation-delay: -4.2s;
}

.agent-step-badge,
.outcome-step-badge {
  position: relative;
  display: block;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.34), transparent 30%),
    linear-gradient(135deg, #111827 0%, #312e81 48%, #6d28d9 100%);
  box-shadow: 0 16px 34px rgba(31, 20, 95, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.26);
  overflow: hidden;
}

.agent-step-badge em,
.outcome-step-badge em {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 22px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.04em;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 12px rgba(255, 255, 255, 0.38);
}

.agent-glyph {
  position: absolute;
  right: 22px;
  top: 22px;
  display: grid;
  width: 76px;
  height: 62px;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(47, 109, 246, 0.12));
  color: var(--purple);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.08), 0 14px 28px rgba(124, 58, 237, 0.08);
  text-transform: uppercase;
}

.agent-glyph::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 16px;
  border: 1px solid rgba(124, 58, 237, 0.13);
  opacity: 0.8;
}

.agent-system-card.message .agent-glyph {
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #2f6df6);
  box-shadow: 0 18px 34px rgba(124, 58, 237, 0.22);
}

.agent-system-card.review .agent-glyph {
  color: #047857;
  background: linear-gradient(135deg, rgba(220, 252, 231, 0.9), rgba(239, 246, 255, 0.9));
}

.agent-system-card.tracker .agent-glyph {
  color: #2563eb;
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.92), rgba(243, 232, 255, 0.9));
}

.agent-system-card strong {
  margin-top: 18px;
  color: var(--ink);
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.outcome-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.outcome-flow::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 42px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.12), rgba(124, 58, 237, 0.5), rgba(47, 109, 246, 0.45), rgba(34, 197, 94, 0.22));
  animation: flowLine 3.8s ease-in-out infinite;
}

.outcome-card {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  min-height: 270px;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 255, 0.9));
  box-shadow: 0 22px 54px rgba(31, 20, 95, 0.09);
  overflow: hidden;
  animation: afterCardLift 5.2s ease-in-out infinite;
}

.outcome-card:nth-child(2) {
  animation-delay: -1.2s;
}

.outcome-card:nth-child(3) {
  animation-delay: -2.4s;
}

.outcome-card:nth-child(4) {
  animation-delay: -3.6s;
}

.outcome-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 0 18px;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.08), rgba(47, 109, 246, 0.5), rgba(34, 197, 94, 0.26));
}

.outcome-step-badge {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.34), transparent 30%),
    linear-gradient(135deg, #111827 0%, #312e81 48%, #4f46e5 100%);
}

.outcome-step-badge em {
  font-size: 20px;
}

.outcome-card i {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 20px;
  color: #4f46e5;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(239, 246, 255, 0.95));
  font-size: 24px;
  font-style: normal;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.1), 0 16px 30px rgba(124, 58, 237, 0.08);
}

.outcome-card strong {
  color: var(--ink);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.outcome-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

@keyframes pageFlowDrop {
  0%,
  100% {
    opacity: 0.25;
    transform: translateY(-10px) scaleY(0.8);
  }
  50% {
    opacity: 1;
    transform: translateY(10px) scaleY(1);
  }
}

.agent-system-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

@keyframes agentFlowDot {
  0%, 8% {
    left: 8%;
    transform: translateY(0) scale(0.75);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  50% {
    left: 50%;
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  92%, 100% {
    left: 90%;
    transform: translateY(0) scale(0.75);
    opacity: 0;
  }
}

@keyframes agentCardFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.customer-export-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.pricing-panel {
  margin-bottom: 14px;
}

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

.pricing-card {
  display: grid;
  min-height: 340px;
  align-content: start;
  gap: 14px;
  box-shadow: 0 18px 46px rgba(31, 20, 95, 0.08);
}

.pricing-card.featured {
  border: 2px solid rgba(124, 58, 237, 0.42);
  box-shadow: 0 24px 56px rgba(124, 58, 237, 0.2);
}

.pricing-card h3 {
  margin: 0;
  font-size: 24px;
}

.price-line {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 6px 0 0;
}

.price-line strong {
  color: #111827;
  font-size: 48px;
  line-height: 1;
}

.price-line small {
  color: var(--muted);
  font-weight: 800;
}

.pricing-card p {
  margin: 0;
  color: var(--muted);
}

.pricing-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  position: relative;
  padding-left: 28px;
  color: #334155;
}

.pricing-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: #f3e8ff;
  color: #6d28d9;
  font-weight: 950;
}

.launch-stack {
  margin-bottom: 14px;
}

.launch-stack-grid {
  margin-bottom: 0;
}

.launch-stack-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
}

.launch-stack-card p {
  margin: 0;
  color: var(--muted);
}

.client-access-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #ffffff, #f7fbff);
}

.client-access-card h2,
.client-access-card p {
  margin-bottom: 4px;
}

.client-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.client-access-pill {
  min-width: 220px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  background: #fff;
}

.client-access-pill strong,
.client-access-pill small {
  display: block;
}

.client-access-pill small {
  color: var(--muted);
}

.workspace-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.25fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #ffffff, #f5f3ff);
}

.workspace-panel h2,
.workspace-panel p {
  margin-bottom: 4px;
}

.workspace-panel small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.workspace-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.workspace-actions {
  justify-content: flex-end;
}

.sample-output-grid {
  margin-bottom: 0;
}

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

.workflow-cards b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 50%;
  background: #f3e8ff;
  color: var(--teal);
}

.home-cta,
.page-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.page-title-row {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}

.page-title-row span {
  display: block;
  color: var(--teal);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.page-title-row h1 {
  margin: 4px 0;
  font-size: 30px;
}

.page-title-row p {
  margin: 0;
  color: var(--muted);
}

.page-back-row {
  display: flex;
  justify-content: flex-start;
  margin: 0 0 12px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 18px;
  align-items: center;
  min-height: 210px;
  margin-bottom: 14px;
  padding: 24px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(23, 32, 51, 0.98), rgba(15, 118, 110, 0.86)),
    var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
}

.compact-hero {
  min-height: 180px;
  padding: 22px;
}

.hero::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 120px;
  width: 120px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff, var(--amber));
  opacity: 0.75;
  animation: signalTrail 4.8s ease-in-out infinite;
}

@keyframes signalTrail {
  0% {
    transform: translate3d(0, 0, 0) rotate(-18deg);
    opacity: 0;
  }
  18% {
    opacity: 0.8;
  }
  100% {
    transform: translate3d(-260px, 150px, 0) rotate(-18deg);
    opacity: 0;
  }
}

.eyebrow,
.panel span,
.step-card span,
.output-card span,
.metric-card span,
label span,
.notice span {
  display: block;
  color: var(--teal);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #99f6e4;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 10px;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.08;
}

.hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
}

.hero-panel {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.11);
}

.hero-panel strong,
.hero-panel small {
  display: block;
  color: #fff;
}

.hero-panel small {
  color: rgba(255, 255, 255, 0.76);
}

.workflow-grid {
  display: grid;
  gap: 14px;
}

.dashboard-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.status-board,
.finish-steps,
.management-summary,
.checklist-grid,
.campaign-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.status-board article,
.finish-steps article,
.management-summary article,
.checklist-grid article,
.campaign-summary-card,
.recovery-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
}

.campaign-summary-card {
  display: grid;
  gap: 8px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.campaign-summary-card h3,
.campaign-summary-card p {
  margin: 0;
}

.campaign-summary-card p {
  color: var(--muted);
}

.mini-metrics {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-metrics b {
  border-radius: 999px;
  padding: 5px 8px;
  background: #f1f5f9;
  font-size: 12px;
}

.status-board article.good,
.finish-steps article.done,
.management-summary article.good,
.checklist-grid article.good {
  background: #f0fdf4;
}

.status-board article.bad,
.finish-steps article.warn,
.management-summary article.bad,
.checklist-grid article.warn {
  background: #fffbeb;
}

.status-board strong,
.finish-steps strong,
.management-summary strong,
.checklist-grid span {
  display: block;
}

.status-pill {
  display: inline-block;
  width: fit-content;
  margin-top: 6px;
  border-radius: 999px;
  padding: 4px 8px;
  background: #f1f5f9;
  color: var(--blue);
  font-weight: 900;
}

.mode-toggle {
  display: inline-flex;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  background: #f8fafc;
}

.mode-toggle button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: transparent;
  font-weight: 900;
}

.mode-toggle button.active {
  background: var(--teal);
  color: #fff;
}

.recovery-panel {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  background: #fffbeb;
}

.success-panel,
.completion-panel,
.blocked-notice,
.mail-preview-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.success-panel,
.blocked-notice,
.mail-preview-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.success-panel {
  margin-top: 12px;
  background: #f0fdf4;
}

.blocked-notice {
  margin-bottom: 14px;
  background: #fffbeb;
}

.completion-panel {
  margin-bottom: 12px;
  background: #f8fafc;
}

.completion-panel.good {
  background: #f0fdf4;
}

.completion-panel.warn {
  background: #fffbeb;
}

.completion-panel h3,
.completion-panel p,
.success-panel p,
.blocked-notice p {
  margin: 4px 0 0;
}

.mail-preview-card {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  background: #fbfdff;
}

.mail-preview-card p {
  margin: 0;
}

.mail-body-preview {
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  line-height: 1.5;
}

.home-layout,
.setup-layout {
  display: grid;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.lhs-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.lhs-panel button {
  display: grid;
  gap: 3px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px;
  background: transparent;
  text-align: left;
}

.lhs-panel button:hover,
.lhs-panel button.active {
  border-color: rgba(15, 118, 110, 0.25);
  background: #f3e8ff;
}

.lhs-panel strong,
.lhs-panel small {
  display: block;
}

.lhs-panel small {
  color: var(--muted);
  font-size: 12px;
}

.home-main,
.setup-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.campaign-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.campaign-toolbar input,
.campaign-toolbar select {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: #fff;
}

.campaign-toolbar input {
  flex: 1;
}

.campaign-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.my-campaigns-title {
  align-items: center;
}

.my-campaigns-panel {
  overflow: hidden;
}

.my-campaigns-toolbar {
  margin-bottom: 16px;
}

.my-campaigns-list {
  display: grid;
  gap: 14px;
}

.my-campaign-card {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(300px, 1.3fr) auto;
  gap: 18px;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: linear-gradient(135deg, #fff 0%, #f8fbff 100%);
  box-shadow: var(--shadow);
}

.my-campaign-name,
.my-campaign-stats,
.my-campaign-stats div {
  min-width: 0;
}

.my-campaign-name h2,
.my-campaign-name p {
  margin: 0;
}

.my-campaign-name h2 {
  margin-top: 8px;
  font-size: clamp(22px, 2vw, 30px);
}

.my-campaign-name p {
  margin-top: 6px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.my-campaign-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 10px;
  margin: 0;
}

.my-campaign-stats div {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.my-campaign-stats dt {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.my-campaign-stats dd {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.my-campaign-card > .primary {
  white-space: nowrap;
}

.my-campaign-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.my-campaign-actions button {
  white-space: nowrap;
}

.campaign-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.15fr) minmax(180px, 0.9fr) minmax(170px, 0.85fr) minmax(130px, 0.65fr) minmax(230px, 1fr);
  gap: 12px;
  min-width: 940px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.campaign-row > span {
  min-width: 0;
}

.campaign-row:last-child {
  border-bottom: 0;
}

.campaign-row.head {
  background: var(--navy);
  color: #fff;
  font-weight: 950;
}

.campaign-row strong,
.campaign-row small {
  display: block;
}

.campaign-row small {
  margin-top: 4px;
  color: var(--muted);
}

.campaign-row.head small,
.campaign-row.head span {
  color: #fff;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.progress-bars {
  position: relative;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.progress-bars i,
.progress-bars b {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  border-radius: inherit;
}

.progress-bars i {
  background: var(--teal);
}

.progress-bars b {
  height: 4px;
  margin-top: 5px;
  background: var(--amber);
}

.workflow-guide {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.guide-step {
  display: grid;
  gap: 5px;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.guide-step b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: #e0f2fe;
  color: var(--blue);
}

.guide-step span {
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.guide-step small {
  color: var(--muted);
  font-weight: 800;
}

.guide-step.active {
  border-color: var(--teal);
  background: #f3e8ff;
  box-shadow: inset 4px 0 0 var(--teal), var(--shadow);
}

.guide-step.done b {
  background: #dcfce7;
  color: var(--green);
}

.guide-step.locked {
  background: #f8fafc;
  opacity: 0.72;
}

.panel {
  padding: 22px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  min-width: 0;
  margin-bottom: 16px;
}

.modal-close-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.modal-close-button:hover {
  border-color: rgba(124, 58, 237, 0.34);
  color: var(--purple-deep);
}

.panel-head h2 {
  margin-bottom: 6px;
  font-size: 26px;
}

.panel-head p,
.muted {
  color: var(--muted);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mail-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.setup-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px;
  background: #fff;
}

.setup-card b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 50%;
  background: #eef6ff;
  color: var(--blue);
}

.setup-card.good {
  background: #f5f3ff;
  border-color: rgba(15, 118, 110, 0.28);
}

.setup-card.warn {
  background: #fffbeb;
  border-color: rgba(245, 158, 11, 0.35);
}

.status-banner {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: #f8fafc;
}

.status-banner.good {
  border-color: rgba(15, 118, 110, 0.28);
  background: #f5f3ff;
}

.status-banner.warn {
  border-color: rgba(245, 158, 11, 0.35);
  background: #fffbeb;
}

.status-banner strong {
  display: block;
  margin-top: 4px;
}

.mail-actions-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 12px;
}

.mail-simple-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.85fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #fff 0%, #f5f3ff 100%);
}

.mail-simple-hero.connected {
  background: linear-gradient(135deg, #fff 0%, #eff6ff 100%);
}

.mail-simple-hero h2 {
  max-width: 760px;
  margin-bottom: 8px;
  font-size: 34px;
  line-height: 1.12;
}

.mail-simple-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 16px;
}

.mail-simple-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.mail-simple-card strong {
  overflow-wrap: anywhere;
  font-size: 20px;
}

.mail-two-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.mail-path-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.mail-path-card b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #eef6ff;
  color: var(--blue);
}

.mail-path-card.active {
  border-color: rgba(15, 118, 110, 0.3);
  background: #f5f3ff;
}

.mail-path-card.active b {
  background: #ccfbf1;
  color: var(--teal);
}

.mail-path-card strong {
  display: block;
  margin: 4px 0;
  font-size: 18px;
}

.mail-path-card p {
  margin: 0;
  color: var(--muted);
}

.mail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 18px;
  align-items: stretch;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(37, 99, 235, 0.06) 42%, rgba(255, 255, 255, 0.94)),
    #fff;
}

.mail-hero h2 {
  max-width: 720px;
  margin-bottom: 10px;
  font-size: 34px;
  line-height: 1.12;
}

.mail-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 16px;
}

.mail-hero-action {
  display: grid;
  gap: 10px;
  align-content: center;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.88);
}

.mail-hero-action strong {
  overflow-wrap: anywhere;
  font-size: 20px;
}

.mail-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.mail-flow-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px;
  background: #fff;
  box-shadow: var(--shadow);
}

.mail-flow-step b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #eef6ff;
  color: var(--blue);
}

.mail-flow-step strong {
  display: block;
  margin: 3px 0;
}

.mail-flow-step p {
  margin: 0;
  color: var(--muted);
}

.mail-flow-step.good {
  border-color: rgba(15, 118, 110, 0.28);
  background: #f5f3ff;
}

.mail-flow-step.good b {
  background: #ccfbf1;
  color: var(--teal);
}

.mail-flow-step.warn {
  border-color: rgba(245, 158, 11, 0.35);
  background: #fffbeb;
}

.mail-flow-step.warn b {
  background: #fef3c7;
  color: var(--amber);
}

.mail-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 14px;
  margin-bottom: 14px;
}

.mail-proof-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.mail-proof-list p {
  margin: 0;
  border-left: 4px solid #cbd5e1;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
}

.owner-note {
  background: #172033;
  color: #fff;
}

.owner-note p,
.owner-note small {
  color: #cbd5e1;
}

.launch-routes {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.launch-routes div {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.launch-routes small {
  display: block;
  margin-top: 4px;
}

.setup-box {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px;
  background: #f8fafc;
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.setup-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.setup-grid code,
.setup-box code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  margin-right: 6px;
  border-radius: 6px;
  padding: 3px 6px;
  background: #eef2ff;
  color: var(--navy);
}

.campaign-grid,
.sequence-list {
  display: grid;
  gap: 12px;
}

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

.step-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  text-align: left;
}

.step-card.active {
  border-color: var(--teal);
  background: #f5f3ff;
  box-shadow: inset 4px 0 0 var(--teal), var(--shadow);
}

.step-card.locked {
  background: #f8fafc;
  color: var(--muted);
}

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

.campaign-basics-grid {
  gap: 18px 14px;
  align-items: end;
}

.campaign-brief {
  display: grid;
  gap: 14px;
}

.brief-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fbfdff;
}

.setup-section-intro {
  margin-bottom: 16px;
}

.setup-section-intro h3 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.15;
}

.setup-section-intro p,
.setup-help {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.setup-choice-grid,
.setup-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

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

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

.grouped-choice {
  min-width: 0;
  border: 1px solid rgba(124, 58, 237, 0.14);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.grouped-choice .choice-select select {
  min-height: 44px;
}

.setup-mini-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(124, 58, 237, 0.14);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.setup-mini-card > strong,
.guided-suggestions > div > strong {
  color: var(--ink);
  font-size: 15px;
}

.setup-mini-card > small {
  color: var(--muted);
  line-height: 1.45;
}

.setup-review-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.setup-review-group {
  display: grid;
  border: 1px solid rgba(124, 58, 237, 0.14);
  border-radius: 18px;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 255, 0.92));
  box-shadow: 0 16px 34px rgba(31, 20, 95, 0.06);
}

.setup-review-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.setup-review-group-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.setup-review-rows {
  display: grid;
  gap: 8px;
}

.setup-review-rows p {
  display: grid;
  grid-template-columns: minmax(130px, 0.36fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid rgba(219, 228, 239, 0.82);
}

.setup-review-rows p:first-child {
  border-top: 0;
  padding-top: 0;
}

.setup-review-rows span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.setup-review-rows strong {
  color: var(--ink);
  min-width: 0;
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.setup-review-rows strong.empty {
  color: #b45309;
  font-weight: 850;
}

.tiny {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
}

.guided-suggestions {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 12px;
  padding: 14px;
  background: linear-gradient(135deg, #fff, #fbfaff);
}

.inline-check {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
  color: var(--ink);
  font-weight: 800;
}

.inline-check input {
  width: auto;
  margin: 0;
}

.brief-section > span,
.angle-switcher > span {
  display: block;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.wide {
  grid-column: 1 / -1;
}

label input,
label textarea,
label select {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
}

label textarea {
  min-height: 88px;
  resize: vertical;
}

.quick-row,
.actions,
.output-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.step-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #f8fafc;
}

.step-footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.step-footer.busy {
  border-color: rgba(124, 58, 237, 0.35);
  background: linear-gradient(135deg, #faf5ff, #eff6ff);
  box-shadow: 0 14px 32px rgba(124, 58, 237, 0.12);
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #ffffff;
  display: inline-block;
  margin-right: 8px;
  vertical-align: -3px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.step-footer strong,
.step-footer small {
  display: block;
}

.step-footer small {
  color: var(--muted);
}

.subtle-details {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: #fff;
}

.subtle-details summary {
  cursor: pointer;
  font-weight: 850;
  color: var(--ink);
}

.subtle-details[open] summary {
  margin-bottom: 14px;
}

.quick-pill {
  padding: 8px 11px;
  font-size: 13px;
}

.quick-pill,
.choice-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.quick-pill.active,
.quick-pill.selected {
  border-color: var(--teal);
  background: #f3e8ff;
  color: var(--teal);
}

.remove-mark,
.selected-mark {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  color: var(--teal);
  font-size: 12px;
  line-height: 1;
}

.remove-mark {
  font-size: 15px;
}

.sequence-step {
  box-shadow: none;
}

.sequence-step.active {
  border-color: rgba(15, 118, 110, 0.36);
  box-shadow: inset 4px 0 0 var(--teal), var(--shadow);
}

.toggle {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: end;
}

.toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.drop-zone {
  display: grid;
  gap: 12px;
  border: 1px dashed #94a3b8;
  border-radius: 10px;
  padding: 22px;
  background: #f8fafc;
}

.hidden-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.format-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.format-tags code {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  background: #fff;
  color: var(--blue);
  font-weight: 850;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 12px;
}

.metric-card {
  min-width: 0;
  padding: 15px;
}

.metric-card strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  overflow-wrap: anywhere;
}

.metric-card.good {
  background: #f0fdf4;
}

.metric-card.warn {
  background: #fffbeb;
}

.metric-card.bad {
  background: #fef2f2;
}

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

.chip-section {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.chip-section strong,
.chip-section small {
  display: block;
}

.chip-section small {
  color: var(--muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-select select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
}

.muted-inline {
  color: var(--muted);
  font-size: 13px;
}

.choice-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.choice-chip.active {
  border-color: rgba(15, 118, 110, 0.55);
  background: #f3e8ff;
  color: var(--teal);
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.14);
}

.confirmation-summary {
  background: linear-gradient(135deg, #f8fafc, #f5f3ff);
}

.summary-block {
  margin-top: 14px;
}

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

.summary-grid p,
.chart-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
}

.summary-grid strong,
.summary-grid small {
  display: block;
}

.summary-grid small {
  margin-top: 4px;
  color: var(--muted);
}

.chart-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  overflow: hidden;
}

.chart-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.chart-head span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.chart-head strong {
  font-size: 24px;
  flex: 0 0 auto;
  line-height: 1;
  overflow-wrap: anywhere;
}

.bar-list,
.bar-row {
  display: grid;
  gap: 10px;
}

.bar-row {
  grid-template-columns: minmax(145px, 0.85fr) minmax(160px, 1fr);
  align-items: center;
  min-width: 0;
}

.bar-row strong,
.bar-row small {
  display: block;
}

.bar-row small {
  color: var(--muted);
}

.bar-row i {
  display: block;
  height: 12px;
  min-width: 0;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.suggestion-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.bar-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.stage-template-stack {
  display: grid;
  gap: 14px;
}

.plan-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 12px 0 18px;
}

.plan-preview-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
}

.plan-preview-grid b {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.22);
}

.plan-preview-grid span {
  display: block;
  margin-top: 14px;
  color: var(--violet);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.plan-preview-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--navy);
  font-size: 18px;
}

.plan-preview-grid small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.stage-template-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #f8fafc;
}

.template-preferences {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #f8fafc;
}

.preference-intro strong,
.preference-intro p {
  display: block;
  margin-bottom: 4px;
}

.recommendation-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.recommendation-card h3 {
  margin-bottom: 4px;
  font-size: 20px;
}

.recommendation-card p,
.recommendation-card small {
  display: block;
  margin: 0;
  color: var(--muted);
}

.mini-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mini-option {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
}

.mini-option.active {
  border-color: var(--teal);
  background: #f3e8ff;
  color: var(--teal);
}

.panel-head.compact {
  margin-bottom: 10px;
}

.panel-head.compact h3 {
  margin-bottom: 0;
  font-size: 18px;
}

.previous-campaigns-panel {
  margin: 0 0 18px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #fbf9ff 0%, #f5f9ff 100%);
}

.previous-campaigns-list {
  display: grid;
  gap: 8px;
}

.previous-campaign-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.previous-campaign-row > div {
  min-width: 0;
}

.previous-campaign-row strong,
.previous-campaign-row small {
  display: block;
}

.previous-campaign-row strong {
  overflow-wrap: anywhere;
}

.previous-campaign-row small {
  margin-top: 4px;
  color: var(--muted);
}

@media (max-width: 700px) {
  .previous-campaign-row {
    align-items: stretch;
    flex-direction: column;
  }

  .previous-campaign-row .ghost {
    width: 100%;
  }
}

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

.output-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.simple-output-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.simple-output-summary article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #f8fafc;
}

.simple-output-summary article.warn {
  border-color: rgba(180, 83, 9, 0.28);
  background: #fff7ed;
}

.simple-output-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 24px;
}

.output-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.output-status article {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #f8fafc;
}

.output-status strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

.execution-plan {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: linear-gradient(135deg, #f8fafc, #ecfeff);
}

.execution-plan > div:first-child span,
.signature-preview span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.execution-plan h3 {
  margin: 6px 0;
  color: var(--navy);
}

.execution-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.execution-steps article {
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  padding: 14px;
  background: #fff;
  min-height: 140px;
}

.execution-steps b {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.78rem;
}

.execution-steps strong,
.execution-steps span,
.execution-steps small {
  display: block;
  margin-top: 8px;
}

.execution-steps small {
  color: var(--muted);
  line-height: 1.45;
}

.signature-preview {
  margin-top: 16px;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 16px;
  background: #f8fafc;
}

.signature-preview pre {
  margin: 10px 0 0;
  white-space: pre-wrap;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--navy);
}

.output-card.complete {
  border-color: rgba(15, 118, 110, 0.3);
  background: #f5f3ff;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.template-card,
.output-card {
  display: grid;
  gap: 8px;
  border-radius: 10px;
  padding: 16px;
  text-align: left;
}

.template-card.active {
  border-color: var(--teal);
  background: #f5f3ff;
}

.template-card p,
.output-card p {
  margin: 0;
  color: var(--muted);
}

.draft-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.draft-toolbar input {
  width: min(360px, 100%);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
}

.review-decision-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 14px;
}

.draft-review-note {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.batch-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.submit-drafts-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
}

.submit-drafts-card span {
  display: block;
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.submit-drafts-card p {
  margin: 4px 0 0;
  color: var(--muted);
}

.gmail-progress-card {
  margin: 14px 0;
  padding: 16px;
  border: 1px solid rgba(47, 109, 246, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(47, 109, 246, 0.08), rgba(124, 58, 237, 0.08));
  display: grid;
  gap: 12px;
}

.gmail-progress-card span {
  display: block;
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gmail-progress-card strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
}

.gmail-progress-card p {
  margin: 4px 0 0;
  color: var(--muted);
}

.gmail-progress-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.18);
}

.gmail-progress-meter i {
  display: block;
  height: 100%;
  min-width: 8px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  transition: width 0.2s ease;
}

.draft-table {
  overflow-x: auto;
  border-radius: var(--radius);
}

.table-row {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(180px, 1fr) minmax(120px, 0.7fr) minmax(250px, 1.25fr) minmax(125px, 0.75fr) minmax(150px, 0.7fr);
  gap: 12px;
  min-width: 1120px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.table-row > span {
  min-width: 0;
}

.lead-table .table-row {
  grid-template-columns: minmax(210px, 1fr) minmax(210px, 1fr) minmax(130px, 0.7fr) minmax(280px, 1.35fr) minmax(105px, 0.55fr);
}

.review-only .table-row {
  grid-template-columns: minmax(210px, 1fr) minmax(210px, 1fr) minmax(140px, 0.7fr) minmax(260px, 1.15fr) minmax(120px, 0.5fr);
  min-width: 940px;
}

.table-row:last-child {
  border-bottom: 0;
}

.table-row.head {
  display: grid;
  align-items: center;
  background: var(--navy);
  color: #fff;
  font-weight: 950;
}

.table-row.head span,
.table-row.head {
  color: #fff;
}

.table-row.head span {
  display: block;
}

.table-row:not(.head):hover {
  background: #f8fafc;
}

.table-row.row-status-sent {
  background: #f0fdf4;
  box-shadow: inset 4px 0 0 rgba(15, 139, 98, 0.72);
}

.table-row.row-status-replied {
  background: #ecfeff;
  box-shadow: inset 4px 0 0 rgba(14, 116, 144, 0.72);
}

.table-row.row-status-muted {
  background: #f8fafc;
  box-shadow: inset 4px 0 0 rgba(100, 116, 139, 0.55);
}

.table-row.row-status-warning {
  background: #fffbeb;
  box-shadow: inset 4px 0 0 rgba(180, 83, 9, 0.72);
}

.table-row strong,
.table-row small {
  display: block;
}

.table-row small {
  color: var(--muted);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-button {
  min-height: 28px;
  border: 1px solid rgba(124, 58, 237, 0.24);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(124, 58, 237, 0.08);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
}

.mini-button.subtle {
  border-color: var(--line);
  background: #f8fafc;
  color: var(--muted);
}

.mini-button.active-status {
  border-color: rgba(15, 139, 98, 0.4);
  background: #dcfce7;
  color: #166534;
}

.sent-update-panel,
.tracker-preview,
.mail-permission-note,
.qa-panel,
.handover-hero {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.mail-permission-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-color: rgba(124, 58, 237, 0.22);
  background: #f5f3ff;
}

.mail-permission-note strong {
  color: var(--teal);
  white-space: nowrap;
}

.mail-permission-note span {
  color: var(--muted);
}

.sent-update-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 18px;
  align-items: center;
  background: linear-gradient(135deg, #ffffff, #f5f3ff);
}

.sent-update-panel span,
.tracker-preview .panel-head span,
.handover-checklist > span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sent-update-panel h3 {
  margin: 6px 0;
  color: var(--navy);
}

.sent-update-control {
  display: grid;
  gap: 10px;
}

.sent-count-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sent-count-choice {
  border: 1px solid rgba(124, 58, 237, 0.24);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 900;
  padding: 10px 14px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.sent-count-choice:hover,
.sent-count-choice:focus-visible {
  border-color: rgba(124, 58, 237, 0.55);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.16);
  transform: translateY(-1px);
  outline: none;
}

.sent-count-choice.active {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.24);
  color: #fff;
}

.sent-update-control label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.sent-update-control input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff;
}

.qa-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 16px;
  align-items: start;
  background: #f8fafc;
}

.qa-panel.good {
  border-color: rgba(15, 139, 98, 0.28);
  background: #f5f3ff;
}

.qa-panel.warn {
  border-color: rgba(180, 83, 9, 0.28);
  background: #fff7ed;
}

.qa-panel span,
.handover-hero span,
.handover-grid b {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qa-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.qa-list article {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.qa-list article.good b {
  color: var(--green);
}

.qa-list article.warn b {
  color: var(--amber);
}

.qa-list span,
.qa-list small {
  display: block;
  letter-spacing: 0;
  text-transform: none;
}

.handover-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.25fr);
  gap: 18px;
  align-items: center;
  background: linear-gradient(135deg, #ffffff, #ecfeff);
}

.handover-score {
  display: grid;
  min-height: 130px;
  place-items: center;
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 18px;
  background: #fff;
  text-align: center;
}

.handover-score strong {
  color: var(--navy);
  font-size: 42px;
  line-height: 1;
}

.handover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.handover-grid article {
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.handover-grid strong,
.handover-grid p {
  display: block;
  margin: 8px 0 0;
}

.handover-grid p {
  color: var(--muted);
}

.status-text.good {
  color: var(--green);
}

.status-text.bad {
  color: var(--red);
}

.link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 900;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mapping-grid,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mapping-card,
.detail-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
}

.mapping-status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: #f8fafc;
}

.mapping-status.good {
  border-color: rgba(15, 139, 98, 0.28);
  background: #f0fdf4;
}

.mapping-status.warn {
  border-color: rgba(180, 83, 9, 0.28);
  background: #fff7ed;
}

.mapping-status strong,
.mapping-status span {
  display: block;
}

.mapping-status span {
  color: var(--muted);
}

.mapping-card.good {
  background: #f0fdf4;
}

.mapping-card.warn {
  background: #fffbeb;
}

.mapping-card strong,
.detail-card strong {
  display: block;
  margin-top: 4px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.44);
}

.modal-panel {
  width: min(760px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

.client-access-modal {
  width: min(680px, 100%);
}

.account-profile-modal,
.support-ticket-modal {
  width: min(860px, 100%);
}

.account-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.account-profile-grid .detail-card {
  min-height: 118px;
  background: linear-gradient(145deg, #ffffff, #f8fbff);
}

.account-help-card {
  margin: 16px 0 4px;
  padding: 18px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.12), transparent 34%),
    #fbfaff;
}

.account-help-card span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--purple-deep);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.account-help-card h3 {
  margin: 0 0 8px;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: var(--ink);
}

.account-help-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.support-ticket-modal textarea {
  min-height: 128px;
}

.support-upload-row input[type="file"] {
  padding: 16px;
  background: #fff;
}

.mobile-workflow-modal {
  width: min(640px, 100%);
}

.mobile-workflow-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.mobile-workflow-options article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}

.mobile-workflow-options strong {
  display: block;
  color: var(--ink);
}

.mobile-workflow-options p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.modal-workspace-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.access-choice-modal {
  width: min(1080px, 100%);
}

.access-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.access-choice-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #f8faff);
}

.access-choice-card h3 {
  margin: 8px 0 6px;
  color: var(--ink);
  font-size: 1.45rem;
}

.access-choice-card > p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.45;
}

.access-choice-eyebrow {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.access-choice-form {
  gap: 10px;
  margin-bottom: 0;
}

.access-choice-form label:first-child,
.access-choice-form .span-2 {
  grid-column: 1 / -1;
}

.access-code-form {
  margin-top: 20px;
}

.access-choice-note {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.access-choice-note a,
.access-contact-note a {
  color: var(--blue);
}

.access-choice-card .access-confirmation {
  margin-top: 14px;
}

.public-footer nav {
  align-items: center;
}

.footer-data-controls {
  position: relative;
}

.footer-data-controls summary {
  cursor: pointer;
  color: var(--muted);
}

.footer-data-controls > div {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 20;
  display: grid;
  min-width: 210px;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.client-access-modal .modal-workspace-form label:first-child {
  grid-column: 1 / -1;
}

.modal-workspace-form .span-2,
.modal-workspace-form .access-form-hint,
.modal-workspace-form .access-email-warning {
  grid-column: 1 / -1;
}

.required-marker {
  color: #b91c1c;
  font-weight: 900;
  margin-left: 3px;
}

.modal-workspace-form .access-form-hint {
  margin: -6px 0 2px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.modal-workspace-form .access-email-warning {
  margin: -4px 0 4px;
  padding: 10px 12px;
  border: 1px solid rgba(185, 28, 28, 0.24);
  border-radius: 12px;
  background: #fff1f2;
  color: #991b1b;
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.35;
}

.modal-workspace-form .access-email-warning[hidden] {
  display: none;
}

.modal-workspace-form textarea {
  min-height: 96px;
  resize: vertical;
}

.client-access-actions {
  align-items: center;
  margin-top: 6px;
}

.access-confirmation,
.access-feedback {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  background: #f0fdf4;
  color: var(--ink);
}

.access-confirmation span {
  display: inline-block;
  margin-bottom: 8px;
  color: #15803d;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.access-confirmation strong,
.access-confirmation p,
.access-confirmation small,
.access-feedback strong,
.access-feedback p {
  display: block;
}

.access-confirmation p,
.access-feedback p {
  margin: 6px 0;
}

.access-confirmation small {
  color: var(--muted);
}

.access-feedback.error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.modal-workspace-form.visually-secondary {
  margin-top: 4px;
  opacity: 0.72;
}

.account-settings {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.account-settings summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 800;
}

.account-settings p {
  margin: 10px 0 12px;
  color: var(--muted);
}

.compact-actions {
  gap: 8px;
}

.email-preview textarea {
  min-height: 280px;
}

.email-preview .panel-head {
  position: sticky;
  top: 0;
  z-index: 4;
  margin: -20px -20px 16px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.98) 88%, rgba(255, 255, 255, 0.92) 100%);
}

.email-preview .panel-head .ghost {
  flex: 0 0 auto;
}

.mobile-modal-actions {
  display: none;
}

.angle-switcher {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}

.feedback-assistant {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid rgba(47, 109, 246, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(47, 109, 246, 0.06), rgba(124, 58, 237, 0.06));
  display: grid;
  gap: 14px;
}

.feedback-assistant h3 {
  margin: 4px 0 6px;
  font-size: 1.2rem;
}

.mini-label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feedback-assistant textarea {
  min-height: 72px;
}

.feedback-assistant .actions {
  align-items: center;
  justify-content: flex-start;
}

.notice {
  padding: 16px;
  background: #fffdf4;
}

.notice strong,
.notice small {
  display: block;
}

.route-map {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.route-map article {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}

.route-map b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 50%;
  background: #f3e8ff;
  color: var(--teal);
}

@media (max-width: 960px) {
  .public-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-pipeline,
  .home-transform {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-agent-system {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

  .pipeline-flow::before {
    display: none;
  }

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

  .outcome-flow::before {
    display: none;
  }

  .agent-system-map::before {
    display: none;
  }

  .transform-arrow {
    margin: 0 auto;
    transform: rotate(90deg);
  }

  .home-hero,
  .home-command-center,
  .home-output-lab,
  .client-access-card,
  .workspace-panel,
  .workspace-form,
  .product-overview,
  .workflow-cards,
  .simple-steps,
  .agent-workflow-map,
  .pricing-grid,
  .launch-stack-grid,
  .sample-output,
  .sample-output-grid,
  .hero,
  .dashboard-strip,
  .status-board,
  .campaign-card-grid,
  .finish-steps,
  .management-summary,
  .checklist-grid,
  .choice-grid,
  .mail-status-grid,
  .mail-actions-panel,
  .mail-simple-hero,
  .mail-two-paths,
  .mail-hero,
  .mail-flow,
  .mail-split,
  .home-layout,
  .setup-layout,
  .setup-grid,
  .form-grid,
  .metrics,
  .template-grid,
  .compact-grid,
  .output-grid,
  .output-status,
  .execution-steps,
  .sent-update-panel,
  .qa-panel,
  .qa-list,
  .handover-hero,
  .handover-grid,
  .mis-grid,
  .summary-grid,
  .report-grid,
  .workflow-guide,
  .route-map,
  .my-campaign-card,
  .my-campaign-stats,
  .campaign-grid {
    grid-template-columns: 1fr;
  }

  .my-campaign-card {
    align-items: stretch;
  }

  .my-campaign-card > .primary {
    width: 100%;
  }

  .my-campaign-actions {
    justify-content: stretch;
  }

  .my-campaign-actions button {
    flex: 1 1 160px;
  }

  .command-orbit {
    min-height: 430px;
  }

  .output-lab-grid {
    grid-template-columns: 1fr;
  }

  .output-workbook-preview {
    grid-row: auto;
  }

  .customer-export-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .simple-steps::before {
    display: none;
  }

  .lhs-panel {
    position: static;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "brand"
      "progress"
      "actions";
  }

  .topbar > .ghost,
  .topbar-actions {
    display: inline-flex;
    width: 100%;
  }

  .topbar-actions {
    justify-content: stretch;
  }

  .topbar-actions > button {
    flex: 1 1 0;
  }

  .mobile-topbar-menu {
    display: none;
  }

  .campaign-context-bar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .progress {
    grid-column: auto;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow-x: visible;
  }

  .progress button {
    flex: 1 1 calc(50% - 8px);
    min-width: 132px;
  }

  .hero {
    min-height: 0;
  }

  .home-hero {
    min-height: 0;
    padding: 16px;
  }

  .home-hero h1 {
    font-size: 28px;
  }

  .home-hero p {
    font-size: 14px;
  }

  .home-visual.magic-flow {
    display: block;
    min-height: 360px;
    margin-top: 8px;
  }

  .chart-head {
    align-items: flex-start;
  }

  .panel-head,
  .home-cta,
  .page-title-row,
  .recovery-panel,
  .success-panel,
  .blocked-notice,
  .mail-preview-top,
  .draft-toolbar,
  .recommendation-card,
  .review-decision-card,
  .step-footer {
    display: grid;
  }

  .step-footer-actions {
    justify-content: flex-start;
  }

  .batch-choice-row {
    justify-content: flex-start;
  }

  .client-access-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-shell {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    padding: 10px;
    overflow-x: hidden;
  }

  .app-shell > * {
    min-width: 0;
    max-width: 100%;
  }

  .topbar {
    position: static;
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand mobile-menu";
    align-items: center;
    padding: 12px 14px;
  }

  .topbar > *,
  .home-hero > * {
    min-width: 0;
    max-width: 100%;
  }

  .progress {
    display: none;
  }

  .topbar-actions {
    display: none;
  }

  .mobile-topbar-menu {
    grid-area: mobile-menu;
    position: relative;
    display: block;
    justify-self: end;
  }

  .mobile-topbar-menu summary {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(124, 58, 237, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #4c1d95;
    cursor: pointer;
    font-size: 20px;
    font-weight: 950;
    box-shadow: 0 12px 26px rgba(31, 20, 95, 0.1);
  }

  .mobile-topbar-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 30;
    display: grid;
    width: min(260px, calc(100vw - 36px));
    gap: 8px;
    border: 1px solid rgba(124, 58, 237, 0.18);
    border-radius: 18px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 54px rgba(31, 20, 95, 0.18);
  }

  .mobile-topbar-panel button {
    width: 100%;
    min-height: 40px;
    border: 1px solid rgba(124, 58, 237, 0.16);
    border-radius: 999px;
    background: #fff;
    color: #111827;
    font-size: 13px;
    font-weight: 900;
  }

  .mobile-topbar-panel button.active {
    border-color: transparent;
    background: linear-gradient(135deg, #7c3aed, #2f6df6);
    color: #fff;
  }

  .mobile-topbar-panel button.locked {
    opacity: 0.58;
  }

  .home-hero {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 16px;
    overflow: hidden;
  }

  .home-visual.magic-flow {
    width: 100%;
    min-height: 300px;
    border-radius: 22px;
  }

  .home-visual.magic-flow .visual-beam {
    left: 42px;
    right: 42px;
    top: 138px;
  }

  .home-visual.magic-flow .bulk-file-zone,
  .home-visual.magic-flow .email-output-zone {
    top: 50px;
    width: 104px;
    min-height: 178px;
    padding: 12px 10px;
  }

  .home-visual.magic-flow .bulk-file-zone {
    left: 10px;
  }

  .home-visual.magic-flow .email-output-zone {
    right: 10px;
  }

  .home-visual.magic-flow .personalise-zone {
    top: 36px;
    width: 116px;
    min-height: 196px;
    padding: 12px 9px;
  }

  .home-visual.magic-flow .step-badge {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .home-visual.magic-flow .bulk-file-zone > strong,
  .home-visual.magic-flow .personalise-zone > strong,
  .home-visual.magic-flow .email-output-zone > strong {
    margin-top: 11px;
    font-size: 13px;
    line-height: 1.16;
  }

  .home-visual.magic-flow .personalise-zone small {
    max-width: 94px;
    margin-top: 9px;
    font-size: 10px;
    line-height: 1.25;
  }

  .home-visual.magic-flow .ai-gem {
    width: 66px;
    height: 66px;
    margin-top: 12px;
    border-radius: 21px;
    font-size: 21px;
  }

  .home-visual.magic-flow .ai-gem::before {
    inset: -11px;
  }

  .home-visual.magic-flow .file-cluster,
  .home-visual.magic-flow .email-cluster {
    min-height: 100px;
    margin-top: 14px;
  }

  .home-visual.magic-flow .lead-file {
    width: 58px;
    height: 60px;
    gap: 6px;
    padding: 9px;
  }

  .home-visual.magic-flow .lead-file b {
    font-size: 11px;
  }

  .home-visual.magic-flow .lead-file.file-main {
    left: 23px;
    top: 31px;
  }

  .home-visual.magic-flow .lead-file.file-back {
    width: 52px;
    height: 52px;
  }

  .home-visual.magic-flow .email-mini {
    width: 52px;
    height: 64px;
    padding: 10px 8px;
  }

  .home-visual.magic-flow .email-mini.four {
    display: none;
  }

  .home-visual.magic-flow .output-ribbon {
    bottom: 18px;
    width: calc(100% - 28px);
    justify-content: center;
    gap: 6px;
  }

  .home-visual.magic-flow .output-ribbon span {
    min-height: 32px;
    flex: 1 1 0;
    justify-content: center;
    padding: 7px 6px;
    font-size: 9.5px;
  }

  .product-overview,
  .home-pipeline,
  .home-transform,
  .home-agent-system,
  .home-command-center,
  .home-output-lab,
  .home-final-cta,
  .public-footer {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    min-width: 0;
    overflow: hidden;
  }

  .command-orbit,
  .output-lab-grid,
  .command-path,
  .command-path article,
  .output-lab-grid article,
  .pipeline-flow,
  .pipeline-card,
  .transform-stage,
  .transform-board,
  .agent-system-map,
  .agent-system-card {
    min-width: 0;
    max-width: 100%;
  }

  .home-hero > div,
  .home-hero h1,
  .home-hero p,
  .pipeline-intro,
  .pipeline-intro h2,
  .pipeline-intro p,
  .transform-copy,
  .transform-copy h2,
  .transform-copy p,
  .agent-system-copy,
  .agent-system-copy h2,
  .agent-system-copy p,
  .command-copy,
  .command-copy h2,
  .command-copy p,
  .output-lab-copy,
  .output-lab-copy h2,
  .output-lab-copy p {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero {
    padding: 18px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero-panel {
    display: none;
  }

.hero::after {
    display: none;
  }

  .actions button,
  .actions a,
  .output-actions button,
  .primary,
  .ghost,
  .soft-button {
    width: 100%;
  }

  .mobile-workflow-options {
    grid-template-columns: 1fr;
  }

  .home-pipeline,
  .home-transform,
  .home-agent-system {
    padding: 24px;
  }

  .pipeline-flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .pipeline-card {
    min-height: 218px;
  }

  .transform-board {
    min-height: 0;
  }

  .agent-system-map {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .agent-system-card {
    min-height: 0;
  }

  .outcome-card {
    min-height: 0;
  }

  .modal-backdrop {
    display: block;
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
    overflow: hidden;
  }

  .modal-panel {
    width: 100%;
    max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-y: auto;
    border-radius: 18px;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  @supports not (height: 100dvh) {
    .modal-panel {
      max-height: calc(100vh - 20px);
    }
  }

  .email-preview .panel-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    top: -16px;
    margin: -16px -16px 14px;
    padding: 14px 16px 12px;
  }

  .email-preview .panel-head h2 {
    font-size: 24px;
    line-height: 1.12;
  }

  .email-preview .panel-head p {
    overflow-wrap: anywhere;
  }

  .email-preview .panel-head .ghost {
    min-height: 44px;
  }

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

  .email-preview .detail-card {
    min-height: auto;
    padding: 12px;
  }

  .email-preview .detail-card strong {
    overflow-wrap: anywhere;
  }

  .email-preview input,
  .email-preview textarea {
    font-size: 16px;
  }

  .email-preview textarea {
    min-height: 220px;
  }

  .mobile-modal-actions {
    position: sticky;
    bottom: -16px;
    z-index: 4;
    display: grid;
    margin: 14px -16px -16px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), #ffffff);
  }
}

@media (max-width: 420px) {
  .email-preview .detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.preset-panel,
.sample-file-panel,
.output-preference-panel,
.accepted-columns,
.field-warning {
  margin: 14px 0;
  border: 1px solid #DDD6FE;
  background: linear-gradient(135deg, #FBFAFF, #FFFFFF);
  border-radius: 8px;
  padding: 14px;
}

.preset-panel > div:first-child,
.sample-file-panel > div:first-child,
.output-preference-panel > div:first-child {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.preset-panel strong,
.sample-file-panel strong,
.output-preference-panel strong,
.accepted-columns strong,
.field-warning strong {
  color: #241044;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.preset-card {
  appearance: none;
  text-align: left;
  border: 1px solid #C4B5FD;
  background: #FFFFFF;
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 5px;
  cursor: pointer;
}

.preset-card:hover,
.preset-card:focus {
  border-color: #7C3AED;
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.14);
}

.preset-card span,
.sample-file-panel span,
.output-preference-panel span {
  color: #7C3AED;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preset-card strong {
  font-size: 14px;
}

.preset-card small,
.accepted-columns p,
.field-warning span {
  color: #607086;
  font-size: 12px;
  line-height: 1.45;
}

.sample-file-panel,
.output-preference-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.suppression-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
  align-items: start;
  margin: 14px 0;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 14px;
  background: #fff7ed;
}

.suppression-panel strong,
.suppression-panel p {
  display: block;
  margin: 4px 0 0;
}

.suppression-panel p {
  color: var(--muted);
}

.segmented-actions {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  border: 1px solid #C4B5FD;
  border-radius: 999px;
  padding: 4px;
  background: #FFFFFF;
}

.segmented-actions button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 9px 12px;
  font-weight: 800;
  color: #516174;
  cursor: pointer;
}

.segmented-actions button.active {
  background: #7C3AED;
  color: #FFFFFF;
}

.field-warning {
  border-color: #F4B38E;
  background: #FFF7ED;
}

@media (max-width: 820px) {
  .preset-grid,
  .setup-choice-grid,
  .setup-choice-grid.two,
  .setup-card-grid,
  .form-grid.three,
  .form-grid.compact.three,
  .sample-file-panel,
  .output-preference-panel,
  .suppression-panel {
    grid-template-columns: 1fr;
  }

  .setup-review-card,
  .setup-review-rows p {
    grid-template-columns: 1fr;
  }

  .segmented-actions {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .home-command-center,
  .home-output-lab {
    padding: 24px;
  }

  .command-orbit {
    min-height: 360px;
  }

  .orbit-ring {
    inset: 46px;
  }

  .orbit-ring.inner {
    inset: 108px;
  }

  .orbit-core {
    width: 124px;
    height: 124px;
    border-radius: 32px;
  }

  .orbit-core b {
    font-size: 30px;
  }

  .orbit-core small {
    margin-top: -34px;
    font-size: 10px;
  }

  .orbit-card {
    width: 168px;
    padding: 13px;
  }

  .orbit-card strong {
    font-size: 14px;
  }

  .card-input {
    top: 18px;
    left: 0;
  }

  .card-ai {
    top: 102px;
    right: 0;
  }

  .card-review {
    bottom: 20px;
    left: 22px;
  }

  .command-path article {
    grid-template-columns: 46px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-overview article,
  .product-overview article::after,
  .orbit-ring {
    animation: none;
  }

  .product-overview article:hover {
    transform: none;
  }
}

/* GTM Flare after-hero refresh */
.home-agent-system,
.home-transform,
.home-final-cta {
  display: none;
}

.gtmf-after-section {
  max-width: 1560px;
  margin: 32px auto;
  border: 1px solid rgba(124, 58, 255, 0.18);
  border-radius: 28px;
  background: linear-gradient(150deg, #ffffff 0%, #f7f4ff 54%, #eee8ff 100%);
  box-shadow: 0 24px 70px rgba(31, 20, 95, 0.1);
  overflow: hidden;
  position: relative;
}

.gtmf-after-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(124, 58, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 255, 0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.gtmf-agents-section,
.gtmf-transform-section {
  display: grid;
  position: relative;
  z-index: 1;
}

.gtmf-agents-section {
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: 36px;
  align-items: center;
  padding: 64px 44px;
}

.gtmf-section-copy h2,
.gtmf-transform-copy h2,
.gtmf-cta-section h2 {
  font-family: "Sora", var(--font);
  color: var(--ink);
  letter-spacing: -1.3px;
  line-height: 1.05;
  margin: 0;
}

.gtmf-section-copy h2 {
  font-size: clamp(32px, 3.1vw, 50px);
  max-width: 500px;
}

.gtmf-section-copy > p,
.gtmf-transform-copy > p,
.gtmf-cta-section p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 16px;
  margin: 18px 0 0;
}

.gtmf-proof-row {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.gtmf-proof-row span {
  padding: 16px 18px;
  border: 1px solid rgba(124, 58, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(31, 20, 95, 0.05);
}

.gtmf-proof-row strong,
.gtmf-proof-row small {
  display: block;
}

.gtmf-proof-row strong {
  color: var(--ink);
}

.gtmf-proof-row small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.gtmf-agent-network {
  min-height: 520px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.gtmf-agent-network::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 50%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 255, 0.34), rgba(45, 139, 255, 0.2), transparent);
  transform: translateY(-50%);
}

.gtmf-agent-network::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 10%;
  bottom: 10%;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(124, 58, 255, 0.3), rgba(45, 139, 255, 0.18), transparent);
  transform: translateX(-50%);
}

.gtmf-agent-network canvas,
.gtmf-transform-board canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
}

.gtmf-agent-card {
  position: relative;
  z-index: 1;
  min-height: 218px;
  border-radius: 26px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(124, 58, 255, 0.14);
  box-shadow: 0 18px 48px rgba(124, 58, 255, 0.1);
  animation: gtmfFloat 7s ease-in-out infinite;
}

.gtmf-agent-card:nth-of-type(3) {
  animation-delay: 0.8s;
}

.gtmf-agent-card:nth-of-type(4) {
  animation-delay: 1.5s;
}

.gtmf-agent-card:nth-of-type(5) {
  animation-delay: 2.2s;
}

.gtmf-agent-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 58px rgba(124, 58, 255, 0.14);
}

.gtmf-agent-number {
  width: 54px;
  height: 54px;
  border-radius: 17px;
  background: radial-gradient(circle at 34% 26%, rgba(255,255,255,0.9) 0 4px, transparent 18px), linear-gradient(135deg, #111827, #5b21b6 72%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.02em;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 32px rgba(91, 33, 182, 0.24);
}

.gtmf-agent-tag {
  position: absolute;
  top: 26px;
  right: 26px;
  min-width: 70px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ede9fe, #f8f5ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  color: #4f46e5;
  box-shadow: inset 0 0 0 1px rgba(124, 58, 255, 0.08);
}

.gtmf-agent-card strong {
  display: block;
  margin-top: 34px;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.5px;
}

.gtmf-agent-card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 14px 0 0;
}

.gtmf-transform-section {
  grid-template-columns: minmax(260px, 0.72fr) minmax(600px, 1.35fr);
  gap: 38px;
  padding: 64px 52px;
  align-items: center;
}

.gtmf-transform-copy h2 {
  font-size: clamp(36px, 3.8vw, 62px);
  max-width: 430px;
}

.gtmf-transform-copy .actions {
  margin-top: 24px;
}

.gtmf-transform-board {
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) 92px minmax(250px, 1.12fr);
  gap: 24px;
  align-items: center;
  min-height: 420px;
}

.gtmf-before-card,
.gtmf-after-card {
  position: relative;
  z-index: 1;
  border-radius: 28px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(124, 58, 255, 0.14);
  box-shadow: 0 18px 46px rgba(31, 20, 95, 0.08);
}

.gtmf-before-card span,
.gtmf-after-card span {
  color: #7c3aff;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 900;
}

.gtmf-before-card strong,
.gtmf-after-card strong {
  display: block;
  margin: 12px 0 20px;
  font-size: 28px;
  color: var(--ink);
  letter-spacing: -0.4px;
}

.gtmf-before-card small,
.gtmf-after-card > small {
  display: block;
  margin-top: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.gtmf-mini-sheet {
  display: grid;
  grid-template-columns: 1fr 1fr 30px;
  gap: 12px;
  padding: 22px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.gtmf-mini-sheet i {
  height: 12px;
  border-radius: 999px;
  background: #dbe4f4;
}

.gtmf-mini-sheet i.warn {
  background: #fed7aa;
  position: relative;
}

.gtmf-mini-sheet i.warn::after {
  content: "!";
  position: absolute;
  right: 8px;
  top: -7px;
  font-size: 13px;
  color: #ea580c;
  font-weight: 900;
}

.gtmf-core-orb {
  z-index: 2;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7c3aff, #2563eb);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 20px 45px rgba(124, 58, 255, 0.35);
  animation: gtmfPulse 3.6s ease-in-out infinite;
  justify-self: center;
}

.gtmf-after-card ul {
  display: grid;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}

.gtmf-after-card li {
  background: #ecfeff;
  border: 1px solid #bae6fd;
  border-radius: 18px;
  padding: 16px;
}

.gtmf-after-card b,
.gtmf-after-card small {
  display: block;
}

.gtmf-after-card small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.55;
}

.gtmf-cta-section {
  text-align: center;
  padding: 82px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.gtmf-cta-mark {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #7c3aff, #9333ea);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 18px 48px rgba(124, 58, 255, 0.36);
}

.gtmf-cta-section h2 {
  max-width: 760px;
  font-size: clamp(34px, 4vw, 56px);
}

.gtmf-cta-section p {
  max-width: 620px;
  margin: 0;
}

.gtmf-demo-section {
  max-width: 1560px;
  margin: 32px auto;
  padding: 46px 44px;
  border: 1px solid rgba(124, 58, 255, 0.18);
  border-radius: 28px;
  background: #f5f1fc;
  box-shadow: 0 24px 70px rgba(31, 20, 95, 0.1);
  overflow: hidden;
}

.gtmf-demo-inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.76fr) minmax(0, 1.24fr);
  gap: 34px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
}

.gtmf-demo-intro {
  max-width: 430px;
  margin: 0;
  text-align: left;
}

.gtmf-demo-intro h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Sora", var(--font);
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: 1.06;
  letter-spacing: -1.2px;
}

.gtmf-demo-intro p:last-child {
  margin: 16px 0 0;
  max-width: 420px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.gtmf-demo-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.gtmf-demo-points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(124, 58, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #4c1d95;
  font-size: 13px;
  font-weight: 900;
}

.gtmf-demo-card {
  padding: 10px;
  border: 1px solid rgba(124, 58, 255, 0.16);
  border-radius: 22px;
  background:
    var(--gtmf-demo-poster, none) center / contain no-repeat,
    #ffffff;
  box-shadow: 0 20px 50px rgba(109, 40, 217, 0.12);
}

.gtmf-demo-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: #050816;
  object-fit: contain;
}

@media (max-width: 760px) {
  .access-choice-grid {
    grid-template-columns: 1fr;
  }

  .access-choice-form {
    grid-template-columns: 1fr;
  }

  .access-choice-form label,
  .access-choice-form label:first-child,
  .access-choice-form .span-2,
  .access-choice-form .access-form-hint,
  .access-choice-form .access-email-warning {
    grid-column: 1 / -1;
  }
}

.gtmf-demo-video:fullscreen,
.gtmf-demo-video:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  box-sizing: border-box;
  border-radius: 0;
  padding: clamp(20px, 3vw, 56px);
  background: #050816;
  object-fit: contain;
}

@keyframes gtmfFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes gtmfPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 20px 45px rgba(124, 58, 255, 0.35);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 28px 62px rgba(124, 58, 255, 0.42);
  }
}

@media (max-width: 980px) {
  .gtmf-agents-section,
  .gtmf-transform-section {
    grid-template-columns: 1fr;
    padding: 44px 24px;
  }

  .gtmf-agent-network {
    min-height: auto;
  }

  .gtmf-transform-board {
    grid-template-columns: 1fr;
  }

  .gtmf-core-orb {
    margin: 4px auto;
  }
}

@media (max-width: 640px) {
  .gtmf-after-section {
    margin: 22px auto;
    border-radius: 22px;
  }

  .gtmf-agent-network {
    grid-template-columns: 1fr;
  }

  .gtmf-agent-network::before,
  .gtmf-agent-network::after {
    display: none;
  }

  .gtmf-agent-card,
  .gtmf-before-card,
  .gtmf-after-card {
    padding: 22px;
  }

  .gtmf-demo-section {
    margin: 22px auto;
    padding: 38px 18px;
    border-radius: 22px;
  }

  .gtmf-demo-card {
    padding: 8px;
    border-radius: 18px;
    background:
      var(--gtmf-demo-poster, none) center / contain no-repeat,
      #ffffff;
  }

  .gtmf-demo-video {
    border-radius: 12px;
    background:
      var(--gtmf-demo-poster, none) center / contain no-repeat,
      #050816;
  }

  .gtmf-agent-tag {
    top: 22px;
    right: 22px;
  }
}

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

  .gtmf-demo-intro {
    max-width: 760px;
    text-align: center;
    margin: 0 auto;
  }

  .gtmf-demo-intro p:last-child {
    margin-left: auto;
    margin-right: auto;
  }

  .gtmf-demo-points {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gtmf-agent-card,
  .gtmf-core-orb {
    animation: none;
  }
}


/* GTM Flare supplied before/after section animation helpers */
#gtmf-before-after {
  padding-top: 26px !important;
  padding-bottom: 56px !important;
}

.gtmf-transform-intro {
  display: block !important;
  margin-bottom: 30px !important;
}

.gtmf-transform-title {
  max-width: none !important;
  text-wrap: balance;
}

.gtmf-transform-intro > p {
  max-width: 600px !important;
  margin: 14px 0 0 !important;
  color: #4b5870 !important;
  font-size: 17px !important;
  line-height: 1.6 !important;
}

.gtmf-flow-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.gtmf-flow-card,
.gtmf-flow-dot {
  position: absolute;
  left: 26%;
  top: 50%;
  opacity: 0;
  transform: translate3d(0, 0, 0);
}

.gtmf-flow-card {
  display: inline-flex;
  align-items: center;
  min-width: 88px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(124, 58, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 34px rgba(124, 58, 255, 0.16);
  color: #6d28d9;
  font: 800 10px/1 var(--font);
  letter-spacing: 0.02em;
  animation: gtmfMoveCard 7.8s cubic-bezier(.45, 0, .2, 1) infinite;
}

.gtmf-flow-card-1 { top: 24%; animation-delay: 0s; }
.gtmf-flow-card-2 { top: 39%; animation-delay: 1.55s; }
.gtmf-flow-card-3 { top: 55%; animation-delay: 3.05s; }
.gtmf-flow-card-4 { top: 70%; animation-delay: 4.55s; }

.gtmf-flow-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #7c3aff;
  box-shadow: 0 0 0 8px rgba(124, 58, 255, 0.12), 0 0 24px rgba(124, 58, 255, 0.45);
  animation: gtmfMoveDot 5.6s ease-in-out infinite;
}

.gtmf-flow-dot-1 { top: 32%; animation-delay: .4s; }
.gtmf-flow-dot-2 { top: 50%; animation-delay: 2.1s; }
.gtmf-flow-dot-3 { top: 66%; animation-delay: 3.8s; }

@keyframes gtmfMoveCard {
  0% { opacity: 0; transform: translate3d(-160px, 16px, 0) scale(.9); filter: blur(2px); }
  13% { opacity: .82; filter: blur(0); }
  48% { opacity: .68; transform: translate3d(40px, -8px, 0) scale(.96); }
  70% { opacity: .86; transform: translate3d(360px, 6px, 0) scale(1); }
  100% { opacity: 0; transform: translate3d(560px, -12px, 0) scale(.92); filter: blur(2px); }
}

@keyframes gtmfMoveDot {
  0% { opacity: 0; transform: translate3d(-110px, 0, 0) scale(.6); }
  20% { opacity: .65; }
  55% { opacity: .9; transform: translate3d(135px, -10px, 0) scale(1); }
  100% { opacity: 0; transform: translate3d(430px, 8px, 0) scale(.55); }
}

@keyframes gtmf-heroFloat  { 0%,100%{transform:translateY(0) rotate(-.4deg)} 50%{transform:translateY(-9px) rotate(.4deg)} }
  @keyframes gtmf-slideInR   { from{opacity:0;transform:translateX(28px)} to{opacity:1;transform:translateX(0)} }
  @keyframes gtmf-statusPing { 0%,100%{opacity:.4;transform:scale(1)} 50%{opacity:1;transform:scale(1.4)} }
  @keyframes gtmf-spinA      { from{transform:translate(-50%,-50%) rotate(0deg)}   to{transform:translate(-50%,-50%) rotate(360deg)} }
  @keyframes gtmf-spinB      { from{transform:translate(-50%,-50%) rotate(0deg)}   to{transform:translate(-50%,-50%) rotate(-360deg)} }

  .gtmf-output-row { transition: background .18s ease, transform .18s ease; cursor: pointer; }
  .gtmf-output-row:hover { background: rgba(124,58,255,.06) !important; transform: translateX(4px); }

@media (max-width: 820px) {
  .account-profile-grid {
    grid-template-columns: 1fr;
  }

  .account-profile-grid .detail-card {
    min-height: auto;
  }

  .gtmf-transform-intro {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .gtmf-flow-overlay {
    display: none;
  }

  #gtmf-before-after {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 24px 14px 34px !important;
    overflow: hidden !important;
  }

  #gtmf-before-after .gtmf-transform-title {
    font-size: clamp(32px, 10vw, 42px) !important;
    line-height: 1.04 !important;
    letter-spacing: 0 !important;
  }

  #gtmf-before-after .gtmf-transform-intro > p {
    max-width: 100% !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
  }

  #gtmf-before-after [style*="grid-template-columns:1.05fr 88px 1.15fr"] {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #gtmf-before-after [style*="grid-template-columns:1.05fr 88px 1.15fr"] > div {
    min-width: 0 !important;
  }

  #gtmf-before-after [style*="position:relative;width:62px;height:62px"] {
    margin: 20px auto !important;
  }

  #gtmf-before-after [style*="position:relative;width:62px;height:62px"] > div {
    margin: 0 !important;
  }

  #gtmf-before-after [style*="position:absolute;top:50%;left:50%;width:62px;height:62px"],
  #gtmf-before-after [style*="position:absolute;top:50%;left:50%;width:46px;height:46px"] {
    transform-origin: center center !important;
  }
}
