/* OutsiderEdge — page layout built on the Modernist tokens in modernist.css */
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); }
a { color: var(--color-text); }
a:hover { color: var(--color-accent); }

.page { max-width: 1280px; margin: 0 auto; padding: 0 var(--space-4); }
.rule-b { border-bottom: 2px solid var(--color-divider); }

/* masthead */
.masthead { padding: var(--space-6) 0; border-bottom: 2px solid var(--color-divider); }
.masthead a { text-decoration: none; color: var(--color-text); }
.wordmark { margin: 0; font-family: var(--font-heading); font-weight: 800; font-size: clamp(56px, 11vw, 168px); line-height: 0.86; letter-spacing: -0.045em; }
.wordmark span, .accent { color: var(--color-accent); }
.strapline { margin: var(--space-6) 0 0; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }

/* sections */
.section { padding: var(--space-8) 0; border-bottom: 2px solid var(--color-divider); }
.section-sm { padding: var(--space-6) 0; border-bottom: 2px solid var(--color-divider); }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.stack-6 { display: flex; flex-direction: column; gap: var(--space-6); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: var(--space-6); }
.cols-420 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.cols-340 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.cols-460 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.cols.end { align-items: end; }
.side-rule { border-left: 2px solid var(--color-divider); padding-left: var(--space-6); }
@media (max-width: 860px) { .side-rule { border-left: 0; padding-left: 0; } }

.kicker { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent-700); font-weight: 700; }
.h-hero { margin: 0; font-family: var(--font-heading); font-weight: 800; font-size: clamp(44px, 6.4vw, 88px); line-height: 0.95; letter-spacing: -0.035em; text-wrap: balance; }
.h-section { margin: var(--space-2) 0 0; font-family: var(--font-heading); font-weight: 800; font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.02em; line-height: 1; text-wrap: balance; }
.h-data { margin: var(--space-2) 0 0; font-family: var(--font-heading); font-weight: 800; font-size: 40px; letter-spacing: -0.02em; line-height: 1; }
.h-season { margin: 0; font-family: var(--font-heading); font-weight: 800; font-size: clamp(36px, 5vw, 64px); line-height: 0.98; letter-spacing: -0.03em; text-wrap: balance; }
.h-card { margin: 0; font-family: var(--font-heading); font-weight: 800; font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; }
.deck { margin: 0; font-family: var(--font-heading); font-weight: 700; font-size: clamp(20px, 2vw, 26px); line-height: 1.25; letter-spacing: -0.01em; max-width: 40ch; text-wrap: pretty; }
.pull { margin: 0; font-family: var(--font-heading); font-weight: 800; font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; color: var(--color-accent-700); max-width: 36ch; text-wrap: pretty; }
.body { margin: 0; font-size: 17px; line-height: 1.55; max-width: 62ch; text-wrap: pretty; }
.body-sm { margin: 0; font-size: 15px; line-height: 1.5; text-wrap: pretty; }
.btn-wide { justify-content: flex-start; min-width: 260px; align-self: flex-start; }

/* ruled grid of cells */
.cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border-top: 2px solid var(--color-divider); border-left: 2px solid var(--color-divider); }
.cells-260 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.cells-280 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.cell { padding: var(--space-4); border-right: 2px solid var(--color-divider); border-bottom: 2px solid var(--color-divider); display: flex; flex-direction: column; gap: var(--space-3); }
.num { font-family: var(--font-heading); font-weight: 800; font-size: 56px; line-height: 1; letter-spacing: -0.03em; color: var(--color-accent); }
.step { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--color-accent-700); }

/* tipster */
.photo { position: relative; flex: 1; min-height: 320px; border: 2px solid var(--color-divider); overflow: hidden; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.quote { margin: 0; display: flex; flex-direction: column; gap: var(--space-3); border-top: 2px solid var(--color-divider); padding-top: var(--space-4); }
.quote-mark { font-family: var(--font-heading); font-weight: 800; font-size: 96px; line-height: 0.6; color: var(--color-accent); }
.quote p { margin: 0; font-size: 18px; line-height: 1.55; max-width: 60ch; text-wrap: pretty; }
.quote p.quote-big { font-family: var(--font-heading); font-weight: 800; font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; max-width: 34ch; }
.sig { display: flex; flex-direction: column; gap: 2px; padding-top: var(--space-2); }
.sig strong { font-weight: 800; font-size: 18px; }
.sig span { font-size: 14px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); border-bottom: 2px solid var(--color-divider); }
.stat { padding: var(--space-4) var(--space-4) var(--space-4) 0; border-right: 2px solid var(--color-divider); display: flex; flex-direction: column; gap: var(--space-1); }
.stat-label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.stat-value { font-family: var(--font-heading); font-weight: 800; font-size: clamp(36px, 4vw, 56px); letter-spacing: -0.03em; line-height: 1; }
.stat-note { font-size: 13px; color: var(--color-neutral-700); }

/* running-profit line chart */
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-3); }
.big-total { font-family: var(--font-heading); font-weight: 800; font-size: 32px; letter-spacing: -0.02em; color: var(--color-accent-700); }
.chart-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-2); row-gap: var(--space-2); }
.y-axis { position: relative; min-width: 48px; font-size: 12px; font-variant-numeric: tabular-nums; height: 380px; }
.y-axis span { position: absolute; right: 0; line-height: 0; color: var(--color-neutral-700); }
.plot { position: relative; height: 380px; border-bottom: 2px solid var(--color-divider); }
.plot .vline { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--color-neutral-200); }
.plot .hline { position: absolute; left: 0; right: 0; }
.plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; clip-path: inset(-10px 100% -10px 0); transition: clip-path 2.2s cubic-bezier(.45, 0, .2, 1); }
.plot.drawn svg { clip-path: inset(-10px -10px -10px 0); }
.end-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--color-accent); outline: 3px solid var(--color-bg); opacity: 0; transition: opacity .4s ease 2.1s; }
.end-label { position: absolute; right: 0; transform: translateY(calc(-100% - 12px)); display: flex; flex-direction: column; align-items: flex-end; gap: 2px; opacity: 0; transition: opacity .4s ease 2.1s; }
.plot.drawn .end-dot, .plot.drawn .end-label { opacity: 1; }
.end-label small { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-neutral-700); }
.end-label strong { font-family: var(--font-heading); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; line-height: 1; }
.x-axis { position: relative; height: 16px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.x-axis span { position: absolute; padding-left: 6px; }
@media (max-width: 600px) { .x-axis span:nth-child(even) { display: none; } }
@media (prefers-reduced-motion: reduce) { .plot svg, .end-dot, .end-label { transition: none; } }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); border-top: 2px solid var(--color-divider); }
.fact { padding: var(--space-3) var(--space-4) 0 0; display: flex; flex-direction: column; gap: 4px; }
.fact-value { font-family: var(--font-heading); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; line-height: 1.05; }

/* monthly bars */
.bars { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; align-items: end; height: 280px; border-bottom: 2px solid var(--color-divider); }
.bar { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 4px; }
.bar span { font-size: 11px; font-weight: 600; }
.bar-labels { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; margin-top: calc(-1 * var(--space-3)); }
@media (max-width: 520px) { .bar span { font-size: 9px; } .bar-labels { font-size: 9px; } }

.scroll-x { overflow-x: auto; }
.table { font-variant-numeric: tabular-nums; }
.table .strong { font-weight: 700; }
.table .semi { font-weight: 600; }
.table tr.total { border-top: 2px solid var(--color-divider); }
.table tr.total td { font-weight: 700; }
.table tr.total td:first-child, .table tr.total td:last-child { font-weight: 800; }
.table tr.total td:last-child { color: var(--color-accent-700); }

/* big-price winners */
.win-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); }
.win-sp { font-family: var(--font-heading); font-weight: 800; font-size: 44px; letter-spacing: -0.03em; line-height: 1; color: var(--color-accent); }
.win-horse { font-size: 20px; font-weight: 700; line-height: 1.15; }

/* ledger month tabs */
.tabs { display: flex; flex-wrap: wrap; border: 2px solid var(--color-divider); }
.tabs button { flex: 1 0 auto; min-width: 64px; padding: 10px 12px; border: 0; border-right: 1px solid var(--color-divider); background: transparent; color: var(--color-text); font: inherit; font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--color-accent); color: var(--color-bg); }

/* membership */
.plan { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); border: 2px solid var(--color-divider); background: var(--color-surface); }
.plan > div { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.plan > div:first-child { border-right: 2px solid var(--color-divider); }
@media (max-width: 760px) { .plan > div:first-child { border-right: 0; border-bottom: 2px solid var(--color-divider); } }
.plan-name { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 800; }
.price { font-family: var(--font-heading); font-weight: 800; font-size: clamp(96px, 14vw, 180px); line-height: 0.85; letter-spacing: -0.05em; color: var(--color-accent); }
.term { font-family: var(--font-heading); font-weight: 800; font-size: 24px; letter-spacing: -0.01em; line-height: 1.15; }
.btn-join { padding: 16px 20px; font-size: 18px; font-weight: 800; }
.features { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--color-divider); }
.features li { display: flex; gap: var(--space-2); padding: var(--space-2) 0; border-bottom: 1px solid var(--color-divider); font-size: 15px; line-height: 1.4; }
.features li::before { content: "—"; color: var(--color-accent); font-weight: 800; }
.mt-auto { margin-top: auto; }

/* footer */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); padding: var(--space-4) 0 var(--space-6); font-size: 13px; }
.footer-mark { font-family: var(--font-heading); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.disclaimer { flex-basis: 100%; margin: 0; padding-top: var(--space-3); border-top: 2px solid var(--color-divider); font-size: 13px; line-height: 1.55; max-width: 90ch; text-wrap: pretty; }

/* thank-you page */
.h-thanks { margin: 0; font-family: var(--font-heading); font-weight: 800; font-size: clamp(56px, 8vw, 120px); line-height: 0.9; letter-spacing: -0.04em; text-wrap: balance; }
.receipt { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); padding-bottom: var(--space-3); border-bottom: 2px solid var(--color-divider); }
.receipt-price { font-family: var(--font-heading); font-weight: 800; font-size: 48px; line-height: 1; letter-spacing: -0.03em; color: var(--color-accent); }
.welcome { display: flex; flex-direction: column; gap: var(--space-3); border-top: 2px solid var(--color-divider); padding-top: var(--space-4); }
.welcome p { margin: 0; font-family: var(--font-heading); font-weight: 800; font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; max-width: 34ch; text-wrap: pretty; }
