/*
Theme Name:  NMR Studio
Theme URI:   https://namir.ro/
Author:      mircea
Author URI:  https://namir.ro/
Description: Clean, product-led theme for namir.ro (identity v2). Drop-in replacement for nmr-business: same menu locations, sidebars and component classes, plus product pages for Easy Digital Downloads.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nmr-studio
Tags:        custom-logo, custom-menu, featured-images, footer-widgets, blog, e-commerce
*/

/* =====================================================================
   0. FONT  (Inter, SIL Open Font License, self-hosted: no third-party requests)
   ===================================================================== */
@font-face {
    font-family: "Inter Variable";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Inter Variable";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =====================================================================
   1. IDENTITY V2 TOKENS  (change the look of the whole site here)
   Old nmr-business variable names are kept so existing content still works.
   ===================================================================== */
:root {
    /* Colour: ink, paper, one accent */
    --color-bg:           #ffffff;
    --color-text:         #0b1220;
    --color-muted:        #4b5563;
    --color-border:       #e5e7eb;
    --color-border-strong:#cfd4dc;
    --color-surface:      #f6f7f9;
    --color-primary:      #4338ca;   /* the one accent: links, buttons */
    --color-primary-h:    #3730a3;
    --color-primary-soft: #eef2ff;
    --color-primary-line: #c7d2fe;
    --color-ring:         rgba(67, 56, 202, 0.28);
    --color-accent:       var(--color-primary);   /* legacy: amber accent is retired */
    --color-accent-h:     var(--color-primary-h);
    --color-success:      #047857;
    --color-dark:         #0b1220;
    --color-dark-800:     #111a2e;
    --color-dark-700:     #1f2a44;

    /* Type */
    --font-sans: "Inter Variable", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 Helvetica, Arial, sans-serif, "Apple Color Emoji";
    --font-mono: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace;

    --text-xs:   0.8125rem;
    --text-sm:   0.9375rem;
    --text-base: 1.0625rem;
    --text-lg:   1.1875rem;
    --text-xl:   1.375rem;
    --text-2xl:  1.75rem;
    --text-3xl:  2.25rem;
    --text-4xl:  2.75rem;
    --text-5xl:  3.5rem;
    --leading:        1.65;
    --leading-tight:  1.15;
    --leading-snug:   1.4;
    --tracking-tight: -0.035em;

    /* Spacing (8pt) */
    --sp-1:  0.25rem;
    --sp-2:  0.5rem;
    --sp-3:  0.75rem;
    --sp-4:  1rem;
    --sp-5:  1.25rem;
    --sp-6:  1.5rem;
    --sp-8:  2rem;
    --sp-10: 2.5rem;
    --sp-12: 3rem;
    --sp-16: 4rem;
    --sp-20: 5rem;
    --sp-24: 7rem;

    /* Layout */
    --content-width: 1120px;
    --text-width:    68ch;
    --site-padding:  var(--sp-6);
    --header-height: 72px;
    --radius-sm:     6px;
    --radius:        10px;
    --radius-lg:     14px;
    --radius-xl:     20px;

    /* Shadows: soft and layered */
    --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06);
    --shadow:    0 1px 2px rgba(11, 18, 32, 0.05), 0 6px 16px rgba(11, 18, 32, 0.06);
    --shadow-lg: 0 2px 4px rgba(11, 18, 32, 0.04), 0 14px 32px rgba(11, 18, 32, 0.09);
    --shadow-xl: 0 4px 8px rgba(11, 18, 32, 0.04), 0 28px 60px rgba(11, 18, 32, 0.14);

    --transition: 0.16s ease;
    --transition-slow: 0.28s ease;
}

/* =====================================================================
   2. RESET / BASE
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading);
    font-feature-settings: "cv11", "ss03";
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: var(--sp-6); }
table { border-collapse: collapse; width: 100%; }
pre { overflow-x: auto; }
pre, code { font-family: var(--font-mono); }
hr { border: none; border-top: 1px solid var(--color-border); margin: var(--sp-8) 0; }
[hidden] { display: none !important; }
svg { display: block; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* =====================================================================
   3. TYPOGRAPHY
   ===================================================================== */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 var(--sp-4);
    line-height: var(--leading-tight);
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: var(--tracking-tight);
    text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5vw, var(--text-5xl)); }
h2 { font-size: clamp(1.75rem, 3.4vw, var(--text-4xl)); }
h3 { font-size: var(--text-2xl); letter-spacing: -0.025em; }
h4 { font-size: var(--text-xl); letter-spacing: -0.02em; }
h5 { font-size: var(--text-lg); letter-spacing: -0.01em; }
h6 { font-size: var(--text-base); letter-spacing: 0; }
p  { margin: 0 0 var(--sp-4); text-wrap: pretty; }
.lead {
    font-size: var(--text-xl);
    line-height: var(--leading-snug);
    color: var(--color-muted);
}
a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--color-primary-h); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
    outline: 3px solid var(--color-ring);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}
blockquote {
    margin: var(--sp-6) 0;
    padding: var(--sp-4) var(--sp-6);
    border-left: 3px solid var(--color-primary);
    color: var(--color-muted);
    font-size: var(--text-lg);
}
code {
    background: var(--color-surface);
    padding: 0.1em 0.38em;
    border-radius: var(--radius-sm);
    font-size: 0.88em;
    border: 1px solid var(--color-border);
}
pre code { background: none; padding: 0; border: none; font-size: inherit; }
pre {
    background: var(--color-dark);
    color: #e2e8f0;
    border-radius: var(--radius);
    padding: var(--sp-6);
    margin: 0 0 var(--sp-4);
    font-size: var(--text-sm);
}

/* =====================================================================
   4. LAYOUT
   ===================================================================== */
.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1; }

.nmr-container {
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--site-padding);
    padding-right: var(--site-padding);
}

.nmr-section { padding: var(--sp-20) 0; }
.nmr-section--sm { padding: var(--sp-12) 0; }
.nmr-section--dark { background: var(--color-dark); color: #cbd5e1; }
.nmr-section--dark h1, .nmr-section--dark h2, .nmr-section--dark h3, .nmr-section--dark h4 { color: #fff; }
.nmr-section--dark .lead, .nmr-section--dark p { color: #a3b0c4; }
.nmr-section--dark a:not(.nmr-btn) { color: #c7d2fe; }
.nmr-section--surface { background: var(--color-surface); }
.nmr-section--accent { background: var(--color-primary); color: #fff; }
.nmr-section--accent h1, .nmr-section--accent h2, .nmr-section--accent h3 { color: #fff; }
.nmr-section--accent p { color: rgba(255, 255, 255, 0.88); }

/* legacy blocks used on a few pages */
.nmr-bundle-price-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: var(--sp-8);
    align-self: flex-start;
}
.nmr-bundle-price-box s { color: rgba(255, 255, 255, 0.5); }
.nmr-diff-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.nmr-section-header { text-align: center; max-width: 720px; margin: 0 auto var(--sp-12); }
.nmr-section-header h2 { margin-bottom: var(--sp-4); }
.nmr-section-header p { font-size: var(--text-lg); color: var(--color-muted); margin: 0; }

.nmr-grid { display: grid; gap: var(--sp-8); }
.nmr-grid-2 { grid-template-columns: repeat(2, 1fr); }
.nmr-grid-3 { grid-template-columns: repeat(3, 1fr); }
.nmr-grid-4 { grid-template-columns: repeat(4, 1fr); }
.nmr-grid-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* =====================================================================
   5. BUTTONS  (one accent: primary and accent look the same)
   ===================================================================== */
.nmr-btn,
.wp-block-button__link,
.edd-submit, a.edd-submit, .edd-add-to-cart, input.edd-submit, button.edd-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    min-height: 44px;
    padding: 0.65em 1.4em;
    font-size: var(--text-base);
    font-family: inherit;
    font-weight: 600;
    border-radius: var(--radius);
    border: 1.5px solid var(--color-primary);
    background: var(--color-primary);
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    white-space: nowrap;
    line-height: 1.3;
}
.nmr-btn:hover,
.wp-block-button__link:hover,
.edd-submit:hover, a.edd-submit:hover, .edd-add-to-cart:hover {
    background: var(--color-primary-h);
    border-color: var(--color-primary-h);
    color: #fff;
    box-shadow: 0 6px 18px rgba(67, 56, 202, 0.32);
    transform: translateY(-1px);
    text-decoration: none;
}
.nmr-btn:active { transform: none; box-shadow: none; }

.nmr-btn--primary, .nmr-btn--accent { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.nmr-btn--outline,
.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border-strong);
}
.nmr-btn--outline:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-text);
    box-shadow: none;
}
.nmr-btn--outline-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.nmr-btn--outline-white:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; color: #fff; box-shadow: none; }
.nmr-btn--ghost { background: transparent; color: var(--color-muted); border-color: transparent; }
.nmr-btn--ghost:hover { background: var(--color-surface); color: var(--color-text); box-shadow: none; }
.nmr-btn--lg { font-size: var(--text-lg); padding: 0.8em 1.8em; min-height: 52px; }
.nmr-btn--sm { font-size: var(--text-sm); padding: 0.4em 1em; min-height: 36px; }
.nmr-btn-group { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; }

/* On dark sections an accent button stays readable */
.nmr-section--dark .nmr-btn--primary, .nmr-section--dark .nmr-btn--accent,
.nmr-cta-band--dark .nmr-btn--primary, .nmr-cta-band--dark .nmr-btn--accent { background: #fff; color: var(--color-dark); border-color: #fff; }
.nmr-section--dark .nmr-btn--primary:hover, .nmr-section--dark .nmr-btn--accent:hover,
.nmr-cta-band--dark .nmr-btn--primary:hover, .nmr-cta-band--dark .nmr-btn--accent:hover { background: #e0e7ff; border-color: #e0e7ff; color: var(--color-dark); }
.nmr-section--accent .nmr-btn--primary, .nmr-section--accent .nmr-btn--accent,
.nmr-cta-band--primary .nmr-btn--primary, .nmr-cta-band--primary .nmr-btn--accent { background: #fff; color: var(--color-primary-h); border-color: #fff; }

/* =====================================================================
   6. HEADER + NAVIGATION  (light, quiet, sticky)
   ===================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow var(--transition-slow);
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(11, 18, 32, 0.08); }
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    gap: var(--sp-6);
}
.site-branding { display: flex; align-items: center; flex-shrink: 0; }
.site-title { font-size: var(--text-xl); font-weight: 800; margin: 0; letter-spacing: -0.04em; }
.site-title a { color: var(--color-text); text-decoration: none; }
.site-title a:hover { color: var(--color-primary); }
.custom-logo { max-height: 40px; width: auto; }
.custom-logo-link { display: flex; align-items: center; }

.main-navigation { display: flex; align-items: center; gap: var(--sp-4); }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--sp-1); align-items: center; }
.nav-menu li { position: relative; }
.nav-menu > li > a {
    display: block;
    padding: var(--sp-2) var(--sp-3);
    color: var(--color-muted);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}
.nav-menu > li > a:hover,
.nav-menu > .current-menu-item > a,
.nav-menu > .current_page_item > a,
.nav-menu > .current-menu-ancestor > a {
    color: var(--color-text);
    background: var(--color-surface);
}
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + var(--sp-2));
    left: 0;
    min-width: 220px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: var(--sp-2);
    list-style: none;
    z-index: 300;
}
.nav-menu li:hover > .sub-menu, .nav-menu li:focus-within > .sub-menu { display: block; }
.nav-menu .sub-menu a {
    display: block;
    padding: var(--sp-2) var(--sp-3);
    color: var(--color-muted);
    text-decoration: none;
    font-size: var(--text-sm);
    border-radius: var(--radius-sm);
}
.nav-menu .sub-menu a:hover { color: var(--color-text); background: var(--color-surface); }

/* header call-to-action: give a menu item the CSS class "menu-item-cta" */
.nav-menu .menu-item-cta > a {
    background: var(--color-primary);
    color: #fff !important;
    padding: var(--sp-2) var(--sp-4);
    font-weight: 600;
    border-radius: var(--radius);
}
.nav-menu .menu-item-cta > a:hover { background: var(--color-primary-h); }

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    background: none;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--color-text);
    font-size: 1.3rem;
    line-height: 1;
}

/* =====================================================================
   7. HERO  (light; the old dark hero markup keeps working)
   ===================================================================== */
.nmr-hero {
    background:
        radial-gradient(ellipse 70% 60% at 85% 0%, var(--color-primary-soft) 0%, transparent 70%),
        linear-gradient(180deg, #fff 0%, var(--color-surface) 100%);
    color: var(--color-text);
    padding: var(--sp-24) 0 var(--sp-20);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
}
.nmr-hero--centered { text-align: center; }
.nmr-hero--centered .nmr-hero__actions { justify-content: center; }
.nmr-hero--centered .nmr-hero__sub { margin-left: auto; margin-right: auto; }
.nmr-hero__inner { position: relative; z-index: 1; }
.nmr-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    background: var(--color-primary-soft);
    border: 1px solid var(--color-primary-line);
    color: var(--color-primary-h);
    font-size: var(--text-xs);
    font-weight: 600;
    padding: var(--sp-1) var(--sp-3);
    border-radius: 999px;
    margin-bottom: var(--sp-5);
    letter-spacing: 0.01em;
}
.nmr-hero__title {
    font-size: clamp(2.25rem, 5.2vw, var(--text-5xl));
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: var(--sp-5);
    letter-spacing: -0.04em;
    line-height: 1.06;
    max-width: 820px;
}
.nmr-hero--centered .nmr-hero__title { margin-left: auto; margin-right: auto; }
.nmr-hero__title .highlight { color: var(--color-primary); }
.nmr-hero__sub {
    font-size: var(--text-xl);
    color: var(--color-muted);
    margin-bottom: var(--sp-8);
    max-width: 600px;
    line-height: var(--leading-snug);
}
.nmr-hero__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; }
.nmr-hero__meta {
    margin-top: var(--sp-8);
    display: flex;
    gap: var(--sp-6);
    align-items: center;
    font-size: var(--text-sm);
    color: var(--color-muted);
    flex-wrap: wrap;
}
.nmr-hero--centered .nmr-hero__meta { justify-content: center; }
.nmr-hero__meta-item { display: flex; align-items: center; gap: var(--sp-2); }
.nmr-hero .nmr-btn--outline-white { color: var(--color-text); border-color: var(--color-border-strong); }
.nmr-hero .nmr-btn--outline-white:hover { background: #fff; border-color: var(--color-text); color: var(--color-text); }

.nmr-hero--split .nmr-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: var(--sp-16);
    align-items: center;
}
.nmr-hero--split .nmr-hero__media { border-radius: var(--radius-lg); overflow: hidden; }

/* Product page extras */
.nmr-trust {
    list-style: none;
    padding: 0;
    margin: var(--sp-6) 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2) var(--sp-5);
    font-size: var(--text-sm);
    color: var(--color-muted);
}
.nmr-trust li::before { content: "\2713"; color: var(--color-success); font-weight: 800; margin-right: var(--sp-2); }

/* Screenshot frame: used for every product image */
.nmr-shot {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    margin: 0;
}
.nmr-shot img { width: 100%; height: auto; }
.nmr-shot figcaption { padding: var(--sp-3) var(--sp-4); font-size: var(--text-sm); color: var(--color-muted); border-top: 1px solid var(--color-border); background: var(--color-surface); }

/* =====================================================================
   8. CARDS
   ===================================================================== */
.nmr-card { background: var(--color-bg); border-radius: var(--radius-lg); padding: var(--sp-8); border: 1px solid var(--color-border); }
.nmr-card--shadow { box-shadow: var(--shadow); border-color: transparent; }
.nmr-card--hover { transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-slow); cursor: default; }
.nmr-card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--color-border-strong); }

.nmr-card--feature .nmr-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--color-primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--sp-4);
}
.nmr-card--feature h3 { font-size: var(--text-lg); letter-spacing: -0.015em; margin-bottom: var(--sp-2); }
.nmr-card--feature p { color: var(--color-muted); margin: 0; font-size: var(--text-sm); line-height: var(--leading); }

.nmr-plugin-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-slow);
}
.nmr-plugin-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--color-border-strong); }
.nmr-plugin-card__image { display: block; background: var(--color-surface); aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--color-border); }
.nmr-plugin-card__image img { width: 100%; height: 100%; object-fit: cover; }
.nmr-plugin-card__body { padding: var(--sp-6); flex: 1; display: flex; flex-direction: column; }
.nmr-plugin-card__title { font-size: var(--text-xl); letter-spacing: -0.02em; margin-bottom: var(--sp-2); }
.nmr-plugin-card__title a { color: var(--color-text); text-decoration: none; }
.nmr-plugin-card__title a:hover { color: var(--color-primary); }
.nmr-plugin-card__desc { color: var(--color-muted); font-size: var(--text-sm); flex: 1; margin-bottom: var(--sp-4); }
.nmr-plugin-card__footer { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.nmr-plugin-card__price { font-size: var(--text-xl); font-weight: 800; letter-spacing: -0.03em; color: var(--color-text); }
.nmr-plugin-card__price-free { color: var(--color-success); }

.nmr-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; margin: 0 0 var(--sp-8); }
.nmr-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 var(--sp-4);
    border: 1px solid var(--color-border-strong);
    border-radius: 999px;
    color: var(--color-muted);
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
}
.nmr-chip:hover { color: var(--color-text); border-color: var(--color-text); }
.nmr-chip.is-active { background: var(--color-text); border-color: var(--color-text); color: #fff; }

/* =====================================================================
   9. CAROUSEL / TESTIMONIALS
   ===================================================================== */
.nmr-carousel { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.nmr-carousel-viewport { overflow: hidden; }
.nmr-carousel-track { display: flex; transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94); will-change: transform; }
.nmr-carousel-slide { flex: 0 0 100%; width: 100%; }
.nmr-carousel-prev, .nmr-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--color-text);
    box-shadow: var(--shadow);
    transition: background var(--transition), transform var(--transition);
    z-index: 10;
    line-height: 1;
}
.nmr-carousel-prev { left: var(--sp-4); }
.nmr-carousel-next { right: var(--sp-4); }
.nmr-carousel-prev:hover, .nmr-carousel-next:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.nmr-carousel-dots { display: flex; justify-content: center; gap: var(--sp-2); padding: var(--sp-4) 0 0; }
.nmr-carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-border-strong); border: none; cursor: pointer; padding: 0; transition: background var(--transition), transform var(--transition); }
.nmr-carousel-dot.is-active { background: var(--color-primary); transform: scale(1.3); }
.nmr-carousel--dark .nmr-carousel-prev, .nmr-carousel--dark .nmr-carousel-next { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.16); }
.nmr-carousel--dark .nmr-carousel-prev:hover, .nmr-carousel--dark .nmr-carousel-next:hover { background: rgba(255, 255, 255, 0.2); }
.nmr-carousel--dark .nmr-carousel-dot { background: rgba(255, 255, 255, 0.25); }
.nmr-carousel--dark .nmr-carousel-dot.is-active { background: #fff; }

.nmr-testimonial { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--sp-8); display: flex; flex-direction: column; gap: var(--sp-6); }
.nmr-testimonial--shadow { border-color: transparent; box-shadow: var(--shadow); }
.nmr-testimonial__stars { color: #b45309; font-size: var(--text-lg); letter-spacing: 2px; }
.nmr-testimonial__quote { font-size: var(--text-lg); line-height: var(--leading); color: var(--color-text); margin: 0; }
.nmr-testimonial__quote::before { content: '\201C'; }
.nmr-testimonial__quote::after  { content: '\201D'; }
.nmr-testimonial__author { display: flex; align-items: center; gap: var(--sp-3); margin-top: auto; }
.nmr-testimonial__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--color-surface); border: 2px solid var(--color-border); object-fit: cover; flex-shrink: 0; }
.nmr-testimonial__name { font-weight: 700; font-size: var(--text-sm); margin: 0; }
.nmr-testimonial__role { font-size: var(--text-xs); color: var(--color-muted); }
.nmr-testimonials-carousel .nmr-carousel-slide { padding: var(--sp-2) var(--sp-4); }

/* =====================================================================
   10. PRICING
   ===================================================================== */
.nmr-pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-6); align-items: start; }
.nmr-pricing-card, .nmr-price-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--sp-8);
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}
.nmr-pricing-card--featured, .nmr-price-card { border-color: var(--color-primary); box-shadow: var(--shadow-lg); position: relative; }
.nmr-pricing-card__badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--color-primary); color: #fff; font-size: var(--text-xs); font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em; padding: var(--sp-1) var(--sp-4); border-radius: 999px; white-space: nowrap;
}
.nmr-pricing-card__name { font-size: var(--text-lg); font-weight: 700; margin: 0; }
.nmr-pricing-card__tagline { font-size: var(--text-sm); color: var(--color-muted); margin: 0; }
.nmr-pricing__price { margin: 0; }
.nmr-pricing__amount { font-size: var(--text-5xl); font-weight: 800; letter-spacing: -0.05em; color: var(--color-text); line-height: 1; }
.nmr-pricing__period { font-size: var(--text-sm); color: var(--color-muted); }
.nmr-pricing__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-3); border-top: 1px solid var(--color-border); padding-top: var(--sp-4); }
.nmr-pricing__list li { display: flex; align-items: flex-start; gap: var(--sp-3); font-size: var(--text-sm); line-height: var(--leading-snug); }
.nmr-pricing__list li::before {
    content: '\2713'; flex-shrink: 0; width: 20px; height: 20px; background: rgba(4, 120, 87, 0.1); color: var(--color-success);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 800; margin-top: 1px;
}
.nmr-pricing__list li.is-dim { color: var(--color-muted); }
.nmr-pricing__list li.is-dim::before { content: '\2715'; background: var(--color-surface); color: var(--color-border-strong); }
.nmr-pricing-card .nmr-btn, .nmr-price-card .nmr-btn, .nmr-price-card .edd-submit, .nmr-price-card .edd-add-to-cart { width: 100%; justify-content: center; }

/* =====================================================================
   11. STATS
   ===================================================================== */
.nmr-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-8); text-align: center; }
.nmr-stat__number { font-size: var(--text-4xl); font-weight: 800; letter-spacing: -0.05em; color: var(--color-text); line-height: 1; display: block; margin-bottom: var(--sp-2); }
.nmr-section--dark .nmr-stat__number { color: #fff; }
.nmr-stat__label { font-size: var(--text-sm); color: var(--color-muted); font-weight: 500; }
.nmr-section--dark .nmr-stat__label { color: #8b99ad; }

/* =====================================================================
   12. FAQ  (the old JS accordion, and native <details> for new pages)
   ===================================================================== */
.nmr-accordion, .nmr-faq { display: flex; flex-direction: column; gap: var(--sp-2); }
.nmr-accordion-item, .nmr-faq details { border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; transition: border-color var(--transition); background: var(--color-bg); }
.nmr-accordion-item.is-open, .nmr-faq details[open] { border-color: var(--color-border-strong); }
.nmr-accordion-trigger, .nmr-faq summary {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--sp-4);
    padding: var(--sp-5) var(--sp-6);
    background: var(--color-bg);
    border: none;
    cursor: pointer;
    font-size: var(--text-base);
    font-family: inherit;
    font-weight: 600;
    color: var(--color-text);
    text-align: left;
    list-style: none;
    min-height: 44px;
}
.nmr-faq summary::-webkit-details-marker { display: none; }
.nmr-accordion-trigger:hover, .nmr-faq summary:hover { background: var(--color-surface); }
.nmr-accordion-item.is-open .nmr-accordion-trigger { background: var(--color-surface); }
.nmr-accordion-trigger__icon, .nmr-faq summary::after {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: transform var(--transition), background var(--transition);
    line-height: 1;
}
.nmr-faq summary::after { content: "+"; }
.nmr-faq details[open] summary::after { transform: rotate(45deg); background: var(--color-text); border-color: var(--color-text); color: #fff; }
.nmr-accordion-item.is-open .nmr-accordion-trigger__icon { transform: rotate(45deg); background: var(--color-text); border-color: var(--color-text); color: #fff; }
.nmr-accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.nmr-accordion-panel-inner, .nmr-faq details > div { padding: 0 var(--sp-6) var(--sp-6); color: var(--color-muted); font-size: var(--text-sm); line-height: var(--leading); }
.nmr-faq details > div > :last-child { margin-bottom: 0; }
.nmr-accordion-item.is-open .nmr-accordion-panel { max-height: 600px; }

/* =====================================================================
   13. CTA BAND, BADGES, LOGO BAR
   ===================================================================== */
.nmr-cta-band { padding: var(--sp-16) 0; text-align: center; }
.nmr-cta-band--primary { background: var(--color-primary); }
.nmr-cta-band--primary h2, .nmr-cta-band--primary p { color: #fff; }
.nmr-cta-band--dark { background: var(--color-dark); }
.nmr-cta-band--dark h2 { color: #fff; }
.nmr-cta-band--dark p { color: #a3b0c4; }
.nmr-cta-band--surface { background: var(--color-surface); }
.nmr-cta-band--accent { background: var(--color-primary-soft); border-top: 1px solid var(--color-primary-line); border-bottom: 1px solid var(--color-primary-line); }
.nmr-cta-band--accent h2, .nmr-cta-band--accent p { color: var(--color-text); }
.nmr-cta-band__inner { max-width: 640px; margin: 0 auto; }
.nmr-cta-band h2 { margin-bottom: var(--sp-4); font-size: var(--text-3xl); }
.nmr-cta-band p { margin-bottom: var(--sp-8); font-size: var(--text-lg); }
.nmr-cta-band .nmr-btn-group { justify-content: center; }

.nmr-badge { display: inline-flex; align-items: center; padding: 0.2em 0.7em; border-radius: 999px; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.02em; line-height: 1.5; }
.nmr-badge--blue  { background: var(--color-primary-soft); color: var(--color-primary-h); }
.nmr-badge--green { background: rgba(4, 120, 87, 0.1); color: var(--color-success); }
.nmr-badge--amber { background: #fef3c7; color: #92400e; }
.nmr-badge--gray  { background: var(--color-surface); color: var(--color-muted); border: 1px solid var(--color-border); }
.nmr-badge--dark  { background: var(--color-dark-800); color: #a3b0c4; }

.nmr-logo-bar { display: flex; align-items: center; justify-content: center; gap: var(--sp-10); flex-wrap: wrap; opacity: 0.55; filter: grayscale(1); }
.nmr-logo-bar img { height: 28px; width: auto; }

/* =====================================================================
   14. PRODUCT PAGE COMPONENTS  (Custom HTML blocks on a download)
   ===================================================================== */
.nmr-product-content > section { scroll-margin-top: calc(var(--header-height) + 16px); }
.nmr-problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-8); list-style: none; margin: 0; padding: 0; }
.nmr-problems li { padding-top: var(--sp-4); border-top: 2px solid var(--color-text); font-size: var(--text-lg); line-height: var(--leading-snug); font-weight: 500; }
.nmr-problems li span { display: block; margin-top: var(--sp-2); font-size: var(--text-sm); font-weight: 400; color: var(--color-muted); }

.nmr-feature-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--sp-12); align-items: center; }
.nmr-feature-row + .nmr-feature-row { margin-top: var(--sp-24); }
.nmr-feature-row--reverse .nmr-feature-row__text { order: 2; }
.nmr-feature-row__eyebrow { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-primary); margin-bottom: var(--sp-3); }
.nmr-feature-row__text h3 { font-size: var(--text-3xl); }
.nmr-feature-row__text ul { list-style: none; padding: 0; margin: var(--sp-5) 0; display: grid; gap: var(--sp-3); }
.nmr-feature-row__text li { position: relative; padding-left: var(--sp-8); }
.nmr-feature-row__text li::before { content: "\2713"; position: absolute; left: 0; top: 0.1em; width: 22px; height: 22px; border-radius: 50%; background: rgba(4, 120, 87, 0.1); color: var(--color-success); display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 800; }
.nmr-limit { font-size: var(--text-sm); color: var(--color-muted); border-left: 3px solid var(--color-border-strong); padding-left: var(--sp-4); margin-top: var(--sp-5); }

.nmr-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-8); list-style: none; margin: 0; padding: 0; counter-reset: step; }
.nmr-steps li { counter-increment: step; }
.nmr-steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--color-text); color: #fff; font-weight: 700; margin-bottom: var(--sp-4); }
.nmr-steps h3 { font-size: var(--text-xl); margin-bottom: var(--sp-2); }
.nmr-steps p { color: var(--color-muted); font-size: var(--text-sm); margin: 0; }

.nmr-compare { width: 100%; max-width: 860px; margin: 0 auto; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; border-collapse: separate; border-spacing: 0; background: var(--color-bg); }
.nmr-compare th, .nmr-compare td { padding: var(--sp-4) var(--sp-5); text-align: left; border-bottom: 1px solid var(--color-border); font-size: var(--text-sm); }
.nmr-compare tr:last-child td { border-bottom: none; }
.nmr-compare thead th { background: var(--color-surface); font-weight: 700; font-size: var(--text-sm); }
.nmr-compare thead th:last-child, .nmr-compare td:last-child { background: var(--color-primary-soft); }
.nmr-compare td:nth-child(2), .nmr-compare td:nth-child(3), .nmr-compare th:nth-child(2), .nmr-compare th:nth-child(3) { text-align: center; width: 18%; }
.nmr-yes { color: var(--color-success); font-weight: 800; }
.nmr-no { color: var(--color-border-strong); }

.nmr-price-card { max-width: 440px; margin: 0 auto; text-align: left; }
.nmr-price-card .edd_purchase_submit_wrapper { margin: 0; }
.nmr-price-card .edd_price_options, .nmr-price-card .edd_price { display: none; }
.nmr-price-card .edd-submit, .nmr-price-card .edd-add-to-cart { font-size: var(--text-lg); min-height: 52px; }
.nmr-price-card__note { font-size: var(--text-xs); color: var(--color-muted); text-align: center; margin: 0; }

.nmr-sticky-buy {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 150;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -6px 24px rgba(11, 18, 32, 0.08);
}
.nmr-sticky-buy__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.nmr-sticky-buy__text strong { font-size: var(--text-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nmr-sticky-buy__text span { font-size: var(--text-sm); color: var(--color-muted); }

/* =====================================================================
   15. BLOG / POSTS / BLOCK EDITOR CONTENT
   ===================================================================== */
.page-content, .entry-content { padding: var(--sp-12) 0; }
.nmr-product-content.entry-content { padding: 0; }
.nmr-posts-container { max-width: 760px; margin: 0 auto; }
.entry-content > p, .entry-content > ul, .entry-content > ol, .entry-content > blockquote { max-width: var(--text-width); }
.post-list article { padding-bottom: var(--sp-8); border-bottom: 1px solid var(--color-border); margin-bottom: var(--sp-8); }
.post-list article:last-of-type { border-bottom: none; }
.page-header { margin-bottom: var(--sp-8); padding-bottom: var(--sp-6); border-bottom: 1px solid var(--color-border); }
.entry-header { margin-bottom: var(--sp-6); }
.entry-title { font-size: var(--text-3xl); margin-bottom: var(--sp-3); }
.entry-title a { color: var(--color-text); text-decoration: none; }
.entry-title a:hover { color: var(--color-primary); }
.entry-meta, .entry-footer { font-size: var(--text-sm); color: var(--color-muted); margin-bottom: var(--sp-4); }
.entry-footer { margin-top: var(--sp-8); padding-top: var(--sp-4); border-top: 1px solid var(--color-border); }
.entry-meta a, .entry-footer a { color: var(--color-muted); text-decoration: none; }
.entry-meta a:hover, .entry-footer a:hover { color: var(--color-primary); }
.entry-meta .sep { margin: 0 var(--sp-2); }
.post-thumbnail { margin-bottom: var(--sp-6); border-radius: var(--radius-lg); overflow: hidden; }
.read-more { display: inline-flex; align-items: center; gap: var(--sp-1); font-size: var(--text-sm); font-weight: 600; color: var(--color-primary); text-decoration: none; margin-top: var(--sp-2); }
.read-more:hover { color: var(--color-primary-h); }

.posts-navigation, .post-navigation { margin: var(--sp-8) 0; }
.nav-links { display: flex; gap: var(--sp-2); justify-content: center; flex-wrap: wrap; }
.nav-links a, .nav-links span { display: inline-block; padding: var(--sp-2) var(--sp-4); border: 1px solid var(--color-border); border-radius: var(--radius); font-size: var(--text-sm); color: var(--color-muted); text-decoration: none; }
.nav-links a:hover { border-color: var(--color-text); color: var(--color-text); }
.nav-links span.current { background: var(--color-text); border-color: var(--color-text); color: #fff; }
.post-navigation { display: flex; gap: var(--sp-4); justify-content: space-between; }
.post-navigation .nav-previous, .post-navigation .nav-next { max-width: 48%; }
.post-navigation a { font-size: var(--text-sm); color: var(--color-muted); text-decoration: none; }
.post-navigation a:hover { color: var(--color-primary); }
.post-navigation .nav-subtitle { display: block; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--sp-1); }

/* core blocks */
.wp-block-image img { border-radius: var(--radius); }
.wp-block-table table { border: 1px solid var(--color-border); font-size: var(--text-sm); }
.wp-block-table th, .wp-block-table td { padding: var(--sp-3) var(--sp-4); border: 1px solid var(--color-border); }
.wp-block-table thead { background: var(--color-surface); }
.wp-block-separator { border: none; border-top: 1px solid var(--color-border); margin: var(--sp-10) auto; }
.wp-block-columns { gap: var(--sp-8); }
.wp-block-details { border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-2); }
.wp-block-details summary { font-weight: 600; cursor: pointer; }
.wp-block-quote { border-left: 3px solid var(--color-primary); }
.alignwide  { margin-left: calc(-1 * var(--site-padding)); margin-right: calc(-1 * var(--site-padding)); max-width: calc(100% + var(--site-padding) * 2); }
.alignfull  { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }

/* =====================================================================
   16. FOOTER  (light)
   ===================================================================== */
.site-footer { background: var(--color-surface); color: var(--color-muted); padding: var(--sp-16) 0 0; border-top: 1px solid var(--color-border); }
.site-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: var(--sp-12); padding-bottom: var(--sp-12); border-bottom: 1px solid var(--color-border); }
.footer-brand .site-title { font-size: var(--text-xl); margin-bottom: var(--sp-3); }
.footer-brand p { font-size: var(--text-sm); color: var(--color-muted); line-height: var(--leading); margin-bottom: var(--sp-6); max-width: 32ch; }
.footer-brand .custom-logo { max-height: 34px; margin-bottom: var(--sp-4); }
.footer-col-title { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text); margin-bottom: var(--sp-4); }
.footer-menu { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-menu a { color: var(--color-muted); text-decoration: none; font-size: var(--text-sm); }
.footer-menu a:hover { color: var(--color-primary); text-decoration: underline; }
.site-footer-bottom { padding: var(--sp-6) 0; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.site-info { font-size: var(--text-sm); color: var(--color-muted); margin: 0; }
.site-info a { color: var(--color-muted); text-decoration: none; }
.site-info a:hover { color: var(--color-primary); }

/* =====================================================================
   17. WIDGETS, FORMS, COMMENTS
   ===================================================================== */
.widget-area { font-size: var(--text-sm); }
.widget { margin-bottom: var(--sp-8); }
.widget:last-child { margin-bottom: 0; }
.widget-title { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-muted); margin-bottom: var(--sp-3); padding-bottom: var(--sp-2); border-bottom: 1px solid var(--color-border); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: var(--sp-2) 0; border-bottom: 1px solid var(--color-border); }
.widget ul li:last-child { border-bottom: none; }
.widget ul a { color: var(--color-text); text-decoration: none; }
.widget ul a:hover { color: var(--color-primary); }

input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="number"], input[type="password"], input[type="tel"],
textarea, select {
    width: 100%;
    min-height: 44px;
    padding: var(--sp-3) var(--sp-4);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius);
    font-size: var(--text-base);
    font-family: inherit;
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color var(--transition), box-shadow var(--transition);
    line-height: 1.5;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px var(--color-ring); }
label { display: block; font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--sp-2); }
textarea { min-height: 120px; resize: vertical; }
.search-form { display: flex; gap: var(--sp-2); }
.search-field { flex: 1; }
.search-submit { padding: var(--sp-3) var(--sp-6); background: var(--color-primary); color: #fff; border: none; border-radius: var(--radius); cursor: pointer; font-size: var(--text-base); font-family: inherit; font-weight: 600; min-height: 44px; }
.search-submit:hover { background: var(--color-primary-h); }

#comments { margin-top: var(--sp-12); padding-top: var(--sp-8); border-top: 1px solid var(--color-border); }
.comments-title, .comment-reply-title { font-size: var(--text-2xl); margin-bottom: var(--sp-6); }
.comment-list { list-style: none; padding: 0; margin: 0 0 var(--sp-8); }
.comment-list .children { list-style: none; padding-left: var(--sp-8); }
.comment { padding: var(--sp-6) 0; border-bottom: 1px solid var(--color-border); }
.comment-author .fn { font-weight: 700; font-size: var(--text-sm); }
.comment-metadata { font-size: var(--text-sm); color: var(--color-muted); margin-bottom: var(--sp-3); }
.comment-metadata a { color: var(--color-muted); text-decoration: none; }
.form-submit .submit { padding: var(--sp-3) var(--sp-8); background: var(--color-primary); color: #fff; border: none; border-radius: var(--radius); cursor: pointer; font-size: var(--text-base); font-family: inherit; font-weight: 600; min-height: 44px; }
.form-submit .submit:hover { background: var(--color-primary-h); }

/* =====================================================================
   18. EASY DIGITAL DOWNLOADS  (EDD brings its own CSS; this only aligns it)
   ===================================================================== */
#edd_checkout_wrap, #edd_purchase_receipt, .edd_download_purchase_form, #edd_login_form, #edd_register_form { font-size: var(--text-base); }
#edd_checkout_cart { border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
#edd_checkout_cart th, #edd_checkout_cart td { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--color-border); text-align: left; }
#edd_checkout_cart th { background: var(--color-surface); font-size: var(--text-sm); }
#edd_checkout_form_wrap fieldset { border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--sp-5); margin-bottom: var(--sp-5); }
#edd_checkout_form_wrap legend { font-weight: 700; padding: 0 var(--sp-2); }
#edd_checkout_form_wrap input.edd-input, #edd_checkout_form_wrap select.edd-select { max-width: 100%; }
.edd_errors, .edd-alert-error { border: 1px solid #fecaca; background: #fef2f2; color: #991b1b; border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); }
.edd_success, .edd-alert-success { border: 1px solid #a7f3d0; background: #ecfdf5; color: #065f46; border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); }
/* EDD's own button skin (blue) is overridden; !important is needed because EDD loads its stylesheet later */
.edd-submit.button, .edd-submit.blue, a.edd-submit, input.edd-submit, .edd-add-to-cart.edd-submit {
    background: var(--color-primary) !important; border: 1.5px solid var(--color-primary) !important; color: #fff !important;
    border-radius: var(--radius) !important; font-family: inherit !important; font-weight: 600 !important; text-shadow: none !important; box-shadow: none !important;
}
.edd-submit.button:hover, .edd-submit.blue:hover, a.edd-submit:hover, input.edd-submit:hover { background: var(--color-primary-h) !important; border-color: var(--color-primary-h) !important; }
.edd_purchase_submit_wrapper { margin: 0; }
.edd-add-to-cart .edd-add-to-cart-label { color: inherit; }
.edd-add-to-cart .edd-loading, .edd-loading-ajax { display: none; }
#edd_purchase_form input[type=submit].edd-submit { width: 100%; font-size: var(--text-lg); min-height: 52px; }

/* =====================================================================
   19. UTILITIES + ACCESSIBILITY
   ===================================================================== */
.text-center { text-align: center; }
.text-muted { color: var(--color-muted); }
.text-accent, .text-primary { color: var(--color-primary); }
.text-white { color: #fff; }
.font-bold { font-weight: 700; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.gap-4 { gap: var(--sp-4); }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }

.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
    clip: auto !important; clip-path: none; display: block; height: auto;
    left: var(--sp-4); top: var(--sp-4); width: auto; z-index: 999;
    padding: var(--sp-3) var(--sp-6); background: var(--color-bg);
    border: 2px solid var(--color-primary); border-radius: var(--radius);
    font-size: var(--text-base); font-weight: 600; color: var(--color-text); text-decoration: none;
}
.error-404 .page-title { font-size: var(--text-4xl); }

/* =====================================================================
   20. RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
    .site-footer-grid { grid-template-columns: 1fr 1fr; }
    .nmr-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .nmr-feature-row, .nmr-hero--split .nmr-hero__inner { gap: var(--sp-10); }
}

@media (max-width: 860px) {
    .nmr-hero--split .nmr-hero__inner { grid-template-columns: 1fr; }
    .nmr-hero--split .nmr-hero__media { order: -1; }
    .nmr-feature-row { grid-template-columns: 1fr; }
    .nmr-feature-row + .nmr-feature-row { margin-top: var(--sp-16); }
    .nmr-feature-row--reverse .nmr-feature-row__text { order: 0; }
    .nmr-problems, .nmr-steps { grid-template-columns: 1fr; gap: var(--sp-6); }
}

@media (max-width: 768px) {
    :root { --site-padding: var(--sp-4); --header-height: 60px; }
    .site-header-inner { flex-wrap: wrap; padding-top: var(--sp-2); padding-bottom: var(--sp-2); min-height: auto; }
    .menu-toggle { display: inline-flex; }
    .main-navigation { width: 100%; flex-direction: column; align-items: flex-start; }
    .nav-menu { display: none; flex-direction: column; align-items: stretch; width: 100%; gap: 0; padding: var(--sp-2) 0 var(--sp-3); border-top: 1px solid var(--color-border); }
    .nav-menu.is-open { display: flex; }
    .nav-menu > li > a { padding: var(--sp-3) var(--sp-2); }
    .nav-menu .menu-item-cta > a { text-align: center; margin-top: var(--sp-2); }
    .nav-menu .sub-menu { position: static; display: block; box-shadow: none; border: none; border-left: 2px solid var(--color-border); border-radius: 0; padding: 0 0 0 var(--sp-4); background: transparent; margin-top: 0; }

    .nmr-hero { padding: var(--sp-12) 0; }
    .nmr-hero__sub { font-size: var(--text-lg); }
    .nmr-section { padding: var(--sp-12) 0; }
    .nmr-grid-2, .nmr-grid-3, .nmr-grid-4 { grid-template-columns: 1fr; }
    .nmr-pricing { grid-template-columns: 1fr; }
    .nmr-stats { grid-template-columns: repeat(2, 1fr); }
    .site-footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
    .site-footer-bottom { flex-direction: column; text-align: center; }
    .post-navigation { flex-direction: column; }
    .post-navigation .nav-previous, .post-navigation .nav-next { max-width: 100%; }
    .nmr-compare th, .nmr-compare td { padding: var(--sp-3); }
    .nmr-sticky-buy { display: flex; }
    body.single-download { padding-bottom: 76px; }
}

@media (max-width: 480px) {
    .nmr-stats { grid-template-columns: 1fr 1fr; }
    .site-footer-grid { grid-template-columns: 1fr; }
    .nmr-cta-band p { font-size: var(--text-base); }
    .nmr-hero__actions { flex-direction: column; align-items: stretch; }
    .nmr-hero__actions .nmr-btn { justify-content: center; }
    .nmr-hero--centered .nmr-hero__actions { align-items: stretch; }
    .nmr-compare td:nth-child(2), .nmr-compare td:nth-child(3), .nmr-compare th:nth-child(2), .nmr-compare th:nth-child(3) { width: auto; }
}
