/* ============================================================
   Timetastic Calendar Insights — dashboard styles
   Brand palette: navy #2B2A29, cherry #E5007E + secondaries
   ============================================================ */

:root {
    --navy-100: #2B2A29;
    --navy-80: #666462;
    --navy-60: #B3B2B0;
    --navy-40: #D9D8D7;
    --navy-20: #F5F7F7;
    --cherry-100: #E5007E;
    --cherry-80: #FF3AA7;
    --cherry-20: #FFE3F2;
    --green-100: #00896D;
    --green-80: #00DEB0;
    --blue-100: #007AC9;
    --orange-100: #C24A00;
    --orange-80: #FF8C00;
    --yellow-100: #FECC16;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --shadow-sm: 0 1px 3px rgba(43, 42, 41, 0.08);
    --shadow-md: 0 8px 30px rgba(43, 42, 41, 0.08);
    --shadow-lg: 0 18px 50px rgba(43, 42, 41, 0.14);
    --radius: 18px;
}

* { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--navy-100);
    background: var(--navy-20);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

a { color: var(--cherry-100); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .78rem;
    font-weight: 700;
    color: var(--cherry-100);
    margin: 0 0 12px;
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
.section-sub { color: var(--navy-80); font-size: 1.05rem; max-width: 620px; margin: 12px 0 0; }

/* ---- Top bar ---- */
.topbar {
    background: #fff;
    border-bottom: 1px solid var(--navy-40);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: saturate(180%) blur(6px);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.topbar img { height: 26px; }
.topbar .cta { font-weight: 600; font-size: .95rem; }

/* ---- Hero ---- */
.hero {
    background: radial-gradient(1200px 480px at 50% -10%, #fff 0%, var(--navy-20) 70%);
    padding: 72px 0 24px;
    text-align: center;
}
.hero h1 {
    font-size: clamp(2.1rem, 5.2vw, 3.7rem);
    font-weight: 800;
    max-width: 16ch;
    margin: 0 auto;
}
.hero .claim { color: var(--cherry-100); }
.hero p.lede {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--navy-80);
    max-width: 56ch;
    margin: 20px auto 0;
}

/* ---- Stat cards ---- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 44px;
}
.stat {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow-md);
    text-align: center;
}
.stat .num {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--navy-100);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.stat .label { color: var(--navy-80); font-size: .95rem; margin-top: 10px; }

/* ---- Provider cards ---- */
.provider-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.provider-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 26px 24px 20px;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.provider-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.provider-head { display: flex; align-items: center; gap: 12px; }
.provider-head img { height: 30px; width: 30px; }
.provider-head .name { font-weight: 700; font-size: 1.15rem; }
.provider-head .blurb { color: var(--navy-60); font-size: .82rem; }
.provider-usual { margin: 16px 0 4px; font-size: .95rem; color: var(--navy-80); }
.provider-usual b { color: var(--navy-100); font-size: 1.05rem; }
.chart-holder { height: 170px; position: relative; margin-top: 6px; }

.status {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: .82rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; margin-top: 14px;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--fast { color: var(--green-100); background: rgba(0, 137, 109, .1); }
.status--ok   { color: var(--blue-100);  background: rgba(0, 122, 201, .1); }
.status--slow { color: var(--orange-100); background: rgba(194, 74, 0, .1); }

/* ---- League table ---- */
.league { margin-top: 36px; display: flex; flex-direction: column; gap: 14px; }
.league-row {
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    padding: 18px 22px;
    display: grid;
    grid-template-columns: 34px 1.6fr 2.2fr auto;
    align-items: center;
    gap: 18px;
    border: 1px solid transparent;
    transition: box-shadow .3s var(--ease);
}
.league-row:hover { box-shadow: var(--shadow-md); }
.league-row.win { border-color: var(--cherry-20); box-shadow: 0 10px 30px rgba(229, 0, 126, .12); }
.league-rank { font-weight: 800; color: var(--navy-60); font-size: 1.1rem; text-align: center; }
.league-row.win .league-rank { color: var(--cherry-100); }
.league-name { display: flex; align-items: center; gap: 12px; }
.league-name img { height: 26px; width: 26px; }
.league-name .n { font-weight: 700; }
.league-name .b { color: var(--navy-60); font-size: .8rem; }
.badge-win {
    font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    color: #fff; background: var(--cherry-100); padding: 3px 8px; border-radius: 6px; margin-left: 6px;
}

.bar-track { background: var(--navy-20); border-radius: 999px; height: 12px; overflow: hidden; }
.bar-fill {
    height: 100%; border-radius: 999px; width: 0;
    background: linear-gradient(90deg, var(--cherry-80), var(--cherry-100));
    transition: width 1.1s var(--ease);
}
.league-row:not(.win) .bar-fill { background: linear-gradient(90deg, var(--navy-60), var(--navy-80)); }
.reveal.is-visible .bar-fill[data-w] { width: var(--w); }

.league-time { text-align: right; }
.league-time .t { font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.league-time .f { color: var(--navy-60); font-size: .78rem; }

/* ---- Feed-type breakdown ---- */
.feedtypes { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.ft-row { display: grid; grid-template-columns: 160px 1fr 80px; align-items: center; gap: 16px; }
.ft-name { font-weight: 600; }
.ft-track { background: #fff; border-radius: 999px; height: 16px; box-shadow: var(--shadow-sm); overflow: hidden; }
.ft-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--blue-100), var(--green-80)); transition: width 1.1s var(--ease); }
.reveal.is-visible .ft-fill[data-w] { width: var(--w); }
.ft-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---- Method / privacy ---- */
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 34px 32px; }
.panel h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.panel p { color: var(--navy-80); margin: 0 0 14px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.privacy {
    display: flex; gap: 16px; align-items: flex-start;
    background: var(--green-100); color: #fff; border-radius: var(--radius); padding: 26px 30px;
}
.privacy svg { flex: 0 0 28px; margin-top: 2px; }
.privacy h3 { color: #fff; font-size: 1.2rem; margin-bottom: 6px; }
.privacy p { color: rgba(255, 255, 255, .9); margin: 0; }

/* ---- Big CTA ---- */
.cta-band {
    background: var(--navy-100); color: #fff; border-radius: 24px;
    padding: 54px 40px; text-align: center; margin: 24px 0;
    background-image: radial-gradient(800px 300px at 80% -40%, rgba(229,0,126,.45), transparent);
}
.cta-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; max-width: 20ch; margin: 0 auto 10px; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 52ch; margin: 0 auto 26px; }
.btn-cherry {
    display: inline-block; background: var(--cherry-100); color: #fff; font-weight: 700;
    padding: 14px 30px; border-radius: 999px; transition: transform .2s var(--ease), background .2s;
}
.btn-cherry:hover { background: var(--cherry-80); transform: translateY(-2px); text-decoration: none; }

/* ---- Footer ---- */
.site-footer { background: var(--navy-100); color: var(--navy-60); padding: 40px 0; }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.site-footer img { height: 26px; }
.site-footer a { color: #fff; }

/* ---- Reveal animation ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
    .stat-grid, .provider-grid { grid-template-columns: 1fr; }
    .two-col { grid-template-columns: 1fr; }
    .league-row { grid-template-columns: 26px 1fr auto; }
    .league-row .bar-track { display: none; }
    .ft-row { grid-template-columns: 120px 1fr 64px; }
}

/* ---- Typography niceties: avoid orphans & awkward wraps ---- */
.hero h1, .section-title { text-wrap: balance; }
.hero p.lede, .section-sub, .panel p, .privacy p, .cta-band p { text-wrap: pretty; }
.status { white-space: nowrap; }
.provider-usual b { white-space: nowrap; }
.nowrap { white-space: nowrap; }
