/* Anhad Naad landing page.
   Palette values are placeholders - replace with exact values from the app's Palette.swift / Assets.xcassets. */
.anhad {
    --an-ivory: #fbf6ea;
    --an-ivory-alt: #f3ead6;
    --an-burgundy: #6b1d2a;
    --an-saffron: #e8890c;
    --an-gold: #c9a24b;
    --an-ink: #2a1a1d;
    --an-gurmukhi: 'Noto Serif Gurmukhi', 'Mukta Mahee', serif;
    background: var(--an-ivory);
    color: var(--an-ink);
}

.anhad .gurmukhi {
    font-family: var(--an-gurmukhi);
}

/* Hero: text on the left, device image bleeding in from the right */
.an-hero {
    position: relative;
    overflow: hidden;
    /* image is 3:2 at 60% of the viewport width, plus room for the fixed header */
    min-height: max(700px, calc(40vw + 90px));
    display: flex;
    align-items: center;
    padding: 100px 0 40px;
    background: #1b0d10;
    color: #fff;
    border-bottom: 4px solid var(--an-gold);
}

.an-hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 30%);
    mask-image: linear-gradient(to right, transparent 0%, #000 30%);
}

.an-hero .container {
    position: relative;
    width: 100%;
}

.an-hero-text {
    max-width: 440px;
}

.an-logo-slot {
    width: 200px;
    margin: 0 0 0.25rem -12px;
}

.an-logo {
    display: block;
    width: 100%;
    height: auto;
}

.an-tagline {
    font-size: 1.4rem;
    color: var(--an-gold);
    margin-bottom: 1rem;
}

.an-subhead {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 2rem;
}

.an-platforms {
    margin-top: 1.25rem;
    font-size: 0.95rem;
    color: #f0e6d2;
}

.an-platforms span+span::before {
    content: "·";
    margin: 0 0.5rem;
}

.appstore-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #000;
    color: #fff;
    border: 1px solid #a6a6a6;
    border-radius: 10px;
    padding: 0.55rem 1.2rem;
    text-decoration: none;
    line-height: 1.15;
}

.appstore-badge i {
    font-size: 1.9rem;
}

.appstore-badge small {
    display: block;
    font-size: 0.7rem;
}

.appstore-badge strong {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Feature sections */
.an-feature {
    padding: 5rem 0;
}

.an-feature:nth-of-type(even) {
    background: var(--an-ivory-alt);
}

.an-feature .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.an-feature:nth-of-type(even) .an-text {
    order: 2;
}

.an-feature h2 {
    text-align: left;
    margin-bottom: 1rem;
    color: var(--an-burgundy);
}

.an-feature p,
.an-feature li {
    line-height: 1.7;
}

.an-feature ul {
    margin: 1rem 0 0 1.25rem;
}

.an-feature li::marker {
    color: var(--an-saffron);
}

.an-eyebrow {
    display: block;
    color: var(--an-saffron);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

/* Screenshots (swap the placeholder div for <img class="an-shot">) */
.an-shot,
.an-shot-placeholder {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    display: block;
    border-radius: 24px;
}

.an-shot-placeholder {
    aspect-ratio: 9 / 19;
    border: 2px dashed var(--an-gold);
    background: rgba(201, 162, 75, 0.1);
    color: var(--an-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

.an-shot-placeholder.wide {
    aspect-ratio: 16 / 10;
    max-width: 100%;
}

/* Device collage images (3:2) */
.an-collage {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(42, 26, 29, 0.3);
}

/* Portrait (2:3) variant for single-phone shots */
.an-portrait {
    max-width: 380px;
    margin: 0 auto;
}

.an-closing p {
    color: #f0e6d2;
}

.an-closing {
    padding: 4rem 0;
    text-align: center;
    background: var(--an-burgundy);
    color: #fff;
    border-top: 4px solid var(--an-gold);
}

@media (max-width: 800px) {

    .an-hero .container,
    .an-feature .container {
        grid-template-columns: 1fr;
    }

    .an-feature:nth-of-type(even) .an-text {
        order: 0;
    }

    .an-hero {
        display: block;
        min-height: 0;
        padding: 0 0 2.5rem;
    }

    .an-hero-image {
        position: relative;
        top: auto;
        display: block;
        width: 100%;
        height: auto;
        object-fit: fill;
        aspect-ratio: 3 / 2;
        margin-top: 70px;
        -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
    }

    .an-hero-text {
        max-width: none;
        text-align: center;
        margin-top: -1rem;
    }

    .an-logo-slot {
        margin: 0 auto 0.25rem;
        width: 160px;
    }
}

/* Privacy policy page */
.an-policy {
    padding: 130px 0 70px;
}

.an-policy .container {
    max-width: 780px;
}

.an-policy h1 {
    color: var(--an-burgundy);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.an-policy .an-effective {
    color: var(--an-saffron);
    font-weight: 600;
    margin-bottom: 2rem;
}

.an-policy h2 {
    color: var(--an-burgundy);
    font-size: 1.35rem;
    margin: 2rem 0 0.75rem;
}

.an-policy p,
.an-policy li {
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.an-policy ul {
    padding-left: 1.4rem;
    list-style: disc;
}

.an-policy a {
    color: var(--an-burgundy);
    text-decoration: underline;
}

.an-privacy-link {
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.an-privacy-link a {
    color: var(--an-gold);
    text-decoration: underline;
}
