/* =========================================================
   Your Invoice — Landing Page (Light Theme)
   Custom styles, animations, and component utilities
   Brand color: #1abc9c (teal)
   ========================================================= */

:root {
    --brand-50:  #e8faf5;
    --brand-100: #c5f2e5;
    --brand-200: #8de7cf;
    --brand-300: #4dd8b5;
    --brand-400: #2acba5;
    --brand-500: #1abc9c;
    --brand-600: #16a085;
    --brand-700: #0f766e;
    --brand-800: #115e59;

    --surface-50:  #fbfdfc;
    --surface-100: #f3f7f5;
    --surface-200: #e6efeb;

    --slate-900: #0f172a;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
}

html, body { background-color: var(--surface-50); }

/* ----------------- Background grid + soft blobs --------- */
.bg-grid {
    background-image:
        linear-gradient(rgba(15, 118, 110, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 118, 110, 0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 25%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 25%, transparent 75%);
}

.blob {
    position: absolute;
    border-radius: 9999px;
    filter: blur(90px);
    opacity: .55;
    will-change: transform;
}
.blob-1 {
    width: 520px; height: 520px; top: -160px; left: -120px;
    background: radial-gradient(circle, rgba(26, 188, 156, 0.30), transparent 70%);
    animation: float1 18s ease-in-out infinite alternate;
}
.blob-2 {
    width: 480px; height: 480px; top: 30%; right: -160px;
    background: radial-gradient(circle, rgba(77, 216, 181, 0.28), transparent 70%);
    animation: float2 22s ease-in-out infinite alternate;
}
.blob-3 {
    width: 600px; height: 600px; bottom: -220px; left: 30%;
    background: radial-gradient(circle, rgba(141, 231, 207, 0.30), transparent 70%);
    animation: float1 26s ease-in-out infinite alternate;
}

@keyframes float1 { from { transform: translate3d(0,0,0); } to { transform: translate3d(60px,40px,0); } }
@keyframes float2 { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50px,30px,0); } }

/* ----------------- Navbar elevated state ----------------- */
#navbar.is-scrolled nav {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 40px -20px rgba(15, 118, 110, 0.25);
}

/* ----------------- Buttons ------------------------------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .75rem 1.25rem;
    font-weight: 600;
    color: #fff;
    border-radius: .85rem;
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    box-shadow: 0 12px 30px -10px rgba(26, 188, 156, .55), inset 0 1px 0 rgba(255,255,255,.25);
    transition: transform .2s ease, box-shadow .25s ease, filter .25s ease;
    white-space: nowrap;
}
.btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 16px 40px -10px rgba(22, 160, 133, .6), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.15rem;
    font-weight: 600;
    color: var(--slate-700);
    border-radius: .85rem;
    border: 1px solid var(--surface-200);
    background: #fff;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.btn-ghost:hover {
    background: var(--brand-50);
    border-color: var(--brand-200);
    color: var(--brand-700);
}

.btn-on-brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .8rem 1.35rem;
    font-weight: 700;
    color: var(--brand-700);
    border-radius: .85rem;
    background: #fff;
    box-shadow: 0 14px 30px -10px rgba(0,0,0,.25), inset 0 -2px 0 rgba(15, 118, 110, .08);
    transition: transform .2s ease, box-shadow .25s ease;
    white-space: nowrap;
}
.btn-on-brand:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px -10px rgba(0,0,0,.3);
}

/* ----------------- Text gradient ------------------------- */
.text-gradient {
    background: linear-gradient(90deg, #1abc9c, #16a085 60%, #0f766e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ----------------- Section helpers ----------------------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--brand-700);
}
.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-500));
    border-radius: 2px;
}
.eyebrow--on-brand { color: rgba(255,255,255,.95); }
.eyebrow--on-brand::before { background: linear-gradient(90deg, transparent, rgba(255,255,255,.85)); }

.section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    color: var(--slate-900);
    font-size: clamp(1.75rem, 3.6vw, 2.75rem);
    line-height: 1.12;
    letter-spacing: -0.015em;
    margin-top: .85rem;
}
.section-sub {
    margin-top: 1rem;
    color: var(--slate-600);
    font-size: 1rem;
    max-width: 42rem;
    line-height: 1.7;
}

/* ----------------- Hero phone mockup --------------------- */
.phone-frame {
    position: relative;
    width: 280px;
    height: 580px;
    border-radius: 44px;
    padding: 14px;
    background:
        linear-gradient(160deg, #ffffff 0%, #f3f7f5 100%);
    box-shadow:
        0 30px 80px -20px rgba(15, 118, 110, .35),
        0 0 0 1px rgba(15, 118, 110, .08),
        inset 0 0 0 1px rgba(255,255,255,.6);
}
@media (min-width: 640px) { .phone-frame { width: 320px; height: 660px; } }

.phone-screen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 32px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, .08);
}

.floaty { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .85rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--slate-700);
    background: #fff;
    border: 1px solid var(--surface-200);
    border-radius: 9999px;
    box-shadow: 0 12px 30px -12px rgba(15, 118, 110, .25);
    animation: floaty 7s ease-in-out infinite;
}
.chip:nth-of-type(2) { animation-delay: 1.5s; }

/* ----------------- Trust pills --------------------------- */
.trust-pill {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: .85rem 1rem;
    border-radius: .9rem;
    background: #fff;
    border: 1px solid var(--surface-200);
    box-shadow: 0 6px 20px -10px rgba(15, 118, 110, .15);
}
.trust-pill__num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand-700);
    line-height: 1;
}
.trust-pill__lbl {
    margin-top: .3rem;
    font-size: .7rem;
    font-weight: 500;
    color: var(--slate-600);
}

/* ----------------- Feature card -------------------------- */
.feature-card {
    position: relative;
    padding: 1.6rem;
    border-radius: 1.25rem;
    background: #fff;
    border: 1px solid var(--surface-200);
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-200);
    box-shadow: 0 20px 50px -20px rgba(15, 118, 110, .25);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
    border: 1px solid var(--brand-100);
    color: var(--brand-700);
    margin-bottom: 1rem;
}
.feature-icon svg { width: 22px; height: 22px; }

.feature-card h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--slate-900);
    margin-bottom: .45rem;
}
.feature-card p {
    color: var(--slate-600);
    font-size: .92rem;
    line-height: 1.65;
}

/* ----------------- Step card ----------------------------- */
.step-card {
    position: relative;
    padding: 1.6rem;
    border-radius: 1.25rem;
    background: var(--surface-50);
    border: 1px solid var(--surface-200);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.step-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-300);
    box-shadow: 0 16px 40px -16px rgba(15, 118, 110, .2);
}
.step-num {
    display: inline-block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--brand-500);
    margin-bottom: .9rem;
    letter-spacing: .04em;
}
.step-card h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--slate-900);
    font-size: 1.05rem;
    margin-bottom: .5rem;
}
.step-card p {
    color: var(--slate-600);
    font-size: .92rem;
    line-height: 1.65;
}

/* ----------------- Benefit card -------------------------- */
.benefit-card {
    position: relative;
    padding: 1.75rem;
    border-radius: 1.25rem;
    background: var(--surface-50);
    border: 1px solid var(--surface-200);
    transition: transform .3s ease, border-color .3s ease;
}
.benefit-card:hover { transform: translateY(-3px); border-color: var(--brand-200); }
.benefit-card h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--slate-900);
    margin-bottom: .55rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}
.benefit-card .bullet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    width: 32px;
    border-radius: 9999px;
    background: var(--brand-500);
    color: #fff;
    font-size: .75rem;
    font-weight: 800;
    flex: none;
}
.benefit-card p {
    color: var(--slate-600);
    font-size: .95rem;
    line-height: 1.7;
}

/* ----------------- Use case card ------------------------- */
.use-card {
    padding: 1.6rem;
    border-radius: 1.25rem;
    background: #fff;
    border: 1px solid var(--surface-200);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.use-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-200);
    box-shadow: 0 18px 40px -18px rgba(15, 118, 110, .22);
}
.use-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--brand-50);
    color: var(--brand-700);
    margin-bottom: 1rem;
}
.use-icon svg { width: 20px; height: 20px; }
.use-card h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--slate-900);
    font-size: 1.05rem;
    margin-bottom: .4rem;
}
.use-card p {
    color: var(--slate-600);
    font-size: .92rem;
    line-height: 1.65;
}

/* ----------------- Gallery card -------------------------- */
.gallery-card {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid var(--surface-200);
    background: #fff;
    aspect-ratio: 9 / 16;
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.gallery-card.lg\:row-span-2 { aspect-ratio: 9 / 19; }
.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.gallery-card figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: .9rem 1rem;
    font-size: .8rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(180deg, transparent, rgba(15, 30, 27, .85));
    transform: translateY(8px);
    opacity: .9;
    transition: transform .35s ease, opacity .35s ease;
}
.gallery-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-300);
    box-shadow: 0 25px 60px -25px rgba(15, 118, 110, .35);
}
.gallery-card:hover img { transform: scale(1.05); }
.gallery-card:hover figcaption { transform: translateY(0); opacity: 1; }

/* ----------------- About frame --------------------------- */
.about-frame {
    position: relative;
    border-radius: 1.5rem;
    padding: 1.5px;
    background: linear-gradient(135deg, var(--brand-300), var(--brand-100), transparent 70%);
    box-shadow: 0 25px 60px -25px rgba(15, 118, 110, .35);
}
.about-frame__inner {
    border-radius: 1.4rem;
    padding: 1.85rem;
    background: #ffffff;
}
.dot {
    width: 6px; height: 6px;
    border-radius: 9999px;
    background: var(--brand-500);
    flex: none;
}

/* ----------------- Stats --------------------------------- */
.stat-card {
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: var(--surface-50);
    border: 1px solid var(--surface-200);
}
.stat-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--brand-700);
}
.stat-lbl {
    margin-top: .25rem;
    font-size: .75rem;
    color: var(--slate-600);
}

/* ----------------- Testimonials -------------------------- */
.testi-card {
    padding: 1.75rem;
    border-radius: 1.25rem;
    background: #fff;
    border: 1px solid var(--surface-200);
    box-shadow: 0 6px 20px -12px rgba(15, 118, 110, .1);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: transform .3s ease, border-color .3s ease;
}
.testi-card:hover { transform: translateY(-3px); border-color: var(--brand-200); }
.testi-card blockquote p {
    color: var(--slate-700);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 500;
    quotes: "“" "”";
}
.testi-card figcaption {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--surface-200);
    padding-top: 1rem;
}
.testi-name {
    font-weight: 700;
    color: var(--slate-900);
    font-size: .92rem;
}
.testi-role {
    font-size: .8rem;
    color: var(--slate-500);
    margin-top: .15rem;
}

/* ----------------- FAQ ----------------------------------- */
.faq-item {
    border-radius: 1rem;
    border: 1px solid var(--surface-200);
    background: var(--surface-50);
    padding: 0;
    overflow: hidden;
    transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.faq-item[open] {
    border-color: var(--brand-200);
    background: #ffffff;
    box-shadow: 0 12px 30px -16px rgba(15, 118, 110, .2);
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.1rem 1.25rem;
    font-weight: 600;
    color: var(--slate-900);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    font-size: 1.4rem;
    line-height: 1;
    color: var(--brand-600);
    transition: transform .3s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
    padding: 0 1.25rem 1.25rem;
    color: var(--slate-600);
    line-height: 1.7;
    font-size: .95rem;
}

/* ----------------- CTA banner ---------------------------- */
.cta-banner {
    position: relative;
    border-radius: 1.75rem;
    padding: clamp(2rem, 4vw, 3.25rem);
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 55%, #0f766e 100%);
    border: 1px solid rgba(255,255,255,.18);
    overflow: hidden;
    box-shadow: 0 30px 80px -25px rgba(15, 118, 110, .55);
}
.cta-banner__glow {
    position: absolute;
    inset: -50%;
    background:
        conic-gradient(from 0deg, transparent 0deg, rgba(255,255,255,.18) 60deg, transparent 120deg, rgba(255,255,255,.12) 240deg, transparent 320deg);
    animation: spin 22s linear infinite;
    z-index: 0;
    opacity: .85;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ----------------- Scroll reveal ------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger inside grids */
.feature-card.reveal:nth-child(1)  { transition-delay: .05s; }
.feature-card.reveal:nth-child(2)  { transition-delay: .12s; }
.feature-card.reveal:nth-child(3)  { transition-delay: .19s; }
.feature-card.reveal:nth-child(4)  { transition-delay: .05s; }
.feature-card.reveal:nth-child(5)  { transition-delay: .12s; }
.feature-card.reveal:nth-child(6)  { transition-delay: .19s; }

.step-card.reveal:nth-child(1)  { transition-delay: .05s; }
.step-card.reveal:nth-child(2)  { transition-delay: .15s; }
.step-card.reveal:nth-child(3)  { transition-delay: .25s; }
.step-card.reveal:nth-child(4)  { transition-delay: .35s; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .floaty, .chip, .blob, .cta-banner__glow { animation: none !important; }
}

/* ----------------- Selection ----------------------------- */
::selection { background: var(--brand-200); color: var(--slate-900); }

/* ----------------- Scrollbar ----------------------------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--surface-100); }
::-webkit-scrollbar-thumb { background: var(--brand-200); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-300); }

/* ----------------- Focus visible (a11y) ------------------ */
a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 2px solid var(--brand-500);
    outline-offset: 3px;
    border-radius: 6px;
}
