.tc-app {
    --tc-ink: #172025;
    --tc-muted: #64737a;
    --tc-soft: #f4f7f6;
    --tc-panel: #ffffff;
    --tc-line: #d9e1df;
    --tc-teal: #0f766e;
    --tc-green: #22784f;
    --tc-amber: #bd7b12;
    --tc-red: #b94343;
    --tc-navy: #101820;
    --tc-shadow: 0 18px 45px rgba(16, 24, 32, 0.10);
    color: var(--tc-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    max-width: 1120px;
    margin: 0 auto;
}

.tc-app *,
.tc-app *::before,
.tc-app *::after {
    box-sizing: border-box;
}

.tc-app a {
    color: inherit;
}

.tc-kicker {
    color: var(--tc-teal);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 0.35rem;
    text-transform: uppercase;
}

.tc-hero {
    align-items: center;
    background-position: center right;
    background-repeat: no-repeat;
    background-size: cover;
    color: #ffffff;
    display: flex;
    min-height: 520px;
    overflow: visible;
    padding: 56px;
}

.tc-hero .tc-kicker {
    color: #7ee0d2;
}

.tc-hero-inner {
    max-width: 600px;
}

.tc-hero h1,
.tc-product-hero h1,
.tc-calc-header h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.04;
    margin: 0;
}

.tc-hero-subtitle,
.tc-calc-header p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.15rem;
    margin: 0.85rem 0 1.6rem;
    max-width: 620px;
}

.tc-search {
    max-width: 540px;
    position: relative;
}

.tc-search-input {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 8px;
    color: var(--tc-ink);
    font: inherit;
    height: 56px;
    padding: 0 18px;
    width: 100%;
}

.tc-search-input:focus {
    box-shadow: 0 0 0 4px rgba(126, 224, 210, 0.25);
    outline: 0;
}

.tc-search-results {
    background: #ffffff;
    border: 1px solid var(--tc-line);
    border-radius: 8px;
    box-shadow: var(--tc-shadow);
    color: var(--tc-ink);
    display: none;
    left: 0;
    margin-top: 8px;
    max-height: 340px;
    overflow: auto;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 50;
}

.tc-search-results.is-active {
    display: block;
}

.tc-search-results.is-empty::before {
    color: var(--tc-muted);
    content: "No matches yet";
    display: block;
    padding: 14px 16px;
}

.tc-search-item {
    align-items: center;
    border-bottom: 1px solid var(--tc-line);
    display: flex;
    gap: 12px;
    min-height: 48px;
    padding: 10px 14px;
    text-decoration: none;
}

.tc-search-item:last-child {
    border-bottom: 0;
}

.tc-search-item:hover,
.tc-search-item:focus {
    background: var(--tc-soft);
}

.tc-search-type {
    background: #e9f6f2;
    border-radius: 999px;
    color: var(--tc-teal);
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 800;
    justify-content: center;
    min-width: 86px;
    padding: 4px 8px;
}

.tc-section {
    margin: 38px 0;
}

.tc-section-heading {
    margin-bottom: 16px;
}

.tc-section-heading h2,
.tc-card h2,
.tc-alt-card h2,
.tc-break-even h2,
.tc-score-widget h2 {
    font-size: 1.45rem;
    line-height: 1.2;
    letter-spacing: 0;
    margin: 0;
}

.tc-category-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.tc-category-card {
    background: var(--tc-panel);
    border: 1px solid var(--tc-line);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 154px;
    padding: 18px;
    text-decoration: none;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.tc-category-card:hover,
.tc-category-card:focus {
    border-color: var(--tc-teal);
    box-shadow: var(--tc-shadow);
    transform: translateY(-2px);
}

.tc-category-badge {
    align-items: center;
    background: var(--tc-navy);
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 900;
    height: 38px;
    justify-content: center;
    width: 42px;
}

.tc-category-name {
    font-size: 1.06rem;
    font-weight: 850;
}

.tc-category-meta {
    color: var(--tc-muted);
    font-size: 0.92rem;
}

.tc-two-column {
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.tc-link-list,
.tc-update-list {
    border: 1px solid var(--tc-line);
    border-radius: 8px;
    overflow: hidden;
}

.tc-link-list a,
.tc-update-list a {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid var(--tc-line);
    display: flex;
    justify-content: space-between;
    min-height: 54px;
    padding: 12px 16px;
    text-decoration: none;
}

.tc-link-list a:last-child,
.tc-update-list a:last-child {
    border-bottom: 0;
}

.tc-link-list a:hover,
.tc-update-list a:hover {
    background: var(--tc-soft);
}

.tc-link-list span:last-child,
.tc-update-list span:last-child {
    color: var(--tc-muted);
    font-size: 0.86rem;
    margin-left: 16px;
}

.tc-calc-header {
    background: var(--tc-navy);
    color: #ffffff;
    padding: 36px;
}

.tc-calc-header .tc-kicker {
    color: #7ee0d2;
}

.tc-control-panel {
    background: var(--tc-soft);
    border: 1px solid var(--tc-line);
    border-radius: 8px;
    margin: 18px 0;
    padding: 18px;
}

.tc-control-main {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.tc-control-main label {
    font-weight: 850;
}

.tc-usage-value {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--tc-line);
    border-radius: 8px;
    display: inline-flex;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    min-width: 64px;
    padding: 0 12px;
}

.tc-usage-slider {
    accent-color: var(--tc-teal);
    width: 100%;
}

.tc-segmented,
.tc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tc-segmented button,
.tc-tab,
.tc-button {
    align-items: center;
    border: 1px solid var(--tc-line);
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 800;
    justify-content: center;
    min-height: 42px;
    padding: 9px 14px;
    text-decoration: none;
}

.tc-segmented button,
.tc-tab {
    background: #ffffff;
    color: var(--tc-ink);
}

.tc-segmented button.is-active,
.tc-tab.is-active {
    background: var(--tc-teal);
    border-color: var(--tc-teal);
    color: #ffffff;
}

.tc-button {
    background: var(--tc-navy);
    border-color: var(--tc-navy);
    color: #ffffff;
}

.tc-button:hover,
.tc-button:focus {
    background: var(--tc-teal);
    border-color: var(--tc-teal);
}

.tc-insight {
    align-items: center;
    background: #f8fbf6;
    border-left: 5px solid var(--tc-green);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin: 18px 0;
    padding: 16px 18px;
}

.tc-insight span {
    color: var(--tc-muted);
}

.tc-card-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.tc-card {
    background: #ffffff;
    border: 1px solid var(--tc-line);
    border-radius: 8px;
    padding: 18px;
}

.tc-card.is-best {
    border-color: var(--tc-green);
    box-shadow: 0 0 0 3px rgba(34, 120, 79, 0.12);
}

.tc-card-top {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    min-height: 78px;
}

.tc-card-brand {
    color: var(--tc-muted);
    font-size: 0.84rem;
    font-weight: 800;
    margin: 0 0 4px;
}

.tc-best-badge {
    background: #e8f6ee;
    border-radius: 999px;
    color: var(--tc-green);
    font-size: 0.78rem;
    font-weight: 900;
    padding: 5px 8px;
    white-space: nowrap;
}

.tc-metric-list,
.tc-score-grid {
    display: grid;
    gap: 10px;
    margin: 16px 0;
}

.tc-metric-list div,
.tc-score-grid div {
    align-items: baseline;
    border-bottom: 1px solid var(--tc-line);
    display: flex;
    justify-content: space-between;
    padding-bottom: 8px;
}

.tc-metric-list dt,
.tc-score-grid dt {
    color: var(--tc-muted);
    font-size: 0.88rem;
}

.tc-metric-list dd,
.tc-score-grid dd {
    font-weight: 900;
    margin: 0 0 0 12px;
    text-align: right;
}

.tc-bar {
    background: #e7ecea;
    border-radius: 999px;
    height: 10px;
    margin-top: 16px;
    overflow: hidden;
}

.tc-bar span {
    background: linear-gradient(90deg, var(--tc-green), var(--tc-amber));
    display: block;
    height: 100%;
    transition: width 180ms ease;
    width: 6%;
}

.tc-card-note {
    color: var(--tc-muted);
    font-size: 0.92rem;
    margin: 14px 0 0;
}

.tc-product-hero {
    background: var(--tc-navy);
    color: #ffffff;
    padding: 36px;
}

.tc-product-hero .tc-kicker {
    color: #7ee0d2;
}

.tc-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.tc-product-meta span {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 7px 10px;
}

.tc-cost-breakdown,
.tc-alt-card,
.tc-break-even,
.tc-score-widget {
    background: #ffffff;
    border: 1px solid var(--tc-line);
    border-radius: 8px;
    margin: 18px 0;
    padding: 20px;
}

.tc-breakdown-list {
    display: grid;
    gap: 0;
}

.tc-breakdown-list div {
    align-items: center;
    border-bottom: 1px solid var(--tc-line);
    display: flex;
    justify-content: space-between;
    min-height: 52px;
}

.tc-breakdown-list div:last-child {
    border-bottom: 0;
}

.tc-breakdown-list strong {
    font-size: 1.05rem;
}

.tc-total-band,
.tc-compare-band {
    background: var(--tc-navy);
    color: #ffffff;
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 18px 0;
}

.tc-compare-band {
    background: #173133;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tc-total-band div,
.tc-compare-band div {
    background: rgba(255, 255, 255, 0.06);
    padding: 20px;
}

.tc-total-band span,
.tc-compare-band span {
    color: rgba(255, 255, 255, 0.72);
    display: block;
    font-size: 0.88rem;
    margin-bottom: 6px;
}

.tc-total-band strong,
.tc-compare-band strong {
    display: block;
    font-size: 2rem;
    line-height: 1.1;
}

.tc-break-even {
    border-left: 5px solid var(--tc-amber);
}

.tc-break-even p:last-child,
.tc-alt-card p:last-child {
    color: var(--tc-muted);
    margin-bottom: 0;
}

.tc-table-wrap {
    border: 1px solid var(--tc-line);
    border-radius: 8px;
    overflow-x: auto;
}

.tc-table {
    border-collapse: collapse;
    min-width: 720px;
    width: 100%;
}

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

.tc-table thead th {
    background: var(--tc-navy);
    color: #ffffff;
    font-weight: 900;
}

.tc-table tbody th {
    background: var(--tc-soft);
    font-weight: 900;
    width: 210px;
}

.tc-table tbody tr:last-child th,
.tc-table tbody tr:last-child td {
    border-bottom: 0;
}

.tc-score-widget {
    max-width: 520px;
}

.tc-score-widget h2 {
    margin-bottom: 8px;
}

.tc-score-widget .tc-button {
    width: 100%;
}

.tc-notice {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    color: #7c2d12;
    padding: 14px 16px;
}

@media (max-width: 760px) {
    .tc-hero {
        background-position: center;
        min-height: 460px;
        padding: 28px;
    }

    .tc-hero h1,
    .tc-product-hero h1,
    .tc-calc-header h1 {
        font-size: 2.25rem;
    }

    .tc-hero-subtitle,
    .tc-calc-header p {
        font-size: 1rem;
    }

    .tc-two-column,
    .tc-total-band,
    .tc-compare-band {
        grid-template-columns: 1fr;
    }

    .tc-calc-header,
    .tc-product-hero {
        padding: 26px;
    }

    .tc-control-main,
    .tc-insight,
    .tc-metric-list div,
    .tc-score-grid div,
    .tc-breakdown-list div {
        align-items: flex-start;
        flex-direction: column;
    }

    .tc-metric-list dd,
    .tc-score-grid dd {
        margin-left: 0;
        text-align: left;
    }

    .tc-search-type {
        min-width: 74px;
    }
}
