/* ============================================================
   EliteGRC – Governance, Risk & Compliance Management Software
   Brand: Green #4CAF50 / #2E7D32, Navy #1B3A6B, White
   Font: Montserrat
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --green-dark:    #1B5E20;
    --green-main:    #2E7D32;
    --green-mid:     #388E3C;
    --green-light:   #4CAF50;
    --green-pale:    #E8F5E9;
    --green-accent:  #69F0AE;
    --navy:          #1B3A6B;
    --navy-dark:     #0F2444;
    --navy-light:    #2A4F8F;
    --white:         #FFFFFF;
    --off-white:     #F8FAFB;
    --light-grey:    #F0F4F0;
    --text-dark:     #1A2332;
    --text-mid:      #3D5166;
    --text-light:    #6B7E8F;
    --border:        #D4E6D4;
    --shadow-sm:     0 2px 8px rgba(27,94,32,0.08);
    --shadow-md:     0 6px 24px rgba(27,94,32,0.12);
    --shadow-lg:     0 16px 48px rgba(27,94,32,0.16);
    --radius:        8px;
    --radius-lg:     16px;
    --radius-xl:     24px;
    --transition:    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── UTILITY ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.text-center { text-align: center; }
.text-white { color: var(--white); }

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 32px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.badge-green { background: var(--green-pale); color: var(--green-dark); }
.badge-white { background: rgba(255,255,255,0.15); color: var(--white); border: 1px solid rgba(255,255,255,0.3); }

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green-light);
    margin-bottom: 12px;
    display: block;
}
.section-label-dark { color: var(--navy); }

h1, h2, h3, h4, h5 { font-weight: 800; line-height: 1.2; color: var(--text-dark); }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p { color: var(--text-mid); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.lead { font-size: 1.15rem; line-height: 1.8; color: var(--text-mid); }

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-primary {
    background: var(--green-main);
    color: var(--white);
    border-color: var(--green-main);
}
.btn-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(46,125,50,0.35);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--white);
}
.btn-outline-green {
    background: transparent;
    color: var(--green-main);
    border-color: var(--green-main);
}
.btn-outline-green:hover {
    background: var(--green-pale);
}
.btn-navy {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}
.btn-navy:hover {
    background: var(--navy-dark);
    border-color: var(--navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(27,58,107,0.35);
}
.btn-lg { padding: 18px 36px; font-size: 1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.82rem; }

/* ── NAVBAR ── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: transparent;
    padding: 20px 0;
    transition: var(--transition);
}
.navbar.scrolled {
    background: var(--white);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.navbar.scrolled .nav-logo-text { color: var(--navy); }
.navbar.scrolled .nav-link { color: var(--text-dark); }
.navbar.scrolled .nav-link:hover { color: var(--green-main); }
.navbar.scrolled .btn-nav-demo {
    background: var(--green-main);
    color: var(--white);
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.nav-logo img { height: 40px; width: auto; }
.nav-logo-text {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.02em;
}
.nav-logo-text span { color: var(--green-accent); }
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link {
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    border-radius: var(--radius);
    transition: var(--transition);
    letter-spacing: 0.02em;
}
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,0.12); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.btn-nav-demo {
    padding: 10px 20px;
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: var(--radius);
    font-size: 0.83rem;
    font-weight: 700;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}
.btn-nav-demo:hover { background: rgba(255,255,255,0.25); }
.btn-nav-cta {
    padding: 10px 22px;
    background: var(--white);
    color: var(--green-dark);
    border-radius: var(--radius);
    font-size: 0.83rem;
    font-weight: 800;
    transition: var(--transition);
    letter-spacing: 0.02em;
}
.btn-nav-cta:hover {
    background: var(--green-pale);
    transform: translateY(-1px);
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--text-dark); }

/* ── HERO ── */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 40%, var(--green-dark) 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 70% 50%, rgba(76,175,80,0.15) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 20% 80%, rgba(105,240,174,0.08) 0%, transparent 60%);
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridDrift 20s linear infinite;
}
@keyframes gridDrift { 0% { transform: translateX(0); } 100% { transform: translateX(60px); } }

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    width: 100%;
}
.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.hero-eyebrow-line {
    width: 40px;
    height: 2px;
    background: var(--green-accent);
}
.hero-eyebrow-text {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green-accent);
}
.hero h1 {
    color: var(--white);
    margin-bottom: 24px;
    font-weight: 900;
}
.hero h1 em {
    font-style: normal;
    color: var(--green-accent);
}
.hero-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
    margin-bottom: 40px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}
.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stat-num {
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: 4px;
}
.hero-stat-num span { color: var(--green-accent); }
.hero-stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.hero-visual {
    position: relative;
}
.hero-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-xl);
    padding: 32px;
    backdrop-filter: blur(16px);
}
.hero-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.hero-card-logo {
    width: 40px;
    height: 40px;
    background: var(--green-main);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-card-logo svg { width: 22px; height: 22px; fill: white; }
.hero-card-title { font-size: 0.9rem; font-weight: 700; color: var(--white); }
.hero-card-sub { font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.hero-metric-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
.hero-metric {
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.08);
}
.hero-metric-val {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: 4px;
}
.hero-metric-val.green { color: var(--green-accent); }
.hero-metric-val.red { color: #FF6B6B; }
.hero-metric-lbl { font-size: 0.7rem; font-weight: 600; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.06em; }
.hero-progress-list { display: flex; flex-direction: column; gap: 12px; }
.hero-progress-item {}
.hero-progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.65);
    font-weight: 600;
}
.hero-progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 32px;
    overflow: hidden;
}
.hero-progress-fill {
    height: 100%;
    border-radius: 32px;
    background: linear-gradient(90deg, var(--green-mid), var(--green-accent));
    animation: progressIn 1.5s ease forwards;
    transform-origin: left;
}
@keyframes progressIn { from { width: 0 !important; } }

/* ── TRUST BAR ── */
.trust-bar {
    background: var(--navy-dark);
    padding: 24px 0;
}
.trust-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.65);
    font-size: 0.82rem;
    font-weight: 600;
}
.trust-item svg { width: 18px; height: 18px; fill: var(--green-light); flex-shrink: 0; }

/* ── PROBLEM SECTION ── */
.problem-section { background: var(--off-white); }
.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.problem-list { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.problem-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--green-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.problem-item:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.problem-icon {
    width: 44px;
    height: 44px;
    background: var(--green-pale);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.problem-icon svg { width: 22px; height: 22px; fill: var(--green-dark); }
.problem-item h4 { font-size: 0.95rem; margin-bottom: 4px; color: var(--navy); }
.problem-item p { font-size: 0.85rem; margin: 0; color: var(--text-light); }
.problem-visual {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: var(--radius-xl);
    padding: 40px;
    color: white;
    position: relative;
    overflow: hidden;
}
.problem-visual::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(76,175,80,0.2), transparent 70%);
    border-radius: 50%;
}
.grc-pillars { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; position: relative; z-index: 1; }
.pillar-card {
    padding: 24px 16px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.15);
}
.pillar-card.governance { background: rgba(27,94,32,0.4); }
.pillar-card.risk { background: rgba(183,28,28,0.35); }
.pillar-card.compliance { background: rgba(27,58,107,0.5); }
.pillar-icon { font-size: 2rem; margin-bottom: 8px; }
.pillar-name { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: white; }
.pillar-desc { font-size: 0.7rem; color: rgba(255,255,255,0.6); margin-top: 6px; }

/* ── FEATURES ── */
.features-intro { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green-main), var(--green-light));
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--green-light); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-num {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--green-light);
    text-transform: uppercase;
    margin-bottom: 16px;
}
.feature-icon {
    width: 52px;
    height: 52px;
    background: var(--green-pale);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}
.feature-card:hover .feature-icon { background: var(--green-main); }
.feature-icon svg { width: 26px; height: 26px; fill: var(--green-dark); transition: var(--transition); }
.feature-card:hover .feature-icon svg { fill: white; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 12px; color: var(--navy); }
.feature-card p { font-size: 0.875rem; margin: 0; }

/* ── SCREENSHOTS ── */
.screenshots-section { background: var(--navy-dark); }
.screenshots-header { text-align: center; margin-bottom: 56px; }
.screenshots-header h2 { color: var(--white); }
.screenshots-header p { color: rgba(255,255,255,0.6); }
.screenshots-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.tab-btn {
    padding: 10px 22px;
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.65);
    transition: var(--transition);
}
.tab-btn.active, .tab-btn:hover {
    background: var(--green-main);
    border-color: var(--green-main);
    color: var(--white);
}
.screenshot-display {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 32px 80px rgba(0,0,0,0.4);
    background: var(--white);
}
.screenshot-display img { width: 100%; display: block; }
.screenshot-caption {
    text-align: center;
    margin-top: 20px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    font-style: italic;
}

/* ── LICENSING ── */
.licensing-section { background: var(--off-white); }
.licensing-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.licensing-header {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-main) 100%);
    padding: 48px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.licensing-header::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.licensing-header h2 { color: white; margin-bottom: 8px; }
.licensing-header p { color: rgba(255,255,255,0.75); font-size: 1rem; margin: 0; }
.licensing-body { padding: 48px; }
.licensing-includes h3 { margin-bottom: 24px; color: var(--navy); }
.licensing-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 40px;
}
.licensing-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: var(--green-pale);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.licensing-item-icon {
    width: 36px;
    height: 36px;
    background: var(--green-main);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.licensing-item-icon svg { width: 18px; height: 18px; fill: white; }
.licensing-item h4 { font-size: 0.9rem; color: var(--navy); margin-bottom: 2px; }
.licensing-item p { font-size: 0.8rem; color: var(--text-light); margin: 0; }
.licensing-cta { text-align: center; padding-top: 32px; border-top: 1px solid var(--border); }
.licensing-cta p { margin-bottom: 20px; font-size: 0.9rem; }

/* ── CREDIBILITY ── */
.credibility-section { background: var(--white); }
.credibility-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.cred-card {
    text-align: center;
    padding: 36px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--off-white);
    transition: var(--transition);
}
.cred-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.cred-num {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--green-main);
    line-height: 1;
    margin-bottom: 8px;
}
.cred-num span { color: var(--navy); }
.cred-label { font-size: 0.85rem; font-weight: 600; color: var(--text-mid); }
.products-strip {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 48px;
}
.product-chip {
    padding: 8px 20px;
    background: var(--navy);
    color: white;
    border-radius: 32px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* ── BLOG ── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}
.blog-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-card-img {
    height: 200px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--green-dark) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-card-img-icon { font-size: 4rem; opacity: 0.3; }
.blog-card-category {
    position: absolute;
    top: 16px; left: 16px;
}
.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 12px;
}
.blog-meta-dot { width: 4px; height: 4px; background: var(--text-light); border-radius: 50%; }
.blog-card h3 { font-size: 1rem; line-height: 1.4; margin-bottom: 12px; color: var(--navy); }
.blog-card p { font-size: 0.85rem; margin-bottom: 20px; flex: 1; }
.blog-read-more {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--green-main);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.blog-read-more:hover { gap: 10px; color: var(--green-dark); }
.blog-read-more svg { width: 14px; height: 14px; fill: currentColor; }

/* ── CONTACT ── */
.contact-section { background: var(--off-white); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 64px;
    align-items: start;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info .lead { margin-bottom: 40px; }
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.contact-detail-icon {
    width: 44px;
    height: 44px;
    background: var(--green-pale);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-detail-icon svg { width: 20px; height: 20px; fill: var(--green-dark); }
.contact-detail h4 { font-size: 0.85rem; margin-bottom: 2px; color: var(--navy); }
.contact-detail p { font-size: 0.85rem; margin: 0; }
.contact-form {
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    letter-spacing: 0.04em;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--text-dark);
    background: var(--off-white);
    transition: var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green-main);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(46,125,50,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success {
    display: none;
    text-align: center;
    padding: 32px;
    color: var(--green-dark);
}
.form-success svg { width: 48px; height: 48px; fill: var(--green-main); margin: 0 auto 16px; display: block; }

/* ── FOOTER ── */
.footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.7);
    padding: 72px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img { height: 50px; margin-bottom: 20px; }
.footer-brand p { font-size: 0.875rem; line-height: 1.8; color: rgba(255,255,255,0.55); margin-bottom: 24px; }
.footer-social { display: flex; gap: 12px; }
.social-link {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: rgba(255,255,255,0.6);
}
.social-link:hover { background: var(--green-main); border-color: var(--green-main); color: white; }
.social-link svg { width: 16px; height: 16px; fill: currentColor; }
.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
}
.footer-link:hover { color: var(--green-light); padding-left: 4px; }
.footer-bottom {
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.35); margin: 0; }
.footer-bottom a { color: var(--green-light); }
.footer-bottom a:hover { text-decoration: underline; }

/* ── PAGE HERO ── */
.page-hero {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--green-dark) 100%);
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 80% at 50% 50%, rgba(76,175,80,0.12), transparent);
}
.page-hero h1 { color: white; position: relative; z-index: 1; margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.65); max-width: 600px; margin: 0 auto; position: relative; z-index: 1; }
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.breadcrumb a { color: var(--green-accent); }
.breadcrumb-sep { color: rgba(255,255,255,0.25); }

/* ── BLOG POST PAGE ── */
.blog-post-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 64px;
    padding: 80px 0;
}
.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.blog-post-content h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 24px; }
.blog-post-content h2 { font-size: 1.5rem; margin: 40px 0 16px; }
.blog-post-content h3 { font-size: 1.2rem; margin: 28px 0 12px; }
.blog-post-content p { font-size: 1rem; line-height: 1.85; margin-bottom: 1.4rem; }
.blog-post-content ul, .blog-post-content ol {
    margin: 16px 0 24px 24px;
}
.blog-post-content li { font-size: 1rem; line-height: 1.8; color: var(--text-mid); margin-bottom: 8px; }
.blog-post-content ul li { list-style: disc; }
.blog-post-content ol li { list-style: decimal; }
.blog-post-content blockquote {
    border-left: 4px solid var(--green-main);
    padding: 16px 24px;
    background: var(--green-pale);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 24px 0;
    font-style: italic;
    color: var(--green-dark);
}
.sidebar-widget {
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 28px;
}
.sidebar-widget h4 {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.sidebar-cta {
    background: linear-gradient(135deg, var(--green-dark), var(--green-main));
    color: white;
    border-color: transparent;
}
.sidebar-cta h4 { color: white; border-color: rgba(255,255,255,0.2); }
.sidebar-cta p { font-size: 0.875rem; color: rgba(255,255,255,0.75); margin-bottom: 20px; }

/* ── MOBILE NAV ── */
@media (max-width: 968px) {
    .hamburger { display: flex; }

    /* Desktop nav-actions hidden on mobile — buttons live inside drawer instead */
    .nav-actions { display: none !important; }

    /* Nav links hidden by default; shown when drawer opens */
    .nav-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0; right: -100%;
        width: min(300px, 88vw);
        height: 100vh;
        background: var(--navy-dark);
        padding: 0;
        z-index: 1000;
        box-shadow: -8px 0 40px rgba(0,0,0,0.5);
        gap: 0;
        overflow-y: auto;
        transition: right 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        list-style: none;
    }

    /* Slide in when open */
    .nav-menu.open { right: 0; }

    /* Dim overlay behind drawer */
    .nav-menu.open::before {
        content: "";
        position: fixed;
        inset: 0;
        left: calc(-100vw + min(300px, 88vw));
        background: rgba(0,0,0,0.55);
        z-index: -1;
    }

    /* Drawer header with close button */
    .nav-menu::after {
        content: "";
        display: block;
        height: 68px;
        flex-shrink: 0;
        order: -1;
    }

    .nav-menu li {
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .nav-menu li:last-child { border-bottom: none; }

    .nav-link {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 16px 28px;
        font-size: 1.05rem;
        font-weight: 600;
        color: rgba(255,255,255,0.85) !important;
        text-decoration: none;
        min-height: 56px;
        transition: background 0.2s, color 0.2s;
    }
    .nav-link:hover,
    .nav-link.active {
        background: rgba(255,255,255,0.07);
        color: var(--green-main) !important;
    }
    .nav-link.active {
        border-left: 3px solid var(--green-main);
        padding-left: 25px;
    }

    /* Mobile CTA buttons inside the drawer */
    .nav-mobile-ctas {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        padding: 20px 24px 32px;
        margin-top: auto;
        border-top: 1px solid rgba(255,255,255,0.1) !important;
        border-bottom: none !important;
    }

    .btn-nav-mobile {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 14px 20px;
        font-size: 0.95rem;
        font-weight: 700;
        border-radius: var(--radius);
        text-align: center;
        min-height: 50px;
    }

    /* Mobile-only CTAs shown; desktop nav-actions hidden */
    .nav-mobile-ctas { display: flex; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .credibility-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .section { padding: 64px 0; }
    .hero-content { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { display: none; }
    .hero-stats { gap: 24px; }
    .problem-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .licensing-items { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .grc-pillars { grid-template-columns: 1fr; }
    .credibility-grid { grid-template-columns: 1fr 1fr; }
    .trust-bar-inner { justify-content: center; }
    .blog-post-layout { grid-template-columns: 1fr; }
    .licensing-body { padding: 28px; }
    .contact-form { padding: 28px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .footer-grid { grid-template-columns: 1fr; }
    .credibility-grid { grid-template-columns: 1fr; }
}

/* ── ANIMATIONS ── */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── ALERT / NOTICE ── */
.notice {
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: none;
}
.notice-success { background: var(--green-pale); color: var(--green-dark); border: 1px solid var(--border); display: block; }
.notice-error { background: #FFEBEE; color: #C62828; border: 1px solid #FFCDD2; display: block; }

/* ============================================================
   PRICING / PLANS — added for SaaS + Free + Enterprise tiers
   ============================================================ */

/* ── Pricing hero banner ── */
.pricing-hero-banner {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--green-dark) 100%);
    padding: 48px;
    border-radius: var(--radius-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 64px;
}
.pricing-hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(76,175,80,0.12), transparent);
}
.pricing-hero-banner h2 { color: var(--white); position: relative; z-index: 1; margin-bottom: 12px; }
.pricing-hero-banner p  { color: rgba(255,255,255,0.65); max-width: 600px; margin: 0 auto; position: relative; z-index: 1; }

/* ── Tier cards grid ── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: start;
}
.pricing-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
    border-color: var(--green-main);
    box-shadow: var(--shadow-md);
}
.pricing-card-head {
    padding: 28px 24px 24px;
    border-bottom: 1px solid var(--border);
}
.pricing-tier-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 10px;
    display: block;
}
.pricing-card.featured .pricing-tier-label { color: var(--green-main); }
.pricing-card-head h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: 8px; }
.pricing-card-head p  { font-size: 0.82rem; color: var(--text-light); margin: 0; line-height: 1.55; }

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 16px 0 0;
}
.pricing-price-main {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--navy);
    line-height: 1;
    letter-spacing: -0.03em;
}
.pricing-price-main.green { color: var(--green-main); }
.pricing-price-period {
    font-size: 0.82rem;
    color: var(--text-light);
    font-weight: 600;
}
.pricing-price-note {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 4px;
    display: block;
}

/* Featured badge */
.featured-badge {
    background: var(--green-main);
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    padding: 7px 0;
}

/* Card body */
.pricing-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pricing-modules {
    margin-bottom: 20px;
}
.pricing-modules-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 10px;
    display: block;
}
.pricing-module-chip {
    display: inline-block;
    padding: 4px 10px;
    background: var(--green-pale);
    color: var(--green-dark);
    border-radius: 32px;
    font-size: 0.72rem;
    font-weight: 600;
    margin: 3px 3px 3px 0;
}
.pricing-module-chip.all {
    background: var(--navy);
    color: var(--white);
}

.pricing-features { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; flex: 1; }
.pricing-feature {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.83rem;
    color: var(--text-mid);
}
.pricing-feature svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; }
.pricing-feature.yes svg { fill: var(--green-main); }
.pricing-feature.no  svg { fill: var(--text-light); }
.pricing-feature.no span { color: var(--text-light); }

/* CTA inside card */
.pricing-cta {
    margin-top: auto;
}
.btn-free {
    background: var(--green-pale);
    color: var(--green-dark);
    border-color: var(--border);
}
.btn-free:hover {
    background: var(--green-pale2, #c8e6c9);
    border-color: var(--green-main);
    transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

/* ── Hosting badge strip ── */
.hosting-strip {
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 40px;
}
.hosting-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-mid);
    font-weight: 600;
}
.hosting-item svg { width: 16px; height: 16px; fill: var(--green-main); }

/* ── Bundle comparison table ── */
.bundle-table { width: 100%; border-collapse: collapse; margin-top: 48px; }
.bundle-table th {
    background: var(--navy);
    color: var(--white);
    padding: 14px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: left;
    letter-spacing: 0.04em;
}
.bundle-table th:first-child { border-radius: var(--radius) 0 0 0; }
.bundle-table th:last-child  { border-radius: 0 var(--radius) 0 0; }
.bundle-table td {
    padding: 12px 16px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-mid);
    vertical-align: middle;
}
.bundle-table tr:nth-child(even) td { background: var(--off-white); }
.bundle-table td:first-child { font-weight: 700; color: var(--navy); }
.bundle-table .check { color: var(--green-main); font-weight: 800; font-size: 1rem; }
.bundle-table .dash  { color: var(--text-light); }

/* ── Hero pricing teaser (homepage) ── */
.pricing-teaser {
    background: var(--off-white);
}
.pricing-teaser-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 48px;
}
.ptier-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.ptier-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.ptier-card.highlight { border-color: var(--green-main); }
.ptier-card.highlight::before {
    content: 'Most Popular';
    position: absolute;
    top: 0; left: 0; right: 0;
    background: var(--green-main);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 0;
    text-align: center;
}
.ptier-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 6px;
    margin-top: 8px;
}
.ptier-card.highlight .ptier-name { margin-top: 20px; }
.ptier-tagline {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.5;
}
.ptier-price {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--navy);
    line-height: 1.1;
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.ptier-price.free { color: var(--green-main); }
.ptier-period {
    font-size: 0.72rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 16px;
    display: block;
    margin-top: 3px;
}

/* ── Start Free button ── */
.btn-start-free {
    background: var(--green-main);
    color: var(--white);
    border-color: var(--green-main);
}
.btn-start-free:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(46,125,50,0.35);
}

/* Responsive pricing */
@media (max-width: 1024px) {
    .pricing-grid       { grid-template-columns: repeat(2, 1fr); }
    .pricing-teaser-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .pricing-grid       { grid-template-columns: 1fr; }
    .pricing-teaser-grid { grid-template-columns: 1fr; }
    .hosting-strip      { gap: 16px; }
}

/* ── 6-column pricing grid (Free + 3 Pro + Business split) ── */
.pricing-grid-6 {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}
.pricing-grid-6 > * {
    max-width: none;
    min-width: 0;
}
.pricing-grid-6 .pricing-card-head h3 { font-size: 1.05rem; }
.pricing-grid-6 .pricing-card-head p  { font-size: 0.78rem; }
.pricing-grid-6 .pricing-card-head    { padding: 22px 18px 18px; }
.pricing-grid-6 .pricing-card-body    { padding: 18px; }
.pricing-grid-6 .pricing-tier-label   { font-size: 0.64rem; }

/* Pro group bracket label */
.pro-group-label {
    grid-column: span 3;
    text-align: center;
    padding: 8px 0 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green-main);
    border-bottom: 2px solid var(--green-light);
    margin-bottom: 4px;
}
.pro-group-wrapper {
    grid-column: 2 / 5; /* columns 2-4 */
    display: contents;
}

/* Responsive: stack to 2 cols on tablet, 1 col on mobile */
@media (max-width: 1200px) {
    .pricing-grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .pricing-grid-6 { grid-template-columns: 1fr; }
}

/* Comparison table — 6 columns */
.bundle-table-6 { width: 100%; border-collapse: collapse; margin-top: 48px; }
.bundle-table-6 th {
    background: var(--navy);
    color: var(--white);
    padding: 12px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.03em;
    vertical-align: bottom;
}
.bundle-table-6 th:first-child { text-align: left; border-radius: var(--radius) 0 0 0; }
.bundle-table-6 th:last-child  { border-radius: 0 var(--radius) 0 0; }
.bundle-table-6 th.pro-col     { background: var(--green-dark); }
.bundle-table-6 th.pro-first   { background: var(--green-dark); border-radius: 0; }
.bundle-table-6 th.pro-last    { background: var(--green-dark); border-radius: 0; }
.bundle-table-6 td {
    padding: 10px 12px;
    font-size: 0.82rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-mid);
    text-align: center;
    vertical-align: middle;
}
.bundle-table-6 tr:nth-child(even) td { background: var(--off-white); }
.bundle-table-6 td:first-child { font-weight: 700; color: var(--navy); text-align: left; }
.bundle-table-6 .check { color: var(--green-main); font-weight: 800; font-size: 1rem; }
.bundle-table-6 .dash  { color: var(--text-light); }
.bundle-table-6 td.pro-col { background: rgba(46,125,50,0.04); }
.bundle-table-6 tr:nth-child(even) td.pro-col { background: rgba(46,125,50,0.08); }
/* Pro group header spanning cell */
.pro-group-header {
    background: var(--green-dark) !important;
    color: var(--white) !important;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    padding: 7px 0;
    border-bottom: none !important;
}

/* ── 5-column homepage pricing teaser ── */
@media (max-width: 1100px) {
    .pricing-teaser-grid,
    [style*="grid-template-columns:repeat(5,1fr)"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
@media (max-width: 720px) {
    .pricing-teaser-grid,
    [style*="grid-template-columns:repeat(5,1fr)"] {
        grid-template-columns: 1fr 1fr !important;
    }
}
@media (max-width: 480px) {
    .pricing-teaser-grid,
    [style*="grid-template-columns:repeat(5,1fr)"] {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================
   MOBILE RESPONSIVENESS — comprehensive overhaul
   Target: 320px minimum, tested at 375px (iPhone SE),
           390px (iPhone 14), 414px (Plus), 768px (tablet)
   ============================================================ */

/* ── Touch targets ── */
a, button, .btn, .tab-btn, .nav-link, summary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
/* Override for inline text links */
p a, li a, .footer-link, .blog-read-more, .breadcrumb a {
    min-height: unset;
    display: inline;
}

/* ── Viewport meta enforced via CSS ── */
html { overflow-x: hidden; }
body { overflow-x: hidden; }
/* Scoped max-width — only media elements and explicit containers, NOT grid items */
img, video, iframe, canvas, svg:not(.icon) { max-width: 100%; height: auto; }
table { table-layout: auto; }

/* ── Prevent horizontal scroll from wide elements ── */
.hero-card        { overflow: hidden; }
.widget-card      { overflow: hidden; }
.pricing-grid-6   { overflow-x: auto; }
.bundle-table-6   { min-width: 600px; }

/* ════ BREAKPOINT: max-width 1024px (small laptop / tablet landscape) ════ */
@media (max-width: 1024px) {
    h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
    h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }

    /* Pricing bundle detail — stack on tablet */
    .pricing-grid-6 { grid-template-columns: repeat(3, 1fr); }

    /* Trust bar - allow wrapping */
    .trust-bar-inner { gap: 0; }
    .trust-item      { padding: 10px 16px; }

    /* Bundle combo grid */
    div[style*="grid-template-columns:repeat(4,1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ════ BREAKPOINT: max-width 768px (tablet portrait / large mobile) ════ */
@media (max-width: 768px) {

    /* Global spacing */
    .section    { padding: 52px 0; }
    .section-sm { padding: 36px 0; }
    .container  { padding: 0 18px; }

    /* Typography scale */
    h1 { font-size: 1.9rem; line-height: 1.15; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.15rem; }
    .lead { font-size: 1rem; }

    /* ── Navbar ── */
    .navbar { padding: 14px 0; }
    .navbar.scrolled { padding: 10px 0; }
    .nav-logo-text { font-size: 1.1rem; }
    .hamburger { display: flex; }
    /* nav-actions always hidden on mobile — CTAs live inside drawer */
    .nav-actions { display: none !important; }
    /* Drawer inherits 968px rules — width tweak only */
    .nav-menu { width: min(280px, 88vw); }

    /* ── Hero ── */
    .hero { padding-top: 72px; min-height: auto; padding-bottom: 48px; }
    .hero-content { grid-template-columns: 1fr; gap: 32px; }
    .hero-visual { display: none; }
    .hero h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
    .hero-desc { font-size: 0.97rem; }
    .hero-actions { flex-direction: column; gap: 12px; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-stats { gap: 20px; flex-wrap: wrap; }
    .hero-stat-num { font-size: 1.6rem; }

    /* ── Trust bar ── */
    .trust-bar-inner { flex-direction: column; align-items: flex-start; gap: 0; }
    .trust-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); width: 100%; padding: 10px 0; }

    /* ── Problem / GRC pillars ── */
    .problem-grid { grid-template-columns: 1fr; gap: 36px; }
    .grc-pillars  { grid-template-columns: 1fr; gap: 12px; }
    .problem-visual { padding: 28px 20px; }

    /* ── Features grid ── */
    .features-grid { grid-template-columns: 1fr; gap: 16px; }
    .features-intro { margin-bottom: 36px; }

    /* ── Screenshots ── */
    .screenshots-tabs { gap: 6px; }
    .tab-btn { padding: 8px 14px; font-size: 0.78rem; }

    /* ── Licensing ── */
    .licensing-items  { grid-template-columns: 1fr; }
    .licensing-body   { padding: 24px 20px; }
    .licensing-header { padding: 32px 24px; }

    /* ── Credibility ── */
    .credibility-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .cred-card { padding: 24px 16px; }
    .cred-num  { font-size: 2.2rem; }

    /* ── Blog grid ── */
    .blog-grid { grid-template-columns: 1fr; gap: 20px; }
    .blog-post-layout { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }

    /* ── Contact ── */
    .contact-grid       { grid-template-columns: 1fr; gap: 36px; }
    .contact-form       { padding: 24px 20px; }
    .contact-form-wrap  { padding: 24px 20px; }
    .form-row           { grid-template-columns: 1fr; }

    /* ── Footer ── */
    .footer { padding: 48px 0 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: 1 / -1; }

    /* ── Pricing ── */
    .pricing-grid   { grid-template-columns: 1fr; }
    .pricing-grid-6 { grid-template-columns: 1fr; }
    .pricing-teaser-grid { grid-template-columns: 1fr 1fr; }
    .hosting-strip  { flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; }

    /* Bundle detail alternating grid — stack on mobile */
    div[style*="grid-template-columns:1fr 1.1fr"] {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
    }
    /* Undo row-reverse on mobile (always stack same way) */
    div[style*="flex-direction:row-reverse"] {
        flex-direction: column !important;
    }

    /* Comparison table — horizontal scroll */
    .bundle-table, .bundle-table-6 { font-size: 0.76rem; }
    .bundle-table th, .bundle-table-6 th { padding: 10px 8px; font-size: 0.72rem; }
    .bundle-table td, .bundle-table-6 td { padding: 8px; }

    /* Bundle combo */
    div[style*="grid-template-columns:repeat(4,1fr)"] {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Upgrade path buttons */
    div[style*="justify-content:center"][style*="flex-wrap:wrap"] {
        flex-direction: column;
        align-items: center;
    }

    /* Page hero */
    .page-hero { padding: 100px 0 48px; }
    .page-hero h1 { font-size: 1.7rem; }
}

/* ════ BREAKPOINT: max-width 480px (most phones) ════ */
@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .section    { padding: 40px 0; }
    .section-sm { padding: 28px 0; }

    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.35rem; }

    /* Hero stats stack */
    .hero-stats { flex-direction: column; gap: 12px; padding-top: 20px; }

    /* Feature cards */
    .feature-card { padding: 24px 18px; }
    .feature-icon { width: 44px; height: 44px; }

    /* Pricing */
    .pricing-card-head { padding: 20px 16px 16px; }
    .pricing-card-body { padding: 16px; }
    .pricing-price-main { font-size: 1.7rem; }
    .ptier-price { font-size: 1.3rem; }
    .pricing-teaser-grid { grid-template-columns: 1fr; }
    div[style*="grid-template-columns:repeat(5,1fr)"] { grid-template-columns: 1fr !important; }

    /* Footer single column */
    .footer-grid { grid-template-columns: 1fr; }
    .credibility-grid { grid-template-columns: 1fr 1fr; }
    .products-strip { gap: 8px; }
    .product-chip { font-size: 0.75rem; padding: 6px 14px; }

    /* Blog post layout */
    .blog-post-content h1 { font-size: 1.5rem; }
    .blog-card-body { padding: 18px; }

    /* Trust bar */
    .trust-item { font-size: 0.78rem; }

    /* CTA sections */
    .btn-lg { padding: 14px 24px; font-size: 0.9rem; }

    /* FAQ */
    details summary { padding: 16px 18px; font-size: 0.88rem; }

    /* Pricing module chips wrap nicely */
    .pricing-module-chip { font-size: 0.68rem; padding: 3px 8px; }
}

/* ════ BREAKPOINT: max-width 375px (iPhone SE, small Android) ════ */
@media (max-width: 375px) {
    .container { padding: 0 12px; }
    h1 { font-size: 1.45rem; }
    h2 { font-size: 1.2rem; }
    .nav-logo-text { font-size: 1rem; }
    .nav-logo img  { height: 32px; }
    .hero-stat-num { font-size: 1.4rem; }
    .btn { padding: 12px 20px; font-size: 0.85rem; }
    .btn-lg { padding: 13px 20px; font-size: 0.88rem; }
    .cred-num { font-size: 1.9rem; }
}

/* ── Smooth scrolling & focus visible for accessibility ── */
:focus-visible {
    outline: 2px solid var(--green-main);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ── Prevent text overflow on small screens ── */
h1, h2, h3, h4, p {
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}


/* ============================================================
   MOBILE DRAWER — header strip and close button
   ============================================================ */

/* Hide mobile-only elements on desktop */
.nav-drawer-header,
.nav-mobile-ctas { display: none; }

/* Mobile drawer header */
@media (max-width: 968px) {
    .nav-drawer-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        height: 64px;
        background: rgba(255,255,255,0.04);
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
        flex-shrink: 0;
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .nav-drawer-logo {
        font-size: 1.15rem;
        font-weight: 800;
        color: var(--white);
        letter-spacing: -0.01em;
    }

    .nav-drawer-close {
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.15);
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.3rem;
        line-height: 1;
        color: rgba(255,255,255,0.7);
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
        padding: 0;
        flex-shrink: 0;
    }
    .nav-drawer-close:hover {
        background: rgba(255,255,255,0.18);
        color: var(--white);
    }

    /* Make nav-menu a full flex column so CTAs stick to bottom */
    .nav-menu {
        display: flex !important;
        flex-direction: column;
    }

    /* The link items grow to fill space */
    .nav-menu > li:not(.nav-drawer-header):not(.nav-mobile-ctas) {
        flex-shrink: 0;
    }

    /* Push the CTA block to the bottom of the drawer */
    .nav-mobile-ctas {
        margin-top: auto;
    }
}

/* ============================================================
   PRICING TEASER — ptier-grid (5 cards, clean responsive)
   ============================================================ */

/* Desktop: 5 equal columns, no extra grid children */
.ptier-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-top: 12px !important;
}

/* Ensure grid children are never constrained by the mobile wildcard */
.ptier-grid > .ptier-card {
    max-width: none;
    min-width: 0;
}

/* "Pro Plans" label sits above the middle 3 cards — outside the grid */
.ptier-pro-label-wrap {
    display: flex;
    /* Align to the middle 3 of 5 columns: offset by 1/5 width on each side */
    margin: 0 calc(100% / 5) 0 calc(100% / 5);
    justify-content: center;
    padding: 6px 0 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}
.ptier-pro-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green-main);
}

/* ── Tablet (≤960px): 2 columns, 3 rows ── */
@media (max-width: 960px) {
    .ptier-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .ptier-pro-label-wrap { display: none; }
}

/* ── Mobile (≤640px): single column ── */
@media (max-width: 640px) {
    .ptier-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .ptier-card {
        padding: 22px 18px;
    }
    .ptier-price { font-size: 1.8rem; }
    .ptier-period { font-size: 0.78rem; margin-bottom: 12px; }
    .ptier-name  { font-size: 1.05rem; }
    .ptier-tagline { font-size: 0.82rem; }
    .ptier-card .btn { width: 100%; justify-content: center; }
}

/* ── Small phones (≤400px) ── */
@media (max-width: 400px) {
    .ptier-card { padding: 18px 14px; }
    .ptier-price { font-size: 1.5rem; }
}

/* ============================================================
   BUNDLE SAVINGS — responsive fix
   ============================================================ */

.bundle-savings-wrap {
    padding: 40px 48px;
}

/* Desktop: 3 equal columns */
.bundle-combos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 860px;
    margin: 0 auto;
}

.bundle-combo-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
}

/* Tablet (≤768px): 3 columns still work but reduce padding */
@media (max-width: 768px) {
    .bundle-savings-wrap {
        padding: 28px 20px;
    }
    .bundle-combos-grid {
        gap: 12px;
    }
    .bundle-combo-card {
        padding: 20px 14px;
    }
}

/* Mobile (≤600px): stack into single column */
@media (max-width: 600px) {
    .bundle-combos-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        max-width: 340px;
    }
    .bundle-combo-card {
        padding: 24px 20px;
    }
}

/* Small phones (≤400px) */
@media (max-width: 400px) {
    .bundle-savings-wrap {
        padding: 24px 16px;
    }
}
