:root {
    --primary: #223A5C;
    --primary-light: #05D6A1;
    --primary-lighter: #04c090;
    --accent: #38a169;
    --accent-dark: #276749;
    --bg: #F0F0F0;
    --card-bg: #ffffff;
    --text: #111827;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --border: #d1d5db;
    --border-light: #e5e7eb;
    --warning: #dd6b20;
    --danger: #c53030;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius: 6px;
    --radius-sm: 4px;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px;
}

header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 0;
    margin-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-logo:hover {
    color: var(--primary);
}

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 110;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

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

.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--text);
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: none;
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    transition: border-color var(--transition);
}

.card h2 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
    font-weight: 700;
    letter-spacing: -0.3px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

label .optional {
    color: var(--text-light);
    font-weight: 400;
}

input, select {
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.93rem;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: white;
    color: var(--text);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(5, 214, 161, 0.15);
}

input::placeholder {
    color: var(--text-lighter);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    letter-spacing: 0.01em;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary-light);
    color: var(--primary);
    box-shadow: none;
}

.btn-primary:hover {
    background: var(--primary-lighter);
    box-shadow: none;
    transform: translateY(-1px);
}

.btn-primary:disabled {
    background: var(--text-lighter);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-row {
    margin-top: 24px;
    text-align: center;
}

.form-section-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.form-section-label .optional {
    color: var(--text-light);
    font-weight: 400;
}

.section-divider {
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.report-section {
    position: relative;
    animation: fadeInUp 0.4s ease-out both;
    margin-bottom: 12px;
}

.report-section:nth-child(1) { animation-delay: 0s; }
.report-section:nth-child(2) { animation-delay: 0.08s; }
.report-section:nth-child(3) { animation-delay: 0.16s; }
.report-section:nth-child(4) { animation-delay: 0.24s; }
.report-section:nth-child(5) { animation-delay: 0.32s; }
.report-section:nth-child(6) { animation-delay: 0.40s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-number {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--border);
    line-height: 1;
    user-select: none;
    opacity: 0.6;
}

.section-number-alt {
    font-size: 1.6rem;
    opacity: 0.4;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    letter-spacing: -0.3px;
}

.subsection-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 24px 0 14px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    letter-spacing: -0.2px;
}

.hero-card {
    border-left: 4px solid var(--primary);
}

.hero-property-line {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.hero-valuation-box {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 28px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.hero-valuation-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: none;
    pointer-events: none;
}

.hero-estimate {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
    position: relative;
}

.hero-estimate-secondary {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-top: 8px;
}

.hero-estimate-label {
    font-size: 0.88rem;
    color: var(--text-light);
    font-weight: 500;
}

.hero-range {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-top: 6px;
    font-weight: 500;
}

.hero-range-primary {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
    margin-top: 0;
}

.hero-meta {
    margin-top: 20px;
}

.hero-badges-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.confidence-statement {
    font-size: 0.93rem;
    line-height: 1.65;
    color: var(--text-light);
    margin: 0;
    text-align: center;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.market-velocity-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.market-velocity-badge.velocity-fast {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.market-velocity-badge.velocity-balanced {
    background: #ebf8ff;
    color: #2c5282;
    border: 1px solid #bee3f8;
}

.market-velocity-badge.velocity-slow {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #feb2b2;
}

.hero-narrative {
    padding: 18px 22px;
    background: var(--bg);
    border-left: 4px solid var(--primary-lighter);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 20px;
}

.hero-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
    gap: 12px;
}

.report-id-text {
    font-size: 0.78rem;
    color: var(--text-lighter);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.val-trio {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 14px;
    margin-bottom: 24px;
}

.val-trio-item {
    text-align: center;
    padding: 20px 14px;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: border-color var(--transition);
}

.val-trio-item:hover {
    border-color: var(--primary-light);
}

.val-trio-center {
    background: var(--card-bg);
    border: 2px solid var(--primary-light);
}

.val-trio-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 600;
}

.val-trio-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.val-trio-center .val-trio-value {
    font-size: 1.9rem;
}

.val-trio-sub {
    font-size: 0.7rem;
    color: var(--text-lighter);
    margin-top: 4px;
}

.comps-summary {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 14px;
    padding: 12px 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.comps-type-notice {
    font-size: 0.85rem;
    color: #7a5c00;
    background: #fffbeb;
    border: 1px solid #f5d77a;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    margin-bottom: 14px;
    line-height: 1.5;
}

.cc-inline-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin: 20px 0 4px 0;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}
.cc-inline-sub {
    font-weight: 400;
    color: var(--text-light);
    font-size: 0.82rem;
}
.cc-comps-table {
    margin-top: 8px;
}
.cc-comp-row {
    background: #fffbeb;
}
.cc-comp-row:hover {
    background: #fef3c7;
}
.cc-adj-badge {
    display: inline-block;
    background: #d97706;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 3px;
    padding: 1px 4px;
    margin-left: 4px;
    vertical-align: middle;
}
.cc-comps-note {
    font-size: 0.78rem;
    color: var(--text-light);
    margin: 8px 0 0 0;
    font-style: italic;
}

.cc-band-summary-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 6px 10px;
    background: #fffbeb;
    border-left: 3px solid #d97706;
    border-radius: 3px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.cc-band-label {
    font-weight: 600;
    font-size: 0.87rem;
    color: var(--text);
    white-space: nowrap;
}
.cc-band-detail {
    font-size: 0.84rem;
    color: var(--text-light);
}

.cc-band {
    margin-bottom: 24px;
}
.cc-band-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 4px 0;
}
.cc-band-count {
    font-weight: 400;
    color: var(--text-light);
    font-size: 0.85rem;
}
.cc-band-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0 0 12px 0;
}
.cc-comp-card {
    border-left: 3px solid var(--primary-light);
    background: #f8fafc;
}
.cc-comp-card .comp-card-rent-note {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-light);
    margin-left: 4px;
}
.crosscheck-verdict {
    font-size: 0.87rem;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-top: 10px;
    line-height: 1.5;
}
.crosscheck-verdict.verdict-ok {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}
.crosscheck-verdict.verdict-warn {
    background: #fffbeb;
    border: 1px solid #f5d77a;
    color: #7a5c00;
}
.crosscheck-verdict.verdict-alert {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.comps-footnotes {
    margin-top: 14px;
    font-size: 0.78rem;
    color: var(--text-lighter);
    line-height: 1.5;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.result-property-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 28px;
}

.result-prop-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.88rem;
}

.result-prop-label {
    color: var(--text-light);
    font-weight: 500;
}

.result-prop-value {
    font-weight: 600;
    color: var(--text);
}

.disclaimer-text {
    margin-top: 20px;
    padding: 16px 20px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.6;
    font-style: italic;
    border: 1px solid var(--border-light);
}

.report-footer-card {
    border-top: 3px solid var(--border-light);
}

.confidence-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 20px;
}

.confidence-bar .bar-track {
    width: 220px;
    height: 10px;
    background: var(--border-light);
    border-radius: 5px;
    overflow: hidden;
}

.confidence-bar .bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.confidence-bar .bar-fill.high {
    background: linear-gradient(90deg, #38a169, #48bb78);
}

.confidence-bar .bar-fill.medium {
    background: linear-gradient(90deg, #dd6b20, #ed8936);
}

.confidence-bar .bar-fill.low {
    background: linear-gradient(90deg, #c53030, #e53e3e);
}

.confidence-bar .label {
    font-size: 0.9rem;
    font-weight: 700;
    min-width: 40px;
}

.data-quality-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-quality-badge.quality-strong {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.data-quality-badge.quality-fair {
    background: #fefcbf;
    color: #744210;
    border: 1px solid #faf089;
}

.data-quality-badge.quality-limited {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #feb2b2;
}

.estimated-area {
    color: var(--text-light);
    font-style: italic;
}

.wcm-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 12px;
}

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

.wcm-col {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.wcm-col-header {
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.wcm-up-header {
    background: #c6f6d5;
    color: #22543d;
}

.wcm-down-header {
    background: #fed7d7;
    color: #742a2a;
}

.wcm-list {
    margin: 0;
    padding: 10px 16px 10px 30px;
    list-style: disc;
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text);
}

.wcm-list li + li {
    margin-top: 6px;
}

.comp-card-ai-reasoning {
    margin-top: 8px;
    padding: 8px 12px;
    background: #ebf8ff;
    border-left: 3px solid #3182ce;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.84rem;
    line-height: 1.55;
    color: #2c5282;
}

.comp-card-ai-reasoning .ai-label {
    font-weight: 700;
    margin-right: 5px;
}

.adjustments-panel {
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.adjustments-panel h3 {
    font-size: 0.8rem;
    margin-bottom: 6px;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.adjustment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 0.78rem;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.adjustment-row:last-child {
    border-bottom: none;
}

.adjustment-total {
    font-weight: 700;
    padding-top: 6px;
    margin-top: 4px;
    border-top: 1px solid var(--border);
}

.adj-factor {
    font-weight: 600;
    min-width: 100px;
    font-size: 0.78rem;
}

.adj-desc {
    flex: 1;
    color: var(--text-light);
    padding: 0 10px;
    font-size: 0.75rem;
}

.adj-pct {
    font-weight: 700;
    min-width: 40px;
    text-align: right;
    font-size: 0.78rem;
    margin-right: 8px;
}

.adj-positive {
    color: var(--accent-dark);
}

.adj-negative {
    color: var(--danger);
}

.condition-panel {
    margin-top: 20px;
    padding: 20px;
    background: #f0ebff;
    border: 1px solid #c4b5fd;
    border-radius: var(--radius);
}

.condition-panel h3 {
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: var(--primary);
    font-weight: 700;
}

.condition-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.condition-tier-badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: var(--radius-sm);
    color: white;
}

.tier-a { background: #38a169; }
.tier-b { background: #48bb78; }
.tier-c { background: #ed8936; }
.tier-d { background: #dd6b20; }
.tier-e { background: #e53e3e; }

.condition-score-text {
    font-size: 0.85rem;
    color: var(--text-light);
}

.condition-explanations {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.condition-explanation-tag {
    display: inline-block;
    font-size: 0.78rem;
    padding: 4px 10px;
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
}

.checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 6px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 400;
    transition: color var(--transition);
}

.checkbox-label:hover {
    color: var(--primary-light);
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: var(--primary-light);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.chip-label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.chip-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.chip-text {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    font-family: inherit;
    border: 1.5px solid var(--border);
    background: #ffffff;
    color: var(--text-light);
    transition: all 0.15s ease;
    user-select: none;
}

.chip-label:hover .chip-text {
    border-color: var(--primary-light);
    color: var(--primary);
}

.chip-label input[type="checkbox"]:checked + .chip-text {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: var(--primary);
    box-shadow: none;
    font-weight: 600;
}

.condition-checkboxes {
    grid-column: 1 / -1;
}

.checkbox-group-field {
    grid-column: 1 / -1;
}

.total-cost-panel {
    margin-top: 20px;
    padding: 20px;
    background: #f0ebff;
    border: 1px solid #c4b5fd;
    border-radius: var(--radius);
}

.total-cost-panel h3 {
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: #553c9a;
    font-weight: 700;
}

.cost-line {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.cost-line:last-child {
    border-bottom: none;
}

.cost-total {
    font-weight: 700;
    padding-top: 10px;
    margin-top: 6px;
    border-top: 2px solid var(--border);
    font-size: 1rem;
    color: var(--primary);
}

.review-card {
    background: #f0f4fa;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 20px;
}

.review-card.decrease {
    background: #fef2f2;
    border-color: #fecaca;
}

.review-card h3 {
    font-size: 1.05rem;
    margin-bottom: 14px;
    color: var(--text);
    font-weight: 700;
}

.review-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

.review-stat {
    text-align: center;
}

.review-stat .stat-value {
    font-size: 1.4rem;
    font-weight: 700;
}

.review-stat .stat-label {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 2px;
}

.review-assessment {
    font-size: 0.93rem;
    line-height: 1.6;
    padding: 14px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-sm);
}

.comps-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.comps-table th {
    background: var(--primary);
    color: white;
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 2;
}

.comps-table th:first-child {
    border-radius: var(--radius-sm) 0 0 0;
}

.comps-table th:last-child {
    border-radius: 0 var(--radius-sm) 0 0;
}

.comps-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border-light);
}

.comps-table tbody tr:nth-child(even) {
    background: #f7fafc;
}

.comps-table tbody tr:hover {
    background: rgba(5, 214, 161, 0.05);
}

.market-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
}

.market-stat {
    text-align: center;
    padding: 18px 14px;
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: border-color var(--transition);
}

.market-stat:hover {
    border-color: var(--primary-light);
}

.market-stat .stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.market-stat .stat-label {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 6px;
    line-height: 1.3;
}

.market-stat .stat-detail {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 4px;
    line-height: 1.3;
    font-style: italic;
}

.transport-accessibility-stat {
    grid-column: 1 / -1;
    background: var(--bg);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary-lighter);
}

.market-narrative {
    margin-top: 20px;
    padding: 16px 20px;
    background: var(--bg);
    border-left: 4px solid var(--primary-lighter);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text);
}

.context-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.context-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 24px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: transform var(--transition);
}

.context-badge:hover {
    transform: scale(1.03);
}

.badge-green {
    background: #c6f6d5;
    color: #22543d;
}

.badge-amber {
    background: #fefcbf;
    color: #744210;
}

.badge-red {
    background: #fed7d7;
    color: #742a2a;
}

.notes-list {
    list-style: none;
    padding: 0;
}

.notes-list li {
    padding: 10px 0 10px 22px;
    position: relative;
    font-size: 0.9rem;
    color: var(--text);
    border-bottom: 1px solid var(--border-light);
}

.notes-list li:before {
    content: "\2022";
    position: absolute;
    left: 4px;
    color: var(--primary-lighter);
    font-weight: bold;
    font-size: 1.2em;
}

.notes-list li:last-child {
    border-bottom: none;
}

#results {
    display: none;
}

#loading {
    display: none;
    text-align: center;
    padding: 60px 40px;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 4px solid var(--border-light);
    border-top-color: var(--primary-lighter);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 20px;
}

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

#loading p {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
}

#error-msg {
    display: none;
    background: #fff5f5;
    color: var(--danger);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-top: 16px;
    font-size: 0.9rem;
    border: 1px solid #fed7d7;
}

footer {
    text-align: center;
    padding: 32px 0;
    color: var(--text-lighter);
    font-size: 0.82rem;
}

footer p {
    font-weight: 500;
}

.site-footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.75);
    padding: 0;
    text-align: left;
    margin-top: 48px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-top: 48px;
    padding-bottom: 40px;
    max-width: 1100px;
}

.footer-brand .footer-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: inline-block;
    margin-bottom: 10px;
}

.footer-brand .footer-tagline {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
    max-width: 280px;
    font-weight: 400;
}

.footer-nav h4,
.footer-legal h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 14px;
}

.footer-nav a,
.footer-legal a {
    display: block;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 5px 0;
    transition: color var(--transition);
    font-weight: 400;
}

.footer-nav a:hover,
.footer-legal a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom .container {
    padding-top: 18px;
    padding-bottom: 18px;
    max-width: 1100px;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    font-weight: 400;
}

@media (max-width: 600px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 36px;
        padding-bottom: 28px;
    }

    .footer-brand .footer-tagline {
        max-width: 100%;
    }
}

.postcode-row {
    display: flex;
    gap: 10px;
}

.postcode-row input {
    flex: 1;
    font-size: 1rem;
    padding: 14px 16px;
}

.btn-lookup {
    background: var(--primary-light);
    color: var(--primary);
    white-space: nowrap;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: none;
}

.btn-lookup:hover {
    background: var(--primary-lighter);
    box-shadow: none;
    transform: translateY(-1px);
}

.btn-lookup:active {
    transform: scale(0.98);
}

.epc-results-list {
    max-height: 260px;
    overflow-y: auto;
    border: none;
    border-radius: var(--radius-sm);
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.epc-result-item {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.15s;
    font-size: 0.9rem;
}

.epc-result-item:last-child {
    border-bottom: none;
}

.epc-result-item:hover {
    background: rgba(5, 214, 161, 0.06);
}

.epc-result-item .address {
    font-weight: 600;
    color: var(--text);
}

.epc-result-item .details {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 3px;
}

.epc-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

.spinner-small {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.epc-message {
    padding: 12px 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
}

.step1-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.step1-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 6px;
}

.step1-manual {
    text-align: center;
    padding-top: 6px;
}

.step1-trust {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-lighter);
    padding-top: 4px;
    font-weight: 500;
}

.hero-banner {
    background: linear-gradient(135deg, #162742 0%, #223A5C 60%, #1e3a5f 100%);
    padding: 80px 24px 72px;
    text-align: center;
    position: relative;
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(5, 214, 161, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-headline {
    font-size: 2.6rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.8px;
    line-height: 1.2;
    margin-bottom: 18px;
    border: none;
    padding: 0;
}

.hero-subheading {
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto 36px;
}

.hero-subheading--nowrap {
    white-space: nowrap;
}

.hero-search-box {
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
}

.hero-search-row {
    display: flex;
    gap: 0;
    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 18px 22px;
    font-size: 1.05rem;
    font-family: inherit;
    color: var(--text);
    background: transparent;
}

.hero-search-input::placeholder {
    color: #9ca3af;
}

.hero-search-btn {
    background: var(--primary-light);
    color: var(--primary);
    white-space: nowrap;
    padding: 18px 32px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.hero-search-btn:hover {
    background: var(--primary-lighter);
}

.hero-search-btn:active {
    transform: scale(0.98);
}

.hero-manual {
    text-align: center;
    padding-top: 14px;
}

.hero-manual .btn-link {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
}

.hero-manual .btn-link:hover {
    color: rgba(255, 255, 255, 0.85);
}

.hero-trust-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 14px 24px;
}

.hero-trust-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.trust-item {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.trust-icon {
    color: var(--primary);
    flex-shrink: 0;
}

.btn-link {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 0;
    font-family: inherit;
    font-weight: 500;
    transition: color var(--transition);
}

.btn-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.step2-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
}

.step2-header h2 {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.step2-back {
    font-size: 0.85rem;
    flex-shrink: 0;
}

.selected-address {
    background: rgba(5, 214, 161, 0.08);
    border: 1.5px solid var(--primary-light);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
    margin: 14px 0 20px;
}

#rent-distribution-chart {
    width: 100%;
    overflow-x: auto;
}

.rent-chart-svg {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 14px;
    font-size: 0.82rem;
    color: var(--text-light);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-swatch {
    display: inline-block;
    width: 14px;
    height: 3px;
    border-radius: 2px;
}

.report-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-pdf {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 2px 4px rgba(56, 161, 105, 0.2);
}

.btn-pdf:hover {
    box-shadow: 0 4px 12px rgba(56, 161, 105, 0.3);
    transform: translateY(-1px);
}

.btn-pdf:active {
    transform: scale(0.98);
}

.confidence-breakdown-inline {
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.6;
}

.conf-inline-label {
    font-weight: 600;
    color: var(--text);
}

.comp-row-num {
    text-align: center;
    width: 30px;
    padding: 0 4px !important;
}
.comp-num-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
}
.adj-note {
    font-size: 0.78rem;
    color: var(--text-light);
    white-space: nowrap;
}
.comp-subject-row {
    background: rgba(5, 214, 161, 0.06);
    border-bottom: 2px solid rgba(5, 214, 161, 0.3);
    font-weight: 500;
}
.comp-subject-row td {
    padding: 9px 10px !important;
}
.comp-subject-badge {
    background: var(--primary) !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.02em;
}
.comp-subject-name {
    font-weight: 600;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.subj-estimate-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(5, 214, 161, 0.15);
    border-radius: 3px;
    padding: 1px 5px;
    margin-left: 5px;
    letter-spacing: 0.02em;
    vertical-align: middle;
    text-transform: uppercase;
}
.subj-ask-cell {
    color: var(--text-light);
    font-style: italic;
}
.comp-subject-card {
    background: rgba(5, 214, 161, 0.06);
    border: 2px solid rgba(5, 214, 161, 0.35) !important;
}
.comp-subject-card .comp-card-num {
    background: var(--primary);
}
.comp-subject-card .comp-card-area {
    font-weight: 700;
    color: #1e3a5f;
}
.comp-card-adj-badge {
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 3px;
    padding: 2px 6px;
    margin-left: auto;
    white-space: nowrap;
}
.adj-badge-active {
    background: rgba(5, 214, 161, 0.1);
    color: var(--primary);
    border: 1px solid rgba(5, 214, 161, 0.3);
}
.adj-badge-neutral {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #86efac;
}

.comp-card-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    margin-right: 8px;
    flex-shrink: 0;
}

.weight-cell {
    position: relative;
    cursor: help;
}

.weight-bar {
    display: inline-block;
    height: 7px;
    border-radius: 4px;
    background: var(--primary-lighter);
    vertical-align: middle;
    margin-right: 4px;
}

.weight-tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text);
    color: white;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.weight-cell:hover .weight-tooltip {
    display: block;
}

.bed-match-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: middle;
}

.bed-exact {
    background: #c6f6d5;
    color: #22543d;
}

.bed-fuzzy {
    background: #fefcbf;
    color: #744210;
}

.mi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

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

.mi-metric {
    padding: 18px;
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary-light);
    transition: border-color var(--transition);
}

.mi-metric:hover {
    border-color: var(--primary-light);
}

.mi-metric-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 600;
}

.mi-metric-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.mi-metric-detail {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 6px;
    line-height: 1.5;
}

.mi-prose {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 20px;
}

.anchor-sub-card {
    border-left: 3px solid var(--accent);
    background: var(--surface-alt, #f8f9fa);
    border-radius: var(--radius-sm);
    padding: 18px 20px 14px;
    margin-top: 20px;
}

.anchor-sub-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
}

.anchor-sub-intro {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0 0 14px;
    line-height: 1.55;
}

.anchor-type-list {
    list-style: disc;
    padding-left: 1.4rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.anchor-type-list li {
    font-size: 0.875rem;
    color: var(--text);
    line-height: 1.5;
}

.anchor-type-note {
    color: var(--text-light);
    font-size: 0.82rem;
}

.anchor-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e0e0e0);
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-light);
    vertical-align: middle;
    margin-left: 4px;
    white-space: nowrap;
}

.anchor-source-badge::before {
    content: "B";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: var(--accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    font-style: normal;
    flex-shrink: 0;
}

.anchor-nb-table-wrap {
    overflow-x: auto;
    margin-top: 4px;
}

.anchor-nb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.anchor-nb-table thead th {
    text-align: left;
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 6px 10px 8px 0;
    border-bottom: 1px solid var(--border);
}

.anchor-nb-table tbody tr {
    border-bottom: 1px solid var(--border-light, #eee);
}

.anchor-nb-table tbody tr:last-child {
    border-bottom: none;
}

.anchor-nb-table tbody td {
    padding: 9px 10px 9px 0;
    vertical-align: top;
    line-height: 1.45;
}

.anchor-nb-area {
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    padding-right: 16px !important;
}

.anchor-nb-range {
    color: var(--accent);
    font-weight: 600;
    white-space: nowrap;
    padding-right: 16px !important;
}

.anchor-nb-features {
    color: var(--text-light);
    font-size: 0.82rem;
}


.neighbourhood-prose {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 16px;
}

.vfm-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 0;
}

.vfm-inline-score {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
}

.vfm-inline-sep {
    color: var(--text-light);
}

.vfm-inline-comps {
    font-size: 0.85rem;
    color: var(--text-light);
}

.field-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.82rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.field-warning::before {
    content: "\26A0";
    font-size: 1rem;
    flex-shrink: 0;
}

.field-warning .dismiss-warning {
    margin-left: auto;
    background: none;
    border: none;
    color: #92400e;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 4px;
    flex-shrink: 0;
    font-weight: 700;
    opacity: 0.6;
    transition: opacity var(--transition);
}

.field-warning .dismiss-warning:hover {
    opacity: 1;
}

.validation-summary-banner {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-top: 18px;
    margin-bottom: 10px;
    font-size: 0.88rem;
    color: #92400e;
    display: none;
}

.validation-summary-banner ul {
    margin: 8px 0 0 18px;
    padding: 0;
}

.validation-summary-banner li {
    margin-bottom: 3px;
}

.form-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
    margin: 18px 0 6px;
}

.form-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #68d391);
    border-radius: 4px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

.form-progress-text {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-bottom: 18px;
    text-align: center;
    font-weight: 500;
}

.accordion-section {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.accordion-section.open {
    border-color: var(--primary-light);
    box-shadow: none;
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: var(--bg);
    cursor: pointer;
    user-select: none;
    transition: background var(--transition);
}

.accordion-header:hover {
    background: #edf2f7;
}

.accordion-section.open .accordion-header {
    background: rgba(5, 214, 161, 0.06);
    border-bottom: 1px solid var(--border-light);
}

.accordion-chevron {
    font-size: 0.7rem;
    color: var(--text-light);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}

.accordion-section.open .accordion-chevron {
    transform: rotate(0deg);
}

.accordion-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--primary);
    flex: 1;
}

.accordion-title .optional {
    color: var(--text-lighter);
    font-weight: 400;
}

.accordion-badge {
    display: none !important;
}

.form-subheading {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 0 10px;
    margin-top: 28px;
    border-top: 1px solid var(--border-light);
}

.form-subheading:first-child {
    border-top: none;
    margin-top: 0;
}

.accordion-body {
    padding: 20px;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease, opacity 0.25s ease;
    max-height: 2000px;
    opacity: 1;
    overflow: hidden;
}

.accordion-body.collapsed {
    max-height: 0;
    padding: 0 20px;
    opacity: 0;
    overflow: hidden;
}

#step-2 .form-grid {
    margin-top: 0;
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .container {
        padding: 16px;
    }
    .nav-bar {
        padding: 12px 16px;
    }
    .nav-hamburger {
        display: block;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        z-index: 100;
    }
    .nav-links.nav-open {
        display: flex;
    }
    .nav-links a {
        font-size: 0.92rem;
        padding: 12px 24px;
        border-bottom: 1px solid var(--border-light);
        width: 100%;
    }
    .nav-links a:last-child {
        border-bottom: none;
    }
    .nav-links a:hover {
        background: var(--bg);
    }
    .hero-banner {
        padding: 48px 16px 40px;
    }
    .hero-headline {
        font-size: 1.6rem;
    }
    .hero-subheading {
        font-size: 0.95rem;
        margin-bottom: 28px;
    }
    .hero-search-row {
        flex-direction: column;
        border-radius: var(--radius);
    }
    .hero-search-btn {
        border-radius: 0 0 var(--radius) var(--radius);
    }
    .hero-trust-inner {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    .card {
        padding: 20px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .review-stats {
        grid-template-columns: 1fr;
    }
    .hero-estimate {
        font-size: 1.2rem;
    }
    .hero-range-primary {
        font-size: 2rem;
    }
    .val-trio {
        grid-template-columns: 1fr;
    }
    .val-trio-center .val-trio-value {
        font-size: 1.5rem;
    }
    .result-property-grid {
        grid-template-columns: 1fr;
    }
    .comps-table {
        font-size: 0.75rem;
        min-width: 580px;
    }
    .comps-table th, .comps-table td {
        padding: 6px 6px;
        white-space: nowrap;
    }
    .section-number {
        font-size: 1.4rem;
        position: static;
        display: block;
        text-align: right;
        margin-bottom: -8px;
        opacity: 0.4;
    }
    .comp-analysis-card {
        padding: 12px 14px;
    }
    .comp-card-area {
        font-size: 0.88rem;
    }
    .comp-card-distance {
        font-size: 0.75rem;
    }
    .comp-card-details {
        font-size: 0.8rem;
        gap: 2px 10px;
    }
    .comp-card-prose {
        font-size: 0.78rem;
    }
    .comp-card-rents {
        gap: 10px;
    }
    .comp-rent-label {
        font-size: 0.7rem;
    }
    .comp-rent-value {
        font-size: 0.88rem;
    }
    .comps-map {
        height: 260px;
    }
    .btn-primary {
        width: 100%;
        padding: 14px;
    }
    .postcode-row {
        flex-direction: column;
    }
    .btn-lookup {
        width: 100%;
    }
}

.comps-map {
    height: 380px;
    border-radius: var(--radius);
    margin-bottom: 18px;
    border: 1.5px solid var(--border);
    z-index: 1;
    box-shadow: var(--shadow-sm);
}

.comp-exclude-btn {
    background: none;
    border: none;
    color: var(--text-lighter);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.15s;
    line-height: 1;
}

.comp-exclude-btn:hover {
    background: #fed7d7;
    color: #c53030;
}

.comp-undo-btn {
    background: none;
    border: 1.5px solid var(--primary-lighter);
    color: var(--primary-lighter);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 6px;
    transition: all 0.15s;
    font-weight: 600;
}

.comp-undo-btn:hover {
    background: var(--primary-lighter);
    color: white;
}

.excluded-comps-label {
    font-size: 0.85rem;
    color: var(--text-lighter);
    margin: 14px 0 6px;
    font-style: italic;
}

.recalc-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: var(--radius);
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 600;
    backdrop-filter: blur(2px);
}

.report-section {
    position: relative;
}

.leaflet-popup-content {
    font-size: 0.85rem;
    line-height: 1.5;
}

.leaflet-popup-content strong {
    color: var(--primary);
}

.map-legend {
    background: white;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    font-size: 0.8rem;
    line-height: 1.6;
}

.map-legend i {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.generate-btn-wrapper {
    margin-top: 24px;
}

.generate-btn-wrapper .btn-primary {
    width: 100%;
    padding: 16px 28px;
    font-size: 1.05rem;
    border-radius: var(--radius);
}

.spinner-large {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

.epc-energy-section {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-light);
}

.epc-energy-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
}

.epc-energy-ratings {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.epc-energy-ratings th {
    text-align: left;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 8px 12px;
    border-bottom: 2px solid var(--border);
}

.epc-energy-ratings td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
}

.epc-energy-ratings tbody tr:last-child td {
    border-bottom: none;
}

.epc-feature-label {
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
    min-width: 120px;
}

.epc-rating-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    min-width: 80px;
    text-align: center;
}

.epc-rating-pill.rating-very-good {
    background: #c6f6d5;
    color: #22543d;
}

.epc-rating-pill.rating-good {
    background: #d4edda;
    color: #276749;
}

.epc-rating-pill.rating-average {
    background: #fefcbf;
    color: #744210;
}

.epc-rating-pill.rating-poor {
    background: #fed7d7;
    color: #742a2a;
}

.epc-rating-pill.rating-very-poor {
    background: #feb2b2;
    color: #63171b;
}

.static-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 60px 0 80px;
}

.static-page-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    border: none;
    padding: 0;
}

.static-page-lead {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 32px;
}

.static-page-body p {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 16px;
}

.static-page-steps {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 40px;
}

.static-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.static-step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.static-step h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.static-step p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.static-page-cta {
    text-align: center;
    padding-top: 8px;
}

.static-page--legal {
    max-width: 780px;
}

.static-page--legal .static-page-body h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.2px;
}

.static-page--legal .static-page-body hr {
    border: none;
    border-top: 1px solid var(--border, #e5e7eb);
    margin: 2.25rem 0;
}

.static-page--legal .static-page-body p {
    margin-bottom: 1rem;
}

.static-page--legal .static-page-body ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.static-page--legal .static-page-body ul li {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 0.5rem;
}

.report-loading {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.postcode-error-line {
    color: #fca5a5;
    font-size: 0.85rem;
    margin-top: 8px;
    text-align: center;
    display: none;
}

.btn-outline {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
}

.btn-outline:hover {
    background: var(--bg);
    border-color: var(--text-light);
}

.comps-toggle-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.comps-toggle-btn:hover {
    background: var(--border-light);
    color: var(--text);
}

.comp-analysis-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.comp-analysis-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    cursor: pointer;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.comp-analysis-card:hover {
    box-shadow: none;
    border-color: var(--primary-light);
}

.comp-analysis-card.comp-card-active {
    border-color: var(--primary-light);
    box-shadow: none;
}

.comp-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.comp-card-area {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.comp-card-distance {
    font-size: 0.82rem;
    color: var(--text-light);
    white-space: nowrap;
}

.comp-card-details {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
}

.comp-card-details span {
    white-space: nowrap;
}

.comp-card-prose {
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.6;
    margin-top: 6px;
}

.comp-subject-note {
    color: var(--primary);
    font-style: italic;
}

.comp-portal-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 8px;
    background: #f0f4ff;
    color: #3b4ea8;
    border: 1px solid #c7d2fe;
    text-transform: capitalize;
    letter-spacing: 0.2px;
}
.comp-ai-badge,
.comp-source-badge.comp-source-ai {
    display: inline-block;
    font-size: 0.70rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 8px;
    background: #ede9fe;
    color: #6d28d9;
    border: 1px solid #c4b5fd;
    letter-spacing: 0.3px;
}
.comp-bills-badge {
    display: inline-block;
    font-size: 0.70rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 8px;
    background: #fef9c3;
    color: #92400e;
    border: 1px solid #fde68a;
    letter-spacing: 0.2px;
}
.comp-let-badge,
.comp-let-agreed-badge {
    display: inline-block;
    font-size: 0.70rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 8px;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    letter-spacing: 0.2px;
}
.comp-portal-link {
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.comp-portal-link:hover {
    background: #dbe4ff;
    color: #1e3a8a;
    border-color: #93a7f5;
    text-decoration: none;
}
.comp-portal-footer {
    border-top: 1px solid var(--border);
    margin-top: 0.6rem;
    padding-top: 0.6rem;
}
.comp-portal-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s;
}
.comp-portal-footer-link:hover {
    color: var(--primary-light);
    text-decoration: underline;
}
.comp-card-collapsed {
    display: none;
}
.comp-show-all-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 10px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    text-align: center;
    transition: background 0.15s, border-color 0.15s;
}
.comp-show-all-btn:hover {
    background: #f0f4ff;
    border-color: var(--primary);
}

.comp-adj-breakdown {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
}

.adj-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    color: var(--text-light);
    line-height: 1.45;
}

.adj-row.adj-up {
    color: #166534;
}

.adj-row.adj-down {
    color: #9a3412;
}

.adj-row.adj-net {
    color: var(--text);
    font-size: 0.82rem;
    margin-top: 2px;
    padding-top: 4px;
    border-top: 1px dashed var(--border);
}

.adj-impact {
    font-weight: 600;
}

.adj-detail {
    color: var(--text-lighter);
    font-size: 0.78rem;
}

.adj-anchor {
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 600;
    padding-bottom: 4px;
    margin-bottom: 2px;
    border-bottom: 1px dashed var(--border);
    justify-content: space-between;
}

.adj-total {
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 700;
    padding-top: 4px;
    margin-top: 2px;
    border-top: 1px dashed var(--border);
    justify-content: space-between;
}

.adj-row.adj-net {
    justify-content: space-between;
}

.adj-step-label {
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 500;
}

.adj-step-value {
    font-size: 0.82rem;
}

.adj-abs {
    font-weight: 600;
    font-size: 0.77rem;
    min-width: 60px;
    text-align: right;
}

.excluded-comp-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f5f5f5;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-light);
    padding: 3px 10px 3px 12px;
    margin: 3px 4px 3px 0;
}

.comp-card-rents {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.comp-card-rent {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.comp-rent-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comp-rent-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
}

.comp-rent-adjusted {
    color: var(--primary);
    font-weight: 700;
}

.comp-card-diffs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.comp-diff-tag {
    display: inline-block;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.comp-diff-up {
    background: #e8f5e9;
    color: #2e7d32;
}

.comp-diff-down {
    background: #fce4ec;
    color: #c62828;
}

.comp-diff-neutral {
    background: #f5f5f5;
    color: #616161;
}

.vfm-grade-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.vfm-score-display {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.vfm-score-max {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
}

.hiw-options-grid {
    margin: 32px auto;
}

.test-mode-banner {
    background: #fef3cd;
    color: #856404;
    text-align: center;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: 1px solid #f0d98c;
}

.options-page {
    padding: 3rem 0 4rem;
    min-height: calc(100vh - 60px);
    background: var(--bg);
}

.options-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.options-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.options-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 820px;
    margin: 0 auto;
}

.option-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color 0.2s;
}

.option-card:hover {
    border-color: var(--primary-light);
    box-shadow: none;
}

.option-card-expert {
    border-color: var(--primary-light);
    box-shadow: none;
}

.option-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 1rem;
    width: fit-content;
}

.option-badge-alt {
    background: rgba(5, 214, 161, 0.15);
    color: var(--primary);
    border: 1px solid var(--primary-light);
}

.option-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.option-desc {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.option-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.option-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
}

.option-features li {
    font-size: 0.88rem;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
}

.option-features li:last-child {
    border-bottom: none;
}

.option-features li::before {
    content: "\2713";
    color: var(--accent);
    font-weight: 700;
    margin-right: 8px;
}

.option-cta {
    width: 100%;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 600;
}

.options-footer {
    text-align: center;
    margin-top: 2rem;
}

.options-back-link {
    color: var(--text-light);
    font-size: 0.88rem;
    text-decoration: none;
}

.options-back-link:hover {
    color: var(--text);
}

@media (max-width: 640px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
}

.checkout-page {
    padding: 2rem 0 4rem;
    min-height: calc(100vh - 100px);
    background: var(--bg);
}

.checkout-container {
    max-width: 520px;
    margin: 0 auto;
}

.checkout-summary {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.checkout-summary h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.checkout-address {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.checkout-price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.92rem;
    padding: 6px 0;
    color: var(--text);
}

.checkout-total {
    border-top: 1px solid var(--border);
    margin-top: 4px;
    padding-top: 10px;
    font-weight: 700;
}

.checkout-price {
    font-weight: 600;
}

.checkout-form {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.checkout-form h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.checkout-form .form-group {
    margin-bottom: 1rem;
}

.checkout-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.checkout-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.92rem;
    font-family: inherit;
    box-sizing: border-box;
}

.checkout-form input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(5, 214, 161, 0.15);
}

.stripe-placeholder {
    background: #f8f9fa;
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 1rem;
    text-align: center;
}

.stripe-test-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

.checkout-pay-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
}

.checkout-disclaimer {
    font-size: 0.78rem;
    color: var(--text-light);
    margin: 0.75rem 0 0;
    line-height: 1.4;
    text-align: center;
}

.checkout-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 0 3rem;
}

.gen-progress-wrap {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gen-progress-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    letter-spacing: -0.01em;
}

.gen-progress-bar-outer {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
}

.gen-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 99px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

.gen-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.gen-progress-step {
    font-size: 0.8rem;
    color: var(--text-light);
    flex: 1;
}

.gen-progress-pct {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    min-width: 2.8rem;
    text-align: right;
}

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

.checkout-success {
    text-align: center;
    padding: 3rem 0;
}
.checkout-success-icon {
    margin-bottom: 1.5rem;
}
.checkout-success h2 {
    color: var(--primary);
    margin-bottom: 0.75rem;
}
.checkout-success p {
    color: var(--text-light);
    max-width: 480px;
    margin: 0 auto 0.5rem;
}
.checkout-success-note {
    font-size: 0.85rem;
}

.checkout-back {
    text-align: center;
    margin-top: 1.5rem;
}

.checkout-back a {
    color: var(--text-light);
    font-size: 0.88rem;
    text-decoration: none;
}

.checkout-back a:hover {
    color: var(--text);
}

.mono-text {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
}

.admin-page {
    padding: 2rem 0;
    min-height: calc(100vh - 100px);
    background: var(--bg);
}

.admin-page h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.admin-table th {
    background: #f8f9fa;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    font-size: 0.88rem;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
}

.admin-table a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.admin-empty {
    text-align: center;
    color: var(--text-light);
    padding: 3rem 0;
    font-size: 0.95rem;
}

.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
}

.badge-test_mode {
    background: #fef3cd;
    color: #856404;
}

.badge-charged {
    background: #d4edda;
    color: #155724;
}

.badge-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.hp-section {
    padding: 56px 24px;
    border-bottom: 1px solid var(--border);
}

.hp-section:last-of-type {
    border-bottom: none;
}

.hp-section-inner {
    max-width: 860px;
    margin: 0 auto;
}

.hp-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 36px;
    letter-spacing: -0.4px;
}

.hp-value-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.hp-provides-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 540px;
    margin: 0 auto;
}

.hp-provides-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.hp-provides-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary);
}

.hp-provides-item strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.hp-provides-item span {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.5;
}

.hp-data-sub {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: -20px;
    margin-bottom: 32px;
}

.hp-faq-list {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hp-faq-item {
    border-bottom: 1px solid var(--border-light);
}

.hp-faq-item:last-child {
    border-bottom: none;
}

.hp-faq-item summary {
    padding: 18px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color var(--transition);
}

.hp-faq-item summary::-webkit-details-marker {
    display: none;
}

.hp-faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--text-light);
    transition: transform var(--transition);
    flex-shrink: 0;
    margin-left: 16px;
}

.hp-faq-item[open] summary::after {
    content: '\2212';
}

.hp-faq-item summary:hover {
    color: var(--primary);
}

.hp-faq-item p {
    padding: 0 0 18px;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

@media (max-width: 640px) {
    .hp-section {
        padding: 40px 16px;
    }

    .hp-section-title {
        font-size: 1.3rem;
        margin-bottom: 24px;
    }
}

.nav-active {
    color: var(--primary) !important;
    font-weight: 600;
}

.auth-page {
    max-width: 440px;
    margin: 60px auto;
    padding: 0 16px;
}

.auth-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 40px 32px;
    border: 1px solid var(--border);
}

.auth-card h1 {
    font-size: 1.5rem;
    margin-bottom: 4px;
    color: var(--text);
}

.auth-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.auth-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.auth-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.auth-toggle {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.auth-toggle a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-toggle a:hover {
    text-decoration: underline;
}

.btn-full {
    width: 100%;
}

.auth-prompt {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.auth-prompt a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.error-page {
    text-align: center;
    padding: 80px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.error-code {
    font-size: 5rem;
    font-weight: 800;
    color: var(--border);
    line-height: 1;
    letter-spacing: -2px;
}

.error-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 12px 0 8px;
}

.error-message {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.6;
}

.my-reports-page {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 16px;
}

.my-reports-page h1 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.my-reports-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.about-hero {
    background: linear-gradient(135deg, #162742 0%, #223A5C 100%);
    padding: 72px 24px 64px;
    text-align: center;
}

.about-hero-inner {
    max-width: 680px;
    margin: 0 auto;
}

.about-hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.8px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.about-hero-subtitle {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.7;
}

.about-problem-content p,
.about-roadmap-content p {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 16px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: none;
    transition: border-color var(--transition);
}

.about-card:hover {
    border-color: var(--primary-light);
    transform: none;
}

.about-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 4px;
    background: rgba(5, 214, 161, 0.1);
    color: var(--primary);
    margin-bottom: 16px;
}

.about-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.about-intro-text {
    text-align: center;
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 32px;
}

.about-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.65;
}

.about-cta {
    text-align: center;
    padding-top: 16px;
}

@media (max-width: 640px) {
    .about-hero {
        padding: 48px 16px 40px;
    }

    .about-hero-title {
        font-size: 1.7rem;
    }

    .about-hero-subtitle {
        font-size: 0.95rem;
    }

    .about-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.expert-dashboard {
    min-height: calc(100vh - 100px);
    background: var(--bg);
}

.expert-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: calc(100vh - 100px);
}

.expert-sidebar {
    background: var(--card-bg);
    border-right: 1px solid var(--border);
    padding: 20px 0;
    overflow-y: auto;
    max-height: calc(100vh - 100px);
    position: sticky;
    top: 56px;
}

.expert-sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    padding: 0 20px 14px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 0;
}

.expert-sidebar-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 16px;
    color: var(--text-light);
    font-size: 0.88rem;
}

.expert-sidebar-empty {
    padding: 32px 20px;
    color: var(--text-light);
    font-size: 0.88rem;
    text-align: center;
}

.expert-orders-list {
    display: flex;
    flex-direction: column;
}

.expert-order-item {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background 0.15s;
}

.expert-order-item:hover {
    background: #f7fafc;
}

.expert-order-item.active {
    background: rgba(5, 214, 161, 0.07);
    border-left: 3px solid var(--primary-light);
    padding-left: 17px;
}

.expert-order-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.expert-order-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}

.expert-order-status {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 3px 8px;
    border-radius: 12px;
}

.badge-pending, .badge-draft {
    background: #fef3cd;
    color: #856404;
}

.badge-finalised {
    background: #c6f6d5;
    color: #22543d;
}

.expert-order-detail {
    font-size: 0.82rem;
    color: var(--text-light);
}

.expert-order-date {
    font-size: 0.75rem;
    color: var(--text-lighter);
    margin-top: 2px;
}

.expert-main {
    padding: 28px 36px;
    overflow-y: auto;
    max-height: calc(100vh - 100px);
}

.expert-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: var(--text-light);
    text-align: center;
}

.expert-empty-icon {
    color: var(--border);
    margin-bottom: 16px;
}

.expert-empty-state h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.expert-empty-state p {
    font-size: 0.9rem;
    max-width: 340px;
}

.expert-section-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.expert-section-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-light);
}

.expert-readonly-badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: var(--border-light);
    color: var(--text-light);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    vertical-align: middle;
}

.expert-prop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 24px;
}

.expert-prop-item {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.88rem;
}

.expert-prop-label {
    color: var(--text-light);
    font-weight: 500;
}

.expert-prop-value {
    font-weight: 600;
    color: var(--text);
}

.expert-section-card textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: white;
    color: var(--text);
    box-sizing: border-box;
}

.expert-section-card textarea:focus {
    outline: none;
    border-color: var(--primary-lighter);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.12);
}

.expert-section-card textarea:disabled {
    background: #f7f8fa;
    color: var(--text-light);
    cursor: not-allowed;
}

.expert-terms-card {
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}

.expert-terms-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 14px;
}

.expert-terms-body {
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 18px;
}

.expert-terms-body ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.expert-terms-body li {
    margin-bottom: 6px;
}

.expert-terms-accepted {
    background: #c6f6d5;
    border: 1px solid #9ae6b4;
    color: #22543d;
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.expert-comps-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.expert-comps-table th {
    background: var(--primary);
    color: white;
    padding: 10px 12px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.expert-comps-table th:first-child {
    border-radius: var(--radius-sm) 0 0 0;
}

.expert-comps-table th:last-child {
    border-radius: 0 var(--radius-sm) 0 0;
}

.expert-comps-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.expert-comps-table tbody tr:nth-child(even) {
    background: #f7fafc;
}

.expert-comps-table tbody tr:hover {
    background: rgba(5, 214, 161, 0.05);
}

.expert-comp-info {
    min-width: 140px;
}

.expert-comp-addr {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
}

.expert-comp-meta {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 2px;
}

.expert-comp-input {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.82rem;
    font-family: inherit;
}

.expert-comp-input-wide {
    width: 140px;
}

.expert-comp-input:focus {
    outline: none;
    border-color: var(--primary-lighter);
    box-shadow: 0 0 0 2px rgba(49, 130, 206, 0.1);
}

.expert-comp-select {
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.82rem;
    font-family: inherit;
    background: white;
}

.expert-comp-check {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-light);
    cursor: pointer;
}

.expert-comp-delete {
    background: none;
    border: none;
    color: var(--text-lighter);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.15s;
    line-height: 1;
}

.expert-comp-delete:hover {
    background: #fed7d7;
    color: #c53030;
}

.expert-comps-actions {
    margin-top: 14px;
}

.expert-comps-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.expert-comps-header h3 {
    margin-bottom: 0;
}

.expert-comps-count {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-lightest, #ebf8ff);
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.comps-count-warning {
    color: #c53030;
    background: #fff5f5;
}

.comp-row-excluded {
    opacity: 0.45;
    background: #f7f7f7 !important;
}

.comp-row-excluded .expert-comp-addr {
    text-decoration: line-through;
}

.expert-applicability-select {
    font-weight: 600;
    min-width: 100px;
}

.applicability-high {
    color: #276749;
    background-color: #f0fff4;
    border-color: #9ae6b4;
}

.applicability-medium {
    color: #975a16;
    background-color: #fffff0;
    border-color: #fbd38d;
}

.applicability-low {
    color: #9b2c2c;
    background-color: #fff5f5;
    border-color: #feb2b2;
}

.applicability-exclude {
    color: #718096;
    background-color: #f7fafc;
    border-color: #cbd5e0;
    font-style: italic;
}

.expert-valuation-card {
    border: 2px solid var(--primary-lighter);
    background: #f8faff;
}

.expert-val-display {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 6px;
}

.expert-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 24px;
    margin-bottom: 20px;
    position: sticky;
    bottom: 0;
    z-index: 10;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
    flex-wrap: wrap;
    gap: 12px;
}

.expert-action-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.expert-action-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.expert-status-badge {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 4px 12px;
    border-radius: 14px;
}

.expert-save-status {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.expert-audit-card {
    border-color: var(--border);
}

.expert-audit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.expert-audit-header h3 {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.expert-audit-chevron {
    font-size: 0.8rem;
    color: var(--text-light);
    transition: transform 0.2s;
}

.expert-audit-body {
    margin-top: 16px;
}

.expert-audit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.expert-audit-table th {
    text-align: left;
    padding: 8px 12px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-light);
    border-bottom: 2px solid var(--border);
}

.expert-audit-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
}

.expert-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.expert-modal {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 480px;
    width: 90%;
    box-shadow: var(--shadow-lg);
}

.expert-modal-wide {
    max-width: 640px;
}

.expert-modal h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
}

.expert-modal p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 8px;
}

.expert-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.expert-modal .form-grid {
    margin-bottom: 0;
}

.expert-modal textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.expert-modal textarea:focus {
    outline: none;
    border-color: var(--primary-lighter);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.12);
}

@media (max-width: 768px) {
    .expert-layout {
        grid-template-columns: 1fr;
    }

    .expert-sidebar {
        position: static;
        max-height: 300px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .expert-main {
        max-height: none;
        padding: 20px 16px;
    }

    .expert-action-bar {
        flex-direction: column;
        gap: 10px;
    }

    .expert-action-right {
        width: 100%;
        justify-content: stretch;
    }

    .expert-action-right .btn {
        flex: 1;
    }

    .expert-prop-grid {
        grid-template-columns: 1fr;
    }

    .expert-comps-table {
        font-size: 0.75rem;
        display: block;
        overflow-x: auto;
    }

    .expert-comp-input {
        width: 60px;
    }

    .expert-comp-input-wide {
        width: 100px;
    }
}

.tier-select-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 700px;
    margin: 2rem auto 0;
}

.tier-select-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
    max-width: 900px;
}

.tier-select-card {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 6px;
    padding: 2rem 1.5rem;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: border-color 0.2s, background 0.2s;
    font-family: inherit;
}

.tier-select-card:hover {
    border-color: var(--primary-light);
    background: rgba(5, 214, 161, 0.08);
    transform: none;
    box-shadow: none;
}

.tier-select-card.tier-unavailable {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    border-color: rgba(255,255,255,0.1);
}

.tier-unavailable-label {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #f87171;
    margin-top: 2px;
}

.tier-select-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
}

.tier-select-badge-expert {
    background: var(--primary-light);
    color: var(--primary);
}

.tier-select-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tier-select-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-light);
}

.tier-select-desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.4;
}

.step1-tier-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.step1-tier-indicator span:first-child {
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.step1-tier-indicator .btn-link {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
}

.step1-tier-indicator .btn-link:hover {
    color: #fff;
}

.tier-select-badge-free {
    background: #059669;
}

.hero-search-select-inline {
    padding: 0.85rem 1rem;
    border: none;
    border-left: 1px solid #e2e8f0;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    min-width: 110px;
    outline: none;
    color: #1a202c;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' fill='none' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

.free-rent-optional {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 560px;
    margin: 0.75rem auto 0;
    justify-content: center;
}

.free-rent-optional label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

.free-rent-input {
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 120px;
}

.free-rent-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.free-rent-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
}

.free-results {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 1.5rem;
    text-align: center;
}

.free-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.free-results-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.free-results-area-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.free-results-postcode {
    font-weight: 700;
    color: #1a202c;
    font-size: 1rem;
}

.free-results-type {
    color: #64748b;
    font-size: 0.85rem;
}

.free-results-body {
    padding: 1.5rem 1.5rem 1.25rem;
}

.free-results-band {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a202c;
    letter-spacing: -0.02em;
}

.free-results-area-note {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #64748b;
}

.free-results-sparse-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.6rem;
    padding: 0.45rem 0.75rem;
    border-radius: 6px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.8rem;
    font-weight: 500;
}

.free-results-cta-zone {
    border-top: 2px solid #e0e7ff;
    background: linear-gradient(135deg, #eef2ff 0%, #f0f9ff 100%);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.free-results-growth-cta {
    font-size: 0.92rem;
    color: var(--primary);
    line-height: 1.55;
}

.free-results-growth-cta strong {
    color: var(--primary);
    font-weight: 700;
}

.free-results-demand-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.free-results-demand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.free-results-demand-badge--landlord {
    background: #dcfce7;
    color: #15803d;
}

.free-results-demand-badge--balanced {
    background: #fef9c3;
    color: #854d0e;
}

.free-results-demand-badge--tenant {
    background: #fee2e2;
    color: #b91c1c;
}

.free-results-demand-meta {
    font-size: 0.8rem;
    color: #64748b;
}

.free-results-meta-diff {
    font-size: 0.85rem;
    color: #475569;
}

.free-results-meta-diff span {
    font-weight: 700;
    color: #0f172a;
}

.free-results-assessment {
    font-weight: 600;
    color: #059669;
    font-size: 0.9rem;
}

.free-results-teaser {
    border-top: 1px solid #e2e8f0;
    padding: 1.25rem 1.5rem 1rem;
    background: #f8fafc;
}

.frt-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
}

.frt-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
}

.frt-badge--confidence {
    background: #dcfce7;
    color: #166534;
}

.frt-badge--confidence.frt-badge--low {
    background: #fef9c3;
    color: #854d0e;
}

.frt-badge--trend {
    background: #e0f2fe;
    color: #075985;
}

.frt-comps-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.7rem;
}

.frt-table-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.frt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    background: #fff;
}

.frt-table thead tr {
    background: #f1f5f9;
}

.frt-table th {
    padding: 0.5rem 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}

.frt-table td {
    padding: 0.55rem 0.75rem;
    color: #1a202c;
    border-bottom: 1px solid #f1f5f9;
}

.frt-addr {
    color: #64748b;
    font-style: italic;
}

.frt-row--dim td {
    opacity: 0.55;
}

.frt-row--locked {
    filter: blur(4px);
    user-select: none;
    pointer-events: none;
}

.free-upgrade-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 500;
    background: var(--primary);
    border-top: 2px solid var(--primary-light);
    box-shadow: none;
    padding: 0.9rem 1.5rem;
    animation: slideUpBar 0.25s ease-out;
}

@keyframes slideUpBar {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.free-upgrade-bar-inner {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.free-upgrade-bar-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
}

.free-upgrade-bar-text strong {
    color: #f1f5f9;
    font-size: 0.9rem;
    font-weight: 700;
}

.free-upgrade-bar-text span {
    color: #94a3b8;
    font-size: 0.78rem;
}

.free-upgrade-bar-btn {
    flex-shrink: 0;
    background: var(--primary-light);
    color: var(--primary);
    border: none;
    border-radius: 4px;
    padding: 0.65rem 1.35rem;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, transform 0.1s;
    letter-spacing: 0.01em;
}

.free-upgrade-bar-btn:hover {
    background: var(--primary-lighter);
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .free-upgrade-bar-inner {
        flex-direction: column;
        gap: 0.6rem;
        align-items: stretch;
    }
    .free-upgrade-bar-btn {
        text-align: center;
    }
}

.frt-lock-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 0.8rem;
    color: #475569;
}

.frt-extras {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-top: 0.65rem;
}

.frt-extra-panel {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.frt-extra-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.7rem;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.02em;
}

.frt-adj-list {
    padding: 0.35rem 0;
}

.frt-adj-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
    color: #374151;
    border-bottom: 1px solid #f8fafc;
}

.frt-adj-row:last-child {
    border-bottom: none;
}

.frt-adj-val {
    font-weight: 700;
    color: #059669;
    font-family: monospace;
}

.frt-adj--locked {
    filter: blur(3px);
    user-select: none;
    pointer-events: none;
}

.frt-nb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0.55rem 0.5rem;
    gap: 0.25rem;
}

.frt-nb-stat {
    text-align: center;
    padding: 0.35rem;
}

.frt-nb-val {
    font-size: 1rem;
    font-weight: 700;
    color: #1a202c;
    font-family: monospace;
    letter-spacing: 0.02em;
}

.frt-nb-key {
    font-size: 0.68rem;
    color: #64748b;
    margin-top: 0.15rem;
}

.frt-nb--locked {
    filter: blur(4px);
    user-select: none;
    pointer-events: none;
}

@media (max-width: 500px) {
    .frt-extras {
        grid-template-columns: 1fr;
    }
    .frt-nb-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


@media (max-width: 768px) {
    .tier-select-grid-3 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .free-check-inputs {
        flex-direction: column;
    }

    .free-results-cta-zone {
        padding: 1rem 1.25rem;
    }
}

.pricing-container {
    max-width: 1200px;
}

.pricing-container .static-page {
    max-width: none;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
    align-items: start;
}

.pricing-grid .option-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.75rem;
}

.pricing-grid .option-title {
    font-size: 1.15rem;
}

.pricing-grid .option-desc {
    font-size: 0.85rem;
    line-height: 1.55;
}

.pricing-grid .option-price {
    font-size: 1.9rem;
    margin-bottom: 1rem;
}

.pricing-grid .option-features {
    font-size: 0.85rem;
}

.pricing-grid .option-features li {
    padding: 0.3rem 0 0.3rem 1.5rem;
}

.pricing-grid .option-cta {
    margin-top: auto;
    padding-top: 1.5rem;
}

.option-best-for {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

.pricing-pitch {
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius);
    background: rgba(5, 214, 161, 0.05);
    border: 1px solid rgba(5, 214, 161, 0.2);
}

.pricing-pitch-headline {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.pricing-pitch-body {
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 960px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .pricing-grid .option-card {
        padding: 2rem;
    }

    .pricing-grid .option-title {
        font-size: 1.35rem;
    }

    .pricing-grid .option-price {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    .tier-select-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tier-select-card {
        padding: 1.5rem 1rem;
    }
}

/* ===== White Goods & RICS-only section ===== */
.rics-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--primary, #1a365d);
    color: #fff;
    border-radius: 4px;
    padding: 1px 6px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Photo upload area */
.photo-upload-area {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
}

.photo-upload-hint {
    font-size: 0.8rem;
    color: var(--text-muted, #718096);
}

.photo-preview-grid {
    display: none;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.photo-preview-item {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border, #e2e8f0);
}

.photo-preview-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-remove-btn {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.photo-remove-btn:hover {
    background: rgba(200,0,0,0.75);
}

.photo-upload-status {
    font-size: 0.82rem;
    color: var(--text-muted, #718096);
    margin-top: 0.4rem;
    display: none;
}

.photo-limit-info {
    font-size: 0.85rem;
    color: var(--text-muted, #718096);
    margin: 0 0 0.5rem;
}

#photo-select-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

/* Expert dashboard photos section */
.expert-photos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.expert-photo-thumb-wrap {
    width: 110px;
    height: 110px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border, #e2e8f0);
    cursor: pointer;
}

.expert-photo-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.15s;
}

.expert-photo-thumb:hover {
    opacity: 0.85;
}

.expert-notes-surveyor {
    background: #fffbe6;
    border: 1px solid #f6d860;
    border-radius: 6px;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    color: #333;
    white-space: pre-wrap;
    margin-top: 0.5rem;
}

/* ── Print / PDF styles ──────────────────────────────────────────────── */
@media print {
    /* Hide non-report chrome */
    header,
    footer,
    .hero-actions,
    .btn-pdf,
    .btn-outline,
    .nav-bar,
    .site-footer,
    .upgrade-prompt-card,
    #report-loading,
    #report-error,
    .comp-exclude-btn,
    .comp-undo-btn,
    #comps-map-heading,
    #comps-map-explainer,
    #comps-map,
    .leaflet-container,
    .comps-footnotes {
        display: none !important;
    }

    /* Show the print-only comparables address list */
    .comps-print-list {
        display: block !important;
    }

    /* Reset body and container for print */
    body {
        background: #ffffff !important;
        font-size: 10pt;
        color: #111 !important;
    }

    .container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    main.container {
        padding: 0 !important;
    }

    /* Cards */
    .card {
        border: 1px solid #d1d5db !important;
        box-shadow: none !important;
        border-radius: 4px !important;
        padding: 16px !important;
        margin-bottom: 12px !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    /* Sensible page breaks */
    .report-section {
        page-break-inside: avoid;
        break-inside: avoid;
        animation: none !important;
    }

    /* Hero card stays on first page */
    .hero-card {
        page-break-after: avoid;
        break-after: avoid;
    }

    /* Keep animation-free for print */
    * {
        animation: none !important;
        transition: none !important;
    }

    /* Ensure section numbers print */
    .section-number {
        color: #d1d5db !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Force background colours to print */
    .hero-valuation-box,
    .val-trio-center,
    .hero-range-primary,
    .data-quality-badge,
    .market-velocity-badge,
    .condition-tier-badge,
    .adjustments-panel,
    .review-card,
    .wcm-col-header {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Chart container: let it flow naturally */
    #rent-distribution-chart {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    /* Comparable analysis cards */
    .comp-analysis-cards {
        display: block !important;
    }

    .comp-card {
        page-break-inside: avoid;
        break-inside: avoid;
        margin-bottom: 10px !important;
    }

    /* Print-only comp list */
    .comps-print-list {
        margin-top: 12px;
        padding: 12px;
        border: 1px solid #d1d5db;
        border-radius: 4px;
        background: #f9fafb;
    }

    .comps-print-list h4 {
        font-size: 10pt;
        font-weight: 600;
        color: #223A5C;
        margin-bottom: 8px;
    }

    .comps-print-list ol {
        margin: 0;
        padding-left: 20px;
        font-size: 9pt;
        line-height: 1.6;
        color: #374151;
    }

    .comps-print-list li {
        margin-bottom: 2px;
    }

    /* Keep WCM columns side-by-side */
    .wcm-columns {
        display: flex !important;
        gap: 16px !important;
    }

    /* Adjustments table */
    .adjustments-panel table,
    table {
        width: 100% !important;
        border-collapse: collapse !important;
        font-size: 9pt !important;
    }

    table th, table td {
        padding: 4px 6px !important;
        border: 1px solid #e5e7eb !important;
    }
}
