@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800;900&display=swap');

/* ===== Tokens ===== */
:root {
    --accent: #E7FF00;
    --accent-rgb: 231, 255, 0;
    --accent-strong: #D9FF1A;
    --bg: #0D0D0D;
    --bg-soft: #101010;
    --card: #121212;
    --fg: #E8EAEE;
    --fg-2: #A6AFB9;
    --fg-3: #7C858F;
    --line: #1E1E1E;
    --pos: #00FF84;
    --neg: #EF4444;
    --ff: "Inter", ui-sans-serif, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --fs: 20px;
    --lh: 1.8;
    --w: 1120px;
    --px: 24px;
    --py: 84px;
    --r-md: 16px;
    --r-lg: 20px;
}

/* ===== Base ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

html, body {
    height: 100%
}

body {
    background: linear-gradient(
            90deg,
            rgba(var(--accent-rgb), 0.03) 0%,
            transparent 50%,
            rgba(var(--accent-rgb), 0.03) 100%
    ),
    var(--bg);
    color: var(--fg);
    font-family: var(--ff);
    font-size: var(--fs);
    line-height: var(--lh);
    letter-spacing: -.01em;
    overflow-x: hidden;
}

.container {
    max-width: var(--w);
    margin: 0 auto;
    padding: 0 var(--px);
    position: relative;
    z-index: 1
}

.section {
    padding: calc(var(--py) * 1.1) 0;
}

/* ===== Nav ===== */
nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    background: rgba(13, 13, 13, .72);
    backdrop-filter: saturate(140%) blur(10px);
}

nav.scrolled {
    padding: 10px 0
}

.nav-container {
    display: flex;
    justify-content: right;
    align-items: center
}

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

.nav-links a:not(.btn) {
    color: var(--fg-2);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

.nav-links a:not(.btn):hover {
    color: var(--accent)
}

/* ===== Hero ===== */
.hero {
    padding: 168px 0 96px;
    text-align: center;
    background: transparent
}

.hero .container {
    max-width: 920px
}

h1 {
    font-size: clamp(44px, 7vw, 84px);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -.01em
}

.hero-subtitle {
    max-width: 820px;
    margin: 18px auto 0;
    color: var(--fg-2);
    font-size: 22px;
    line-height: 1.65;
}

.hero-subtitle strong {
    color: var(--fg);
    font-weight: 800
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}

.hero-callout {
    margin: 32px auto 0;
    max-width: 900px;
    padding: 28px 32px;
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, #141414 0%, #0E0E0E 100%);
    border: 1px solid var(--line);
    border-top-color: rgba(var(--accent-rgb), .45);
    font-size: 18px;
    line-height: 1.7;
}

.solid-green-text {
    color: var(--accent);
    font-weight: 900;
    text-transform: none;
    letter-spacing: 0;
}

/* ===== Buttons - UNIFIED STYLING ===== */
.btn {
    display: inline-block;
    font-family: var(--ff);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    padding: 16px 24px;
    border-radius: 999px;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s, background .2s, border-color .2s, box-shadow .2s;
}

.btn-primary {
    background: var(--accent);
    color: #0B0B0B;
    border: none;
    box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.45), 0 0 60px rgba(var(--accent-rgb), 0.16);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--accent-strong);
}

.btn-secondary {
    background: transparent;
    color: #E6F0FF;
    border-color: #2C2C2C;
}

.btn-secondary:hover {
    background: #141414;
}

.btn-cta-large, #nav-cta {
    background: var(--accent);
    color: #0B0B0B;
    border: none;
    box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.45), 0 0 60px rgba(var(--accent-rgb), 0.16);
}

.btn-cta-large:hover, #nav-cta:hover {
    transform: translateY(-2px);
    background: var(--accent-strong);
}

/* ===== Section titles ===== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: clamp(34px, 4.5vw, 56px);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -.005em;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 20px;
    color: var(--fg-2);
    max-width: 820px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== 2x2 Problem boxes ===== */
.grid-2 {
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap: 32px;
}

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

.problem-box .card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px
}

.problem-box .card-title {
    font-size: 22px;
    font-weight: 900;
    margin: 14px 0 6px
}

.problem-box .points {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.problem-box .point {
    display: flex;
    gap: 12px;
    align-items: flex-start
}

/* ===== Markers: larger yellow ? and green ✓ ===== */
.problem-box .marker {
    min-width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    line-height: 1;
    background: transparent;
    border: 0;
}

.problem-box .marker.qm {
    color: var(--accent); /* bright yellow */
    font-size: 24px; /* bigger ? */
}

.problem-box .marker.tick {
    color: var(--pos); /* green check */
    font-size: 22px;
}


.problem-box .point p {
    margin: 0;
    color: var(--fg-2);
    font-size: 18px;
    line-height: 1.6
}


/* ===== Cards ===== */
.grid-3 {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.card {
    background: linear-gradient(180deg, #141414 0%, #0F0F0F 100%);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 32px 28px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02);
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--accent-rgb), .38);
    box-shadow: 0 16px 44px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(var(--accent-rgb), .14)
}

.card-icon {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(var(--accent-rgb), .35);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    background: rgba(var(--accent-rgb), .06)
}

.card-value {
    font-size: 22px;
    font-weight: 900;
    margin: 16px 0 8px;
    text-transform: none;
    letter-spacing: 0;
}

.card-label {
    font-size: 14px;
    font-weight: 800;
    color: var(--fg-2);
    margin-bottom: 12px;
}

.card-description {
    color: var(--fg-2);
    font-size: 18px;
    line-height: 1.6;
}

/* ===== Flow List (Tax of Record section) ===== */
.flow-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.flow-list-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.flow-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.15), rgba(var(--accent-rgb), 0.08));
    border: 2px solid rgba(var(--accent-rgb), 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    color: var(--accent);
}

.flow-text {
    flex: 1;
    color: var(--fg-2);
    font-size: 18px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .flow-list-item {
        gap: 16px;
    }

    .flow-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .flow-text {
        font-size: 16px;
    }
}

/* ===== Calculator ===== */
.calculator-container {
    display: grid;
    grid-template-columns:minmax(420px, 1fr) minmax(520px, 1.2fr);
    gap: 44px;
    background: linear-gradient(135deg, #1A1A1A 0%, #151515 100%);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    border-radius: var(--r-lg);
    padding: 40px;
    align-items: start;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .42);
}

.left-panel {
    position: sticky;
    top: 100px;
    background: rgba(255, 255, 255, 0.02);
    padding: 32px 28px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.inputs-title,
.calculator-results h3 {
    font-size: 24px;
    font-weight: 900;
    line-height: 1.3;
    color: var(--fg);
    margin: 0 0 20px 0;
    text-transform: none;
    letter-spacing: 0;
}

.calculator-results {
    background: #1A1A1A;
    border-radius: 12px;
    padding: 36px 32px;
    border: 1px solid #333;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02);
}

.calculator-results {
    max-width: none;
}


.calculator-subtitle {
    font-size: 16px;
    color: var(--fg-3);
    margin-bottom: 28px;
    letter-spacing: 0;
    font-style: italic;
    line-height: 1.4;
}

.input-label {
    display: block;
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 16px;
    color: #C9D2DC;
    line-height: 1.4;
}

.result-label {
    font-size: 16px;
    font-weight: 600;
    color: #E8EAEE;
    line-height: 1.4;
    flex: 1;
    padding-right: 16px;
}

.range-value, .result-value {
    font-size: 18px;
    font-weight: 900;
    color: #FFFFFF;
    white-space: nowrap;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    text-align: right;
}

.range-value {
    margin-top: 12px;
}

.input-group {
    margin-bottom: 24px;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.result-item:last-of-type {
    border-bottom: none;
}

.highlight-box-red, .highlight-box-green {
    display: block;
    width: 100%;
    margin: 24px 0;
    padding: 24px 28px;
    border-radius: 12px;
    border: 2px solid;
    box-sizing: border-box;
}

.highlight-box-red {
    background: rgba(239, 68, 68, .06);
    border-color: rgba(239, 68, 68, .25);
}

.highlight-box-green {
    background: rgba(0, 255, 132, .06);
    border-color: rgba(0, 255, 132, .25);
}

.highlight-box-red .result-item, .highlight-box-green .result-item {
    padding: 0;
    border-bottom: none;
    margin: 0;
}

.highlight-box-red .result-value {
    color: var(--neg);
}

.calc-cta-bottom {
    margin-top: 24px;
    text-align: center;
}

.calc-note {
    margin-top: 12px;
    font-size: 14px;
    color: var(--fg-3);
    font-style: italic;
    line-height: 1.4;
}

/* Inputs */
.range-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 12px;
    border-radius: 8px;
    background: #2A2A2A;
    border: 1px solid #404040;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid #000;
    margin-top: -7px;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.4);
}

.range-input::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid #000;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.4);
}

/* ===== "How we calculate" ===== */
.calculator-explanation {
    max-width: var(--w);
    margin: 36px auto 0;
    padding: 22px 26px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02)
}

.explanation-title {
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: 0;
}

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

.explanation-item h4 {
    font-size: 16px;
    margin-bottom: 6px;
    font-weight: 800
}

.explanation-item p {
    color: var(--fg-2);
    font-size: 16px
}

/* ===== Value hero ===== */
.value-hero {
    margin: 60px auto;
    max-width: 1060px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    text-align: center;
    box-shadow: none;
}

.value-hero-content {
    font-size: clamp(34px, 4.5vw, 56px);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.005em;
    color: var(--fg);
}

.value-highlight {
    color: var(--accent);
    font-weight: 900;
    text-transform: none;
    letter-spacing: 0;
    font-size: inherit;
    margin: 0;
    display: inline;
}

/* ===== Comparison table ===== */
.table-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .01));
    border: 1px solid rgba(var(--accent-rgb), .18);
    border-radius: 16px;
    overflow: hidden
}

table {
    width: 100%;
    border-collapse: collapse
}

thead {
    border-bottom: 1px solid rgba(var(--accent-rgb), .18)
}

th {
    padding: 24px 28px;
    text-align: left;
    font-size: 16px; /* match td size */
    font-weight: 600; /* or 400 if you want identical weight */
    letter-spacing: 0;
}

tbody tr {
    background: rgba(255, 255, 255, .01);
    border-bottom: 1px solid rgba(255, 255, 255, .06)
}

tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, .03)
}

td {
    padding: 22px 28px;
    font-size: 16px;
    line-height: 1.5;
}

.tick {
    color: var(--pos);
    font-weight: 800
}

.cross {
    color: var(--neg);
    font-weight: 800
}

/* Allow rounded corners on cells */
.table-container table {
    border-collapse: separate !important;
    border-spacing: 0; /* keeps rows tight like before */
}

/* Outpost row highlight */
tbody tr.outpost-row td {
    background: rgba(var(--accent-rgb), .05);
    border-top: 1px solid rgba(var(--accent-rgb), .65);
    border-bottom: 1px solid rgba(var(--accent-rgb), .65);
    box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .12);
}

/* rounded corners that now render (because of separate borders) */
tbody tr.outpost-row td:first-child {
    border-left: 1px solid rgba(var(--accent-rgb), .65);
    border-top-left-radius: 16px; /* match table radius */
    border-bottom-left-radius: 16px;
}

tbody tr.outpost-row td:last-child {
    border-right: 1px solid rgba(var(--accent-rgb), .65);
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
}

/* ===== Tax of Record Table ===== */
.tax-table-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .01));
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}

.tax-table-container table {
    width: 100%;
    border-collapse: collapse;
}

.tax-table-container thead {
    background: rgba(255, 255, 255, .02);
    border-bottom: 1px solid var(--line);
}

.tax-table-container th {
    padding: 24px 28px;
    text-align: left;
    font-size: 16px;
    color: var(--fg);
    font-weight: 600;
    letter-spacing: 0;
}

.tax-table-container tbody tr {
    background: rgba(255, 255, 255, .01);
    border-bottom: 1px solid var(--line);
}

.tax-table-container tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, .03);
}

.tax-table-container td {
    padding: 22px 28px;
    font-size: 16px;
    line-height: 1.5;
}

.tax-table-container td.highlight-accent {
    color: var(--accent);
    font-weight: 600;
}

.tax-table-container td.highlight-neg {
    color: var(--neg);
    font-weight: 700;
}

.tax-table-container td.bold-text {
    color: var(--fg);
    font-weight: 700;
}

/* ===== Footer ===== */
.disclaimer-footer {
    background: var(--bg);
    border-top: 1px solid var(--line);
    padding: 46px 0
}

.disclaimer-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center
}

.disclaimer-text {
    color: var(--fg-3);
    font-size: 15px;
    line-height: 1.9;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .grid-3 {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }
}

@media (max-width: 1200px) {
    .calculator-container {
        grid-template-columns:1fr;
        gap: 32px;
        padding: 32px
    }

    .left-panel {
        position: static
    }
}

@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns:1fr
    }

    .calculator-container {
        gap: 26px;
        padding: 28px
    }

    .calculator-explanation {
        padding: 22px
    }

    .calculator-explanation .explanation-grid {
        grid-template-columns:1fr
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 18px
    }

    .hero {
        padding: 140px 0 80px
    }

    h1 {
        font-size: 40px
    }

    /* Responsive table - tablet */
    .tax-table-container th {
        padding: 18px 20px;
        font-size: 14px;
    }

    .tax-table-container td {
        padding: 16px 20px;
        font-size: 14px;
    }

    .table-container th {
        padding: 18px 20px;
        font-size: 14px;
    }

    .table-container td {
        padding: 16px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    /* Responsive table - mobile */
    .tax-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tax-table-container th {
        padding: 12px 14px;
        font-size: 12px;
        line-height: 1.3;
    }

    .tax-table-container td {
        padding: 10px 14px;
        font-size: 12px;
        line-height: 1.4;
    }

    .tax-table-container table {
        min-width: 100%;
    }

    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-container th {
        padding: 12px 14px;
        font-size: 12px;
        line-height: 1.3;
    }

    .table-container td {
        padding: 10px 14px;
        font-size: 12px;
        line-height: 1.4;
    }

    .table-container table {
        min-width: 100%;
    }
}

@media (max-width: 390px) {
    /* Extra narrow mobile screens */
    .tax-table-container th {
        padding: 10px 10px;
        font-size: 11px;
    }

    .tax-table-container td {
        padding: 8px 10px;
        font-size: 11px;
    }

    .table-container th {
        padding: 10px 10px;
        font-size: 11px;
    }

    .table-container td {
        padding: 8px 10px;
        font-size: 11px;
    }
}

.section:last-of-type {
    padding-top: 58px;
    padding-bottom: 70px
}
