/* ============================================================
   SECTION TEMPLATES — FINANCE
   ============================================================
   partials/sections/ways-to-pay.php         — Ways to Pay Comparison
   partials/sections/subproduct-teaser.php   — Sub-product Teaser Card
   partials/sections/current-offers.php      — Current Offers Grid
   partials/sections/finance-calculator.php  — Interactive Finance Calculator
   partials/sections/how-it-works.php        — How It Works — Steps
   partials/sections/whats-bundled.php       — What's Bundled In Grid
   partials/sections/charging-incentives.php — Charging Incentives Block
   partials/sections/for-employers.php       — For Employers Block

   Builds on the shared tokens/utilities in css/sections-base.css
   (--sec-pad-y/x, .sec, .sec-alt, .sec-inner, .sec-head, .sec-grid,
   .sec-card, .img-placeholder, .tbd). Do not redefine those here —
   extend, don't duplicate. Form-style inputs (finance-calculator.php)
   reuse .f-label/.f-input/.f-select from global.css and are not
   redefined here either.
============================================================ */

/* ---------- Ways to Pay Comparison ---------- */
.sec-ways-to-pay-row {
    display: grid;
    grid-template-columns: repeat(var(--wtp-cols, 4), 1fr);
    gap: var(--sec-gap);
    align-items: stretch;
}
.wtp-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--sec-radius);
    padding: 30px 26px;
}
.wtp-card-featured {
    border-color: var(--red);
    box-shadow: 0 0 0 1px var(--red);
}
.wtp-card-name {
    font-family: 'Epilogue', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 14px;
}
.wtp-card-figure {
    font-family: 'Epilogue', sans-serif;
    font-weight: 700;
    font-size: 26px;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.15;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}
.wtp-card-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    flex-grow: 1;
}
.wtp-card-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.55;
    color: var(--ink-mid);
}
.wtp-card-bullets li::before {
    content: '';
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--red);
}
.wtp-card .btn-outline,
.wtp-card .btn-primary {
    text-align: center;
    margin-top: auto;
}

@media (max-width: 1080px) {
    .sec-ways-to-pay-row { grid-template-columns: repeat(min(2, var(--wtp-cols, 4)), 1fr); }
}
@media (max-width: 600px) {
    .sec-ways-to-pay-row { grid-template-columns: 1fr; }
}

/* ---------- Sub-product Teaser Card ---------- */
.sec-subproduct-teaser { padding-top: 0; padding-bottom: 0; }
.subproduct-teaser-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--sec-radius);
    padding: 30px 28px;
}
.subproduct-teaser-card .img-placeholder { margin-bottom: 20px; }
.subproduct-teaser-kicker {
    font-family: 'Epilogue', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 12px;
}
.subproduct-teaser-title {
    font-family: 'Epilogue', sans-serif;
    font-weight: 600;
    font-size: 19px;
    letter-spacing: -0.01em;
    color: var(--ink);
    line-height: 1.25;
    margin-bottom: 10px;
}
.subproduct-teaser-dek {
    font-size: 13.5px;
    font-weight: 300;
    line-height: 1.65;
    color: var(--ink-mid);
    margin-bottom: 22px;
    flex-grow: 1;
}
.subproduct-teaser-card .btn-teaser { align-self: flex-start; margin-top: auto; }

/* ---------- Current Offers Grid ---------- */
.offer-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--sec-radius);
    padding: 28px 26px;
}
.offer-card-tag {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 6px;
    font-family: 'Epilogue', sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--red);
    border-radius: 3px;
    padding: 5px 9px;
    margin-bottom: 16px;
}
.offer-card-title {
    font-family: 'Epilogue', sans-serif;
    font-weight: 600;
    font-size: 17px;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 10px;
}
.offer-card-detail {
    font-size: 13.5px;
    font-weight: 300;
    line-height: 1.65;
    color: var(--ink-mid);
    margin-bottom: 18px;
    flex-grow: 1;
}
.offer-card-expiry {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--red-deep);
    margin-bottom: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--border2);
}
.offer-card .btn-outline { align-self: flex-start; }

/* ---------- Interactive Finance Calculator ---------- */
.sec-finance-calculator-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--sec-radius);
    padding: 44px 40px;
    align-items: start;
}
.calc-inputs .f-group:last-child { margin-bottom: 0; }
.calc-range-row {
    display: flex;
    align-items: center;
    gap: 14px;
}
.calc-range-row input[type="range"] {
    flex-grow: 1;
    accent-color: var(--red);
    height: 4px;
    cursor: pointer;
}
.calc-range-value {
    font-family: 'Epilogue', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--ink);
    min-width: 60px;
    text-align: right;
}
.calc-output {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--sec-radius);
    padding: 32px 28px;
}
.calc-output-label {
    font-family: 'Epilogue', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 10px;
}
.calc-output-value {
    font-family: 'Epilogue', sans-serif;
    font-weight: 700;
    font-size: 40px;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.1;
    margin-bottom: 18px;
}
.calc-output-value span { font-size: 16px; font-weight: 400; color: var(--ink-mid); }
.calc-output-breakdown {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    margin-bottom: 16px;
}
.calc-output-breakdown li {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    font-weight: 300;
    color: var(--ink-mid);
}
.calc-output-breakdown li strong { font-weight: 600; color: var(--ink); }
.calc-output .tbd { margin-left: 0; }
.calc-note {
    font-size: 11.5px;
    font-weight: 300;
    color: var(--ink-mid);
    line-height: 1.6;
}

@media (max-width: 935px) {
    .sec-finance-calculator-panel { grid-template-columns: 1fr; gap: 36px; padding: 32px 24px; }
}

/* ---------- How It Works — Steps ---------- */
.sec-how-it-works-steps {
    display: grid;
    grid-template-columns: repeat(var(--hiw-cols, 4), 1fr);
    gap: var(--sec-gap);
    counter-reset: hiw-step;
}
.sec-how-it-works-steps.hiw-vertical {
    grid-template-columns: 1fr;
    max-width: 720px;
}
.hiw-step {
    position: relative;
    padding-top: 8px;
}
.hiw-step-number {
    counter-increment: hiw-step;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--white);
    font-family: 'Epilogue', sans-serif;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 16px;
}
.hiw-step-number::before { content: counter(hiw-step); }
.hiw-step-title {
    font-family: 'Epilogue', sans-serif;
    font-weight: 600;
    font-size: 15.5px;
    color: var(--ink);
    margin-bottom: 8px;
}
.hiw-step-body {
    font-size: 13px;
    font-weight: 300;
    line-height: 1.65;
    color: var(--ink-mid);
}
.hiw-vertical .hiw-step {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 20px;
    padding-bottom: 28px;
    margin-bottom: 4px;
    border-left: 1px solid var(--border);
    padding-left: 24px;
    margin-left: 20px;
}
.hiw-vertical .hiw-step:last-child { padding-bottom: 0; }
.hiw-vertical .hiw-step-number { margin-bottom: 0; margin-left: -44px; }
.hiw-vertical .hiw-step-copy { padding-top: 8px; }

@media (max-width: 935px) {
    .sec-how-it-works-steps { grid-template-columns: repeat(min(2, var(--hiw-cols, 4)), 1fr); }
}
@media (max-width: 600px) {
    .sec-how-it-works-steps { grid-template-columns: 1fr; }
}

/* ---------- What's Bundled In Grid ---------- */
.bundled-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--sec-radius);
    padding: 22px 22px;
}
.bundled-item-mark {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--red-pale);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
}
.bundled-item-mark svg { width: 13px; height: 13px; }
.bundled-item-label {
    font-family: 'Epilogue', sans-serif;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--ink);
    margin-bottom: 6px;
}
.bundled-item-body {
    font-size: 12.5px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--ink-mid);
}

/* ---------- Charging Incentives Block ---------- */
.sec-charging-incentives-inner { max-width: 980px; }
.charging-incentives-list {
    display: grid;
    grid-template-columns: repeat(var(--ci-cols, 2), 1fr);
    gap: var(--sec-gap);
    margin-top: 8px;
}
.charging-incentive {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 22px 0;
    border-top: 1px solid var(--border);
}
.charging-incentive-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
}
.charging-incentive-icon svg { width: 17px; height: 17px; }
.charging-incentive-label {
    font-family: 'Epilogue', sans-serif;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--ink);
    margin-bottom: 6px;
}
.charging-incentive-body {
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--ink-mid);
}

@media (max-width: 600px) {
    .charging-incentives-list { grid-template-columns: 1fr; }
}

/* ---------- For Employers Block ---------- */
.sec-for-employers-panel {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 56px;
    align-items: center;
    background: var(--ink);
    color: var(--white);
    border-radius: var(--sec-radius);
    padding: 52px 48px;
}
.for-employers-copy .kicker-tag { color: var(--red); }
.for-employers-title {
    font-size: clamp(22px, 2.6vw, 30px);
    color: var(--white);
    margin-bottom: 14px;
    text-wrap: balance;
}
.for-employers-pitch {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255,255,255,0.72);
    margin-bottom: 26px;
    max-width: 52ch;
}
.for-employers-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.for-employers-points li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13.5px;
    font-weight: 300;
    color: rgba(255,255,255,0.88);
    line-height: 1.5;
}
.for-employers-points li::before {
    content: '';
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--red);
}
.for-employers-cta { margin-top: 8px; }
.sec-for-employers-panel .btn-outline {
    border-color: rgba(255,255,255,0.4);
    color: var(--white);
}
.sec-for-employers-panel .btn-outline:hover { background: var(--white); color: var(--ink); }

@media (max-width: 935px) {
    .sec-for-employers-panel { grid-template-columns: 1fr; padding: 40px 28px; gap: 32px; }
}

/* ---------- Shared focus-visible states ---------- */
.wtp-card a:focus-visible,
.subproduct-teaser-card a:focus-visible,
.offer-card a:focus-visible,
.for-employers-cta a:focus-visible,
.hiw-step a:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}
.calc-inputs input:focus-visible,
.calc-inputs select:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}
