/* ==========================================================================
   NumisManager Pro — landing page styles (page-scoped, prefixed .nm-*)
   Reuses design tokens + .container/.btn/.site-header from styles.css.
   ========================================================================== */

:root {
    --nm-ink: #0b1220;
    --nm-card-border: #e5e7eb;
    --nm-glow: rgba(59, 130, 246, 0.35);
}

/* ---- Header brand (rectangular logo, no text) -------------------------- */
.nm-brand {
    display: block;
    height: 40px;
    width: auto;
}

/* ---- Language toggle ---------------------------------------------------- */
.nm-lang {
    display: inline-flex;
    border: 1px solid var(--nm-card-border);
    border-radius: 999px;
    overflow: hidden;
    margin-left: 1rem;
}
.nm-lang button {
    border: 0;
    background: transparent;
    padding: 0.35rem 0.7rem;
    font: 600 0.8rem var(--font-inter);
    color: var(--color-text-muted);
    cursor: pointer;
}
.nm-lang button.active {
    background: var(--gradient-primary);
    color: #fff;
}

/* ---- Hero --------------------------------------------------------------- */
.nm-hero {
    position: relative;
    padding: 4.5rem 0 3rem;
    overflow: hidden;
}
.nm-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% -10%, rgba(45, 212, 191, 0.12), transparent 60%);
    pointer-events: none;
}
.nm-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
}
.nm-hero-logo {
    width: 180px;
    max-width: 60%;
    height: auto;
    margin-bottom: 1.25rem;
}
.nm-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-text-main);
    margin: 0 0 1rem;
}
.nm-hero h1 .nm-grad {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nm-hero-sub {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 34ch;
    margin: 0 0 1.75rem;
}
.nm-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}
.btn-web {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 10px 30px -8px var(--nm-glow);
}
.btn-web:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px -8px var(--nm-glow);
}
.nm-cta-note {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.85rem;
}
.nm-hero-visual {
    position: relative;
}
.nm-hero-visual img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--nm-card-border);
    box-shadow: var(--shadow-lg);
}

/* ---- Trust bar --------------------------------------------------------- */
.nm-trust {
    border-top: 1px solid var(--nm-card-border);
    border-bottom: 1px solid var(--nm-card-border);
    background: var(--color-bg-alt);
}
.nm-trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem 2.5rem;
    padding: 1.1rem 0;
    font-size: 0.92rem;
    color: var(--color-text-muted);
}
.nm-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 500;
}

/* ---- Section scaffolding ---------------------------------------------- */
.nm-section {
    padding: 4rem 0;
}
.nm-section.alt {
    background: var(--color-bg-alt);
}
.nm-eyebrow {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-primary-mid);
    margin: 0 0 0.5rem;
}
.nm-h2 {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    letter-spacing: -0.02em;
    color: var(--color-text-main);
    margin: 0 auto 0.75rem;
    max-width: 22ch;
}
.nm-lead {
    text-align: center;
    color: var(--color-text-muted);
    max-width: 60ch;
    margin: 0 auto 2.5rem;
}

/* ---- Value props ------------------------------------------------------- */
.nm-values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.nm-value {
    background: #fff;
    border: 1px solid var(--nm-card-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.nm-value:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.nm-value .nm-ico {
    font-size: 2rem;
}
.nm-value h3 {
    font-size: 1rem;
    color: var(--color-text-main);
    margin: 0.75rem 0 0;
}

/* ---- Spotlight features ------------------------------------------------ */
.nm-spot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3.5rem;
}
.nm-spot:last-child {
    margin-bottom: 0;
}
.nm-spot.reverse .nm-spot-media {
    order: -1;
}
.nm-spot-media img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--nm-card-border);
    box-shadow: var(--shadow-lg);
}
.nm-spot h3 {
    font-size: 1.5rem;
    color: var(--color-text-main);
    margin: 0.5rem 0;
}
.nm-spot p {
    color: var(--color-text-muted);
    margin: 0 0 1rem;
}
.nm-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}
.nm-feature-list li {
    position: relative;
    padding-left: 1.6rem;
    color: var(--color-text-main);
    font-size: 0.95rem;
}
.nm-feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary-start);
    font-weight: 700;
}

/* ---- Feature bento ----------------------------------------------------- */
.nm-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
}
.nm-bento-card {
    background: #fff;
    border: 1px solid var(--nm-card-border);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.nm-bento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.nm-bento-card .nm-ico {
    font-size: 1.6rem;
}
.nm-bento-card h4 {
    font-size: 1.05rem;
    color: var(--color-text-main);
    margin: 0.6rem 0 0.35rem;
}
.nm-bento-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ---- Social proof ------------------------------------------------------ */
.nm-quotes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.nm-quote {
    background: #fff;
    border: 1px solid var(--nm-card-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.nm-quote p {
    color: var(--color-text-main);
    font-size: 0.98rem;
    line-height: 1.6;
    margin: 0 0 1rem;
}
.nm-quote .nm-stars {
    color: #f5b301;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}
.nm-quote .nm-author {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

/* ---- Pricing (light theme, matches the redesign) ----------------------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    align-items: start;
}
.pricing-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--nm-card-border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.pricing-card.featured {
    border-color: var(--color-primary-start);
    box-shadow: 0 12px 40px -12px var(--nm-glow);
}
.pricing-badge {
    position: absolute;
    top: -0.85rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    white-space: nowrap;
}
.pricing-icon {
    font-size: 2rem;
}
.pricing-plan-name {
    font-size: 1.25rem;
    color: var(--color-text-main);
    margin: 0.75rem 0 0.5rem;
}
.pricing-price {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 0.5rem;
}
.price-amount {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.price-amount.free-price {
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--color-text-main);
}
.price-period {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}
.pricing-savings,
.pricing-best-value {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary-mid);
    margin-bottom: 0.75rem;
}
.pricing-features {
    text-align: left;
    display: grid;
    gap: 0.85rem;
    margin: 1.25rem 0 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--nm-card-border);
}
.pricing-feature h4 {
    font-size: 0.92rem;
    color: var(--color-text-main);
    margin: 0 0 0.15rem;
    font-weight: 600;
}
.pricing-feature p {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.45;
}
.pricing-feature.disabled h4,
.pricing-feature.disabled p {
    color: #b6bcc6;
}
.pricing-feature.premium h4 {
    color: var(--color-primary-end);
}
.btn-pricing,
.btn-pricing-free,
.btn-pricing-featured {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-pricing-free {
    background: var(--color-bg-alt);
    color: var(--color-text-main);
    border: 1px solid var(--nm-card-border);
}
.btn-pricing {
    background: var(--color-text-main);
    color: #fff;
}
.btn-pricing-featured {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 10px 30px -8px var(--nm-glow);
}
.btn-pricing:hover,
.btn-pricing-free:hover,
.btn-pricing-featured:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ---- Download cards ---------------------------------------------------- */
.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.download-card {
    background: #fff;
    border: 1px solid var(--nm-card-border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.download-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.download-icon {
    color: var(--color-text-main);
    margin-bottom: 0.5rem;
}
.download-title {
    font-size: 1.25rem;
    color: var(--color-text-main);
    margin: 0.25rem 0 0.25rem;
}
.download-platform {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 0 0 0.25rem;
}
.download-version {
    color: var(--color-text-muted);
    font-size: 0.82rem;
    margin: 0 0 1rem;
}
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: #fff;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -8px var(--nm-glow);
}
.download-size {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    margin: 0.75rem 0 0;
}

/* ---- FAQ --------------------------------------------------------------- */
.nm-faq {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 0.75rem;
}
.nm-faq details {
    background: #fff;
    border: 1px solid var(--nm-card-border);
    border-radius: var(--radius-md);
    padding: 0 1.25rem;
}
.nm-faq summary {
    list-style: none;
    cursor: pointer;
    padding: 1.1rem 0;
    font-weight: 600;
    color: var(--color-text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.nm-faq summary::-webkit-details-marker {
    display: none;
}
.nm-faq summary::after {
    content: "+";
    font-size: 1.4rem;
    color: var(--color-primary-mid);
    transition: transform 0.2s;
}
.nm-faq details[open] summary::after {
    transform: rotate(45deg);
}
.nm-faq details p {
    margin: 0;
    padding: 0 0 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ---- Final CTA --------------------------------------------------------- */
.nm-final {
    background: var(--gradient-primary);
    color: #fff;
    text-align: center;
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
}
.nm-final h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 0 0 0.75rem;
}
.nm-final p {
    opacity: 0.95;
    margin: 0 0 1.75rem;
}
.nm-final .btn {
    background: #fff;
    color: var(--color-primary-end);
}
.nm-final .btn.secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ---- Floating CTA ------------------------------------------------------ */
.nm-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    background: var(--gradient-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    box-shadow: 0 10px 30px -6px var(--nm-glow);
    transform: translateY(120px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}
.nm-float.visible {
    transform: translateY(0);
    opacity: 1;
}
.nm-float:hover {
    transform: translateY(-3px);
}

/* ---- Inline checkout modal --------------------------------------------- */
.nm-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.nm-modal[hidden] {
    display: none;
}
.nm-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 18, 32, 0.55);
    backdrop-filter: blur(2px);
}
.nm-modal-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem 1.75rem 1.75rem;
}
.nm-modal-x {
    position: absolute;
    top: 0.6rem;
    right: 0.9rem;
    background: none;
    border: 0;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--color-text-muted);
    cursor: pointer;
}
.nm-modal-plan {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary-mid);
    margin-bottom: 0.35rem;
}
.nm-modal-card h3 {
    font-size: 1.35rem;
    color: var(--color-text-main);
    margin: 0 0 0.35rem;
}
.nm-modal-sub {
    color: var(--color-text-muted);
    font-size: 0.92rem;
    margin: 0 0 1.25rem;
}
.nm-field {
    display: block;
    margin-bottom: 0.9rem;
}
.nm-field span {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 0.3rem;
}
.nm-field input {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--nm-card-border);
    border-radius: var(--radius-md);
    font: inherit;
    color: var(--color-text-main);
    box-sizing: border-box;
}
.nm-field input:focus {
    outline: none;
    border-color: var(--color-primary-mid);
}
.nm-modal-err {
    color: #dc2626;
    font-size: 0.85rem;
    margin: 0 0 0.75rem;
}
.nm-modal-submit {
    width: 100%;
    border: 0;
    cursor: pointer;
    padding: 0.85rem 1rem;
    font-size: 0.98rem;
}
.nm-modal-submit:disabled {
    opacity: 0.7;
    cursor: default;
}
.nm-modal-toggle {
    text-align: center;
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin: 1rem 0 0.5rem;
}
.nm-linkbtn {
    background: none;
    border: 0;
    padding: 0;
    color: var(--color-primary-mid);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}
.nm-modal-secure {
    text-align: center;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin: 0.25rem 0 0;
}

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 900px) {
    .nm-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .nm-hero-visual { order: -1; }
    .nm-values { grid-template-columns: repeat(2, 1fr); }
    .nm-bento { grid-template-columns: repeat(2, 1fr); }
    .nm-quotes { grid-template-columns: 1fr; }
    .nm-spot { grid-template-columns: 1fr; gap: 1.5rem; }
    .nm-spot.reverse .nm-spot-media { order: 0; }
    .nm-spot-media { order: -1; }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .download-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .nm-values { grid-template-columns: 1fr; }
    .nm-bento { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .nm-float span { display: none; }
    .nm-float { padding: 14px; border-radius: 50%; }
}
