/* Kopnota marketing site · hero */
/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 72px); background: radial-gradient(120% 90% at 80% 0%, #1A2CA0 0%, var(--navy-900) 45%, var(--navy-950) 100%); color: #fff; margin-top: -67px; padding-top: calc(67px + clamp(40px, 7vw, 96px)); }
.hero-bg, .final-cta .hero-bg { position: absolute; inset: 0; pointer-events: none; }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(130, 160, 255, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(130, 160, 255, .09) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(70% 70% at 60% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(70% 70% at 60% 40%, #000 30%, transparent 75%); animation: grid-pan 30s linear infinite; }
@keyframes grid-pan { to { background-position: 56px 56px, 56px 56px; } }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.glow.g1 { width: 460px; height: 460px; background: #2DD497; right: -120px; top: 30%; opacity: .22; animation: drift 14s ease-in-out infinite alternate; }
.glow.g2 { width: 520px; height: 520px; background: #3D5BFF; left: -160px; top: -120px; opacity: .35; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-60px, 40px) scale(1.1); } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: var(--step--1); font-weight: 500; color: #D8DEFF; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(45, 212, 151, .6); animation: ping 2.2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(45, 212, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(45, 212, 151, 0); } }
.hero h1 { margin: 22px 0 20px; color: #fff; }
.hl { background: linear-gradient(92deg, #7CF0C1 0%, #2DD497 40%, #6FB7FF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: var(--step-1); line-height: 1.55; color: #C9D2FA; max-width: 38ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cta-row.center { justify-content: center; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .28); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 26px 0 0; color: #AEB9EE; font-size: var(--step--1); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: rgba(45, 212, 151, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%232DD497' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }

.hero-visual { position: relative; perspective: 1400px; }
.tilt { position: relative; transform-style: preserve-3d; transition: transform .4s cubic-bezier(.2, .8, .2, 1); will-change: transform; }
.paper { position: relative; background: #fff; color: #10173A; border-radius: 14px; padding: clamp(18px, 3vw, 28px); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .5) inset; font-size: 12.5px; line-height: 1.4; overflow: hidden; aspect-ratio: 1 / 1.2; display: flex; flex-direction: column; }
.p-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.p-logo { display: flex; gap: 10px; align-items: center; }
.p-logo img { border-radius: 8px; }
.p-logo b { display: block; font: 700 14px/1.2 var(--font-display); }
.p-logo small, .p-meta small { color: #6B7398; font-size: 10.5px; }
.p-title { text-align: right; }
.p-title span { display: block; font: 800 20px/1 var(--font-display); letter-spacing: .06em; color: #1C2C8C; }
.p-title code { background: none; border: 0; padding: 0; font-size: 11px; color: #6B7398; }
.p-meta { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0 14px; padding: 12px 0; border-block: 1px solid #E8EBF7; }
.p-meta > div:first-child { display: flex; flex-direction: column; }
.p-meta b { font-size: 12.5px; }
.p-meta span { color: #4E5781; font-size: 11px; }
.p-dates { display: flex; gap: 16px; text-align: right; }
.p-dates span { display: flex; flex-direction: column; font-weight: 600; color: #10173A; font-size: 11.5px; }
.p-table { flex: 1; }
.p-tr { display: grid; grid-template-columns: 1fr 40px 110px; gap: 8px; padding: 7px 0; border-bottom: 1px solid #EEF0F8; align-items: center; }
.p-tr span:nth-child(2) { text-align: center; color: #4E5781; }
.p-tr span:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.p-th { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6B7398; border-bottom-color: #DDE1F2; }
.p-th span:last-child { font-weight: 700; }
.p-tr.in { animation: line-in .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes line-in { from { opacity: 0; transform: translateY(8px); background: rgba(45, 212, 151, .15); } to { opacity: 1; transform: none; background: transparent; } }
.p-tr .t { display: flex; flex-direction: column; }
.p-tr .t small { color: #7A82A8; font-size: 10px; }
.p-totals { margin-left: auto; width: min(240px, 60%); display: grid; gap: 4px; margin-top: 10px; font-variant-numeric: tabular-nums; }
.p-totals div { display: flex; justify-content: space-between; color: #4E5781; }
.p-totals b { color: #10173A; }
.p-total { margin-top: 4px; padding-top: 6px; border-top: 2px solid #1C2C8C; font-size: 14px; }
.p-total span { color: #10173A; font-weight: 700; }
.p-total b { color: #1C2C8C; font-family: var(--font-display); font-size: 16px; }
.p-sign { margin-top: 14px; width: 130px; }
.p-sign svg { width: 120px; height: 40px; }
.p-sign path { stroke-dasharray: 320; stroke-dashoffset: 320; }
.p-sign.draw path { animation: sign 1.4s ease forwards; }
@keyframes sign { to { stroke-dashoffset: 0; } }
.p-sign small { display: block; border-top: 1px solid #C9CEE6; padding-top: 4px; color: #6B7398; font-size: 10px; }
.paid-stamp { position: absolute; left: 44%; bottom: 7%; font: 800 30px/1 var(--font-display); letter-spacing: .14em; color: var(--mint-deep); border: 4px solid currentColor; border-radius: 10px; padding: 8px 14px 6px; transform: rotate(-14deg) scale(2.2); opacity: 0; pointer-events: none; mix-blend-mode: multiply; }
.paid-stamp.on { animation: stamp .5s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes stamp { to { transform: rotate(-14deg) scale(1); opacity: .9; } }
.float-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: rgba(16, 24, 72, .72); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #E5E9FF; font-size: 12.5px; font-weight: 600; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); transform: translateZ(60px); animation: bob 6s ease-in-out infinite; }
.float-chip svg { width: 18px; height: 18px; color: var(--mint); }
.fc1 { top: -20px; right: 22px; padding: 8px 10px; }
.fc1 .badge { font-size: 13px; padding: 5px 12px; }
.fc1 .b-draft { color: #C9D0F2; background: rgba(255, 255, 255, .1); }
.fc1 .b-sent { color: #9CB4FF; }
.fc1 .b-partial { color: #FFC56E; }
.fc1 .b-paid { color: #5CF0B5; }
.fc2 { right: 22px; bottom: -20px; animation-delay: -2s; }
.fc3 { left: 22px; bottom: -20px; animation-delay: -4s; }
@keyframes bob { 50% { translate: 0 -10px; } }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; transition: background .3s, color .3s; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.b-draft { background: rgba(140, 150, 190, .2); color: #A9B3DA; }
.b-sent { background: rgba(80, 130, 255, .18); color: #7EA0FF; }
.b-partial { background: rgba(242, 163, 58, .18); color: #E3962B; }
.b-paid { background: rgba(45, 212, 151, .18); color: #1FBF85; }
.b-overdue { background: rgba(229, 72, 77, .15); color: var(--red); }

.strip { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; list-style: none; border-radius: var(--radius); overflow: hidden; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .12); }
.strip li { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; background: rgba(9, 15, 60, .65); }
.strip b { font: 800 var(--step-2)/1 var(--font-display); color: #fff; }
.strip span { color: #AEB9EE; font-size: var(--step--1); }

/* More colour: glows, sparks, moving headline gradient, 3D icon */
.glow.g3 { width: 380px; height: 380px; background: #A855F7; left: 38%; bottom: -160px; opacity: .28; animation: drift 16s ease-in-out infinite alternate; }
.glow.g4 { width: 300px; height: 300px; background: #F59E0B; right: 18%; top: -120px; opacity: .16; animation: drift 20s ease-in-out infinite alternate-reverse; }
.hero-sparks { position: absolute; inset: 0; width: 100%; height: 100%; }
.hl-anim { background-size: 220% 100%; animation: hl-shift 6s ease-in-out infinite alternate; background-image: linear-gradient(92deg, #7CF0C1 0%, #2DD497 25%, #6FB7FF 50%, #C49BFF 75%, #7CF0C1 100%); }
@keyframes hl-shift { to { background-position: 100% 0; } }
.hero-3d { position: absolute; z-index: 3; width: 100px; height: auto; left: 22px; top: -86px; transform: translateZ(90px) rotate(-8deg); animation: bob 5.5s ease-in-out infinite; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); pointer-events: none; }
/* On narrow screens the hero points sit right above the invoice: the 3D icon shows in the closing section instead. */
@media (max-width: 900px) { .hero-3d { display: none; } }
@media (prefers-reduced-motion: reduce) { .hl-anim { animation: none; } }
