/* AI Collage Maker landing page. Builds on home.css (hero grid, feature cards,
   try-teaser, FAQ, scroll reveal) and the shared apps.css tokens; everything
   here is page-specific and prefixed `ac-`. */

/* ---- breadcrumb ---- */
.ac-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    font-size: 13px;
    color: var(--ink-muted);
}

.ac-breadcrumb li + li::before {
    content: "/";
    margin-right: 8px;
    color: var(--line);
}

.ac-breadcrumb a {
    color: var(--ink-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ac-breadcrumb a:hover {
    color: var(--ink);
}

/* ---- hero media: real Collage Maker screenshot on fanned photo-cards ---- */
.ac-hero-media {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 12px 0;
}

.ac-hero-media::before {
    content: "";
    position: absolute;
    inset: 6% 0;
    background:
        radial-gradient(45% 40% at 30% 30%, rgba(139, 127, 176, 0.18), transparent 70%),
        radial-gradient(45% 40% at 72% 72%, rgba(242, 84, 45, 0.14), transparent 70%);
    pointer-events: none;
}

.ac-hero-media .photo-card {
    position: absolute;
    width: 130px;
    height: 166px;
}

.ac-f1 {
    left: calc(50% - 230px);
    top: 14%;
    transform: rotate(-9deg);
}

.ac-f2 {
    left: calc(50% + 110px);
    bottom: 12%;
    transform: rotate(8deg);
}

.ac-phone {
    width: 300px;
    margin: 0;
    z-index: 1;
}

.ac-sticker {
    position: absolute;
    left: calc(50% - 190px);
    bottom: 8%;
    z-index: 2;
}

/* ---- how it works ---- */
.ac-how {
    padding: 100px 0;
}

.ac-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.ac-step h3 {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.ac-step p {
    color: var(--ink-muted);
    font-size: 14.5px;
}

/* ---- layout styles: illustrations built from photo-cards ---- */
.ac-styles {
    padding: 100px 0;
}

.ac-style-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.ac-style {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 18px 22px;
}

.ac-style h3 {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 700;
    margin: 18px 4px 6px;
}

.ac-style p {
    color: var(--ink-muted);
    font-size: 14px;
    margin: 0 4px;
}

.ac-art {
    position: relative;
    height: 190px;
    border-radius: 12px;
    background: var(--surface);
    overflow: hidden;
}

.ac-art .photo-card {
    position: absolute;
    border-radius: 6px;
    box-shadow: 0 10px 20px -10px rgba(24, 24, 23, 0.35);
}

/* scrapbook */
.ac-art--scrapbook {
    background: #F4EBDD;
}

.ac-art--scrapbook .photo-card:nth-child(1) { width: 38%; height: 58%; left: 10%; top: 12%; transform: rotate(-6deg); }
.ac-art--scrapbook .photo-card:nth-child(2) { width: 34%; height: 50%; left: 50%; top: 8%; transform: rotate(5deg); }
.ac-art--scrapbook .photo-card:nth-child(3) { width: 36%; height: 40%; left: 36%; top: 52%; transform: rotate(-2deg); }

.ac-tape {
    position: absolute;
    width: 54px;
    height: 16px;
    left: 56%;
    top: 4%;
    background: rgba(242, 177, 52, 0.75);
    transform: rotate(-12deg);
}

.ac-doodle {
    position: absolute;
    right: 9%;
    bottom: 10%;
    font-family: 'Caveat', cursive;
    font-size: 30px;
    color: var(--coral);
    transform: rotate(10deg);
}

/* polaroid */
.ac-polaroid {
    position: absolute;
    width: 30%;
    padding: 6px 6px 18px;
    background: #fff;
    box-shadow: 0 10px 20px -10px rgba(24, 24, 23, 0.4);
}

.ac-polaroid .photo-card {
    position: static;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 0;
    box-shadow: none;
}

.ac-polaroid:nth-child(1) { left: 8%; top: 16%; transform: rotate(-8deg); }
.ac-polaroid:nth-child(2) { left: 36%; top: 8%; transform: rotate(3deg); z-index: 1; }
.ac-polaroid:nth-child(3) { left: 63%; top: 20%; transform: rotate(9deg); }

/* film strip */
.ac-art--film {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ac-film {
    display: flex;
    gap: 8px;
    padding: 14px 10px;
    background: #1A1A19;
    border-radius: 4px;
    transform: rotate(-4deg);
    background-image:
        radial-gradient(circle, #F1EEE7 2px, transparent 2.5px),
        radial-gradient(circle, #F1EEE7 2px, transparent 2.5px);
    background-size: 12px 12px, 12px 12px;
    background-position: 0 3px, 0 calc(100% - 3px);
    background-repeat: repeat-x;
}

.ac-film .photo-card {
    position: static;
    width: 66px;
    height: 84px;
    border-radius: 2px;
    box-shadow: none;
}

/* editorial hero */
.ac-art--editorial {
    background: #EFEAF4;
}

.ac-art--editorial .ac-hero-shot { width: 50%; height: 80%; left: 8%; top: 10%; }
.ac-art--editorial .photo-card:nth-child(2) { width: 28%; height: 36%; left: 63%; top: 10%; }
.ac-art--editorial .photo-card:nth-child(3) { width: 28%; height: 36%; left: 63%; top: 52%; }

.ac-type {
    position: absolute;
    left: 12%;
    bottom: 14%;
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 22px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* photo dump */
.ac-art--dump .photo-card:nth-child(1) { width: 34%; height: 48%; left: 6%; top: 8%; transform: rotate(-10deg); }
.ac-art--dump .photo-card:nth-child(2) { width: 30%; height: 44%; left: 34%; top: 24%; transform: rotate(6deg); z-index: 1; }
.ac-art--dump .photo-card:nth-child(3) { width: 32%; height: 46%; left: 60%; top: 6%; transform: rotate(12deg); }
.ac-art--dump .photo-card:nth-child(4) { width: 28%; height: 38%; left: 58%; top: 54%; transform: rotate(-7deg); }

.ac-star {
    position: absolute;
    left: 12%;
    bottom: 10%;
    font-size: 26px;
    color: var(--sunflower);
}

/* clean grid */
.ac-art--minimal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 16px 28%;
    background: #FAFAF7;
}

.ac-art--minimal .photo-card {
    position: static;
    width: auto;
    height: auto;
    border-radius: 4px;
    box-shadow: none;
}

/* ---- formats ---- */
.ac-formats {
    padding: 100px 0;
}

.ac-formats .wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.ac-formats h2 {
    font-size: clamp(28px, 3.6vw, 40px);
    margin-bottom: 16px;
}

.ac-formats p {
    color: var(--ink-muted);
    font-size: 16px;
    margin-bottom: 14px;
}

.ac-formats p b {
    color: var(--ink);
}

.ac-frames {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 28px;
}

.ac-frame {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
    display: grid;
    gap: 8px;
    box-shadow: 0 20px 40px -24px rgba(24, 24, 23, 0.3);
}

.ac-frame .photo-card {
    border-radius: 6px;
    box-shadow: none;
}

.ac-frame--story {
    width: 150px;
    aspect-ratio: 9 / 16;
    grid-template-rows: 1.4fr 1fr 1fr;
}

.ac-frame--square {
    width: 170px;
    aspect-ratio: 1;
    grid-template-columns: 1fr 1fr;
}

.ac-frame-label {
    position: absolute;
    left: 50%;
    bottom: -32px;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

/* ---- faithful to your photos ---- */
.ac-faithful {
    padding: 100px 0;
}

.ac-note {
    margin-top: 22px;
    font-size: 13.5px;
    color: var(--ink-muted);
}

/* ---- privacy (reuses the homepage's .collage layout) ---- */
.ac-privacy ul li {
    padding-right: 4px;
}

.ac-privacy-more {
    margin-top: 18px;
    font-size: 14.5px;
}

.ac-privacy a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---- try teaser spacing (home.css gives it bottom padding only) ---- */
.ac-try {
    padding-top: 100px;
}

/* ---- plans ---- */
.ac-plans {
    padding: 0 0 100px;
}

.ac-plans-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 36px 40px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
}

.ac-plans-card h2 {
    font-size: clamp(22px, 2.6vw, 28px);
    margin-bottom: 8px;
}

.ac-plans-card p {
    color: var(--ink-muted);
    font-size: 15px;
    max-width: 560px;
}

.ac-plans-card .btn {
    flex-shrink: 0;
}

/* ---- closing ---- */
.ac-closing {
    padding: 100px 0;
    text-align: center;
}

.ac-closing h2 {
    font-size: clamp(28px, 3.6vw, 40px);
    margin-bottom: 14px;
}

.ac-closing p {
    color: var(--ink-muted);
    font-size: 16px;
    max-width: 560px;
    margin: 0 auto 28px;
}

.ac-closing p a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---- responsive ---- */
@media (max-width: 960px) {
    .ac-steps {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 860px) {
    .ac-how,
    .ac-styles,
    .ac-formats,
    .ac-faithful,
    .ac-closing {
        padding: 70px 0;
    }

    .ac-try {
        padding-top: 70px;
    }

    .ac-plans {
        padding-bottom: 70px;
    }

    .ac-formats .wrap {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ac-frames {
        padding-bottom: 32px;
    }

    .ac-plans-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 22px;
    }

    .ac-hero-media .photo-card {
        width: 104px;
        height: 132px;
    }

    .ac-f1 {
        left: calc(50% - 170px);
    }

    .ac-f2 {
        left: calc(50% + 72px);
    }

    .ac-phone {
        width: 260px;
    }

    .ac-sticker {
        left: calc(50% - 150px);
    }
}

@media (max-width: 600px) {
    .ac-steps,
    .ac-style-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ac-phone {
        width: 230px;
    }

    .ac-frame--story {
        width: 120px;
    }

    .ac-frame--square {
        width: 140px;
    }

    .ac-frames {
        gap: 20px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .ac-steps .ac-step.reveal:nth-child(2) { transition-delay: .08s; }
    .ac-steps .ac-step.reveal:nth-child(3) { transition-delay: .16s; }
    .ac-steps .ac-step.reveal:nth-child(4) { transition-delay: .24s; }
    .ac-style-grid .ac-style.reveal:nth-child(3n + 2) { transition-delay: .08s; }
    .ac-style-grid .ac-style.reveal:nth-child(3n + 3) { transition-delay: .16s; }
}
