/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--landing-surface) 0%, var(--landing-lime-pale) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 80vh;
    position: relative;
    z-index: 2;
}

.hero-title {
    max-width: 700px;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Heroes without an illustration (pricing, contact, legal) only frame a heading. */
.hero:not(:has(.hero-image)) {
    padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
}

.hero:not(:has(.hero-image)) .hero-content {
    min-height: 0;
    padding-block: 0;
}

.hero:not(:has(.hero-image)) .hero-title {
    font-size: clamp(2rem, 1.5rem + 1.5vw, 2.5rem);
    margin-bottom: 0.75rem;
}

.hero:not(:has(.hero-image)) .hero-subtitle {
    margin-bottom: 1.5rem;
}

.hero:not(:has(.hero-image)) .hero-content > :last-child {
    margin-bottom: 0;
}

/* The plain section after it shares the page background, so the hero's bottom padding already separates them. */
.hero:not(:has(.hero-image)) + :is(.content-section, .videos) {
    padding-top: clamp(2rem, 4vw, 3rem);
}

.hero-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 600px;
    z-index: 1;
}

.hero-image svg {
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* Abstract Shapes */
.shape {
    position: absolute;
    z-index: 0;
    max-width: 100px;
    max-height: 100px;
}

.shape svg {
    width: 100%;
    height: auto;
    max-width: 100%;
}

.shape-1 {
    top: 10%;
    left: 5%;
}

.shape-2 {
    bottom: 10%;
    right: 5%;
}

.shape-3 {
    top: 40%;
    left: 40%;
}

/* Features Section */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    grid-auto-rows: auto;
    gap: 2rem;
}

.features {
    background-color: var(--landing-lavender);
    position: relative;
}

.feature-card {
    background-color: var(--landing-card);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--landing-shadow-card);
    transition: transform 300ms var(--hostpass-ease-out), box-shadow 300ms ease;
}

/* Cards deepen their shadow on hover; only full-motion fine pointers also lift. */
@media (hover: hover) and (pointer: fine) {
    .feature-card:hover {
        box-shadow: var(--landing-shadow-raised);
    }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .feature-card:hover {
        transform: translateY(-10px);
    }
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-description {
    font-size: 1rem;
    color: var(--landing-text-muted);
}

/* Walkthrough Section */
.walkthrough {
    background-color: var(--landing-surface);
}

.walkthrough--lavender {
    background-color: var(--landing-lavender);
}

.walkthrough--lime {
    background-color: var(--landing-lime-pale);
}

/* Sample check-in URLs: the reservation token and the guest number stay distinct. */
.url-sample {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background-color: var(--landing-lavender);
    color: var(--landing-text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    overflow-wrap: anywhere;
}

.url-sample--spaced {
    margin-bottom: 1rem;
}

.url-token,
.url-guest {
    color: var(--landing-text-accent);
    font-weight: 700;
}

.url-guest {
    padding: 0 0.25em;
    border-radius: 4px;
    background-color: var(--landing-card);
}

.section-note {
    font-size: 0.875rem;
    color: var(--landing-text-muted);
}

/* Export section */
.export-summary {
    text-align: center;
}

.export-icon {
    display: block;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.export-text {
    max-width: 700px;
    margin: 1rem auto 0;
}

.step {
    display: flex;
    align-items: center;
    margin-bottom: 6rem;
}

.step:last-child {
    margin-bottom: 0;
}

.step-content {
    flex: 1;
    padding-right: 3rem;
}

.step-image {
    flex: 1;
    text-align: center;
}

.step-image svg {
    max-width: 100%;
    height: auto;
    width: 100%;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--hostpass-action);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

/* Developer Tools Section */
.dev-tools {
    background-color: var(--landing-lime-pale);
    position: relative;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
}

.tool-card {
    background-color: var(--landing-card);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(10, 10, 10, 0.05);
}

.tool-card svg {
    width: 100%;
    height: 150px;
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.tool-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tool-description {
    font-size: 1rem;
    color: var(--landing-text-muted);
}

/* Team Workflow Section */
.team-workflow {
    background-color: var(--landing-lavender);
}

.workflow-diagram {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.workflow-step {
    flex: 1;
    text-align: center;
    padding: 0 1rem;
}

.workflow-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.workflow-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial {
    background-color: var(--landing-card);
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    box-shadow: var(--landing-shadow-card);
}

.testimonial-text {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 600;
}

/* CTA Section */
.cta {
    background-color: var(--landing-ink);
    color: var(--landing-text-on-dark);
    position: relative;
    overflow: hidden;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-shapes {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 0;
    max-width: 100%;
    height: auto;
    opacity: 0.2;
}

.cta-title {
    color: var(--landing-text-on-dark);
    margin-bottom: 1.5rem;
}

.cta-subtitle {
    color: var(--landing-text-on-dark-muted);
    margin: 0 auto 2.5rem;
}

/* Footer */
.footer {
    background-color: var(--landing-ink);
    color: var(--landing-text-on-dark);
    padding: 5rem 0 2rem;
}

.footer-content {
    display: grid;
    /* rem minimum: large text drops to fewer columns instead of overflowing. */
    grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    display: block;
}

.footer-links-title {
    font-size: 1.25rem;
    letter-spacing: 0;
    margin-bottom: 1.5rem;
    color: var(--landing-text-on-dark);
}

.footer-links {
    list-style: none;
}

.footer-link {
    margin-bottom: 0.75rem;
}

.footer-link a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .footer-link a:hover {
        color: var(--landing-text-on-dark);
    }
}

/* Touch: 44px rows from padding, not larger text; the row height replaces the gap. */
@media (pointer: coarse) {
    .footer-link {
        margin-bottom: 0;
    }

    .footer-link a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}
