/* Ember Cave: the cave's ink, lit by its fire. Colors come from the game's own palette. */
:root {
    --ink: #0f0f13;
    --rock: #1d2028;
    --fire: #ff9938;
    --fire-deep: #f25c1f;
    --ember: #ffb857;
    --fire-core: #ffeba8;
    --parchment: #f2e6d1;
}

main h2 {
    font-size: 2rem;
    text-align: center;
    color: var(--ink);
    margin-bottom: 2.5rem;
    letter-spacing: -0.5px;
}

.landing-hero {
    background: var(--ink);
    color: var(--parchment);
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
}

/* Warm light rising from below, as above a brazier. */
.landing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 110%, rgba(242, 92, 31, 0.32) 0%, transparent 55%), radial-gradient(circle at 20% 0%, rgba(255, 184, 87, 0.08) 0%, transparent 40%);
}

.hero-content {
    grid-template-columns: 0.9fr 1.1fr;
}

.app-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.app-icon {
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(242, 92, 31, 0.25);
}

.app-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.hero-title {
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin-bottom: 1.25rem;
}

.hero-title span {
    color: var(--fire);
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(242, 230, 209, 0.82);
    max-width: 34rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.cta-note {
    font-size: 0.95rem;
    color: var(--ember);
}

/* A landscape phone screen. The game only plays sideways. */
.screen {
    background: #000;
    border: 6px solid #000;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 184, 87, 0.3);
}

.screen img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 22px;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.problem-band {
    background: var(--parchment);
    border-bottom: none;
}

.problem-band p {
    color: #4a4238;
}

.problem-band p.answer {
    color: var(--ink);
}

.how-it-works {
    padding: 5rem 0;
}

.instruction-number {
    background: var(--ink);
    color: var(--fire);
}

.instruction h3 {
    color: var(--ink);
}

.instruction p {
    color: var(--text-muted);
}

.how-note {
    text-align: center;
    margin-top: 2rem;
    font-weight: 600;
    color: var(--fire-deep);
}

.regions-section {
    padding: 5rem 0;
    background: var(--ink);
}

.regions-section h2 {
    color: var(--parchment);
}

.regions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.region .screen {
    border-width: 4px;
    border-radius: 18px;
}

.region .screen img {
    border-radius: 14px;
}

.region figcaption {
    padding: 1.25rem 0.25rem 0;
}

.region h3 {
    font-size: 1.2rem;
    color: var(--ember);
    margin-bottom: 0.4rem;
}

.region p {
    color: rgba(242, 230, 209, 0.75);
    line-height: 1.6;
}

.features-section {
    padding: 5rem 0;
    background: #f7f3ea;
}

.features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    border-radius: 16px;
    border: 1px solid #ebe2d0;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.65;
}

.plans-section {
    padding: 5rem 0 4rem;
}

.plans-section h2 {
    margin-bottom: 0.75rem;
}

.plans-intro {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 820px;
    margin: 0 auto;
}

.plan-card {
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #ebe2d0;
    background: white;
}

.plan-card h3 {
    font-size: 1.3rem;
    color: var(--ink);
    margin-bottom: 1.25rem;
}

.plan-full {
    background: var(--ink);
    border-color: transparent;
    color: var(--parchment);
}

.plan-full h3 {
    color: var(--fire);
}

.check-list {
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

.check-list li::before {
    content: '';
    position: absolute;
    left: 0.15rem;
    top: 0.3rem;
    width: 0.4rem;
    height: 0.75rem;
    border: solid var(--fire-deep);
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.plan-full .check-list li::before {
    border-color: var(--fire);
}

.privacy-strip {
    background: linear-gradient(180deg, var(--ink), var(--rock));
}

.privacy-strip h2 {
    color: var(--parchment);
}

.privacy-strip a {
    color: var(--ember);
}

.requirements-section {
    background: #f7f3ea;
}

.app-footer-section {
    padding: 2rem 0 0;
}

.footer-links {
    gap: 0.75rem;
}

.footer-links a {
    color: var(--fire-deep);
}

.separator {
    color: #d6ccb8;
}

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .app-identity {
        justify-content: center;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-buttons {
        align-items: center;
    }

    .hero-visual {
        margin-top: 1rem;
    }

    .features-grid,
    .regions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    main h2 {
        font-size: 1.6rem;
    }

    .landing-hero {
        padding: 2.5rem 0 3.5rem;
    }

    .hero-title {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 1.05rem;
    }

    .screen {
        border-width: 4px;
        border-radius: 18px;
    }

    .screen img {
        border-radius: 14px;
    }

    .how-it-works,
    .regions-section,
    .features-section,
    .plans-section {
        padding: 3.5rem 0;
    }

    .features-grid,
    .regions-grid,
    .plans-grid {
        grid-template-columns: 1fr;
    }
}
