/* ═══════════════════════════════════════════════════════════
   New MCA Leads — REDESIGN + MOTION LAYER (draft, Oct 2026)
   Loads after styles.css. Brand: navy #12294a · teal #34897a.
   No dependencies. Motion disabled under prefers-reduced-motion.
   ═══════════════════════════════════════════════════════════ */
:root {
  --navy: #12294a; --navy-900: #0a1a31; --navy-700: #1d3a63;
  --teal: #34897a; --teal-300: #6cc3b2; --teal-100: #d7efe9;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow-xl: 0 40px 80px -24px rgba(5,14,30,.6), 0 12px 30px -12px rgba(5,14,30,.45);
}

/* ── View transitions (MPA) ── */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: vt-out .28s var(--ease-out) both; }
  ::view-transition-new(root) { animation: vt-in .5s var(--ease-out) both; }
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

/* ── Scroll progress ── */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 90; pointer-events: none;
  background: linear-gradient(90deg, var(--teal), var(--teal-300)); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); }
@supports (animation-timeline: scroll()) { .scroll-progress { animation: sp-grow linear both; animation-timeline: scroll(root); } }
@keyframes sp-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ── Header ── */
.site-header { transition: box-shadow .3s, background-color .3s; }
.site-header.is-scrolled { box-shadow: 0 10px 30px -16px rgba(18,41,74,.35); }
.nav { transition: min-height .3s var(--ease-out), padding .3s var(--ease-out); }
.site-header.is-scrolled .nav { padding: 10px 0; }
.nav-brand svg rect { transition: transform .5s var(--ease-spring); transform-box: fill-box; transform-origin: center; }
.nav-brand:hover svg rect:nth-child(1) { transform: translate(-2px, 2px); }
.nav-brand:hover svg rect:nth-child(3) { transform: translate(2px, -2px) rotate(12deg); }
.nav-links a { position: relative; transition: color .2s, background-color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--teal); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .35s var(--ease-out); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav.open .nav-links, .nav.open .nav-actions { animation: drop-in .35s var(--ease-out) both; }
.nav.open .nav-actions { animation-delay: .05s; }
@keyframes drop-in { from { opacity: 0; transform: translateY(-8px); } }

/* ── Buttons ── */
.btn { transition: transform .25s var(--ease-out), box-shadow .25s, background-color .2s, border-color .2s, color .2s; }
.btn-primary:hover, .btn-accent:hover, .btn-secondary:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 10px 24px -10px rgba(52,137,122,.8), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-teal:hover { background: #2f7d6f; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(52,137,122,.9), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-outline-light { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.3); backdrop-filter: blur(6px); }
.btn-outline-light:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.6); transform: translateY(-2px); }
.btn-glow { position: relative; overflow: hidden; isolation: isolate; }
.btn-glow::after { content: ""; position: absolute; inset: -2px; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%);
  transform: translateX(-120%); animation: shine 4.4s var(--ease-out) 1.8s infinite; }
@keyframes shine { 0% { transform: translateX(-120%); } 35%, 100% { transform: translateX(120%); } }
.btn-arrow { display: inline-block; transition: transform .3s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ── Reveal system ── */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }
.js .rv.is-in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes card-in { from { opacity: 0; transform: translateY(28px) scale(.97); } }
.card-in { animation: card-in .7s var(--ease-out) backwards; animation-delay: calc(var(--d, 0) * 80ms); }

/* ── Shared section type ── */
.neyebrow { margin: 0 0 10px; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); display: inline-flex; align-items: center; gap: 10px; }
.neyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--teal); }
.nsec-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.nsec-head h2, .nwhy h2, .ninv h2, .ncta h2 { font-size: clamp(30px, 4.4vw, 48px); letter-spacing: -.03em; }
.nsec-head--center { text-align: center; margin-inline: auto; }
.nsec-head--center .neyebrow { justify-content: center; }

/* ═════ HERO ═════ */
.nhero { position: relative; overflow: hidden; isolation: isolate; background: var(--navy-900); color: #fff; padding: clamp(48px, 7vw, 104px) 0 clamp(64px, 8vw, 120px); }
.nhero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 80% 70% at 30% 0%, #183764 0%, var(--navy-900) 65%); }
.nhero__glow { position: absolute; border-radius: 50%; }
.nhero__glow--a { width: 60vmax; height: 60vmax; right: -20vmax; top: -24vmax; background: radial-gradient(circle, rgba(52,137,122,.55), rgba(52,137,122,0) 60%); animation: glow-a 16s ease-in-out infinite alternate; }
.nhero__glow--b { width: 44vmax; height: 44vmax; left: -16vmax; bottom: -28vmax; background: radial-gradient(circle, rgba(108,195,178,.28), rgba(108,195,178,0) 60%); animation: glow-b 20s ease-in-out infinite alternate; }
@keyframes glow-a { to { transform: translate(-10vmax, 8vmax) scale(1.15); } }
@keyframes glow-b { to { transform: translate(10vmax, -6vmax) scale(1.2); } }
.nhero__dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.4px); background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 10%, transparent 70%); animation: dots-pan 40s linear infinite; }
@keyframes dots-pan { to { background-position: 26px 52px; } }
.nhero__beam { position: absolute; top: -20%; left: 55%; width: 2px; height: 140%; background: linear-gradient(transparent, rgba(108,195,178,.5), transparent); transform: rotate(18deg); animation: beam 7s ease-in-out infinite; opacity: .6; }
@keyframes beam { 0% { transform: translateX(-30vw) rotate(18deg); opacity: 0; } 30% { opacity: .7; } 70% { opacity: .7; } 100% { transform: translateX(40vw) rotate(18deg); opacity: 0; } }

.nhero__inner { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 980px) { .nhero__inner { grid-template-columns: 1.1fr .9fr; } }
.nbadge { background: rgba(52,137,122,.18); color: var(--teal-300); border: 1px solid rgba(108,195,178,.35); gap: 8px; animation: rise .8s var(--ease-out) both; }
.nbadge i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-300); animation: npulse 2s ease-out infinite; }
@keyframes npulse { 0% { box-shadow: 0 0 0 0 rgba(108,195,178,.6); } 100% { box-shadow: 0 0 0 10px rgba(108,195,178,0); } }
.nhero__title { margin: 18px 0 0; color: #fff; font-size: clamp(40px, 6.6vw, 76px); line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }
.nhero__title .w { display: inline-block; animation: word-up 1s var(--ease-out) both; animation-delay: calc(.12s + var(--i) * 80ms); }
@keyframes word-up { from { opacity: 0; transform: translateY(.5em) rotate(2deg); filter: blur(6px); } }
.nhero__title .w.nhero__grad { background: linear-gradient(90deg, var(--teal-300), #9fe3d4, var(--teal), var(--teal-300)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: word-up 1s var(--ease-out) .2s both, grad-pan 6s linear 1.2s infinite; }
@keyframes grad-pan { to { background-position: 300% 0; } }
.nhero__lead { margin: 22px 0 0; max-width: 33em; font-size: clamp(16.5px, 1.6vw, 19px); color: rgba(255,255,255,.76); animation: rise 1s var(--ease-out) .6s both; }
.nhero__ctas { margin: 30px 0 0; animation: rise 1s var(--ease-out) .75s both; }
.nhero__checks { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 14.5px; color: rgba(255,255,255,.85); animation: rise 1s var(--ease-out) .9s both; }
.nhero__checks li { display: inline-flex; align-items: center; gap: 9px; }
.ncheck { width: 20px; height: 20px; border-radius: 50%; background: var(--teal); position: relative; flex: none; display: inline-block; }
.ncheck::after { content: ""; position: absolute; left: 7px; top: 4px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* hero deck */
.nhero__visual { position: relative; display: grid; place-items: center; min-height: 420px; perspective: 1400px; animation: rise 1.1s var(--ease-out) .45s both; }
@supports (animation-timeline: scroll()) { @media (prefers-reduced-motion: no-preference) {
  .nhero__visual { animation: visual-drift linear both; animation-timeline: scroll(root); animation-range: 0 90vh; } } }
@keyframes visual-drift { to { transform: translateY(-60px); } }
.ndeck { position: relative; width: min(100%, 400px); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease-out); }
.nteaser { position: relative; background: #fff; color: var(--body); border-radius: 20px; padding: 20px; box-shadow: var(--shadow-xl); border: 1px solid rgba(255,255,255,.6); }
.nteaser--back1, .nteaser--back2 { position: absolute; inset: 0 0 auto 0; height: 100%; }
.nteaser--back2 { transform: translate(34px, -40px) rotate(6deg) scale(.9); opacity: .45; animation: deck2 8s ease-in-out infinite; }
.nteaser--back1 { transform: translate(18px, -20px) rotate(3deg) scale(.95); opacity: .75; animation: deck1 8s ease-in-out infinite; }
@keyframes deck1 { 50% { transform: translate(26px, -26px) rotate(4.5deg) scale(.95); } }
@keyframes deck2 { 50% { transform: translate(48px, -50px) rotate(8deg) scale(.9); } }
.nteaser--front { animation: nfloat 7s ease-in-out infinite; }
@keyframes nfloat { 50% { translate: 0 -12px; } }
.nteaser__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.nteaser__top b { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 17px; line-height: 1.25; }
.nteaser__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 16px 0 0; }
.nteaser__meta dt { font-size: 12px; color: var(--muted); }
.nteaser__meta dd { margin: 0; font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 14.5px; }
.nlock { position: relative; margin-top: 16px; border-radius: 14px; background: var(--bg-soft); border: 1px dashed var(--line); padding: 14px; overflow: hidden; }
.nlock__blur { display: grid; gap: 8px; filter: blur(3px); animation: unblur 6s var(--ease-out) 1.6s infinite; }
.nlock__blur span { height: 10px; border-radius: 6px; background: linear-gradient(90deg, #c9d5e3, #e3e9f1); }
.nlock__blur span:nth-child(2) { width: 80%; } .nlock__blur span:nth-child(3) { width: 55%; }
@keyframes unblur { 0%, 35% { filter: blur(3px); } 45%, 85% { filter: blur(0); } 95%, 100% { filter: blur(3px); } }
.nlock__badge { position: absolute; inset: 0; display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; column-gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 13.5px; color: var(--ink); }
.nlock__icon { grid-column: 1; grid-row: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; box-shadow: 0 6px 16px -6px rgba(18,41,74,.6); animation: lock-bg 6s var(--ease-out) 1.6s infinite; }
.nlock__shackle { transform-box: fill-box; transform-origin: 100% 100%; animation: shackle 6s var(--ease-spring) 1.6s infinite; }
@keyframes shackle { 0%, 30% { transform: none; } 40%, 85% { transform: translateY(-2px) rotate(-28deg); } 95%, 100% { transform: none; } }
@keyframes lock-bg { 0%, 32% { background: var(--navy); } 42%, 85% { background: var(--teal); } 95%, 100% { background: var(--navy); } }
.nlock__txt { grid-column: 2; grid-row: 1; white-space: nowrap; background: rgba(255,255,255,.94); padding: 5px 11px; border-radius: 99px; box-shadow: 0 4px 12px -6px rgba(18,41,74,.3); }
.nlock__txt--locked { animation: txt-a 6s var(--ease-out) 1.6s infinite; }
.nlock__txt--open { opacity: 0; color: var(--accent-ink); animation: txt-b 6s var(--ease-out) 1.6s infinite; }
@keyframes txt-a { 0%, 30% { opacity: 1; } 38%, 88% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes txt-b { 0%, 34% { opacity: 0; transform: translateY(6px); } 42%, 84% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; } }
.nteaser__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.nteaser__docs { font-size: 12.5px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 5px 10px; border-radius: 99px; }
.nteaser__sample { position: absolute; left: 20px; top: -11px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--danger-soft); color: var(--danger); padding: 3px 9px; border-radius: 99px; }
.nfloat { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 99px; background: rgba(13,31,58,.92); border: 1px solid rgba(108,195,178,.45); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: 0 16px 30px -14px rgba(0,0,0,.5); }
.nfloat--a { left: -6%; bottom: 8%; animation: bob 6s ease-in-out infinite, rise 1s var(--ease-out) 1.2s both; }
.nfloat--b { right: -10%; top: -6%; animation: bob 7s ease-in-out -3s infinite, rise 1s var(--ease-out) 1.4s both; }
@keyframes bob { 50% { translate: 0 -10px; } }
@media (max-width: 979px) { .nhero__visual { min-height: 0; padding: 50px 0 10px; } .nfloat--a { left: 0; bottom: -12px; } .nfloat--b { right: 0; top: 0; } }
@media (max-width: 640px) {
  .nhero { padding: 36px 0 52px; }
  .nhero__title { font-size: clamp(38px, 11vw, 48px); }
  .nhero__ctas .btn { width: 100%; }
  .nhero__checks { flex-direction: column; gap: 10px; }
  .nteaser--back2 { transform: translate(18px, -30px) rotate(5deg) scale(.9); }
  .nteaser--back1 { transform: translate(10px, -15px) rotate(2.5deg) scale(.95); }
  .nfloat--b { display: none; }
}

/* ═════ PIPELINE ═════ */
.npipe { padding: clamp(64px, 8vw, 112px) 0 clamp(24px, 3vw, 40px); }
.npipe__track { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 14px; }
.npipe__track::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: var(--line); }
.npipe__track::after { content: ""; position: absolute; left: 20px; top: 24px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 6px rgba(52,137,122,.18), 0 0 18px var(--teal); animation: travel-y 5s var(--ease-out) infinite; }
@keyframes travel-y { 0% { top: 20px; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: calc(100% - 28px); opacity: 0; } }
.npipe__track li { position: relative; display: flex; align-items: center; gap: 16px; }
.npipe__node { position: relative; z-index: 1; flex: none; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--ink); background: #fff; border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); animation: node 5s var(--ease-out) infinite; animation-delay: calc(var(--n) * 1s); }
@keyframes node { 0%, 4% { background: #fff; color: var(--ink); border-color: var(--line); transform: none; } 10%, 22% { background: var(--teal); color: #fff; border-color: var(--teal); transform: scale(1.1); } 34%, 100% { background: #fff; color: var(--ink); border-color: var(--line); transform: none; } }
.npipe__lbl { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; color: var(--ink); }
@media (min-width: 900px) {
  .npipe__track { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .npipe__track::before { left: 10%; right: 10%; top: 31px; bottom: auto; width: auto; height: 2px; }
  .npipe__track::after { top: 28px; left: 10%; animation-name: travel-x; }
  @keyframes travel-x { 0% { left: 9%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 90%; opacity: 0; } }
  .npipe__track li { flex-direction: column; text-align: center; gap: 14px; }
  .npipe__node { width: 64px; height: 64px; border-radius: 20px; font-size: 20px; }
  .npipe__lbl { font-size: 15.5px; max-width: 14em; }
}

/* ═════ FEATURES ═════ */
.nsteps-sec { padding-top: clamp(24px, 3vw, 40px); }
.nfeat { position: relative; overflow: hidden; isolation: isolate; padding: 28px; border-radius: 22px; transition: transform .45s var(--ease-out), box-shadow .45s, border-color .3s; }
.nfeat::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(52,137,122,.14), transparent 45%); }
.nfeat:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent-line); }
.nfeat:hover::before { opacity: 1; }
.nfeat__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, var(--teal), var(--navy)); box-shadow: 0 12px 24px -12px rgba(18,41,74,.6); margin-bottom: 18px; transition: transform .5s var(--ease-spring); }
.nfeat:hover .nfeat__icon { transform: rotate(-8deg) scale(1.08); }
.nfeat__n { position: absolute; right: 22px; top: 18px; font-family: var(--font-display); font-weight: 800; font-size: 46px; letter-spacing: -.04em; color: var(--line-soft); line-height: 1; z-index: -1; transition: color .3s; }
.nfeat:hover .nfeat__n { color: var(--accent-soft); }
.nfeat h3 { font-size: 20px; }
.nfeat p { font-size: 15px; }

/* ═════ WHY ═════ */
.nwhy__grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .nwhy__grid { grid-template-columns: .9fr 1.1fr; gap: 64px; } }
.nwhy__lead { font-size: 18.5px; color: var(--body); max-width: 30em; }
.nwhy__cards { display: grid; gap: 14px; align-items: stretch; }
@media (min-width: 640px) { .nwhy__cards { grid-template-columns: 1fr auto 1fr; } }
.ncompare { position: relative; border-radius: 22px; padding: 26px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .45s var(--ease-out), box-shadow .45s; }
.ncompare:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.ncompare__tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--bg-tint); padding: 5px 10px; border-radius: 99px; }
.ncompare__val { font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -.03em; color: var(--ink); margin: 14px 0 6px; }
.ncompare p { margin: 0; font-size: 15px; color: var(--muted); }
.ncompare--on { background: linear-gradient(150deg, var(--navy), #183a66); border-color: transparent; color: #fff; overflow: hidden; isolation: isolate; }
.ncompare--on::before { content: ""; position: absolute; inset: -40%; z-index: -1; background: conic-gradient(from var(--ang, 0deg), transparent 0 65%, rgba(108,195,178,.45) 80%, transparent 92%); animation: spin-ang 7s linear infinite; }
.ncompare--on::after { content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: 21px; background: linear-gradient(150deg, var(--navy), #183a66); }
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin-ang { to { --ang: 360deg; } }
.ncompare--on .ncompare__tag { background: rgba(108,195,178,.18); color: var(--teal-300); }
.ncompare--on .ncompare__val { color: #fff; }
.ncompare--on p { color: rgba(255,255,255,.78); }
.ncompare__arrow { display: grid; place-items: center; }
.ncompare__arrow span { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); position: relative; animation: nudge 2s ease-in-out infinite; }
.ncompare__arrow span::after { content: "→"; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; color: var(--accent-ink); }
@media (max-width: 639px) { .ncompare__arrow span { transform: rotate(90deg); animation-name: nudge-y; } }
@keyframes nudge { 50% { transform: translateX(5px); } }
@keyframes nudge-y { 0%, 100% { transform: rotate(90deg); } 50% { transform: rotate(90deg) translateX(5px); } }

/* ═════ INVENTORY + LEAD CARDS (global upgrade) ═════ */
.ninv__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; max-width: none; }
.lead-card { position: relative; overflow: hidden; isolation: isolate; border-radius: 20px; padding: 22px; transition: transform .45s var(--ease-out), box-shadow .45s, border-color .3s; }
.lead-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--teal), var(--navy)); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease-out); }
.lead-card::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(52,137,122,.12), transparent 45%); }
.lead-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent-line); }
.lead-card:hover::before { transform: scaleX(1); }
.lead-card:hover::after { opacity: 1; }
.lead-card h3 { font-size: 17px; }
.lead-meta { background: var(--bg-soft); border-radius: 14px; padding: 12px 14px; }
.lead-card-foot .btn { transition: transform .25s var(--ease-out), background-color .2s, color .2s, border-color .2s; }
.lead-card:hover .lead-card-foot .btn-secondary { background: var(--ink); color: #fff; border-color: var(--ink); }
.skeleton { border-radius: 20px; }

.ninv__row { display: grid; gap: 20px; }
.ninv__more { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-height: 220px; padding: 28px; border-radius: 22px; text-decoration: none; color: #fff; background: linear-gradient(150deg, var(--navy), #183a66); box-shadow: var(--shadow-lg); transition: transform .45s var(--ease-out), box-shadow .45s; }
.ninv__more:hover { transform: translateY(-6px); }
.ninv__more .neyebrow { color: var(--teal-300); margin: 0; }
.ninv__more .neyebrow::before { background: var(--teal-300); }
.ninv__more strong { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.12; letter-spacing: -.025em; }
.ninv__more-sub { color: rgba(255,255,255,.75); font-size: 15px; max-width: 30em; }
.ninv__more .btn { align-self: flex-start; margin-top: 10px; }
.ninv__more-glow { position: absolute; right: -30%; top: -50%; width: 90%; aspect-ratio: 1; border-radius: 50%; z-index: -1; background: radial-gradient(circle, rgba(52,137,122,.55), transparent 60%); animation: breathe 7s ease-in-out infinite; }
.ninv__row:has(.lead-card:nth-child(3)) .ninv__more { display: none; }
@media (min-width: 900px) {
  .ninv__row:has(.lead-card:only-child) { grid-template-columns: 1fr 2fr; }
  .ninv__row:has(.lead-card:only-child) .listings-grid { grid-template-columns: 1fr; }
  .ninv__row:has(.lead-card:nth-child(2)):not(:has(.lead-card:nth-child(3))) { grid-template-columns: 2fr 1fr; }
  .ninv__row:has(.lead-card:nth-child(2)):not(:has(.lead-card:nth-child(3))) .listings-grid { grid-template-columns: 1fr 1fr; }
}

/* ═════ PRICING PREVIEW ═════ */
.nprice__grid { display: grid; gap: 18px; }
@media (min-width: 860px) { .nprice__grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.nplan { position: relative; display: block; text-decoration: none; color: inherit; background: #fff; border: 1.5px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--shadow-sm); transition: transform .45s var(--ease-out), box-shadow .45s, border-color .3s; }
.nplan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent-line); }
.nplan h3 { margin: 14px 0 4px; }
.nplan__amt { font-family: var(--font-display); font-weight: 800; font-size: 40px; letter-spacing: -.03em; color: var(--ink); }
.nplan__amt span { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.nplan p { margin: 8px 0 0; font-size: 14.5px; color: var(--muted); }
.nplan--featured, .price-card.featured { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, conic-gradient(from var(--ang, 0deg), var(--teal), var(--navy), var(--teal-300), var(--teal)) border-box; border: 2px solid transparent; animation: spin-ang 6s linear infinite; box-shadow: 0 24px 50px -24px rgba(52,137,122,.55); }

/* ═════ FINAL CTA ═════ */
.ncta { position: relative; overflow: hidden; isolation: isolate; background: var(--navy-900); color: #fff; padding: clamp(72px, 10vw, 128px) 0; text-align: center; }
.ncta__bg { position: absolute; inset: 0; z-index: -1; }
.ncta__bg span { position: absolute; left: 50%; top: 50%; width: 70vmax; height: 70vmax; margin: -35vmax 0 0 -35vmax; border-radius: 50%; background: radial-gradient(circle, rgba(52,137,122,.45), transparent 55%); animation: breathe 8s ease-in-out infinite; }
.ncta__bg span + span { background: none; border: 1px solid rgba(108,195,178,.25); width: 30vmax; height: 30vmax; margin: -15vmax 0 0 -15vmax; animation: ring 6s var(--ease-out) infinite; }
@keyframes breathe { 50% { transform: scale(1.15); opacity: .8; } }
@keyframes ring { from { transform: scale(.5); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
.ncta__inner { max-width: 720px; }
.ncta h2 { color: #fff; }
.ncta p { color: rgba(255,255,255,.75); font-size: 18px; }
.ncta .hero-ctas { justify-content: center; margin: 28px 0 0; }

/* ═════ INNER PAGES ═════ */
.page-hero { position: relative; }
.wrap.page-hero { padding-inline: var(--gutter); }
@media (max-width: 640px) { .wrap.page-hero { padding-inline: max(16px, env(safe-area-inset-left, 16px)) max(16px, env(safe-area-inset-right, 16px)); } }
.page-hero h1 { animation: rise .8s var(--ease-out) both; letter-spacing: -.03em; }
.page-hero p { animation: rise .8s var(--ease-out) .1s both; }
body:not(.is-home) main > .page-hero:first-child { padding-top: clamp(36px, 5vw, 64px); }
body:not(.is-home) main { background: radial-gradient(ellipse 70% 320px at 90% 0%, rgba(52,137,122,.10), transparent 70%), radial-gradient(ellipse 60% 280px at 0% 0%, rgba(18,41,74,.06), transparent 70%); }
.filters { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; box-shadow: var(--shadow-sm); animation: rise .8s var(--ease-out) .15s both; }
.filters select { transition: border-color .2s, box-shadow .2s; cursor: pointer; }
.filters select:hover { border-color: var(--accent-line); }
.listings-meta { animation: rise .8s var(--ease-out) .2s both; }
.price-card { position: relative; border-radius: 24px; transition: transform .45s var(--ease-out), box-shadow .45s, border-color .3s; }
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-card .amount { letter-spacing: -.03em; font-size: 42px; }
.price-card > .badge, .price-card > .draft-price-note { align-self: flex-start; }
.price-card h3 { margin-top: 14px; }
@media (min-width: 760px) {
  .wrap.page-hero::after { content: ""; position: absolute; right: var(--gutter); top: 28px; width: 260px; height: 130px; pointer-events: none;
    background-image: radial-gradient(rgba(52,137,122,.45) 1.3px, transparent 1.7px); background-size: 16px 16px;
    mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); animation: dots-pan 30s linear infinite; }
}
.price-card li { transition: padding-left .25s var(--ease-out); }
.price-card:hover li { padding-left: 30px; }
.auth-card { animation: auth-in .8s var(--ease-out) backwards; border-radius: 24px; }
@keyframes auth-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.auth-card .auth-card { animation: none; }
.form-control { transition: border-color .2s, box-shadow .25s; }
.form-control:focus { box-shadow: 0 0 0 4px var(--accent-soft); }
body[data-page="login"] main, body[data-page="signup"] main { position: relative; isolation: isolate; }
body[data-page="login"] main::before, body[data-page="signup"] main::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 20% 20%, rgba(52,137,122,.14), transparent 40%), radial-gradient(circle at 80% 70%, rgba(18,41,74,.10), transparent 40%); animation: auth-bg 14s ease-in-out infinite alternate; }
@keyframes auth-bg { to { transform: translate(-2%, 2%) scale(1.04); } }
.detail-panel { border-radius: 24px; animation: rise .7s var(--ease-out) both; }
.detail-panel + .detail-panel { animation-delay: .12s; }
.buy-box { position: sticky; top: 96px; }
.alert { animation: rise .6s var(--ease-out) both; }
.credit-pill strong { font-size: 34px; }
.account-side, .table-wrap { animation: rise .7s var(--ease-out) both; }

/* Account purchases: cards instead of a sideways-scrolling table on phones */
@media (max-width: 640px) {
  .table-wrap { overflow: visible; border: 0; background: transparent; }
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.data tr { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
  table.data td { border: 0; padding: 4px 0; white-space: normal; display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
  table.data td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
  table.data td:last-child a { display: inline-flex; justify-content: center; width: 100%; padding: 12px; margin-top: 6px; border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; }
}

/* footer */
.site-footer { position: relative; }
.site-footer a { transition: color .2s, padding-left .25s var(--ease-out); }
.site-footer li a:hover { padding-left: 4px; }

/* ═════ REDUCED MOTION ═════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1 !important; transform: none !important; }
  .nlock__blur { filter: blur(3px); }
}

/* ═════════════════════════════════════════════════════════════════════
   POLISH PASS (Oct 2026): alignment, wrapping, tap targets
   Visual/layout only: copy, auth, checkout and admin behaviour unchanged.
   ═════════════════════════════════════════════════════════════════════ */

/* Headings: no one-word widows ("files?", "file") */
h1, h2, h3, .ninv__more strong, .lead-card h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

/* Lead page: no empty status line under the unlock buttons (it still shows when it has a message) */
.lock-cta .auth-status:empty { display: none; }
.lock-cta > div[style*="flex-wrap"] { align-items: stretch; }

/* Login: "Forgot password?" is a right-aligned 44px target, not a full-width strip */
[data-forgot-open] { width: auto !important; min-height: 44px !important; padding: 0 2px !important; }
div:has(> [data-forgot-open]) { margin: -12px 0 6px !important; }

/* Touch targets: 44px minimum on touch-size screens */
@media (max-width: 1023.98px) {
  .nav-brand { min-height: 44px; }
  .btn-sm { min-height: 44px; }
  [data-filter-industry], [data-filter-state] { min-height: 44px; }
  .site-footer li { margin-bottom: 0; }
  .site-footer li a { display: flex; align-items: center; min-height: 44px; }
  .site-footer h4 { margin-bottom: 4px; }
  .form-foot a, .auth-card p a, .alert a, .text-muted a, .auth-switch a, main p > a:not(.btn) { display: inline-block; padding-block: 12px; margin-block: -12px; }
}

@media (max-width: 979px) {
  /* hero sample card: "Marketplace consent" chip sat on top of the "$75 unlock" row */
  .nhero__visual { padding-bottom: 34px; }
  .nfloat--a { bottom: -14px; }
}
@media (max-width: 640px) {
  /* lead page unlock box: one clean column, email button never breaks mid-address */
  .locked-panel { padding: 16px 14px; }
  .lock-cta { padding: 18px 14px; }
  .lock-cta > div[style*="flex-wrap"] { flex-direction: column; }
  .lock-cta .btn-secondary { overflow-wrap: normal; word-break: normal; font-size: 14px; padding-inline: 12px; }
}

/* Tablet (641-979): line the hero card up with the copy instead of centring it under left-aligned text */
@media (min-width: 641px) and (max-width: 979px) {
  .nhero__visual { place-items: center start; }
  .nfloat--a { left: 0; }
}
/* Tablet: featured listing + "Browse every approved file" side by side (was half-empty row + full-width panel) */
@media (min-width: 640px) and (max-width: 899.98px) {
  .ninv__row:has(.lead-card:only-child) { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .ninv__row:has(.lead-card:only-child) .listings-grid { grid-template-columns: 1fr; }
}
/* Tablet: pricing in one row of three (was three full-width stacked cards) */
@media (min-width: 700px) and (max-width: 859.98px) {
  .nprice__grid, .pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .price-card, .nprice__grid > * { padding: 22px 18px; }
}
