/* =========================================================
   SaccoCloud — marketing site (Xenon-style dark + emerald)
   Self-contained: does not depend on the app stylesheet.
   ========================================================= */
@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/Montserrat.woff2") format("woff2");
}

:root {
    --ink:        #0a1410;
    --night:      #0c1a13;
    --night-2:    #0f231a;
    --emerald:    #22c55e;
    --emerald-2:  #16a34a;
    --emerald-lo: #0d3324;
    --paper:      #ffffff;
    --mist:       #f4f8f5;
    --muted:      #5b6b63;
    --line:       #e4ebe6;
    --line-dark:  rgba(255,255,255,0.10);
    --white-70:   rgba(255,255,255,0.72);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Montserrat", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--emerald-2);
}
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 14px;
    cursor: pointer; border: 1.5px solid transparent; transition: transform .12s, box-shadow .12s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-green { background: var(--emerald); color: #06210f; box-shadow: 0 10px 24px rgba(34,197,94,.35); }
.btn-green:hover { background: #2dd36a; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-glass { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color:#fff; }
.btn-glass:hover { background: rgba(255,255,255,.16); }
.btn-lg { padding: 16px 28px; font-size: 15px; }

/* ---------- Top nav ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(12,26,19,.82); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-dark);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 18px; }
.brand .logo {
    width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
    background: var(--emerald); color: #06210f; font-weight: 900;
}
/* Real logo image replaces the letter tile */
img.logo { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; display: block; background: transparent; padding: 0; }
.pauth-brand img.logo, .auth-aside img.logo { width: 40px; height: 40px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--white-70); font-size: 14px; font-weight: 600; }
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .signin { color: rgba(255,255,255,.82); font-weight: 600; font-size: 14px; padding: 8px 4px; }
.nav-cta .signin:hover { color: #fff; }
.nav-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 13.5px;
    line-height: 1; white-space: nowrap; transition: background .15s, border-color .15s, transform .12s;
}
.nav-btn:hover { transform: translateY(-1px); }
.nav-btn-ghost { border: 1.5px solid rgba(255,255,255,.26); color: #fff; }
.nav-btn-ghost:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.5); }
.nav-btn-green { background: var(--emerald); color: #06210f; box-shadow: 0 8px 20px rgba(34,197,94,.30); }
.nav-btn-green:hover { background: #2dd36a; }
.nav-toggle {
    display: none; align-items: center; justify-content: center;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
    color: #fff; cursor: pointer; width: 42px; height: 42px; border-radius: 12px;
}
.nav-toggle:hover { background: rgba(255,255,255,.12); }
.nav-menu-actions { display: none; }

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(1100px 500px at 78% -8%, rgba(34,197,94,.20), transparent 60%),
        radial-gradient(700px 400px at 0% 20%, rgba(34,197,94,.08), transparent 55%),
        linear-gradient(180deg, var(--night), var(--night-2));
    color: #fff; padding: 74px 0 90px; overflow: hidden;
}
/* Full-bleed background-image banner hero */
.hero-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 96px 0 104px;
    overflow: hidden;
}
.hero-banner::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(900px 500px at 80% 0%, rgba(34,197,94,.28), transparent 55%),
        linear-gradient(180deg, rgba(8,16,12,.78), rgba(10,20,15,.90));
}
.hero-banner-inner {
    position: relative; z-index: 1;
    max-width: 760px;
    text-align: center;
    margin: 0 auto;
}
.hero-banner-inner h1 { font-size: 52px; margin: 18px 0 18px; }
.hero-banner-inner h1 .hl { color: var(--emerald); }
.hero-banner-inner p.lead { color: rgba(255,255,255,.86); font-size: 18px; max-width: 620px; margin: 0 auto 30px; }
.hero-banner-inner .hero-cta { justify-content: center; }
.hero-banner-inner .hero-trust { justify-content: center; margin-top: 34px; }

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hero h1 { font-size: 54px; margin-bottom: 20px; }
.hero h1 .hl { color: var(--emerald); }
.hero p.lead { color: var(--white-70); font-size: 18px; max-width: 520px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-trust { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.avatars { display: flex; }
.avatars span {
    width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--night-2);
    margin-left: -10px; background-size: cover; background-position: center;
    display: grid; place-items: center; font-weight: 800; font-size: 13px; color:#06210f;
}
.avatars span:first-child { margin-left: 0; }
.hero-trust .t-num { font-weight: 800; font-size: 18px; }
.hero-trust .t-sub { color: var(--white-70); font-size: 13px; }

/* Hero visual */
.hero-visual { position: relative; }
.hero-photo {
    border-radius: 26px; border: 1px solid var(--line-dark);
    box-shadow: 0 30px 70px rgba(0,0,0,.45); width: 100%; height: 420px; object-fit: cover;
}
.hero-badge {
    position: absolute; background: #fff; color: var(--ink); border-radius: 16px;
    padding: 14px 16px; box-shadow: 0 18px 40px rgba(0,0,0,.28); display: flex; gap: 12px; align-items: center;
}
.hero-badge .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--emerald-lo); color: var(--emerald); display:grid; place-items:center; }
.hero-badge .bt { font-weight: 800; font-size: 15px; }
.hero-badge .bs { font-size: 12px; color: var(--muted); }
.hero-badge.b1 { top: 22px; left: -26px; }
.hero-badge.b2 { bottom: 26px; right: -20px; }

/* ---------- Logo/stat strip ---------- */
.strip { background: var(--ink); color: #fff; }
.strip-inner { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; padding: 34px 0; }
.strip .num { font-size: 30px; font-weight: 800; color: var(--emerald); }
.strip .lbl { color: var(--white-70); font-size: 13px; }

/* ---------- Section shell ---------- */
.section { padding: 92px 0; }
.section.mist { background: var(--mist); }
.sec-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.sec-head h2 { font-size: 38px; margin: 14px 0 12px; }
.sec-head p { color: var(--muted); font-size: 16px; margin: 0; }

/* Features */
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.feat {
    background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 26px;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.feat:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(10,20,16,.10); border-color: #cfe9d8; }
.feat .fic { width: 50px; height: 50px; border-radius: 14px; background: var(--emerald-lo); color: var(--emerald); display: grid; place-items: center; margin-bottom: 16px; }
.feat h3 { font-size: 18px; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 14px; margin: 0; }

/* Split showcase */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: 22px; box-shadow: 0 24px 60px rgba(10,20,16,.14); height: 100%; object-fit: cover; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.check-list .ck { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--emerald); color:#06210f; display: grid; place-items: center; font-size: 13px; font-weight: 900; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; counter-reset: s; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 30px 26px; position: relative; }
.step .n { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--emerald); font-weight: 800; display: grid; place-items: center; margin-bottom: 16px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: stretch; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; }
.plan.pop { background: linear-gradient(180deg, var(--night), var(--night-2)); color: #fff; border-color: transparent; box-shadow: 0 26px 60px rgba(12,26,19,.28); transform: scale(1.03); }
.plan .tag { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--emerald-2); }
.plan.pop .tag { color: var(--emerald); }
.plan .price { font-size: 40px; font-weight: 800; margin: 10px 0 2px; }
.plan .price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan.pop .price small { color: var(--white-70); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 12px; font-size: 14px; }
.plan ul li { display: flex; gap: 10px; align-items: flex-start; }
.plan ul .ck { color: var(--emerald); font-weight: 900; }
.plan .btn { justify-content: center; margin-top: auto; }
.pop-badge { display: inline-block; background: var(--emerald); color:#06210f; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; margin-bottom: 6px; width: fit-content; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.quote { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.quote .stars { color: #f5b301; margin-bottom: 12px; letter-spacing: 2px; }
.quote p { font-size: 15px; margin: 0 0 18px; }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote .who b { display: block; font-size: 14px; }
.quote .who span { font-size: 12px; color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--emerald-2), var(--emerald)); color: #06210f; border-radius: 28px; padding: 54px; text-align: center; }
.cta-band h2 { font-size: 34px; margin-bottom: 12px; }
.cta-band p { margin: 0 0 26px; font-weight: 600; }

/* Footer */
.foot { background: var(--ink); color: var(--white-70); padding: 60px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 34px; border-bottom: 1px solid var(--line-dark); }
.foot h4 { color: #fff; font-size: 14px; margin: 0 0 14px; }
.foot a { display: block; color: var(--white-70); font-size: 14px; padding: 5px 0; }
.foot a:hover { color: var(--emerald); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; font-size: 13px; flex-wrap: wrap; gap: 10px; }

/* ---------- Auth pages ---------- */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-aside {
    background:
        radial-gradient(700px 380px at 20% 10%, rgba(34,197,94,.22), transparent 60%),
        linear-gradient(180deg, var(--night), var(--night-2));
    color: #fff; padding: 54px; display: flex; flex-direction: column; justify-content: space-between;
}
.auth-aside .brand { margin-bottom: 40px; }
.auth-aside h2 { font-size: 34px; margin-bottom: 16px; }
.auth-aside p { color: var(--white-70); font-size: 16px; max-width: 420px; }
.auth-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.auth-points li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.auth-points .ck { width: 26px; height: 26px; border-radius: 50%; background: var(--emerald); color:#06210f; display: grid; place-items: center; font-weight: 900; flex-shrink: 0; }
.auth-quote { border-left: 3px solid var(--emerald); padding-left: 16px; color: var(--white-70); font-size: 14px; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 28px; background: var(--mist); }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); font-size: 14px; margin: 0 0 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.field input, .field select {
    width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px;
    font-family: inherit; font-size: 14.5px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(34,197,94,.14); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
.auth-alt { text-align: center; margin-top: 20px; font-size: 14px; color: var(--muted); }
.auth-alt a { color: var(--emerald-2); font-weight: 700; }
.auth-err { background: #fdecec; border: 1px solid #f6c8c8; color: #7f1d1d; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; margin-bottom: 18px; }
.auth-ok { background: #e9f9ef; border: 1px solid #bbe8cb; color: #14532d; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; margin-bottom: 18px; }
.auth-back { color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 22px; display: inline-block; }

/* Show/hide password toggle */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 46px !important; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; font-size: 16px; line-height: 1; opacity: .5; padding: 6px; }
.pw-toggle:hover, .pw-toggle.on { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero-grid, .split, .auth-shell { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
    .hero h1, .hero-banner-inner h1 { font-size: 38px; }
    .hero-banner { padding: 66px 0 74px; }
    .feat-grid, .steps, .price-grid, .quotes { grid-template-columns: 1fr; }
    .strip-inner { grid-template-columns: 1fr 1fr; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .plan.pop { transform: none; }
    .auth-aside { display: none; }
    .nav-links { display: none; }
    .nav-toggle { display: inline-flex; }
    .nav-cta { gap: 0; }
    .nav-cta .cta-desktop { display: none; }
    .nav-links.open {
        display: flex; position: absolute; top: 72px; left: 0; right: 0;
        flex-direction: column; align-items: stretch;
        background: var(--night-2); padding: 10px 18px 20px; gap: 0;
        border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
        box-shadow: 0 24px 44px rgba(0,0,0,.45);
    }
    .nav-links.open > a { color: #fff; font-weight: 600; font-size: 15px; padding: 15px 6px; border-bottom: 1px solid rgba(255,255,255,.07); }
    .nav-menu-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
    .menu-btn { display: block; text-align: center; padding: 14px; border-radius: 12px; font-weight: 700; font-size: 15px; }
    .menu-btn.ghost { border: 1.5px solid rgba(255,255,255,.28); color: #fff; }
    .menu-btn.ghost:hover { background: rgba(255,255,255,.08); }
    .menu-btn.green { background: var(--emerald); color: #06210f; box-shadow: 0 8px 20px rgba(34,197,94,.30); }
}
@media (max-width: 560px) {
    .hero h1, .hero-banner-inner h1 { font-size: 30px; }
    .sec-head h2 { font-size: 28px; }
    .section { padding: 62px 0; }
    .strip-inner { grid-template-columns: 1fr 1fr; }
    .cta-band { padding: 36px 22px; }
    .row-2 { grid-template-columns: 1fr; }
    .hero-badge { display: none; }
}
