:root {
  --tenant-template-blue: #0786b5;
  --tenant-template-blue-dark: #075f80;
  --tenant-template-ink: #183c47;
  --tenant-template-muted: #526a73;
  --tenant-template-line: #d8e5e9;
  --tenant-template-canvas: #fbfcfb;
  --tenant-template-accent: var(--tenant-template-blue);
  --tenant-template-accent-dark: var(--tenant-template-blue-dark);
}

.tenant-template-page {
  background: var(--tenant-template-canvas);
  color: var(--tenant-template-ink);
  font-family: var(--casapay-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.tenant-template-page--protection {
  padding: 0 0 96px !important;
}

.tenant-template-page--protection > .tenant-template-hero {
  width: min(1380px, calc(100% - 56px));
}

.tenant-template-page *,
.tenant-template-page *::before,
.tenant-template-page *::after {
  box-sizing: border-box;
}

.tenant-template-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1380px, calc(100% - 56px));
  min-height: 680px;
  margin: 28px auto 0;
  overflow: hidden;
  border: 1px solid rgba(24, 60, 71, .08);
  border-radius: 40px;
  background: #f5f2ee;
  isolation: isolate;
}

.tenant-template-hero--offers {
  --tenant-template-accent: #007fae;
  --tenant-template-accent-dark: #006d99;
}

.tenant-template-hero--compact {
  min-height: 560px;
}

.tenant-template-hero--compact .tenant-template-hero__copy {
  padding-block: 56px;
}

.tenant-template-hero--protection {
  --tenant-template-accent: var(--tenant-template-blue);
  --tenant-template-accent-dark: var(--tenant-template-blue-dark);
}

.tenant-template-hero--offers .tenant-template-hero__media {
  object-position: center 46%;
}

.tenant-template-hero--protection .tenant-template-hero__media {
  object-position: center 54%;
}

.tenant-template-hero__media,
.tenant-template-hero__wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tenant-template-hero__media {
  z-index: -2;
  display: block;
  object-fit: cover;
  object-position: center;
}

.tenant-template-hero__wash {
  z-index: -1;
  background: radial-gradient(
    ellipse 58% 76% at 50% 48%,
    rgba(251, 250, 247, .98) 0%,
    rgba(251, 250, 247, .94) 38%,
    rgba(251, 250, 247, .74) 58%,
    rgba(251, 250, 247, .12) 88%
  );
}

.tenant-template-hero__copy {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100% - 96px));
  padding: clamp(56px, 7vw, 100px);
  text-align: center;
}

.tenant-template-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  color: var(--tenant-template-accent-dark);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.tenant-template-breadcrumb::before {
  content: "\2190";
}

.tenant-template-breadcrumb:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tenant-template-eyebrow {
  display: block;
  color: var(--tenant-template-accent-dark);
  font-size: var(--casapay-hero-eyebrow-size, 12px);
  font-weight: var(--casapay-hero-eyebrow-weight, 850);
  letter-spacing: var(--casapay-hero-eyebrow-tracking, .11em);
  text-transform: uppercase;
}

.tenant-template-hero h1 {
  max-width: 820px;
  margin: 20px auto 0;
  color: var(--tenant-template-ink);
  font-family: var(--casapay-font-display, "DD Scoop", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: var(--casapay-hero-title-size, clamp(52px, 7vw, 90px));
  font-weight: var(--casapay-hero-title-weight, 700);
  letter-spacing: var(--casapay-hero-title-tracking, -.025em);
  line-height: var(--casapay-hero-title-line-height, .92);
}

.tenant-template-hero h1 em {
  color: var(--tenant-template-accent);
  font-style: normal;
}

.tenant-template-hero__copy > p {
  max-width: 680px;
  margin: 30px auto 0;
  color: var(--tenant-template-muted);
  font-size: var(--casapay-hero-description-size, 19px);
  font-weight: var(--casapay-hero-description-weight, 400);
  line-height: var(--casapay-hero-description-line-height, 1.5);
}

.tenant-template-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.tenant-template-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--casapay-hero-action-min-height, 50px);
  padding: 14px 25px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: var(--casapay-hero-action-weight, 850);
  line-height: 1;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.tenant-template-action:hover {
  transform: translateY(-2px);
}

.tenant-template-action--primary {
  background: var(--tenant-template-accent);
  color: #fff;
  box-shadow: 0 14px 32px rgba(7, 134, 181, .22);
}

.tenant-template-action--primary:hover {
  background: var(--tenant-template-accent-dark);
}

.tenant-template-action--secondary {
  border: 1px solid rgba(24, 60, 71, .16);
  background: rgba(255, 255, 255, .72);
  color: var(--tenant-template-ink);
  backdrop-filter: blur(12px);
}

.tenant-template-action:focus-visible {
  outline: 3px solid #66cbf0;
  outline-offset: 3px;
}

.tenant-template-hero__note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 620px;
  margin: 26px auto 0;
  padding: 10px 16px;
  border: 1px solid rgba(24, 60, 71, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .68);
  color: var(--tenant-template-muted);
  font-size: 14px;
  line-height: 1.35;
  backdrop-filter: blur(12px);
}

.tenant-template-hero__note span {
  color: var(--tenant-template-accent-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tenant-template-hero__note strong {
  color: var(--tenant-template-ink);
}

.tenant-template-section {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.tenant-template-page > .tenant-template-section {
  width: min(1180px, calc(100% - 40px));
}

.tenant-template-heading h2 {
  color: var(--tenant-template-ink);
  font-family: "DD Scoop", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.045em;
  text-transform: none;
}

@media (max-width: 760px) {
  .tenant-template-hero {
    width: calc(100% - 24px);
    min-height: 650px;
    margin-top: 12px;
    border-radius: 28px;
  }

  .tenant-template-hero__media {
    object-position: 62% center;
  }

  .tenant-template-hero__wash {
    background: radial-gradient(
      ellipse 100% 67% at 50% 43%,
      rgba(251, 250, 247, .98) 0%,
      rgba(251, 250, 247, .94) 52%,
      rgba(251, 250, 247, .6) 76%,
      rgba(251, 250, 247, .08) 100%
    );
  }

  .tenant-template-hero__copy {
    width: 100%;
    padding: 48px 24px 96px;
  }

  .tenant-template-hero--compact {
    min-height: 600px;
  }

  .tenant-template-hero--compact .tenant-template-hero__copy {
    padding-block: 44px 52px;
  }

  .tenant-template-breadcrumb {
    margin-bottom: 24px;
  }

  .tenant-template-hero h1 {
    max-width: 350px;
    font-size: var(--casapay-hero-title-size, clamp(44px, 13vw, 64px));
  }

  .tenant-template-hero__copy > p {
    max-width: 340px;
    margin-top: 24px;
    font-size: var(--casapay-hero-description-size, 16px);
  }

  .tenant-template-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 28px;
  }

  .tenant-template-hero__note {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 20px;
    text-align: left;
  }

  .tenant-template-section {
    width: calc(100% - 24px);
  }

  .tenant-template-page > .tenant-template-section {
    width: calc(100% - 24px);
  }

  .tenant-template-page--protection > .tenant-template-hero {
    width: calc(100% - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tenant-template-action {
    transition: none;
  }

  .tenant-template-action:hover {
    transform: none;
  }
}
