jtlevine's picture
Desktop hero polish + redesign ACTIVE banner
c608dc0
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
html {
-webkit-tap-highlight-color: transparent;
}
body {
min-height: 100vh;
background: #ffffff;
color: #1b1e2d;
font-family: '"Space Grotesk"', system-ui, sans-serif;
font-size: 14px;
line-height: 1.75;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-feature-settings: "kern";
margin: 0;
}
h1, h2, h3 {
font-family: '"Source Serif 4"', Georgia, serif;
font-weight: 400;
color: #1b1e2d;
letter-spacing: -0.005em;
}
h4, h5, h6 {
font-family: '"Space Grotesk"', system-ui, sans-serif;
font-weight: 600;
color: #1b1e2d;
}
h1 { font-size: 44px; line-height: 52px; }
h2 { font-size: 32px; line-height: 40px; }
h3 { font-size: 22px; line-height: 30px; }
p, li, td, span, label {
color: #606373;
}
/* Custom scrollbar */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
background: #e8e5e1;
border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover { background: #c4bfb6; }
/* Recharts baseline typography */
.recharts-text { font-family: '"Space Grotesk"', system-ui, sans-serif; }
}
@layer components {
/* ── Layout ── */
.column {
max-width: 1060px;
margin-left: auto;
margin-right: auto;
padding-left: 48px;
padding-right: 48px;
}
@media (max-width: 768px) {
.column {
padding-left: 20px;
padding-right: 20px;
}
}
/* ── Eyebrow ── */
.eyebrow {
font-family: '"Space Grotesk"', system-ui, sans-serif;
font-size: 12px;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.04em;
color: #606373;
}
/* ── Metric pattern ── */
.metric-number {
font-family: '"Source Serif 4"', Georgia, serif;
font-size: 38px;
line-height: 44px;
font-weight: 400;
color: #1b1e2d;
font-variant-numeric: tabular-nums;
font-feature-settings: "tnum";
}
.metric-label {
font-family: '"Space Grotesk"', system-ui, sans-serif;
font-size: 12px;
font-weight: 400;
color: #606373;
letter-spacing: 0.01em;
border-top: 1px solid #e8e5e1;
padding-top: 8px;
margin-top: 12px;
}
.metric-delta {
font-size: 12px;
font-style: italic;
color: #606373;
margin-top: 6px;
}
/* ── Editorial table ── */
.etable {
width: 100%;
border-collapse: collapse;
border-top: 1px solid #e8e5e1;
border-bottom: 1px solid #e8e5e1;
font-family: '"Space Grotesk"', system-ui, sans-serif;
}
.etable thead th {
font-size: 11px;
font-weight: 500;
color: #606373;
text-transform: none;
letter-spacing: 0.04em;
text-align: left;
padding: 14px 14px 12px 14px;
border-bottom: 1px solid #e8e5e1;
background: transparent;
}
.etable tbody td {
font-size: 14px;
font-weight: 400;
color: #1b1e2d;
padding: 12px 14px;
border-bottom: 1px solid #f2efeb;
vertical-align: top;
}
.etable tbody tr:last-child td {
border-bottom: none;
}
.etable tbody tr:hover {
background: #fcfaf7;
}
.etable .num,
.etable td.num {
font-variant-numeric: tabular-nums;
font-feature-settings: "tnum";
}
/* ── Buttons ── */
.btn-primary {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
font-family: '"Space Grotesk"', system-ui, sans-serif;
font-size: 14px;
font-weight: 600;
background: #fcfaf7;
color: #1b1e2d;
border: 1px solid #e8e5e1;
border-radius: 4px;
padding: 8px 24px;
cursor: pointer;
text-decoration: none;
transition: background-color 0.15s ease;
}
.btn-primary:hover { background: #f0ece6; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
font-family: '"Space Grotesk"', system-ui, sans-serif;
font-size: 14px;
font-weight: 500;
background: #ffffff;
color: #606373;
border: 1px solid #e8e5e1;
border-radius: 4px;
padding: 8px 16px;
cursor: pointer;
transition: background-color 0.15s ease;
}
.btn-secondary:hover { background: #fcfaf7; color: #1b1e2d; }
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
font-family: '"Space Grotesk"', system-ui, sans-serif;
font-size: 14px;
font-weight: 500;
border-radius: 4px;
padding: 8px 16px;
cursor: pointer;
transition: background-color 0.15s ease;
}
/* ── Text link ── */
.text-link {
font-family: '"Space Grotesk"', system-ui, sans-serif;
font-size: 14px;
font-weight: 600;
color: #8a3d28;
text-decoration: none;
text-underline-offset: 4px;
cursor: pointer;
background: none;
border: none;
padding: 0;
}
.text-link:hover { text-decoration: underline; }
/* ── Chip ── */
.chip {
display: inline-flex;
align-items: center;
font-family: '"Space Grotesk"', system-ui, sans-serif;
font-size: 13px;
font-weight: 500;
color: #606373;
background: transparent;
border: 1px solid #e8e5e1;
border-radius: 4px;
padding: 6px 12px;
cursor: pointer;
transition: color 0.15s ease, border-color 0.15s ease;
}
.chip:hover { color: #1b1e2d; }
.chip.active {
color: #8a3d28;
border-color: #8a3d28;
}
/* ── Input ── */
.input {
display: block;
width: 100%;
background: #ffffff;
border: 1px solid #e8e5e1;
border-radius: 4px;
padding: 8px 12px;
font-family: '"Space Grotesk"', system-ui, sans-serif;
font-size: 14px;
color: #1b1e2d;
outline: none;
transition: border-color 0.15s ease;
}
.input::placeholder { color: #8d909e; }
.input:focus { border-color: #8a3d28; }
/* ── Card (stripped of chrome) ── */
.card {
background: #ffffff;
border: 1px solid #e8e5e1;
border-radius: 4px;
}
.card-body {
padding: 20px;
}
.metric-card {
background: transparent;
border: none;
padding: 0;
}
/* ── Page title ── */
.page-title,
h2 {
font-family: '"Source Serif 4"', Georgia, serif;
font-size: 28px;
line-height: 34px;
font-weight: 400;
color: #1b1e2d;
margin: 0;
letter-spacing: -0.01em;
}
.page-caption {
font-family: '"Space Grotesk"', system-ui, sans-serif;
font-size: 14px;
line-height: 1.55;
color: #606373;
margin-top: 10px;
}
/* ── Tabs (underline style) ── */
.tab-list {
display: flex;
gap: 0;
border-bottom: 1px solid #e8e5e1;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
}
.tab-list::-webkit-scrollbar { display: none; }
.tab-item {
padding: 10px 18px;
font-family: '"Space Grotesk"', system-ui, sans-serif;
font-size: 13px;
font-weight: 500;
color: #606373;
background: none;
border: none;
border-bottom: 2px solid transparent;
cursor: pointer;
white-space: nowrap;
flex-shrink: 0;
transition: color 0.15s ease, border-color 0.15s ease;
}
.tab-item:hover { color: #1b1e2d; }
.tab-item.active {
color: #8a3d28;
border-bottom-color: #8a3d28;
}
/* ── Section headers ── */
.section-header {
font-family: '"Space Grotesk"', system-ui, sans-serif;
font-size: 12px;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.04em;
color: #606373;
padding-bottom: 8px;
margin-bottom: 16px;
border-bottom: 1px solid #e8e5e1;
display: block;
}
/* ── Legacy badge aliases, rewritten as plain text ── */
.badge {
display: inline-flex;
align-items: center;
font-family: '"Space Grotesk"', system-ui, sans-serif;
font-size: 12px;
font-weight: 500;
color: #606373;
}
.badge-green { color: #4a7c59; font-size: 12px; font-weight: 500; font-family: '"Space Grotesk"', system-ui, sans-serif; }
.badge-amber { color: #8a3d28; font-size: 12px; font-weight: 500; font-family: '"Space Grotesk"', system-ui, sans-serif; }
.badge-red { color: #c71f48; font-size: 12px; font-weight: 500; font-family: '"Space Grotesk"', system-ui, sans-serif; }
.badge-blue { color: #1b1e2d; font-size: 12px; font-weight: 500; font-family: '"Space Grotesk"', system-ui, sans-serif; }
.badge-slate { color: #606373; font-size: 12px; font-weight: 500; font-family: '"Space Grotesk"', system-ui, sans-serif; }
.badge-orange { color: #8a3d28; font-size: 12px; font-weight: 500; font-family: '"Space Grotesk"', system-ui, sans-serif; }
/* ── Table container alias ── */
.table-container {
border-top: 1px solid #e8e5e1;
border-bottom: 1px solid #e8e5e1;
background: transparent;
overflow-x: auto;
}
.table-container table {
width: 100%;
border-collapse: collapse;
font-family: '"Space Grotesk"', system-ui, sans-serif;
}
.table-container thead th {
font-size: 11px;
font-weight: 500;
color: #606373;
letter-spacing: 0.04em;
text-align: left;
padding: 14px 14px 12px 14px;
background: transparent;
border-bottom: 1px solid #e8e5e1;
text-transform: none;
}
.table-container tbody td {
font-size: 14px;
color: #1b1e2d;
padding: 12px 14px;
border-bottom: 1px solid #f2efeb;
vertical-align: top;
}
.table-container tbody tr:last-child td { border-bottom: none; }
.table-container tbody tr:hover { background: #fcfaf7; }
/* ── Danger banner (triggered zones β€” crit red) ── */
.danger-banner {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 14px 10px 12px;
background: rgba(199, 31, 72, 0.06);
border-left: 3px solid #c71f48;
border-radius: 3px;
margin: 24px 0 0 0;
}
.danger-label {
font-family: '"Space Grotesk"', system-ui, sans-serif;
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.08em;
color: #c71f48;
}
.danger-text {
font-family: '"Space Grotesk"', system-ui, sans-serif;
font-size: 13px;
color: #1b1e2d;
}
/* ── Legacy program designer aliases (stripped) ── */
.program-banner {
padding: 24px 0;
border-top: 1px solid #e8e5e1;
border-bottom: 1px solid #e8e5e1;
}
.program-banner-icon {
display: none;
}
.btn-toggle {
display: inline-flex;
align-items: center;
font-family: '"Space Grotesk"', system-ui, sans-serif;
font-size: 13px;
font-weight: 500;
color: #606373;
background: transparent;
border: 1px solid #e8e5e1;
border-radius: 4px;
padding: 6px 12px;
cursor: pointer;
transition: color 0.15s ease, border-color 0.15s ease;
}
.btn-toggle:hover { color: #1b1e2d; }
.btn-toggle.active {
color: #8a3d28;
border-color: #8a3d28;
background: transparent;
}
/* ── Funding bar (stripped β€” used as plain inline text rows) ── */
.funding-bar, .funding-bar-seg, .funding-breakdown,
.card-payout, .zone-total-value,
.stage-card, .heat-pill, .callout, .callout-title, .callout-body,
.temp-safe, .temp-caution, .temp-warning, .temp-danger, .temp-extreme {
all: unset;
display: revert;
}
.stage-card {
display: block;
padding: 20px 0;
border-top: 1px solid #e8e5e1;
color: inherit;
text-decoration: none;
}
.heat-pill.safe { color: #4a7c59; font-size: 12px; }
.heat-pill.caution { color: #8a3d28; font-size: 12px; }
.heat-pill.warning { color: #8a3d28; font-size: 12px; }
.heat-pill.danger { color: #c71f48; font-size: 12px; }
.callout {
display: block;
padding: 16px 20px;
border-left: 2px solid #8a3d28;
background: #fcfaf7;
}
.callout-title { display: block; font-weight: 600; font-size: 13px; color: #1b1e2d; }
.callout-body { display: block; font-size: 13px; color: #606373; margin-top: 4px; }
.temp-safe { color: #4a7c59; }
.temp-caution { color: #8a3d28; }
.temp-warning { color: #8a3d28; }
.temp-danger { color: #5e2818; }
.temp-extreme { color: #c71f48; }
}
@layer utilities {
.font-serif {
font-family: '"Source Serif 4"', Georgia, serif;
}
.font-sans {
font-family: '"Space Grotesk"', system-ui, sans-serif;
}
.animate-fade-in {
animation: fadeIn 0.2s ease-out;
}
.animate-slide-up {
animation: slideUp 0.3s ease-out both;
}
.animate-stagger > * {
animation: slideUp 0.3s ease-out both;
}
.animate-stagger > *:nth-child(1) { animation-delay: 0ms; }
.animate-stagger > *:nth-child(2) { animation-delay: 50ms; }
.animate-stagger > *:nth-child(3) { animation-delay: 100ms; }
.animate-stagger > *:nth-child(4) { animation-delay: 150ms; }
.animate-stagger > *:nth-child(5) { animation-delay: 200ms; }
.animate-stagger > *:nth-child(6) { animation-delay: 250ms; }
.animate-tab-enter {
animation: tabEnter 0.18s ease-out both;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(4px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
from { opacity: 0; transform: translateY(6px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes tabEnter {
from { opacity: 0; transform: translateY(4px); }
to { opacity: 1; transform: translateY(0); }
}
}
/* Joyride tooltip overrides */
.__floater__body {
font-family: '"Space Grotesk"', system-ui, sans-serif !important;
}