/* ============================================================
   NET 30 Credit (Account Holders) — page-specific additions
   ------------------------------------------------------------
   Loads AFTER net30-landing.css, which supplies every token,
   button, section, card, FAQ and CTA style used here. This file
   only defines the two components that page does not have:
   the hero account panel and the two-tier split.
   ============================================================ */

/* ------------------------------------------------------------
   HERO — account panel
   ------------------------------------------------------------ */
.nnc-credit .nnc-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 80px;
  /* net30-landing.css pins .nn-hero__visual to height:460px for its photo
     collage, and .nn-hero clips overflow. This panel is content-sized, so the
     height has to be released at every width or the list and the floating note
     get cut off. Must stay outside any media query. */
  height: auto;
}

.nnc-credit .nnc-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--nn-border);
  border-radius: var(--nn-radius-2xl);
  box-shadow: var(--nn-shadow-primary);
  overflow: hidden;
}

.nnc-credit .nnc-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--nn-border);
}
.nnc-credit .nnc-panel__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--nn-muted);
}
.nnc-credit .nnc-panel__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1fb47a;
  box-shadow: 0 0 0 3px rgba(31,180,122,.18);
}
.nnc-credit .nnc-panel__status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #1fb47a;
  background: rgba(31,180,122,.1);
  border-radius: 100px;
  padding: 4px 12px;
}

.nnc-credit .nnc-panel__figure {
  padding: 28px 24px 24px;
  text-align: left;
}
.nnc-credit .nnc-panel__figure-label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--nn-muted);
  margin-bottom: 14px;
}

/* ------------------------------------------------------------
   ODOMETER — counts to the program ceiling as it scrolls in
   ------------------------------------------------------------ */
.nnc-credit .nnc-odo { margin-bottom: 22px; }

.nnc-credit .nnc-odo__value {
  /* Reads as the panel's hero figure without out-shouting the h1 beside it,
     which tops out around 4rem. */
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--nn-fg);
  /* Fixed-width digits so the number does not jitter while counting. */
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  margin-bottom: 18px;
}

.nnc-credit .nnc-odo__meter { position: relative; }

.nnc-credit .nnc-odo__track {
  height: 8px;
  border-radius: 100px;
  background: var(--nn-bg-accent);
  overflow: hidden;
}
.nnc-credit .nnc-odo__fill {
  width: 0;
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--nn-primary-glow) 0%, var(--nn-primary) 55%, var(--nn-primary-deep) 100%);
  box-shadow: 0 0 12px -2px rgba(75,108,247,.65);
}

/* Ticks sit under the track as scale marks. Kept subtle — they are there to
   make the fill read as a measurement rather than an underline. */
.nnc-credit .nnc-odo__ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  padding: 0 1px;
}
.nnc-credit .nnc-odo__ticks span {
  width: 1px;
  height: 5px;
  background: var(--nn-border);
  border-radius: 1px;
}

/* No JS, or reduced motion: show the finished state, never an empty meter. */
.nnc-credit .nnc-odo.nnc-odo--done .nnc-odo__fill { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .nnc-credit .nnc-odo__fill { width: 100% !important; transition: none !important; }
}

.nnc-credit .nnc-panel__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--nn-primary-hex);
  color: var(--nn-primary);
}
.nnc-credit .nnc-panel__link:hover { gap: 11px; color: var(--nn-primary-deep); }
.nnc-credit .nnc-panel__link svg { transition: transform .2s ease; }

.nnc-credit .nnc-panel__list {
  margin: 0;
  padding: 20px 24px 24px;
  border-top: 1px solid var(--nn-border);
  background: var(--nn-bg-alt);
  list-style: none;
}
.nnc-credit .nnc-panel__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--nn-fg);
}
.nnc-credit .nnc-panel__list li + li { margin-top: 12px; }
.nnc-credit .nnc-panel__list svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--nn-primary-hex);
  color: var(--nn-primary);
}

.nnc-credit .nnc-float {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--nn-border);
  border-radius: var(--nn-radius-lg);
  box-shadow: var(--nn-shadow-lg);
  padding: 12px 16px;
  max-width: 230px;
}
.nnc-credit .nnc-float__icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--nn-primary-10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nn-primary-hex);
  color: var(--nn-primary);
}
.nnc-credit .nnc-float__text {
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--nn-fg);
}

/* ------------------------------------------------------------
   STEP NUMBERS — net30-landing.css sets opacity .08, which washes
   out against the alt background here. Scoped so /net-30/ keeps its
   own treatment.
   ------------------------------------------------------------ */
.nnc-credit .nn-process-card__num {
  color: var(--nn-primary-hex);
  color: var(--nn-primary);
  opacity: .22;
}

/* ------------------------------------------------------------
   PRO TIP — headings inside the blue band
   ------------------------------------------------------------ */
.nnc-credit .nnc-tip__title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 6px;
  color: #fff;
}
.nnc-credit .nnc-tip__text {
  font-size: .9375rem;
  line-height: 1.6;
  margin: 0;
  color: rgba(255,255,255,.88);
}

/* ------------------------------------------------------------
   TIERS — what the limit covers
   ------------------------------------------------------------ */
.nnc-credit .nnc-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
}

.nnc-credit .nnc-tier {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--nn-border);
  border-radius: var(--nn-radius-2xl);
  padding: 32px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.nnc-credit .nnc-tier:hover {
  transform: translateY(-4px);
  box-shadow: var(--nn-shadow-lg);
  border-color: rgba(75,108,247,.3);
}

.nnc-credit .nnc-tier__cap {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--nn-muted);
  background: var(--nn-bg-alt);
  border: 1px solid var(--nn-border);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 18px;
}
.nnc-credit .nnc-tier__title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--nn-fg);
  margin-bottom: 10px;
}
.nnc-credit .nnc-tier__desc {
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--nn-muted);
  margin: 0 0 22px;
}
.nnc-credit .nnc-tier__proof {
  margin-top: auto;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: var(--nn-bg-alt);
  border-radius: var(--nn-radius-md);
  padding: 14px 16px;
  font-size: .875rem;
  line-height: 1.55;
  color: var(--nn-fg);
}
.nnc-credit .nnc-tier__proof svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--nn-primary-hex);
  color: var(--nn-primary);
}
.nnc-credit .nnc-tier__proof a {
  font-weight: 700;
  color: var(--nn-primary-hex);
  color: var(--nn-primary);
  white-space: nowrap;
}
.nnc-credit .nnc-tier__proof a:hover { text-decoration: underline; }

/* The $1,000+ tier is the one we want read. */
.nnc-credit .nnc-tier--open {
  border-color: rgba(75,108,247,.35);
  box-shadow: var(--nn-shadow-md);
}
.nnc-credit .nnc-tier--open .nnc-tier__cap {
  color: #fff;
  background: var(--nn-primary-hex);
  background: var(--nn-primary);
  border-color: transparent;
}
.nnc-credit .nnc-tier--open .nnc-tier__proof {
  background: var(--nn-bg-accent);
}

/* ------------------------------------------------------------
   FINAL CTA — two buttons instead of one
   ------------------------------------------------------------ */
.nnc-credit .nnc-cta__actions {
  gap: 14px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .nnc-credit .nnc-tiers { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nnc-credit .nnc-visual { padding-bottom: 44px; }
  .nnc-credit .nnc-panel { max-width: 100%; }
  .nnc-credit .nnc-float {
    right: 50%;
    transform: translateX(50%);
    bottom: 0;
    max-width: 260px;
  }
  .nnc-credit .nnc-tier { padding: 26px 22px; }
  .nnc-credit .nnc-cta__actions { flex-direction: column; }
  .nnc-credit .nnc-cta__actions .nn-btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .nnc-credit .nnc-panel__head { padding: 16px 18px; }
  .nnc-credit .nnc-panel__figure { padding: 24px 18px 20px; }
  .nnc-credit .nnc-panel__list { padding: 18px; }
  .nnc-credit .nnc-tier__title { font-size: 1.3125rem; }
}
