:root {
    color-scheme: light;
    --ink: #17202a;
    --muted: #64748b;
    --line: #d8dee8;
    --surface: #ffffff;
    --soft: #f5f7fa;
    --navy: #18324a;
    --green: #0f766e;
    --gold: #a16207;
    --red: #b42318;
    --blue: #2563eb;
    --shadow: 0 18px 45px rgba(24, 50, 74, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #fbfcfe;
}

a {
    color: inherit;
    text-decoration: none;
}

main {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header,
.site-footer {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-header {
    min-height: 72px;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--navy);
    color: #fff;
    font-size: 13px;
}

nav {
    display: flex;
    gap: 18px;
    color: var(--muted);
    font-size: 14px;
}

nav a:hover,
td a:hover {
    color: var(--blue);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 42px;
    align-items: center;
    padding: 76px 0 56px;
}

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

h1,
h2 {
    margin: 0;
    line-height: 1.05;
}

h1 {
    max-width: 780px;
    font-size: 54px;
}

h2 {
    font-size: 28px;
}

.lede,
.page-head p {
    max-width: 720px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.hero-actions,
.input-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-weight: 750;
    cursor: pointer;
}

.button.primary {
    border-color: var(--navy);
    background: var(--navy);
    color: #fff;
}

.metric-panel,
.stats-grid > div {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.metric-panel {
    padding: 28px;
}

.metric-panel strong {
    display: block;
    margin: 8px 0;
    font-size: 64px;
    line-height: 1;
}

.method-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 42px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.method-panel strong {
    display: block;
    margin: 8px 0;
    max-width: 680px;
    font-size: 34px;
    line-height: 1.1;
}

.method-panel p,
.factor-grid p,
.method-note p {
    color: var(--muted);
    line-height: 1.65;
}

.score-scale {
    display: grid;
    gap: 10px;
}

.score-scale div,
.factor-grid article,
.method-note {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.score-scale div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 16px;
}

.score-scale span,
.factor-grid span {
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.score-scale strong {
    font-size: 22px;
}

.factor-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 42px;
}

.factor-grid.wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.factor-grid article {
    padding: 18px;
}

.factor-grid h3 {
    margin: 8px 0;
    font-size: 20px;
    line-height: 1.2;
}

.method-note {
    margin-bottom: 64px;
    padding: 18px 20px;
}

.panel-label,
.stats-grid span,
.muted,
.filing-row small,
.event-card small {
    color: var(--muted);
}

.section-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
    padding-bottom: 70px;
}

.section-heading,
.page-head {
    margin: 36px 0 18px;
}

.page-head {
    padding-top: 48px;
}

.company-title {
    display: flex;
    gap: 12px;
    align-items: center;
}

.company-logo,
.company-title img.company-logo {
    display: block;
    width: 34px;
    height: 34px;
    min-width: 34px;
    max-width: 34px;
    max-height: 34px;
    flex: 0 0 34px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    padding: 3px;
}

.text-link {
    display: inline-flex;
    margin-top: 14px;
    color: var(--blue);
    font-weight: 750;
}

.page-head.narrow,
.signup-form {
    max-width: 680px;
}

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

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

.metric-guide article {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.metric-guide span {
    display: block;
    margin-bottom: 6px;
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.metric-guide p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

table {
    width: 100%;
    min-width: 1160px;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    white-space: nowrap;
}

th {
    background: var(--soft);
    color: #334155;
    font-size: 12px;
    text-transform: uppercase;
}

td {
    font-size: 14px;
}

.reason-cell {
    min-width: 220px;
    max-width: 320px;
    white-space: normal;
    line-height: 1.45;
    color: #334155;
}

tr:last-child td {
    border-bottom: 0;
}

.risk {
    display: inline-flex;
    min-width: 76px;
    justify-content: center;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.risk.high {
    background: #fee4e2;
    color: var(--red);
}

.risk.moderate {
    background: #fef3c7;
    color: var(--gold);
}

.risk.low {
    background: #ccfbf1;
    color: var(--green);
}

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

.event-card,
.filing-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.event-card strong {
    color: var(--red);
    font-size: 26px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0 42px;
}

.stats-grid > div {
    padding: 18px;
}

.stats-grid strong {
    display: block;
    margin-top: 8px;
    font-size: 22px;
}

.price-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 20px;
    align-items: stretch;
    margin-bottom: 42px;
}

.chart-panel,
.metric-stack > div,
.empty-chart {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.chart-panel {
    min-height: 360px;
    padding: 18px 20px 20px;
}

.price-chart {
    display: block;
    width: 100%;
    height: auto;
}

.chart-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-line,
.legend-box {
    display: inline-block;
    width: 20px;
    height: 8px;
    border-radius: 999px;
}

.legend-line.close {
    height: 3px;
    background: var(--blue);
}

.legend-line.average {
    height: 3px;
    background: repeating-linear-gradient(90deg, var(--green), var(--green) 5px, transparent 5px, transparent 9px);
}

.legend-line.unlock {
    height: 3px;
    background: repeating-linear-gradient(90deg, var(--red), var(--red) 6px, transparent 6px, transparent 10px);
}

.legend-box.volume {
    background: rgba(100, 116, 139, 0.22);
}

.legend-box.pre {
    background: rgba(161, 98, 7, 0.18);
}

.legend-box.post {
    background: rgba(15, 118, 110, 0.18);
}

.plot-bg {
    fill: #fbfdff;
}

.axis {
    stroke: #94a3b8;
    stroke-width: 1.4;
}

.axis-tick {
    stroke: #94a3b8;
    stroke-width: 1;
}

.grid-line {
    stroke: #e2e8f0;
    stroke-width: 1;
}

.price-line {
    fill: none;
    stroke: var(--blue);
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.unlock-marker {
    stroke: var(--red);
    stroke-width: 1.5;
    stroke-dasharray: 6 6;
}

.chart-label {
    fill: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.y-label {
    font-variant-numeric: tabular-nums;
}

.x-label {
    font-size: 10px;
}

.unlock-label {
    fill: var(--red);
    font-weight: 800;
}

.empty-chart {
    min-height: 282px;
    display: grid;
    place-content: center;
    gap: 8px;
    color: var(--muted);
    text-align: center;
    padding: 24px;
}

.empty-chart strong {
    color: var(--ink);
}

.metric-stack {
    display: grid;
    gap: 12px;
}

.metric-stack > div {
    padding: 16px;
}

.metric-stack span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.metric-stack strong {
    display: block;
    margin-top: 6px;
    font-size: 22px;
}

.window-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 42px;
}

.window-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.window-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
    margin-bottom: 8px;
}

.window-head span {
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.window-head strong {
    color: var(--muted);
    font-size: 13px;
}

.mini-chart {
    display: block;
    width: 100%;
    height: auto;
}

.mini-line {
    stroke-width: 2.6;
}

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

.window-stats div {
    padding: 10px;
    border-radius: 8px;
    background: var(--soft);
}

.window-stats span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.window-stats strong {
    display: block;
    margin-top: 4px;
    font-size: 14px;
}

.trade-table-grid {
    display: grid;
    gap: 18px;
    margin-bottom: 42px;
}

.trade-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.trade-card-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: baseline;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.trade-card-head span {
    display: block;
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.trade-card-head strong {
    display: block;
    margin-top: 4px;
    color: var(--ink);
    font-size: 20px;
}

.trade-card-head small {
    color: var(--muted);
    font-weight: 750;
}

.trade-table-wrap {
    overflow-x: auto;
    max-height: 540px;
    border-top: 1px solid var(--line);
}

.trade-table {
    min-width: 1040px;
    border: 0;
    border-radius: 0;
    font-size: 13px;
}

.trade-table th,
.trade-table td {
    padding: 10px 12px;
    white-space: nowrap;
}

.trade-table th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.offset-pill {
    display: inline-flex;
    min-width: 42px;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.offset-pill.pre {
    background: #edf5ff;
    color: #2463a5;
}

.offset-pill.post {
    background: #f1faf5;
    color: #137a51;
}

.offset-pill.zero {
    background: #fff7ed;
    color: #9a5b13;
}

.gain {
    color: #0f7a4f;
}

.loss {
    color: #b42318;
}

.strategy-panel {
    display: grid;
    gap: 18px;
    margin-bottom: 42px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.strategy-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 18px;
    align-items: start;
}

.strategy-kicker,
.strategy-date span,
.strategy-checks span,
.signal-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.strategy-head strong {
    display: block;
    margin-top: 4px;
    font-size: 26px;
}

.strategy-head p,
.strategy-checks p,
.strategy-note {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.strategy-date {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.strategy-date strong {
    font-size: 20px;
}

.strategy-date small {
    color: var(--muted);
}

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

.strategy-checks article,
.signal-grid > div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.strategy-checks strong {
    display: block;
    margin-top: 6px;
    font-size: 16px;
}

.signal-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.signal-grid strong {
    display: block;
    margin-top: 6px;
    font-size: 18px;
}

.strategy-note {
    padding-top: 2px;
    font-size: 13px;
}

.signup-form {
    margin: 26px 0 80px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.signup-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
}

input[type="email"] {
    flex: 1;
    min-width: 240px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
}

.success {
    color: var(--green);
    font-weight: 800;
}

.error {
    color: var(--red);
    font-weight: 800;
}

.site-footer {
    min-height: 76px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 860px) {
    .site-header,
    .site-footer,
    .hero,
    .section-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 38px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metric-guide {
        grid-template-columns: 1fr;
    }

    .method-panel,
    .factor-grid,
    .factor-grid.wide {
        grid-template-columns: 1fr;
    }

    .price-layout {
        grid-template-columns: 1fr;
    }

    .chart-meta {
        display: grid;
    }

    .window-grid {
        grid-template-columns: 1fr;
    }

    .strategy-head,
    .strategy-checks,
    .signal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    main,
    .site-header,
    .site-footer {
        width: min(100% - 28px, 1180px);
    }

    nav {
        flex-wrap: wrap;
    }

    h1 {
        font-size: 32px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}
