:root {
    --bg: #ffffff;
    --paper: rgba(255, 255, 255, 0.94);
    --panel: #ffffff;
    --ink: #17304c;
    --muted: #5f7084;
    --pink: #ff3b68;
    --blue: #2890f3;
    --peach: #ffd8c3;
    --sky: #dff1ff;
    --line: rgba(23, 48, 76, 0.1);
    --shadow: 0 24px 60px rgba(30, 55, 90, 0.14);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html, body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Manrope", "Avenir Next", sans-serif;
    color: var(--ink);
    background: var(--bg);
}

a {
    color: inherit;
}

.site-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px;
}

body.page-landing .site-shell,
body.page-home .site-shell {
    max-width: none;
    min-height: 100vh;
    padding: 0;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand img {
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.brand-copy strong,
.brand-copy span {
    display: block;
}

.brand-copy strong {
    font-family: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
    font-size: 1.2rem;
}

.brand-copy span {
    color: var(--muted);
    font-size: 0.92rem;
}

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

.nav-links a,
.nav-links button,
.button {
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 0 0 1px var(--line);
    color: var(--ink);
    text-decoration: none;
    font: inherit;
    cursor: pointer;
}

.button-primary {
    background: linear-gradient(135deg, var(--pink), #ff6b4a);
    color: #fff;
    box-shadow: 0 18px 34px rgba(255, 59, 104, 0.28);
}

.button-secondary {
    background: linear-gradient(135deg, var(--blue), #51b5ff);
    color: #fff;
    box-shadow: 0 18px 34px rgba(40, 144, 243, 0.24);
}

.panel-toggle.is-selected {
    box-shadow: 0 0 0 2px rgba(23, 48, 76, 0.16);
}

.landing-stage,
.comic-feet-home {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px 140px;
}

.landing-center,
.comic-feet-center {
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
}

.landing-center h1,
.comic-feet-center h1 {
    margin: 0;
    font-family: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
    letter-spacing: -0.05em;
    line-height: 0.94;
}

.landing-center h1 {
    font-size: clamp(3.4rem, 9vw, 7.8rem);
}

.landing-button {
    min-width: 220px;
}

.comic-feet-logo {
    width: min(460px, 72vw);
    height: auto;
    display: block;
}

.comic-feet-center h1 {
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    margin-top: -8px;
}

.comic-feet-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 48px;
}

.bottom-panel-shell {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 18px 18px;
    pointer-events: none;
}

.bottom-panel {
    display: none;
    max-width: 920px;
    margin: 0 auto;
    padding: 16px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(23, 48, 76, 0.12);
    border-radius: 24px;
    box-shadow: 0 22px 60px rgba(23, 48, 76, 0.16);
}

.bottom-panel.is-active {
    display: block;
    pointer-events: auto;
}

.inline-form {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
}

.bottom-panel[data-panel="waitlist"] .inline-form {
    grid-template-columns: 1fr auto;
}

.inline-form input {
    width: 100%;
    min-width: 0;
    padding: 15px 16px;
    border: 1px solid rgba(23, 48, 76, 0.14);
    border-radius: 16px;
    background: #fff;
    font: inherit;
}

.button-ghost {
    background: #ffffff;
    color: rgba(23, 48, 76, 0.84);
    box-shadow: inset 0 0 0 1px rgba(23, 48, 76, 0.16);
}

.access-panel-stack {
    display: grid;
    gap: 14px;
}

.access-divider {
    position: relative;
    text-align: center;
}

.access-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid rgba(23, 48, 76, 0.1);
}

.access-divider span {
    position: relative;
    display: inline-block;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--muted);
    font-size: 0.92rem;
}

.access-chatgpt-button {
    justify-self: start;
}

.access-feedback {
    margin: 0;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.5;
}

.access-feedback-copy {
    margin: 0;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.6;
}

.access-feedback[data-state="error"] {
    color: #b33a52;
}

.access-feedback[data-state="success"] {
    color: #27659d;
}

.access-feedback[data-state="warning"] {
    color: #83573b;
}

.access-open-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: stretch;
}

.hero-panel,
.panel,
.dashboard-grid article {
    background: var(--paper);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: 42px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 0 0 1px rgba(23, 48, 76, 0.08);
    color: var(--muted);
    font-size: 0.92rem;
}

.hero h1,
.panel h2,
.dashboard-grid h3 {
    font-family: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
    line-height: 0.98;
    letter-spacing: -0.04em;
    margin: 18px 0 14px;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.7rem);
}

.hero p,
.panel p,
.dashboard-grid p,
.flash {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.feature-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.feature-strip span {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: inset 0 0 0 1px rgba(23, 48, 76, 0.08);
}

.hero-side {
    display: grid;
    gap: 24px;
}

.panel {
    padding: 28px;
}

.login-card form {
    display: grid;
    gap: 14px;
}

.login-card label {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.login-card input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(23, 48, 76, 0.14);
    background: #fff;
    font: inherit;
}

.comic-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 34px;
}

.comic-frame {
    padding: 18px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    border: 1px solid rgba(23, 48, 76, 0.08);
}

.foot-stage {
    position: relative;
    height: 170px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(240, 248, 255, 0.65)),
        repeating-linear-gradient(90deg, transparent 0 29px, rgba(23, 48, 76, 0.03) 29px 30px);
    overflow: hidden;
}

.foot {
    position: absolute;
    width: 44px;
    height: 72px;
    border: 6px solid currentColor;
    border-radius: 50% 50% 48% 48%;
    background: rgba(255, 255, 255, 0.66);
}

.foot::after {
    content: "";
    position: absolute;
    bottom: -22px;
    left: 4px;
    width: 34px;
    height: 22px;
    border: 6px solid currentColor;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
}

.foot.left {
    color: var(--pink);
}

.foot.right {
    color: var(--blue);
}

.path {
    position: absolute;
    border-top: 6px dashed currentColor;
    border-radius: 999px;
    opacity: 0.7;
}

.path.blue {
    color: var(--blue);
}

.path.pink {
    color: var(--pink);
}

.dashboard-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding: 30px;
    margin-bottom: 24px;
}

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

.dashboard-grid article {
    padding: 24px;
}

.mini-list {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.mini-list li {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.flash-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.flash {
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 0 0 1px rgba(23, 48, 76, 0.08);
}

.flash-success {
    border-left: 5px solid var(--blue);
}

.flash-error {
    border-left: 5px solid var(--pink);
}

.flash-info {
    border-left: 5px solid #f28c38;
}

.not-found {
    padding: 80px 24px;
    text-align: center;
}

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

    .comic-strip {
        grid-template-columns: 1fr;
    }

    .topbar,
    .dashboard-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .site-shell {
        padding: 18px;
    }

    .hero-copy,
    .panel,
    .dashboard-grid article,
    .dashboard-hero {
        padding: 22px;
    }

    .inline-form,
    .bottom-panel[data-panel="waitlist"] .inline-form {
        grid-template-columns: 1fr;
    }

    .bottom-panel-shell {
        padding: 0 12px 12px;
    }
}

body.page-dashboard {
    overflow: hidden;
    background: #ffffff;
}

body.page-dashboard .flash-stack {
    display: none;
}

.dashboard-app {
    position: fixed;
    inset: 0;
    display: grid;
    grid-template-rows: 60px minmax(0, 1fr) 60px;
    overflow: hidden;
    background: #ffffff;
    color: #000000;
}

.dashboard-topbar,
.dashboard-bottombar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    background: #ffffff;
}

.dashboard-topbar {
    padding: 0 18px 0 20px;
}

.dashboard-bottombar {
    justify-content: center;
    padding: 0 18px;
}

.dashboard-bottombar-inner {
    position: relative;
    width: 100%;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.dashboard-auth-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 6px;
    white-space: nowrap;
    scrollbar-width: none;
}

.dashboard-promptbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: min(900px, calc(100vw - 180px));
    min-width: 0;
}

.dashboard-auth-strip::-webkit-scrollbar {
    display: none;
}

.dashboard-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: #000000;
    text-decoration: none;
}

.dashboard-brand img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex: 0 0 auto;
}

.dashboard-brand span {
    font-family: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    white-space: nowrap;
}

.dashboard-logout {
    margin: 0;
}

.dashboard-icon-button {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #000000;
    cursor: pointer;
}

.dashboard-icon-button svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    stroke-width: 1.75;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-frame {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr) 320px;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.dashboard-side {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    background: #f6f6f6;
}

.dashboard-center {
    min-width: 0;
    min-height: 0;
    padding: 15px;
    background: #ffffff;
}

.dashboard-center-panel {
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 24px;
    background: #ffffff;
    overflow: auto;
}

.dashboard-response-surface {
    min-height: 100%;
    padding: 42px;
}

.dashboard-response-copy {
    display: block;
}

.dashboard-response-text {
    color: rgba(0, 0, 0, 0.84);
    font-size: 18px;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.dashboard-response-copy[data-state="thinking"] .dashboard-response-text {
    color: rgba(0, 0, 0, 0.42);
}

.dashboard-response-copy[data-state="error"] .dashboard-response-text {
    color: #a14d4d;
}

.dashboard-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 22px;
    border: 1px solid rgba(0, 0, 0, 0.34);
    border-radius: 999px;
    background: #ffffff;
    color: rgba(0, 0, 0, 0.72);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    white-space: nowrap;
}

.dashboard-prompt-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    padding: 0 16px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 999px;
    background: #ffffff;
    color: rgba(0, 0, 0, 0.78);
    font: inherit;
    font-size: 14px;
    line-height: 1;
}

.dashboard-prompt-input::placeholder {
    color: rgba(0, 0, 0, 0.42);
}

.dashboard-prompt-input:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.28);
}

.dashboard-prompt-send,
.dashboard-bottom-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 999px;
    background: #ffffff;
    color: rgba(0, 0, 0, 0.76);
    font: inherit;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.dashboard-prompt-send {
    flex: 0 0 auto;
    padding: 0 18px;
    font-weight: 600;
}

.dashboard-bottom-icon-button {
    position: absolute;
    right: 0;
    top: 50%;
    width: 40px;
    padding: 0;
    transform: translateY(-50%);
}

.dashboard-bottom-icon-button svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.75;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-prompt-send[disabled],
.dashboard-bottom-icon-button[disabled],
.dashboard-action-button[disabled] {
    cursor: default;
    opacity: 0.56;
}

.dashboard-auth-status {
    color: rgba(0, 0, 0, 0.58);
    font-size: 13px;
    line-height: 1;
}

.dashboard-auth-code {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 999px;
    background: #ffffff;
    color: rgba(0, 0, 0, 0.8);
    font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
    font-size: 13px;
    letter-spacing: 0.08em;
}

.dashboard-auth-copy,
.dashboard-auth-open-link,
.dashboard-auth-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 999px;
    background: #ffffff;
    color: rgba(0, 0, 0, 0.7);
    font: inherit;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.dashboard-rail-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
}

.dashboard-rail-card-plain {
    min-height: 100%;
    align-content: start;
}

.dashboard-rail-card h2 {
    margin: 0;
    font-family: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
    font-size: 1.7rem;
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.dashboard-rail-label {
    margin: 0;
    color: rgba(0, 0, 0, 0.52);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-rail-copy,
.dashboard-rail-meta {
    margin: 0;
    color: rgba(0, 0, 0, 0.68);
    font-size: 0.95rem;
    line-height: 1.55;
}

.dashboard-rail-meta {
    font-size: 0.88rem;
}

.dashboard-rail-button,
.dashboard-link-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 999px;
    background: #ffffff;
    color: rgba(0, 0, 0, 0.78);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
}

.dashboard-rail-button-subtle {
    border-color: rgba(0, 0, 0, 0.11);
    color: rgba(0, 0, 0, 0.58);
}

.dashboard-codex-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-codex-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.62);
    background: #ffffff;
    white-space: nowrap;
}

.dashboard-codex-pill.is-connected {
    color: #1e628d;
    border-color: rgba(30, 98, 141, 0.18);
}

.dashboard-codex-pill.is-linked {
    color: #5d6472;
}

.dashboard-codex-pill.is-error {
    color: #9a4d4d;
    border-color: rgba(154, 77, 77, 0.16);
}

.dashboard-auth-open-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(0, 0, 0, 0.76);
    font-size: 0.92rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dashboard-linked-list {
    display: grid;
    gap: 10px;
}

.dashboard-linked-account {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

.dashboard-linked-account.is-active {
    border-color: rgba(0, 0, 0, 0.18);
}

.dashboard-linked-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.dashboard-linked-copy strong,
.dashboard-linked-copy span,
.dashboard-linked-copy small {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.dashboard-linked-copy strong {
    font-size: 0.96rem;
}

.dashboard-linked-copy span,
.dashboard-linked-copy small {
    color: rgba(0, 0, 0, 0.58);
}

.dashboard-linked-copy small {
    text-transform: capitalize;
}

.dashboard-linked-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    color: rgba(0, 0, 0, 0.62);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-auth-status[data-state="error"],
[data-auth-feedback][data-state="error"] {
    color: #a14d4d;
}

.dashboard-auth-status[data-state="success"],
[data-auth-feedback][data-state="success"] {
    color: #1f6998;
}

.dashboard-auth-status[data-state="warning"],
[data-auth-feedback][data-state="warning"] {
    color: #8a613e;
}

.dashboard-auth-status[data-state="info"],
[data-auth-feedback][data-state="info"] {
    color: rgba(0, 0, 0, 0.72);
}

@media (max-width: 1100px) {
    .dashboard-frame {
        grid-template-columns: 260px minmax(0, 1fr) 260px;
    }
}

@media (max-width: 960px) {
    .dashboard-frame {
        grid-template-columns: 1fr;
    }

    .dashboard-side {
        display: none;
    }

    .dashboard-topbar,
    .dashboard-bottombar {
        padding-left: 14px;
        padding-right: 14px;
    }

    .dashboard-brand span {
        font-size: 1.05rem;
    }

    .dashboard-brand img {
        width: 30px;
        height: 30px;
    }

    .dashboard-center {
        padding: 12px;
    }

    .dashboard-action-button {
        max-width: calc(100vw - 24px);
        padding: 0 12px;
        font-size: 11px;
    }

    .dashboard-auth-strip {
        justify-content: flex-start;
        gap: 8px;
        padding: 0 2px;
    }

    .dashboard-bottombar-inner {
        justify-content: stretch;
    }

    .dashboard-promptbar {
        width: calc(100vw - 80px);
        gap: 8px;
    }

    .dashboard-bottom-icon-button {
        width: 34px;
        height: 34px;
        right: 0;
    }

    .dashboard-prompt-input,
    .dashboard-prompt-send {
        height: 34px;
        font-size: 12px;
    }

    .dashboard-response-surface {
        padding: 24px;
    }

    .dashboard-response-text {
        font-size: 15px;
        line-height: 1.6;
    }

    .dashboard-auth-status,
    .dashboard-auth-code,
    .dashboard-auth-copy,
    .dashboard-auth-open-link {
        font-size: 11px;
    }

    .access-chatgpt-button {
        justify-self: stretch;
    }
}
