/* UltraBill — marketing landing */
.mkt {
  --mkt-ink: #0b1c2d;
  --mkt-muted: #5b6b7c;
  --mkt-line: rgba(11, 28, 45, 0.1);
  --mkt-brand: #0891d4;
  --mkt-brand-deep: #0369a1;
  --mkt-navy: #0a2744;
  --mkt-font: "Plus Jakarta Sans", system-ui, sans-serif;
  --mkt-display: "Outfit", "Plus Jakarta Sans", system-ui, sans-serif;
  --mkt-max: 1120px;
  margin: 0;
  color: var(--mkt-ink);
  background: #fff;
  font-family: var(--mkt-font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mkt *,
.mkt *::before,
.mkt *::after { box-sizing: border-box; }

.mkt a { color: inherit; text-decoration: none; }
.mkt a.mkt-btn--primary,
.mkt a.mkt-btn--primary:visited,
.mkt a.mkt-btn--on-dark,
.mkt a.mkt-btn--on-dark:visited { color: #fff; }
.mkt a.mkt-btn--ghost,
.mkt a.mkt-btn--ghost:visited { color: var(--mkt-ink); }

.mkt h1,
.mkt h2,
.mkt h3 {
  font-family: var(--mkt-display);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--mkt-ink);
}

/* ─── Nav ─── */
.mkt-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(11, 28, 45, 0.06);
}
.mkt-nav__inner {
  max-width: var(--mkt-max);
  margin: 0 auto;
  padding: 0.9rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.mkt-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mkt-display);
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  min-width: 0;
}
.mkt-nav__name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mkt-nav__mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 0.55rem;
  background: var(--mkt-navy);
  color: #fff;
  font-family: var(--mkt-display);
  font-size: 0.7rem;
  font-weight: 700;
}
.mkt-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.mkt-nav__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mkt-muted);
  padding: 0.45rem 0.75rem;
}
.mkt-nav__link:hover { color: var(--mkt-ink); }

/* ─── Buttons ─── */
.mkt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--mkt-font);
  font-weight: 700;
  border-radius: 0.55rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.mkt-btn:hover { transform: translateY(-1px); }
.mkt-btn:active { transform: translateY(0); }
.mkt-btn--sm { padding: 0.5rem 0.95rem; font-size: 0.84rem; }
.mkt-btn--lg { padding: 0.8rem 1.3rem; font-size: 0.95rem; }
.mkt-btn--xl { padding: 0.92rem 1.5rem; font-size: 1rem; }
.mkt-btn--block { width: 100%; padding: 0.95rem 1.2rem; font-size: 0.98rem; }

.mkt-btn--primary {
  background: var(--mkt-brand);
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(8, 145, 212, 0.28);
}
.mkt-btn--primary:hover {
  background: var(--mkt-brand-deep);
  box-shadow: 0 14px 32px rgba(3, 105, 161, 0.32);
}

.mkt-btn--ghost {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(11, 28, 45, 0.14);
  color: var(--mkt-ink) !important;
}
.mkt-btn--ghost:hover {
  border-color: rgba(8, 145, 212, 0.4);
  background: #fff;
}

.mkt-btn--on-dark {
  background: #fff;
  color: var(--mkt-navy) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}
.mkt-btn--on-dark:hover {
  background: #f0f7fc;
  color: var(--mkt-brand-deep) !important;
}

/* ─── Hero: full-bleed sky plane ─── */
.mkt-hero {
  position: relative;
  isolation: isolate;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  padding: 1.5rem 0 0;
  overflow: hidden;
}
.mkt-hero__sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 70% at 78% 18%, rgba(56, 189, 248, 0.35), transparent 58%),
    radial-gradient(ellipse 60% 50% at 12% 30%, rgba(14, 165, 233, 0.18), transparent 55%),
    linear-gradient(
      180deg,
      #c8e8f7 0%,
      #d9f0fa 22%,
      #eaf6fb 48%,
      #f5fafd 68%,
      #fcfeff 84%,
      #ffffff 100%
    );
}
.mkt-hero__sky::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 70%);
  pointer-events: none;
}

.mkt-hero__shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--mkt-max);
  margin: 0 auto;
  padding: 0 1.35rem 4.5rem;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
}
.mkt-hero__copy { max-width: 32rem; }
.mkt-hero__brand {
  margin: 0 0 0.65rem;
  font-family: var(--mkt-display);
  font-weight: 750;
  font-size: clamp(2.35rem, 5.2vw, 3.4rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
  color: var(--mkt-navy);
}
.mkt-hero__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
  font-weight: 600;
  color: var(--mkt-ink);
}
.mkt-hero__lead {
  margin: 0 0 1.6rem;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--mkt-muted);
  max-width: 34ch;
  line-height: 1.55;
}
.mkt-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* Hero stage — bleeds toward the right edge */
.mkt-hero__stage {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 460px;
  margin-right: clamp(-1rem, -4vw, -2.5rem);
}
.mkt-stage {
  position: relative;
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transform-style: preserve-3d;
  animation: mkt-rise 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.mkt-stage__sheet {
  position: relative;
  z-index: 2;
  background: #fff;
  border: 1px solid rgba(11, 28, 45, 0.08);
  border-radius: 1.1rem;
  padding: 1.35rem 1.3rem 1.2rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 24px 48px rgba(10, 39, 68, 0.12),
    0 48px 80px rgba(8, 145, 212, 0.14);
}
.mkt-stage__shadow {
  position: absolute;
  z-index: 1;
  inset: 12% -8% -10% 8%;
  background: radial-gradient(ellipse at center, rgba(8, 145, 212, 0.22), transparent 68%);
  filter: blur(18px);
  animation: mkt-pulse-soft 4.5s ease-in-out infinite;
}
.mkt-stage__bar {
  height: 5px;
  width: 42%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mkt-navy), var(--mkt-brand));
  margin-bottom: 1.15rem;
}
.mkt-stage__row--head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--mkt-line);
}
.mkt-stage__row--head strong {
  font-family: var(--mkt-display);
  font-size: 1.1rem;
  font-weight: 700;
}
.mkt-stage__row--head span {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--mkt-muted);
}
.mkt-stage__bill { margin-bottom: 1rem; }
.mkt-stage__bill span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mkt-muted);
  margin-bottom: 0.2rem;
}
.mkt-stage__bill strong { font-size: 1rem; }
.mkt-stage__lines {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.mkt-stage__lines li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px dashed rgba(11, 28, 45, 0.1);
}
.mkt-stage__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
  color: var(--mkt-muted);
  font-size: 0.9rem;
}
.mkt-stage__total strong {
  font-family: var(--mkt-display);
  font-size: 1.45rem;
  font-weight: 750;
  color: var(--mkt-navy);
}
.mkt-stage__pay {
  text-align: center;
  background: #003087;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.78rem 1rem;
  border-radius: 0.5rem;
}

@keyframes mkt-rise {
  from { opacity: 0; transform: perspective(1200px) rotateY(-6deg) rotateX(2deg) translateY(28px); }
  to { opacity: 1; transform: perspective(1200px) rotateY(-6deg) rotateX(2deg) translateY(0); }
}
@keyframes mkt-pulse-soft {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ─── Sections ─── */
.mkt-section {
  padding: clamp(3.25rem, 7vw, 5rem) 1.35rem;
  background: #fff;
}
.mkt-section__inner {
  max-width: var(--mkt-max);
  margin: 0 auto;
}
.mkt-section__intro {
  max-width: 36rem;
  margin-bottom: 2.25rem;
}
.mkt-section__intro--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.mkt-section__intro--center .mkt-section__lead {
  margin-left: auto;
  margin-right: auto;
}
.mkt-section__title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
}
.mkt-section__lead {
  margin: 0;
  color: var(--mkt-muted);
  font-size: 1.02rem;
  max-width: 42ch;
}

/* Flow — editorial steps, no boxes */
.mkt-section--flow {
  border-top: 1px solid rgba(11, 28, 45, 0.05);
}
.mkt-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem 2rem;
  counter-reset: none;
}
.mkt-flow__item {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  border-top: 2px solid var(--mkt-ink);
  padding-top: 1.15rem;
}
.mkt-flow__num {
  font-family: var(--mkt-display);
  font-weight: 750;
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--mkt-brand);
}
.mkt-flow__item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}
.mkt-flow__item p {
  margin: 0;
  color: var(--mkt-muted);
  font-size: 0.95rem;
  max-width: 28ch;
}

/* Pricing — cards for plan selection (interaction) */
.mkt-section--pricing {
  background:
    linear-gradient(180deg, #fff 0%, #f4f9fc 42%, #f4f9fc 100%);
}
.mkt-pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
  max-width: 820px;
  margin: 0 auto;
}
.mkt-plan {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.55rem 1.5rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(11, 28, 45, 0.1);
  background: #fff;
  box-shadow: 0 18px 40px rgba(11, 28, 45, 0.05);
}
.mkt-plan h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}
.mkt-plan__tag {
  display: inline-block;
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.mkt-plan__price {
  margin: 0 0 0.35rem;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}
.mkt-plan__amount {
  font-family: var(--mkt-display);
  font-size: clamp(2.4rem, 4vw, 2.9rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1;
}
.mkt-plan__period {
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--mkt-muted);
}
.mkt-plan__note {
  margin: 0 0 1.25rem;
  color: var(--mkt-muted);
  font-size: 0.92rem;
}
.mkt-plan__features {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  flex: 1;
}
.mkt-plan__features li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.94rem;
}
.mkt-plan__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--mkt-brand);
}

.mkt-plan--featured {
  background: var(--mkt-navy);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 28px 56px rgba(10, 39, 68, 0.28);
  transform: translateY(-6px);
}
.mkt-plan--featured h3,
.mkt-plan--featured .mkt-plan__amount { color: #fff; }
.mkt-plan--featured .mkt-plan__period,
.mkt-plan--featured .mkt-plan__note { color: rgba(255, 255, 255, 0.72); }
.mkt-plan--featured .mkt-plan__features li { color: rgba(255, 255, 255, 0.92); }
.mkt-plan--featured .mkt-plan__features li::before { background: #38bdf8; }

/* Portal */
.mkt-section--portal {
  background: #f4f9fc;
}
.mkt-portal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: center;
}
.mkt-portal__copy .mkt-section__lead {
  margin: 0 0 1.4rem;
}
.mkt-portal-board {
  background: #fff;
  border: 1px solid rgba(11, 28, 45, 0.08);
  border-radius: 1.15rem;
  padding: 1.15rem;
  box-shadow: 0 22px 48px rgba(11, 28, 45, 0.08);
}
.mkt-portal-board__title {
  font-family: var(--mkt-display);
  font-weight: 700;
  font-size: 0.92rem;
  margin: 0.1rem 0.35rem 0.95rem;
  color: var(--mkt-navy);
}
.mkt-portal-board__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 0.7rem;
  background: #f7fafc;
  border: 1px solid rgba(11, 28, 45, 0.04);
}
.mkt-portal-board__row:last-child { margin-bottom: 0; }
.mkt-portal-board__row strong {
  display: block;
  font-size: 0.92rem;
}
.mkt-portal-board__row span:not([class*="mkt-status"]) {
  display: block;
  font-size: 0.78rem;
  color: var(--mkt-muted);
  font-weight: 500;
}
.mkt-status {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.5rem;
  border-radius: 0.3rem;
}
.mkt-status--due {
  color: #9a3412;
  background: rgba(251, 146, 60, 0.18);
}
.mkt-status--paid {
  color: #047857;
  background: rgba(16, 185, 129, 0.16);
}
.mkt-status--open {
  color: var(--mkt-brand-deep);
  background: rgba(8, 145, 212, 0.12);
}

/* Finale — full-bleed close */
.mkt-finale {
  background:
    radial-gradient(ellipse 80% 120% at 100% 0%, rgba(56, 189, 248, 0.28), transparent 50%),
    linear-gradient(135deg, #071a2e 0%, #0a2744 48%, #0c3a5e 100%);
  color: #fff;
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.35rem;
  text-align: center;
}
.mkt-finale__inner {
  max-width: 36rem;
  margin: 0 auto;
}
.mkt-finale h2 {
  margin: 0 0 0.55rem;
  color: #fff;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
}
.mkt-finale p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
}

/* Footer */
.mkt-footer {
  background: #071a2e;
  color: rgba(255, 255, 255, 0.7);
  padding: 1.75rem 1.35rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.mkt-footer__inner {
  max-width: var(--mkt-max);
  margin: 0 auto;
  display: grid;
  gap: 0.9rem;
}
.mkt-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mkt-display);
  font-weight: 650;
  font-size: 0.92rem;
  color: #fff;
}
.mkt-footer__brand .mkt-nav__mark {
  background: rgba(255, 255, 255, 0.12);
}
.mkt-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
  font-size: 0.86rem;
}
.mkt-footer__links a:hover { color: #fff; }
.mkt-footer__copy {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Responsive */
@media (max-width: 900px) {
  .mkt-hero {
    min-height: 0;
    align-items: stretch;
  }
  .mkt-hero__shell {
    grid-template-columns: 1fr;
    padding-bottom: 3rem;
  }
  .mkt-hero__stage {
    order: -1;
    justify-self: center;
    margin-right: 0;
    max-width: 400px;
  }
  .mkt-stage {
    transform: none;
    animation: mkt-rise-flat 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  @keyframes mkt-rise-flat {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .mkt-flow,
  .mkt-pricing,
  .mkt-portal {
    grid-template-columns: 1fr;
  }
  .mkt-plan--featured { transform: none; }
  .mkt-flow__item p { max-width: none; }
}

@media (max-width: 560px) {
  .mkt-nav__name { max-width: 42vw; }
  .mkt-hero__cta .mkt-btn,
  .mkt-finale .mkt-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .mkt-stage,
  .mkt-stage__shadow,
  [data-reveal],
  .mkt-btn {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
  }
  .mkt-stage { transform: none; }
}
