:root {
    --ink: #172026;
    --muted: #60707c;
    --line: #dfe7ea;
    --panel: #ffffff;
    --soft: #f3f7f6;
    --accent: #0d766e;
    --accent-strong: #095c56;
    --warn: #9a5b00;
    --error: #a73535;
    --shadow: 0 16px 45px rgba(24, 45, 54, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.7), rgba(243,247,246,0.95)),
        url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1800&q=80") center/cover fixed;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

body.is-leaving {
    opacity: 0.55;
    transform: translateY(4px);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 62px;
    padding: 0 max(16px, calc((100vw - 1180px) / 2));
    border-bottom: 1px solid rgba(255,255,255,0.12);
    background: rgba(7, 17, 31, 0.9);
    backdrop-filter: blur(14px);
}

.brand-link,
.tool-nav a,
.top-button {
    text-decoration: none;
}

.brand-link {
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.05;
}

.brand-link span {
    display: block;
    color: #9fb0c7;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.tool-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-nav a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    color: #cbd5e1;
    font-size: 0.88rem;
    font-weight: 800;
}

.tool-nav a:hover,
.tool-nav a.active {
    background: rgba(34, 197, 94, 0.13);
    color: #b7f7ca;
}

.top-button {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: #22c55e;
    color: #06130c;
    font-size: 0.92rem;
    font-weight: 850;
}

.top-button:hover {
    background: #31df70;
}

.shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 38px 0 56px;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
    gap: 34px;
    align-items: end;
    padding: 34px;
    border: 1px solid rgba(255,255,255,0.75);
    border-radius: 8px;
    background: rgba(255,255,255,0.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1 {
    max-width: 680px;
    margin-bottom: 14px;
    font-size: clamp(2.3rem, 5vw, 4.9rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.intro {
    max-width: 650px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.tool-link {
    display: inline-flex;
    max-width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(13, 118, 110, 0.24);
    border-radius: 8px;
    background: rgba(13, 118, 110, 0.08);
    color: var(--accent-strong);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.45;
    text-decoration: none;
}

.tool-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tool-link:hover {
    border-color: rgba(13, 118, 110, 0.45);
    background: rgba(13, 118, 110, 0.13);
}

.search-form label {
    display: grid;
    gap: 8px;
    color: #33424b;
    font-weight: 750;
}

.address-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-top: 8px;
}

input,
select,
button {
    min-height: 48px;
    border-radius: 6px;
    font: inherit;
}

input,
select {
    width: 100%;
    border: 1px solid var(--line);
    padding: 0 14px;
    background: #fff;
    color: var(--ink);
}

input:focus,
select:focus {
    border-color: var(--accent);
    outline: 3px solid rgba(13, 118, 110, 0.16);
}

button {
    border: 0;
    padding: 0 24px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

button:hover {
    background: var(--accent-strong);
}

.suggestions {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 0;
    right: 104px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(24, 45, 54, 0.16);
}

.suggestion {
    display: block;
    width: 100%;
    min-height: auto;
    padding: 12px 14px;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: var(--ink);
    text-align: left;
    font-size: 0.95rem;
    font-weight: 700;
}

.suggestion:hover,
.suggestion.active {
    background: var(--soft);
    color: var(--accent-strong);
}

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

.status {
    margin: 18px 0;
    padding: 13px 16px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 700;
}

.status.success {
    color: var(--accent-strong);
}

.status.warning {
    color: var(--warn);
}

.status.error {
    color: var(--error);
}

.status.loading {
    color: #31515f;
}

.results {
    margin-top: 22px;
}

.empty-state,
.report {
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 8px;
    background: rgba(255,255,255,0.94);
    box-shadow: var(--shadow);
}

.empty-state {
    display: grid;
    place-items: center;
    min-height: 360px;
    padding: 38px;
    text-align: center;
}

.empty-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--soft);
    color: var(--accent);
    font-size: 2rem;
    font-weight: 900;
}

.empty-state p {
    max-width: 460px;
    color: var(--muted);
    line-height: 1.6;
}

.report {
    padding: 28px;
}

.report-header {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.report-header h2 {
    margin-bottom: 8px;
    font-size: clamp(1.6rem, 3vw, 2.7rem);
    line-height: 1.08;
}

.address {
    margin-bottom: 0;
    color: var(--muted);
    font-weight: 700;
}

.confidence {
    flex: 0 0 auto;
    padding: 9px 12px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--accent-strong);
    font-size: 0.88rem;
    font-weight: 850;
}

.grid {
    display: grid;
    gap: 16px;
}

.metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 22px 0;
}

.metrics div,
.block,
.comp-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.metrics div {
    padding: 16px;
}

.metrics span {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 750;
}

.metrics strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 1.32rem;
}

.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 16px;
}

.block {
    padding: 20px;
}

.block h3 {
    margin-bottom: 14px;
    font-size: 1.05rem;
}

dl {
    margin: 0;
}

dl div {
    display: grid;
    grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #edf2f3;
}

dl div:last-child {
    border-bottom: 0;
}

dt {
    color: var(--muted);
    font-weight: 750;
}

dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-weight: 760;
}

ul {
    margin: 0;
    padding-left: 18px;
    color: #344650;
    line-height: 1.55;
}

li + li {
    margin-top: 8px;
}

.comps {
    display: grid;
    gap: 12px;
}

.comp-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 18px;
    padding: 16px;
}

.comp-card h4 {
    margin-bottom: 7px;
    font-size: 1rem;
}

.comp-card p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.55;
}

.comp-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
}

.comp-card dl div {
    display: block;
    padding: 0;
    border-bottom: 0;
}

.comp-card dt {
    margin-bottom: 3px;
    font-size: 0.78rem;
}

.sources-block {
    margin-top: 16px;
}

.sources a {
    color: var(--accent-strong);
    font-weight: 750;
}

.disclaimer {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.analysis-deck {
    display: grid;
    gap: 28px;
}

.deck-page {
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.22);
}

.compact-page {
    border: 1px solid #e5e7eb;
}

.deck-hero {
    padding: 32px;
    color: #fff;
}

.hero-pink {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.hero-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.deck-kicker {
    margin: 0 0 8px;
    opacity: 0.78;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-title {
    margin-bottom: 8px;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.08;
}

.hero-subtitle {
    margin-bottom: 0;
    opacity: 0.92;
    font-size: 1.18rem;
    font-weight: 700;
}

.hero-date {
    margin: 8px 0 0;
    opacity: 0.78;
    font-size: 0.92rem;
}

.hero-badge {
    min-width: 190px;
    padding: 16px;
    border-radius: 8px;
    background: rgba(255,255,255,0.2);
    text-align: center;
    backdrop-filter: blur(8px);
}

.hero-badge-num {
    font-size: 1.65rem;
    font-weight: 850;
}

.hero-badge-label {
    opacity: 0.9;
    font-size: 0.88rem;
}

.content {
    padding: 30px;
}

.intro-box {
    margin-bottom: 24px;
    padding: 22px;
    border: 2px solid #f59e0b;
    border-radius: 8px;
    background: #fef3c7;
}

.intro-box h3 {
    margin-bottom: 8px;
    color: #92400e;
    font-size: 1.12rem;
}

.intro-box p {
    margin-bottom: 0;
    color: #78350f;
    line-height: 1.6;
}

.deck-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.deck-metric {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.deck-metric span {
    display: block;
    margin-bottom: 7px;
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.deck-metric strong {
    display: block;
    overflow-wrap: anywhere;
    color: #1f2937;
    font-size: 1.25rem;
}

.section-header {
    margin: 0 0 16px;
}

.section-header h2 {
    margin-bottom: 4px;
    color: #1f2937;
    font-size: 1.55rem;
}

.section-header p {
    margin-bottom: 0;
    color: #6b7280;
}

.strategy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.strategy-card {
    overflow: hidden;
    border: 3px solid;
    border-radius: 10px;
    background: #fff;
    transition: transform 0.2s;
}

.strategy-card:hover {
    transform: translateY(-4px);
}

.strategy-card.recommended {
    border-color: #10b981;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.2);
}

.strategy-card.option-a {
    border-color: #94a3b8;
}

.strategy-card.option-c {
    border-color: #8b5cf6;
}

.strategy-header {
    position: relative;
    padding: 20px;
    color: #fff;
    text-align: center;
}

.strategy-header.bg-a {
    background: linear-gradient(135deg, #64748b, #475569);
}

.strategy-header.bg-b {
    background: linear-gradient(135deg, #10b981, #059669);
}

.strategy-header.bg-c {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.recommended-tag {
    position: absolute;
    top: -10px;
    right: 10px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #fbbf24;
    color: #78350f;
    box-shadow: 0 2px 4px rgba(0,0,0,0.12);
    font-size: 0.72rem;
    font-weight: 850;
}

.strategy-letter {
    margin-bottom: 4px;
    opacity: 0.9;
    font-size: 0.82rem;
    font-weight: 750;
}

.strategy-name {
    margin-bottom: 4px;
    font-size: 1.28rem;
    font-weight: 850;
}

.strategy-tagline {
    opacity: 0.9;
    font-size: 0.85rem;
}

.strategy-body {
    padding: 22px;
}

.big-number {
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 8px;
    background: #f9fafb;
    text-align: center;
}

.big-number-label {
    color: #6b7280;
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.big-number-value {
    margin: 8px 0;
    font-size: clamp(2rem, 4vw, 2.7rem);
    font-weight: 900;
    line-height: 1;
}

.profit-a {
    color: #64748b;
}

.profit-b {
    color: #10b981;
}

.profit-c {
    color: #8b5cf6;
}

.big-number-sub {
    color: #6b7280;
    font-size: 0.85rem;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.9rem;
}

.metric-row:last-child {
    border-bottom: 0;
}

.metric-label {
    color: #6b7280;
}

.metric-value {
    overflow-wrap: anywhere;
    text-align: right;
    font-weight: 800;
}

.metric-value.green {
    color: #10b981;
}

.pros-cons {
    margin-top: 14px;
}

.pros-cons h4 {
    margin: 12px 0 6px;
    font-size: 0.8rem;
    font-weight: 850;
    letter-spacing: 0;
}

.pros-cons h4.pros {
    color: #10b981;
}

.pros-cons h4.cons {
    color: #ef4444;
}

.pros-cons ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.pros-cons li {
    position: relative;
    padding: 3px 0 3px 22px;
    color: #374151;
    font-size: 0.84rem;
}

.pros-cons li::before {
    position: absolute;
    left: 0;
    font-weight: 850;
}

.pros-list li::before {
    content: "+";
    color: #10b981;
}

.cons-list li::before {
    content: "-";
    color: #ef4444;
}

.comparison-table-wrap {
    overflow-x: auto;
    margin-bottom: 24px;
    padding: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}

.comparison-table-wrap h2 {
    margin-bottom: 14px;
    color: #1f2937;
    font-size: 1.45rem;
}

.comparison-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.comparison-table th {
    padding: 12px;
    background: #f3f4f6;
    color: #1f2937;
    text-align: center;
    font-weight: 850;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
}

.comparison-table td {
    padding: 12px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    vertical-align: top;
}

.comparison-table td:first-child {
    font-weight: 800;
}

.comparison-table tr.highlight {
    background: #f0fdf4;
}

.comparison-table .col-a {
    background: #f8fafc;
}

.comparison-table .col-b {
    background: #f0fdf4;
    font-weight: 800;
}

.comparison-table .col-c {
    background: #faf5ff;
}

.cc-box {
    padding: 22px;
    border: 2px solid #f59e0b;
    border-radius: 8px;
    background: linear-gradient(to right, #fef3c7, #fef9c3);
}

.cc-box h2 {
    margin-bottom: 8px;
    color: #92400e;
    font-size: 1.35rem;
}

.cc-box p {
    margin-bottom: 0;
    color: #78350f;
}

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

.risk-card {
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.risk-card h4 {
    margin-bottom: 8px;
    color: #1f2937;
    font-size: 1rem;
}

.risk-card p {
    margin-bottom: 0;
    color: #4b5563;
}

.verdict-box {
    padding: 30px;
    border: 3px solid #10b981;
    border-radius: 10px;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    text-align: center;
}

.winner {
    margin-bottom: 8px;
    color: #047857;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.verdict-box h2 {
    margin-bottom: 12px;
    color: #065f46;
    font-size: clamp(1.65rem, 3vw, 2.2rem);
}

.verdict-box p {
    max-width: 760px;
    margin: 0 auto;
    color: #047857;
}

.verdict-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.verdict-stat {
    padding: 16px;
    border-radius: 8px;
    background: #fff;
}

.verdict-stat-num {
    overflow-wrap: anywhere;
    color: #065f46;
    font-size: 1.55rem;
    font-weight: 900;
}

.verdict-stat-label {
    color: #047857;
    font-size: 0.84rem;
    font-weight: 750;
}

.sources-panel {
    padding: 22px;
    border-radius: 8px;
    background: #f3f4f6;
}

.sources-panel h2 {
    margin-bottom: 12px;
    font-size: 1.35rem;
}

.sources-panel ul {
    margin: 0 0 16px;
    padding-left: 18px;
}

.sources-panel a {
    color: var(--accent-strong);
    font-weight: 800;
}

.sources-panel p {
    margin-bottom: 0;
    color: #4b5563;
}

@media (max-width: 860px) {
    .shell {
        width: min(100% - 22px, 760px);
        padding-top: 18px;
    }

    .topbar {
        display: grid;
        gap: 10px;
        padding: 0 12px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .tool-nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .top-button {
        min-height: 38px;
        padding: 0 10px;
        font-size: 0.84rem;
    }

    .search-panel,
    .two,
    .metrics,
    .comp-card,
    .hero-flex,
    .strategy-grid,
    .deck-metric-grid,
    .risks-grid,
    .verdict-stats {
        grid-template-columns: 1fr;
    }

    .hero-flex {
        display: grid;
    }

    .content,
    .deck-hero,
    .verdict-box {
        padding: 20px;
    }

    .hero-badge {
        min-width: 0;
        justify-self: start;
    }

    .search-panel {
        padding: 22px;
    }

    .address-row,
    .filters {
        grid-template-columns: 1fr;
    }

    .suggestions {
        right: 0;
    }

    .report {
        padding: 18px;
    }

    .report-header {
        display: grid;
    }

    .confidence {
        justify-self: start;
    }

    dl div {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}
