/* =============================================================================
   Homepage (EN) — en/index.php (served at the site root)
   Cream walkthrough theme; builds on en/css/walkthrough.css (.wt-btn, fonts) and
   en/css/account.css (.iw-main, .iw-bg, .iw-container).
   ============================================================================= */

.hm-main { padding-top: 2rem; padding-bottom: 6rem; }
@media (min-width: 640px) { .hm-main { padding-top: 3rem; } }
@media (min-width: 900px) { .hm-main { padding-bottom: 5rem; } }

.hm-gold { color: #c79544; }

/* ---------- Hero ---------- */
.hm-hero { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hm-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3rem; } }

.hm-hero__text { text-align: center; }
@media (min-width: 900px) { .hm-hero__text { text-align: left; } }

.hm-eyebrow {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.4rem 0.9rem; border-radius: 999px;
    background: rgba(199, 149, 68, 0.12); border: 1px solid rgba(199, 149, 68, 0.3);
    color: #8a6224; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.hm-eyebrow svg { width: 0.95rem; height: 0.95rem; }

.hm-h1 { margin: 1rem 0 0; font-family: 'Playfair Display', Georgia, serif; font-size: 2.2rem; font-weight: 700; line-height: 1.12; color: #292524; letter-spacing: -0.01em; }
.hm-h1__script { display: block; font-family: 'Alex Brush', cursive; font-weight: 400; font-size: 1.35em; line-height: 1; color: #c79544; letter-spacing: 0; }
@media (min-width: 640px) { .hm-h1 { font-size: 3rem; } }
@media (min-width: 1100px) { .hm-h1 { font-size: 3.5rem; } }

.hm-lead { margin: 1.1rem auto 0; max-width: 34rem; font-size: 1rem; line-height: 1.75; color: #57534e; }
@media (min-width: 900px) { .hm-lead { margin-left: 0; font-size: 1.08rem; } }

.hm-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.75rem; }
.hm-actions .wt-btn { text-decoration: none; }
@media (min-width: 900px) { .hm-actions { justify-content: flex-start; } }

.hm-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem 1.1rem; margin: 1.1rem 0 0; padding: 0; list-style: none; font-size: 0.78rem; color: #78716c; }
.hm-trust li { display: inline-flex; align-items: center; gap: 0.35rem; }
.hm-trust svg { width: 0.9rem; height: 0.9rem; color: #c79544; }
@media (min-width: 900px) { .hm-trust { justify-content: flex-start; } }

/* Phone mockup */
.hm-visual { position: relative; display: flex; justify-content: center; padding: 1rem 0 1.5rem; }
.hm-visual::before {
    content: ''; position: absolute; top: 8%; left: 50%; width: min(26rem, 90%); aspect-ratio: 1;
    transform: translateX(-50%); border-radius: 999px;
    background: radial-gradient(circle, rgba(199, 149, 68, 0.28) 0%, rgba(199, 149, 68, 0) 68%);
    pointer-events: none;
}
.hm-phone { position: relative; width: min(62vw, 16rem); aspect-ratio: 1122 / 2262; filter: drop-shadow(0 30px 35px rgba(80, 55, 20, 0.28)); }
@media (min-width: 900px) { .hm-phone { width: 18.5rem; } }
.hm-phone__frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 3; pointer-events: none; }
.hm-phone__screen { position: absolute; width: 92%; height: 95%; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 10% / 5%; overflow: hidden; z-index: 2; background: #efe7da; }
.hm-phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

.hm-float {
    position: absolute; z-index: 4; display: flex; align-items: center; gap: 0.55rem;
    padding: 0.55rem 0.8rem; border-radius: 0.9rem; background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(199, 149, 68, 0.2); box-shadow: 0 16px 30px -18px rgba(80, 55, 20, 0.55);
    font-size: 0.72rem; line-height: 1.3; color: #44403c; white-space: nowrap;
}
.hm-float strong { display: block; font-size: 0.78rem; color: #292524; }
.hm-float__icon { display: inline-flex; align-items: center; justify-content: center; width: 1.8rem; height: 1.8rem; border-radius: 0.6rem; flex-shrink: 0; }
.hm-float__icon svg { width: 1rem; height: 1rem; }
.hm-float__icon--ok { background: rgba(132, 204, 22, 0.16); color: #4d7c0f; }
.hm-float__icon--gold { background: rgba(199, 149, 68, 0.14); color: #a67a36; }
.hm-float--rsvp { top: 22%; left: calc(50% - min(62vw, 16rem) / 2 - 2.25rem); }
.hm-float--wish { bottom: 20%; right: calc(50% - min(62vw, 16rem) / 2 - 2.25rem); }
@media (max-width: 420px) { .hm-float--rsvp { left: 0; } .hm-float--wish { right: 0; } }
@media (min-width: 900px) {
    .hm-float--rsvp { left: calc(50% - 9.25rem - 3rem); }
    .hm-float--wish { right: calc(50% - 9.25rem - 3rem); }
}
@keyframes hmFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- Sections ---------- */
.hm-section { margin-top: 4.5rem; }
@media (min-width: 900px) { .hm-section { margin-top: 6rem; } }
.hm-head { text-align: center; max-width: 42rem; margin: 0 auto 2rem; }
.hm-head__script { display: block; font-family: 'Alex Brush', cursive; font-size: 2.1rem; line-height: 1.1; color: #c79544; }
.hm-h2 { margin: 0.2rem 0 0; font-family: 'Playfair Display', Georgia, serif; font-size: 1.65rem; font-weight: 700; line-height: 1.25; color: #292524; }
.hm-head p { margin: 0.75rem auto 0; font-size: 0.95rem; line-height: 1.7; color: #57534e; }
@media (min-width: 640px) { .hm-h2 { font-size: 2.2rem; } }

.hm-card { border-radius: 1.25rem; background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(199, 149, 68, 0.2); box-shadow: 0 24px 50px -40px rgba(120, 90, 40, 0.6); }

/* Features */
.hm-features { display: grid; gap: 0.85rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 600px) { .hm-features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .hm-features { grid-template-columns: repeat(3, 1fr); } }
.hm-feature { padding: 1.35rem; }
.hm-feature__icon { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 0.85rem; background: rgba(199, 149, 68, 0.13); color: #a67a36; }
.hm-feature__icon svg { width: 1.3rem; height: 1.3rem; }
.hm-feature h3 { margin: 0.9rem 0 0; font-size: 1rem; font-weight: 700; color: #292524; }
.hm-feature p { margin: 0.35rem 0 0; font-size: 0.86rem; line-height: 1.65; color: #57534e; }

/* Steps */
.hm-steps { display: grid; gap: 0.85rem; margin: 0; padding: 0; list-style: none; counter-reset: hmstep; }
@media (min-width: 800px) { .hm-steps { grid-template-columns: repeat(3, 1fr); } }
.hm-step { position: relative; padding: 1.5rem 1.35rem; }
.hm-step::before { counter-increment: hmstep; content: counter(hmstep); display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; border-radius: 999px; background: #c79544; color: #fff; font-weight: 700; }
.hm-step h3 { margin: 0.85rem 0 0; font-family: 'Playfair Display', Georgia, serif; font-size: 1.15rem; color: #292524; }
.hm-step p { margin: 0.4rem 0 0; font-size: 0.86rem; line-height: 1.65; color: #57534e; }
.hm-center { text-align: center; margin-top: 1.75rem; }
.hm-center .wt-btn { text-decoration: none; }

/* Pricing */
.hm-pricing { display: grid; gap: 0.85rem; }
@media (min-width: 700px) { .hm-pricing { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .hm-pricing { grid-template-columns: repeat(4, 1fr); } }
.hm-price { position: relative; display: flex; flex-direction: column; padding: 1.4rem 1.25rem; }
.hm-price--free { background: linear-gradient(160deg, #fffaf1 0%, #f6ead6 100%); border: 2px solid #c79544; }
.hm-price__flag { position: absolute; top: -0.7rem; left: 1.25rem; padding: 0.2rem 0.65rem; border-radius: 999px; background: #c79544; color: #fff; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.hm-price__name { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #78716c; }
.hm-price__amount { margin-top: 0.5rem; font-family: 'Playfair Display', Georgia, serif; font-size: 2rem; font-weight: 700; color: #292524; }
.hm-price__was { margin-left: 0.35rem; font-size: 0.85rem; font-weight: 400; color: #a8a29e; text-decoration: line-through; }
.hm-price__devices { margin-top: 0.2rem; font-size: 0.86rem; font-weight: 600; color: #a67a36; }
.hm-price__note { margin: 0.6rem 0 0; font-size: 0.8rem; line-height: 1.6; color: #57534e; flex: 1; }
.hm-price .wt-btn { margin-top: 1rem; text-decoration: none; }
.hm-price-foot { margin: 1rem 0 0; text-align: center; font-size: 0.78rem; color: #78716c; }

/* Digital vs paper */
.hm-compare { display: grid; gap: 0.85rem; }
@media (min-width: 760px) { .hm-compare { grid-template-columns: 1fr 1fr; } }
.hm-compare__col { padding: 1.4rem 1.35rem; }
.hm-compare__col--digital { border: 2px solid rgba(199, 149, 68, 0.55); }
.hm-compare__col h3 { margin: 0; font-size: 1rem; font-weight: 700; color: #292524; }
.hm-compare__col ul { margin: 0.85rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.hm-compare__col li { display: flex; gap: 0.55rem; font-size: 0.86rem; line-height: 1.55; color: #57534e; }
.hm-compare__col svg { flex-shrink: 0; width: 1.05rem; height: 1.05rem; margin-top: 0.15rem; }
.hm-compare__col--digital svg { color: #4d7c0f; }
.hm-compare__col--paper svg { color: #a8a29e; }

/* FAQ */
.hm-faq { max-width: 46rem; margin: 0 auto; display: grid; gap: 0.6rem; }
.hm-faq details { border-radius: 1rem; background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(199, 149, 68, 0.2); }
.hm-faq details.is-highlight { border: 2px solid #c79544; background: #fffaf1; }
.hm-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.95rem; font-weight: 600; color: #292524; }
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary::after { content: '+'; flex-shrink: 0; font-size: 1.35rem; font-weight: 400; line-height: 1; color: #c79544; transition: transform 0.2s ease; }
.hm-faq details[open] summary::after { transform: rotate(45deg); }
.hm-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; }
.hm-faq details p { margin: 0; padding: 0 1.15rem 1.1rem; font-size: 0.88rem; line-height: 1.7; color: #57534e; }
.hm-faq a { color: #a67a36; font-weight: 600; }

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

/* Sticky mobile CTA */
.hm-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.97); border-top: 1px solid rgba(199, 149, 68, 0.22);
    box-shadow: 0 -12px 30px -20px rgba(80, 55, 20, 0.45);
    transform: translateY(110%); transition: transform 0.3s ease;
}
.hm-sticky.is-visible { transform: translateY(0); }
.hm-sticky__text { flex: 1; min-width: 0; line-height: 1.25; }
.hm-sticky__text strong { display: block; font-size: 0.85rem; color: #292524; }
.hm-sticky__text span { font-size: 0.72rem; color: #78716c; }
.hm-sticky .wt-btn { flex-shrink: 0; min-height: 2.75rem; text-decoration: none; }
@media (min-width: 900px) { .hm-sticky { display: none; } }

/* ---------- Hero entrance (fade up) ----------
   Transform + opacity only (composited, no layout work), short and staggered, skipped for
   reduced motion. The phone starts partly visible so the hero image still paints early. */
@media (prefers-reduced-motion: no-preference) {
    .hm-hero__text > * { animation: hmFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
    .hm-hero__text > :nth-child(1) { animation-delay: 0.05s; }
    .hm-hero__text > :nth-child(2) { animation-delay: 0.12s; }
    .hm-hero__text > :nth-child(3) { animation-delay: 0.22s; }
    .hm-hero__text > :nth-child(4) { animation-delay: 0.3s; }
    .hm-hero__text > :nth-child(5) { animation-delay: 0.38s; }
    .hm-phone { animation: hmPhoneIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both; }
    .hm-visual::before { animation: hmFadeIn 1.2s ease-out 0.2s both; }
    /* Feature cards fade in once, then keep their gentle float */
    .hm-float--rsvp { animation: hmFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both, hmFloat 5s ease-in-out 1.15s infinite; }
    .hm-float--wish { animation: hmFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both, hmFloat 5s ease-in-out 2.3s infinite; }
}
@keyframes hmFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hmFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes hmPhoneIn { from { opacity: 0.35; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }

/* ---------- Design picker modal ---------- */
.hm-modal-open, .hm-modal-open body { overflow: hidden; }
.hm-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 640px) { .hm-modal { align-items: center; padding: 1.5rem; } }
.hm-modal[hidden] { display: none; }
.hm-modal__backdrop { position: absolute; inset: 0; background: rgba(28, 25, 23, 0.55); opacity: 0; transition: opacity 0.25s ease; }
.hm-modal__dialog {
    position: relative; width: 100%; max-width: 30rem; max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem);
    overflow-y: auto; overscroll-behavior: contain;
    padding: 1.75rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
    border-radius: 1.5rem 1.5rem 0 0; background: #fbf7f0; border: 1px solid rgba(199, 149, 68, 0.25);
    box-shadow: 0 40px 80px -30px rgba(41, 37, 36, 0.6); text-align: center; outline: none;
    opacity: 0; transform: translateY(40px); transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 640px) {
    .hm-modal__dialog { padding: 2rem 1.75rem 1.75rem; border-radius: 1.5rem; transform: translateY(16px) scale(0.96); }
    .hm-modal__dialog--2 { max-width: 40rem; }
    .hm-modal__dialog--3 { max-width: 54rem; }
}
.hm-modal.is-open .hm-modal__backdrop { opacity: 1; }
.hm-modal.is-open .hm-modal__dialog { opacity: 1; transform: none; }
.hm-modal.is-open .hm-pick { animation: hmFadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both; }
.hm-modal.is-open .hm-pick:nth-child(2) { animation-delay: 0.15s; }
.hm-modal.is-open .hm-pick:nth-child(3) { animation-delay: 0.22s; }
@media (prefers-reduced-motion: reduce) {
    .hm-modal__backdrop, .hm-modal__dialog { transition: none; }
    .hm-modal.is-open .hm-pick { animation: none; }
}
.hm-modal__close {
    position: absolute; top: 0.75rem; right: 0.75rem; display: inline-flex; align-items: center; justify-content: center;
    width: 2.5rem; height: 2.5rem; border: 0; border-radius: 999px; background: rgba(199, 149, 68, 0.12); color: #57534e; cursor: pointer;
}
.hm-modal__close:hover { background: rgba(199, 149, 68, 0.22); }
.hm-modal__close svg { width: 1.1rem; height: 1.1rem; }
.hm-modal__script { display: block; font-family: 'Alex Brush', cursive; font-size: 1.9rem; line-height: 1.1; color: #c79544; }
.hm-modal__title { margin: 0.15rem 0 0; font-family: 'Playfair Display', Georgia, serif; font-size: 1.6rem; font-weight: 700; color: #292524; }
.hm-modal__desc { margin: 0.45rem auto 0; max-width: 26rem; font-size: 0.88rem; line-height: 1.6; color: #57534e; }

/* Design carousel: fixed-size cards in a swipeable row; each poster is shown whole */
.hm-carousel { --pick-w: 9.4rem; --pick-media-h: 12rem; position: relative; margin: 1rem -0.25rem 0; }
@media (min-width: 640px) { .hm-carousel { --pick-w: 11rem; --pick-media-h: 14rem; margin-top: 1.25rem; } }
.hm-picks {
    display: flex; gap: 0.7rem; margin: 0; padding: 0.25rem 0.25rem 0.4rem; list-style: none;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 0.25rem;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.hm-picks::-webkit-scrollbar { display: none; }
/* Centre the cards when they all fit */
.hm-picks > .hm-pick:first-child { margin-left: auto; }
.hm-picks > .hm-pick:last-child { margin-right: auto; }
.hm-pick {
    display: flex; flex-direction: column; flex: 0 0 var(--pick-w); width: var(--pick-w);
    overflow: hidden; border-radius: 0.9rem; background: #fff; border: 1px solid rgba(199, 149, 68, 0.22);
    text-align: left; scroll-snap-align: start;
}
/* Same box for every design; the whole poster sits inside a phone frame */
.hm-pick__media {
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    height: var(--pick-media-h); padding: 0.6rem 0 0.3rem;
}
.hm-pick__phone { position: relative; display: block; height: 100%; aspect-ratio: 1122 / 2262; filter: drop-shadow(0 10px 12px rgba(80, 55, 20, 0.28)); transition: transform 0.4s ease; }
.hm-pick__frame { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.hm-pick__screen { position: absolute; top: 50%; left: 50%; z-index: 1; width: 92%; height: 95%; overflow: hidden; border-radius: 10% / 5%; background: #efe7da; transform: translate(-50%, -50%); }
.hm-pick__screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hm-pick:hover .hm-pick__phone { transform: translateY(-3px); }
.hm-pick__body { display: flex; flex: 1; flex-direction: column; gap: 0.3rem; padding: 0.65rem 0.7rem 0.8rem; min-width: 0; }
.hm-pick h3 { margin: 0; overflow: hidden; font-family: 'Playfair Display', Georgia, serif; font-size: 0.86rem; line-height: 1.25; color: #292524; white-space: nowrap; text-overflow: ellipsis; }
.hm-pick p { display: -webkit-box; margin: 0; overflow: hidden; font-size: 0.66rem; line-height: 1.35; color: #78716c; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: calc(0.66rem * 1.35 * 2); }
.hm-pick__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem; margin-top: auto; padding-top: 0.75rem; }
.hm-pick__actions .wt-btn { min-height: 2.1rem; padding: 0.35rem 0.4rem; gap: 0.25rem; font-size: 0.68rem; text-decoration: none; }
.hm-pick__actions .wt-btn svg { width: 0.8rem; height: 0.8rem; }
@media (min-width: 640px) {
    .hm-pick h3 { font-size: 1rem; }
    .hm-pick p { font-size: 0.74rem; min-height: calc(0.74rem * 1.35 * 2); }
    .hm-pick__actions .wt-btn { font-size: 0.7rem; }
}
.hm-carousel__nav {
    position: absolute; top: calc(var(--pick-media-h) / 2 + 0.25rem); z-index: 2; transform: translateY(-50%);
    display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem;
    border: 1px solid rgba(199, 149, 68, 0.35); border-radius: 999px; background: rgba(255, 255, 255, 0.95);
    color: #8a6224; box-shadow: 0 6px 16px -8px rgba(80, 55, 20, 0.5); cursor: pointer;
}
.hm-carousel__nav[hidden] { display: none; }
.hm-carousel__nav svg { width: 1rem; height: 1rem; }
.hm-carousel__nav--prev { left: -0.2rem; }
.hm-carousel__nav--next { right: -0.2rem; }
.hm-carousel__dots { display: flex; justify-content: center; gap: 0.35rem; margin-top: 0.35rem; }
.hm-carousel__dots[hidden] { display: none; }
.hm-carousel__dots span { width: 0.4rem; height: 0.4rem; border-radius: 999px; background: rgba(199, 149, 68, 0.3); transition: width 0.25s ease, background-color 0.25s ease; }
.hm-carousel__dots span.is-active { width: 1rem; background: #c79544; }
.hm-modal__foot { margin-top: 1rem; }
.hm-modal__foot .wt-btn { text-decoration: none; }
.hm-modal__foot svg { width: 1rem; height: 1rem; }

/* Picker on phones: a bottom sheet of at most 70% of the screen. Cards keep one width; only the
   preview box follows the screen height so the header, one row of cards and the button fit. */
@media (max-width: 639px) {
    .hm-modal__dialog {
        max-height: 70vh;
        max-height: 70dvh;
        padding: 1.25rem 1rem calc(1rem + env(safe-area-inset-bottom));
        border-radius: 1.4rem 1.4rem 0 0;
    }
    .hm-modal__close { top: 0.6rem; right: 0.6rem; width: 2.2rem; height: 2.2rem; }
    .hm-modal__close svg { width: 1rem; height: 1rem; }
    .hm-modal__script { font-size: 1.5rem; }
    .hm-modal__title { margin: 0.1rem 0 0; padding: 0 2rem; font-size: 1.3rem; }
    .hm-modal__desc { margin-top: 0.35rem; font-size: 0.78rem; line-height: 1.5; }
    .hm-carousel { --pick-media-h: clamp(8rem, calc(65vh - 22rem), 13rem); }
    @supports (height: 1dvh) {
        .hm-carousel { --pick-media-h: clamp(8rem, calc(65dvh - 22rem), 13rem); }
    }
    .hm-modal__foot { margin-top: 0.9rem; }
}
/* Shorter phones: drop the script line and taglines rather than shrinking the previews too far */
@media (max-width: 639px) and (max-height: 760px) {
    .hm-modal__script,
    .hm-pick p { display: none; }
    .hm-carousel { --pick-media-h: clamp(5.8rem, calc(66vh - 18.2rem), 13rem); }
}
@supports (height: 1dvh) {
    @media (max-width: 639px) and (max-height: 760px) {
        .hm-carousel { --pick-media-h: clamp(5.8rem, calc(66dvh - 18.2rem), 13rem); }
    }
}
@media (max-width: 639px) {
    /* Narrow cards: full-width Create button, icon-only Preview beside it */
    .hm-pick__actions { grid-template-columns: minmax(0, 1fr) auto; }
    .hm-pick__actions .wt-btn:last-child { width: 2.1rem; padding: 0; }
    .hm-pick__actions .wt-btn:last-child span { display: none; }
}
