/* ============================================
   VoxOne Shared Styles
   ============================================ */

/* --------------------------------------------
   CSS Variables
   -------------------------------------------- */
:root {
    /* Colors */
    --color-bg: #242424;
    --color-text: #FFFFFF;
    --color-text-muted: #BBB;
    --color-dark-grey: #242424;
    --color-primary: #e8ca66;
    --color-primary-dark: #c29428;
    --color-yellow: #e8ca66;
    --color-darkYellow: #c29428;
    --color-mediumYellow: #d5a32d;
    --color-brightBlue: #3a8ac4;
    --color-mediumBlue: #2d6a99;
    --color-district-gold: #c49102;
    --color-district-gold-dark: #a67c00;
    --color-alert-red: #dc3545;
    --color-alert-orange: #fd7e14;
    --color-alert-dark: #b02a37;
    --color-voxyalert: #CC0000;
    --color-voxyalert-dark: #990000;
    --color-district-light: rgba(196, 145, 2, 0.15);
    --color-school-light: rgba(232, 202, 102, 0.15);
    --color-border: #444444;
    --color-gray: #555555;
    --color-simulator-bg: #232323 !important;
    
    /* Typography */
    --font-display: 'Merriweather', serif;
    --font-body: 'Jura', sans-serif;
    --font-heading: 'Roboto', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
    
    /* Border Radius */
    --radius: 8px;
    --radius-sm: 6px;

    /* Section Padding - Large (top >= 80px) */
    --sectPadTop_LG: 90px;
    --sectPadBottom_LG: 90px;
    --sectPadLeft_LG: 24px;
    --sectPadRight_LG: 24px;

    /* Section Padding - Standard (top < 80px) */
    --sectPadTop: 50px;
    --sectPadBottom: 50px;
    --sectPadLeft: 24px;
    --sectPadRight: 24px;

    /* Hero Padding */
    --heroPadTop: 120px;
    --heroPadTop_tall: 160px;
    --heroPadBottom: 80px;
    --heroPadBottom_mobile: 60px;
    --heroPadLeft: 10px;
    --heroPadRight: 10px;
}

/* --------------------------------------------
   Reset & Base Styles
   -------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
	background: #000;
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
	margin-bottom: 0px !important;
	padding-bottom: 0px !important;
}

/* Utility: Mobile-only break (hidden on desktop, visible on mobile) */
br.mobile-only {
    display: none;
}
@media (max-width: 768px) {
    br.mobile-only {
        display: block;
    }
}

/* --------------------------------------------
   Navigation
   -------------------------------------------- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #333;
    padding: 0 24px;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links > li {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #FFF;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 17px;
    transition: color 0.2s;
    line-height: 1;
}

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

/* Dropdown Trigger */
.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #FFF;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 17px;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.active {
    color: var(--color-yellow);
}

.nav-dropdown-trigger svg {
    transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-trigger svg,
.nav-dropdown.open .nav-dropdown-trigger svg {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid #333;
    border-radius: var(--radius);
    padding: 12px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    transform: translateX(-50%) translateY(10px);
    margin-top: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #333;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #CCC;
    transition: all 0.2s;
}

.nav-dropdown-menu a:hover {
    background: rgba(232, 202, 102, 0.1);
    color: var(--color-yellow);
}

.nav-dropdown-menu a svg {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.nav-dropdown-menu a:hover svg {
    opacity: 1;
}

.dropdown-item-text {
    display: flex;
    flex-direction: column;
}

.dropdown-item-text span {
    font-size: 15px;
}

.dropdown-item-text small {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.nav-dropdown-menu a:hover small {
    color: #AAA;
}

/* Recommended Badge in Navigation Dropdown */
.nav-recommended-badge {
    font-size: 12px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 2px 4px 2px 6px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--color-district-gold), var(--color-district-gold-dark));
    color: #000;
    font-weight: 400;
    margin-left: auto;
    line-height: 1;
    vertical-align: middle;
    display: inline-block;
    flex-shrink: 0;
}

.nav-dropdown-menu {
    min-width: 240px;
}

.nav-dropdown-menu .dropdown-item-text {
    display: flex;
    flex-direction: column;
}

.nav-dropdown-menu .dropdown-item-text > span:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Dropdown Menu Active State (Option I: Left Border + Background) */
.nav-dropdown-menu a.active {
    border-left: 3px solid var(--color-yellow);
    padding-left: 17px;
    background: rgba(232, 202, 102, 0.15);
    color: var(--color-yellow);
}

.nav-dropdown-menu a.active svg {
    opacity: 1;
}

.nav-dropdown-menu a.active small {
    color: #999;
}

.dropdown-divider {
    height: 1px;
    background: #333;
    margin: 8px 0;
}

.nav-cta {
    background: var(--color-mediumBlue);
    color: white;
    padding: 10px 20px;
    border-radius: 9999px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 17px;
    transition: all 0.2s;
}

.nav-cta:hover {
    background: var(--color-brightBlue);
    transform: translateY(-1px);
}

/* --------------------------------------------
   Mobile Menu Button
   -------------------------------------------- */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #FFF;
}

/* --------------------------------------------
   Mobile Navigation Overlay
   -------------------------------------------- */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #888;
    font-size: 32px;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: color 0.2s;
}

.mobile-nav-close:hover {
    color: #FFF;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 40px;
    width: fit-content;
    margin: auto;
}

.mobile-nav-links > a {
    color: #FFF;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 300;
    transition: color 0.2s;
}

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

.mobile-nav-section {
    text-align: left;
}

.mobile-nav-section-title {
    color: #FFF;
    font-size: 22px;
    font-family: var(--font-heading);
    font-weight: 300;
    margin-bottom: 12px;
}

.mobile-nav-section-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 24px;
    border-left: 2px solid #444;
    margin-left: 8px;
}

.mobile-nav-section-links a {
    font-size: 20px;
    color: #AAA;
    text-decoration: none;
}

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

.mobile-nav-cta {
    margin-top: 0px;
    background: var(--color-mediumBlue);
    padding: 10px 32px;
    border-radius: 9999px;
    font-size: 18px !important;
    color: #FFF !important;
}

.mobile-nav-cta:hover {
    background: var(--color-brightBlue);
    color: #FFF !important;
}

/* --------------------------------------------
   Common Section Styles
   -------------------------------------------- */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 400;
    margin-bottom: 16px;
    color: #FFF;
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* --------------------------------------------
   Decorative Badges (Option 9 - Lines)
   -------------------------------------------- */
.hero-badge,
.cta-badge,
.emergency-badge,
.savings-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--color-yellow);
    padding: 8px 0;
    background: none;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-badge::before,
.hero-badge::after,
.cta-badge::before,
.cta-badge::after,
.emergency-badge::before,
.emergency-badge::after,
.savings-badge::before,
.savings-badge::after {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--color-yellow);
    opacity: 0.5;
}

/* --------------------------------------------
   Buttons
   -------------------------------------------- */
.btn-primary {
    background: var(--color-mediumBlue);
    color: white;
    padding: 16px 32px;
    border-radius: 9999px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--color-brightBlue);
    transform: translateY(-2px);
}

.btn-primary svg {
    transition: transform 0.3s;
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    background: transparent;
    color: #FFF;
    padding: 16px 32px;
    border-radius: 9999px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 18px;
    border: 2px solid #555;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: white;
    color: var(--color-mediumBlue);
    background: white;
    transform: translateY(-2px);
}

/* --------------------------------------------
   Footer
   -------------------------------------------- */
footer {
    background: #000;
    color: white;
    padding: var(--sectPadTop) var(--sectPadRight) var(--sectPadBottom) 24px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: #888;
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 14px;
    font-family: var(--font-heading);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    color: #666;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    color: #AAA;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--color-yellow);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: #666;
    font-size: 14px;
}

/* --------------------------------------------
   Simulator CTA Section
   -------------------------------------------- */

/* Cube CSS Variables */
:root {
    --cube-size: 140px;
    --cube-half: 70px;
    --color-logoOrange: #ee4f03;
}

/* Tablet cube sizing */
@media (min-width: 550px) and (max-width: 768px) {
    :root {
        --cube-size: 120px;
        --cube-half: 60px;
    }
}

/* Mobile cube sizing */
@media (max-width: 549px) {
    :root {
        --cube-size: 100px;
        --cube-half: 50px;
    }
}

.simulator-cta-section {
	background-image: url("../sim/imgs/background-23.png");
	background-repeat: repeat;
	border-radius: 7px;
	padding:42px !important;
	margin-top: 16px;
}

.simulator-cta {
    max-width: 100%;
    margin: 0 auto;
    padding: 60px 40px 60px 60px;
	background-color: var(--color-simulator-bg);
    border: none;
    border-radius: 0;
}

.simulator-cta-inner {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 56px;
    align-items: center;
}

/* Left column: Cube + Inline Controls */
.simulator-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* 3D Cube Styles */
.simulator-scene {
    width: var(--cube-size);
    height: var(--cube-size);
    perspective: 600px;
    cursor: pointer;
}

.simulator-cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    /* JS controls all transforms and animations via requestAnimationFrame */
}

.simulator-face {
    border-radius: 8px;
    position: absolute;
    width: var(--cube-size);
    height: var(--cube-size);
    background-color: #FFF;
    border: 4px solid var(--color-simulator-bg);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow: hidden;
    backface-visibility: hidden;
}

.simulator-face-header {
    background: #000000;
    color: white;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    padding: 5px 0;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.simulator-face-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.simulator-color-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498DB, #2980B9);
    box-shadow: 0 0 0 2px white, 0 0 8px 4px rgba(0, 0, 0, 0.15);
    transition: background 0.4s ease;
}

.simulator-icon-preview {
    font-size: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.simulator-font-preview {
    font-family: 'Georgia', serif;
    font-size: 24px;
    font-style: italic;
    color: #333;
}

.simulator-message-preview {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #333;
    text-align: center;
    line-height: 1.15;
    padding: 4px;
    font-weight: 300;
}

/* Cube face transforms */
.simulator-face.front {
    transform: translateZ(var(--cube-half));
}

.simulator-face.back {
    transform: rotateY(-90deg) translateZ(var(--cube-half));
}

.simulator-face.left {
    transform: rotateY(-180deg) translateZ(var(--cube-half));
}

.simulator-face.right {
    transform: rotateY(-270deg) translateZ(var(--cube-half));
}

/* cubePop animation for swatch interaction feedback */
@keyframes cubePop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.06); }
    100% { transform: scale(1); }
}
.simulator-scene.pop { animation: cubePop 0.35s ease-out; }

/* Inline Controls (color/icon swatches below cube) */
.inline-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 16px;
    padding-bottom: 14px;
    padding-left: 11px;
    padding-right: 11px;
    background: #444;
    border-radius: 8px;
	border: solid 1px #666;
}

.control-group {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.control-label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #FFF;
    user-select: none;
    width: 64px;
    text-align: right;
}

.color-swatches, .icon-swatches {
    display: flex;
    gap: 6px;
}
.control-group:first-child {
    padding-bottom: 3px;
}
.icon-swatches {
    flex-wrap: wrap;
    max-width: 170px;
}

.color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1.5px solid #444;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.color-swatch:hover {
    transform: scale(1.15);
}

.color-swatch.active {
    border-color: #CCCCCC;
}

.icon-swatch {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1.5px solid #444;
    background: #2a2a2a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.icon-swatch:hover {
    transform: scale(1.15);
    background: #3a3a3a;
}

.icon-swatch.active {
    border-color: #CCCCCC;
    background: #2a2a2a;
}

.try-nudge {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    color: #666;
    letter-spacing: 0.05em;
    text-align: center;
    margin-top: -4px;
    opacity: 1;
    transition: opacity 0.4s;
}

.try-nudge.hidden {
    opacity: 0;
}

/* Desktop spacing: extra room below cube and between control rows */
@media (min-width: 550px) {
    .simulator-scene {
        margin-bottom: 11px;
    }
    .control-group:first-child {
        margin-bottom: 2px;
    }
    .try-nudge {
        display: none;
    }
    .simulator-left {
        margin-top: 15px;
    }
}

/* Mobile-only header: badge + h2 above cube */
.simulator-mobile-header {
    display: none;
}

@media (max-width: 549px) {
    .simulator-mobile-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        grid-row: 1;
    }
    .simulator-mobile-header .simulator-badge {
        margin-bottom: 12px;
    }
    .simulator-mobile-header h2 {
        font-family: var(--font-display);
        font-size: 1.35rem;
        font-weight: 400;
        margin-bottom: 0;
    }
    .simulator-left {
        grid-row: 2;
    }
    .simulator-cta-content {
        grid-row: 3;
    }
    /* Hide duplicate badge inside cta-content on mobile */
    .simulator-cta-content .simulator-badge {
        display: none;
    }
}

/* CTA Content */
.simulator-cta-content {
    text-align: left;
}

.simulator-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--color-logoOrange);
    padding: 8px 0;
    background: none;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
}

.simulator-badge::before,
.simulator-badge::after {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--color-logoOrange);
    opacity: 0.5;
}

.simulator-cta-content h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 12px;
}

.simulator-cta-content p {
    color: var(--color-text-muted);
    font-size: 17px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.btn-simulator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-logoOrange);
    color: #FFF;
    padding: 14px 28px;
    border-radius: 9999px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-simulator:hover {
    background: #c44003;
    transform: translateY(-2px);
}

.btn-simulator svg {
    width: 18px;
    height: 18px;
}

/* Simulator CTA Responsive - Tablet */
@media (max-width: 768px) {
    .simulator-cta {
        padding: 48px 32px;
    }

    .simulator-cta-inner {
        gap: 40px;
    }

    .simulator-cta-content h2 {
        font-size: 1.5rem;
    }

    .simulator-face-header {
        font-size: 14px;
        padding: 4px 0;
    }

    .simulator-icon-preview {
        font-size: 50px;
    }

    .simulator-color-circle {
        width: 55px;
        height: 55px;
    }

    .simulator-font-preview {
        font-size: 20px;
    }

    .simulator-message-preview {
        font-size: 13px;
    }
}

/* Simulator CTA Responsive - Mobile (stacked layout) */
@media (max-width: 549px) {
    .simulator-cta-section {
        padding: 0;
    }

    .simulator-cta {
        padding: 40px 24px;
        margin-left: 20px;
        margin-right: 20px;
    }

    .simulator-cta-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .simulator-left {
        margin: 0 auto;
    }

    .simulator-cta-content {
        text-align: center;
        margin-top: -12px;
    }

    .simulator-cta-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .simulator-cta-content h2 {
        font-size: 1.35rem;
        display: none;
    }

    .simulator-badge {
        font-size: 14px;
    }

    .btn-simulator {
        padding: 12px 24px;
        font-size: 15px;
    }

    /* No hover transform on button for mobile */
    .btn-simulator:hover {
        transform: none;
    }

    /* Cube: 140px */
    .simulator-scene {
        width: 140px;
        height: 140px;
    }

    .simulator-face {
        width: 140px;
        height: 140px;
    }

    .simulator-face.front {
        transform: translateZ(70px);
    }

    .simulator-face.back {
        transform: rotateY(-90deg) translateZ(70px);
    }

    .simulator-face.left {
        transform: rotateY(-180deg) translateZ(70px);
    }

    .simulator-face.right {
        transform: rotateY(-270deg) translateZ(70px);
    }

    .simulator-face-header {
        font-size: 16px;
        padding: 5px 0;
    }

    .simulator-icon-preview {
        font-size: 64px;
    }

    .simulator-color-circle {
        width: 70px;
        height: 70px;
    }

    .simulator-font-preview {
        font-size: 24px;
    }

    .simulator-message-preview {
        font-size: 14px;
    }

    /* 40px square color swatches in single row */
    .color-swatch {
        width: 40px;
        height: 40px;
        border-radius: 6px;
    }

    /* No hover scale for mobile touch */
    .color-swatch:hover {
        transform: none;
    }

    /* 40px icon swatches */
    .icon-swatch {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }

    .icon-swatches {
        max-width: 224px;
    }

    /* No hover scale for mobile touch */
    .icon-swatch:hover {
        transform: none;
    }

    .inline-controls {
        padding-left: 5px;
        margin-top: 20px;
    }
}

/* --------------------------------------------
   Hero Video
   -------------------------------------------- */
.hero-video {
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.video-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16/9;
    background: #000;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-caption {
    text-align: center;
    margin-top: 16px;
    color: var(--color-text-muted);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media (max-width: 968px) {
    .hero-video {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }
}

/* --------------------------------------------
   Animations
   -------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --------------------------------------------
   Responsive - Tablet (768px)
   -------------------------------------------- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex !important;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: span 2;
        padding-left: 12px;
    }

    .footer-col:nth-of-type(even) {
        padding-left: 20px;
    }
}

/* --------------------------------------------
   Responsive - Mobile (480px)
   -------------------------------------------- */
@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: span 2;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* --------------------------------------------
   Responsive - Very Small Mobile (320px)
   -------------------------------------------- */
@media (max-width: 320px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: span 1;
    }
}

/* --------------------------------------------
   Trust Section
   -------------------------------------------- */
.trust-section {
    padding: var(--sectPadTop_LG) var(--sectPadRight_LG) var(--sectPadBottom_LG) var(--sectPadLeft_LG);
    background: linear-gradient(180deg, var(--color-bg) 0%, #1e1e1e 100%);
	border-bottom: 2px solid #333;
}

.trust-inner {
    max-width: 960px;
    margin: 0 auto;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 48px;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    border-left: 3px solid var(--color-darkYellow);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 var(--radius) var(--radius) 0;
    opacity: 0;
    transform: translateY(20px);
    transition: background 0.3s;
}

.trust-item.visible {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out;
}

.trust-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* Center a lone card on row 2 (3-item grid) */
.trust-grid:has(> .trust-item:nth-child(3):last-child) > .trust-item:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: 50%;
}

.trust-check {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: rgba(232, 202, 102, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.trust-check svg {
    width: 18px;
    height: 18px;
    color: var(--color-yellow);
}

.trust-text h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 400;
    color: #FFF;
    margin-bottom: 6px;
}

.trust-text p {
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .trust-grid:has(> .trust-item:nth-child(3):last-child) > .trust-item:last-child {
        width: 100%;
    }
}

/* ============================================
   Shared Components (centralized)
   Moved from per-page <style> blocks.
   ============================================ */

/* --------------------------------------------
   Testimonial Section
   Used in: index, demo, districtEdition, features,
   howItWorks, rates, voxyAlert
   -------------------------------------------- */
.testimonial-section {
    padding: var(--sectPadTop_LG) var(--sectPadRight_LG) var(--sectPadBottom_LG) var(--sectPadLeft_LG);
    background: linear-gradient(180deg, #1a1a1a 0%, var(--color-bg) 100%);
	border-bottom: 2px solid #333;
}

.testimonial-section-inner {
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-section .testimonial-card {
    background: #333;
    border-radius: var(--radius);
    padding: 36px;
    border: 1px solid #444;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-section .testimonial-card:hover {
    box-shadow: var(--shadow-lg);
}

.testimonial-section .testimonial-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.testimonial-section .testimonial-logo {
    width: 100px;
    height: 100px;
    background: #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.testimonial-section .testimonial-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-section .testimonial-org h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 400;
    color: #FFF;
    margin-bottom: 2px;
}

.testimonial-section .testimonial-org span {
    font-size: 14px;
    color: var(--color-text-muted);
}

.testimonial-section .testimonial-quote {
    font-size: 17px;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-section .testimonial-author .name {
    font-family: var(--font-heading);
    font-weight: 500;
    color: #FFF;
    font-size: 15px;
    margin-bottom: 2px;
}

.testimonial-section .testimonial-author .title {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.testimonial-section .testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-district-gold-dark), var(--color-district-gold));
    border-radius: var(--radius) var(--radius) 0 0;
}

.testimonial-section .quote-icon {
    color: var(--color-district-gold);
    margin-bottom: 16px;
}

/* --------------------------------------------
   Hero Layout (shared)
   Used in: index, districtEdition, howItWorks,
   payments, rates, schoolEdition, voxyAlert
   -------------------------------------------- */
.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-image {
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* --------------------------------------------
   CTA Section (shared)
   Used in: index, aboutUs, districtEdition,
   features, howItWorks, rates, schoolEdition,
   voxyAlert
   -------------------------------------------- */
.cta-section {
    padding: var(--sectPadTop_LG) var(--sectPadRight_LG) var(--sectPadBottom_LG) var(--sectPadLeft_LG);
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 50%, #1a1a1a 100%);
}

.cta-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 400;
    margin-bottom: 16px;
    color: #FFF;
}

.cta-section > .cta-inner > p {
    color: var(--color-text-muted);
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-inner {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-microcopy {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-top: 10px;
}

/* --------------------------------------------
   Feature Card (shared)
   Used in: index, districtEdition, schoolEdition
   -------------------------------------------- */
.features-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

/* --------------------------------------------
   Edition Card (shared)
   Used in: demo, howItWorks
   -------------------------------------------- */
.edition-card.visible {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out;
}

/* --------------------------------------------
   Browser Mockup (shared)
   Used in: schoolEdition, voxyAlert
   -------------------------------------------- */
.browser-dots {
    display: flex;
    gap: 6px;
}

.mobile-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #1a1a1a;
    border-radius: 0 0 16px 16px;
    z-index: 20;
}

/* --------------------------------------------
   Process Flow (shared)
   Used in: process_flow, three_steps_flow_module
   -------------------------------------------- */
.process-section {
    padding: var(--sectPadTop_LG) var(--sectPadRight_LG) var(--sectPadBottom_LG) var(--sectPadLeft_LG);
    background: linear-gradient(180deg, var(--color-bg) 0%, #1a1a1a 100%);
}

.process-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.process-section .section-header {
    text-align: center;
    margin-bottom: 48px;
}

.process-section .section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 400;
    margin-bottom: 0;
    color: #FFF;
}

.process-flow-desktop {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 12px;
    align-items: stretch;
}

.process-flow-desktop .process-step {
    background: transparent;
    border: 2px solid #444;
    border-radius: var(--radius);
    padding: 28px 20px 24px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s, background 0.4s;
}

.process-flow-desktop .process-step.active {
    transform: translateY(-4px);
    background: #111;
    border-color: #fff;
    box-shadow: var(--shadow-lg), 0 0 20px rgba(196, 145, 2, 0.15);
}

.process-flow-desktop .process-step.active h3 {
    color: #fff;
}

.process-flow-desktop .process-step.active .process-step-badge {
    background: var(--color-district-gold);
    color: #fff;
    border-color: var(--color-district-gold);
}

.process-flow-desktop .process-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 10px;
}

.process-flow-desktop .process-arrow svg {
    width: 28px;
    height: 28px;
    color: #fff;
    opacity: 0.35;
    flex-shrink: 0;
    transition: opacity 0.4s;
}

.process-flow-desktop .process-arrow.active svg {
    opacity: 1;
}

.process-flow-mobile {
    display: none;
}

footer {
	margin-left: -28px;
	margin-right: -28px;
}

@media (max-width: 768px) {
	body {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	section {
		padding-left: 24px !important;
		padding-right: 24px !important;
	}
	.simulator-cta-section {
		margin-left: 0 !important;
		margin-right: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		border-radius: 0;
	}

	footer {
		margin-left: -12px;
		margin-right: -12px;
		width: calc(100% + 24px);
	}
}