/* Get Started onboarding page */
:root {
    --start-cream: #fdfaf5;
    --start-gold: #e8b923;
    --start-gold-light: #f5d547;
    --start-text: #1a1a1a;
    --start-text-muted: #6b7280;
    --start-card-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --start-content-max: 36rem;
    --start-illustration-max: 26rem;
    --start-footer-height: 96px;
}

.onboarding-body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(ellipse at center, #fffef9 0%, var(--start-cream) 70%, #f5efe4 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--start-text);
    overflow-x: hidden;
}

.onboarding-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 1.5rem;
    background: transparent;
}

.onboarding-logo img {
    display: block;
}

.start-page {
    min-height: 100vh;
    width: 100%;
    padding: 0 0 var(--start-footer-height);
}

.start-step {
    display: none;
    animation: startFadeIn 0.35s ease;
}

.start-step.active {
    display: flex;
}

.start-step-centered {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 1.5rem 2rem;
    min-height: calc(100vh - var(--start-footer-height));
    max-width: var(--start-content-max);
    margin: 0 auto;
    text-align: center;
}

.start-step-centered .start-headline {
    text-align: center;
}

#step-select {
    justify-content: flex-start;
    padding-top: 7rem;
}

#step-select .start-community-list {
    height: min(50vh, 400px);
    min-height: 280px;
}

#step-select .start-empty-state {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero slides: centered column, illustration above text */
.start-step-hero {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: calc(100vh - var(--start-footer-height));
    padding: 5rem 1.5rem 2rem;
}

.start-hero-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: var(--start-content-max);
    gap: 1.75rem;
    text-align: center;
}

.start-hero-panel-text-only {
    gap: 0;
}

.start-hero-illustration {
    width: 100%;
    max-width: var(--start-illustration-max);
    flex-shrink: 0;
}

.start-hero-illustration picture {
    display: block;
    width: 100%;
}

.start-hero-illustration img {
    width: 100%;
    height: auto;
    display: block;
}

.start-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.start-typewriter {
    width: 100%;
    max-width: 32rem;
}

.start-headline {
    font-family: 'Domine', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

.start-headline-gap {
    margin-top: 1.5rem;
}

.start-headline strong {
    font-weight: 700;
}

.start-tw-line {
    opacity: 1;
}

.start-tw-line:not(.is-visible) {
    opacity: 0;
}

.start-tw-char {
    opacity: 0;
}

.start-tw-char.is-revealed {
    opacity: 1;
}

.start-check-item {
    font-family: 'Domine', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.5;
    margin: 0 auto;
    padding-left: 2rem;
    position: relative;
    text-align: left;
    max-width: 28rem;
}

.start-check-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.12em;
    color: #c9a012;
    font-weight: 700;
    font-size: 1.1em;
}

.start-cta-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.start-cta-hidden.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@keyframes startFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Path choice cards */
.start-path-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    margin-top: 1.5rem;
}

@media (min-width: 576px) {
    .start-path-cards {
        grid-template-columns: 1fr 1fr;
    }
}

.start-path-card {
    background: #fff;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    box-shadow: var(--start-card-shadow);
    text-align: left;
}

.start-path-card-image {
    display: block;
    width: 100%;
    height: 156px;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    margin-bottom: 0.9rem;
    background: #f8f8f5;
}

.start-path-card:hover {
    border-color: var(--start-gold-light);
    box-shadow: 0 8px 32px rgba(232, 185, 35, 0.15);
    transform: translateY(-2px);
}

.start-path-card h3 {
    font-family: 'Domine', Georgia, serif;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.start-path-card p {
    font-size: 0.875rem;
    color: var(--start-text-muted);
    margin: 0;
}

/* Community selection */
.start-community-search {
    width: 100%;
    margin: 1.5rem 0;
}

.start-community-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E") no-repeat 0.85rem center;
}

.start-community-list {
    width: 100%;
    max-height: min(50vh, 400px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.start-community-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, background 0.15s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    width: 100%;
}

.start-community-item:hover,
.start-community-item:focus {
    border-color: var(--start-gold-light);
    outline: none;
}

.start-community-item.selected {
    border-color: var(--start-gold);
    background: #fffdf5;
}

.start-community-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #f3f4f6;
}

.start-community-photo-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8b923 0%, #f5d547 100%);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
}

.start-community-info h4 {
    font-size: 1rem;
    margin: 0 0 0.15rem;
    font-weight: 600;
}

.start-community-info p {
    font-size: 0.8rem;
    color: var(--start-text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.start-community-meta {
    font-size: 0.75rem;
    color: var(--start-text-muted);
    margin-top: 0.15rem;
}

.start-empty-state {
    padding: 2rem;
    color: var(--start-text-muted);
    font-size: 0.9rem;
    text-align: center;
}

.start-inline-link {
    color: var(--start-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.start-inline-link:hover {
    color: #b8860b;
}

.start-cta-btn {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.75rem 1.75rem;
    background: var(--start-gold);
    color: var(--start-text);
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    text-decoration: none;
    align-self: center;
}

.start-cta-btn:hover {
    background: var(--start-gold-light);
    color: var(--start-text);
    transform: translateY(-1px);
}

.start-cta-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.start-coming-soon {
    text-align: center;
}

.start-coming-soon h2 {
    font-family: 'Domine', Georgia, serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.start-coming-soon p {
    color: var(--start-text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Card hero steps (create flow) */
.start-hero-panel-cards {
    max-width: 42rem;
}

.start-hero-panel-cards .start-typewriter {
    max-width: 36rem;
}

.start-cards-reveal {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    width: 100%;
    margin-top: 1.25rem;
    pointer-events: none;
}

.start-cards-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.start-mini-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    width: 100%;
    text-align: left;
}

@media (min-width: 576px) {
    .start-mini-cards {
        grid-template-columns: 1fr 1fr;
    }
}

.start-mini-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0ebe0;
    text-align: left;
}

.start-mini-card-icon {
    display: block;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    object-fit: contain;
    object-position: center;
    border-radius: 6px;
}

.start-mini-card-text {
    flex: 1;
    min-width: 0;
}

.start-mini-card h4 {
    font-family: 'Domine', Georgia, serif;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.2rem;
}

.start-mini-card p {
    font-size: 0.78rem;
    color: var(--start-text-muted);
    margin: 0;
    line-height: 1.4;
}

.start-value-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    width: 100%;
    text-align: left;
}

@media (min-width: 576px) {
    .start-value-cards {
        grid-template-columns: 1fr 1fr;
    }
}

.start-value-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0ebe0;
    text-align: left;
}

.start-value-card-icon {
    display: block;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    object-fit: contain;
    object-position: center;
    border-radius: 6px;
}

.start-value-card-text {
    flex: 1;
    min-width: 0;
}

.start-value-card h4 {
    font-family: 'Domine', Georgia, serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
}

.start-value-card p {
    font-size: 0.8rem;
    color: var(--start-text-muted);
    margin: 0;
    line-height: 1.45;
}

/* Form steps (create flow) */
.start-form-step {
    justify-content: flex-start;
    padding-top: 7rem;
    text-align: center;
}

.start-form-headline {
    margin-bottom: 0.75rem;
}

.start-form-helper {
    font-size: 0.875rem;
    color: var(--start-text-muted);
    margin: 0 0 1.25rem;
    max-width: 28rem;
}

.start-form-field {
    width: 100%;
    max-width: 28rem;
}

.start-form-input,
.start-form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    box-sizing: border-box;
}

.start-form-input:focus,
.start-form-textarea:focus {
    outline: none;
    border-color: var(--start-gold-light);
    box-shadow: 0 0 0 3px rgba(232, 185, 35, 0.15);
}

.start-form-textarea {
    resize: vertical;
    min-height: 120px;
}

.start-choice-cards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.start-presence-cards {
    flex-direction: row;
    gap: 0.75rem;
}

.start-presence-cards .start-choice-card {
    flex: 1;
}

.start-choice-card {
    background: #fff;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--start-text);
}

.start-choice-card:hover,
.start-choice-card:focus {
    border-color: var(--start-gold-light);
    outline: none;
}

.start-choice-card.selected {
    border-color: var(--start-gold);
    background: #fffdf5;
}

.start-map-type-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 1rem 1.1rem;
}

.start-choice-card-title {
    font-family: 'Domine', Georgia, serif;
    font-size: 0.95rem;
    font-weight: 600;
}

.start-choice-card-desc {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--start-text-muted);
    line-height: 1.4;
}

.start-presence-url-wrap,
.start-map-type-other-wrap {
    margin-top: 1rem;
}

.start-step-thanks .start-thanks-body {
    font-size: 0.95rem;
    color: var(--start-text-muted);
    line-height: 1.55;
    max-width: 28rem;
    margin: 0.75rem 0 1.5rem;
}

.start-thanks-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 20rem;
}

@media (min-width: 480px) {
    .start-thanks-actions {
        flex-direction: row;
        max-width: none;
        justify-content: center;
    }

    .start-thanks-actions .start-cta-btn {
        margin-top: 0;
    }
}

.start-cta-btn-outline {
    background: #fff;
    border: 1px solid #e5e7eb;
}

.start-cta-btn-outline:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* Footer: nav + progress bar */
.start-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    pointer-events: none;
}

.start-footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 19rem;
    margin: 0 auto;
    padding: 0 1.5rem 1rem;
    pointer-events: auto;
}

.start-footer-nav-single {
    justify-content: center;
}

.start-nav-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, opacity 0.15s;
    min-width: 100px;
}

.start-nav-btn-back {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: var(--start-text);
}

.start-nav-btn-back:hover:not(:disabled) {
    border-color: #d1d5db;
    background: #f9fafb;
}

.start-nav-btn-next {
    background: var(--start-gold);
    border: 1px solid var(--start-gold);
    color: var(--start-text);
}

.start-nav-btn-next:hover:not(:disabled) {
    background: var(--start-gold-light);
    border-color: var(--start-gold-light);
}

.start-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.start-progress-track {
    height: 4px;
    background: rgba(0, 0, 0, 0.06);
    width: 100%;
}

.start-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--start-gold) 0%, var(--start-gold-light) 100%);
    transition: width 0.4s ease;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .start-step-hero,
    .start-step-centered {
        padding: 4.5rem 1.25rem 1.5rem;
    }

    #step-select {
        padding-top: 4.5rem;
    }

    #step-select .start-community-list {
        height: auto;
        min-height: 0;
        max-height: min(50vh, 360px);
    }

    .start-hero-panel {
        gap: 1.35rem;
    }

    .start-hero-illustration {
        max-width: 20rem;
    }

    .start-typewriter {
        max-width: 22rem;
    }

    .start-headline,
    .start-check-item {
        font-size: 1.125rem;
    }

    .start-headline-gap {
        margin-top: 1.35rem;
    }

}

@media (max-width: 480px) {
    .start-footer-nav {
        padding: 0 1rem 1rem;
    }

    .start-nav-btn {
        flex: 1;
        min-width: 0;
    }

}

/* Path choice step: reclaim footer space when footer is hidden */
.start-page:has(#step-path.active) {
    padding-bottom: 0;
}

#step-path {
    min-height: 100vh;
    min-height: 100dvh;
    justify-content: center;
}

@media (min-width: 768px) {
    #step-path {
        max-width: 50rem;
        padding-top: 5rem;
        padding-bottom: 2rem;
    }

    #step-path .start-headline {
        font-size: 1.7rem;
        line-height: 1.35;
    }

    #step-path .start-path-cards {
        margin-top: 1.75rem;
        gap: 1.1rem;
    }

    #step-path .start-path-card {
        padding: 2.1rem 1.6rem;
    }

    #step-path .start-path-card-image {
        height: 176px;
    }

    #step-path .start-path-card h3 {
        font-size: 1.15rem;
    }

    #step-path .start-path-card p {
        font-size: 0.94rem;
    }
}

@media (max-width: 767px) {
    #step-path {
        padding: 3.25rem 1.25rem 1rem;
    }

    #step-path .start-headline {
        font-size: 1.0625rem;
        line-height: 1.35;
        max-width: 20rem;
    }

    #step-path .start-path-cards {
        margin-top: 0.75rem;
        gap: 0.625rem;
    }

    #step-path .start-path-card {
        padding: 1rem 0.875rem;
    }

    #step-path .start-path-card-image {
        height: 100px;
        margin-bottom: 0.6rem;
    }

    #step-path .start-path-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }

    #step-path .start-path-card p {
        font-size: 0.75rem;
        line-height: 1.35;
    }
}
