/* =============================================================================
   Catalogue (EN) — en/catalogue.php
   Cream walkthrough theme; builds on en/css/walkthrough.css (.wt-btn, fonts) and
   en/css/account.css (.iw-main, .iw-bg, .iw-container).
   The live preview is an iframe that only loads when the visitor asks for it; until then
   the phone shows a static poster of the design.
   ============================================================================= */

:root {
    --ct-gold: #c79544;
    --ct-gold-dark: #a67a36;
    --ct-ink: #292524;
    --ct-text: #57534e;
    --ct-muted: #78716c;
    --ct-line: rgba(199, 149, 68, 0.22);
}

.ct-main { padding-bottom: 6rem; }
@media (min-width: 900px) { .ct-main { padding-bottom: 5rem; } }

/* ---------- Hero ---------- */
.ct-hero { text-align: center; max-width: 46rem; margin: 0 auto 2.5rem; }
.ct-hero__script { display: block; font-size: 2.6rem; line-height: 1.1; color: var(--ct-gold); }
.ct-hero__title { margin: 0.35rem 0 0; font-size: 1.85rem; font-weight: 700; line-height: 1.2; color: var(--ct-ink); }
.ct-hero__sub { margin: 0.9rem auto 0; max-width: 38rem; font-size: 0.95rem; line-height: 1.7; color: var(--ct-text); }
@media (min-width: 640px) {
    .ct-hero__script { font-size: 3.25rem; }
    .ct-hero__title { font-size: 2.75rem; }
    .ct-hero__sub { font-size: 1.05rem; }
}

.ct-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1.4rem; padding: 0; list-style: none; }
.ct-chips li {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.4rem 0.8rem; border-radius: 999px;
    background: rgba(255, 255, 255, 0.6); border: 1px solid var(--ct-line);
    font-size: 0.75rem; font-weight: 600; color: #44403c;
}
.ct-chips svg { width: 0.9rem; height: 0.9rem; color: var(--ct-gold); }

/* ---------- Design showcase ---------- */
.ct-design {
    display: grid;
    gap: 2rem;
    padding: 1.5rem 1.1rem 1.75rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--ct-line);
    box-shadow: 0 40px 70px -50px rgba(120, 90, 40, 0.55);
}
@media (min-width: 900px) {
    .ct-design { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3rem; padding: 2.5rem; align-items: start; }
}

/* Stage (phone + preview controls) */
.ct-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.75rem 0.5rem 1.25rem;
    border-radius: 1.5rem;
    background:
        radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 70%),
        linear-gradient(180deg, #f4ece0 0%, #efe4d3 100%);
    overflow: hidden;
}
.ct-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--ct-stage-image);
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    pointer-events: none;
}

.ct-phone {
    position: relative;
    width: min(64vw, 16.5rem);
    aspect-ratio: 1122 / 2262;
    filter: drop-shadow(0 30px 35px rgba(80, 55, 20, 0.28));
}
@media (min-width: 900px) { .ct-phone { width: 19rem; } }

.ct-phone__frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 4; pointer-events: none; user-select: none; }

.ct-screen {
    position: absolute;
    width: 92%;
    height: 95%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10% / 5%;
    overflow: hidden;
    background: #efe7da;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    z-index: 2;
}
.ct-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: filter 0.4s ease, transform 0.6s ease; }

/* Tap target over the poster (the whole screen opens the preview) */
.ct-screen__cta {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    padding: 0 0.75rem 38%;
    border: 0;
    background: linear-gradient(180deg, rgba(41, 37, 36, 0) 45%, rgba(41, 37, 36, 0.38) 100%);
    color: #fff;
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.ct-play {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #8a6224;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease;
}
.ct-play svg { width: 1rem; height: 1rem; }
.ct-play__pulse { position: relative; display: inline-flex; width: 1.4rem; height: 1.4rem; align-items: center; justify-content: center; border-radius: 999px; background: var(--ct-gold); color: #fff; }
.ct-play__pulse::after { content: ''; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid rgba(199, 149, 68, 0.55); animation: ctPulse 1.8s ease-out infinite; }
.ct-screen__hint { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45); }
.ct-screen__cta:hover .ct-play, .ct-screen__cta:focus-visible .ct-play { transform: scale(1.05); }
.ct-screen__cta:focus-visible { outline: 3px solid var(--ct-gold); outline-offset: -3px; }
@keyframes ctPulse { 0% { transform: scale(0.85); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ct-play__pulse::after { animation: none; } }

/* Live preview */
.ct-frame { position: absolute; top: 0; left: 0; border: 0; transform-origin: top left; background: #faf7f2; z-index: 1; }
.ct-loader {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: rgba(250, 247, 242, 0.82);
    transition: opacity 0.45s ease;
}
.ct-loader[hidden] { display: none; }
.ct-loader.is-done { opacity: 0; pointer-events: none; }
.ct-spinner { width: 2.25rem; height: 2.25rem; border-radius: 999px; border: 3px solid rgba(199, 149, 68, 0.2); border-top-color: var(--ct-gold); animation: ctSpin 0.8s linear infinite; }
.ct-loader__label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #8a6224; }
.ct-progress { width: 55%; height: 4px; border-radius: 999px; background: rgba(199, 149, 68, 0.18); overflow: hidden; }
.ct-progress span { display: block; height: 100%; width: 0; background: var(--ct-gold); transition: width 0.25s ease; }
.ct-loader__slow { max-width: 80%; font-size: 0.7rem; line-height: 1.5; text-align: center; color: var(--ct-text); }
.ct-loader__slow a { color: var(--ct-gold-dark); font-weight: 700; }
@keyframes ctSpin { to { transform: rotate(360deg); } }

.ct-stage.is-previewing .ct-poster { filter: blur(2px) brightness(1.05); }
.ct-stage.is-live .ct-poster, .ct-stage.is-live .ct-screen__cta, .ct-stage.is-previewing .ct-screen__cta { display: none; }

.ct-stage__bar { position: relative; z-index: 5; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1.25rem; }
.ct-stage__note { position: relative; z-index: 5; margin: 0.75rem 0 0; font-size: 0.72rem; color: var(--ct-muted); text-align: center; }

/* Details */
.ct-details { min-width: 0; }
.ct-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.9rem; }
.ct-badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.75rem; border-radius: 999px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.ct-badge--gold { background: var(--ct-gold); color: #fff; }
.ct-badge--soft { background: rgba(199, 149, 68, 0.12); color: #8a6224; border: 1px solid var(--ct-line); }
.ct-badge svg { width: 0.8rem; height: 0.8rem; }

.ct-name { margin: 0; font-size: 2.1rem; font-weight: 700; line-height: 1.15; color: var(--ct-ink); }
.ct-tagline { margin: 0.2rem 0 0; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 1.2rem; color: var(--ct-gold-dark); }
.ct-desc { margin: 0.9rem 0 0; font-size: 0.93rem; line-height: 1.75; color: var(--ct-text); }
@media (min-width: 640px) { .ct-name { font-size: 2.6rem; } }

.ct-features { display: grid; grid-template-columns: 1fr; gap: 0.6rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
@media (min-width: 480px) { .ct-features { grid-template-columns: 1fr 1fr; } }
.ct-features li { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.65rem 0.75rem; border-radius: 0.9rem; background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(199, 149, 68, 0.14); font-size: 0.82rem; line-height: 1.45; color: #44403c; }
.ct-features svg { flex-shrink: 0; width: 1.15rem; height: 1.15rem; margin-top: 0.05rem; color: var(--ct-gold); }

.ct-label { display: block; margin: 1.75rem 0 0.75rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ct-muted); }

/* Plans */
.ct-plans { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.ct-plan {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(214, 211, 209, 0.9);
}
.ct-plan--best { border: 2px solid var(--ct-gold); background: #fffaf2; box-shadow: 0 14px 30px -22px rgba(166, 122, 54, 0.8); }
.ct-plan__flag { position: absolute; top: -0.6rem; right: 0.9rem; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--ct-gold); color: #fff; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.ct-plan__name { display: block; font-size: 0.9rem; font-weight: 700; color: var(--ct-ink); }
.ct-plan__meta { display: block; margin-top: 0.1rem; font-size: 0.75rem; color: var(--ct-muted); }
.ct-plan__price { text-align: right; white-space: nowrap; }
.ct-plan__now { display: block; font-size: 1.15rem; font-weight: 700; color: var(--ct-gold-dark); }
.ct-plan__was { font-size: 0.72rem; color: #a8a29e; text-decoration: line-through; }
.ct-plan__save { margin-left: 0.3rem; font-size: 0.66rem; font-weight: 700; color: #4d7c0f; }

.ct-cta { margin-top: 1.5rem; }
.ct-cta .wt-btn { text-decoration: none; }
.ct-cta__micro { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 0.9rem; margin: 0.75rem 0 0; padding: 0; list-style: none; font-size: 0.72rem; color: var(--ct-muted); }
.ct-cta__micro li { display: inline-flex; align-items: center; gap: 0.3rem; }
.ct-cta__micro svg { width: 0.8rem; height: 0.8rem; color: var(--ct-gold); }

/* ---------- Sections ---------- */
.ct-section { margin-top: 3.5rem; }
.ct-section__head { text-align: center; margin-bottom: 1.75rem; }
.ct-section__script { display: block; font-size: 2rem; line-height: 1.1; color: var(--ct-gold); }
.ct-section__title { margin: 0.2rem 0 0; font-size: 1.6rem; font-weight: 700; color: var(--ct-ink); }
@media (min-width: 640px) { .ct-section__title { font-size: 2rem; } }

.ct-steps { display: grid; gap: 0.9rem; margin: 0; padding: 0; list-style: none; counter-reset: ctstep; }
@media (min-width: 768px) { .ct-steps { grid-template-columns: repeat(3, 1fr); } }
.ct-step { position: relative; padding: 1.4rem 1.25rem; border-radius: 1.25rem; background: rgba(255, 255, 255, 0.6); border: 1px solid var(--ct-line); }
.ct-step::before { counter-increment: ctstep; content: counter(ctstep); display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; margin-bottom: 0.75rem; border-radius: 999px; background: var(--ct-gold); color: #fff; font-weight: 700; font-size: 0.9rem; }
.ct-step h3 { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: 1.1rem; color: var(--ct-ink); }
.ct-step p { margin: 0.4rem 0 0; font-size: 0.85rem; line-height: 1.65; color: var(--ct-text); }

.ct-benefits { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 560px) { .ct-benefits { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .ct-benefits { grid-template-columns: repeat(3, 1fr); } }
.ct-benefit { display: flex; gap: 0.85rem; padding: 1.1rem; border-radius: 1.1rem; background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(199, 149, 68, 0.15); }
.ct-benefit__icon { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 0.8rem; background: rgba(199, 149, 68, 0.12); color: var(--ct-gold-dark); }
.ct-benefit__icon svg { width: 1.25rem; height: 1.25rem; }
.ct-benefit h3 { margin: 0; font-size: 0.9rem; font-weight: 700; color: var(--ct-ink); }
.ct-benefit p { margin: 0.25rem 0 0; font-size: 0.8rem; line-height: 1.6; color: var(--ct-text); }

.ct-faq { max-width: 46rem; margin: 0 auto; display: grid; gap: 0.6rem; }
.ct-faq details { border-radius: 1rem; background: rgba(255, 255, 255, 0.62); border: 1px solid var(--ct-line); }
.ct-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.15rem; cursor: pointer; list-style: none; font-size: 0.92rem; font-weight: 600; color: var(--ct-ink); }
.ct-faq summary::-webkit-details-marker { display: none; }
.ct-faq summary::after { content: '+'; flex-shrink: 0; font-size: 1.3rem; font-weight: 400; line-height: 1; color: var(--ct-gold); transition: transform 0.2s ease; }
.ct-faq details[open] summary::after { transform: rotate(45deg); }
.ct-faq details p { margin: 0; padding: 0 1.15rem 1.1rem; font-size: 0.86rem; line-height: 1.7; color: var(--ct-text); }
.ct-faq a { color: var(--ct-gold-dark); font-weight: 600; }

.ct-soon { margin-top: 3rem; padding: 2rem 1.25rem; text-align: center; border-radius: 1.5rem; border: 1px dashed rgba(199, 149, 68, 0.45); background: rgba(255, 255, 255, 0.4); }
.ct-soon h3 { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: 1.25rem; color: var(--ct-ink); }
.ct-soon p { margin: 0.5rem auto 0; max-width: 32rem; font-size: 0.86rem; line-height: 1.65; color: var(--ct-text); }

.ct-final { margin-top: 3rem; padding: 2.25rem 1.25rem; text-align: center; border-radius: 1.75rem; background: linear-gradient(135deg, #2b2521 0%, #3a3029 100%); color: #f5f5f4; box-shadow: 0 30px 60px -40px rgba(41, 37, 36, 0.8); }
.ct-final h2 { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: 1.6rem; color: #fff; }
.ct-final p { margin: 0.6rem auto 1.4rem; max-width: 30rem; font-size: 0.9rem; line-height: 1.65; color: #d6d3d1; }
.ct-final .wt-btn { text-decoration: none; }

/* ---------- Sticky mobile CTA ---------- */
.ct-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
    background: rgba(250, 247, 242, 0.96);
    border-top: 1px solid var(--ct-line);
    box-shadow: 0 -12px 30px -20px rgba(80, 55, 20, 0.45);
    transform: translateY(110%);
    transition: transform 0.3s ease;
}
.ct-sticky.is-visible { transform: translateY(0); }
.ct-sticky__text { min-width: 0; flex: 1; line-height: 1.25; }
.ct-sticky__text strong { display: block; font-size: 0.85rem; color: var(--ct-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-sticky__text span { font-size: 0.72rem; color: var(--ct-muted); }
.ct-sticky .wt-btn { flex-shrink: 0; min-height: 2.75rem; text-decoration: none; }
@media (min-width: 900px) { .ct-sticky { display: none; } }

/* ---------- SEO / free-plan highlights ---------- */
.ct-crumbs { display: flex; justify-content: center; gap: 0.45rem; margin-bottom: 0.75rem; font-size: 0.75rem; color: #a8a29e; }
.ct-crumbs a { color: #78716c; text-decoration: none; }
.ct-crumbs a:hover { color: #a67a36; }
.ct-name__sub { display: block; margin-top: 0.15rem; font-family: 'Montserrat', system-ui, sans-serif; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #a8a29e; }
.ct-plan--free { border: 2px dashed rgba(199, 149, 68, 0.55); background: #fffdf8; }
.ct-plan--free .ct-plan__now { color: #4d7c0f; }
.ct-faq details.is-highlight { border: 2px solid #c79544; background: #fffaf1; }
.ct-faq__tag { display: inline-block; margin-right: 0.45rem; padding: 0.1rem 0.5rem; border-radius: 999px; background: #c79544; color: #fff; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; vertical-align: 0.15em; }
/* Desktop: the phone stays in view while the details column scrolls past (after the base .ct-stage rule) */
@media (min-width: 900px) { .ct-stage { position: sticky; top: 1.5rem; } }
