/* hype.finance — Money, minus the hype. */
:root {
  --ink: #0E0E0C;
  --white: #FFFFFF;
  --lime: #D4FF3A;
  --grey: #F2F2F2;
  --line: #E3E3E3;
  --muted: #5A5A5A;
  --muted-dark: #A3A3A3;
  --soft-dark: #D6D6D6;
  --panel: #1C1C1C;
  --track: #333333;
  --radius: 24px;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.5; }
img, svg { max-width: 100%; }
a { color: var(--ink); }
a:hover { color: #3A3A3A; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--lime); color: var(--ink); padding: 10px 16px; border-radius: 999px; z-index: 10; font-weight: 600; }
.skip:focus { left: 8px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }
section { padding: 64px 0; }
.dark { background: var(--ink); color: var(--white); }
.dark a { color: var(--white); }
.limebg { background: var(--lime); color: var(--ink); }
.limebg a { color: var(--ink); }
.greybg { background: var(--grey); }

/* type */
h1, h2, h3, .display { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin: 0; }
h1 { font-size: clamp(44px, 7.5vw, 104px); letter-spacing: -0.04em; line-height: 0.95; }
h2 { font-size: clamp(32px, 4.5vw, 56px); }
h3 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 2vw, 21px); max-width: 600px; }
.dark .lead, .dark .soft { color: var(--soft-dark); }
.muted { color: var(--muted); }
.dark .muted { color: var(--muted-dark); }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 14px; }
.dark .eyebrow { color: var(--lime); }
.accent { color: var(--lime); }
.big { font-family: var(--display); font-weight: 700; font-size: clamp(80px, 13vw, 168px); line-height: 0.85; letter-spacing: -0.05em; }
.small { font-size: 14px; }
.tiny { font-size: 12px; }

/* header */
.site-header { background: var(--ink); color: var(--white); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 18px; padding-bottom: 18px; }
.logo { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; color: var(--white); text-decoration: none; }
.logo span { color: var(--lime); }
.logo em { font-style: normal; font-weight: 500; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.nav a { color: var(--white); text-decoration: none; font-weight: 500; padding: 8px 0; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.nav .btn { padding: 10px 18px; min-height: 44px; }
@media (max-width: 720px) {
  .nav { width: 100%; gap: 4px 18px; }
  .nav .btn { display: none; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 17px; text-decoration: none; border: 1.5px solid var(--ink); background: var(--ink); color: var(--white); cursor: pointer; font-family: var(--body); }
.btn:hover { color: var(--white); background: #2A2A2A; }
.btn-lime, .dark .btn-lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn-lime:hover, .dark .btn-lime:hover { background: #C4F02A; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.dark .btn-ghost { color: var(--white); border-color: var(--white); }
.dark .btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn-white { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-white:hover { background: var(--grey); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.arrow::after { content: "→"; font-weight: 600; }

/* grids & cards */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.card { display: flex; flex-direction: column; gap: 12px; border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 26px; text-decoration: none; color: var(--ink); background: var(--white); min-height: 200px; }
a.card:hover { background: var(--ink); color: var(--white); }
a.card:hover .tag { background: var(--lime); color: var(--ink); }
a.card:hover .muted { color: var(--soft-dark); }
.card.is-dark { background: var(--ink); color: var(--white); }
.card.is-dark .muted { color: var(--soft-dark); }
.card.is-lime { background: var(--lime); border-color: var(--lime); }
a.card.is-dark:hover { background: #2A2A2A; }
a.card.is-lime:hover { background: #C4F02A; color: var(--ink); }
.card .grow { flex-grow: 1; }
.card h3 { font-size: 26px; }
.tag { align-self: flex-start; font-size: 13px; font-weight: 600; background: var(--ink); color: var(--white); padding: 5px 11px; border-radius: 999px; }
.is-dark .tag { background: var(--lime); color: var(--ink); }
.go { font-weight: 600; }
.go::after { content: " →"; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }

.stat { background: var(--ink); color: var(--white); border-radius: 22px; padding: 26px; }
.stat .n { font-family: var(--display); font-weight: 700; font-size: 44px; letter-spacing: -0.03em; color: var(--lime); line-height: 1; display: block; margin-bottom: 8px; }
.stat .src { display: block; margin-top: 10px; font-size: 13px; color: var(--muted-dark); }

.panel { border: 1.5px solid var(--ink); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); }
.move { background: var(--lime); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.move h2 { font-size: clamp(28px, 3.5vw, 36px); }
.move p { margin: 8px 0 0; max-width: 560px; }

.receipts { border-top: 3px solid var(--ink); padding-top: 20px; font-size: 14px; color: #3A3A3A; }
.receipts ul { margin: 8px 0 0; padding-left: 18px; }
details.smallprint { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 12px; font-size: 14px; color: #3A3A3A; }
details.smallprint summary { cursor: pointer; font-weight: 600; color: var(--ink); min-height: 32px; }

/* hero */
.hero { padding: 56px 0 88px; }
.hero-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-grid > :first-child { flex: 999 1 480px; min-width: 0; }
.hero-grid > :last-child { flex: 1 1 340px; min-width: 0; max-width: 440px; }
.result-card { background: var(--panel); border-radius: 28px; padding: 30px; }
.strip { border-bottom: 1px solid var(--line); padding: 20px 0; }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 10px 32px; font-weight: 600; color: var(--muted); font-size: 15px; }
.strip strong { color: var(--ink); }

/* bars */
.bars { display: flex; flex-direction: column; gap: 14px; }
.bar-row .bar-label { display: flex; justify-content: space-between; font-size: 15px; gap: 12px; }
.bar-track { height: 8px; background: var(--track); border-radius: 99px; margin-top: 6px; overflow: hidden; }
.bar-fill { height: 8px; background: var(--white); border-radius: 99px; width: 0; transition: width .3s ease; }
.light .bar-track { background: var(--line); }
.light .bar-fill { background: var(--ink); }
.left-box { margin-top: 24px; background: var(--lime); color: var(--ink); border-radius: 18px; padding: 18px 20px; }
.left-box .n { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 9vw, 64px); letter-spacing: -0.04em; line-height: 1.05; display: block; }

/* chart */
.chart { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.chart .hrow { display: grid; grid-template-columns: minmax(0, 34%) minmax(0, 1fr) 64px; align-items: center; gap: 12px; }
.chart .hl { font-size: 14px; font-weight: 600; line-height: 1.25; }
.chart .ht { height: 28px; background: var(--grey); border-radius: 6px; overflow: hidden; }
.chart .hf { height: 100%; background: var(--ink); border-radius: 6px; }
.chart .hrow.hi .hf { background: var(--lime); box-shadow: inset 0 0 0 1.5px var(--ink); }
.chart .hv { font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  .chart .hrow { grid-template-columns: minmax(0, 1fr) 64px; row-gap: 6px; }
  .chart .hl { grid-column: 1 / -1; }
}

/* forms */
.calc { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.fields { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label, .label { font-weight: 600; font-size: 14px; }
.hint { font-size: 13px; color: var(--muted); }
input[type="number"], input[type="text"], input[type="email"], input[type="search"] {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--ink); background: var(--white); color: var(--ink); font-size: 18px; font-weight: 600; font-family: var(--body);
}
.prefix { position: relative; }
.prefix > span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-weight: 600; font-size: 18px; pointer-events: none; }
.prefix input { padding-left: 34px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button, .chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--white); color: var(--ink); font-weight: 600; font-size: 15px; font-family: var(--body); cursor: pointer; }
.seg button[aria-pressed="true"], .chip[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.out { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 26px; position: sticky; top: 16px; }
.out .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.out .total { font-family: var(--display); font-weight: 700; font-size: 32px; }

/* newsletter */
.signup { display: flex; flex-wrap: wrap; gap: 10px; }
.signup input { flex: 1 1 220px; min-width: 0; border-radius: 999px; padding: 0 22px; min-height: 56px; }
.signup .btn { min-height: 56px; }
.form-msg { margin-top: 10px; font-weight: 600; min-height: 1.5em; }

/* dictionary */
.term { border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 16px; }
.term-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.term .ex { margin: 0; background: var(--lime); border-radius: 14px; padding: 12px 14px; font-size: 15px; }
.term .rel { margin: 0; font-size: 14px; color: var(--muted); }
.term .rel a { color: var(--ink); font-weight: 600; }
.term:target { box-shadow: 0 0 0 4px var(--lime); }
.map { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.map .node { border: 1.5px solid var(--ink); border-radius: 18px; padding: 16px 20px; flex: 1 1 160px; }
.map .node.wide { flex: 2 1 260px; }
.map .node.is-dark { background: var(--ink); color: var(--white); }
.map .node.is-lime { background: var(--lime); border-color: var(--lime); }
.map .node b { font-family: var(--display); font-size: 22px; display: block; }
.map .arr { font-size: 28px; font-weight: 700; }
@media (max-width: 640px) { .map .arr { transform: rotate(90deg); width: 100%; text-align: center; } }

/* calendar */
.cal-head, .cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-head { font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; margin-bottom: 6px; }
.cal button { min-height: 48px; border-radius: 12px; border: 1.5px solid var(--ink); background: var(--white); color: var(--ink); font-weight: 600; font-size: 15px; cursor: pointer; font-family: var(--body); padding: 0; }
.cal button[data-mark="out"] { background: var(--ink); color: var(--white); }
.cal button[data-mark="take"] { background: var(--lime); }
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cal-nav button { min-width: 44px; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--white); font-size: 18px; cursor: pointer; }
.key { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; margin-right: 12px; }
.key i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--ink); display: inline-block; }

/* pots */
.pot { text-align: left; border: 1.5px solid var(--ink); background: var(--white); border-radius: 20px; padding: 18px; font-family: var(--body); color: var(--ink); cursor: pointer; display: flex; flex-direction: column; gap: 8px; width: 100%; font-size: 16px; }
.pot[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ink); }
.pot .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pot .name { font-family: var(--display); font-weight: 700; font-size: 20px; }
.pot-list { display: flex; flex-direction: column; gap: 10px; }
.tips { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.tips li { display: flex; gap: 12px; align-items: flex-start; }
.tips .num { flex: 0 0 30px; height: 30px; border-radius: 99px; background: var(--lime); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; }

/* tables */
.table-wrap { overflow-x: auto; border: 1.5px solid var(--ink); border-radius: 20px; }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th { background: var(--ink); color: var(--white); text-align: left; padding: 14px 18px; font-size: 15px; }
td { padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: top; }

/* timeline */
.stages { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.stage { border-top: 6px solid var(--ink); background: var(--grey); border-radius: 0 0 18px 18px; padding: 18px; }
.stage.hl { border-top-color: var(--lime); }

/* footer */
.site-footer { background: var(--ink); color: var(--muted-dark); padding: 56px 0 40px; font-size: 15px; }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav a { color: var(--white); text-decoration: none; }
.site-footer .legal { border-top: 1px solid var(--track); margin-top: 28px; padding-top: 24px; }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: var(--white); padding: 12px 20px; border-radius: 999px; font-weight: 600; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 20; }
.toast.show { opacity: 1; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
/* button contrast inside dark areas */
.dark .btn-white, .out .btn-white { color: var(--ink); }
.dark .btn-white:hover, .out .btn-white:hover { color: var(--ink); }
.out .btn-ghost { color: var(--white); border-color: var(--white); }
.out .btn-ghost:hover { background: var(--white); color: var(--ink); }
.dark .btn:not(.btn-lime):not(.btn-white):not(.btn-ghost) { border-color: var(--white); }
@media (max-width: 600px) {
  table { min-width: 460px; font-size: 15px; }
  th, td { padding: 10px 12px; }
}
/* TL;DR helper */
.tldr { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--grey); color: var(--ink); font-size: 15px; line-height: 1.45; }
.tldr .lbl { flex: 0 0 auto; background: var(--lime); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 4px 9px; border-radius: 999px; margin-top: 1px; }
.tldr.on-dark { background: #2A2A2A; color: var(--white); }
.out .tldr { margin: 0 0 18px; }
/* illustrations */
.hero-art { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.hero-art > .hero-text { flex: 999 1 520px; min-width: 0; }
.hero-art > .art { flex: 0 1 280px; width: 280px; max-width: 100%; height: auto; }
@media (max-width: 720px) { .hero-art > .art { width: 180px; flex-basis: 180px; order: -1; } }
.card-art { width: 120px; height: 90px; margin: -6px 0 -2px -10px; }
a.card:hover .card-art { filter: none; }
/* Button text colour always wins over section link colours */
a.btn, button.btn { color: var(--white); }
a.btn.btn-lime, button.btn.btn-lime, .nav a.btn-lime, .dark a.btn.btn-lime, .limebg a.btn.btn-lime { color: var(--ink) !important; }
a.btn.btn-white, button.btn.btn-white, .dark a.btn.btn-white { color: var(--ink) !important; }
.limebg a.btn:not(.btn-lime):not(.btn-white):not(.btn-ghost), .move a.btn:not(.btn-lime):not(.btn-white):not(.btn-ghost), .nav a.btn:not(.btn-lime) { color: var(--white) !important; }
.limebg a.btn-ghost { color: var(--ink); border-color: var(--ink); }
.limebg a.btn-ghost:hover { background: var(--ink); color: var(--white) !important; }
a.btn.btn-ghost, button.btn.btn-ghost { color: var(--ink); }
.dark a.btn.btn-ghost, .dark button.btn.btn-ghost, .out a.btn.btn-ghost, .out button.btn.btn-ghost { color: var(--white); border-color: var(--white); }
a.btn.btn-ghost:hover, button.btn.btn-ghost:hover { color: var(--white); }
.dark a.btn.btn-ghost:hover, .out a.btn.btn-ghost:hover, .out button.btn.btn-ghost:hover { color: var(--ink); }
.out .muted, .is-dark .muted, .map .node.is-dark .muted { color: var(--muted-dark); }
