.template-hero {
  background:
    linear-gradient(135deg, rgba(7, 17, 33, 0.98), rgba(13, 29, 58, 0.95)),
    radial-gradient(circle at 16% 12%, rgba(56, 189, 248, 0.2), transparent 32%),
    radial-gradient(circle at 82% 24%, rgba(79, 70, 229, 0.28), transparent 34%),
    #071121;
  color: white;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.45fr);
  min-height: 540px;
  padding-top: 86px;
}

.template-hero p,
.template-hero .eyebrow {
  color: #dbeafe;
}

.template-hero > div {
  display: grid;
  gap: 20px;
  max-width: 880px;
}

.template-receipt {
  align-self: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 255, 0.98));
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--ink);
  display: grid;
  gap: 12px;
  padding: 24px;
}

.template-receipt span {
  border-bottom: 1px solid var(--line);
  color: var(--blue-dark);
  font-weight: 900;
  padding-bottom: 10px;
}

.template-trust {
  background: white;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 34px;
  padding-bottom: 34px;
}

.template-trust article {
  box-shadow: none;
  min-height: 120px;
}

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

.template-product-grid article {
  display: grid;
  gap: 12px;
  min-height: 250px;
}

.template-product-grid article .button {
  width: fit-content;
}

.price-line {
  color: var(--blue);
  font-size: 24px;
  font-weight: 900;
}

.template-builder {
  background: linear-gradient(135deg, rgba(248, 251, 255, 0.98), rgba(238, 244, 255, 0.94));
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(280px, 0.45fr) minmax(0, 1fr);
}

.template-form,
.template-preview {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  display: grid;
  gap: 12px;
  padding: 20px;
}

.template-form label {
  color: var(--ink);
  display: grid;
  font-weight: 800;
  gap: 6px;
}

.template-form input,
.template-form select,
.template-form textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  min-height: 44px;
  padding: 12px;
  width: 100%;
}

.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.document-preview {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #111827;
  display: grid;
  gap: 14px;
  line-height: 1.55;
  min-height: 420px;
  padding: 28px;
}

.document-preview h2,
.document-preview h3 {
  line-height: 1.2;
}

.disclaimer-band {
  background: #fffaf0;
  border-top: 1px solid #f1d7a5;
  display: grid;
  gap: 8px;
}

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

  .template-product-grid {
    grid-template-columns: 1fr;
  }
}
