/* =========================================================================
   NIVIX - Smart Mobility | Brand Stylesheet
   Dixit Gadi Wale Mobility Pvt Ltd

   Design direction: "Metered Current." NIVIX sells metered electricity
   (weekly-billed subscriptions, per-km range, 9-second battery swaps) inside
   a culture that already reads meters everywhere (auto-rickshaws, electricity
   bills). Every real number on this site -- range, swap time, price, cities
   live -- is set in a mono/tabular face so it reads like a live readout, not
   a marketing bullet. A single glowing "current line" (amber -> volt
   gradient stroke) draws itself in beside the hero heading on load, and a
   small charge-node dot echoes it next to every other section's eyebrow as
   that section scrolls into view -- a literal wire, standing in for both
   "electric current" and "your route." Flat colour fields, hairline borders and a
   restrained shadow are used instead of the soft-pastel-gradient-everywhere
   look this template used before, on purpose.
   ========================================================================= */

/* ---------- 1. Brand tokens ---------- */
:root {
    /* Named per the design brief, not generic "primary/secondary" */
    --ink: #12151C;              /* Asphalt Ink -- dark surface + body text on paper */
    --ink-soft: #454B58;         /* muted ink for secondary text on paper */
    --paper: #F6F4EE;            /* Paper -- warm light surface */
    --paper-dim: #EDEAE1;        /* slightly deeper paper for zebra sections */
    --volt: #C6FF3D;             /* Volt -- the current line / live states */
    --volt-ink: #23330A;         /* text-safe dark used ON volt fills */
    --volt-dark: #3D7A0F;        /* darker Volt for text/icons directly on paper (Volt itself is too light) */
    --meter: #FF7A1A;            /* Meter Amber -- primary CTA / gauge accent */
    --meter-dark: #C85A0A;
    --transit: #0B63CE;          /* Nivix Blue -- sampled from the logo mark's gradient core; links / on-paper accent */
    --transit-bright: #2E7FFF;   /* brightened Nivix Blue for icon glyphs/fills on dark Ink surfaces */
    --signal: #E8483A;           /* Signal Red -- alerts only */
    --line: rgba(18, 21, 28, .12);
    --line-on-dark: rgba(246, 244, 238, .16);

    --font-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
    --font-body: 'Work Sans', 'Segoe UI', sans-serif;
    --font-mono: 'Space Mono', 'Consolas', monospace;

    --radius-sm: 4px;
    --radius-md: 10px;
    --radius-lg: 18px;
    --radius-pill: 999px;

    --shadow-sm: 0 2px 0 rgba(18, 21, 28, .06);
    --shadow-md: 6px 6px 0 rgba(18, 21, 28, .08);
    --shadow-lg: 10px 10px 0 rgba(18, 21, 28, .10);

    --navbar-height: 76px;

    /* legacy aliases: a handful of pages still have a hardcoded
       var(--nivix-xxx) in an inline style="" attribute (Contact.aspx's
       social icons, Dashboard.aspx's empty-state icon, etc.) -- keep these
       resolving to sensible new-system colours rather than silently
       falling back to transparent/inherit. */
    --nivix-blue: var(--transit);
    --nivix-blue-light: var(--transit);
    --nivix-blue-tint: var(--transit);
    --nivix-green: var(--meter);
    --nivix-green-light: var(--meter);
    --nivix-dark: var(--ink);
    --nivix-ink: var(--ink);
    --nivix-gray: var(--ink-soft);
    --nivix-bg-soft: var(--paper-dim);
    --nivix-white: var(--paper);
}

/* ---------- 2. Base ---------- */
html {
    scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--ink);
    background-color: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
}

a {
    text-decoration: none;
    color: var(--transit);
    transition: color .18s ease, background-color .18s ease, transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

img {
    max-width: 100%;
    height: auto;
}

:focus-visible {
    outline: 2px solid var(--meter);
    outline-offset: 2px;
}

::selection {
    background: var(--volt);
    color: var(--volt-ink);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--ink);
    color: var(--paper);
    padding: .6rem 1rem;
    z-index: 2000;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
    left: 0;
}

section {
    padding: 5.5rem 0;
}
@media (max-width: 767.98px) {
    section {
        padding: 3.25rem 0;
    }
}

/* Mono numerals: every real stat on the site opts into this explicitly via
   .meter-num, rather than every heading/body number, so it stays meaningful. */
.meter-num {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(90deg, var(--transit-bright) 0%, var(--volt) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bg-soft {
    background-color: var(--paper-dim);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: .74rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--transit);
    margin-bottom: 1rem;
}
.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--transit-bright);
    flex-shrink: 0;
}

.section-title {
    font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.65rem);
    margin-bottom: .75rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.section-lead {
    color: var(--ink-soft);
    font-size: 1.05rem;
    max-width: 640px;
}

.section-header {
    margin-bottom: 3rem;
}
.section-header.text-center {
    margin-left: auto;
    margin-right: auto;
}
.section-header.text-center .section-lead {
    margin-left: auto;
    margin-right: auto;
}
.section-header.text-center .eyebrow::before {
    display: none;
}

/* ---------- 3. Buttons ---------- */
.btn-nivix-cta,
.btn-nivix-outline,
.btn-nivix-white,
.btn-nivix-ghost {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .92rem;
    padding: .7rem 1.5rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}

.btn-nivix-cta {
    color: var(--ink);
    background: var(--transit-bright);
    box-shadow: var(--shadow-md);
}
.btn-nivix-cta:hover, .btn-nivix-cta:focus {
    color: var(--ink);
    background: var(--volt);
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 rgba(18, 21, 28, .12);
}

.btn-nivix-outline {
    color: var(--ink);
    background: transparent;
    border-color: var(--ink);
}
.btn-nivix-outline:hover, .btn-nivix-outline:focus {
    color: var(--ink);
    background: var(--paper-dim);
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-md);
}

.btn-nivix-white {
    color: var(--ink);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}
.btn-nivix-white:hover, .btn-nivix-white:focus {
    color: var(--ink);
    background: var(--volt);
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, .18);
}

.btn-nivix-ghost {
    color: var(--paper);
    background: transparent;
    border-color: var(--line-on-dark);
}
.btn-nivix-ghost:hover, .btn-nivix-ghost:focus {
    color: var(--ink);
    background: var(--paper);
    border-color: var(--paper);
    transform: translate(-2px, -2px);
}

.badge-slogan {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .04em;
    color: var(--volt);
    background: rgba(198, 255, 61, .1);
    border: 1px solid rgba(198, 255, 61, .4);
    padding: .4rem 1rem;
    border-radius: var(--radius-pill);
}

/* ---------- 4. Navbar ---------- */
.navbar-nivix {
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
    background: transparent;
    transition: background-color .3s ease, box-shadow .3s ease, padding .3s ease, border-color .3s ease;
    border-bottom: 1px solid transparent;
}
.navbar-nivix .nav-link {
    color: var(--paper);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .92rem;
    padding: .5rem 1rem !important;
    position: relative;
}
.navbar-nivix .nav-link::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: .2rem;
    height: 2px;
    background: var(--volt);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.navbar-nivix .nav-link:hover::after,
.navbar-nivix .nav-link.active::after {
    transform: scaleX(1);
}
.navbar-nivix .nav-link.active {
    color: var(--volt);
}

.navbar-nivix.scrolled {
    background-color: rgba(18, 21, 28, 0.96);
    box-shadow: var(--shadow-sm);
    padding-top: .6rem;
    padding-bottom: .6rem;
    border-bottom-color: var(--line-on-dark);
}

/* Pages without a dark hero band right under the navbar keep it solid always */
.navbar-solid {
    background-color: rgba(18, 21, 28, 0.96);
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--line-on-dark);
}

.navbar-toggler {
    border: none;
    box-shadow: none !important;
    padding: .25rem .5rem;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28246,244,238,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--ink);
        margin-top: 1rem;
        padding: 1.25rem;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
    }
    .navbar-collapse .nav-link {
        color: var(--paper) !important;
    }
    .navbar-collapse .nav-link.active {
        color: var(--volt) !important;
    }
    .btn-nivix-cta {
        justify-content: center;
        margin-top: .75rem;
    }
}

/* Brand logo lockup (navbar + footer) -- the real NIVIX logo file, per the
   user's explicit request to use it wherever possible over the redesign's
   SVG wordmark. It's a JPEG with a baked-in near-white background and its
   own fixed blue/green colours that don't match the new palette, so it
   sits on its own light "chip" (paper surface, hairline border) rather
   than directly on the dark navbar/footer -- keeps the logo's real colours
   intact and legible instead of an awkward white box floating on ink. */
.brand-logo {
    display: inline-flex;
    align-items: center;
}
.brand-logo-chip {
    display: inline-flex;
    align-items: center;
    background: var(--paper);
    padding: .4rem .7rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-on-dark);
    transition: border-color .2s ease, transform .2s ease;
}
.brand-logo:hover .brand-logo-chip {
    border-color: var(--meter);
    transform: translate(-1px, -1px);
}
.brand-logo-img {
    height: 28px;
    width: auto;
    display: block;
}
@media (min-width: 992px) {
    .brand-logo-img {
        height: 32px;
    }
}
.footer-chip {
    padding: .5rem .85rem;
}
.footer-chip .brand-logo-img {
    height: 34px;
}
.brand-x {
    color: var(--volt);
}

/* ---------- 5. Hero ---------- */
.hero {
    position: relative;
    background: var(--ink);
    color: var(--paper);
    padding-top: calc(var(--navbar-height) + 4.5rem);
    padding-bottom: 6rem;
    overflow: hidden;
    isolation: isolate;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line-on-dark) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-on-dark) 1px, transparent 1px);
    background-size: 42px 42px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 20% 30%, black, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 20% 30%, black, transparent 75%);
    z-index: -1;
    opacity: .5;
}
.hero h1 {
    color: var(--paper);
    font-size: clamp(2.3rem, 1.7rem + 2.6vw, 3.9rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}
.hero .lead {
    color: rgba(246, 244, 238, .78);
    font-size: 1.1rem;
    max-width: 480px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
}

/* Odometer-style stat readout -- every number here is real (range, swap
   time, cities live), set in mono tabular figures like a live meter. */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 2.75rem;
    border: 1px solid var(--line-on-dark);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.hero-stats > div {
    flex: 1 1 0;
    min-width: 110px;
    padding: .9rem 1rem;
    border-right: 1px solid var(--line-on-dark);
}
.hero-stats > div:last-child {
    border-right: none;
}
.hero-stats .stat-num {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--volt);
    line-height: 1.1;
}
.hero-stats .stat-label {
    font-family: var(--font-mono);
    font-size: .68rem;
    color: rgba(246, 244, 238, .6);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.hero-visual {
    position: relative;
}
.hero-visual .media-frame {
    aspect-ratio: 1 / 1;
    max-width: 520px;
    margin: 0 auto;
    border: 1px solid var(--line-on-dark);
}

/* Hero carousel (multi-slide rotating banner) */
.hero-carousel .carousel-item.hero {
    padding-top: calc(var(--navbar-height) + 3.5rem);
    padding-bottom: 4.5rem;
}
.hero-slide-inner {
    min-height: 460px;
    display: flex;
    align-items: center;
}
.hero-carousel .carousel-indicators {
    bottom: 1.25rem;
}
.hero-carousel .carousel-indicators [data-bs-target] {
    width: 22px;
    height: 3px;
    border-radius: 0;
    background-color: rgba(246, 244, 238, .3);
    border: none;
    opacity: 1;
    transition: background-color .25s ease;
}
.hero-carousel .carousel-indicators .active {
    background-color: var(--volt);
}
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 3.5rem;
    opacity: 0;
    transition: opacity .25s ease;
}
.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next {
    opacity: .85;
}
.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(246, 244, 238, .1);
    border: 1px solid var(--line-on-dark);
    border-radius: 50%;
    padding: .55rem;
}
@media (max-width: 767.98px) {
    .hero-slide-inner {
        min-height: 0;
    }
    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        display: none;
    }
}

/* Hero video panels */
.media-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    background: transparent;
}
.media-frame video.is-missing {
    display: none;
}
.video-mute-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(18, 21, 28, .55);
    color: var(--paper);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    backdrop-filter: blur(3px);
}

/* ---------- 5b. Current line -- the signature element ----
   A wire that draws itself in beside the hero heading on page load (once,
   CSS-only, no scroll math) -- the "current" the rest of the site's
   meter-readouts are measuring. It runs from the eyebrow badge down to the
   stat readout, where it terminates in a lit node. Every other page/section
   echoes the same idea at zero cost via .charge-node's dot below. */
.current-line {
    display: none;
    position: absolute;
    left: 0;
    top: .5rem;
    bottom: 6px;
    width: 2px;
}
@media (min-width: 992px) {
    .current-line {
        display: block;
    }
    /* Makes room for the wire inside the column's own box -- kept
       positive/inside rather than a negative offset, since .hero has
       overflow:hidden for its background grid mask and would clip
       anything positioned outside the column's bounds. */
    .hero-current-col {
        padding-left: 2.25rem;
    }
}
.current-line .wire-rail {
    position: absolute;
    inset: 0;
    width: 2px;
    background: var(--line-on-dark);
}
.current-line .wire-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(var(--meter), var(--volt));
    transform: scaleY(0);
    transform-origin: top;
    animation: currentDrawIn 1.1s .5s cubic-bezier(.2, .7, .2, 1) forwards;
}
.current-line .wire-fill::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--volt);
    transform: translateX(-50%);
    box-shadow: 0 0 0 5px rgba(198, 255, 61, .18);
}
@keyframes currentDrawIn {
    to {
        transform: scaleY(1);
    }
}
@media (prefers-reduced-motion: reduce) {
    .current-line .wire-fill {
        animation: none;
        transform: scaleY(1);
    }
}

/* Applied alongside .eyebrow (which already owns ::before for its inline
   dot), so the section's own charge indicator uses ::after instead. */
.charge-node {
    position: relative;
}
.charge-node::after {
    content: "";
    position: absolute;
    left: -2.05rem;
    top: .35rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--paper-dim);
    border: 2px solid var(--ink-soft);
    opacity: .35;
    transition: background .3s ease, border-color .3s ease, opacity .3s ease, box-shadow .3s ease;
}
.charge-node.is-charged::after {
    background: var(--volt);
    border-color: var(--volt);
    opacity: 1;
    box-shadow: 0 0 0 4px rgba(198, 255, 61, .18);
}
@media (max-width: 991.98px) {
    .charge-node::after {
        display: none;
    }
}

/* ---------- 5c. Generic page header band ---------- */
.page-header {
    position: relative;
    background: var(--ink);
    color: var(--paper);
    padding-top: calc(var(--navbar-height) + 3.5rem);
    padding-bottom: 3.75rem;
    overflow: hidden;
    isolation: isolate;
}
.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line-on-dark) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-on-dark) 1px, transparent 1px);
    background-size: 42px 42px;
    -webkit-mask-image: radial-gradient(ellipse 60% 80% at 85% 20%, black, transparent 75%);
    mask-image: radial-gradient(ellipse 60% 80% at 85% 20%, black, transparent 75%);
    z-index: -1;
    opacity: .5;
}
.page-header h1 {
    color: var(--paper);
    font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.9rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}
.page-header .lead {
    color: rgba(246, 244, 238, .78);
    max-width: 620px;
}
.breadcrumb-nivix {
    font-family: var(--font-mono);
    font-size: .78rem;
    color: rgba(246, 244, 238, .6);
}
.breadcrumb-nivix a {
    color: var(--volt);
    font-weight: 600;
}

/* ---------- 6. Media frame (image placeholder pattern) ---------- */
.media-frame {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    box-shadow: none;
}
.media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}
.media-frame img.is-missing {
    display: none;
}
.media-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    color: rgba(246, 244, 238, .7);
    text-align: center;
    padding: 1rem;
}
.media-fallback i {
    font-size: 2.5rem;
    color: var(--volt);
}
.media-fallback span {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: .75rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    opacity: .85;
}

/* ---------- 7. Icon cards ---------- */
.icon-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 2rem 1.6rem;
    height: 100%;
    box-shadow: none;
    border: 1px solid var(--line);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.icon-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-md);
    border-color: var(--ink);
}
.icon-card .icon-wrap {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: var(--meter);
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}
/* Rotate the three brand accents across each grid of icon-cards / testimonial
   avatars (amber / blue / lime) instead of one flat colour -- these cards
   always sit alone inside their own .col-*, so the rotation targets the
   column, not the card. */
.row > *:nth-child(3n+2) .icon-wrap,
.row > *:nth-child(3n+2) .testimonial-avatar {
    color: var(--transit-bright);
}
.row > *:nth-child(3n) .icon-wrap,
.row > *:nth-child(3n) .testimonial-avatar {
    color: var(--volt);
}
.icon-card h3, .icon-card h4 {
    font-size: 1.1rem;
    margin-bottom: .6rem;
}
.icon-card p {
    color: var(--ink-soft);
    font-size: .93rem;
    margin-bottom: 0;
}

/* Brand meaning breakdown NI / VI / X */
.meaning-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 2.25rem 1.75rem;
    text-align: center;
    height: 100%;
    box-shadow: none;
    border: 1px solid var(--line);
    border-top: 3px solid var(--meter);
    transition: transform .2s ease, box-shadow .2s ease;
}
.meaning-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-md);
}
/* NB: .meaning-card sits alone inside its own .col-md-4, so :nth-child on
   .meaning-card itself never matches past 1 -- target the column instead. */
.row > *:nth-child(2) .meaning-card {
    border-top-color: var(--volt);
}
.row > *:nth-child(3) .meaning-card {
    border-top-color: var(--transit);
}
.meaning-letter {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 2.75rem;
    line-height: 1;
    color: var(--ink);
    margin-bottom: .75rem;
    display: block;
}
.meaning-card h4 {
    font-size: 1.05rem;
    margin-bottom: .5rem;
}
.meaning-card p {
    color: var(--ink-soft);
    font-size: .92rem;
    margin-bottom: 0;
}

/* ---------- 8. Product cards ---------- */
.product-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: none;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
    border: 1px solid var(--line);
}
.product-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: var(--shadow-lg);
}
.product-card .media-frame {
    border-radius: 0;
    aspect-ratio: 4 / 3;
    box-shadow: none;
}
.product-card-body {
    padding: 1.6rem;
}
.product-card-body h3 {
    font-size: 1.2rem;
    margin-bottom: .35rem;
}
.product-card-body .product-tag {
    font-family: var(--font-mono);
    color: var(--transit);
    font-weight: 700;
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.spec-list {
    list-style: none;
    padding: 0;
    margin: 1.1rem 0 1.4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem .5rem;
}
.spec-list li {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-family: var(--font-mono);
    font-size: .82rem;
    color: var(--ink-soft);
}
.spec-list i {
    color: var(--meter);
}

.callout-strip {
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius-md);
    padding: 2.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border: 1px solid var(--line-on-dark);
}
.callout-strip h3 {
    color: var(--paper);
    margin-bottom: .35rem;
}
.callout-strip p {
    color: rgba(246, 244, 238, .75);
    margin-bottom: 0;
}
.callout-num {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 2.6rem;
    color: var(--volt);
}

/* ---------- 8b. Compact app + features banner ---------- */
.brand-word-lg {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem);
    line-height: 1;
    text-transform: uppercase;
}
.brand-word-lg .text-nivix-blue {
    color: var(--ink);
}
.brand-word-lg .app-suffix {
    color: var(--ink-soft);
    font-weight: 500;
    text-transform: none;
}
.tagline-green {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--meter-dark);
    margin: .5rem 0 0;
}

.quick-feature {
    display: flex;
    align-items: center;
    gap: .9rem;
}
.quick-feature .qf-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: var(--ink);
    color: var(--volt);
}
.quick-feature h6 {
    margin-bottom: .15rem;
    font-size: .98rem;
}
.quick-feature span {
    color: var(--ink-soft);
    font-size: .85rem;
}

.tagline-bar {
    background: var(--meter);
    color: var(--ink);
    text-align: center;
    padding: 1.4rem 1rem;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1rem, .9rem + .5vw, 1.3rem);
    letter-spacing: .01em;
    text-transform: uppercase;
}

/* ---------- 9. App download ---------- */
.app-badge {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius-sm);
    padding: .7rem 1.4rem;
    border: 1px solid var(--line-on-dark);
    transition: transform .2s ease, background-color .2s ease;
}
.app-badge:hover {
    color: var(--ink);
    background: var(--volt);
    transform: translate(-2px, -2px);
}
.app-badge i {
    font-size: 1.5rem;
}
.app-badge .badge-lines {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.app-badge .badge-small {
    font-size: .66rem;
    opacity: .75;
}
.app-badge .badge-big {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .98rem;
}

/* ---------- 10. Values / process ---------- */
.value-pill {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.4rem;
    box-shadow: none;
    border: 1px solid var(--line);
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}
.value-pill:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-md);
}
.value-pill .vp-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: var(--paper-dim);
    color: var(--meter-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.value-pill h6 {
    margin-bottom: .3rem;
}
.value-pill p {
    color: var(--ink-soft);
    font-size: .88rem;
    margin-bottom: 0;
}

.timeline-step {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 2.25rem;
    border-left: 2px dashed var(--line);
    margin-left: 1.1rem;
}
.timeline-step:last-child {
    border-color: transparent;
    padding-bottom: 0;
}
.timeline-step::before {
    content: "";
    position: absolute;
    left: -11px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--meter);
    box-shadow: 0 0 0 5px rgba(255, 122, 26, .14);
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    color: var(--ink);
    font-size: .95rem;
}
.check-list i {
    color: var(--meter);
    margin-top: .2rem;
}

.feature-row + .feature-row {
    margin-top: 4.5rem;
}
@media (max-width: 767.98px) {
    .feature-row + .feature-row {
        margin-top: 3rem;
    }
}
.feature-row .media-frame {
    aspect-ratio: 4 / 3;
}
.feature-row .icon-wrap-lg {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: var(--volt);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
/* .feature-row instances are true siblings (each one *is* a .row), so
   nth-of-type can target them directly -- rotate the same amber / blue /
   lime rhythm used everywhere else instead of an unbroken run of lime. */
.feature-row:nth-of-type(3n+2) .icon-wrap-lg {
    color: var(--transit-bright);
}
.feature-row:nth-of-type(3n) .icon-wrap-lg {
    color: var(--meter);
}

/* ---------- 11. Forms ---------- */
.form-nivix .form-label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .85rem;
    color: var(--ink);
}
.form-nivix .form-control,
.form-nivix .form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--line);
    padding: .7rem .9rem;
    font-size: .95rem;
    background-color: #fff;
    color: var(--ink);
}
.form-nivix .form-control:focus,
.form-nivix .form-select:focus {
    border-color: var(--meter);
    box-shadow: 0 0 0 3px rgba(255, 122, 26, .15);
}
.form-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--line);
    box-shadow: none;
}
@media (max-width: 575.98px) {
    .form-card {
        padding: 1.5rem;
    }
}

.info-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: none;
    border: 1px solid var(--line);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.info-card .ic-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: var(--volt);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.info-card h6 {
    margin-bottom: .25rem;
}
.info-card p, .info-card a {
    color: var(--ink-soft);
    font-size: .92rem;
    margin-bottom: 0;
}

/* Rider Dashboard "nothing to do yet" states -- same dark-badge icon language
   as .icon-card .icon-wrap, but standalone (not nested in a grid card), plus
   an .info-card-based branch-contact block replacing plain stacked <p> text. */
.state-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: var(--meter);
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}
.state-icon.is-success {
    color: var(--volt-dark);
}

.branch-info-card {
    max-width: 420px;
    margin: 1.75rem auto 0;
    text-align: left;
}
.branch-contact-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .3rem 0;
    color: var(--ink);
    text-decoration: none;
    font-size: .92rem;
}
.branch-contact-row:hover {
    color: var(--transit);
}
.branch-contact-row i {
    color: var(--transit);
    width: 1.1em;
    text-align: center;
    flex-shrink: 0;
}
.branch-contact-row .contact-phone {
    font-family: var(--font-mono);
    font-weight: 700;
    margin-left: auto;
}

/* Rider Dashboard "visit your branch" page (Draft agreement waiting on the branch). */
.visit-ref {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: .75rem 1rem;
    background: var(--paper);
    min-width: 170px;
}
.visit-ref-label,
.visit-label {
    display: block;
    font-family: var(--font-mono);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: .35rem;
}
.visit-ref-label {
    margin-bottom: 0;
}
.visit-ref-value {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink);
}
.visit-ref-date {
    font-weight: 600;
    color: var(--ink);
}

.visit-steps {
    list-style: none;
    display: flex;
    margin: 2rem 0 0;
    padding: 0;
}
.visit-steps li {
    flex: 1;
    position: relative;
    text-align: center;
    padding: 0 .35rem;
}
.visit-steps li + li::before {
    content: "";
    position: absolute;
    top: 18px;
    right: 50%;
    width: 100%;
    height: 2px;
    background: var(--line);
}
.visit-steps li.done + li::before {
    background: var(--volt-dark);
}
.visit-steps .vs-dot {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--line);
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-weight: 700;
    margin-bottom: .5rem;
}
.visit-steps li.done .vs-dot {
    background: var(--volt-dark);
    border-color: var(--volt-dark);
    color: #fff;
}
.visit-steps li.current .vs-dot {
    background: var(--meter);
    border-color: var(--meter);
    color: #fff;
    box-shadow: 0 0 0 5px rgba(255, 122, 26, .18);
}
.visit-steps li.failed .vs-dot {
    background: var(--signal);
    border-color: var(--signal);
    color: #fff;
}
.visit-steps .vs-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .9rem;
    color: var(--ink);
}
.visit-steps li:not(.done):not(.current):not(.failed) .vs-title {
    color: var(--ink-soft);
}
.visit-steps .vs-sub {
    font-size: .78rem;
    color: var(--ink-soft);
    margin-top: .15rem;
}
@media (max-width: 767.98px) {
    /* Vertical timeline on phones -- five columns are too narrow to read. */
    .visit-steps {
        flex-direction: column;
        gap: 1rem;
    }
    .visit-steps li {
        text-align: left;
        display: grid;
        grid-template-columns: 38px 1fr;
        column-gap: .85rem;
        padding: 0;
    }
    .visit-steps li + li::before {
        top: -1rem;
        left: 18px;
        right: auto;
        width: 2px;
        height: 1rem;
    }
    .visit-steps .vs-dot {
        grid-row: span 2;
        margin-bottom: 0;
    }
    .visit-steps .vs-title {
        align-self: end;
    }
}

.visit-card {
    padding: 1.75rem;
}
.visit-branch-name {
    font-size: 1.45rem;
    margin: .5rem 0 .35rem;
}
.visit-branch-name i {
    color: var(--meter);
}
.visit-address {
    font-style: normal;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 1.1rem;
}
.visit-tip {
    margin-top: 1rem;
    padding: .7rem .9rem;
    border-radius: var(--radius-md);
    background: var(--paper);
    font-size: .88rem;
    color: var(--ink-soft);
}
.visit-tip i {
    color: var(--meter);
    margin-right: .25rem;
}

.visit-checklist {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}
.visit-checklist li {
    display: flex;
    gap: .85rem;
    padding: .7rem 0;
    border-top: 1px solid var(--line);
}
.visit-checklist li:first-child {
    border-top: 0;
    padding-top: 0;
}
.visit-checklist i {
    font-size: 1.25rem;
    color: var(--transit);
    flex-shrink: 0;
    width: 1.5rem;
    text-align: center;
}
.visit-checklist strong {
    display: block;
    font-size: .95rem;
}
.visit-checklist span {
    display: block;
    font-size: .85rem;
    color: var(--ink-soft);
}

.visit-howto {
    margin: 1rem 0 0;
    padding-left: 1.25rem;
}
.visit-howto li {
    padding: .35rem 0;
    font-size: .92rem;
    color: var(--ink-soft);
}
.visit-howto li strong {
    color: var(--ink);
}

.visit-media {
    aspect-ratio: 16 / 9;
    min-height: 0;
}
.visit-card .product-tag {
    font-family: var(--font-mono);
    color: var(--transit);
    font-weight: 700;
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.visit-chip {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .2rem .6rem;
    border-radius: var(--radius-pill);
    background: var(--paper-dim);
    font-size: .8rem;
    color: var(--ink);
}
.visit-chip i {
    color: var(--volt-dark);
}
.visit-vehicle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-size: .92rem;
}

.visit-price-table {
    width: 100%;
    margin-top: .75rem;
    font-size: .92rem;
}
.visit-price-table td {
    padding: .4rem 0;
    color: var(--ink-soft);
}
.visit-price-table td:last-child {
    text-align: right;
    font-family: var(--font-mono);
    color: var(--ink);
    white-space: nowrap;
}
.visit-price-table small {
    color: var(--ink-soft);
}
.visit-price-table .visit-total td {
    border-top: 2px solid var(--ink);
    padding-top: .7rem;
    font-weight: 700;
    color: var(--ink);
    font-size: 1.05rem;
}
.visit-note {
    margin-top: .9rem;
    font-size: .85rem;
    color: var(--ink-soft);
}

.visit-details {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: .45rem 1rem;
    margin: .9rem 0 0;
    font-size: .92rem;
}
.visit-details dt {
    font-weight: 500;
    color: var(--ink-soft);
}
.visit-details dd {
    margin: 0;
    font-weight: 600;
    color: var(--ink);
    word-break: break-word;
}
.visit-doc {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem 0;
    font-size: .9rem;
}
.visit-doc i {
    color: var(--transit);
}
.visit-pill {
    margin-left: auto;
    padding: .15rem .55rem;
    border-radius: var(--radius-pill);
    background: #FEF3C7;
    color: #92400E;
    font-size: .74rem;
    font-weight: 600;
}
.visit-pill.ok {
    background: #E6F4D7;
    color: var(--volt-dark);
}

.map-placeholder {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    min-height: 320px;
    background: var(--paper-dim);
}
.map-placeholder iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
    display: block;
}

/* ---------- 12. CTA band ---------- */
.cta-band {
    position: relative;
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius-lg);
    padding: 3.5rem 2rem;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid var(--line-on-dark);
}
.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 15%, rgba(198, 255, 61, .12), transparent 55%);
    z-index: -1;
}
.cta-band h2 {
    color: var(--paper);
    text-transform: uppercase;
}
.cta-band p {
    color: rgba(246, 244, 238, .78);
    max-width: 560px;
    margin: 0 auto 1.75rem;
}

/* ---------- 13. Footer ---------- */
.site-footer {
    background: var(--ink);
    color: rgba(246, 244, 238, .7);
    border-top: 1px solid var(--line-on-dark);
}
.footer-mission {
    margin: 1rem 0 1.25rem;
    color: rgba(246, 244, 238, .6);
    font-size: .92rem;
    max-width: 360px;
}
.footer-heading {
    color: var(--paper);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}
.footer-links, .footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li, .footer-contact li {
    margin-bottom: .65rem;
    font-size: .9rem;
}
.footer-links a, .footer-contact a {
    color: rgba(246, 244, 238, .65);
}
.footer-links a:hover, .footer-contact a:hover {
    color: var(--volt);
}
.footer-contact li {
    display: flex;
    align-items: center;
    gap: .55rem;
}
.footer-contact i {
    color: var(--volt);
}
.footer-legal {
    color: var(--paper);
    font-weight: 600;
    margin-bottom: .35rem;
}
.social-links {
    display: flex;
    gap: .6rem;
    margin-top: 1.4rem;
}
.social-links a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(246, 244, 238, .06);
    border: 1px solid var(--line-on-dark);
    color: var(--paper);
    transition: all .2s ease;
}
.social-links a:hover {
    background: var(--volt);
    color: var(--ink);
    transform: translateY(-3px);
}
.footer-bottom {
    border-top: 1px solid var(--line-on-dark);
    font-size: .82rem;
    font-family: var(--font-mono);
}
.footer-bottom-tag {
    color: var(--volt);
}

/* ---------- 14. Back to top ---------- */
.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    background: var(--meter);
    color: var(--ink);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
    z-index: 1040;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--volt);
    transform: translate(-2px, -2px);
}

/* ---------- 15. Misc ---------- */
.divider-gradient {
    height: 3px;
    width: 60px;
    background: var(--meter);
    margin-bottom: 1.25rem;
}

.enquiry-note {
    font-family: var(--font-mono);
    font-size: .76rem;
    color: var(--ink-soft);
}

@media (max-width: 575.98px) {
    .hero-stats {
        gap: 0;
    }
    .callout-strip {
        flex-direction: column;
        text-align: center;
    }
}

/* ---------- 16. Offer cards (What We Offer) ---------- */
.icon-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: .82rem;
    color: var(--meter-dark);
}
/* Match each card-link to its own icon-wrap's rotated accent (see the
   .row > *:nth-child rotation above .icon-card .icon-wrap). */
.row > *:nth-child(3n+2) .card-link {
    color: var(--transit);
}
.row > *:nth-child(3n) .card-link {
    color: var(--volt-dark);
}
.icon-card .card-link i {
    transition: transform .2s ease;
}
.icon-card:hover .card-link i {
    transform: translateX(4px);
}

/* ---------- 17. Impact / stats counters ---------- */
.stats-band {
    background: var(--ink);
    color: var(--paper);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--line-on-dark);
    border-bottom: 1px solid var(--line-on-dark);
}
.stat-block {
    text-align: center;
    padding: 1rem;
}
.stat-block .stat-count {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: clamp(2rem, 1.6rem + 1.6vw, 2.85rem);
    color: var(--volt);
    line-height: 1;
}
.stat-block .stat-suffix {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--volt);
}
.stat-block .stat-caption {
    margin-top: .5rem;
    font-size: .85rem;
    color: rgba(246, 244, 238, .65);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.stats-divider {
    height: 1px;
    background: var(--line-on-dark);
    margin: 3rem 0;
}
.impact-feature {
    display: flex;
    align-items: center;
    gap: .9rem;
}
.impact-feature .if-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: rgba(246, 244, 238, .06);
    border: 1px solid var(--line-on-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--volt);
}
.impact-feature h6 {
    color: var(--paper);
    margin-bottom: .15rem;
    font-size: .95rem;
}
.impact-feature p {
    color: rgba(246, 244, 238, .6);
    font-size: .85rem;
    margin-bottom: 0;
}

/* ---------- 18. How it works steps ---------- */
.step-item {
    display: flex;
    gap: 1.25rem;
    padding-bottom: 2rem;
    position: relative;
}
.step-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 44px;
    bottom: 0;
    width: 1px;
    background: var(--line);
}
.step-num {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: var(--volt);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.1rem;
}
.step-item h4 {
    font-size: 1.05rem;
    margin-bottom: .35rem;
}
.step-item p {
    color: var(--ink-soft);
    font-size: .93rem;
    margin-bottom: 0;
}

/* ---------- 19. EV vs Petrol calculator ---------- */
.calculator-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--line);
}
.calc-slider-row label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .9rem;
    color: var(--ink);
}
.calc-slider-value {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--meter-dark);
}
.form-range::-webkit-slider-thumb {
    background: var(--meter);
}
.form-range::-moz-range-thumb {
    background: var(--meter);
}
.form-range::-webkit-slider-runnable-track {
    background: var(--line);
}
.calc-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.75rem 0;
}
.calc-col {
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    border: 1px solid var(--line);
}
.calc-col.petrol {
    background: var(--paper-dim);
}
.calc-col.electric {
    background: var(--ink);
    border-color: var(--ink);
}
.calc-label {
    font-family: var(--font-mono);
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .5rem;
    color: var(--ink-soft);
}
.calc-col.electric .calc-label {
    color: rgba(246, 244, 238, .65);
}
.calc-amount {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--ink);
}
.calc-col.electric .calc-amount {
    color: var(--volt);
}
.calc-amount span:last-child {
    font-size: .7rem;
    font-weight: 400;
    color: var(--ink-soft);
}
.calc-col.electric .calc-amount span:last-child {
    color: rgba(246, 244, 238, .5);
}
.calc-savings {
    text-align: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--ink);
}
.calc-savings-amount {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--meter-dark);
    font-size: 1.3rem;
}
.calc-disclaimer {
    font-family: var(--font-mono);
    font-size: .72rem;
    color: var(--ink-soft);
    margin-top: 1rem;
    margin-bottom: 0;
}

/* ---------- 20. Testimonials ---------- */
.testimonial-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid var(--line);
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}
.testimonial-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-md);
}
.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: var(--meter);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}
.testimonial-stars {
    color: var(--meter);
    margin-bottom: .75rem;
    font-size: .8rem;
    letter-spacing: .15em;
}
.testimonial-quote {
    color: var(--ink);
    font-size: .95rem;
    margin-bottom: 1.25rem;
}
.testimonial-name {
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 0;
    font-size: .95rem;
}
.testimonial-role {
    font-family: var(--font-mono);
    color: var(--ink-soft);
    font-size: .78rem;
}

/* ---------- 21. FAQ accordion ---------- */
.accordion-nivix .accordion-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm) !important;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: none;
}
.accordion-nivix .accordion-button {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--ink);
    background: #fff;
    padding: 1.15rem 1.5rem;
}
.accordion-nivix .accordion-button:not(.collapsed) {
    color: var(--ink);
    background: var(--paper-dim);
    box-shadow: none;
}
.accordion-nivix .accordion-button::after {
    filter: none;
}
.accordion-nivix .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(255, 122, 26, .15);
}
.accordion-nivix .accordion-body {
    color: var(--ink-soft);
    font-size: .93rem;
    padding: 0 1.5rem 1.4rem;
}

/* ---------- 22. Rider portal (login / enroll / dashboard) ---------- */
.nivix-badge {
    display: inline-block;
    padding: .3rem .7rem;
    border-radius: var(--radius-pill);
    background: var(--paper-dim);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: .74rem;
    font-weight: 700;
}
.nivix-status-table td {
    padding: .5rem .25rem;
    font-size: .92rem;
    border-color: var(--line);
}
.nivix-status-table td:first-child {
    color: var(--ink-soft);
}
.nivix-status-table td:last-child {
    font-family: var(--font-mono);
    font-weight: 700;
    text-align: right;
}
.nivix-invoice-table th {
    font-family: var(--font-mono);
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ink-soft);
    border-bottom-width: 1px;
}
.nivix-invoice-table td {
    font-family: var(--font-mono);
    font-size: .88rem;
    vertical-align: middle;
}

/* Plan selection cards (Rider/Enroll.aspx Step 3) -- reuses .product-card/
   .media-frame/.spec-list for visual consistency, wrapped in a <label> so
   the whole card is clickable and the native radio can stay visually
   hidden. */
.plan-card-select {
    display: block;
    cursor: pointer;
    margin: 0;
    height: 100%;
}
.plan-card-select .plan-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.plan-card-select .plan-card {
    height: 100%;
    border: 1.5px solid var(--line);
    cursor: pointer;
}
.plan-card-select .plan-media {
    aspect-ratio: 16 / 9;
    box-shadow: none;
    border-radius: 0;
}
.plan-card-select:has(.plan-radio:checked) .plan-card {
    border-color: var(--meter);
    box-shadow: var(--shadow-md);
}
.plan-card-select:has(.plan-radio:focus-visible) .plan-card {
    outline: 2px solid var(--meter);
    outline-offset: 2px;
}
.plan-pricing {
    margin: 1rem 0 .9rem;
    padding-top: .9rem;
    border-top: 1px dashed var(--line);
}
.plan-price {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--ink);
    line-height: 1.2;
}
.plan-price small {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: .8rem;
    color: var(--ink-soft);
    margin-left: .2rem;
}
.plan-price-sub {
    font-family: var(--font-mono);
    font-size: .78rem;
    color: var(--ink-soft);
    margin-top: .15rem;
}
.plan-deposit {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--font-mono);
    font-size: .82rem;
    font-weight: 700;
    color: var(--ink);
    margin-top: .6rem;
}
.plan-deposit i {
    color: var(--meter);
}
.plan-check {
    display: none;
    align-items: center;
    gap: .4rem;
    color: var(--meter-dark);
    font-weight: 700;
    font-size: .85rem;
    margin-top: .9rem;
}
.plan-card-select:has(.plan-radio:checked) .plan-check {
    display: flex;
}
.nivix-review-summary p {
    margin-bottom: .5rem;
    font-size: .95rem;
}
.nivix-review-summary strong {
    font-family: var(--font-mono);
}

/* ---------- Rider portal: tab navigation (Rider/Rider.Master) ---------- */
.rider-page-header {
    padding-bottom: 2.5rem;
}
.rider-tabs {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: var(--navbar-height);
    z-index: 20;
}
.rider-tabs-list {
    display: flex;
    gap: .25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.rider-tabs-list::-webkit-scrollbar {
    display: none;
}
.rider-tab {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: 1rem 1.1rem .9rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .95rem;
    color: var(--ink-soft);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color .15s ease, border-color .15s ease;
}
.rider-tab:hover, .rider-tab:focus-visible {
    color: var(--ink);
    border-bottom-color: var(--line);
}
.rider-tab.active {
    color: var(--ink);
    border-bottom-color: var(--meter);
}
.rider-tab.active i {
    color: var(--meter);
}
.rider-section {
    padding-top: 2rem;
}
.rider-quicklink {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    height: 100%;
    padding: 1.1rem 1.25rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    color: var(--ink);
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease;
}
.rider-quicklink:hover {
    border-color: var(--meter);
    transform: translateY(-2px);
    color: var(--ink);
}
.rider-quicklink i {
    font-size: 1.4rem;
    color: var(--meter);
}
.rider-quicklink span {
    font-family: var(--font-display);
    font-weight: 700;
}
.rider-quicklink small {
    color: var(--ink-soft);
}
.rider-stat {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
}
@media (max-width: 575.98px) {
    .rider-tab {
        padding: .85rem .8rem .75rem;
        font-size: .88rem;
    }
}

/* Rider Agreement page: full agreement text (HTML from NIVIX-Web's AgreementDocument.ToHtml). */
.agreement-doc-scroll {
    max-height: 70vh;
    overflow-y: auto;
    padding: 1.25rem 1.4rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}
.agreement-doc {
    font-family: var(--font-body);
    font-size: .92rem;
    line-height: 1.6;
    color: var(--ink);
}
.agreement-doc .ad-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 1rem;
}
.agreement-doc .ad-heading {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin: 1.5rem 0 .55rem;
}
.agreement-doc .ad-para { margin: 0 0 .65rem; }
.agreement-doc .ad-bold { font-weight: 700; }
.agreement-doc .ad-clause { display: flex; gap: .55rem; margin: 0 0 .5rem; }
.agreement-doc .ad-clause.ad-sub { padding-left: 1.8rem; }
.agreement-doc .ad-num { flex: 0 0 2.4rem; font-family: var(--font-mono); font-size: .82rem; color: var(--ink-soft); padding-top: .12rem; }
.agreement-doc .ad-table-wrap { display: flex; flex-wrap: wrap-reverse; gap: 1rem; align-items: flex-start; margin: .5rem 0 1.1rem; }
.agreement-doc .ad-table { flex: 1 1 280px; border-collapse: collapse; font-size: .86rem; }
.agreement-doc .ad-table th,
.agreement-doc .ad-table td { border: 1px solid var(--line); padding: .4rem .6rem; vertical-align: top; overflow-wrap: anywhere; }
.agreement-doc .ad-table th { width: 40%; background: var(--paper); font-weight: 600; }
.agreement-doc .ad-photo { margin: 0; text-align: center; font-size: .75rem; color: var(--ink-soft); }
.agreement-doc .ad-photo img { width: 104px; height: 128px; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius-sm); display: block; margin-bottom: .25rem; }
.agreement-doc .ad-break { margin: 2rem 0; border-color: var(--line); }
.agreement-esign-card { border-left: 4px solid var(--meter); scroll-margin-top: calc(var(--navbar-height) + 1rem); }
.agreement-signed-card { border-left: 4px solid var(--volt-dark); }
@media (max-width: 575.98px) {
    .agreement-doc-scroll { padding: 1rem .85rem; max-height: 65vh; }
    .agreement-doc .ad-clause.ad-sub { padding-left: .8rem; }
    .agreement-doc .ad-num { flex-basis: 2rem; }
}
