/* MOLVRIX — Main Stylesheet */
/* Version: 2.0 */

/* ═════════════════════════════════════════════════════════════════════════════
   CSS VARIABLES
═════════════════════════════════════════════════════════════════════════════ */
:root {
    /* Colors - Dark Theme (GitHub-inspired) */
    --black: #0d1117;
    --black-2: #0a0e14;
    --black-3: #161b22;
    --black-4: #21262d;
    --green: #2ea043;
    --green-2: #3fb950;
    --green-dim: #1a7f37;
    --green-glow: rgba(46, 160, 67, 0.4);
    --white: #f0f6fc;
    --white-2: #c9d1d9;
    --muted: #8b949e;
    --red: #f85149;
    --red-dim: #da3633;
    --yellow: #e3b341;
    --blue: #58a6ff;
    
    /* Borders */
    --border: rgba(48, 56, 66, 0.8);
    --border-g: rgba(46, 160, 67, 0.25);
    
    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --font-body: 'DM Mono', monospace;
    
    /* Spacing */
    --section-pad: 100px;
    --container-max: 1400px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ═════════════════════════════════════════════════════════════════════════════
   RESET & BASE
═════════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Bug 17 fix: remove blue tap flash on iOS/Android */
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(46, 160, 67, 0.012) 4px
    );
    pointer-events: none;
}

a {
    color: var(--green);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--green-2);
}

img {
    max-width: 100%;
    height: auto;
}

/* ═════════════════════════════════════════════════════════════════════════════
   TYPOGRAPHY
═════════════════════════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1rem;
}

/* ═════════════════════════════════════════════════════════════════════════════
   LAYOUT
═════════════════════════════════════════════════════════════════════════════ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2.5rem;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.section-desc {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.8;
    max-width: 600px;
}

/* ═════════════════════════════════════════════════════════════════════════════
   HEADER & NAVIGATION
═════════════════════════════════════════════════════════════════════════════ */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background var(--transition-medium), backdrop-filter var(--transition-medium);
}

#header.scrolled {
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

/* Bug 18 fix: non-hero pages get solid background immediately via JS adding
   .scrolled on init() when no .hero element is found on the page */

/* Bug 20 fix: keyboard nav focus-visible styles */
.mobile-toggle:focus-visible,
.cart-btn:focus-visible,
.nav-login-btn:focus-visible,
.nav-signout-btn:focus-visible,
.nav-user-icon:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

nav {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    /* Bug B fix: prevent logo from being squeezed by nav-right items */
    flex-shrink: 0;
    min-width: 0;
}

.logo-prompt {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--green);
}

.logo-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.04em;
}

.logo-cursor {
    width: 2px;
    height: 20px;
    background: var(--green);
    animation: blink 1.1s step-end infinite;
    border-radius: 1px;
}

@keyframes blink {
    50% { opacity: 0; }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--green);
    transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    /* Prevent nav-right from growing and squeezing the logo */
    flex-shrink: 0;
}

/* User menu styles */
.nav-user-menu {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

/* When logged in - show on desktop only */
.nav-right.is-logged-in .nav-user-menu {
    display: flex;
}

.nav-user-link {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-user-link:hover {
    color: var(--green);
}

.nav-user-link svg {
    width: 14px;
    height: 14px;
}

.nav-signout-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--muted);
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    padding: 0.35rem 0.75rem;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nav-signout-btn:hover {
    border-color: var(--red);
    color: var(--red);
}

/* Mobile user icon */
.nav-user-icon {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-user-icon:hover {
    color: var(--green);
}

.nav-user-icon svg {
    width: 18px;
    height: 18px;
}

/* Admin link - hidden by default */
.nav-admin-link {
    display: none;
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: var(--green);
    text-decoration: none;
    border: 1px solid var(--border-g);
    padding: 0.35rem 0.75rem;
    border-radius: 3px;
}

/* When logged in as admin - show admin link */
.nav-right.is-admin .nav-admin-link {
    display: block;
}

/* FIX 9: Mobile admin link - class-based toggle instead of inline style */
#mobileAdminLink {
    display: none;
}

#mobileAdminLink.visible {
    display: list-item;
}

/* When logged in - hide login button */
.nav-right.is-logged-in .nav-login-btn {
    display: none;
}

/* Visibility helpers */
.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

.btn-ghost {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.btn-ghost:hover {
    color: var(--white);
    border-color: var(--border-g);
}

.cart-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--black-3);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.5rem 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--white);
    text-decoration: none;
}

.cart-btn:hover {
    border-color: var(--border-g);
    color: var(--green);
}

.nav-cart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-cart-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.nav-cart-icon svg path,
.nav-cart-icon svg circle {
    stroke: currentColor;
}

.cart-count {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--green);
    background: rgba(46, 160, 67, 0.15);
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.cart-count.pulse {
    animation: pulse 0.4s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0.5rem;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.mobile-toggle svg {
    width: 24px;
    height: 24px;
    display: block;
}

.mobile-toggle svg line {
    stroke: currentColor;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black-2);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    /* Animation in @media (max-width: 1024px) block */
}

.mobile-menu.open {
    /* Shown via display:block + max-height in responsive block */
}

.mobile-menu ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.mobile-menu li {
    border-bottom: 1px solid var(--border);
}

.mobile-menu a {
    display: block;
    padding: 1rem 0;
    color: var(--white-2);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

/* FIX 5: Active page link in mobile menu */
.mobile-menu a.active {
    color: var(--green);
}

/* ═════════════════════════════════════════════════════════════════════════════
   BUTTONS
═════════════════════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    border: none;
}

.btn-green {
    background: var(--green);
    color: var(--black);
}

.btn-green:hover {
    background: var(--green-2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(46, 160, 67, 0.3);
    color: var(--black);
}

.btn-green-lg {
    background: var(--green);
    color: var(--black);
    padding: 1rem 2rem;
    font-size: 0.78rem;
}

.btn-green-lg:hover {
    background: var(--green-2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(46, 160, 67, 0.3);
    color: var(--black);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--border-g);
    color: var(--green);
}

.btn-outline-lg {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--border);
    padding: 1rem 2rem;
    font-size: 0.78rem;
}

.btn-outline-lg:hover {
    border-color: var(--border-g);
    color: var(--green);
}

/* ═════════════════════════════════════════════════════════════════════════════
   HERO SECTION
═════════════════════════════════════════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 2.5rem 80px;
    overflow: hidden;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(46, 160, 67, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 160, 67, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(46, 160, 67, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(46, 160, 67, 0.1) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
}

.hero-comment {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--green);
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero h1 em {
    color: var(--green);
    font-style: normal;
    display: block;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-trust {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.trust-item {
    text-align: center;
}

.trust-num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    display: block;
}

.trust-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.5rem;
    display: block;
}

/* ═════════════════════════════════════════════════════════════════════════════
   MARQUEE
═════════════════════════════════════════════════════════════════════════════ */
.marquee-wrap {
    background: var(--black-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.2rem 0;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: 3rem;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}

.marquee-item {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    flex-shrink: 0;
}

.marquee-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.4rem;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ═════════════════════════════════════════════════════════════════════════════
   WHY SECTION
═════════════════════════════════════════════════════════════════════════════ */
.why {
    padding: var(--section-pad) 0;
    position: relative;
}

.why-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    align-items: start;
}

.why-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.why-card {
    background: var(--black-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all var(--transition-medium);
}

.why-card:hover {
    border-color: var(--border-g);
    transform: translateY(-4px);
}

.why-icon {
    width: 48px;
    height: 48px;
    background: rgba(46, 160, 67, 0.1);
    border: 1px solid var(--border-g);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.why-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.why-card p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

/* ═════════════════════════════════════════════════════════════════════════════
   PRODUCTS SECTION
═════════════════════════════════════════════════════════════════════════════ */
.products {
    padding: var(--section-pad) 0;
    background: var(--black-2);
    border-top: 1px solid var(--border);
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 2rem;
}

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

.overview-tile {
    background: var(--black);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.8rem;
    text-decoration: none;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.overview-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green);
    transition: width 0.45s ease;
}

.overview-tile:hover {
    border-color: var(--border-g);
    transform: translateY(-4px);
}

.overview-tile:hover::before {
    width: 100%;
}

.tile-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.tile-icon {
    color: var(--green);
}

.tile-count {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--muted);
    letter-spacing: 0.08em;
}

.tile-category {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 0.5rem;
}

.tile-category::before {
    content: '> ';
    opacity: 0.5;
}

.overview-tile h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.overview-tile p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.tile-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.tile-price {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--white);
}

.tile-arrow {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green);
    transition: transform var(--transition-fast);
}

.overview-tile:hover .tile-arrow {
    transform: translateX(4px);
}

/* ═════════════════════════════════════════════════════════════════════════════
   BUNDLES SECTION
═════════════════════════════════════════════════════════════════════════════ */
.bundles-sec {
    padding: var(--section-pad) 0;
}

.bundles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.bundle-card {
    background: var(--black-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    transition: all var(--transition-medium);
}

.bundle-card:hover {
    border-color: var(--border-g);
    transform: translateY(-4px);
}

.bundle-card.featured {
    border-color: var(--border-g);
    background: linear-gradient(180deg, var(--black-2) 0%, rgba(46, 160, 67, 0.05) 100%);
}

.bundle-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.bundle-card:not(.featured) .bundle-badge {
    background: var(--black-3);
    color: var(--muted);
}

.bundle-card.featured .bundle-badge {
    background: var(--green);
    color: var(--black);
}

.bundle-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.bundle-card > p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.bundle-price {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.bundle-note {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.bundle-list {
    list-style: none;
    margin-bottom: 2rem;
}

.bundle-list li {
    font-size: 0.85rem;
    color: var(--white-2);
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bundle-list li::before {
    content: '✓';
    color: var(--green);
    font-weight: bold;
}

.bundle-list li:last-child {
    border-bottom: none;
}

.btn-bundle {
    display: block;
    width: 100%;
    padding: 1rem;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 6px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn-bundle-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--border);
}

.btn-bundle-outline:hover {
    border-color: var(--border-g);
    color: var(--green);
}

.btn-bundle-green {
    background: var(--green);
    color: var(--black);
    border: 1px solid var(--green);
}

.btn-bundle-green:hover {
    background: var(--green-2);
    transform: translateY(-2px);
}

/* ═════════════════════════════════════════════════════════════════════════════
   TESTIMONIALS
═════════════════════════════════════════════════════════════════════════════ */
.testimonials {
    padding: var(--section-pad) 0;
    background: var(--black-2);
    border-top: 1px solid var(--border);
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.testi-card {
    background: var(--black);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all var(--transition-medium);
}

.testi-card:hover {
    border-color: var(--border-g);
}

.testi-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.testi-text {
    font-size: 0.95rem;
    color: var(--white-2);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testi-avatar {
    width: 44px;
    height: 44px;
    background: var(--green);
    color: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
}

.testi-name {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--white);
    font-size: 0.95rem;
}

.testi-role {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.06em;
}

/* ═════════════════════════════════════════════════════════════════════════════
   NEWSLETTER
═════════════════════════════════════════════════════════════════════════════ */
.newsletter {
    padding: var(--section-pad) 0;
    background: linear-gradient(180deg, var(--black-2) 0%, var(--black) 100%);
    border-top: 1px solid var(--border);
}

.newsletter-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2.5rem;
}

.newsletter h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

.newsletter > p {
    color: var(--muted);
    margin-bottom: 2.5rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.25rem;
    background: var(--black-3);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.newsletter-form input:focus {
    border-color: var(--border-g);
}

.newsletter-form input::placeholder {
    color: var(--muted);
}

.newsletter-form button {
    padding: 1rem 1.5rem;
    background: var(--green);
    color: var(--black);
    border: none;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--green-2);
}

/* ═════════════════════════════════════════════════════════════════════════════
   FAQ & TRUST SECTION
═════════════════════════════════════════════════════════════════════════════ */
.faq-trust-section {
    padding: var(--section-pad) 0;
    background: var(--black);
}

.faq-trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.faq-list {
    margin-top: 2rem;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}

.faq-item-last {
    border-bottom: none;
}

.faq-q {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-q::after {
    content: '+';
    font-family: var(--font-mono);
    color: var(--green);
    font-size: 1.2rem;
    transition: transform var(--transition-fast);
}

.faq-q:hover::after {
    transform: rotate(45deg);
}

.faq-a {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.8;
    margin: 0;
}

.trust-body {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.trust-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.trust-stat-card {
    background: var(--black-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.trust-stat-num {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--green);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.trust-stat-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.trust-guarantee {
    background: rgba(46, 160, 67, 0.05);
    border: 1px solid var(--border-g);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.trust-guarantee-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--green);
    margin-bottom: 0.75rem;
}

.trust-guarantee-text {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

/* ═════════════════════════════════════════════════════════════════════════════
   FINAL CTA
═════════════════════════════════════════════════════════════════════════════ */
.final-cta {
    padding: var(--section-pad) 0;
    background: var(--black-2);
    border-top: 1px solid var(--border);
    text-align: center;
}

.final-cta-inner {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.prompt-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--green);
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.final-cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.final-cta-desc {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.final-cta-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ═════════════════════════════════════════════════════════════════════════════
   FOOTER
═════════════════════════════════════════════════════════════════════════════ */
footer {
    background: var(--black-2);
    border-top: 1px solid var(--border);
    padding: 80px 2.5rem 30px;
}

.footer-grid {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.8;
    margin: 1.5rem 0;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-btn {
    width: 38px;
    height: 38px;
    background: var(--black-3);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: all var(--transition-fast);
}

.social-btn:hover {
    border-color: var(--border-g);
    color: var(--green);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--green);
}

/* Footer Newsletter */
.footer-newsletter {
    max-width: var(--container-max);
    margin: 0 auto 4rem;
    padding: 2.5rem;
    background: var(--black);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.nl-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.nl-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--green);
    margin-bottom: 0.75rem;
}

.nl-label::before {
    content: '// ';
}

.nl-copy h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.nl-sub {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0;
}

.nl-form {
    flex: 1;
    max-width: 400px;
}

.nl-row {
    display: flex;
    gap: 0.75rem;
}

.nl-input {
    flex: 1;
    padding: 0.9rem 1rem;
    background: var(--black-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.nl-input:focus {
    border-color: var(--border-g);
}

.nl-input::placeholder {
    color: var(--muted);
}

.nl-btn {
    padding: 0.9rem 1.25rem;
    background: var(--green);
    color: var(--black);
    border: none;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nl-btn:hover {
    background: var(--green-2);
}

.nl-status {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    margin-top: 0.75rem;
    min-height: 1.2rem;
    display: none;
}

/* Footer Bottom */
.footer-bottom {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
    margin: 0;
}

.footer-bottom p span {
    color: var(--green);
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--green);
}

/* ═════════════════════════════════════════════════════════════════════════════
   BACK TO TOP
═════════════════════════════════════════════════════════════════════════════ */
.back-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--black-3);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    /* Bug 15 fix: raised above cookie banner (z-index:1001) */
    z-index: 1002;
}

.back-top.show {
    opacity: 1;
    visibility: visible;
}

.back-top:hover {
    border-color: var(--border-g);
    color: var(--green);
    transform: translateY(-2px);
}

/* ═════════════════════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
═════════════════════════════════════════════════════════════════════════════ */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--black-3);
    border: 1px solid var(--border-g);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--white);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
    z-index: 10000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

/* ═════════════════════════════════════════════════════════════════════════════
   PAGE HERO (for subpages)
═════════════════════════════════════════════════════════════════════════════ */
.page-hero {
    padding: 120px 2.5rem 60px;
    background: var(--black);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(46, 160, 67, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 160, 67, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.page-hero-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 2rem;
}

.page-hero-comment {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--green);
    opacity: 0.55;
    margin-bottom: 1rem;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--white);
}

.page-hero h1 span {
    color: var(--green);
}

.page-comment {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--green);
    opacity: 0.55;
    margin-bottom: 1rem;
}

/* ═════════════════════════════════════════════════════════════════════════════
   FADE UP ANIMATIONS
═════════════════════════════════════════════════════════════════════════════ */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═════════════════════════════════════════════════════════════════════════════
   CHECKOUT URGENCY
═════════════════════════════════════════════════════════════════════════════ */
.checkout-urgency {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--muted);
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(46, 160, 67, 0.05);
    border-radius: 6px;
}

.checkout-trust-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.checkout-trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    color: var(--muted);
}

/* ═════════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
═════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .why-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .overview-grid,
    .bundles-grid,
    .testi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .faq-trust-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* FIX 4: Hamburger nav on ALL tablets (up to 1024px), not just ≤768px */
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: flex;
        width: 40px;
        height: 40px;
        padding: 0.5rem;
    }

    .mobile-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        background: var(--black-2);
        border-bottom: 1px solid var(--border);
        padding: 1rem 1.5rem;
        box-sizing: border-box;
        overflow: hidden;
        opacity: 0;
        max-height: 0;
        transition: max-height 0.28s ease, opacity 0.2s ease;
    }

    .mobile-menu.open {
        display: block;
        max-height: 600px;
        opacity: 1;
    }

    /* Bug 14 fix: hide desktop admin link on all mobile/tablet sizes.
       Admin access is already in the mobile menu — showing it in nav-right
       on small screens crushes the logo on 320-375px devices. */
    .nav-admin-link {
        display: none !important;
    }

    /* Tablet: hide desktop user menu, show mobile icon when logged in */
    .nav-right .nav-user-menu,
    .nav-right.is-logged-in .nav-user-menu {
        display: none !important;
    }

    .desktop-only {
        display: none !important;
    }

    /* Bug A fix: removed blanket .mobile-only { display:flex !important }
       It was showing the account icon for ALL users including logged-out.
       Each mobile-only element is now shown explicitly only when needed. */

    .nav-right.is-logged-in .nav-user-icon {
        display: flex !important;
    }

    /* Mobile toggle always visible at this breakpoint */
    .mobile-toggle {
        display: flex !important;
    }

    .nav-right {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        flex-shrink: 0;
    }

    .nav-right > * {
        flex-shrink: 0;
    }

    nav {
        padding: 0.75rem 1rem;
        flex-wrap: nowrap;
        width: 100%;
        max-width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        column-gap: 0.5rem;
        box-sizing: border-box;
    }

    #header {
        overflow-x: clip;
    }

    #header,
    #header * {
        box-sizing: border-box;
    }

    .logo {
        min-width: 0;
        flex-shrink: 0;
    }

    .logo-name {
        /* Don't truncate — reduce size so full name always visible */
        white-space: nowrap;
        font-size: 1.1rem;
    }

    .nav-right {
        justify-self: end;
        min-width: 0;
    }

    .mobile-toggle {
        justify-self: end;
        margin-left: 0;
    }

    .mobile-menu .btn {
        display: flex;
        width: 100%;
        margin: 1rem 0 0;
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 60px;
    }

    /* Bug 15 fix: lift back-top above cookie banner height on mobile */
    .back-top {
        bottom: 5.5rem;
        right: 1rem;
    }

    /* Bug 16 fix: restore 44px min touch targets on mobile (iOS/Android HIG) */
    .mobile-toggle {
        width: 44px !important;
        height: 44px !important;
    }
    .cart-btn {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
    }
    .nav-user-icon {
        width: 44px !important;
        height: 44px !important;
    }

    .container {
        padding: 0 1.5rem;
    }

    /* Phone-specific nav sizing tweaks (hamburger/menu already enabled at 1024px) */
    .btn-ghost.nav-login-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.6rem;
        white-space: nowrap;
    }
    
    .cart-btn {
        padding: 0.4rem 0.6rem;
        min-width: 40px;
        min-height: 36px;
    }
    
    .nav-cart-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .cart-count {
        font-size: 0.55rem;
        min-width: 14px;
        padding: 1px 3px;
    }

    .nav-user-icon {
        width: 36px;
        height: 36px;
        color: var(--white);
    }
    
    .nav-admin-link {
        font-size: 0.55rem;
        padding: 0.25rem 0.5rem;
    }

    .mobile-toggle svg {
        width: 20px;
        height: 20px;
    }

    /* Cookie banner */
    #cookieBanner {
        width: 100% !important;
        max-width: 100vw !important;
        padding: 1rem !important;
        gap: 0.85rem !important;
        align-items: flex-start !important;
        box-sizing: border-box !important;
    }

    #cookieBanner p {
        width: 100%;
        margin: 0;
        min-width: 0;
    }
    
    .hero {
        padding: 100px 1.5rem 60px;
    }
    
    .hero-trust {
        gap: 2rem;
    }
    
    .why-cards,
    .overview-grid,
    .bundles-grid,
    .testi-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .nl-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .nl-form {
        max-width: 100%;
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .page-hero {
        padding: 100px 1.5rem 50px;
    }
    
    .page-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
    }
    
    .nl-row {
        flex-direction: column;
    }
    
    .nl-btn {
        width: 100%;
    }
    
    .final-cta-btns {
        flex-direction: column;
        width: 100%;
    }
    
    .final-cta-btns .btn {
        width: 100%;
    }
    
    /* Phone-specific nav-right sizing */
    .nav-right {
        gap: 0.5rem;
    }
    
    .cart-btn {
        padding: 0.4rem 0.6rem;
    }
    
    .cart-count {
        font-size: 0.6rem;
        min-width: 16px;
        padding: 1px 4px;
    }

    /* Mobile menu link padding/hover for phones */
    .mobile-menu ul {
        padding: 0.5rem 0;
    }
    
    .mobile-menu li {
        border-bottom: 1px solid var(--border);
    }
    
    .mobile-menu li:last-child {
        border-bottom: none;
    }
    
    .mobile-menu a {
        display: block;
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        color: var(--white-2);
        transition: all 0.2s ease;
    }
    
    .mobile-menu a:hover,
    .mobile-menu a:active {
        background: rgba(46, 160, 67, 0.08);
        color: var(--green);
        padding-left: 1.75rem;
    }
    
    .mobile-menu .btn {
        margin: 1rem 1.5rem;
        width: calc(100% - 3rem);
    }
}

/* ═════════════════════════════════════════════════════════════════════════════
   PRINT STYLES
═════════════════════════════════════════════════════════════════════════════ */
@media print {
    #header,
    .back-top,
    .toast,
    #cookieBanner {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}

/* All responsive header + cookie + nav fixes are consolidated in the
   @media (max-width: 1024px) block above. No duplicate 768px block needed. */

@media (max-width: 480px) {
    nav {
        padding: 0.75rem 0.875rem;
        column-gap: 0.375rem;
    }

    .logo-prompt {
        font-size: 0.75rem;
    }

    .logo-name {
        font-size: 0.95rem;
    }

    .logo-cursor {
        height: 16px;
    }

    .btn-ghost.nav-login-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.56rem;
    }

    .cart-btn {
        padding: 0.4rem 0.55rem;
    }

    .nav-user-icon,
    .mobile-toggle {
        width: 36px;
        height: 36px;
    }

    #cookieBanner {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    #cookieBanner p {
        font-size: 0.72rem !important;
        line-height: 1.55 !important;
    }

    #cookieBanner #cookieAccept {
        width: 100%;
    }
}
