/* =========================================================================
   ABONTA Power – design system. Mobile-first. Light and dark.
   Warm Indian palette: saffron, green, marigold, cream.
   ========================================================================= */

:root {
    --ab-green: #0f7a43;
    --ab-green-dark: #0b5d33;
    --ab-green-deep: #083f24;
    --ab-green-soft: #e4f3e9;
    --ab-saffron: #f08a24;
    --ab-saffron-text: #b35600;
    --ab-saffron-soft: #fff0dd;
    --ab-gold: #f7b733;
    --ab-on-saffron: #2a1500;
    --ab-bg: #fffbf4;
    --ab-paper: #fff5e6;
    --ab-surface: #ffffff;
    --ab-surface-2: #fbf6ec;
    --ab-ink: #1d1b16;
    --ab-muted: #5f5b50;
    --ab-line: #ecdfc9;
    --ab-input: #cfc3ad;
    --ab-error: #b42318;
    --ab-error-soft: #fdecea;
    --ab-radius: 18px;
    --ab-radius-sm: 12px;
    --ab-shadow: 0 2px 4px rgba(84, 56, 12, .05), 0 12px 32px rgba(84, 56, 12, .09);
    --ab-font: 'Hind', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Devanagari', Arial, sans-serif;
    --ab-display: 'Baloo 2', 'Hind', system-ui, sans-serif;
    --ab-header-h: 64px;
    --text-color: #2c3e50;
}

:root[data-theme="dark"] {
    --ab-green: #45c585;
    --ab-green-dark: #1c8a54;
    --ab-green-deep: #0a2c1b;
    --ab-green-soft: #16301f;
    --ab-saffron-text: #ffb066;
    --ab-saffron-soft: #33230f;
    --ab-bg: #0d1411;
    --ab-paper: #121c17;
    --ab-surface: #17221c;
    --ab-surface-2: #1e2b24;
    --ab-ink: #f4f0e6;
    --ab-muted: #aab4ac;
    --ab-line: #2c3b33;
    --ab-input: #47574d;
    --ab-error: #ff8a80;
    --ab-error-soft: #3a1b18;
    --ab-shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 14px 34px rgba(0, 0, 0, .35);
    --text-color: #e8e5db;
    color-scheme: dark;
}

/* Shell must not inherit legacy element colours from style.css on inner pages */
.ab-header *,
.ab-footer *,
.ab-sticky *,
.ab-langbar * {
    color: inherit;
}

/* ---------- Base ---------- */
.home *,
.home *::before,
.home *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--ab-header-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    padding-bottom: 76px;
    background: var(--ab-bg);
    transition: background-color .25s;
}

body.home {
    margin: 0;
    font-family: var(--ab-font);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ab-ink);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

.home img {
    max-width: 100%;
    height: auto;
    display: block;
}

.ab-home h1,
.ab-home h2,
.ab-home h3 {
    font-family: var(--ab-display);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 .4em;
    color: var(--ab-ink);
}

.ab-home h2 {
    font-size: clamp(1.75rem, 6vw, 2.75rem);
}

.ab-home h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.ab-home p {
    margin: 0 0 1em;
}

.ab-home a {
    color: var(--ab-green);
}

:focus-visible {
    outline: 3px solid var(--ab-saffron);
    outline-offset: 2px;
}

html[data-ab-lang="hi"] .ab-home h1,
html[data-ab-lang="hi"] .ab-home h2,
html[data-ab-lang="hi"] .ab-home h3 {
    line-height: 1.3;
}

html[data-ab-lang="hi"] body {
    line-height: 1.7;
}

.ab-home [hidden],
.ab-header [hidden],
.ab-footer [hidden] {
    display: none !important;
}

.ab-sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.ab-skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 1000;
    background: var(--ab-ink);
    color: var(--ab-bg) !important;
    padding: 10px 16px;
    border-radius: 8px;
}

.ab-skip:focus {
    top: 12px;
}

.ab-wrap {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 16px;
}

.ab-wrap--narrow {
    max-width: 780px;
}

.ab-ico {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    vertical-align: -.2em;
}

.ab-ico--flip {
    transform: scaleX(-1);
}

.ab-muted {
    color: var(--ab-muted) !important;
}

.ab-small {
    font-size: .92rem;
}

.ab-accent {
    display: block;
    color: var(--ab-green);
}

/* ---------- The question chip: the voice of the visitor ---------- */
.ab-q {
    position: relative;
    display: inline-block;
    margin: 0 0 14px !important;
    padding: 6px 14px;
    border-radius: 14px 14px 14px 3px;
    background: var(--ab-saffron-soft);
    color: var(--ab-saffron-text);
    font-weight: 600;
    font-size: .98rem;
    line-height: 1.35;
}

.ab-q--light {
    background: rgba(255, 255, 255, .16);
    color: #fff;
    backdrop-filter: blur(6px);
}

.ab-head {
    margin-bottom: 24px;
    max-width: 760px;
}

/* ---------- Buttons ---------- */
.ab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 48px;
    padding: .65rem 1.25rem;
    border-radius: 999px;
    border: 2px solid transparent;
    font: 600 1rem/1.2 var(--ab-font);
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s, background-color .2s;
    -webkit-tap-highlight-color: transparent;
}

.ab-btn:hover {
    transform: translateY(-2px);
}

.ab-btn:active {
    transform: translateY(0);
}

.ab-btn--saffron {
    background: linear-gradient(135deg, var(--ab-gold), var(--ab-saffron));
    color: var(--ab-on-saffron) !important;
    box-shadow: 0 8px 22px rgba(240, 138, 36, .35);
}

.ab-btn--green {
    background: var(--ab-green-dark);
    color: #fff !important;
}

.ab-btn--wa {
    background: #128c4a;
    color: #fff !important;
}

.ab-btn--ghost {
    background: var(--ab-surface);
    border-color: var(--ab-line);
    color: var(--ab-ink) !important;
}

.ab-btn--glass {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .55);
    color: #fff !important;
    backdrop-filter: blur(6px);
}

.ab-btn--block {
    width: 100%;
}

.ab-btn--lg {
    min-height: 54px;
    padding: .8rem 1.6rem;
    font-size: 1.08rem;
}

.ab-btn[disabled] {
    opacity: .65;
    cursor: wait;
    transform: none;
}

/* ---------- Scroll progress ---------- */
.ab-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 200;
    background: linear-gradient(90deg, var(--ab-saffron), var(--ab-gold) 50%, var(--ab-green));
    transform: scaleX(0);
    transform-origin: 0 50%;
}

/* ---------- Language + mode strip ---------- */
.ab-langbar {
    background: var(--ab-surface-2);
    border-bottom: 1px solid var(--ab-line);
    padding: 5px 0;
    font-family: var(--ab-font);
}

.ab-langbar .ab-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ab-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--ab-font);
}

.ab-lang>.ab-ico {
    display: none;
}

.ab-lang ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 2px;
    gap: 2px;
    background: var(--ab-surface);
    border: 1px solid var(--ab-line);
    border-radius: 999px;
}

.ab-lang a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 3px 11px;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--ab-ink) !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.ab-lang a[aria-current="true"] {
    background: var(--ab-green-dark);
    color: #fff !important;
}

.ab-lang--menu,
.ab-lang--inline {
    display: none;
}

.ab-mode {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: none;
    border: 1px solid var(--ab-line);
    border-radius: 50%;
    background: var(--ab-surface);
    color: var(--ab-ink);
    cursor: pointer;
    padding: 0;
}

.ab-mode .ab-mode__moon,
:root[data-theme="dark"] .ab-mode .ab-mode__sun {
    display: none;
}

:root[data-theme="dark"] .ab-mode .ab-mode__moon {
    display: block;
}

.ab-header__tools {
    display: none;
    align-items: center;
    gap: 8px;
}

/* ---------- Header ---------- */
.ab-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--ab-surface);
    border-bottom: 1px solid var(--ab-line);
    font-family: var(--ab-font);
    color: var(--ab-ink);
}

.ab-header__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: var(--ab-header-h);
}

.ab-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    margin-right: auto;
    min-width: 0;
}

.ab-logo__mark {
    width: 34px;
    height: 34px;
    flex: none;
}

.ab-logo__img {
    max-height: 44px;
    width: auto;
}

.ab-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
}

.ab-logo__text strong {
    font-family: var(--ab-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ab-green) !important;
    white-space: nowrap;
}

.ab-logo__text small {
    font-size: .66rem;
    color: var(--ab-saffron-text) !important;
    font-weight: 600;
    white-space: nowrap;
}

.ab-header__cta {
    min-height: 42px;
    padding: .4rem .85rem;
    font-size: .9rem;
    white-space: nowrap;
    box-shadow: none;
}

.ab-show-xs {
    display: inline;
}

.ab-hide-xs {
    display: none;
}

.ab-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: none;
    border: 1px solid var(--ab-line);
    border-radius: 12px;
    background: var(--ab-surface);
    color: var(--ab-ink);
    cursor: pointer;
    padding: 0;
}

.ab-menu-btn .ab-ico {
    width: 24px;
    height: 24px;
}

.ab-nav {
    display: none;
}

.ab-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ab-nav a {
    display: block;
    color: var(--ab-ink) !important;
    text-decoration: none !important;
    font-weight: 500;
}

.ab-nav.is-open {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--ab-surface);
    border-bottom: 1px solid var(--ab-line);
    box-shadow: var(--ab-shadow);
    padding: 8px 16px 16px;
}

.ab-nav.is-open>ul>li>a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--ab-line);
    font-size: 1.05rem;
}

.ab-nav.is-open .ab-lang--menu {
    display: flex;
    padding-top: 14px;
}

@media (max-width: 359px) {
    .ab-header__cta {
        display: none;
    }
}

@media (min-width: 560px) {
    .ab-show-xs {
        display: none;
    }

    .ab-hide-xs {
        display: inline;
    }
}

@media (min-width: 1024px) {
    .ab-menu-btn {
        display: none;
    }

    .ab-nav.is-open .ab-lang--menu {
        display: none;
    }

    .ab-nav,
    .ab-nav.is-open {
        display: block;
        position: static;
        box-shadow: none;
        border: 0;
        padding: 0;
        margin-right: 4px;
    }

    .ab-nav ul {
        display: flex;
        gap: 2px;
    }

    .ab-nav a {
        padding: 8px 10px;
        font-size: .97rem;
        border-radius: 8px;
    }

    .ab-nav a:hover {
        background: var(--ab-surface-2);
    }
}

@media (min-width: 1280px) {
    .ab-langbar {
        display: none;
    }

    .ab-header__tools {
        display: flex;
    }

    .ab-lang--inline {
        display: flex;
    }
}

/* ---------- Hero ---------- */
.ab-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: min(88vh, 720px);
    display: flex;
    align-items: flex-end;
    padding: 56px 0 104px;
    color: #fff;
}

.ab-hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.ab-hero__media img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: 50% 62%;
    animation: ab-kenburns 24s ease-out both;
}

.ab-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(40, 18, 40, .35) 0%, rgba(20, 14, 12, .5) 45%, rgba(10, 16, 12, .9) 100%);
}

.ab-sun {
    position: absolute;
    z-index: -1;
    top: -60px;
    right: -60px;
    width: 240px;
    height: 240px;
    color: var(--ab-gold);
    opacity: .85;
    animation: ab-spin 90s linear infinite;
}

.ab-home h1 {
    color: #fff;
    font-size: clamp(2.3rem, 9.5vw, 4.2rem);
    line-height: 1.05;
    max-width: 16ch;
    margin-bottom: .35em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

.ab-hero__kicker {
    display: block;
    font-family: var(--ab-font);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: .01em;
    color: var(--ab-gold);
    margin-bottom: 8px;
    text-shadow: none;
}

.ab-hero__lead {
    max-width: 52ch;
    font-size: 1.12rem;
    color: #f4efe6;
    margin-bottom: 20px !important;
}

.ab-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.ab-hero__points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: .95rem;
    font-weight: 500;
    color: #fff;
}

.ab-hero__points li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ab-hero__points .ab-ico {
    color: var(--ab-gold);
}

@media (min-width: 900px) {
    .ab-hero {
        min-height: 640px;
        padding: 96px 0 150px;
    }

    .ab-sun {
        width: 420px;
        height: 420px;
        top: -110px;
        right: -70px;
    }
}

/* ---------- Calculator ---------- */
.ab-calc-sec {
    position: relative;
    z-index: 2;
    margin-top: -72px;
    padding-bottom: 8px;
}

.ab-calc {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 20px 16px;
    background: var(--ab-surface);
    border: 1px solid var(--ab-line);
    border-top: 5px solid var(--ab-saffron);
    border-radius: var(--ab-radius);
    box-shadow: var(--ab-shadow);
}

.ab-home .ab-calc__title {
    font-size: 1.5rem;
    margin-bottom: 14px;
}

.ab-calc__in {
    display: grid;
    gap: 14px;
    align-content: start;
    min-width: 0;
}

.ab-calc__in>.ab-q {
    justify-self: start;
    margin-bottom: 0 !important;
}

.ab-home .ab-calc__in .ab-calc__title {
    margin-bottom: 0;
}

.ab-bill {
    display: flex;
    align-items: baseline;
    gap: 6px;
    border-bottom: 2px solid var(--ab-ink);
}

.ab-bill:focus-within {
    border-bottom-color: var(--ab-saffron);
}

.ab-bill span {
    font: 700 1.9rem/1 var(--ab-display);
    color: var(--ab-saffron-text);
}

.ab-home .ab-bill input[type="number"] {
    flex: 1;
    min-width: 0;
    width: 100%;
    min-height: 0;
    border: 0 !important;
    outline: none;
    background: transparent;
    padding: 2px 0;
    font: 700 2.5rem/1.15 var(--ab-display);
    color: var(--ab-ink);
    -moz-appearance: textfield;
    appearance: textfield;
}

.ab-bill input::-webkit-outer-spin-button,
.ab-bill input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ab-home input[type="range"] {
    width: 100%;
    height: 34px;
    margin: 0;
    accent-color: var(--ab-saffron);
    background: transparent;
    cursor: pointer;
}

.ab-chips-field {
    border: 0;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.ab-chip {
    position: relative;
    cursor: pointer;
}

.ab-chip input {
    position: absolute;
    opacity: 0;
    inset: 0;
    margin: 0;
    cursor: pointer;
}

.ab-chip span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 6px 8px;
    text-align: center;
    font-size: .88rem;
    font-weight: 500;
    line-height: 1.2;
    border: 1.5px solid var(--ab-input);
    border-radius: var(--ab-radius-sm);
    background: var(--ab-surface);
    transition: background-color .15s, border-color .15s;
}

.ab-chip input:checked+span {
    background: var(--ab-green-dark);
    border-color: var(--ab-green-dark);
    color: #fff;
    font-weight: 600;
}

.ab-chip input:focus-visible+span {
    outline: 3px solid var(--ab-saffron);
    outline-offset: 2px;
}

.ab-calc__out {
    display: grid;
    gap: 14px;
    align-content: start;
    min-width: 0;
    transition: opacity .2s;
}

.ab-calc.is-loading .ab-result {
    opacity: .7;
}

.ab-result {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border-radius: var(--ab-radius);
    color: #fff;
    background: radial-gradient(circle at 92% 0%, rgba(247, 183, 51, .4), transparent 45%), linear-gradient(135deg, #0f7a43, #083f24);
    transition: opacity .2s;
}

.ab-result__label {
    display: block;
    font-size: .95rem;
    color: #d8ecdf;
}

.ab-result__big {
    display: block;
    font-family: var(--ab-display);
    font-size: clamp(1.65rem, 7.4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
}

.ab-result__row {
    display: grid;
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
    gap: 12px;
    margin: 14px 0 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .22);
}

.ab-result__row dt {
    font-size: .84rem;
    color: #d8ecdf;
}

.ab-result__row dd {
    margin: 0;
    font: 700 1.2rem/1.2 var(--ab-display);
    color: var(--ab-gold);
}

.ab-home .ab-result__fine {
    margin: 0;
    font-size: .8rem;
    color: #cfe5d7;
}

.ab-lead {
    display: grid;
    gap: 10px;
}

.ab-home .ab-lead__title {
    margin: 0;
    font: 700 1.2rem/1.2 var(--ab-display);
}

.ab-lead__fields {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr);
}

.ab-calc__more {
    display: grid;
    gap: 8px;
    min-width: 0;
}

@media (min-width: 520px) {
    .ab-lead__fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ab-chips-field {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .ab-calc-sec {
        margin-top: -110px;
    }

    .ab-calc {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
        gap: 28px 36px;
        padding: 32px;
    }

    .ab-calc__more {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .ab-chips-field {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ab-tariff input {
    max-width: 160px;
}

.ab-mini {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0;
}

.ab-mini>div {
    padding: 10px 12px;
    background: var(--ab-surface-2);
    border-radius: var(--ab-radius-sm);
    min-width: 0;
}

.ab-mini dt {
    font-size: .8rem;
    color: var(--ab-muted);
}

.ab-mini dd {
    margin: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.ab-mini small {
    display: block;
    font-size: .74rem;
    font-weight: 400;
    color: var(--ab-muted);
}

.ab-home .ab-note {
    margin: 0 0 6px;
    font-size: .92rem;
    font-weight: 500;
    color: var(--ab-green);
}

.ab-roof__controls {
    display: grid;
    gap: 8px;
    margin-bottom: 8px;
    font-size: .92rem;
    font-weight: 600;
}

.ab-file {
    position: relative;
    overflow: hidden;
}

.ab-file input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

#ab-roof-canvas {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--ab-radius-sm);
    border: 1px dashed var(--ab-input);
    touch-action: none;
    cursor: grab;
    margin-bottom: 8px;
}

/* ---------- Forms ---------- */
.ab-form {
    display: grid;
    gap: 12px;
}

.ab-field {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.ab-field label {
    font-weight: 600;
    font-size: .95rem;
}

.ab-field-row {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 480px) {
    .ab-field-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ab-home input[type="text"],
.ab-home input[type="tel"],
.ab-home input[type="number"],
.ab-home select,
.ab-home textarea {
    width: 100%;
    min-height: 50px;
    padding: 11px 14px;
    font: 400 1rem/1.3 var(--ab-font);
    color: var(--ab-ink);
    background-color: var(--ab-surface);
    border: 1.5px solid var(--ab-input);
    border-radius: var(--ab-radius-sm);
    appearance: none;
    -webkit-appearance: none;
}

.ab-home ::placeholder {
    color: var(--ab-muted);
    opacity: 1;
}

.ab-home select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23888' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}

.ab-home select option {
    background: var(--ab-surface);
    color: var(--ab-ink);
}

.ab-home input:focus,
.ab-home select:focus,
.ab-home textarea:focus {
    border-color: var(--ab-green);
    outline: 3px solid color-mix(in srgb, var(--ab-green) 25%, transparent);
    outline-offset: 0;
}

.ab-home .ab-bill input[type="number"]:focus {
    outline: none;
}

.ab-home [aria-invalid="true"] {
    border-color: var(--ab-error) !important;
}

.ab-home .ab-err {
    color: var(--ab-error);
    font-size: .9rem;
    margin: 0;
    font-weight: 500;
}

.ab-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: .88rem;
    line-height: 1.4;
    cursor: pointer;
}

.ab-check input {
    width: 22px;
    height: 22px;
    margin: 0;
    flex: none;
    accent-color: var(--ab-green-dark);
}

.ab-hp {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ab-home .ab-form-msg {
    margin: 0;
    padding: 10px 12px;
    border-radius: var(--ab-radius-sm);
    background: var(--ab-error-soft);
    color: var(--ab-error);
    font-weight: 500;
}

.ab-home .ab-form-msg.is-ok,
.ab-out {
    padding: 14px;
    border-radius: var(--ab-radius-sm);
    background: var(--ab-green-soft);
    color: var(--ab-ink);
    font-weight: 400;
}

.ab-form-msg.is-ok p,
.ab-out p {
    margin: 0 0 6px;
    font-size: .95rem;
}

.ab-meter {
    height: 10px;
    background: var(--ab-surface);
    border-radius: 99px;
    overflow: hidden;
    margin: 8px 0;
}

.ab-meter span {
    display: block;
    height: 100%;
    background: var(--ab-green);
}

/* ---------- Sections ---------- */
.ab-section {
    position: relative;
    padding: 52px 0;
}

.ab-section--paper {
    background-color: var(--ab-paper);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23c98a2b' stroke-opacity='.12'%3E%3Cpath d='M28 4l24 24-24 24L4 28z'/%3E%3Ccircle cx='28' cy='28' r='7'/%3E%3C/g%3E%3C/svg%3E");
}

/* Toran: a strip of festive bunting */
.ab-section--band::before,
.ab-final::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='18' viewBox='0 0 60 18'%3E%3Cpath d='M0 0h20L10 16z' fill='%23f08a24'/%3E%3Cpath d='M20 0h20L30 16z' fill='%23f7b733'/%3E%3Cpath d='M40 0h20L50 16z' fill='%230f7a43'/%3E%3C/svg%3E") repeat-x;
    z-index: 1;
}

.ab-section--band {
    background: var(--ab-bg);
    padding-top: 64px;
}

@media (min-width: 768px) {
    .ab-section {
        padding: 80px 0;
    }

    .ab-section--band {
        padding-top: 96px;
    }
}

.ab-list {
    margin: 0 0 12px;
    padding-left: 1.2rem;
}

.ab-list li {
    margin-bottom: .4rem;
}

.ab-list--small {
    font-size: .95rem;
}

.ab-list--tick {
    list-style: none;
    padding-left: 0;
}

.ab-list--tick li {
    position: relative;
    padding-left: 1.8rem;
}

.ab-list--tick li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .3em;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: var(--ab-saffron) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8.5' fill='none' stroke='%232a1500' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat;
}

.ab-badge {
    display: inline-block;
    font-family: var(--ab-font);
    font-size: .72rem;
    font-weight: 600;
    background: var(--ab-saffron-soft);
    color: var(--ab-saffron-text);
    padding: 2px 8px;
    border-radius: 999px;
    vertical-align: middle;
}

/* ---------- Details ---------- */
.ab-details {
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius-sm);
    background: var(--ab-surface);
    margin-top: 10px;
    min-width: 0;
}

.ab-calc__more .ab-details {
    margin-top: 0;
}

.ab-details summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 44px 14px 14px;
    font-weight: 600;
    position: relative;
    line-height: 1.35;
}

.ab-details summary::-webkit-details-marker {
    display: none;
}

.ab-details summary::after {
    content: "+";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--ab-saffron-text);
}

.ab-details[open] summary::after {
    content: "–";
}

.ab-details__body {
    padding: 0 14px 14px;
}

.ab-details__body>p:last-child,
.ab-details__body>ul:last-child {
    margin-bottom: 0;
}

/* ---------- Tables ---------- */
.ab-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ab-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .93rem;
    margin: 8px 0;
}

.ab-table caption {
    text-align: left;
    font-weight: 600;
    padding-bottom: 6px;
}

.ab-table th,
.ab-table td {
    text-align: left;
    padding: 9px 8px;
    border-bottom: 1px solid var(--ab-line);
    vertical-align: top;
}

.ab-table thead th {
    font-size: .84rem;
    color: var(--ab-muted);
    font-weight: 600;
}

.ab-table tbody th {
    font-weight: 500;
}

/* ---------- Solar types ---------- */
.ab-types {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.ab-type {
    overflow: hidden;
    background: var(--ab-surface);
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius);
    transition: transform .25s, box-shadow .25s;
}

.ab-type:hover {
    transform: translateY(-4px);
    box-shadow: var(--ab-shadow);
}

.ab-type__img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.ab-type__img img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: 50% 25%;
    transition: transform .6s;
}

.ab-type:hover .ab-type__img img {
    transform: scale(1.05);
}

.ab-type__body {
    padding: 16px;
}

.ab-type__body h3 {
    font-size: 1.4rem !important;
    margin-bottom: 4px !important;
}

.ab-home .ab-type__best {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 0;
    font-size: .93rem;
    font-weight: 500;
    color: var(--ab-green);
}

.ab-type__best .ab-ico {
    margin-top: 2px;
}

@media (min-width: 800px) {
    .ab-types {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
}

/* ---------- Subsidy & loan ---------- */
.ab-afford {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr);
}

.ab-rates {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ab-rates li {
    padding: 14px;
    background: var(--ab-surface);
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius-sm);
    min-width: 0;
}

.ab-rates strong {
    display: block;
    font: 700 1.5rem/1.15 var(--ab-display);
    color: var(--ab-green);
}

.ab-rates small {
    font-size: .6em;
    font-weight: 500;
}

.ab-rates span {
    font-size: .86rem;
    color: var(--ab-muted);
    line-height: 1.3;
    display: block;
}

.ab-afford__loan {
    align-self: start;
    padding: 22px;
    border-radius: var(--ab-radius);
    color: #fff;
    background: radial-gradient(circle at 100% 0%, rgba(240, 138, 36, .4), transparent 50%), linear-gradient(150deg, #123a5a, #0b2438);
}

.ab-home .ab-afford__loan h2 {
    color: #fff;
    font-size: clamp(1.5rem, 5vw, 2rem);
}

.ab-afford__loan .ab-list--tick {
    margin-bottom: 18px;
}

@media (min-width: 900px) {
    .ab-afford {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
        gap: 36px;
    }
}

/* ---------- Split layout + steps ---------- */
.ab-split {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr);
}

.ab-split__img {
    border-radius: var(--ab-radius);
    overflow: hidden;
    align-self: start;
}

.ab-split__img img {
    width: 100%;
    height: 100% !important;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

@media (min-width: 900px) {
    .ab-split {
        grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
        gap: 48px;
        align-items: start;
    }

    .ab-split--flip {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    }

    .ab-split__img {
        position: sticky;
        top: calc(var(--ab-header-h) + 20px);
    }

    .ab-split__img img {
        aspect-ratio: 4 / 3;
    }
}

.ab-steps {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
}

.ab-steps li {
    position: relative;
    display: flex;
    gap: 14px;
    padding-bottom: 18px;
}

.ab-steps li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 21px;
    top: 44px;
    bottom: 2px;
    border-left: 2px dashed var(--ab-saffron);
}

.ab-steps__n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ab-gold), var(--ab-saffron));
    color: var(--ab-on-saffron);
    font: 700 1.25rem/1 var(--ab-display);
}

.ab-steps h3 {
    margin-bottom: 2px !important;
}

.ab-steps p {
    margin: 0 !important;
    color: var(--ab-muted);
}

/* ---------- Why & brands ---------- */
.ab-why {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ab-why li {
    padding: 14px;
    background: var(--ab-surface);
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius);
    min-width: 0;
}

.ab-why li:first-child {
    grid-column: 1 / -1;
}

.ab-why__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 8px;
    border-radius: 12px;
    background: var(--ab-saffron-soft);
    color: var(--ab-saffron-text);
}

.ab-why h3 {
    font-size: 1.05rem !important;
    margin-bottom: 2px !important;
}

.ab-why p {
    margin: 0 !important;
    font-size: .9rem;
    line-height: 1.4;
    color: var(--ab-muted);
}

@media (min-width: 900px) {
    .ab-why {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 14px;
    }

    .ab-why li:first-child {
        grid-column: auto;
    }
}

.ab-brands-wrap {
    margin-top: 36px;
}

.ab-home .ab-brands-title {
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.ab-brand {
    --c: var(--ab-green);
    flex: 0 0 auto;
    scroll-snap-align: start;
    background: var(--ab-surface);
    border: 1px solid var(--ab-line);
    border-radius: 999px;
    transition: transform .2s, border-color .2s;
}

.ab-brand:hover {
    transform: translateY(-2px);
    border-color: var(--c);
}

.ab-brand,
.ab-brand a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    text-decoration: none !important;
    color: var(--ab-ink);
}

.ab-brand a {
    padding: 0;
}

.ab-brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: none;
    border-radius: 50%;
    background: var(--c);
    color: #fff;
    font-weight: 700;
    font-size: .8rem;
}

.ab-brand__name {
    font-weight: 600;
    font-size: .95rem;
    white-space: nowrap;
}

.ab-brand__logo {
    max-height: 36px;
    width: auto;
    margin-left: 8px;
}

/* ---------- Gallery ---------- */
.ab-mosaic {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 130px;
}

.ab-mosaic li {
    min-width: 0;
}

.ab-mosaic li:first-child {
    grid-column: 1 / -1;
    grid-row: span 2;
}

.ab-mosaic li.is-extra {
    display: none;
}

@media (min-width: 900px) {
    .ab-mosaic {
        grid-template-columns: 1.5fr 1fr 1fr;
        grid-auto-rows: 210px;
        gap: 12px;
    }

    .ab-mosaic li:first-child {
        grid-column: auto;
    }
}

.ab-mosaic__btn {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: var(--ab-radius-sm);
    overflow: hidden;
    cursor: zoom-in;
    background: var(--ab-surface-2);
}

.ab-mosaic__btn img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
    transition: transform .5s;
}

.ab-mosaic__btn:hover img {
    transform: scale(1.05);
}

.ab-mosaic__cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px 10px 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .7));
    color: #fff;
    font-size: .82rem;
    text-align: left;
}

.ab-mosaic__more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 63, 36, .75);
    color: #fff;
    font: 700 1.6rem var(--ab-display);
}

.ab-home .ab-rep-note {
    margin: 8px 0 0;
    font-style: italic;
}

.ab-lightbox {
    border: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    background: rgba(5, 12, 8, .95);
    color: #fff;
}

.ab-lightbox__fig {
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 60px 12px 20px;
}

.ab-lightbox__fig img {
    max-width: min(1100px, 100%);
    max-height: calc(100vh - 150px);
    width: auto;
    height: auto;
    border-radius: 8px;
}

.ab-lightbox__btn {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    cursor: pointer;
}

.ab-lightbox__close { top: 10px; right: 10px; }
.ab-lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.ab-lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- Reviews ---------- */
.ab-reviews-wrap {
    margin-top: 36px;
}

.ab-reviews__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.ab-home .ab-reviews__head h3 {
    margin: 0;
    font-size: 1.35rem;
}

.ab-reviews__nav {
    display: flex;
    gap: 8px;
}

.ab-round {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--ab-line);
    background: var(--ab-surface);
    color: var(--ab-ink);
    cursor: pointer;
}

.ab-reviews {
    list-style: none;
    margin: 0;
    padding: 2px 2px 10px;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.ab-review {
    flex: 0 0 86%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: var(--ab-surface);
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius);
    overflow: hidden;
}

@media (min-width: 640px) {
    .ab-review { flex-basis: calc(50% - 7px); }
}

@media (min-width: 1024px) {
    .ab-review { flex-basis: calc(33.333% - 10px); }
}

.ab-review__media {
    position: relative;
    aspect-ratio: 16 / 10;
}

.ab-review__media img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.ab-review__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    flex: 1;
}

.ab-home .ab-stars {
    margin: 0;
    color: var(--ab-saffron);
    letter-spacing: 2px;
}

.ab-stars__off {
    color: var(--ab-line);
}

.ab-review blockquote {
    margin: 0;
    flex: 1;
}

.ab-review__who {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ab-review__who strong,
.ab-review__who small {
    display: block;
}

.ab-review__who small {
    color: var(--ab-muted);
}

.ab-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 50%;
    background: var(--ab-green-dark);
    color: #fff;
    font-weight: 700;
}

.ab-verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    font-size: .8rem;
    font-weight: 600;
    color: var(--ab-green);
    background: var(--ab-green-soft);
    padding: 3px 10px;
    border-radius: 999px;
}

.ab-invite {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    padding: 18px;
    border-radius: var(--ab-radius);
    background: var(--ab-surface-2);
    border: 1px dashed var(--ab-input);
}

.ab-invite>div {
    flex: 1 1 280px;
}

.ab-home .ab-invite__title {
    font: 700 1.2rem/1.25 var(--ab-display);
    margin: 0 0 2px;
}

.ab-home .ab-invite p:last-child {
    margin: 0;
}

.ab-regs {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ab-regs li {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    background: var(--ab-green-soft);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: .9rem;
    overflow-wrap: anywhere;
}

/* ---------- After-sales ---------- */
.ab-after {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    display: grid;
    gap: 14px;
}

.ab-after>li {
    display: flex;
    gap: 12px;
}

.ab-after>li>.ab-ico {
    width: 28px;
    height: 28px;
    color: var(--ab-saffron-text);
}

.ab-after h3 {
    font-size: 1.1rem !important;
    margin-bottom: 2px !important;
}

.ab-after p {
    margin: 0 !important;
    font-size: .96rem;
    color: var(--ab-muted);
}

/* ---------- Final CTA ---------- */
.ab-final {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 76px 0 64px;
    color: #fff;
}

.ab-final__media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.ab-final__media img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.ab-final__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(8, 63, 36, .92), rgba(8, 63, 36, .55));
}

.ab-home .ab-final h2 {
    color: #fff;
    max-width: 22ch;
}

.ab-home .ab-final p {
    color: #eef6f0;
}

/* ---------- Footer ---------- */
.ab-footer {
    background: #0c1a12;
    color: #c9d6ce;
    padding: 44px 0 20px;
    font-family: var(--ab-font);
    font-size: .98rem;
    line-height: 1.6;
}

.ab-footer p {
    margin: 0 0 .6rem;
}

.ab-footer a {
    color: #fff !important;
    text-decoration: none;
}

.ab-footer a:hover {
    text-decoration: underline;
}

.ab-footer__grid {
    display: grid;
    gap: 26px;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
    .ab-footer__grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

.ab-footer__brand {
    font: 700 1.4rem var(--ab-display);
    color: #fff !important;
    margin: 0 !important;
}

.ab-footer__tag {
    color: var(--ab-gold) !important;
    font-weight: 600;
}

.ab-footer__h {
    font-weight: 700;
    color: #fff !important;
    font-size: .95rem;
}

.ab-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ab-footer__list li {
    margin-bottom: 8px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    overflow-wrap: anywhere;
}

.ab-footer__list a {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    min-height: 32px;
}

.ab-footer__row {
    display: flex;
    gap: 8px;
}

.ab-footer__reg,
.ab-footer__legal p {
    color: #93a79b !important;
}

.ab-footer__legal {
    border-top: 1px solid #23362a;
    margin-top: 28px;
    padding-top: 18px;
    font-size: .85rem;
}

/* ---------- Sticky mobile bar ---------- */
.ab-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--ab-surface);
    border-top: 1px solid var(--ab-line);
    box-shadow: 0 -6px 18px rgba(0, 0, 0, .08);
    font-family: var(--ab-font);
    transition: transform .25s;
}

.ab-sticky .ab-btn {
    flex: 1;
}

.ab-sticky .ab-btn--gold {
    background: linear-gradient(135deg, var(--ab-gold), var(--ab-saffron));
    color: var(--ab-on-saffron) !important;
}

.ab-sticky.is-hidden {
    transform: translateY(110%);
}

.ab-btn--gold {
    background: linear-gradient(135deg, var(--ab-gold), var(--ab-saffron));
    color: var(--ab-on-saffron) !important;
}

@media (min-width: 900px) {
    .ab-sticky {
        display: none;
    }

    body {
        padding-bottom: 0;
    }
}

/* ---------- Motion ---------- */
.js .ab-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease var(--d, 0ms), transform .6s ease var(--d, 0ms);
}

.js .ab-reveal.is-in {
    opacity: 1;
    transform: none;
}

@keyframes ab-kenburns {
    from { transform: scale(1.1); }
    to { transform: scale(1); }
}

@keyframes ab-spin {
    to { transform: rotate(360deg); }
}

@keyframes ab-pop {
    0% { transform: scale(.97); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.ab-pop {
    display: inline-block;
    animation: ab-pop .35s ease;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .js .ab-reveal {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Inner pages in dark mode ---------- */
:root[data-theme="dark"] body:not(.home) {
    background: var(--ab-bg);
    color: var(--ab-ink);
}

:root[data-theme="dark"] body:not(.home) .bg-light {
    background-color: var(--ab-surface) !important;
}

/* ---------- Brand marquee: continuous rows, alternating direction ---------- */
.ab-marquee-group {
    display: grid;
    gap: 10px;
    margin: 4px 0 14px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.ab-marquee {
    overflow: hidden;
}

.ab-marquee__track {
    display: flex;
    gap: 10px;
    width: max-content;
    margin: 0;
    padding: 3px 0;
    list-style: none;
    animation: ab-slide var(--dur, 60s) linear infinite;
}

.ab-marquee--rev .ab-marquee__track {
    animation-direction: reverse;
}

.ab-marquee:hover .ab-marquee__track,
.ab-marquee:focus-within .ab-marquee__track {
    animation-play-state: paused;
}

@keyframes ab-slide {
    to { transform: translateX(calc(-50% - 5px)); }
}

.ab-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.ab-brand__cat {
    font-size: .72rem;
    color: var(--ab-muted);
    white-space: nowrap;
}

.ab-brands-wrap {
    margin-top: 36px;
}

.ab-home .ab-brands-note {
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {
    .ab-marquee-group {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .ab-marquee__track {
        width: auto;
        flex-wrap: wrap;
        padding: 3px 16px;
    }

    .ab-marquee__track [aria-hidden="true"] {
        display: none;
    }
}

/* ---------- Parallax ---------- */
.ab-hero__media {
    inset: -14% 0;
    transform: translate3d(0, var(--py, 0), 0);
    will-change: transform;
}

.ab-final__media {
    inset: -14% 0;
    transform: translate3d(0, var(--py, 0), 0);
}

.ab-type__img img {
    transform: translate3d(0, var(--py, 0), 0) scale(1.16);
    transition: transform .6s;
}

.ab-type:hover .ab-type__img img {
    transform: translate3d(0, var(--py, 0), 0) scale(1.22);
}

.ab-split__img img {
    transform: translate3d(0, var(--py, 0), 0) scale(1.16);
}

/* ---------- Page-load animation ---------- */
.js .ab-hero__inner>* {
    animation: ab-rise .7s cubic-bezier(.2, .7, .2, 1) both;
}

.js .ab-hero__inner>*:nth-child(1) { animation-delay: .1s; }
.js .ab-hero__inner>*:nth-child(2) { animation-delay: .22s; }
.js .ab-hero__inner>*:nth-child(3) { animation-delay: .36s; }
.js .ab-hero__inner>*:nth-child(4) { animation-delay: .48s; }
.js .ab-hero__inner>*:nth-child(5) { animation-delay: .6s; }

.ab-hero__media img {
    animation: ab-kenburns 24s ease-out both, ab-fade .9s ease both;
}

@keyframes ab-rise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
}

@keyframes ab-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---------- Buttons: motion ---------- */
.ab-btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform .18s cubic-bezier(.2, .7, .2, 1), box-shadow .2s, background-color .2s, border-color .2s;
}

.ab-btn::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 0;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
    transform: translateX(-140%) skewX(-18deg);
    transition: transform .65s ease;
    pointer-events: none;
}

.ab-btn:hover::after {
    transform: translateX(300%) skewX(-18deg);
}

.ab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}

.ab-btn--saffron:hover {
    box-shadow: 0 12px 28px rgba(240, 138, 36, .5);
}

.ab-btn:active {
    transform: translateY(0) scale(.97);
}

.ab-btn .ab-ico {
    transition: transform .2s;
}

.ab-btn:hover .ab-ico {
    transform: translateX(3px);
}

.ab-btn--pulse {
    animation: ab-pulse 2.8s ease-out 1.4s infinite;
}

@keyframes ab-pulse {
    0% { box-shadow: 0 8px 22px rgba(240, 138, 36, .35), 0 0 0 0 rgba(240, 138, 36, .55); }
    70%, 100% { box-shadow: 0 8px 22px rgba(240, 138, 36, .35), 0 0 0 16px rgba(240, 138, 36, 0); }
}

.ab-mode,
.ab-menu-btn,
.ab-round {
    transition: transform .18s, border-color .2s, background-color .2s;
}

.ab-mode:hover,
.ab-menu-btn:hover,
.ab-round:hover {
    transform: translateY(-2px);
    border-color: var(--ab-saffron);
}

.ab-mode:hover .ab-ico {
    transform: rotate(25deg);
}

.ab-mode .ab-ico {
    transition: transform .3s;
}

.ab-details summary::after {
    transition: transform .2s;
}

.ab-details[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}

/* ---------- Header: everything on one line, active link follows the page ---------- */
.ab-nav.is-open>ul>li>a.is-active {
    color: var(--ab-green) !important;
    font-weight: 700;
}

@media (min-width: 1024px) {
    .ab-header__bar {
        gap: 14px;
    }

    .ab-logo {
        margin-right: 0;
        flex: none;
    }

    .ab-logo__mark {
        width: 40px;
        height: 40px;
    }

    .ab-nav,
    .ab-nav.is-open {
        flex: 1;
        margin: 0;
    }

    .ab-nav ul {
        justify-content: center;
        align-items: center;
        gap: 4px;
    }

    .ab-nav>ul>li>a {
        position: relative;
        display: flex;
        align-items: center;
        height: 44px;
        padding: 0 10px;
        white-space: nowrap;
        transition: color .2s;
    }

    .ab-nav>ul>li>a::after {
        content: "";
        position: absolute;
        left: 10px;
        right: 10px;
        bottom: 5px;
        height: 3px;
        border-radius: 3px;
        background: linear-gradient(90deg, var(--ab-saffron), var(--ab-gold));
        transform: scaleX(0);
        transform-origin: 0 50%;
        transition: transform .25s;
    }

    .ab-nav>ul>li>a:hover {
        background: none;
    }

    .ab-nav>ul>li>a:hover::after,
    .ab-nav>ul>li>a.is-active::after {
        transform: scaleX(1);
    }

    .ab-nav>ul>li>a.is-active {
        color: var(--ab-green) !important;
        font-weight: 600;
    }

    .ab-header__cta {
        flex: none;
        min-height: 44px;
    }

    .ab-header__tools {
        flex: none;
    }
}

/* ---------- Tables: easy to read ---------- */
.ab-table {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius-sm);
    overflow: hidden;
    background: var(--ab-surface);
}

.ab-table caption {
    font-family: var(--ab-display);
    font-size: 1.05rem;
    padding: 0 0 8px;
}

.ab-table thead th {
    background: var(--ab-surface-2);
    color: var(--ab-ink);
    font-size: .88rem;
}

.ab-table thead td {
    background: var(--ab-surface-2);
}

.ab-table tr:last-child>* {
    border-bottom: 0;
}

.ab-table th,
.ab-table td {
    padding: 11px 12px;
    vertical-align: middle;
}

.ab-table tbody tr:hover>* {
    background: var(--ab-surface-2);
}

.ab-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .84rem;
    font-weight: 600;
    line-height: 1.3;
}

.ab-pill--good {
    background: var(--ab-green-soft);
    color: var(--ab-green);
}

.ab-pill--warn {
    background: var(--ab-saffron-soft);
    color: var(--ab-saffron-text);
}

.ab-pill--off {
    background: var(--ab-surface-2);
    color: var(--ab-muted);
}

.ab-compare__sys {
    display: none;
}

/* Phones: each feature becomes a mini card with three labelled values, so nothing scrolls sideways */
@media (max-width: 639px) {

    .ab-compare,
    .ab-compare tbody {
        display: block;
        border: 0;
        background: none;
        overflow: visible;
    }

    .ab-compare thead {
        display: none;
    }

    .ab-compare tbody tr {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        padding: 10px;
        margin-bottom: 8px;
        border: 1px solid var(--ab-line);
        border-radius: var(--ab-radius-sm);
        background: var(--ab-surface);
    }

    .ab-compare tbody tr>* {
        padding: 0;
        border: 0;
        background: none !important;
        min-width: 0;
    }

    .ab-compare tbody th {
        grid-column: 1 / -1;
        font-weight: 600;
    }

    .ab-compare__sys {
        display: block;
        font-size: .74rem;
        color: var(--ab-muted);
        margin-bottom: 2px;
    }

    .ab-pill {
        padding: 2px 7px;
        font-size: .78rem;
    }

    .ab-split-table,
    .ab-split-table tbody {
        display: block;
    }

    .ab-split-table caption {
        display: block;
        padding: 10px 12px 2px;
    }

    .ab-split-table thead {
        display: none;
    }

    .ab-split-table tbody tr {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 2px 10px;
        padding: 10px 12px;
        border-bottom: 1px solid var(--ab-line);
    }

    .ab-split-table tbody tr:last-child {
        border-bottom: 0;
    }

    .ab-split-table tbody tr>* {
        padding: 0;
        border: 0;
    }

    .ab-split-table tbody th {
        grid-column: 1 / -1;
    }

    .ab-split-table__amt {
        text-align: right;
    }
}

.ab-split-table__pct {
    font-weight: 700;
    color: var(--ab-saffron-text);
}

.ab-split-table__amt {
    white-space: nowrap;
    font-weight: 500;
}

.ab-bar {
    display: block;
    height: 6px;
    margin-top: 6px;
    border-radius: 6px;
    background: var(--ab-surface-2);
    overflow: hidden;
}

.ab-bar i {
    display: block;
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--ab-gold), var(--ab-saffron));
}
