:root {
    color-scheme: light;
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --surface-strong: #102a43;
    --text: #172033;
    --muted: #667085;
    --line: #dfe6ee;
    --accent: #0f766e;
    --accent-strong: #115e59;
    --accent-soft: #e8f8f5;
    --blue: #2563eb;
    --blue-soft: #edf4ff;
    --warning: #a15c00;
    --warning-soft: #fff7e6;
    --danger: #b42318;
    --success: #067647;
    --shadow: 0 24px 64px rgba(16, 42, 67, 0.12);
    --shadow-soft: 0 12px 32px rgba(16, 42, 67, 0.08);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 2%, rgba(15, 118, 110, 0.12), transparent 28rem),
        radial-gradient(circle at 92% 12%, rgba(37, 99, 235, 0.10), transparent 30rem),
        linear-gradient(180deg, #eef5f8 0%, var(--bg) 34%, #f7f9fc 100%);
}

button,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled,
textarea:disabled {
    cursor: wait;
    opacity: 0.62;
}

[hidden] {
    display: none !important;
}

.shell {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 26px;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-xl);
    color: #ffffff;
    background:
        linear-gradient(120deg, rgba(10, 54, 67, 0.98), rgba(15, 118, 110, 0.95)),
        var(--surface-strong);
    box-shadow: var(--shadow);
}

.hero::after {
    position: absolute;
    right: -110px;
    bottom: -150px;
    width: 390px;
    height: 390px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    content: "";
}

.brand-row,
.hero-grid,
.chat-header,
.panel-heading,
.composer-row,
.page-footer,
.chat-actions {
    display: flex;
    align-items: center;
}

.brand-row {
    position: relative;
    z-index: 1;
    gap: 14px;
    margin-bottom: 38px;
}

.brand-mark {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 15px;
    color: var(--surface-strong);
    background: #ffffff;
    font-size: 1.4rem;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.eyebrow,
.event-label,
.hero-kicker,
.stage-label,
.input-help,
.privacy-note,
.preview-notice p,
.profile-list dt,
.progress-list small,
.page-footer,
.hero-note span {
    margin: 0;
}

.eyebrow {
    color: inherit;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.event-label {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
}

.hero-grid {
    position: relative;
    z-index: 1;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;
}

.hero-grid > div:first-child {
    max-width: 780px;
}

.hero-kicker {
    margin-bottom: 11px;
    color: #a7f3d0;
    font-size: 0.88rem;
    font-weight: 750;
    letter-spacing: 0.04em;
}

.hero h1 {
    max-width: 790px;
    margin: 0;
    font-size: clamp(2.15rem, 5vw, 4.45rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.hero-copy {
    max-width: 740px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 1.8vw, 1.18rem);
    line-height: 1.65;
}

.hero-note {
    flex: 0 0 280px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(6px);
}

.hero-note strong,
.hero-note span {
    display: block;
}

.hero-note strong {
    margin-bottom: 5px;
    color: #ffffff;
}

.hero-note span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.86rem;
    line-height: 1.5;
}

.experience-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.76fr) minmax(0, 1.75fr);
    gap: 24px;
    margin-top: 24px;
}

.guide-column {
    display: grid;
    align-content: start;
    gap: 18px;
}

.panel,
.chat-card {
    border: 1px solid rgba(210, 220, 230, 0.88);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
}

.panel {
    padding: 22px;
    border-radius: var(--radius-lg);
}

.panel-heading {
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.panel-heading .eyebrow,
.chat-header .eyebrow,
.recommendation-heading .eyebrow {
    color: var(--accent);
}

.panel h2,
.chat-card h2,
.recommendation-heading h3,
.recommendation-card h4 {
    margin: 0;
    letter-spacing: -0.025em;
}

.panel h2 {
    margin-top: 5px;
    font-size: 1.16rem;
}

.count-chip,
.status {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}

.count-chip {
    color: var(--accent-strong);
    background: var(--accent-soft);
}

.progress-list {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.progress-list li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-soft);
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.progress-list li[data-complete="true"] {
    border-color: #9ad9cc;
    background: var(--accent-soft);
}

.progress-list li[data-complete="true"] .step-number {
    color: #ffffff;
    background: var(--accent);
}

.step-number {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 11px;
    color: var(--muted);
    background: #e8edf3;
    font-size: 0.78rem;
    font-weight: 850;
}

.progress-list strong,
.progress-list small {
    display: block;
}

.progress-list strong {
    font-size: 0.9rem;
}

.progress-list small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.35;
}

.profile-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.profile-list > div {
    padding: 13px 0;
    border-top: 1px solid var(--line);
}

.profile-list > div:first-child {
    padding-top: 0;
    border-top: 0;
}

.profile-list > div:last-child {
    padding-bottom: 0;
}

.profile-list dt {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.profile-list dd {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.preview-notice {
    padding: 18px 20px;
    border: 1px solid #f2d59e;
    border-radius: var(--radius-md);
    color: #6c4500;
    background: var(--warning-soft);
}

.preview-notice strong {
    display: block;
    margin-bottom: 6px;
}

.preview-notice p {
    font-size: 0.8rem;
    line-height: 1.55;
}

.chat-card {
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.chat-header {
    justify-content: space-between;
    gap: 20px;
    padding: 24px 26px 21px;
    border-bottom: 1px solid var(--line);
}

.chat-card h2 {
    margin-top: 5px;
    font-size: clamp(1.25rem, 2vw, 1.62rem);
}

.stage-label {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.84rem;
}

.chat-actions {
    align-items: flex-end;
    flex-direction: column;
    gap: 8px;
}

.status {
    color: var(--success);
    background: #ecfdf3;
}

.status[data-state="busy"] {
    color: var(--blue);
    background: var(--blue-soft);
}

.status[data-state="error"] {
    color: var(--danger);
    background: #fff1f0;
}

.text-button {
    padding: 0;
    border: 0;
    color: var(--muted);
    background: transparent;
    font-size: 0.78rem;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

.conversation {
    display: flex;
    min-height: 310px;
    max-height: 480px;
    flex-direction: column;
    gap: 13px;
    overflow-y: auto;
    padding: 25px 26px;
    background:
        linear-gradient(rgba(248, 250, 252, 0.94), rgba(248, 250, 252, 0.94)),
        repeating-linear-gradient(0deg, transparent, transparent 29px, rgba(15, 118, 110, 0.025) 30px);
    scroll-behavior: smooth;
}

.message {
    width: fit-content;
    max-width: min(82%, 650px);
    padding: 13px 16px;
    border-radius: 17px;
    font-size: 0.94rem;
    line-height: 1.55;
    box-shadow: 0 7px 18px rgba(16, 42, 67, 0.06);
}

.message p {
    margin: 0;
}

.message p + p {
    margin-top: 10px;
}

.message-bot {
    align-self: flex-start;
    border: 1px solid var(--line);
    border-bottom-left-radius: 5px;
    background: #ffffff;
}

.message-user {
    align-self: flex-end;
    border-bottom-right-radius: 5px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

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