/**
 * FlowMate public / landing — professional SaaS marketing surface
 */

:root {
    --lp-ink: #041c2c;
    --lp-muted: #5a7180;
    --lp-brand: #00c2a8;
    --lp-brand-deep: #0a4d68;
    --lp-navy: #032134;
    --lp-paper: #eef3f6;
    --lp-surface: #ffffff;
    --lp-line: rgba(4, 28, 44, 0.1);
    --lp-radius: 16px;
    --lp-max: 1160px;
    --lp-display: "Sora", system-ui, sans-serif;
    --lp-body: "Source Sans 3", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

.lp-body {
    margin: 0;
    color: var(--lp-ink);
    background: var(--lp-paper);
    font-family: var(--lp-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.lp-wrap {
    width: min(100% - 2.5rem, var(--lp-max));
    margin-inline: auto;
}

/* ---- Nav (transparent over hero) ---- */
.lp-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: transparent;
}

.lp-nav__inner {
    width: min(100% - 2.5rem, var(--lp-max));
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.lp-nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--lp-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.lp-nav__mark {
    width: 11px;
    height: 11px;
    border-radius: 3px;
    background: var(--lp-brand);
    box-shadow: 0 0 0 4px rgba(0, 194, 168, 0.2);
}

.lp-nav__toggle {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 10px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lp-nav__links {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.lp-nav__links a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.lp-nav__links a:hover { color: #fff; }

.lp-btn--nav {
    min-height: 42px !important;
    padding: 0.5rem 1.1rem !important;
    background: #fff !important;
    color: var(--lp-navy) !important;
}

.lp-btn--nav:hover {
    background: #f3fffb !important;
    color: var(--lp-navy) !important;
}

@media (min-width: 992px) {
    .lp-nav__toggle { display: none !important; }
    .lp-nav__links.collapse {
        display: flex !important;
        height: auto !important;
        visibility: visible !important;
    }
}

@media (max-width: 991.98px) {
    .lp-nav {
        background: rgba(3, 33, 52, 0.92);
        backdrop-filter: blur(10px);
    }
    .lp-nav__links.collapse:not(.show) { display: none !important; }
    .lp-nav__links.collapse.show {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem 0 1.1rem;
        gap: 0.85rem;
        width: 100%;
    }
    .lp-nav__inner { flex-wrap: wrap; }
    .lp-nav__toggle { margin-left: auto; }
}

/* ---- Buttons ---- */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.4rem;
    border-radius: 12px;
    font-family: var(--lp-display);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.lp-btn:hover { transform: translateY(-1px); }

.lp-btn--primary {
    background: var(--lp-brand);
    color: #032134;
    box-shadow: 0 10px 28px rgba(0, 194, 168, 0.28);
}

.lp-btn--primary:hover {
    background: #12d4b8;
    color: #021820;
}

.lp-btn--ghost {
    background: transparent;
    color: #eaf8f4;
    border-color: rgba(234, 248, 244, 0.35);
}

.lp-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.lp-btn--ghost-dark {
    background: transparent;
    color: var(--lp-ink);
    border-color: var(--lp-line);
}

.lp-btn--ghost-dark:hover {
    background: var(--lp-paper);
}

.lp-btn--outline {
    background: transparent;
    color: var(--lp-ink);
    border-color: var(--lp-line);
    width: 100%;
}

.lp-btn--outline:hover {
    border-color: var(--lp-brand-deep);
    color: var(--lp-brand-deep);
}

.lp-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ---- Hero ---- */
.lp-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #f4fbf9;
    padding-top: 76px;
}

.lp-hero__plane {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #02151f 0%, #032134 38%, #0a4d68 72%, #06685c 100%);
}

.lp-hero__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 520px at 78% 28%, rgba(0, 194, 168, 0.38), transparent 58%),
        radial-gradient(700px 420px at 12% 78%, rgba(10, 77, 104, 0.5), transparent 55%);
}

.lp-hero__mesh {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(180deg, #000 25%, transparent 92%);
    animation: lp-mesh 32s linear infinite;
}

.lp-hero__product {
    position: absolute;
    right: max(1rem, calc((100vw - var(--lp-max)) / 2));
    top: 50%;
    transform: translateY(-46%);
    width: min(44vw, 460px);
    pointer-events: none;
}

.lp-mock {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    padding: 1.15rem 1.2rem 1.25rem;
    backdrop-filter: blur(14px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
    animation: lp-float 8s ease-in-out infinite;
}

.lp-mock__top {
    display: flex;
    gap: 6px;
    margin-bottom: 1rem;
}

.lp-mock__top span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
}

.lp-mock__kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.lp-mock__kpis div {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.65rem 0.55rem;
}

.lp-mock__kpis small {
    display: block;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.2rem;
}

.lp-mock__kpis strong {
    font-family: var(--lp-display);
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
}

.lp-mock__kpis .is-good { color: #7dffd8; }

.lp-mock__chart {
    display: flex;
    align-items: flex-end;
    gap: 0.4rem;
    height: 92px;
    margin-bottom: 1rem;
    padding: 0.75rem 0.35rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lp-mock__chart i {
    display: block;
    flex: 1;
    border-radius: 6px 6px 2px 2px;
    background: rgba(0, 194, 168, 0.42);
}

.lp-mock__chart i:nth-child(1) { height: 34%; }
.lp-mock__chart i:nth-child(2) { height: 52%; }
.lp-mock__chart i:nth-child(3) { height: 40%; }
.lp-mock__chart i:nth-child(4) { height: 78%; background: rgba(0, 194, 168, 0.8); }
.lp-mock__chart i:nth-child(5) { height: 58%; }
.lp-mock__chart i:nth-child(6) { height: 46%; }
.lp-mock__chart i:nth-child(7) { height: 64%; }

.lp-mock__list {
    display: grid;
    gap: 0.55rem;
}

.lp-mock__list div {
    display: grid;
    grid-template-columns: 10px 1fr auto;
    gap: 0.55rem;
    align-items: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.78);
}

.lp-mock__list em {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.lp-mock__list em.in { background: #00c2a8; }
.lp-mock__list em.out { background: #ff8f7a; }
.lp-mock__list b { font-weight: 600; color: #fff; }

.lp-hero__inner {
    position: relative;
    z-index: 1;
    width: min(100% - 2.5rem, var(--lp-max));
    margin: 0 auto;
    padding: 3.5rem 0 5rem;
    max-width: 36rem;
}

.lp-brand {
    margin: 0 0 1.15rem;
    font-family: var(--lp-display);
    font-size: clamp(3rem, 8vw, 4.6rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 0.95;
    color: #fff;
}

.lp-brand--sm {
    font-size: 1.35rem;
    margin-bottom: 0.7rem;
    color: var(--lp-brand);
}

.lp-headline {
    margin: 0 0 1rem;
    font-family: var(--lp-display);
    font-size: clamp(1.4rem, 2.8vw, 1.85rem);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.28;
    color: rgba(244, 251, 249, 0.94);
}

.lp-lede {
    margin: 0 0 2rem;
    font-size: 1.12rem;
    line-height: 1.55;
    color: rgba(232, 247, 244, 0.78);
    max-width: 30rem;
}

.lp-kicker {
    margin: 0 0 0.65rem;
    font-family: var(--lp-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lp-brand-deep);
}

/* ---- Sections ---- */
.lp-section {
    padding: 6rem 0;
    background: var(--lp-surface);
}

.lp-section--soft { background: var(--lp-paper); }

.lp-section__head {
    max-width: 38rem;
    margin-bottom: 3rem;
}

.lp-section__head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.lp-section__head h2,
.lp-close h2 {
    margin: 0 0 0.85rem;
    font-family: var(--lp-display);
    font-size: clamp(1.85rem, 3.6vw, 2.5rem);
    font-weight: 650;
    letter-spacing: -0.035em;
    line-height: 1.15;
    color: var(--lp-ink);
}

.lp-section__head p {
    margin: 0;
    color: var(--lp-muted);
    font-size: 1.08rem;
}

.lp-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.lp-feature {
    padding: 1.5rem 1.4rem;
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius);
    background: var(--lp-surface);
    box-shadow: 0 8px 24px rgba(4, 28, 44, 0.04);
}

.lp-feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(0, 194, 168, 0.12);
    color: var(--lp-brand-deep);
    margin-bottom: 1rem;
    font-size: 1.15rem;
}

.lp-feature h3 {
    margin: 0 0 0.55rem;
    font-family: var(--lp-display);
    font-size: 1.12rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.lp-feature p {
    margin: 0;
    color: var(--lp-muted);
    font-size: 0.98rem;
}

.lp-how {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3rem;
    align-items: start;
}

.lp-how .lp-section__head { margin-bottom: 0; }

.lp-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
}

.lp-steps li {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--lp-line);
}

.lp-steps li:first-child { padding-top: 0; }
.lp-steps li:last-child { border-bottom: 0; padding-bottom: 0; }

.lp-steps__n {
    font-family: var(--lp-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--lp-brand);
    letter-spacing: -0.03em;
}

.lp-steps h3 {
    margin: 0 0 0.35rem;
    font-family: var(--lp-display);
    font-size: 1.15rem;
    font-weight: 600;
}

.lp-steps p {
    margin: 0;
    color: var(--lp-muted);
}

/* ---- Pricing ---- */
.lp-pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.lp-price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.75rem 1.5rem 1.5rem;
    border: 1px solid var(--lp-line);
    border-radius: 18px;
    background: var(--lp-surface);
    box-shadow: 0 12px 32px rgba(4, 28, 44, 0.05);
}

.lp-price-card.is-featured {
    border-color: rgba(0, 194, 168, 0.45);
    box-shadow: 0 18px 40px rgba(0, 194, 168, 0.14);
    background:
        linear-gradient(180deg, rgba(0, 194, 168, 0.08), transparent 42%),
        var(--lp-surface);
}

.lp-price-card__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: var(--lp-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--lp-navy);
    background: var(--lp-brand);
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
}

.lp-price-card__top h3 {
    margin: 0 0 0.4rem;
    font-family: var(--lp-display);
    font-size: 1.25rem;
    font-weight: 650;
}

.lp-price-card__top p {
    margin: 0;
    color: var(--lp-muted);
    font-size: 0.95rem;
}

.lp-price-card__amount strong {
    display: block;
    font-family: var(--lp-display);
    font-size: 2.35rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--lp-ink);
}

.lp-price-card__amount span {
    display: block;
    margin-top: 0.35rem;
    color: var(--lp-muted);
    font-size: 0.9rem;
}

.lp-price-card__amount em {
    display: block;
    margin-top: 0.4rem;
    font-style: normal;
    font-size: 0.85rem;
    color: var(--lp-brand-deep);
    font-weight: 600;
}

.lp-price-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
    flex: 1;
}

.lp-price-card__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: var(--lp-ink);
    font-size: 0.95rem;
}

.lp-price-card__list i {
    color: var(--lp-brand-deep);
    margin-top: 0.15rem;
}

.lp-price-card .lp-btn--primary {
    width: 100%;
    box-shadow: none;
}

/* ---- Close ---- */
.lp-close {
    padding: 5.5rem 0;
    background:
        radial-gradient(700px 360px at 15% 0%, rgba(0, 194, 168, 0.12), transparent 60%),
        var(--lp-surface);
    border-top: 1px solid var(--lp-line);
}

.lp-close__inner { max-width: 34rem; }

.lp-close > .lp-wrap > p,
.lp-close__inner > p:not(.lp-brand) {
    margin: 0 0 1.5rem;
    color: var(--lp-muted);
}

/* ---- Footer ---- */
.lp-footer {
    background: var(--lp-navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 3.5rem 0 2rem;
}

.lp-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.lp-footer__brand {
    font-family: var(--lp-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.lp-footer h6 {
    color: #fff;
    font-family: var(--lp-display);
    font-size: 0.78rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.lp-footer ul { list-style: none; margin: 0; padding: 0; }
.lp-footer li + li { margin-top: 0.4rem; }
.lp-footer a { color: rgba(255, 255, 255, 0.68); text-decoration: none; }
.lp-footer a:hover { color: #fff; }

.lp-footer__copy {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.48);
}

/* ---- Motion ---- */
.lp-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.lp-reveal--2 { transition-delay: 0.08s; }
.lp-reveal--3 { transition-delay: 0.16s; }
.lp-reveal--4 { transition-delay: 0.24s; }
.lp-reveal.is-in { opacity: 1; transform: none; }

@keyframes lp-mesh {
    from { background-position: 0 0, 0 0; }
    to { background-position: 56px 56px, 56px 56px; }
}

@keyframes lp-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
    .lp-reveal, .lp-mock, .lp-hero__mesh {
        animation: none !important;
        transition: none !important;
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 991.98px) {
    .lp-hero__product { display: none; }
    .lp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-how { grid-template-columns: 1fr; gap: 2rem; }
    .lp-footer__grid { grid-template-columns: 1fr 1fr; }
    .lp-pricing {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    }
}

@media (max-width: 767.98px) {
    .lp-features { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .lp-footer__grid { grid-template-columns: 1fr; }
    .lp-hero { min-height: auto; padding-bottom: 3rem; }
    .lp-wrap { width: min(100% - 1.5rem, var(--lp-max)); }
    .lp-nav__inner {
        width: min(100% - 1.5rem, var(--lp-max));
    }
    .lp-brand {
        font-size: clamp(2.25rem, 12vw, 3rem);
    }
    .lp-headline {
        font-size: clamp(1.2rem, 5.5vw, 1.5rem);
    }
    .lp-lede {
        font-size: 1rem;
    }
    .lp-cta {
        flex-direction: column;
        align-items: stretch;
    }
    .lp-btn {
        width: 100%;
    }
    .lp-section {
        padding: 3.5rem 0;
    }
    .lp-pricing {
        grid-template-columns: 1fr;
    }
    .lp-price-card {
        padding: 1.35rem 1.15rem 1.25rem;
    }
    .lp-nav__brand {
        font-size: 0.95rem;
    }
}

@media (max-width: 359.98px) {
    .lp-wrap { width: min(100% - 1rem, var(--lp-max)); }
    .lp-nav__inner {
        width: min(100% - 1rem, var(--lp-max));
        min-height: 64px;
    }
}

.legal-content {
    line-height: 1.8;
    padding: 5rem 0 4rem;
}

.legal-content h2 {
    color: var(--lp-ink);
    margin-top: 2rem;
    font-family: var(--lp-display);
}
