/* Cashie – landing page styles */

:root {
    --green: #30D158;
    --green-deep: #1F7A47;
    --green-bright: #45E082;

    /* Alias gamla brand-tokens till gröna varianter så befintliga regler ärver */
    --blue: var(--green);
    --blue-deep: var(--green-deep);
    --blue-soft: rgba(48, 209, 88, 0.14);
    --success: var(--green);

    --navy-top: #3B5070;
    --navy-mid: #1B2A48;
    --navy-deep: #0A1326;

    --bg-soft: rgba(255, 255, 255, 0.04);
    --surface: rgba(255, 255, 255, 0.06);
    --surface-2: rgba(255, 255, 255, 0.09);
    --border: rgba(255, 255, 255, 0.10);
    --sep: rgba(255, 255, 255, 0.07);

    --text: #E8F0FF;
    --text2: rgba(232, 240, 255, 0.78);
    --text3: rgba(232, 240, 255, 0.55);

    --r-card: 16px;
    --r-hero: 24px;
    --r-btn: 12px;
    --r-input: 10px;

    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.15);
    --shadow-hero: 0 30px 80px -20px rgba(48, 209, 88, 0.35), 0 8px 30px rgba(0, 0, 0, 0.4);

    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: linear-gradient(180deg, #3B5070 0%, #1B2A48 50%, #0A1326 100%);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    font-size: 16px;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-bright); }

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== NAV ===== */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 19, 38, 0.65);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 0.5px solid var(--border);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.02em;
    color: var(--text);
}
.brand span { color: var(--success); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-links a {
    font-size: 14px;
    color: var(--text2);
    font-weight: 500;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
    background: var(--green);
    color: #0A1326 !important;
    padding: 12px 20px;
    border-radius: var(--r-btn);
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.15s ease, background 0.2s ease;
}
.nav-cta:hover { background: var(--green-bright); color: #0A1326 !important; }
.nav-cta:active { transform: scale(0.97); }

@media (max-width: 640px) {
    .nav-links a:not(.nav-cta) { display: none; }
}

/* ===== HERO ===== */
.hero {
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    align-items: center;
}
.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--blue);
    background: var(--blue-soft);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 20px;
}
.hero h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(40px, 6.5vw, 64px);
    line-height: 1.04;
    letter-spacing: -0.03em;
    margin: 0 0 20px;
    color: var(--text);
}
.hero h1 .accent { color: var(--blue); }
.hero-sub {
    font-size: 18px;
    line-height: 1.55;
    color: var(--text2);
    margin: 0 0 32px;
    max-width: 520px;
}
.cta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green);
    color: #0A1326 !important;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 20px -8px rgba(48, 209, 88, 0.6);
}
.btn-primary:hover { background: var(--green-bright); color: #0A1326 !important; }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text);
    padding: 16px 22px;
    border-radius: var(--r-btn);
    font-size: 15px;
    font-weight: 600;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s ease;
}
.btn-secondary:hover { background: var(--bg-soft); }

.hero-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 22px;
    font-size: 13px;
    color: var(--text3);
}
.hero-meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text3);
}

/* ===== HERO MOCK ===== */
.hero-mock {
    position: relative;
    aspect-ratio: 9/16;
    max-width: 360px;
    margin: 0 auto;
    background: linear-gradient(160deg, #3B5070 0%, #1B2A48 60%, #0A1326 100%);
    border: 1px solid rgba(48, 209, 88, 0.25);
    border-radius: var(--r-hero);
    padding: 24px 20px;
    box-shadow: var(--shadow-hero);
    color: #E8F0FF;
    overflow: hidden;
    font-family: var(--font-body);
}
.hero-mock::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -30%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    pointer-events: none;
}
.mock-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    opacity: 0.7;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.mock-label {
    font-size: 11px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 28px;
    margin-bottom: 8px;
}
.mock-hero-num {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}
.mock-hero-sub {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 6px;
}
.mock-bar {
    margin-top: 22px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.18);
    overflow: hidden;
}
.mock-bar-fill {
    width: 62%;
    height: 100%;
    background: var(--green);
    border-radius: 4px;
}
.mock-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 12px;
    opacity: 0.85;
}
.mock-card {
    margin-top: 22px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 14px 16px;
}
.mock-card-title {
    font-size: 11px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}
.mock-card-num {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.mock-card-meta {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 4px;
}

/* ===== SECTION COMMONS ===== */
section {
    padding: 90px 0;
}
.st {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text3);
    margin: 0 0 14px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin: 0 0 16px;
    color: var(--text);
}
.section-lead {
    font-size: 17px;
    color: var(--text2);
    line-height: 1.55;
    max-width: 640px;
    margin: 0 0 48px;
}

/* ===== FEATURES ===== */
.features {
    background: var(--bg-soft);
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    padding: 28px 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}
.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--blue-soft);
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.feature-icon svg {
    width: 22px;
    height: 22px;
}
.feature h3 {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin: 0 0 8px;
}
.feature p {
    margin: 0;
    color: var(--text2);
    font-size: 15px;
    line-height: 1.55;
}

/* ===== PROOF ===== */
.proof {
    text-align: center;
}
.proof-num {
    font-family: var(--font-display);
    font-size: clamp(56px, 9vw, 96px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--blue);
    margin: 0 0 12px;
}
.proof-sub {
    font-size: 17px;
    color: var(--text2);
    max-width: 520px;
    margin: 0 auto 56px;
}
.quote-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 880px;
    margin: 0 auto;
    text-align: left;
}
.quote {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    padding: 28px;
}
.quote p {
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    margin: 0 0 16px;
}
.quote-author {
    font-size: 13px;
    color: var(--text3);
    font-weight: 500;
}

/* ===== PRICING ===== */
.pricing {
    background: var(--bg-soft);
}
.price-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 880px;
    margin: 0 auto;
}
.price-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-hero);
    padding: 36px 32px;
    position: relative;
}
.price-card.featured {
    border-color: var(--blue);
    box-shadow: 0 1px 0 var(--green), 0 20px 60px -30px rgba(48, 209, 88, 0.4);
}
.price-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--blue);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
}
.price-name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text2);
    margin: 0 0 12px;
}
.price-amount {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--text);
}
.price-amount small {
    font-size: 15px;
    font-weight: 500;
    color: var(--text3);
    letter-spacing: 0;
    margin-left: 4px;
}
.price-sub {
    font-size: 13px;
    color: var(--text3);
    margin: 8px 0 24px;
}
.price-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}
.price-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text);
    padding: 8px 0;
}
.price-list li svg {
    width: 18px;
    height: 18px;
    color: var(--blue);
    flex-shrink: 0;
}
.price-list li.muted { color: var(--text3); }
.price-list li.muted svg { color: var(--text3); }

.price-cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    border-radius: var(--r-btn);
    font-size: 15px;
    font-weight: 600;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s ease;
}
.price-cta:hover { background: var(--bg-soft); }
.price-cta.featured {
    background: var(--green);
    border-color: var(--green);
    color: #0A1326 !important;
    font-weight: 700;
}
.price-cta.featured:hover { background: var(--green-bright); color: #0A1326 !important; }
.price-tag { color: #0A1326; }

/* ===== CTA BAND ===== */
.cta-band {
    text-align: center;
    padding: 100px 20px;
}
.cta-band h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 20px;
}
.cta-band p {
    font-size: 18px;
    color: var(--text2);
    max-width: 500px;
    margin: 0 auto 36px;
}

/* ===== FOOTER ===== */
.footer {
    border-top: 0.5px solid var(--border);
    padding: 40px 0;
    color: var(--text3);
    font-size: 14px;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-links {
    display: flex;
    gap: 24px;
}
.footer-links a {
    color: var(--text3);
    transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--text); }

/* ===== RESPONSIVE ===== */
@media (max-width: 880px) {
    .hero { padding: 56px 0 40px; }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .hero-mock {
        max-width: 300px;
    }
    section { padding: 64px 0; }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .quote-row,
    .price-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 40px; }
    .hero-sub { font-size: 16px; }
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    .cta-row { width: 100%; }
}

/* Dark navy är default — ingen separat dark-mode-block behövs */

/* ===== AUTH MODAL ===== */
.auth-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 10, 22, 0.72);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.auth-modal {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: #15233F;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    padding: 32px 28px 24px;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
    animation: auth-pop 0.2s ease;
}
@keyframes auth-pop {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}
.auth-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--text3);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}
.auth-close:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.auth-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}
.auth-brand span { color: var(--green); }
.auth-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
    color: var(--text);
}
.auth-sub {
    font-size: 15px;
    color: var(--text2);
    margin: 0 0 24px;
}
.auth-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}
.auth-google:hover { background: rgba(255, 255, 255, 0.10); }
.auth-google:disabled { opacity: 0.5; cursor: default; }
.auth-sep {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--text3);
    font-size: 13px;
}
.auth-sep::before,
.auth-sep::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.10);
}
.auth-input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-family: inherit;
    font-size: 16px; /* förhindrar iOS zoom */
    transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-input::placeholder { color: var(--text3); opacity: 1; }
.auth-input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.20);
}
.auth-error {
    background: rgba(255, 69, 58, 0.12);
    border: 1px solid rgba(255, 69, 58, 0.30);
    color: #FF8A80;
    font-size: 13px;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
}
.auth-submit {
    width: 100%;
    min-height: 48px;
    border: none;
    border-radius: 12px;
    background: var(--green);
    color: #0A1326;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s, opacity 0.15s;
}
.auth-submit:hover { background: var(--green-bright); }
.auth-submit:active { transform: translateY(1px); }
.auth-submit.loading {
    color: transparent;
    position: relative;
    pointer-events: none;
}
.auth-submit.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(10, 19, 38, 0.35);
    border-top-color: #0A1326;
    border-radius: 50%;
    animation: auth-spin 0.7s linear infinite;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }
.auth-toggle {
    text-align: center;
    font-size: 14px;
    color: var(--text2);
    margin: 18px 0 0;
}
.auth-toggle span {
    color: var(--green);
    font-weight: 600;
    cursor: pointer;
}
.auth-toggle span:hover { color: var(--green-bright); }
.auth-guest {
    display: block;
    text-align: center;
    font-size: 13px;
    color: var(--text3);
    margin-top: 16px;
    cursor: pointer;
}
.auth-guest:hover { color: var(--text2); }
