:root {
    --ink: #101626;
    --muted: #626b7d;
    --surface: #ffffff;
    --soft: #f4f6f8;
    --line: #dfe4ea;
    --accent: #d8ff4f;
    --accent-deep: #b9e628;
    --danger: #9d2424;
    --danger-bg: #fff1f1;
    --success: #176338;
    --success-bg: #edfff4;
    --radius: 22px;
    --shadow: 0 20px 60px rgba(16, 22, 38, 0.09);
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

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

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.shell {
    width: min(1180px, calc(100% - 36px));
    margin-inline: auto;
}

.narrow-shell {
    width: min(760px, calc(100% - 36px));
}

.site-header {
    position: relative;
    z-index: 5;
    border-bottom: 1px solid rgba(16, 22, 38, 0.08);
    background: rgba(255, 255, 255, 0.94);
}

.header-inner,
.footer-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 1.08rem;
    font-weight: 850;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--ink);
    background: var(--accent);
    font-weight: 900;
}

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

.main-nav a {
    text-decoration: none;
    font-weight: 700;
}

.main-nav form {
    margin: 0;
}

.nav-button {
    padding: 0;
    border: 0;
    color: var(--ink);
    background: transparent;
    font-weight: 700;
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0 23px;
    border: 1px solid var(--ink);
    border-radius: 14px;
    color: var(--ink);
    background: var(--accent);
    box-shadow: 0 7px 0 var(--ink);
    font-weight: 850;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
    transform: translateY(2px);
    box-shadow: 0 5px 0 var(--ink);
}

.button-small {
    min-height: 42px;
    padding-inline: 17px;
    border-radius: 12px;
    box-shadow: 0 4px 0 var(--ink);
}

.button-secondary {
    background: var(--surface);
}

.full-width {
    width: 100%;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.hero {
    overflow: hidden;
    padding: 84px 0 90px;
    color: #fff;
    background:
        radial-gradient(circle at 86% 12%, rgba(216, 255, 79, 0.17), transparent 26%),
        var(--ink);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    align-items: center;
    gap: 70px;
}

.eyebrow {
    margin-bottom: 15px;
    color: #718000;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero .eyebrow,
.dashboard-hero .eyebrow {
    color: var(--accent);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.08;
    letter-spacing: -0.045em;
}

h1 {
    margin-bottom: 22px;
    font-size: clamp(2.7rem, 7vw, 5.7rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
    font-size: 1.25rem;
}

.hero-copy {
    max-width: 650px;
    color: #cbd2dd;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.cue-preview,
.today-cue {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 30px;
    background: #fff;
    box-shadow: var(--shadow);
}

.cue-preview {
    padding: 34px;
    color: var(--ink);
    transform: rotate(1.4deg);
}

.cue-label {
    display: inline-flex;
    margin-bottom: 20px;
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--ink);
    background: var(--accent);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cue-preview h2 {
    margin-bottom: 18px;
    font-size: clamp(1.75rem, 3vw, 2.55rem);
}

.cue-reason,
.cue-summary {
    color: var(--muted);
}

.cue-action {
    margin-top: 24px;
    padding: 20px;
    border-left: 5px solid var(--accent-deep);
    border-radius: 0 15px 15px 0;
    background: var(--soft);
    font-weight: 800;
}

.cue-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.cue-meta span,
.progress-pill,
.pilot-badge {
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
}

.section {
    padding: 88px 0;
}

.section-compact {
    padding: 54px 0 76px;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 38px;
}

.section-heading h2 {
    margin-bottom: 12px;
}

.section-heading p,
.lead {
    color: var(--muted);
    font-size: 1.12rem;
}

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

.feature-card,
.metric-card,
.panel {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.feature-number,
.panel-label {
    display: block;
    margin-bottom: 30px;
    color: #7b8614;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

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

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.footer-inner {
    color: var(--muted);
    font-size: 0.88rem;
}

.auth-section {
    min-height: calc(100vh - 153px);
    display: grid;
    place-items: center;
    padding: 56px 18px;
}

.auth-card {
    width: min(100%, 560px);
    padding: clamp(26px, 5vw, 44px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.auth-card h1,
.progress-row h1 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 5vw, 3rem);
}

.muted {
    color: var(--muted);
}

.field {
    margin-bottom: 20px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

label {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.92rem;
    font-weight: 800;
}

label span {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #cfd5dd;
    border-radius: 13px;
    color: var(--ink);
    background: #fff;
    outline: none;
}

input,
select {
    min-height: 50px;
    padding: 0 14px;
}

textarea {
    padding: 13px 14px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #7b8614;
    box-shadow: 0 0 0 4px rgba(216, 255, 79, 0.35);
}

.auth-switch {
    margin: 24px 0 0;
    text-align: center;
    color: var(--muted);
}

.auth-switch a {
    color: var(--ink);
    font-weight: 800;
}

.alert {
    margin: 0 0 22px;
    padding: 15px 17px;
    border: 1px solid;
    border-radius: 14px;
}

.alert p:last-child,
.alert ul:last-child {
    margin-bottom: 0;
}

.alert-error {
    border-color: #efb8b8;
    color: var(--danger);
    background: var(--danger-bg);
}

.alert-success {
    border-color: #a4d9b9;
    color: var(--success);
    background: var(--success-bg);
}

.progress-row,
.dashboard-heading,
.cue-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.progress-pill {
    flex: 0 0 auto;
    background: var(--surface);
}

.form-panel {
    margin-top: 30px;
    padding: clamp(22px, 5vw, 38px);
}

.dashboard-hero {
    padding: 54px 0 44px;
    color: #fff;
    background: var(--ink);
}

.dashboard-heading h1 {
    margin-bottom: 10px;
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.dashboard-heading p {
    color: #cbd2dd;
}

.pilot-badge {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--ink);
    background: var(--accent);
}

.metric-grid {
    margin-top: 30px;
}

.metric-card {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.07);
}

.metric-card strong,
.metric-card span {
    display: block;
}

.metric-card strong {
    font-size: 2rem;
}

.metric-card span {
    color: #cbd2dd;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
    align-items: start;
}

.today-cue {
    padding: clamp(25px, 5vw, 42px);
}

.cue-topline {
    align-items: center;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.today-cue h2 {
    margin-bottom: 15px;
}

.reason-box,
.action-box,
.empty-action {
    margin-top: 24px;
    padding: 19px;
    border-radius: 16px;
}

.reason-box {
    background: var(--soft);
}

.action-box,
.empty-action {
    border: 1px solid #cbd974;
    background: #f8ffd9;
}

.reason-box p,
.action-box p {
    margin: 8px 0 0;
}

.empty-cue {
    min-height: 390px;
}

.empty-cue > p {
    max-width: 680px;
    color: var(--muted);
    font-size: 1.08rem;
}

.empty-action span,
.empty-action strong {
    display: block;
}

.empty-action span {
    margin-bottom: 5px;
    color: #657000;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.side-stack {
    display: grid;
    gap: 18px;
}

.panel-label {
    margin-bottom: 18px;
}

@media (max-width: 880px) {
    .hero-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 44px;
    }

    .cue-preview {
        transform: none;
    }

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

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

@media (max-width: 620px) {
    .shell,
    .narrow-shell {
        width: min(100% - 24px, 1180px);
    }

    .header-inner {
        min-height: 68px;
    }

    .main-nav > a:not(.button) {
        display: none;
    }

    .hero,
    .section {
        padding-block: 58px;
    }

    .field-grid,
    .side-stack {
        grid-template-columns: 1fr;
    }

    .progress-row,
    .dashboard-heading,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-inner {
        justify-content: center;
        gap: 4px;
        padding-block: 24px;
    }
}
