:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --text: #1a2b4c;
    --muted: #64748b;
    --primary: #1a2b4c;
    --primary-dark: #0f1a2e;
    --accent: #ff8c00;
    --accent-dark: #e67e00;
    --border: #e2e8f0;
    --shadow: 0 10px 30px rgba(26, 43, 76, 0.08);
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Assistant", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.9rem 0;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: inherit;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-icon {
    display: block;
    width: 36px;
    height: 42px;
    flex-shrink: 0;
}

.brand-logo {
    display: block;
    height: 52px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: transparent;
    color: var(--accent);
    font-size: 1.2rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.brand-text small,
.brand-tagline {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 400;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.site-nav-primary {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.nav-link {
    color: var(--text);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    padding: 0.45rem 0.7rem;
    border-radius: 8px;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    font: inherit;
    cursor: pointer;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--accent);
    text-decoration: none;
}

.nav-link.is-active {
    color: var(--text);
    border-bottom-color: var(--accent);
}

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
}

.btn-login:hover {
    border-color: #cbd5e1;
    text-decoration: none;
}

.btn-login-icon {
    flex-shrink: 0;
    opacity: 0.7;
}

.nav-dropdown { position: relative; }

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    min-width: 220px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 0.5rem;
    z-index: 110;
}

.nav-dropdown-menu.is-open { display: block; }

.nav-dropdown-menu a {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}

.nav-dropdown-menu a:hover { background: #f1f5f9; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.site-main { min-height: 50vh; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.2rem;
    border-radius: 999px;
    border: 0;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-dark);
    text-decoration: none;
}

.btn-secondary {
    background: #fff4e6;
    color: var(--accent-dark);
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    gap: 0.5rem;
}

.btn-accent:hover {
    background: var(--accent-dark);
    text-decoration: none;
}

.btn-outline {
    background: #fff;
    color: var(--text);
    border: 2px solid var(--text);
    gap: 0.5rem;
}

.btn-outline:hover {
    background: var(--text);
    color: #fff;
    text-decoration: none;
}

.btn-lg {
    padding: 0.9rem 1.75rem;
    font-size: 1.05rem;
    border-radius: 12px;
}

.hero,
.page-head {
    padding: 3rem 0 2rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 1.5rem;
    align-items: start;
}

.hero-card,
.info-card,
.cta-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-card,
.cta-box {
    padding: 1.5rem;
}

.eyebrow {
    color: var(--primary);
    font-weight: 700;
    margin: 0 0 0.5rem;
}

h1,
h2,
h3 {
    line-height: 1.2;
    margin: 0 0 1rem;
}

h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.lead {
    font-size: 1.125rem;
    color: var(--muted);
    max-width: 60ch;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.stat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stat-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.note,
.table-meta {
    color: var(--muted);
    font-size: 0.95rem;
}

.section {
    padding: 2rem 0 3rem;
}

.section-muted {
    background: #eaf2fb;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.info-card {
    padding: 1.25rem;
}

.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: end;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.filters label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 600;
}

.filters select {
    min-width: 180px;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font: inherit;
}

.table-wrap {
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.plan-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.plan-table th,
.plan-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    text-align: right;
    vertical-align: middle;
}

.plan-table th {
    background: #f8fbff;
    font-size: 0.95rem;
}

.provider-cell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem 1rem;
    direction: rtl;
    min-width: 200px;
}

.provider-cell-logo {
    flex-shrink: 0;
    line-height: 0;
}

.provider-logo {
    display: block;
    width: 64px;
    height: 32px;
    max-width: 64px;
    max-height: 32px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3px 5px;
    box-sizing: border-box;
}

.provider-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
    background: #eff6ff;
}

.provider-cell-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    text-align: right;
}

.provider-cell-text .provider-name {
    font-size: 0.98rem;
    line-height: 1.3;
}

.provider-cell-text .plan-name {
    margin: 0;
    line-height: 1.35;
}

.plan-table .provider-cell-text .subtle {
    display: block;
}

.calc-best-provider {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    direction: rtl;
    margin-bottom: 0.75rem;
}

.calc-best-provider .provider-logo {
    width: 80px;
    height: 40px;
    max-width: 80px;
    max-height: 40px;
}

.subtle {
    display: block;
    color: var(--muted);
    font-size: 0.92rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-weight: 800;
}

.inline-list {
    margin: 0;
    padding-right: 1rem;
}

.faq-list details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-bottom: 0.75rem;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 700;
}

.site-footer {
    background: #0f172a;
    color: #e2e8f0;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
}

.footer-brand p {
    color: #94a3b8;
    max-width: 36ch;
    margin-top: 0.5rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
}

.footer-col li { margin-bottom: 0.45rem; }

.site-footer a {
    color: #e2e8f0;
    text-decoration: none;
}

.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    font-size: 0.92rem;
}

.content-body {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    max-width: 800px;
}

.content-body h2,
.content-body h3 {
    margin-top: 1.5rem;
}

.content-body ul,
.content-body ol {
    padding-right: 1.25rem;
}

.meter-lookup-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.5rem;
    align-items: start;
}

.meter-lookup-card,
.meter-info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.meter-info-card h2,
.meter-info-card h3 {
    margin-top: 0;
}

.meter-benefits {
    padding-right: 1.2rem;
    margin: 1rem 0;
}

.meter-lookup-form {
    display: grid;
    gap: 1rem;
}

.meter-field label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.meter-field input {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font: inherit;
}

.meter-field input:focus {
    outline: 2px solid rgba(11, 107, 203, 0.25);
    border-color: var(--primary);
}

.meter-field input.is-locked,
.meter-field input:disabled {
    background: #f8fafc;
    color: var(--muted);
    cursor: not-allowed;
}

.meter-field-hint {
    margin: 0.35rem 0 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.btn-block {
    width: 100%;
}

.autocomplete-wrap {
    position: relative;
}

.suggestions {
    position: absolute;
    top: calc(100% + 0.25rem);
    right: 0;
    left: 0;
    z-index: 20;
    list-style: none;
    margin: 0;
    padding: 0.35rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
    max-height: 220px;
    overflow-y: auto;
}

.suggestions button {
    width: 100%;
    text-align: right;
    border: 0;
    background: transparent;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    font: inherit;
    cursor: pointer;
}

.suggestions button:hover {
    background: #f1f5f9;
}

.meter-popular {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.92rem;
    color: var(--muted);
}

.meter-chip {
    border: 1px solid var(--border);
    background: #f8fbff;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font: inherit;
    cursor: pointer;
}

.meter-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.meter-result {
    margin-top: 1.25rem;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.meter-result-success {
    background: #ecfdf5;
    border-color: #86efac;
}

.meter-result-unknown {
    background: #fff7ed;
    border-color: #fdba74;
}

.meter-result-note {
    color: var(--muted);
    font-size: 0.95rem;
}

.meter-alert {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.meter-alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

/* Calculator / consumption upload */
.calc-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
    align-items: start;
}

.calc-upload-panel,
.calc-help-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.upload-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 220px;
    padding: 2rem 1.5rem;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}

.upload-dropzone input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.upload-dropzone:hover,
.upload-dropzone.is-dragover {
    border-color: var(--primary);
    background: #f0f7ff;
}

.upload-icon {
    font-size: 2.5rem;
}

.upload-hint,
.upload-file-name {
    color: var(--muted);
    font-size: 0.95rem;
}

.upload-file-name {
    color: var(--primary);
    font-weight: 600;
}

.calc-option {
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.btn-lg {
    padding: 0.9rem 1.5rem;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

.alert-error {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.steps-list {
    margin: 0;
    padding-right: 1.2rem;
    color: var(--muted);
}

.steps-list li + li {
    margin-top: 0.5rem;
}

.calc-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card,
.calc-stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow);
}

.calc-stat span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.calc-stat strong {
    display: block;
    font-size: 1.35rem;
    margin: 0.35rem 0;
}

.calc-stat small {
    color: var(--muted);
    font-size: 0.85rem;
}

.calc-best-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #ecfdf5 0%, #eff6ff 100%);
    border: 1px solid #bbf7d0;
}

.calc-best-box h2 {
    margin-bottom: 0.5rem;
}

.calc-results-table .row-best {
    background: #f0fdf4;
}

.badge-best {
    background: #16a34a;
    color: #fff;
    margin-right: 0.35rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    cursor: pointer;
}

.calc-meta-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.calc-meta-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    min-height: 74px;
}

.calc-meta-item span {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.calc-meta-item strong {
    display: block;
    font-size: 0.98rem;
    line-height: 1.35;
    word-break: break-word;
}

.calc-dry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.calc-dry-group {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow);
}

.calc-dry-group h3 {
    margin: 0 0 0.85rem;
    font-size: 1.05rem;
}

.calc-dry-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.calc-dry-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    background: #f8fbff;
}

.calc-dry-card span {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
}

.calc-dry-card strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.45rem;
}

.calc-period-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    margin-bottom: 1.5rem;
}

.calc-period-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.calc-period-head h2 {
    margin: 0;
    font-size: 1.15rem;
}

.calc-period-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.calc-period-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
}

.calc-period-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.calc-period-tab.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Meter bill calculator */
.meter-calc-rate-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.65rem 1rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
}

.meter-calc-rate-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.meter-calc-rate-unit {
    color: var(--muted);
    font-size: 0.95rem;
}

.meter-calc-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.5rem;
    align-items: start;
}

.meter-calc-panel,
.meter-calc-result-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.meter-calc-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.meter-calc-panel-title {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
}

.meter-calc-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.meter-calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.meter-calc-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.meter-calc-field > span {
    font-weight: 700;
    font-size: 0.95rem;
}

.meter-calc-field input,
.meter-calc-field select {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font: inherit;
    background: #fff;
}

.meter-calc-field input:focus,
.meter-calc-field select:focus {
    outline: 2px solid rgba(11, 107, 203, 0.25);
    border-color: var(--primary);
}

.meter-calc-input-suffix {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meter-calc-input-suffix input {
    flex: 1;
}

.meter-calc-input-suffix > span {
    font-weight: 700;
    color: var(--muted);
}

.meter-calc-form-note {
    margin: 0;
    font-size: 0.92rem;
}

.meter-calc-error {
    margin: 0;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.meter-calc-result-card {
    background: linear-gradient(160deg, #0b6bcb 0%, #1d4ed8 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.meter-calc-result-label {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.meter-calc-result-intro {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
}

.meter-calc-result-amount {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.meter-calc-result-footnote {
    margin: 0.75rem 0 0;
    font-size: 0.88rem;
    opacity: 0.9;
}

.meter-calc-breakdown {
    margin: 1.25rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    display: grid;
    gap: 0.55rem;
}

.meter-calc-breakdown > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.95rem;
}

.meter-calc-breakdown > div.is-total {
    font-weight: 800;
    font-size: 1.05rem;
    padding-top: 0.35rem;
}

.meter-calc-breakdown dt,
.meter-calc-breakdown dd {
    margin: 0;
}

.meter-calc-components {
    padding-right: 1.2rem;
    margin: 1rem 0 0;
    line-height: 1.7;
}

.meter-calc-fixed-table {
    min-width: 640px;
}

.meter-calc-cta {
    margin-top: 0.25rem;
}

.meter-calc-cta h3 {
    margin-top: 0;
}

.onboarding-consumption-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
    align-items: start;
}

.onboarding-skip-form {
    margin-top: 0.5rem;
}

.onboarding-steps {
    margin-top: 1.5rem;
}

.onboarding-steps ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.onboarding-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.onboarding-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    border: 2px solid var(--border);
    font-weight: 800;
    font-size: 0.85rem;
    background: #fff;
}

.onboarding-step.active .onboarding-step-num,
.onboarding-step.done .onboarding-step-num {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.onboarding-step.active {
    color: var(--text);
    font-weight: 700;
}

.onboarding-section-title {
    margin: 0 0 0.35rem;
    text-align: center;
}

.onboarding-section-lead {
    margin: 0 0 1.5rem;
    text-align: center;
    color: var(--muted);
}

.onboarding-meter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.onboarding-meter-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1.5rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.onboarding-meter-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.onboarding-meter-card.is-selected,
.onboarding-meter-card:has(input:checked) {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 107, 203, 0.12);
}

.onboarding-meter-icon {
    font-size: 2rem;
    line-height: 1;
}

.onboarding-option {
    margin: 0.5rem 0 1rem;
}

.onboarding-help-link {
    text-align: center;
    margin: 0 0 1.25rem;
}

.onboarding-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.onboarding-results-note {
    margin-bottom: 1.25rem;
}

.onboarding-results-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.onboarding-best-box {
    margin-bottom: 1.25rem;
}

.page-head-onboarding .lead {
    max-width: 42rem;
}

@media (max-width: 900px) {
    .brand-tagline { display: none; }

    .nav-toggle { display: flex; }

    .site-nav {
        display: none;
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 0.75rem;
        box-shadow: var(--shadow);
    }

    .site-nav.is-open { display: flex; }

    .site-nav-primary {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-link { width: 100%; text-align: right; }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: 0;
        padding: 0 0.5rem 0.5rem;
    }

    .nav-cta,
    .nav-login { width: 100%; margin-top: 0.5rem; justify-content: center; }

    .meter-calc-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid,
    .cards-grid,
    .footer-grid,
    .home-hero-grid,
    .home-steps-grid,
    .home-simulator-grid,
    .home-features-grid,
    .home-trust-inner,
    .meter-lookup-layout,
    .meter-calc-layout,
    .onboarding-consumption-layout,
    .onboarding-meter-grid,
    .calc-layout,
    .calc-summary-grid,
    .calc-meta-bar,
    .calc-dry-grid,
    .calc-dry-cards {
        grid-template-columns: 1fr;
    }

    .main-nav {
        display: none;
    }

    .home-hero-features {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-trust-inner {
        flex-direction: column;
        text-align: center;
    }

    .home-trust-providers,
    .home-trust-users,
    .home-trust-secure {
        justify-content: center;
    }

    .home-savings-card {
        right: 1rem;
        bottom: 1rem;
    }
}

/* ── Homepage (mockup) ── */

.home-page {
    overflow-x: hidden;
}

.site-main:has(.home-page) {
    min-height: auto;
}

.text-accent {
    color: var(--accent);
}

.home-hero {
    padding: 3rem 0 2.5rem;
    background: #fff;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.home-hero-title {
    font-size: clamp(2.1rem, 4.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 1.25rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.home-hero-lead {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 1.75rem;
    max-width: 46ch;
}

.home-hero-features {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
}

.home-hero-features li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    max-width: 110px;
    line-height: 1.35;
}

.home-feature-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.home-feature-icon svg {
    width: 22px;
    height: 22px;
}

.home-hero-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.home-hero-note {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.home-hero-visual {
    position: relative;
}

.home-hero-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 520px;
    margin-inline-start: auto;
}

.home-savings-card {
    position: absolute;
    bottom: 2rem;
    right: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(26, 43, 76, 0.12);
    padding: 1rem 1.35rem;
    text-align: center;
    min-width: 170px;
}

.home-savings-label {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 0.25rem;
}

.home-savings-amount {
    display: block;
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.1;
    margin-bottom: 0.2rem;
}

.home-savings-sub {
    display: block;
    font-size: 0.72rem;
    color: var(--muted);
}

.home-trust-bar {
    padding: 0 0 2rem;
    background: #fff;
}

.home-trust-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.1rem 1.5rem;
}

.home-trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.home-trust-item strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.home-trust-item p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
    max-width: 22ch;
    line-height: 1.4;
}

.home-trust-secure {
    color: var(--text);
    font-weight: 600;
    gap: 0.5rem;
}

.home-trust-secure svg {
    color: var(--accent);
    flex-shrink: 0;
}

.home-provider-logos {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.home-provider-logo {
    width: 48px;
    height: 28px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2px 4px;
}

.home-provider-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent);
    background: #fff4e6;
}

.home-trust-avatars {
    display: flex;
}

.home-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: hsl(var(--hue, 210) 70% 88%);
    color: hsl(var(--hue, 210) 50% 35%);
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid #fff;
    margin-inline-start: -8px;
}

.home-avatar:first-child {
    margin-inline-start: 0;
}

.home-steps {
    padding: 4rem 0;
    background: #fff;
}

.home-section-title {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin: 0 0 2.5rem;
    color: var(--text);
}

.home-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
}

.home-steps-grid::before {
    content: "";
    position: absolute;
    top: 52px;
    right: 18%;
    left: 18%;
    border-top: 2px dashed #e2e8f0;
    z-index: 0;
}

.home-step-card {
    position: relative;
    z-index: 1;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(26, 43, 76, 0.06);
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
}

.home-step-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.home-step-icon svg {
    width: 28px;
    height: 28px;
}

.home-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.home-step-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 0 0.65rem;
    color: var(--text);
}

.home-step-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ── Recommended packages slider ── */

.home-packages {
    padding: 3.5rem 0 4rem;
    background: #fff;
}

.home-packages-head {
    text-align: center;
    margin-bottom: 2rem;
}

.home-section-sub {
    margin: -1.5rem 0 0;
    color: var(--muted);
    font-size: 1rem;
}

.home-packages-empty {
    text-align: center;
    color: var(--muted);
}

.home-packages-slider {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
}

.home-slider-viewport {
    overflow: hidden;
}

.home-slider-track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0.75rem 0.25rem 1rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
    direction: ltr;
}

.home-slider-track::-webkit-scrollbar {
    display: none;
}

.home-slider-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(26, 43, 76, 0.06);
    transition: border-color 0.2s, color 0.2s;
}

.home-slider-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.home-slider-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.home-plan-card {
    position: relative;
    flex: 0 0 min(280px, calc(100vw - 5rem));
    scroll-snap-align: start;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem 1.35rem 1.35rem;
    box-shadow: 0 4px 20px rgba(26, 43, 76, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    direction: rtl;
}

.home-plan-card.is-best {
    border-color: var(--accent);
    box-shadow: 0 8px 28px rgba(255, 140, 0, 0.15);
}

.home-plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #16a34a;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    white-space: nowrap;
}

.home-plan-logo {
    margin-bottom: 0.85rem;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-plan-logo img {
    max-width: 80px;
    max-height: 36px;
    object-fit: contain;
}

.home-plan-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #fff4e6;
    color: var(--accent);
    font-weight: 800;
    font-size: 1.1rem;
}

.home-plan-name {
    margin: 0 0 0.15rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
}

.home-plan-subname {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 0.15rem;
}

.home-plan-type {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.home-plan-price {
    margin-bottom: 0.5rem;
    line-height: 1;
}

.home-plan-price strong {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
}

.home-plan-price span {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 600;
}

.home-plan-savings {
    margin: 0 0 1.1rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.home-plan-savings strong {
    color: #16a34a;
    font-weight: 800;
}

.home-plan-features {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    width: 100%;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.home-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text);
    line-height: 1.4;
}

.home-plan-features svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.home-plan-cta {
    width: 100%;
    margin-top: auto;
    text-decoration: none;
}

.btn-outline-sm {
    background: #fff;
    color: var(--text);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.btn-outline-sm:hover {
    border-color: var(--text);
    text-decoration: none;
}

.home-packages-note {
    text-align: center;
    margin: 1rem 0 0;
    font-size: 0.8rem;
    color: var(--muted);
}

.home-phone-mockup {
    max-width: 300px;
    width: 100%;
    height: auto;
}

.home-simulator {
    padding: 4rem 0;
    background: linear-gradient(135deg, #ebf5ff 0%, #f8fafc 50%, #fff 100%);
}

.home-simulator-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: center;
}

.home-simulator-visual {
    display: flex;
    justify-content: center;
}

.home-simulator-visual img {
    max-width: 280px;
    width: 100%;
    height: auto;
}

.home-simulator-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin: 0 0 1.5rem;
    color: var(--text);
    line-height: 1.25;
}

.home-checklist {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.home-checklist li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.home-checklist svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.home-features-bar {
    padding: 2.5rem 0;
    background: #f8f9fa;
    border-top: 1px solid var(--border);
}

.home-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.home-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.home-feature-bar-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    color: var(--accent);
    flex-shrink: 0;
}

.home-feature-bar-icon svg {
    width: 20px;
    height: 20px;
}

.home-feature-item strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.15rem;
}

.home-feature-item p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.4;
}

@media (max-width: 1100px) {
    .site-nav-primary {
        gap: 0;
    }

    .nav-link {
        padding: 0.4rem 0.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 900px) {
    .home-hero {
        padding: 2rem 0 1.5rem;
    }

    .home-steps-grid::before {
        display: none;
    }

    .home-simulator-visual {
        order: unset;
    }

    .home-packages-slider {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .home-slider-btn {
        display: none;
    }

    .home-slider-track {
        padding-inline: 0;
    }

    .home-plan-card {
        flex-basis: min(300px, 85vw);
    }
}
