:root {
    --guest-pink: var(--pink, #ff1e62);
    --guest-pink-dark: var(--pink-dark, #e0004b);
    --guest-ink: var(--text-dark, #0f172a);
    --guest-muted: var(--text-muted, #64748b);
    --guest-border: var(--border, #e5e7eb);
    --guest-surface: #ffffff;
    --guest-soft: #f8fafc;
    --guest-tint: #fff1f6;
    --guest-cyan: #0891b2;
    --guest-radius: 12px;
    --guest-radius-sm: 8px;
    --guest-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
}

.guest-page {
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fafc 42%, #ffffff 100%);
    color: var(--guest-ink);
}

.guest-hero {
    padding: clamp(40px, 6vw, 72px) 20px clamp(28px, 4vw, 48px);
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border-bottom: 1px solid #eef2f7;
}

.guest-hero__inner,
.guest-section__inner {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.guest-hero__inner {
    display: grid;
    gap: 16px;
}

.guest-hero--center .guest-hero__inner {
    max-width: 840px;
    text-align: center;
}

.guest-hero--split .guest-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    align-items: end;
    gap: 32px;
}

.guest-hero__title {
    margin: 0;
    color: var(--guest-ink);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.04;
    text-wrap: balance;
}

.guest-hero__subtitle {
    max-width: 64ch;
    margin: 0;
    color: #475569;
    font-size: clamp(1rem, 1.7vw, 1.15rem);
    line-height: 1.7;
}

.guest-hero--center .guest-hero__subtitle {
    margin-inline: auto;
}

.guest-hero__panel {
    border: 1px solid #e2e8f0;
    border-radius: var(--guest-radius);
    background: var(--guest-surface);
    box-shadow: var(--guest-shadow);
    padding: 20px;
}

.guest-hero__panel strong {
    display: block;
    color: var(--guest-pink);
    font-size: 28px;
    line-height: 1;
}

.guest-hero__panel span {
    display: block;
    margin-top: 6px;
    color: var(--guest-muted);
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.guest-section {
    padding: clamp(36px, 5vw, 64px) 20px;
}

.guest-section--tight {
    padding-top: clamp(24px, 4vw, 42px);
}

.guest-section--surface {
    background: var(--guest-soft);
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
}

.guest-layout {
    display: grid;
    gap: 24px;
}

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

.guest-space-top {
    margin-top: 24px;
}

.guest-layout--lookup {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    align-items: start;
}

.guest-card {
    min-width: 0;
    border: 1px solid #e2e8f0;
    border-radius: var(--guest-radius);
    background: var(--guest-surface);
    box-shadow: var(--guest-shadow);
    padding: clamp(22px, 3vw, 34px);
}

.guest-card--narrow {
    max-width: 620px;
    margin-inline: auto;
}

.guest-card--soft {
    background:
        linear-gradient(180deg, #ffffff 0%, #fff9fb 100%);
    border-color: #f8c7d8;
}

.guest-card__title,
.guest-section-title {
    margin: 0 0 14px;
    color: var(--guest-ink);
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.guest-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.guest-card-header .guest-section-title {
    margin: 0;
}

.guest-card__text,
.guest-section-text {
    margin: 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
}

.guest-form {
    display: grid;
    gap: 18px;
}

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

.guest-form__span-2 {
    grid-column: 1 / -1;
}

.guest-page .form-group,
.guest-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.guest-page .form-group label,
.guest-field label {
    margin: 0;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.guest-page .form-input,
.guest-input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #dbe3ef;
    border-radius: var(--guest-radius-sm);
    background: #ffffff;
    color: var(--guest-ink);
    font: inherit;
    font-size: 15px;
    line-height: 1.4;
    padding: 12px 14px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.guest-page textarea.form-input,
textarea.guest-input {
    min-height: 116px;
    resize: vertical;
}

.guest-page .form-input:focus,
.guest-input:focus {
    border-color: var(--guest-pink);
    box-shadow: 0 0 0 4px rgba(255, 30, 98, 0.12);
}

.guest-page .form-input::placeholder,
.guest-input::placeholder {
    color: #94a3b8;
}

.guest-actions,
.guest-form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.guest-page .btn,
.guest-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: var(--guest-radius-sm);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.guest-page .btn:hover,
.guest-btn:hover {
    transform: translateY(-1px);
}

.guest-page .btn:active,
.guest-btn:active {
    transform: translateY(0);
}

.guest-page .btn:focus-visible,
.guest-btn:focus-visible {
    outline: 3px solid rgba(255, 30, 98, 0.25);
    outline-offset: 2px;
}

.guest-page .btn--primary,
.guest-btn--primary {
    background: var(--guest-pink);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(255, 30, 98, 0.22);
}

.guest-page .btn--primary:hover,
.guest-btn--primary:hover {
    background: var(--guest-pink-dark);
    box-shadow: 0 12px 28px rgba(224, 0, 75, 0.26);
}

.guest-page .btn--secondary,
.guest-btn--secondary {
    background: #ffffff;
    border-color: #dbe3ef;
    color: var(--guest-ink);
}

.guest-page .btn--secondary:hover,
.guest-btn--secondary:hover {
    border-color: var(--guest-pink);
    color: var(--guest-pink);
}

.guest-page .btn--ghost,
.guest-btn--ghost {
    background: transparent;
    color: var(--guest-pink);
    padding-inline: 4px;
}

.guest-page .btn[disabled],
.guest-btn[disabled] {
    cursor: not-allowed;
    opacity: 0.62;
    transform: none;
    box-shadow: none;
}

.guest-alert,
.guest-page .form-error,
.guest-page .form-success {
    margin: 0;
    border-radius: var(--guest-radius-sm);
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.guest-alert--error,
.guest-page .form-error {
    border: 1px solid #fecdd3;
    background: #fff1f2;
    color: #be123c;
}

.guest-alert--success,
.guest-page .form-success {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.guest-alert--info {
    border: 1px solid #bae6fd;
    background: #f0f9ff;
    color: #075985;
}

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

.guest-info-list li {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
}

.guest-info-list i {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--guest-tint);
    color: var(--guest-pink);
}

.guest-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
}

.guest-metric {
    border: 1px solid #e2e8f0;
    border-radius: var(--guest-radius-sm);
    background: #ffffff;
    padding: 16px;
}

.guest-metric strong {
    display: block;
    color: var(--guest-ink);
    font-size: 22px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.guest-metric span {
    display: block;
    margin-top: 6px;
    color: var(--guest-muted);
    font-size: 13px;
    font-weight: 700;
}

.guest-empty {
    display: grid;
    gap: 14px;
    justify-items: start;
    border: 1px dashed #cbd5e1;
    border-radius: var(--guest-radius);
    background: #ffffff;
    padding: 24px;
}

.guest-empty p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.guest-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: var(--guest-radius);
    background: #ffffff;
}

.guest-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.guest-table th,
.guest-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

.guest-table th {
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #f8fafc;
}

.guest-table tr:last-child td {
    border-bottom: 0;
}

.guest-code {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 10px 0 22px;
    padding: 16px;
    overflow-x: auto;
    border-radius: var(--guest-radius-sm);
    background: #111827;
    color: #f8fafc;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 1.65;
    white-space: pre;
}

.guest-code-inline,
.guest-page code {
    border-radius: 6px;
    background: #f1f5f9;
    color: #be185d;
    padding: 2px 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.92em;
    overflow-wrap: anywhere;
}

.guest-docs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: start;
}

.guest-docs > * {
    min-width: 0;
}

.guest-docs__nav {
    position: sticky;
    top: 20px;
    display: grid;
    gap: 10px;
}

.guest-docs__nav a {
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.guest-docs__nav a:hover {
    color: var(--guest-pink);
}

.guest-docs h2 {
    margin: 30px 0 10px;
    color: var(--guest-ink);
    font-size: 22px;
    line-height: 1.25;
}

.guest-docs h2:first-child {
    margin-top: 0;
}

.guest-docs p {
    color: #475569;
    line-height: 1.7;
}

.guest-endpoint-list {
    display: grid;
    gap: 10px;
    margin: 14px 0 24px;
    padding: 0;
    list-style: none;
}

.guest-endpoint-list li {
    display: grid;
    gap: 6px;
    border: 1px solid #e2e8f0;
    border-radius: var(--guest-radius-sm);
    background: #ffffff;
    padding: 14px;
}

.guest-job-list,
.guest-referral-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.guest-job-card,
.guest-referral-card {
    display: grid;
    gap: 16px;
    border: 1px solid #e2e8f0;
    border-radius: var(--guest-radius);
    background: #ffffff;
    padding: 18px;
}

.guest-job-card {
    grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(110px, 0.75fr));
    align-items: center;
}

.guest-job-route {
    display: grid;
    gap: 6px;
}

.guest-job-route strong,
.guest-referral-card strong {
    color: var(--guest-ink);
    font-weight: 800;
}

.guest-job-route span,
.guest-job-meta span,
.guest-referral-card span {
    color: var(--guest-muted);
    font-size: 13px;
    line-height: 1.45;
}

.guest-job-meta {
    display: grid;
    gap: 4px;
}

.guest-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 30px;
    border-radius: 999px;
    border: 1px solid #bae6fd;
    background: #f0f9ff;
    color: #075985;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
}

.guest-share-box {
    display: grid;
    gap: 8px;
    border: 1px solid #f8c7d8;
    border-radius: var(--guest-radius);
    background: #fff7fa;
    padding: 16px;
}

.guest-share-box code,
.guest-share-box a {
    overflow-wrap: anywhere;
}

.guest-group-hero {
    padding: clamp(48px, 8vw, 88px) 20px;
}

.guest-group-hero .guest-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    align-items: center;
    gap: 38px;
}

.guest-group-mark {
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 30, 98, 0.12), rgba(8, 145, 178, 0.12)),
        #ffffff;
    border: 1px solid #e2e8f0;
    padding: 28px;
    box-shadow: var(--guest-shadow);
}

.guest-group-mark__line {
    height: 8px;
    border-radius: 999px;
    background: var(--guest-pink);
    margin-bottom: 18px;
}

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

.guest-feature-card {
    display: grid;
    align-content: start;
    gap: 12px;
    min-height: 180px;
    border: 1px solid #e2e8f0;
    border-radius: var(--guest-radius);
    background: #ffffff;
    padding: 22px;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.guest-feature-card:hover {
    transform: translateY(-2px);
    border-color: #f8c7d8;
    box-shadow: 0 12px 28px rgba(255, 30, 98, 0.1);
}

.guest-feature-card i {
    color: var(--guest-pink);
    font-size: 22px;
}

.guest-feature-card h3 {
    margin: 0;
    color: var(--guest-ink);
    font-size: 18px;
}

.guest-feature-card p {
    margin: 0;
    color: #475569;
    line-height: 1.65;
}

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

.guest-system-item {
    border: 1px solid #e2e8f0;
    border-radius: var(--guest-radius);
    background: #ffffff;
    padding: 18px;
}

.guest-system-item strong {
    display: block;
    color: var(--guest-pink);
    font-size: 15px;
    margin-bottom: 8px;
}

.guest-system-item span {
    color: #475569;
    line-height: 1.6;
}

.guest-cta-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    border: 1px solid #f8c7d8;
    border-radius: 16px;
    background:
        linear-gradient(135deg, #fff7fa 0%, #ffffff 58%, #f0f9ff 100%);
    padding: clamp(24px, 4vw, 40px);
}

@media (max-width: 980px) {
    .guest-hero--split .guest-hero__inner,
    .guest-layout--lookup,
    .guest-docs,
    .guest-group-hero .guest-hero__inner,
    .guest-cta-card {
        grid-template-columns: 1fr;
    }

    .guest-docs__nav {
        position: static;
        order: -1;
    }

    .guest-job-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guest-job-route {
        grid-column: 1 / -1;
    }

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

@media (max-width: 720px) {
    .guest-hero__inner,
    .guest-section__inner {
        width: min(100% - 28px, 1120px);
    }

    .guest-hero {
        padding: 34px 0 28px;
    }

    .guest-section {
        padding: 32px 0;
    }

    .guest-card {
        padding: 20px;
    }

    .guest-form__grid,
    .guest-system-grid,
    .guest-job-card {
        grid-template-columns: 1fr;
    }

    .guest-actions,
    .guest-form__actions,
    .guest-card-header {
        align-items: stretch;
        flex-direction: column;
    }

    .guest-page .btn,
    .guest-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .guest-page *,
    .guest-page *::before,
    .guest-page *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
