.home-body {
  min-height: 100%;
  overflow-x: hidden;
  background: #ffffff;
  color: #0f172a;
}

.home-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.home-topbar {
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 0 clamp(18px, 4vw, 54px);
  border-bottom: 1px solid #e6edf6;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  z-index: 30;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  text-decoration: none;
}

.home-logo {
  width: clamp(158px, 15vw, 190px);
  height: auto;
  display: block;
}

.beta-pill {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
}

.home-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.home-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-radius: 10px;
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.home-nav a.is-active,
.home-nav a:hover {
  background: #eef4ff;
  color: #2563eb;
}

.home-topbar-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.theme-button,
.home-open-editor {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.theme-button {
  width: 38px;
  padding: 0;
}

.home-open-editor {
  padding: 0 14px;
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.theme-button svg,
.home-open-editor svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-nav svg,
.home-primary-action svg,
.home-secondary-action svg,
.hero-badge svg,
.trust-row svg,
.inline-head svg,
.workflow-steps svg,
.community-copy svg,
.community-points svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-hero {
  width: min(1280px, calc(100% - 64px));
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(380px, 0.92fr) minmax(520px, 1.08fr);
  gap: clamp(32px, 3.5vw, 48px);
  align-items: center;
  margin: 28px auto 24px;
}

.hero-copy {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.hero-badge,
.home-kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 20px;
  padding: 7px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 520px;
  margin: 0;
  color: #0f172a;
  font-size: clamp(2.7rem, 3.8vw, 4.15rem);
  line-height: 1.01;
  font-weight: 900;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: none;
}

.hero-copy h1 span {
  background: -webkit-linear-gradient(315deg, #217bfe, #078efb 33%, #ac87eb);
  background: linear-gradient(135deg,#217bfe,#078efb 33%,#ac87eb);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: none;
}

.hero-copy > p:not(.hero-badge) {
  max-width: 570px;
  margin: 20px 0 0;
  color: #52627a;
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 500;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.home-primary-action,
.home-secondary-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.home-primary-action {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.23);
}

.home-secondary-action {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.trust-row span {
  min-height: 58px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  padding: 5px 6px;
  border: 1px solid #e5edf7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
}

.trust-row svg {
  grid-row: 1 / 3;
  color: #2563eb;
}

.trust-row strong {
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 800;
}

.trust-row small {
  color: #7a8798;
  font-size: 0.58rem;
}

.hero-editor {
  min-width: 0;
  position: relative;
  z-index: 0;
  width: min(100%, 650px);
  justify-self: end;
}

.mock-window {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.13);
}

.mock-topbar {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 16px;
  border-bottom: 1px solid #eef2f7;
}

.mock-topbar img {
  width: 124px;
}

.mock-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.mock-actions span,
.mock-actions strong {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  padding: 0 10px;
  color: #172033;
  font-size: 0.62rem;
  font-weight: 700;
}

.mock-actions span {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.mock-actions strong:nth-of-type(1) {
  background: #b45309;
  color: #fff;
}

.mock-actions strong:nth-of-type(2) {
  background: #0f766e;
  color: #fff;
}

.mock-actions strong:nth-of-type(3) {
  background: #2563eb;
  color: #fff;
}

.mock-body {
  height: 350px;
  display: grid;
  grid-template-columns: 48px 210px minmax(0, 1fr);
}

.mock-sidebar {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 12px 7px;
  border-right: 1px solid #eef2f7;
  background: #fbfdff;
  text-align: center;
}

.mock-sidebar span,
.mock-sidebar b {
  display: grid;
  place-items: center;
  min-height: 39px;
  border-radius: 9px;
  color: #0f172a;
  font-size: 0.62rem;
  font-weight: 800;
}

.mock-sidebar span {
  min-height: 26px;
  color: #0f766e;
}

.mock-sidebar .active {
  background: #dbeafe;
  color: #2563eb;
}

.mock-controls {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 13px;
  border-right: 1px solid #eef2f7;
  background: #fff;
}

.mock-controls h3 {
  margin: 0;
  color: #0f172a;
  font-size: 0.92rem;
}

.mock-controls h3 i {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  margin-left: 5px;
  border-radius: 50%;
  background: #8b929b;
  color: #fff;
  font-style: normal;
  font-size: 0.68rem;
}

.mock-unit {
  position: absolute;
  margin-left: 138px;
  margin-top: 0;
  display: inline-flex;
  border: 1px solid #dbe4ef;
  border-radius: 999px;
  background: #f1f5f9;
}

.mock-unit span {
  min-width: 42px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.mock-unit span:first-child {
  border: 1px solid #60a5fa;
  background: #dbeafe;
  color: #2563eb;
}

.mock-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 20px;
}

.mock-inputs label {
  display: grid;
  gap: 5px;
  color: #6b7280;
  font-size: 0.66rem;
  font-weight: 600;
}

.mock-inputs strong {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  color: #0f172a;
  font-size: 0.72rem;
}

.mock-row {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #edf2f7;
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 800;
}

.mock-row em {
  width: 8px;
  height: 8px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(45deg);
}

.mock-line-box {
  display: grid;
  gap: 6px;
  margin-top: 5px;
  padding: 11px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.mock-line-box span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #52627a;
  font-size: 0.66rem;
}

.mock-line-box b {
  width: 30px;
  height: 17px;
  border-radius: 999px;
  background: #2563eb;
}

.mock-line-box strong {
  color: #0f172a;
}

.mock-canvas {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(#eef2f7 1px, transparent 1px),
    linear-gradient(90deg, #eef2f7 1px, transparent 1px),
    #fbfdff;
  background-size: 28px 28px;
}

.mock-legend {
  position: absolute;
  left: 16px;
  top: 18px;
  z-index: 2;
  display: grid;
  grid-template-columns: 34px auto;
  gap: 6px 7px;
  align-items: center;
  padding: 11px;
  border-radius: 10px;
  background: #fff;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.mock-legend span {
  width: 34px;
  height: 3px;
  border-radius: 99px;
}

.mock-legend .cut { background: #2563eb; }
.mock-legend .fold {
  background: repeating-linear-gradient(to right, #ff0000 0, #ff0000 7px, transparent 7px, transparent 10px);
}
.mock-legend .bleed { background: #00ff00; }

.mock-svg {
  position: absolute;
  inset: 42px 20px 44px 78px;
  display: grid;
  place-items: center;
}

.mock-svg svg {
  max-width: 100%;
  max-height: 100%;
  width: auto !important;
  height: auto !important;
}

.mock-zoom {
  position: absolute;
  left: 50%;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 20px;
  transform: translateX(-50%);
  min-width: 164px;
  min-height: 38px;
  justify-content: center;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font-size: 0.8rem;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.home-section {
  width: min(1360px, calc(100% - 64px));
  margin: 0 auto;
}

.template-section {
  padding: 28px 0 64px;
}

.home-section-head {
  margin-bottom: 18px;
}

.inline-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.home-section-head h2,
.section-center h2,
.community-copy h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.16;
  font-weight: 900;
}

.home-section-head p,
.section-center p,
.community-copy p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.55;
}

.inline-head a,
.community-copy a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2563eb;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

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

.home-template-card a {
  height: 100%;
  min-height: 300px;
  display: grid;
  grid-template-rows: 160px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #e5edf7;
  border-radius: 13px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.045);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.home-template-card a:hover {
  transform: translateY(-3px);
  border-color: #cbd8eb;
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.1);
}

.template-media {
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 18px;
  background:
    linear-gradient(#f0f4f9 1px, transparent 1px),
    linear-gradient(90deg, #f0f4f9 1px, transparent 1px),
    #ffffff;
  background-size: 20px 20px;
}

.template-media svg {
  max-width: 100%;
  max-height: 100%;
  width: auto !important;
  height: auto !important;
}

.template-card-copy {
  position: relative;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 18px;
}

.template-card-copy h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.06;
  text-shadow: none;
}

.template-card-copy p {
  margin: 0;
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.65;
}

.template-card-copy > span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 800;
}

.workflow-section {
  padding: 1px 0 62px;
}

.section-center {
  text-align: center;
}

.dot-pager {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 22px;
}

.dot-pager i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cfd8e6;
}

.dot-pager i:first-child {
  background: #2563eb;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 38px;
  text-align: center;
}

.workflow-steps div {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.workflow-steps div:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 35px;
  left: calc(50% + 62px);
  width: calc(100% - 124px);
  border-top: 2px dashed #d6deea;
}

.workflow-steps strong {
  position: relative;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f2f7ff;
  color: #2563eb;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.1);
}

.workflow-steps strong svg {
  width: 24px;
  height: 24px;
}

.workflow-steps small {
  position: absolute;
  bottom: -20px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
}

.workflow-steps h3 {
  margin: 30px 0 0;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 900;
}

.workflow-steps p {
  max-width: 220px;
  margin: 0;
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.65;
}

.community-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 38px;
  padding: 24px 30px 18px;
  border: 1px solid #e5edf7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

.creator-avatar {
  height: 168px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}

.creator-avatar img {
  width: auto;
  max-width: 100%;
  height: 168px;
  display: block;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 24px rgba(37, 99, 235, 0.16));
}

.community-copy .home-kicker {
  margin-bottom: 10px;
}

.community-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  text-align: center;
}

.community-points span {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.community-points svg {
  width: 34px;
  height: 34px;
  color: #2563eb;
}

.community-points strong {
  color: #0f172a;
  font-size: 0.78rem;
}

.community-points small {
  color: #64748b;
  font-size: 0.7rem;
}

.home-footer {
  width: min(1360px, calc(100% - 64px));
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(420px, 1.4fr);
  gap: 40px;
  margin: 0 auto;
  padding: 28px 16px 18px;
  color: #64748b;
}

.footer-brand img {
  width: 168px;
}

.footer-brand p {
  max-width: 310px;
  margin: 12px 0 0;
  font-size: 0.78rem;
  line-height: 1.65;
}

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

.footer-links div {
  display: grid;
  align-content: start;
  gap: 11px;
}

.footer-links strong {
  color: #0f172a;
  font-size: 0.72rem;
}

.footer-links a {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  color: #2563eb;
}

.footer-note {
  grid-column: 1 / -1;
  margin: 16px 0 0;
  text-align: center;
  color: #94a3b8;
  font-size: 0.72rem;
}

.static-footer {
  width: min(920px, calc(100% - 36px));
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 28px;
  padding: 22px 0 18px;
  font-size: 0.72rem;
}

.static-footer > span {
  color: #94a3b8;
  font-size: 0.72rem;
  line-height: 1.55;
}

.static-footer .footer-links a {
  font-size: 0.72rem;
}

.static-footer .footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 34px;
}

.static-body .home-topbar {
  grid-template-columns: 1fr;
  justify-items: start;
}

.static-main {
  width: min(920px, calc(100% - 36px));
  margin: 34px auto 0;
}

.static-card {
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid #dfe7f1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(23, 32, 51, 0.08);
}

.static-card h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.12;
  font-weight: 900;
}

.static-intro {
  max-width: 720px;
  margin: 14px 0 0;
  color: #52627a;
  font-size: 1rem;
  line-height: 1.65;
}

.static-sections {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.static-sections section {
  padding-top: 18px;
  border-top: 1px solid #e4eaf2;
}

.static-sections h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 900;
}

.static-sections p {
  margin: 0;
  color: #52627a;
  font-size: 0.9rem;
  line-height: 1.65;
}

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

  .hero-copy {
    max-width: 760px;
  }

  .hero-editor {
    justify-self: stretch;
    width: 100%;
  }

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

  .community-card {
    grid-template-columns: 140px 1fr;
  }

  .community-points {
    grid-column: 1 / -1;
  }
}

@media (max-width: 840px) {
  .home-topbar {
    height: auto;
    grid-template-columns: 1fr;
    justify-items: start;
    padding-top: 14px;
    padding-bottom: 12px;
  }

  .home-nav {
    overflow-x: auto;
    max-width: 100%;
  }

  .home-hero,
  .home-section,
  .home-footer {
    width: min(100% - 28px, 1500px);
  }

  .mock-body {
    grid-template-columns: 48px minmax(190px, 250px) minmax(420px, 1fr);
    overflow-x: auto;
  }

  .trust-row,
  .workflow-steps,
  .community-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-steps div::after {
    display: none;
  }

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

  .community-card,
  .home-footer {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .home-logo {
    width: 172px;
  }

  .home-hero {
    margin-top: 22px;
  }

  .hero-copy h1 {
    font-size: 2.15rem;
  }

  .home-hero-actions {
    display: grid;
  }

  .template-grid,
  .workflow-steps,
  .community-points,
  .footer-links {
    grid-template-columns: 1fr;
  }

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

  .hero-editor {
    display: none;
  }

  .mock-window {
    margin-inline: -8px;
    border-radius: 14px;
  }

  .template-media {
    min-height: 190px;
  }

  .inline-head {
    align-items: start;
    flex-direction: column;
  }
}

/* Homepage hero artwork and copy follow the compact product-led layout. */
.home-hero {
  width: min(1360px, calc(100% - 64px));
  display: grid;
  grid-template-columns: minmax(360px, 0.8fr) minmax(520px, 1.2fr);
  gap: clamp(30px, 4vw, 72px);
  align-items: center;
  margin: 50px auto 28px;
  padding: 24px 36px 34px;
  border: 0;
  border-radius: 0;
  background: #fff;
  overflow: visible;
}

.home-hero::before,
.home-hero::after {
  display: none;
}

.hero-copy {
  max-width: 610px;
  text-align: left;
}

.hero-badge {
  margin: 0 0 22px;
}

.hero-copy h1 {
  max-width: 620px;
  margin-inline: 0;
  font-size: clamp(3rem, 4.5vw, 5rem);
  line-height: 1.02;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy > p:not(.hero-badge) {
  max-width: 570px;
  margin: 22px 0 0;
  font-size: 1rem;
  line-height: 1.7;
}

.hero-facts {
  justify-content: flex-start;
  gap: 10px 24px;
  margin-top: 24px !important;
  font-size: 0.76rem !important;
}

.hero-facts span::before {
  width: 16px;
  height: 16px;
  border: 2px solid #0faaa5;
  background: transparent;
  box-sizing: border-box;
}

.hero-facts span::after {
  content: "✓";
  position: absolute;
  margin-left: -21px;
  margin-top: 1px;
  color: #0faaa5;
  font-size: 0.58rem;
  font-weight: 900;
}

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

.home-hero-actions svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-banner {
  min-width: 0;
  width: 100%;
  max-width: 760px;
  justify-self: end;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 24px 58px rgba(37, 99, 235, 0.1);
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1180px) {
  .home-hero {
    grid-template-columns: 1fr;
    max-width: 920px;
    padding-inline: 0;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-banner {
    justify-self: stretch;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .home-hero {
    width: min(100% - 28px, 1160px);
    margin-top: 22px;
    padding: 26px 0 38px;
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 11vw, 3.4rem);
  }

  .hero-facts {
    justify-items: start;
  }

  .hero-banner {
    border-radius: 18px;
  }
}

/* Focus the homepage on the message and the template gallery. */
.home-hero {
  width: min(1160px, calc(100% - 64px));
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  margin: 34px auto 14px;
  padding: 72px 64px 64px;
  border: 1px solid #dfe8f5;
  border-radius: 16px;
  background: #fbfdff;
  position: relative;
  overflow: hidden;
}

.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  width: min(70%, 560px);
  height: 3px;
  transform: translateX(-50%);
}

.home-hero::before {
  top: 0;
  background: #2563eb;
}

.home-hero::after {
  bottom: 0;
  background: #14b8a6;
}

.hero-copy {
  max-width: 850px;
  text-align: center;
}

.hero-badge {
  margin: 0 auto 20px;
}

.hero-copy h1 {
  max-width: 780px;
  margin-inline: auto;
  font-size: clamp(2.55rem, 5vw, 4.5rem);
  line-height: 1.04;
}

.hero-copy h1 span {
  display: block;
  background: -webkit-linear-gradient(315deg, #217bfe, #078efb 33%, #ac87eb);
  background: linear-gradient(135deg,#217bfe,#078efb 33%,#ac87eb);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-copy > p:not(.hero-badge) {
  max-width: 690px;
  margin: 20px auto 0;
  font-size: 1.03rem;
  line-height: 1.68;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 26px !important;
  color: #334155 !important;
  font-size: 0.76rem !important;
  font-weight: 800;
}

.hero-facts span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-facts span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #14b8a6;
}

.template-section {
  padding-top: 18px;
}

@media (max-width: 560px) {
  .home-hero {
    width: min(100% - 28px, 1160px);
    margin-top: 22px;
    padding: 48px 22px 44px;
  }

  .hero-copy h1 {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }

  .hero-facts {
    display: grid;
    justify-items: center;
    gap: 8px;
  }
}

/* Final hero layout override: keep the banner beside the message on desktop. */
.home-hero {
  width: min(1360px, calc(100% - 64px));
  grid-template-columns: minmax(360px, 0.8fr) minmax(520px, 1.2fr);
  gap: clamp(30px, 4vw, 72px);
  place-items: center stretch;
  margin: 50px auto 28px;
  padding: 24px 36px 34px;
  border: 0;
  border-radius: 0;
  background: #fff;
  overflow: visible;
}

.home-hero::before,
.home-hero::after {
  display: none;
}

.hero-copy {
  max-width: 610px;
  text-align: left;
}

.hero-badge {
  margin: 0 0 22px;
}

.hero-copy h1 {
  max-width: 620px;
  margin-inline: 0;
  font-size: clamp(3rem, 4.5vw, 5rem);
  line-height: 1.02;
}

.hero-copy h1 span {
  display: block;
    background: -webkit-linear-gradient(315deg, #217bfe, #078efb 33%, #ac87eb);
  background: linear-gradient(135deg,#217bfe,#078efb 33%,#ac87eb);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-copy > p:not(.hero-badge) {
  max-width: 570px;
  margin: 22px 0 0;
  font-size: 1rem;
  line-height: 1.7;
}

.hero-facts {
  justify-content: flex-start;
  gap: 10px 24px;
  margin-top: 24px !important;
  font-size: 0.76rem !important;
}

.hero-facts span {
  position: relative;
}

.hero-facts span::before {
  width: 16px;
  height: 16px;
  border: 2px solid #0faaa5;
  border-radius: 50%;
  background: transparent;
  box-sizing: border-box;
}

.hero-facts span::after {
  content: "✓";
  position: absolute;
  left: 4px;
  top: 1px;
  color: #0faaa5;
  font-size: 0.58rem;
  font-weight: 900;
}

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

.hero-banner {
  min-width: 0;
  width: 100%;
  max-width: 760px;
  justify-self: end;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 24px 58px rgba(37, 99, 235, 0.1);
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1180px) {
  .home-hero {
    grid-template-columns: 1fr;
    max-width: 920px;
    padding-inline: 0;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-banner {
    justify-self: stretch;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .home-hero {
    width: min(100% - 28px, 1160px);
    margin-top: 22px;
    padding: 26px 0 38px;
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 11vw, 3.4rem);
  }

  .hero-facts {
    justify-items: start;
  }

  .hero-banner {
    border-radius: 18px;
  }
}
/* Keep hero facts to one centered check icon per item. */
.hero-facts span::before {
  content: "✓";
  width: 16px;
  height: 16px;
  border: 2px solid #0faaa5;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  box-sizing: border-box;
  color: #0faaa5;
  font-size: 0.58rem;
  font-weight: 900;
}

.hero-facts span::after {
  content: none;
}
/* Final hero fact marker normalization. */
.hero-facts span::before {
  content: "✓" !important;
  width: 16px !important;
  height: 16px !important;
  border: 2px solid #0faaa5 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  box-sizing: border-box !important;
  color: #0faaa5 !important;
  font-size: 0.58rem !important;
  font-weight: 900 !important;
}

.hero-facts span::after {
  content: none !important;
  display: none !important;
}
/* Compact, image-led homepage hero. */
.home-hero {
  gap: 3rem !important;
  padding-top: 2.75rem !important;
  padding-bottom: 3.25rem !important;
}

.hero-copy h1 {
  font-size: clamp(3.4rem, 5vw, 5.6rem) !important;
  line-height: 0.98 !important;
}

.hero-banner {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.hero-banner img {
  width: min(100%, 760px) !important;
  max-height: 620px !important;
  object-fit: contain !important;
  border-radius: 0 !important;
}

/* Compact compatibility row beneath the hero artwork. */
.compatibility-strip {
  width: min(1360px, calc(100% - 64px));
  margin: 0 auto 12px;
  padding: 16px 28px 18px;
  border: 1px solid #e5edf7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.035);
}

.compatibility-strip h2 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 0.82rem;
  line-height: 1;
  font-weight: 800;
  text-align: center;
}

.compatibility-items {
  display: flex;
  align-items: center;
  justify-content: center;
}

.compatibility-item {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 26px;
}

.compatibility-item + .compatibility-item {
  border-left: 1px solid #dce5f0;
}

.compatibility-item img {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  object-fit: contain;
}

.compatibility-item span {
  min-width: 0;
  display: grid;
  gap: 2px;
  white-space: nowrap;
}

.compatibility-item strong {
  overflow: hidden;
  color: #334155;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 800;
  text-overflow: ellipsis;
}

.compatibility-item small {
  overflow: hidden;
  color: #64748b;
  font-size: 0.62rem;
  line-height: 1;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .compatibility-strip {
    width: min(100% - 28px, 680px);
    padding-inline: 18px;
  }

  .compatibility-items {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .compatibility-items::-webkit-scrollbar {
    display: none;
  }

  .compatibility-item {
    flex: 0 0 auto;
    padding-inline: 16px;
  }
}

/* Four-step workflow cards */
.workflow-section {
  padding: 1rem 0 6rem !important;
}

.workflow-heading {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.workflow-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.1rem;
  border-radius: 999px;
  background: #edf3ff;
  color: #2563eb;
  font-size: .9rem;
  font-weight: 800;
}

.workflow-eyebrow > span {
  font-size: 1.1rem;
  line-height: 1;
}

.workflow-heading h2 {
  margin: .9rem 0 .5rem;
  color: #0f172a;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.05;
}

.workflow-heading h2 span {
  position: relative;
  color: #2563eb;
}

.workflow-heading h2 span::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -.28rem;
  left: 4%;
  height: 5px;
  border-radius: 99px;
  background: #2563eb;
  transform: rotate(-2deg);
}

.workflow-heading p {
  margin: 1.7rem;
  color: #637391;
  font-size: 1.08rem;
}

.workflow-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4rem;
  max-width: 1440px;
  margin: 0 auto !important;
  text-align: center;
}

.workflow-card {
  position: relative;
  padding: 1.1rem 1.5rem 2rem;
  border: 1px solid #dce7fb;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(37, 99, 235, .08);
}

.workflow-card:not(:last-child)::after {
  content: "\\2192";
  position: absolute;
  top: 50%;
  right: -3.05rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: #2563eb;
  font-size: 2rem;
  font-weight: 700;
  transform: translateY(-50%);
}

.workflow-step-number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: grid;
  width: 3.4rem;
  height: 3.4rem;
  place-items: center;
  border-radius: 50%;
  background: #eaf1ff;
  color: #1758cf;
  font-size: 1.15rem;
  font-weight: 800;
}

.workflow-visual {
  display: grid;
  margin: 0 0 1.4rem;
  overflow: hidden;
  place-items: center;
  border: 1px solid #e2eaf8;
  border-radius: 20px;
  background: #f5f8ff;
}

.workflow-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.35rem;
}

.workflow-card p {
  max-width: 280px;
  margin: .6rem auto 0;
  color: #637391;
  line-height: 1.55;
}

.workflow-template-grid {
  width: 70%;
  height: 70%;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.workflow-template-grid i {
  border: 2px solid #8db2ff;
  border-radius: 12px;
  background: #fff;
}

.workflow-template-grid i:first-child {
  border-color: #2563eb;
}

.workflow-visual-editor {
  width: 78%;
  height: 75%;
  grid-template-columns: 36% 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 9px;
  padding: 12px;
}

.workflow-visual-editor b {
  grid-row: 1 / -1;
  border: 2px solid #8db2ff;
  border-radius: 10px;
  background: #e8f0ff;
}

.workflow-visual-editor span {
  border: 2px solid #8db2ff;
  border-radius: 8px;
  background: #fff;
}

.workflow-visual-preview {
  position: relative;
  width: 70%;
  height: 75%;
}

.workflow-visual-preview i {
  position: relative;
  display: block;
  width: 56%;
  height: 60%;
  border: 3px solid #2563eb;
  border-radius: 18px;
  background: #fff;
}

.workflow-visual-preview i::before,
.workflow-visual-preview i::after {
  content: "";
  position: absolute;
  border: 2px dashed #ff6b6b;
}

.workflow-visual-preview i::before {
  top: 36%;
  width: 70%;
}

.workflow-visual-preview i::after {
  left: 50%;
  height: 48%;
}

.workflow-visual-export {
  display: flex;
  gap: 12px;
}

.workflow-visual-export i {
  display: grid;
  width: 62px;
  height: 78px;
  place-items: center;
  border: 2px solid #cfe0ff;
  border-radius: 12px;
  background: #fff;
  color: #2563eb;
  font-style: normal;
  font-weight: 800;
}

.workflow-visual-export i:nth-child(2) {
  background: #e7fbf5;
  color: #07866f;
}

.workflow-visual-export i:nth-child(3) {
  background: #fff1f1;
  color: #e53935;
}

@media (max-width: 1100px) {
  .workflow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .workflow-card:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 650px) {
  .workflow-section {
    padding: 1rem 0;
  }

  .workflow-steps {
    grid-template-columns: 1fr;
  }

  .workflow-card {
    min-height: 380px;
  }
}

@media (max-width: 900px) {
  .home-hero {
    gap: 2rem !important;
    padding-top: 2rem !important;
  }

  .hero-banner img {
    width: min(100%, 680px) !important;
    max-height: 520px !important;
  }
}

/* Keep the hero compact so the page starts with the content, not empty space. */
.home-hero {
  margin-top: 18px !important;
  padding-top: 0 !important;
  padding-bottom: 2rem !important;
}

.hero-banner {
  max-width: 660px !important;
}

.hero-banner img {
  width: min(100%, 660px) !important;
  max-height: 500px !important;
}

@media (max-width: 900px) {
  .home-hero {
    margin-top: 12px !important;
    padding-top: 0 !important;
  }

  .hero-banner img {
    max-height: 420px !important;
  }
}
