:root {
    color-scheme: dark;
    --ink: #ffffff;
    --muted: #a0a5bd;
    --subtle: #767c98;
    --page: #151723;
    --app: #1a1d2e;
    --surface: #232640;
    --surface-strong: #2a2d42;
    --line: #3d4166;
    --line-soft: rgba(255, 255, 255, 0.1);
    --header: rgba(21, 23, 35, 0.96);
    --footer: #10121a;
    --ghost: rgba(255, 255, 255, 0.08);
    --shadow: rgba(0, 0, 0, 0.32);
    --gold: #f5c542;
    --gold-text: #f5c542;
    --green: #6bcb77;
    --teal: #5cbdb9;
    --red: #ef6b6b;
    --max-width: 1180px;
}

:root[data-theme="light"] {
    color-scheme: light;
    --ink: #171923;
    --muted: #4f5870;
    --subtle: #687089;
    --page: #f7f8fc;
    --app: #eef1f7;
    --surface: #ffffff;
    --surface-strong: #e8ecf4;
    --line: #c6cddd;
    --line-soft: rgba(23, 25, 35, 0.12);
    --header: rgba(255, 255, 255, 0.96);
    --footer: #e8ecf4;
    --ghost: rgba(23, 25, 35, 0.08);
    --shadow: rgba(31, 38, 57, 0.16);
    --gold: #efc33f;
    --gold-text: #765400;
    --green: #2f8a4b;
    --teal: #187f7b;
    --red: #c84e55;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--page);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: 0;
}

button,
input,
textarea,
select {
    font: inherit;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

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

h1,
h2,
h3 {
    line-height: 1.08;
    letter-spacing: 0;
}

h1 {
    margin-bottom: 18px;
    font-size: 76px;
    font-weight: 800;
}

h2 {
    margin-bottom: 18px;
    font-size: 44px;
    font-weight: 750;
}

h3 {
    margin-bottom: 10px;
    font-size: 21px;
    font-weight: 720;
}

.shell {
    width: min(calc(100% - 48px), var(--max-width));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    transform: translateY(-160%);
    border: 1px solid var(--gold);
    border-radius: 4px;
    background: var(--page);
    color: var(--ink);
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    height: 68px;
    border-bottom: 1px solid var(--line-soft);
    background: var(--header);
    backdrop-filter: blur(14px);
}

.nav-row {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 20px;
    font-weight: 780;
    text-decoration: none;
}

.brand img {
    border-radius: 7px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav a,
.footer-links a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.site-nav a:hover,
.footer-links a:hover {
    color: var(--ink);
}

.nav-action {
    padding: 9px 14px;
    border: 1px solid var(--gold);
    border-radius: 5px;
    color: var(--gold-text);
    font-size: 14px;
    font-weight: 720;
    text-decoration: none;
}

.nav-action:hover {
    background: var(--gold);
    color: #171923;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
}

.theme-toggle:hover {
    border-color: var(--gold-text);
    background: var(--surface-strong);
}

.theme-toggle-icon {
    display: block;
    width: 16px;
    height: 16px;
    transform: rotate(0deg);
    border: 2px solid currentColor;
    border-radius: 50%;
    background: linear-gradient(90deg, currentColor 50%, transparent 50%);
    transition: transform 180ms ease;
}

:root[data-theme="light"] .theme-toggle-icon {
    transform: rotate(180deg);
}

.hero {
    position: relative;
    height: min(780px, calc(100svh - 98px));
    min-height: 630px;
    overflow: hidden;
    border-bottom: 1px solid var(--line-soft);
    background: var(--app);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    height: 100%;
    max-width: var(--max-width);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-bottom: 20px;
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--gold-text);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

.hero-lead {
    max-width: 520px;
    margin-bottom: 16px;
    color: var(--ink);
    font-size: 25px;
    font-weight: 630;
    line-height: 1.35;
}

.hero-detail {
    max-width: 500px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 17px;
}

.hero-note {
    margin: 14px 0 0;
    color: var(--subtle);
    font-size: 13px;
}

.store-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.store-button {
    display: flex;
    min-width: 166px;
    min-height: 58px;
    flex-direction: column;
    justify-content: center;
    padding: 9px 18px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
}

.store-button small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.1;
}

.store-button strong {
    margin-top: 3px;
    font-size: 17px;
    line-height: 1.2;
}

.store-button:hover {
    border-color: var(--ink);
    background: var(--surface-strong);
}

.store-button.primary {
    border-color: var(--gold);
    background: var(--gold);
    color: #171923;
}

.store-button.primary small {
    color: rgba(23, 25, 35, 0.72);
}

.hero-product {
    position: absolute;
    z-index: 1;
    top: 50%;
    right: max(24px, calc((100vw - var(--max-width)) / 2));
    width: min(49vw, 640px);
    min-width: 570px;
    padding: 26px;
    transform: translateY(-50%);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 26px 80px var(--shadow);
}

.product-topline,
.product-summary,
.pulse-heading,
.match-line,
.tool-title,
.flow-teams,
.tool-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-topline {
    margin-bottom: 26px;
    color: var(--subtle);
    font-size: 11px;
    font-weight: 780;
}

.live-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--red);
}

.live-label span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
}

.match-line {
    margin-bottom: 24px;
}

.match-line > div {
    display: flex;
    min-width: 140px;
    flex-direction: column;
}

.match-line strong {
    font-size: 20px;
}

.match-line div span {
    color: var(--muted);
    font-size: 12px;
}

.away-team {
    align-items: flex-end;
}

.score {
    margin: 0;
    font-variant-numeric: tabular-nums;
    font-size: 38px;
    font-weight: 800;
}

.score span {
    color: var(--subtle);
}

.pulse-preview {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--app);
}

.pulse-heading {
    margin-bottom: 14px;
}

.pulse-heading > div {
    display: flex;
    flex-direction: column;
}

.pulse-heading span {
    color: var(--subtle);
    font-size: 10px;
    font-weight: 700;
}

.pulse-heading strong {
    margin-top: 2px;
    font-size: 16px;
}

.pulse-chart {
    position: relative;
    display: flex;
    height: 180px;
    align-items: stretch;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line-soft);
}

.pulse-chart::after,
.expanded-flow::after {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 1px;
    background: var(--line);
    content: "";
}

.flow-bar {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.flow-bar::before {
    position: absolute;
    right: 0;
    left: 0;
    height: var(--bar);
    content: "";
}

.flow-bar.home::before {
    bottom: 50%;
    background: var(--gold);
}

.flow-bar.away::before {
    top: 50%;
    background: var(--teal);
}

.flow-bar.future::before {
    bottom: 50%;
    background: var(--ghost);
}

.event-dot,
.flow-event {
    position: absolute;
    z-index: 3;
    padding: 3px 5px;
    border: 1px solid currentColor;
    border-radius: 4px;
    background: var(--app);
    color: var(--gold-text);
    font-size: 8px;
    font-style: normal;
    font-weight: 850;
    line-height: 1;
}

.goal-one { top: 13px; left: 29%; }
.var-one { bottom: 13px; left: 52%; color: var(--teal); }
.goal-two { top: 13px; left: 70%; }

.pulse-axis {
    display: flex;
    justify-content: space-between;
    padding-top: 8px;
    color: var(--subtle);
    font-size: 10px;
}

.product-summary {
    margin-top: 18px;
    border-top: 1px solid var(--line-soft);
    padding-top: 16px;
}

.product-summary span {
    display: flex;
    width: 33.333%;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid var(--line-soft);
}

.product-summary span:last-child {
    border-right: 0;
}

.product-summary small {
    color: var(--subtle);
    font-size: 10px;
}

.product-summary strong {
    margin-top: 3px;
    font-size: 13px;
}

.feature-intro,
.how-section,
.scoring-section,
.choice-section,
.roadmap-section {
    padding: 96px 0;
    background: var(--page);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 54px;
}

.section-heading.compact {
    margin-bottom: 34px;
}

.section-heading p:not(.eyebrow),
.band-copy > p,
.site-footer p {
    color: var(--muted);
}

.section-heading p:not(.eyebrow) {
    max-width: 650px;
    font-size: 18px;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.feature-list article {
    padding-top: 20px;
    border-top: 2px solid var(--line);
}

.feature-list article:nth-child(1) { border-color: var(--gold); }
.feature-list article:nth-child(2) { border-color: var(--teal); }
.feature-list article:nth-child(3) { border-color: var(--green); }
.feature-list article:nth-child(4) { border-color: var(--red); }

.feature-list article > span {
    display: block;
    margin-bottom: 30px;
    color: var(--subtle);
    font-size: 12px;
    font-weight: 780;
}

.feature-list article p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
}

.product-band {
    padding: 96px 0;
    border-bottom: 1px solid var(--line-soft);
    border-top: 1px solid var(--line-soft);
    background: var(--app);
}

.squad-band {
    border-top: 0;
    background: var(--surface);
}

.band-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
    align-items: center;
    gap: 80px;
}

.band-layout.reversed {
    grid-template-columns: minmax(480px, 1.1fr) minmax(0, 0.9fr);
}

.band-layout.reversed .band-copy {
    grid-column: 2;
}

.band-layout.reversed .standings-tool {
    grid-row: 1;
    grid-column: 1;
}

.band-copy h2 {
    max-width: 540px;
}

.band-copy > p {
    font-size: 17px;
}

.plain-list {
    display: grid;
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.plain-list li {
    position: relative;
    padding-left: 18px;
    color: var(--muted);
    font-size: 14px;
}

.plain-list li::before {
    position: absolute;
    top: 0.68em;
    left: 0;
    width: 6px;
    height: 6px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--gold);
    content: "";
}

.flow-tool,
.standings-tool {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
    box-shadow: 0 20px 60px var(--shadow);
}

.tool-title {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--subtle);
    font-size: 11px;
    font-weight: 760;
}

.flow-teams {
    padding: 16px 2px 8px;
    font-size: 13px;
}

.flow-teams strong:first-child { color: var(--gold-text); }
.flow-teams strong:last-child { color: var(--teal); }

.expanded-flow {
    position: relative;
    display: grid;
    height: 250px;
    grid-template-columns: repeat(15, minmax(0, 1fr));
    align-items: center;
    gap: 5px;
    border-bottom: 1px solid var(--line-soft);
    border-top: 1px solid var(--line-soft);
}

.expanded-flow > span {
    z-index: 1;
    width: 100%;
    min-height: 10px;
}

.expanded-flow .up { margin-top: -50%; background: var(--gold); }
.expanded-flow .down { margin-bottom: -50%; background: var(--teal); }
.expanded-flow .pending { height: 18px; margin-top: -50%; background: var(--ghost); }
.expanded-flow .h1 { height: 44px; }
.expanded-flow .h2 { height: 73px; }
.expanded-flow .h3 { height: 54px; }
.expanded-flow .a1 { height: 42px; }
.expanded-flow .a2 { height: 66px; }
.expanded-flow .h4 { height: 84px; }
.expanded-flow .h5 { height: 61px; }
.expanded-flow .a3 { height: 50px; }
.expanded-flow .a4 { height: 88px; }
.expanded-flow .h6 { height: 46px; }
.expanded-flow .h7 { height: 94px; }
.expanded-flow .a5 { height: 56px; }
.expanded-flow .h8 { height: 72px; }
.expanded-flow .h9 { height: 50px; }

.flow-event.first { top: 12px; left: 21%; }
.flow-event.second { bottom: 12px; left: 49%; color: var(--teal); }
.flow-event.third { top: 12px; left: 72%; color: var(--red); }

.tool-footer {
    padding-top: 10px;
    color: var(--subtle);
    font-size: 10px;
}

.standing-row {
    display: grid;
    min-height: 58px;
    grid-template-columns: 58px minmax(0, 1fr) 64px 54px;
    align-items: center;
    border-bottom: 1px solid var(--line-soft);
    font-variant-numeric: tabular-nums;
    font-size: 14px;
}

.standing-row span:nth-child(3),
.standing-row b {
    text-align: right;
}

.standing-row.active {
    margin-inline: -24px;
    padding-inline: 24px;
    border-left: 3px solid var(--gold);
    background: rgba(245, 197, 66, 0.08);
}

.header-row {
    min-height: 46px;
    color: var(--subtle);
    font-size: 10px;
    font-weight: 760;
    text-transform: uppercase;
}

.participation-line {
    height: 6px;
    margin-top: 24px;
    overflow: hidden;
    border-radius: 3px;
    background: var(--ghost);
}

.participation-line span {
    display: block;
    width: var(--part);
    height: 100%;
    background: var(--green);
}

.standings-tool > p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12px;
    text-align: right;
}

.steps {
    display: grid;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.steps li {
    display: grid;
    min-height: 112px;
    grid-template-columns: 80px minmax(0, 1fr);
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.steps li > span {
    color: var(--gold-text);
    font-size: 30px;
    font-weight: 780;
}

.steps h3 {
    margin-bottom: 5px;
}

.steps p {
    margin-bottom: 0;
    color: var(--muted);
}

.choice-section {
    border-bottom: 1px solid var(--line-soft);
    border-top: 1px solid var(--line-soft);
    background: var(--surface);
}

.choice-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
    gap: 88px;
}

.choice-copy h2 {
    max-width: 540px;
}

.choice-copy > p:not(.eyebrow) {
    color: var(--muted);
    font-size: 17px;
}

.choice-copy .membership-note {
    max-width: 560px;
    padding-left: 16px;
    border-left: 3px solid var(--gold);
    color: var(--ink);
    font-size: 14px;
}

.choice-principles {
    border-top: 1px solid var(--line);
}

.choice-row {
    display: grid;
    min-height: 126px;
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.choice-row > span {
    color: var(--gold-text);
    font-size: 14px;
    font-weight: 780;
}

.choice-row h3 {
    margin-bottom: 6px;
}

.choice-row p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
}

.support-note {
    margin: 20px 0 0;
    color: var(--subtle);
    font-size: 12px;
}

.support-note a {
    color: var(--ink);
    text-underline-offset: 3px;
}

.scoring-section {
    border-top: 1px solid var(--line-soft);
    background: var(--app);
}

.scoring-layout .section-heading {
    margin-bottom: 42px;
}

.score-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
}

.score-strip > div {
    display: flex;
    min-height: 144px;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    border-right: 1px solid var(--line);
}

.score-strip > div:last-child {
    border-right: 0;
}

.score-strip strong {
    color: var(--gold-text);
    font-size: 34px;
    font-variant-numeric: tabular-nums;
}

.score-strip span {
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
}

details {
    border-bottom: 1px solid var(--line);
}

summary {
    position: relative;
    padding: 22px 44px 22px 0;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    position: absolute;
    top: 50%;
    right: 8px;
    content: "+";
    color: var(--gold-text);
    font-size: 24px;
    font-weight: 400;
    transform: translateY(-50%);
}

details[open] summary::after {
    content: "-";
}

.details-content {
    max-width: 820px;
    padding: 0 0 20px;
    color: var(--muted);
}

.details-content.wide-details {
    max-width: none;
}

.details-content p:last-child {
    margin-bottom: 0;
}

.rules-grid {
    margin: 0;
    border-top: 1px solid var(--line-soft);
}

.rule-row {
    display: grid;
    min-height: 78px;
    grid-template-columns: 190px minmax(0, 1fr) 120px;
    align-items: center;
    border-bottom: 1px solid var(--line-soft);
}

.rule-row dt,
.rule-row dd {
    margin: 0;
}

.rule-row dt {
    color: var(--ink);
    font-weight: 720;
}

.rule-description {
    padding-right: 28px;
    color: var(--muted);
}

.rule-value {
    color: var(--gold-text);
    font-weight: 760;
    text-align: right;
}

.rule-row.total-row {
    border-bottom-color: var(--gold);
}

.skill-formula {
    display: block;
    margin: 22px 0;
    padding: 18px 20px;
    overflow-wrap: anywhere;
    border-left: 3px solid var(--teal);
    background: rgba(92, 189, 185, 0.08);
    color: var(--ink);
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 16px;
}

.skill-guide {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line-soft);
    border-top: 1px solid var(--line-soft);
}

.skill-guide > div {
    display: flex;
    min-height: 102px;
    flex-direction: column;
    justify-content: center;
    padding: 18px;
    border-right: 1px solid var(--line-soft);
}

.skill-guide > div:last-child {
    border-right: 0;
}

.skill-guide span {
    color: var(--subtle);
    font-size: 11px;
    font-weight: 720;
}

.skill-guide strong {
    margin-top: 5px;
    color: var(--ink);
    font-size: 20px;
}

.details-note {
    color: var(--subtle);
    font-size: 13px;
}

.roadmap-section {
    border-top: 1px solid var(--line-soft);
    background: var(--page);
}

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

.roadmap-grid article {
    padding-top: 20px;
    border-top: 2px solid var(--line);
}

.roadmap-grid article:nth-child(1) { border-color: var(--gold); }
.roadmap-grid article:nth-child(2) { border-color: var(--green); }
.roadmap-grid article:nth-child(3) { border-color: var(--teal); }

.roadmap-grid article > span {
    display: block;
    margin-bottom: 28px;
    color: var(--subtle);
    font-size: 11px;
    font-weight: 780;
}

.roadmap-grid article p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
}

.roadmap-note {
    max-width: 780px;
    margin: 34px 0 0;
    color: var(--subtle);
    font-size: 13px;
}

.download-section {
    padding: 72px 0;
    background: var(--gold);
    color: #171923;
}

.download-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.download-section .eyebrow {
    color: rgba(23, 25, 35, 0.7);
}

.download-section h2 {
    margin-bottom: 0;
}

.download-section .store-button {
    border-color: #171923;
    background: #171923;
    color: #ffffff;
}

.download-section .store-button small {
    color: #a0a5bd;
}

.download-section .store-button.primary {
    border-color: #171923;
    background: transparent;
    color: #171923;
}

.download-section .store-button.primary small {
    color: rgba(23, 25, 35, 0.7);
}

.site-footer {
    padding: 64px 0 26px;
    background: var(--footer);
}

.footer-layout {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    padding-bottom: 44px;
}

.footer-brand {
    margin-bottom: 14px;
}

.site-footer p {
    max-width: 420px;
    margin-bottom: 0;
    font-size: 14px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 12px 36px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 22px;
    border-top: 1px solid var(--line-soft);
    color: var(--subtle);
    font-size: 12px;
}

.legal-main {
    min-height: calc(100vh - 68px);
    padding: 72px 0 96px;
    background: var(--page);
}

.legal-shell {
    width: min(calc(100% - 48px), 920px);
    margin-inline: auto;
}

.legal-content > h1 {
    margin-bottom: 12px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
    font-size: 52px;
}

.legal-content h2 {
    margin: 48px 0 14px;
    font-size: 25px;
}

.legal-content h3 {
    margin: 30px 0 10px;
    font-size: 18px;
}

.legal-content p,
.legal-content li {
    color: var(--muted);
    font-size: 16px;
}

.legal-content li + li {
    margin-top: 8px;
}

.legal-content ul,
.legal-content ol {
    padding-left: 24px;
}

.legal-content a {
    color: var(--teal);
    text-underline-offset: 3px;
}

.legal-content .meta,
.legal-content > p:first-of-type {
    color: var(--subtle);
}

.legal-content .strong {
    color: var(--ink);
}

.legal-content .box,
.legal-content .notice {
    margin: 28px 0;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    border-radius: 6px;
    background: var(--surface);
}

.legal-content .box p:last-child,
.legal-content .notice p:last-child {
    margin-bottom: 0;
}

.table-scroll {
    margin: 22px 0;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
}

.legal-content table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    background: var(--surface);
}

.legal-content th,
.legal-content td {
    padding: 13px 14px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    text-align: left;
    vertical-align: top;
}

.legal-content th {
    background: var(--surface-strong);
    color: var(--ink);
}

.legal-content th:last-child,
.legal-content td:last-child {
    border-right: 0;
}

.legal-content tbody tr:last-child td {
    border-bottom: 0;
}

.legal-content .button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    padding: 10px 16px;
    border: 1px solid var(--red);
    border-radius: 6px;
    background: var(--red);
    color: #ffffff;
    font-weight: 750;
    text-decoration: none;
}

.legal-content .button:hover {
    filter: brightness(0.92);
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-top: 52px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.legal-links a {
    font-size: 14px;
    font-weight: 680;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .theme-toggle-icon {
        transition: none;
    }
}

@media (max-width: 1050px) {
    h1 { font-size: 64px; }
    h2 { font-size: 38px; }

    .hero-lead,
    .hero-detail {
        max-width: 420px;
    }

    .hero-product {
        right: 24px;
        width: min(46vw, 520px);
        min-width: 0;
    }

    .feature-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 46px;
    }

    .band-layout,
    .band-layout.reversed,
    .choice-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .band-layout.reversed .band-copy,
    .band-layout.reversed .standings-tool {
        grid-row: auto;
        grid-column: auto;
    }

    .standings-tool {
        order: 2;
    }
}

@media (max-width: 900px) {
    .hero {
        display: flex;
        height: auto;
        min-height: 0;
        flex-direction: column;
        padding: 50px 0 30px;
    }

    .hero-content {
        order: 1;
        height: auto;
        padding-bottom: 0;
    }

    .hero-product {
        position: relative;
        top: auto;
        right: auto;
        width: min(calc(100% - 32px), 640px);
        min-width: 0;
        order: 2;
        margin: 32px auto 0;
        padding: 18px;
        transform: none;
    }

    .hero-product .product-summary {
        display: none;
    }
}

@media (max-width: 760px) {
    h1 { font-size: 52px; }
    h2 { font-size: 34px; }

    .shell {
        width: min(calc(100% - 32px), var(--max-width));
    }

    .site-header {
        height: 62px;
    }

    .site-nav {
        display: none;
    }

    .nav-action {
        padding: 8px 11px;
    }

    .theme-toggle {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .legal-main {
        min-height: calc(100vh - 62px);
        padding: 50px 0 72px;
    }

    .legal-shell {
        width: calc(100% - 32px);
    }

    .legal-content > h1 {
        padding-bottom: 20px;
        font-size: 38px;
    }

    .legal-content h2 {
        margin-top: 40px;
        font-size: 22px;
    }

    .hero-lead {
        font-size: 22px;
    }

    .hero-detail {
        display: none;
    }

    .hero-note {
        display: none;
    }

    .match-line > div {
        min-width: 92px;
    }

    .match-line strong {
        font-size: 16px;
    }

    .score {
        font-size: 31px;
    }

    .pulse-chart {
        height: 150px;
        gap: 3px;
    }

    .feature-intro,
    .product-band,
    .how-section,
    .scoring-section,
    .choice-section,
    .roadmap-section {
        padding: 72px 0;
    }

    .section-heading {
        margin-bottom: 42px;
    }

    .feature-list {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .feature-list article > span {
        margin-bottom: 16px;
    }

    .band-layout,
    .band-layout.reversed {
        gap: 38px;
    }

    .expanded-flow {
        height: 220px;
        gap: 3px;
    }

    .flow-event {
        padding-inline: 3px;
        font-size: 7px;
    }

    .score-strip {
        grid-template-columns: 1fr;
    }

    .score-strip > div {
        min-height: 106px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .score-strip > div:last-child {
        border-bottom: 0;
    }

    .rule-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px 18px;
        padding: 18px 0;
    }

    .rule-description {
        grid-row: 2;
        grid-column: 1 / -1;
        padding-right: 0;
        font-size: 14px;
    }

    .rule-value {
        grid-row: 1;
        grid-column: 2;
    }

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

    .skill-guide > div:nth-child(2) {
        border-right: 0;
    }

    .skill-guide > div:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line-soft);
    }

    .roadmap-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .download-layout,
    .footer-layout,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .download-layout {
        gap: 30px;
    }

    .footer-layout {
        gap: 34px;
    }

    .footer-bottom {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 46px; }
    h2 { font-size: 30px; }

    .brand img {
        width: 32px;
        height: 32px;
    }

    .brand {
        font-size: 18px;
    }

    .store-actions {
        width: 100%;
    }

    .store-button {
        min-width: 0;
        width: calc(50% - 6px);
        padding-inline: 12px;
    }

    .product-topline {
        margin-bottom: 18px;
    }

    .pulse-preview {
        padding: 14px;
    }

    .pulse-heading > span {
        display: none;
    }

    .product-summary strong {
        font-size: 11px;
    }

    .flow-tool,
    .standings-tool {
        padding: 16px;
    }

    .standing-row {
        grid-template-columns: 44px minmax(0, 1fr) 50px 42px;
        font-size: 13px;
    }

    .standing-row.active {
        margin-inline: -16px;
        padding-inline: 13px 16px;
    }

    .steps li {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .steps li > span {
        font-size: 24px;
    }

    .choice-row {
        grid-template-columns: 50px minmax(0, 1fr);
    }

    .skill-formula {
        padding: 15px 14px;
        font-size: 13px;
    }

    .footer-links {
        width: 100%;
        gap: 12px 24px;
    }
}
