:root {
    --background: #f7f8fa;
    --surface: #ffffff;
    --text: #111827;
    --muted: #667085;
    --border: #e5e7eb;
    --primary: #111827;
    --primary-hover: #28303d;
    --radius: 14px;
    --max-width: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

.container {
    width: min(calc(100% - 40px), var(--max-width));
    margin: 0 auto;
}


/* Navigation */

.site-header {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    text-decoration: none;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

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

.nav-link {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.nav-email {
    color: var(--muted);
    font-size: 13px;
}


/* Buttons */

.button,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: 0.15s ease;
    cursor: pointer;
}

.button {
    background: var(--primary);
    color: #ffffff;
    border: 1px solid var(--primary);
}

.button:hover {
    background: var(--primary-hover);
}

.button-secondary {
    background: #ffffff;
    border: 1px solid var(--border);
}

.button-secondary:hover {
    background: #f9fafb;
}

.button-small {
    min-height: 38px;
    padding: 0 16px;
    font-size: 14px;
}


/* Hero */

.hero {
    padding: 110px 0 100px;
    text-align: center;
}

.hero-content {
    max-width: 820px;
}

.eyebrow,
.section-label {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(48px, 8vw, 82px);
    line-height: 0.98;
    letter-spacing: -4px;
}

.hero-text {
    max-width: 650px;
    margin: 30px auto 0;
    color: var(--muted);
    font-size: 19px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 34px;
}

.hero-content > .button {
    margin-top: 34px;
}

.hero-note {
    margin-top: 24px;
    color: var(--muted);
    font-size: 13px;
}


/* Features */

.feature-section {
    padding: 80px 0 110px;
    background: #ffffff;
}

.feature-section h2 {
    max-width: 620px;
    margin: 0 0 42px;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.05;
    letter-spacing: -2px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.feature-icon {
    margin-bottom: 35px;
    font-size: 26px;
}

.feature-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
}


/* Auth */

.auth-page {
    padding: 75px 0 110px;
}

.auth-card {
    width: min(calc(100% - 40px), 460px);
    margin: 0 auto;
    padding: 36px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.auth-card h1 {
    margin: 0 0 8px;
    font-size: 32px;
    letter-spacing: -1px;
}

.auth-intro {
    margin: 0 0 28px;
    color: var(--muted);
}

.auth-form p {
    margin: 0 0 18px;
}

.auth-form label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 650;
}

.auth-form input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #ffffff;
    font: inherit;
}

.auth-form input:focus {
    outline: 2px solid #cfd5df;
    border-color: var(--primary);
}

.auth-form .button {
    width: 100%;
    margin-top: 8px;
}

.auth-links {
    margin-top: 24px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.auth-links a {
    color: var(--text);
    font-weight: 650;
}

.errorlist {
    margin: 7px 0;
    padding: 0;
    list-style: none;
    color: #b42318;
    font-size: 13px;
}

.helptext {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.messages {
    margin-top: 18px;
}

.message {
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
}


/* Mobile */

@media (max-width: 760px) {

    .nav-email {
        display: none;
    }

    .hero {
        padding: 80px 0 75px;
    }

    .hero h1 {
        letter-spacing: -2.5px;
    }

    .hero-text {
        font-size: 17px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 28px 22px;
    }
}

/* ----------------------------------------------------------
   Dashboard
---------------------------------------------------------- */

.dashboard-page {
    padding: 70px 0 110px;
}

.dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 70px;
}

.dashboard-header h1,
.narrow-container h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 64px);
    line-height: 1;
    letter-spacing: -3px;
}

.dashboard-intro {
    max-width: 570px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.dashboard-section {
    margin-top: 55px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.section-heading h2 {
    margin: 0;
    font-size: 25px;
    letter-spacing: -0.8px;
}

.section-heading p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.favorite-list,
.event-list,
.search-results {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.favorite-row,
.team-result,
.event-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.favorite-row:last-child,
.team-result:last-child,
.event-row:last-child {
    border-bottom: 0;
}

.favorite-main {
    display: flex;
    align-items: center;
    gap: 15px;
}

.favorite-main strong,
.event-details strong {
    display: block;
}

.favorite-main span,
.event-details span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}

.team-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.text-button {
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.text-button:hover {
    color: var(--text);
}

.empty-state {
    padding: 50px 30px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.empty-state.compact {
    padding: 28px;
}

.empty-state h3 {
    margin: 0 0 8px;
}

.empty-state p {
    margin: 0 0 24px;
    color: var(--muted);
}

.empty-state.compact p {
    margin: 0;
}

.event-row {
    justify-content: flex-start;
    gap: 18px;
}

.event-date {
    width: 48px;
    text-align: center;
}

.event-date strong {
    display: block;
    font-size: 22px;
    line-height: 1;
}

.event-date span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.narrow-container {
    max-width: 760px;
}

.back-link {
    display: inline-block;
    margin-bottom: 45px;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
}

.team-search {
    display: flex;
    gap: 10px;
    margin: 35px 0 25px;
}

.team-search input {
    flex: 1;
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #ffffff;
    font: inherit;
}

.team-search input:focus {
    outline: 2px solid #cfd5df;
    border-color: var(--primary);
}

.following-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}


/* ----------------------------------------------------------
   Dashboard mobile
---------------------------------------------------------- */

@media (max-width: 760px) {

    .dashboard-page {
        padding: 45px 0 80px;
    }

    .dashboard-header {
        align-items: stretch;
        flex-direction: column;
        margin-bottom: 50px;
    }

    .dashboard-header > .button {
        width: 100%;
    }

    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .team-search {
        flex-direction: column;
    }

    .team-result,
    .favorite-row {
        gap: 15px;
    }
}

/* ----------------------------------------------------------
   Dashboard V2
---------------------------------------------------------- */

.dashboard-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 65px;
}

.overview-card {
    min-height: 145px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.overview-label {
    display: block;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.overview-value {
    display: block;
    font-size: 30px;
    line-height: 1;
    letter-spacing: -1px;
}

.overview-value-small {
    display: block;
    font-size: 17px;
}

.overview-meta {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
}

.smart-hold-overview {
    border-style: dashed;
}

.feed-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #12b76a;
}

.favourite-limit-note {
    margin: 12px 4px 0;
    color: var(--muted);
    font-size: 12px;
}

.section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 9px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.fixture-badge {
    margin-left: auto;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.fixture-badge.confirmed {
    background: #f2f4f7;
    color: #344054;
}

.fixture-badge.possible {
    background: #fff8e7;
    color: #7a5200;
}

.heading-with-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.smart-label {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid #e4c66d;
    border-radius: 999px;
    background: #fff8e7;
    color: #7a5200;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.7px;
}

.smart-hold-row {
    min-height: 100px;
}

.smart-hold-icon {
    flex: 0 0 auto;
    font-size: 18px;
}

.smart-hold-reason {
    max-width: 620px;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.smart-hold-explainer {
    margin-top: 12px;
    padding: 18px 20px;
    border: 1px dashed var(--border);
    border-radius: 10px;
}

.smart-hold-explainer strong {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
}

.smart-hold-explainer p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.calendar-panel,
.premium-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 36px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.calendar-panel h2,
.premium-panel h2 {
    max-width: 580px;
    margin: 0;
    font-size: 30px;
    line-height: 1.08;
    letter-spacing: -1.2px;
}

.calendar-panel p,
.premium-panel p {
    max-width: 610px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.premium-panel {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

.premium-panel p {
    color: #aeb7c6;
}

.premium-label {
    display: block;
    margin-bottom: 16px;
    color: #d0d5dd;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.premium-price {
    min-width: 150px;
    text-align: right;
}

.premium-price strong {
    display: block;
    font-size: 32px;
    line-height: 1;
}

.premium-price > span {
    display: block;
    margin-top: 6px;
    color: #aeb7c6;
    font-size: 12px;
}

.premium-price .coming-soon-badge {
    display: inline-flex;
    margin-top: 16px;
    padding: 6px 9px;
    border: 1px solid #475467;
    border-radius: 999px;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}


/* Dashboard V2 mobile */

@media (max-width: 900px) {

    .dashboard-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 760px) {

    .dashboard-overview-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 45px;
    }

    .overview-card {
        min-height: 130px;
        padding: 18px;
    }

    .overview-value {
        font-size: 25px;
    }

    .fixture-badge {
        display: none;
    }

    .smart-hold-row {
        align-items: flex-start;
        gap: 12px;
    }

    .smart-hold-icon {
        display: none;
    }

    .heading-with-badge {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .calendar-panel,
    .premium-panel {
        align-items: stretch;
        flex-direction: column;
        padding: 26px 22px;
    }

    .calendar-panel .button {
        width: 100%;
    }

    .calendar-panel h2,
    .premium-panel h2 {
        font-size: 26px;
    }

    .premium-price {
        text-align: left;
    }

}


@media (max-width: 430px) {

    .dashboard-overview-grid {
        grid-template-columns: 1fr;
    }

}

/* ----------------------------------------------------------
   Onboarding
---------------------------------------------------------- */

.onboarding-progress {
    display: flex;
    align-items: center;
    width: 120px;
    margin-bottom: 28px;
}

.onboarding-step {
    display: flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #ffffff;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.onboarding-step.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.onboarding-step.complete {
    background: #ecfdf3;
    border-color: #abefc6;
    color: #067647;
}

.onboarding-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.onboarding-line.complete {
    background: #abefc6;
}

.onboarding-search-hint {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 18px;
    border: 1px dashed var(--border);
    border-radius: 10px;
    color: var(--muted);
}

.onboarding-search-hint span {
    font-size: 20px;
}

.onboarding-search-hint p {
    margin: 0;
    font-size: 13px;
}

.calendar-setup-card {
    width: min(
        calc(100% - 40px),
        500px
    );
}

.calendar-primary-action,
.calendar-finish-action {
    width: 100%;
}

.calendar-setup-note {
    margin: 20px 0;
    padding: 16px 18px;
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.calendar-setup-note strong {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
}

.calendar-setup-note p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.calendar-finish-action {
    margin-top: 10px;
}

.setup-back-link {
    display: block;
    margin-top: 22px;
    color: var(--muted);
    text-align: center;
    text-decoration: none;
    font-size: 13px;
}

.signup-steps {
    display: grid;
    gap: 9px;
    margin: 0 0 28px;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.signup-steps div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

.signup-steps span {
    display: flex;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    font-size: 10px;
    font-weight: 800;
}

.signup-note {
    margin: 14px 0 0;
    color: var(--muted);
    text-align: center;
    font-size: 11px;
}

/* ----------------------------------------------------------
   ClutchCal+
---------------------------------------------------------- */

.plus-card {
    width: min(
        calc(100% - 40px),
        520px
    );
}

.plus-price-block {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin: 28px 0;
}

.plus-price-block strong {
    font-size: 46px;
    line-height: 1;
    letter-spacing: -2px;
}

.plus-price-block span {
    padding-bottom: 5px;
    color: var(--muted);
    font-size: 13px;
}

.plus-features {
    display: grid;
    gap: 12px;
    margin: 0 0 28px;
}

.plus-features div {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.plus-features span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ecfdf3;
    color: #067647;
    font-size: 11px;
    font-weight: 800;
}

.plus-full-button {
    width: 100%;
}

.plus-status-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 25px 0;
    padding: 18px;
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.plus-status-box .status-dot {
    margin-top: 7px;
}

.plus-status-box strong {
    display: block;
}

.plus-status-box p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
}

/* ClutchCal+ dashboard actions */

.premium-panel .button-secondary {
    background: #ffffff;
    border-color: #ffffff;
    color: #111827;
}

.premium-panel .button-secondary:hover {
    background: #f2f4f7;
    border-color: #f2f4f7;
    color: #111827;
}

.premium-price .button-secondary {
    margin-top: 16px;
    min-width: 120px;
}

.cancel-subscription-form {
    margin-top: 12px;
}

.billing-cancel-button {
    width: 100%;
    min-height: 44px;
    padding: 0 18px;
    background: transparent;
    border: 1px solid #fecdca;
    border-radius: 10px;
    color: #b42318;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.billing-cancel-button:hover {
    background: #fef3f2;
}