/* Avenue180 — Revenue Leak Audit funnel
   Brand: DM Sans + PT Serif, dark navy operator aesthetic, single electric-blue CTA.
   Pulled from avenue180.com identity. Shared across all 3 funnel pages. */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=PT+Serif:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --navy-900: #0a131f;   /* page background */
  --navy-850: #0d1826;
  --navy-800: #112337;   /* brand navy, surfaces */
  --navy-700: #18304a;
  --hair:     rgba(255,255,255,0.09);
  --ink:      #eef4fa;   /* primary text */
  --ink-soft: #aebccb;   /* secondary text */
  --ink-mut:  #8698ab;   /* muted / labels (brightened to clear 4.5:1 on navy) */
  --blue:     #2a8fe0;   /* brand accent */
  --blue-br:  #3aa0f0;   /* brighter for CTA */
  --blue-dk:  #0078ae;
  --signal:   #ffb02e;   /* warm highlight for proof numbers only */
  --maxw: 1080px;
  --r: 14px;
  --r-sm: 9px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--navy-900);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  /* atmosphere: subtle radial glow + faint grid */
  background-image:
    radial-gradient(1100px 600px at 78% -8%, rgba(42,143,224,0.16), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(0,120,174,0.10), transparent 55%);
  background-attachment: fixed;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; }

h1, h2, h3 { line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.015em; }
p { color: var(--ink-soft); }
.serif { font-family: 'PT Serif', Georgia, serif; letter-spacing: -0.01em; }
em.lead { color: var(--blue-br); font-style: normal; }
.hl { color: var(--ink); border-bottom: 2px solid var(--blue); padding-bottom: 1px; }

/* ---- kicker / eyebrow ---- */
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue-br);
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--blue); display: inline-block; }

/* ---- top bar ---- */
.bar { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px);
  background: rgba(10,19,31,0.72); border-bottom: 1px solid var(--hair); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand b { color: var(--blue-br); }
.bar-tag { font-size: 0.8rem; color: var(--ink-mut); display: none; }
@media (min-width: 720px) { .bar-tag { display: block; } }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-size: 1.04rem; font-weight: 600; letter-spacing: -0.01em;
  color: #04101c; background: var(--blue-br);
  border: 0; border-radius: var(--r-sm); padding: 16px 28px;
  cursor: pointer; text-decoration: none; min-height: 52px;
  box-shadow: 0 8px 30px rgba(42,143,224,0.32);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { background: #54b0ff; transform: translateY(-2px); box-shadow: 0 12px 38px rgba(42,143,224,0.42); }
.btn:focus-visible { outline: 3px solid #bfe0ff; outline-offset: 3px; }
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(4px); }
.btn-sm { padding: 11px 18px; font-size: 0.92rem; min-height: 44px; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--hair); box-shadow: none; }
.btn-ghost:hover { background: rgba(255,255,255,0.04); border-color: var(--blue); }
.cta-note { font-size: 0.9rem; color: var(--ink-soft); margin-top: 14px; line-height: 1.5; }
.cta-note b { color: var(--ink); font-weight: 600; }
.cta-note .sep { color: var(--ink-mut); margin: 0 8px; }

/* hero CTA row: button + inline reassurance side by side on desktop */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 4px; }

/* skip link (a11y) */
.skip-link { position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--blue-br); color: #04101c; padding: 12px 20px; border-radius: 0 0 8px 0; font-weight: 600; }
.skip-link:focus { left: 0; }

/* mid-page CTA block */
.cta-band { text-align: center; padding: 8px 0 0; }
.cta-band .scar { display: block; margin-top: 12px; font-size: 0.88rem; color: var(--ink-mut); }

/* sticky CTA bar (persistent action once hero scrolls away) */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(13,24,38,0.92); backdrop-filter: blur(12px);
  border-top: 1px solid var(--hair); transform: translateY(110%);
  transition: transform .28s cubic-bezier(.2,.7,.3,1); }
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.sticky-cta .txt { min-width: 0; }
.sticky-cta .txt b { color: var(--ink); font-weight: 600; display: block; font-size: 0.98rem; }
.sticky-cta .txt span { color: var(--ink-mut); font-size: 0.82rem; }
.sticky-cta .btn { flex: none; }
@media (max-width: 560px) {
  .sticky-cta .txt span { display: none; }
  .sticky-cta .txt b { font-size: 0.9rem; }
  .sticky-cta .btn { padding: 13px 18px; font-size: 0.95rem; }
}

/* testimonial */
.testi { margin-top: 16px; padding: 30px; border-radius: var(--r);
  background: var(--navy-850); border: 1px solid var(--hair);
  display: flex; gap: 22px; align-items: flex-start; }
.testi .avatar { flex: none; width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy-800); border: 1px solid var(--hair); display: grid; place-items: center;
  color: var(--ink-mut); font-weight: 700; font-family: 'PT Serif', serif; }
.testi blockquote { font-family: 'PT Serif', serif; font-size: 1.22rem; line-height: 1.5; color: var(--ink); }
.testi .cite { margin-top: 12px; font-size: 0.9rem; color: var(--ink-mut); font-style: normal; }
.testi[data-placeholder] { border-style: dashed; }

/* ---- hero ---- */
.hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.hero > .wrap { position: relative; z-index: 1; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(42,143,224,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,143,224,0.07) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(115% 75% at 78% 0%, #000 0%, rgba(0,0,0,0.35) 45%, transparent 72%);
          mask-image: radial-gradient(115% 75% at 78% 0%, #000 0%, rgba(0,0,0,0.35) 45%, transparent 72%);
}
.hero h1 { margin: 18px 0 0; max-width: 16ch; }
.hero .sub { font-size: 1.18rem; color: var(--ink-soft); margin: 22px 0 30px; max-width: 54ch; }
.video-slot {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-850));
  border: 1px solid var(--hair); border-radius: var(--r); overflow: hidden;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  margin: 8px 0 28px;
}
.video-slot::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 120px rgba(0,0,0,0.45); }
.play { width: 76px; height: 76px; border-radius: 50%; background: var(--blue-br);
  display: grid; place-items: center; box-shadow: 0 10px 40px rgba(42,143,224,0.5); z-index: 1; }
.play svg { margin-left: 4px; }
.video-slot .vlabel { color: var(--ink-mut); font-size: 0.82rem; margin-top: 16px; z-index: 1; letter-spacing: 0.04em; }
.video-slot[data-placeholder]::before {
  content: "VSL VIDEO SLOT"; position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: 0.62rem; letter-spacing: 0.18em; color: var(--ink-mut);
  border: 1px dashed var(--hair); padding: 4px 8px; border-radius: 5px;
}

/* ---- trust strip ---- */
.trust { display: flex; flex-wrap: wrap; gap: 12px 30px; align-items: center;
  padding: 18px 0 0; border-top: 1px solid var(--hair); margin-top: 8px; }
.trust .t { display: flex; align-items: baseline; gap: 8px; font-size: 0.92rem; color: var(--ink-soft); }
.trust .t b { color: var(--ink); font-size: 1.05rem; font-weight: 700; }
.trust .num { color: var(--signal); font-weight: 700; }

/* ---- generic section ---- */
.sec { padding: 72px 0; border-top: 1px solid var(--hair); }
.sec-head { max-width: 60ch; margin-bottom: 40px; }
.sec-head h2 { margin: 14px 0 0; }
.sec-head p { margin-top: 16px; font-size: 1.1rem; }

/* ---- leaks list ---- */
.leaks { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .leaks { grid-template-columns: 1fr 1fr; } }
.leak { display: flex; gap: 16px; padding: 22px; background: var(--navy-850);
  border: 1px solid var(--hair); border-radius: var(--r); }
.leak .n { font-family: 'PT Serif', serif; font-size: 1.5rem; color: var(--blue-br); font-weight: 700; line-height: 1; min-width: 34px; }
.leak .ic { flex: none; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(42,143,224,0.12); border: 1px solid rgba(42,143,224,0.30); color: var(--blue-br); }
.leak .ic svg { width: 21px; height: 21px; }
.leak h3 { margin-bottom: 5px; }
.leak p { font-size: 0.97rem; }

/* ---- revenue path illustration ---- */
.rpath { display: flex; align-items: flex-start; justify-content: center; gap: 4px; flex-wrap: nowrap;
  margin: 0 0 34px; padding: 30px 18px 34px; border: 1px solid var(--hair); border-radius: var(--r);
  background: linear-gradient(160deg, rgba(42,143,224,0.07), transparent 72%); }
.rp-step { display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; min-width: 70px; }
.rp-dot { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--navy-800); border: 1px solid rgba(42,143,224,0.30); color: var(--blue-br); }
.rp-dot svg { width: 23px; height: 23px; }
.rp-cap { font-size: 0.78rem; color: var(--ink-soft); text-align: center; line-height: 1.25; }
.rp-end .rp-dot { background: rgba(42,143,224,0.18); border-color: var(--blue-br); color: #fff; }
.rp-seg { flex: 1 1 auto; min-width: 26px; height: 50px; position: relative; }
.rp-seg::before { content: ""; position: absolute; left: -2px; right: -2px; top: 25px; height: 2px;
  background: linear-gradient(90deg, rgba(42,143,224,0.45), rgba(42,143,224,0.18)); }
.rp-spark { position: absolute; top: 25px; left: 0; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
  background: var(--blue-br); box-shadow: 0 0 9px var(--blue-br); animation: rpflow 2.8s linear infinite; }
@keyframes rpflow { 0% { left: 0; opacity: 0; } 14% { opacity: 1; } 86% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.rp-leakage { position: absolute; top: 50px; left: 50%; transform: translateX(-50%); width: 6px; height: 30px; }
.rp-leakage i { position: absolute; left: 0; top: 0; width: 6px; height: 6px; border-radius: 50%;
  background: #e0584a; opacity: 0; animation: rpdrip 2.9s ease-in infinite; }
.rp-leakage i:nth-child(2) { animation-delay: 1s; }
.rp-leakage i:nth-child(3) { animation-delay: 2s; }
@keyframes rpdrip { 0% { transform: translateY(0); opacity: 0; } 18% { opacity: 0.85; } 100% { transform: translateY(30px); opacity: 0; } }
@media (max-width: 620px) {
  .rpath { flex-direction: column; align-items: stretch; gap: 0; padding: 24px 20px; }
  .rp-step { flex-direction: row; gap: 14px; justify-content: flex-start; min-width: 0; }
  .rp-cap { text-align: left; font-size: 0.92rem; }
  .rp-seg { width: 2px; min-width: 0; height: 22px; margin-left: 24px; flex: none; }
  .rp-seg::before { left: 0; right: auto; top: 0; bottom: 0; width: 2px; height: auto;
    background: linear-gradient(180deg, rgba(42,143,224,0.45), rgba(42,143,224,0.18)); }
  .rp-spark, .rp-leakage { display: none; }
}

/* ---- dashboard "the gap" mockup ---- */
.mock { background: var(--navy-800); border: 1px solid var(--hair); border-radius: var(--r); padding: 16px 18px 18px;
  max-width: 480px; margin: 0 auto 8px; }
.mock-bar { display: flex; align-items: center; gap: 7px; padding-bottom: 13px; border-bottom: 1px solid var(--hair); margin-bottom: 6px; }
.mock-bar .d { width: 9px; height: 9px; border-radius: 50%; background: #2a3850; }
.mock-ttl { margin-left: 8px; font-size: 0.72rem; color: var(--ink-mut); letter-spacing: 0.05em; }
.mock-row { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.mock-row + .mock-row { border-top: 1px solid var(--hair); }
.mock-meta { min-width: 132px; display: flex; flex-direction: column; gap: 3px; }
.mock-k { font-size: 0.8rem; color: var(--ink-soft); }
.mock-v { font-size: 1.08rem; font-weight: 700; line-height: 1; }
.mock-v.up { color: var(--blue-br); }
.mock-v.flat { color: var(--ink-mut); }
.mock .spark { flex: 1; height: 44px; width: 100%; }
.mock-cap { max-width: 480px; margin: 16px auto 0; text-align: center; font-size: 0.96rem; color: var(--ink-soft); }

/* ---- audit coverage chips ---- */
.covers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip { font-size: 0.9rem; color: var(--ink-soft); background: var(--navy-800);
  border: 1px solid var(--hair); border-radius: 999px; padding: 9px 16px; }
.chip b { color: var(--ink); font-weight: 600; }
.deliverable { margin-top: 30px; padding: 26px; border-radius: var(--r);
  background: linear-gradient(140deg, rgba(42,143,224,0.12), rgba(42,143,224,0.02));
  border: 1px solid rgba(42,143,224,0.28); }
.deliverable h3 { color: var(--ink); }
.deliverable p { margin-top: 8px; }
.deliverable ul { list-style: none; display: grid; gap: 10px; margin-top: 14px; }
.deliverable li { display: flex; gap: 11px; font-size: 0.98rem; color: var(--ink-soft); }
.deliverable li svg { flex: none; margin-top: 3px; }

/* ---- proof cards ---- */
.proof { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .proof { grid-template-columns: 1.3fr 1fr; } }
.proof-card { background: var(--navy-850); border: 1px solid var(--hair); border-radius: var(--r); padding: 30px; }
.proof-card .big { font-family: 'PT Serif', serif; font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 700; color: var(--ink); line-height: 1; }
.proof-card .big span { color: var(--signal); }
.proof-card .who { margin-top: 12px; color: var(--ink-mut); font-size: 0.92rem; letter-spacing: 0.02em; }
.proof-card.alt { display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.proof-card.alt .row { display: flex; align-items: baseline; gap: 12px; }
.proof-card.alt .row b { font-family: 'PT Serif', serif; font-size: 1.7rem; color: var(--ink); }

/* ---- steps ---- */
.steps { display: grid; gap: 18px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3,1fr); } }
.step { padding: 26px; background: var(--navy-850); border: 1px solid var(--hair); border-radius: var(--r); }
.step .s { font-size: 0.78rem; letter-spacing: 0.16em; color: var(--blue-br); font-weight: 600; }
.step h3 { margin: 12px 0 8px; }
.step p { font-size: 0.97rem; }

/* ---- faq ---- */
.faq { display: grid; gap: 0; border: 1px solid var(--hair); border-radius: var(--r); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--hair); background: var(--navy-850); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 22px 24px; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { color: var(--blue-br); font-size: 1.4rem; transition: transform .2s ease; line-height: 1; }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq .a { padding: 0 24px 24px; color: var(--ink-soft); font-size: 1rem; max-width: 70ch; }

/* ---- fit / not fit ---- */
.fit { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .fit { grid-template-columns: 1fr 1fr; } }
.fit-col { padding: 26px; border-radius: var(--r); border: 1px solid var(--hair); background: var(--navy-850); }
.fit-col h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.fit-col ul { list-style: none; display: grid; gap: 11px; }
.fit-col li { display: flex; gap: 11px; font-size: 0.98rem; color: var(--ink-soft); }
.fit-col li svg { flex: none; margin-top: 3px; }
.fit-col.yes { border-color: rgba(42,143,224,0.3); }

/* ---- application / final cta ---- */
.apply { padding: 84px 0; border-top: 1px solid var(--hair); position: relative; overflow: hidden;
  background: radial-gradient(800px 400px at 50% 0%, rgba(42,143,224,0.12), transparent 60%); }
.apply::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url('img/atmosphere.jpg') center/cover no-repeat; opacity: 0.28;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.4) 55%, transparent 88%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.4) 55%, transparent 88%);
}
.apply .wrap { position: relative; z-index: 1; text-align: center; }
.apply h2 { max-width: 18ch; margin: 16px auto 0; }
.apply p { max-width: 50ch; margin: 18px auto 28px; font-size: 1.12rem; }
.form-slot { max-width: 640px; margin: 30px auto 0; min-height: 420px;
  background: var(--navy-850); border: 1px dashed var(--hair); border-radius: var(--r);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; padding: 40px; }
.form-slot .tag { font-size: 0.62rem; letter-spacing: 0.18em; color: var(--ink-mut); border: 1px dashed var(--hair); padding: 4px 8px; border-radius: 5px; }

/* ---- footer ---- */
.foot { padding: 40px 0; border-top: 1px solid var(--hair); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.foot, .foot a { color: var(--ink-mut); font-size: 0.86rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink-soft); }

/* ---- centered single-purpose pages (thank-you / not-a-fit) ---- */
.single { min-height: 100dvh; display: flex; flex-direction: column; }
.single main { flex: 1; display: flex; align-items: center; padding: 56px 0; }
.single .card { max-width: 720px; margin: 0 auto; }
.badge-ok, .badge-warn { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; }
.badge-ok { background: rgba(42,143,224,0.14); color: var(--blue-br); border: 1px solid rgba(42,143,224,0.3); }
.badge-warn { background: rgba(255,176,46,0.12); color: var(--signal); border: 1px solid rgba(255,176,46,0.3); }
.next { margin-top: 36px; display: grid; gap: 14px; }
.next .item { display: flex; gap: 16px; padding: 20px 22px; background: var(--navy-850);
  border: 1px solid var(--hair); border-radius: var(--r); }
.next .item .ic { flex: none; width: 38px; height: 38px; border-radius: 9px; background: var(--navy-800);
  display: grid; place-items: center; border: 1px solid var(--hair); }
.next .item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.next .item p { font-size: 0.95rem; }
.prep { margin-top: 30px; padding: 26px; border-radius: var(--r); background: var(--navy-850); border: 1px solid var(--hair); }
.prep ul { margin-top: 14px; display: grid; gap: 10px; list-style: none; }
.prep li { display: flex; gap: 11px; color: var(--ink-soft); font-size: 0.98rem; }
.prep li svg { flex: none; margin-top: 3px; }

.reveal { opacity: 0; transform: translateY(16px); animation: rise .7s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
