/* GrindCast ZM — poster templates. Sizes are native pixels; the studio scales them for preview. */
@font-face { font-family: 'GCZ Display'; src: url('fonts/SpaceGrotesk.woff') format('woff'); font-weight: 300 700; font-display: block; }
@font-face { font-family: 'GCZ Body'; src: url('fonts/PlusJakartaSans.woff') format('woff'); font-weight: 200 800; font-display: block; }

.poster {
    --navy: #0a192f; --navy-2: #0d1f3a; --navy-3: #112240; --navy-4: #233a5e;
    --orange: #f57c00; --orange-2: #ff9800; --text: #ccd6f6; --strong: #f3f7ff; --muted: #9aa6c4;
    position: relative; overflow: hidden; background: var(--navy); color: var(--strong);
    font-family: 'GCZ Body', 'Plus Jakarta Sans', sans-serif; transform-origin: top left;
    -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision;
}
.poster *, .poster *::before, .poster *::after { box-sizing: border-box; margin: 0; padding: 0; }
.poster .display { font-family: 'GCZ Display', 'Space Grotesk', sans-serif; letter-spacing: -0.035em; font-weight: 700; }
.poster .abs { position: absolute; }
.poster .glow { position: absolute; inset: 0; background:
    radial-gradient(circle at 88% 8%, rgba(245, 124, 0, 0.38), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(35, 58, 94, 0.95), transparent 55%),
    linear-gradient(180deg, #0a192f, #081427); }
.poster .dots { position: absolute; inset: 0; opacity: 0.55;
    background-image: radial-gradient(rgba(204, 214, 246, 0.16) 2px, transparent 2.5px); background-size: 34px 34px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 65%); mask-image: linear-gradient(180deg, #000 0%, transparent 65%); }
.poster .logo { display: block; }
.poster .pill { display: inline-flex; align-items: center; gap: 12px; border: 2px solid rgba(245, 124, 0, 0.55); background: rgba(245, 124, 0, 0.1);
    color: var(--strong); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; border-radius: 999px; white-space: nowrap; }
.poster .pill .dot { width: 14px; height: 14px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 6px rgba(255, 59, 48, 0.22); }
.poster .kicker { color: var(--orange-2); font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.poster .fit { overflow: hidden; }
.poster .muted { color: var(--muted); }
.poster .accent { color: var(--orange-2); }

/* Photo with brand arc */
.poster .photo { position: absolute; }
.poster .photo .ring { position: absolute; inset: -6%; width: 112%; height: 112%; overflow: visible; }
.poster .photo .frame { position: absolute; inset: 0; border-radius: 9999px; overflow: hidden; background: linear-gradient(135deg, #172a45, #050e1c); border: 6px solid rgba(255, 255, 255, 0.06); }
.poster .photo .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }
.poster .photo .frame .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.poster .photo.rounded .frame { border-radius: 48px; }

/* Info chips */
.poster .chips { display: flex; gap: 16px; flex-wrap: wrap; }
.poster .chip { display: inline-flex; align-items: center; gap: 14px; background: rgba(17, 34, 64, 0.88); border: 2px solid rgba(204, 214, 246, 0.1);
    border-radius: 22px; color: var(--strong); font-weight: 700; white-space: nowrap; }
.poster .chip svg { flex-shrink: 0; }
.poster .cta { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, #ff9800, #f57c00); color: var(--navy); font-weight: 800; }
.poster .cta .go { font-family: 'GCZ Display', sans-serif; letter-spacing: -0.02em; }
.poster .qr { background: #fff; border-radius: 22px; display: flex; align-items: center; justify-content: center; }
.poster .qr svg { width: 100%; height: 100%; display: block; }
.poster .stack span { display: inline-block; background: #050e1c; font-family: 'GCZ Display', sans-serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1; text-transform: uppercase; }

/* ── 1) Square 1080×1080 ─────────────────────────── */
.p-square { width: 1080px; height: 1080px; }
.p-square .logo { position: absolute; left: 72px; top: 68px; height: 58px; }
.p-square .pill { position: absolute; right: 72px; top: 70px; font-size: 22px; padding: 14px 24px; }
.p-square .kicker { position: absolute; left: 72px; top: 196px; font-size: 24px; }
.p-square .title { position: absolute; left: 72px; top: 244px; width: 540px; height: 352px; font-size: 80px; line-height: 0.98; display: flex; align-items: flex-start; }
.p-square .guest { position: absolute; left: 72px; top: 622px; width: 540px; }
.p-square .guest small { display: block; font-size: 22px; font-weight: 700; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }
.p-square .guest b { display: block; font-size: 46px; color: var(--orange-2); line-height: 1.05; margin-top: 8px; }
.p-square .guest em { display: block; font-style: normal; font-size: 26px; color: var(--text); margin-top: 8px; line-height: 1.25; }
.p-square .photo { right: 72px; top: 210px; width: 340px; height: 450px; }
.p-square .chips { position: absolute; left: 72px; right: 72px; bottom: 182px; }
.p-square .chip { font-size: 26px; padding: 18px 24px; }
.p-square .cta { position: absolute; left: 72px; right: 72px; bottom: 66px; height: 94px; border-radius: 26px; padding: 0 34px; font-size: 28px; }
.p-square .cta .go { font-size: 36px; }

/* ── 2) Story 1080×1920 ──────────────────────────── */
.p-story { width: 1080px; height: 1920px; }
.p-story .logo { position: absolute; left: 50%; transform: translateX(-50%); top: 96px; height: 72px; }
.p-story .pill { position: absolute; left: 50%; transform: translateX(-50%); top: 206px; font-size: 26px; padding: 16px 30px; }
.p-story .photo { left: 50%; margin-left: -310px; top: 340px; width: 620px; height: 720px; }
.p-story .stack { position: absolute; left: 150px; top: 900px; transform: rotate(-4deg); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.p-story .stack span { font-size: 52px; padding: 12px 22px; }
.p-story .guest { position: absolute; left: 90px; right: 90px; top: 1118px; text-align: center; }
.p-story .guest b { display: block; font-size: 64px; line-height: 1.02; color: var(--orange-2); }
.p-story .guest em { display: block; font-style: normal; font-size: 32px; color: var(--text); margin-top: 10px; }
.p-story .title { position: absolute; left: 90px; right: 90px; top: 1260px; height: 250px; font-size: 76px; line-height: 1.0; text-align: center; display: flex; align-items: flex-start; justify-content: center; }
.p-story .chips { position: absolute; left: 90px; right: 90px; top: 1536px; justify-content: center; }
.p-story .chip { font-size: 30px; padding: 20px 28px; }
.p-story .cta { position: absolute; left: 90px; right: 90px; bottom: 96px; height: 170px; border-radius: 34px; padding: 0 22px 0 44px; font-size: 26px; }
.p-story .cta .go { font-size: 50px; display: block; }
.p-story .cta .url { display: block; font-size: 24px; font-weight: 700; opacity: 0.8; margin-top: 6px; }
.p-story .cta .qr { width: 132px; height: 132px; padding: 10px; border-radius: 20px; }

/* ── 3) Wide 1200×628 ────────────────────────────── */
.p-wide { width: 1200px; height: 628px; }
.p-wide .logo { position: absolute; left: 56px; top: 50px; height: 44px; }
.p-wide .kicker { position: absolute; left: 56px; top: 128px; font-size: 18px; }
.p-wide .title { position: absolute; left: 56px; top: 162px; width: 700px; height: 196px; font-size: 60px; line-height: 1.0; display: flex; align-items: flex-start; }
.p-wide .guest { position: absolute; left: 56px; top: 372px; width: 700px; font-size: 26px; color: var(--text); }
.p-wide .guest b { color: var(--orange-2); }
.p-wide .chips { position: absolute; left: 56px; top: 434px; gap: 12px; }
.p-wide .chip { font-size: 20px; padding: 13px 18px; border-radius: 16px; gap: 10px; }
.p-wide .cta { position: absolute; left: 56px; width: 700px; bottom: 44px; height: 64px; border-radius: 18px; padding: 0 24px; font-size: 20px; }
.p-wide .cta .go { font-size: 24px; }
.p-wide .photo { right: 64px; top: 64px; width: 344px; height: 500px; }

/* ── 4) Countdown story 1080×1920 ────────────────── */
.p-count { width: 1080px; height: 1920px; }
.p-count .logo { position: absolute; left: 50%; transform: translateX(-50%); top: 96px; height: 72px; }
.p-count .big { position: absolute; left: 0; right: 0; top: 250px; text-align: center; }
.p-count .big .n { font-size: 640px; line-height: 0.82; color: transparent; -webkit-text-stroke: 6px var(--orange-2); }
.p-count .big .n.word { font-size: 230px; line-height: 0.9; color: var(--orange-2); -webkit-text-stroke: 0; }
.p-count .big .lbl { display: inline-block; margin-top: 28px; font-size: 64px; background: linear-gradient(135deg, #ff9800, #f57c00); color: var(--navy); padding: 14px 34px; border-radius: 20px; transform: rotate(-3deg); }
.p-count .who { position: absolute; left: 90px; right: 90px; top: 1086px; display: flex; align-items: center; gap: 30px; }
.p-count .who .photo { position: relative; width: 190px; height: 190px; flex-shrink: 0; }
.p-count .who b { display: block; font-size: 50px; color: var(--orange-2); line-height: 1.05; }
.p-count .who em { display: block; font-style: normal; font-size: 28px; color: var(--text); margin-top: 6px; }
.p-count .title { position: absolute; left: 90px; right: 90px; top: 1330px; height: 230px; font-size: 70px; line-height: 1.02; display: flex; align-items: flex-start; }
.p-count .chips { position: absolute; left: 90px; right: 90px; top: 1580px; }
.p-count .chip { font-size: 30px; padding: 20px 28px; }
.p-count .cta { position: absolute; left: 90px; right: 90px; bottom: 96px; height: 130px; border-radius: 32px; padding: 0 40px; font-size: 26px; }
.p-count .cta .go { font-size: 46px; }

/* ── 5) Brand promo 1080×1350 ────────────────────── */
.p-brand { width: 1080px; height: 1350px; }
.p-brand .hero { position: absolute; left: 0; right: 0; top: 0; height: 690px; }
.p-brand .hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; display: block; }
.p-brand .hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 25, 47, 0.75) 0%, rgba(10, 25, 47, 0.1) 30%, rgba(10, 25, 47, 0.05) 55%, #0a192f 100%); }
.p-brand .logo { position: absolute; left: 72px; top: 64px; height: 58px; z-index: 2; }
.p-brand .pill { position: absolute; right: 72px; top: 66px; z-index: 2; font-size: 22px; padding: 14px 24px; background: rgba(10, 25, 47, 0.7); }
.p-brand .stack { position: absolute; right: 72px; top: 470px; transform: rotate(-5deg); display: flex; flex-direction: column; align-items: flex-end; gap: 8px; z-index: 2; }
.p-brand .stack span { font-size: 56px; padding: 12px 22px; }
.p-brand .headline { position: absolute; left: 72px; right: 72px; top: 712px; height: 300px; font-size: 92px; line-height: 0.96; display: flex; align-items: flex-start; }
.p-brand .copy { position: absolute; left: 72px; right: 72px; top: 1026px; display: flex; flex-direction: column; gap: 26px; }
.p-brand .sub { font-size: 28px; line-height: 1.4; color: var(--text); max-width: 900px; max-height: 118px; overflow: hidden; }
.p-brand .topics { display: flex; flex-wrap: nowrap; gap: 12px; overflow: hidden; }
.p-brand .topics span { white-space: nowrap; flex-shrink: 0; font-size: 22px; font-weight: 700; padding: 10px 18px; border-radius: 999px; background: rgba(245, 124, 0, 0.12); color: var(--orange-2); border: 2px solid rgba(245, 124, 0, 0.25); }
.p-brand .foot { position: absolute; left: 72px; right: 72px; bottom: 56px; display: flex; justify-content: space-between; align-items: center; font-size: 24px; font-weight: 700; color: var(--muted); }
.p-brand .foot b { color: var(--strong); }

/* ── 6) A4 print 1240×1754 (exported at 2× = 300 dpi) ─ */
.p-a4 { width: 1240px; height: 1754px; }
.p-a4 .logo { position: absolute; left: 90px; top: 90px; height: 70px; }
.p-a4 .pill { position: absolute; right: 90px; top: 96px; font-size: 24px; padding: 16px 28px; }
.p-a4 .kicker { position: absolute; left: 90px; top: 250px; font-size: 30px; }
.p-a4 .title { position: absolute; left: 90px; top: 304px; width: 640px; height: 470px; font-size: 92px; line-height: 0.98; display: flex; align-items: flex-start; }
.p-a4 .photo { right: 90px; top: 270px; width: 400px; height: 520px; }
.p-a4 .guest { position: absolute; left: 90px; top: 810px; right: 90px; }
.p-a4 .guest small { display: block; font-size: 26px; font-weight: 700; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }
.p-a4 .guest b { display: block; font-size: 60px; color: var(--orange-2); line-height: 1.05; margin-top: 10px; }
.p-a4 .guest em { display: block; font-style: normal; font-size: 32px; color: var(--text); margin-top: 10px; }
.p-a4 .desc { position: absolute; left: 90px; right: 90px; top: 1010px; height: 150px; font-size: 30px; line-height: 1.5; color: var(--text); }
.p-a4 .chips { position: absolute; left: 90px; right: 90px; top: 1190px; }
.p-a4 .chip { font-size: 32px; padding: 22px 30px; }
.p-a4 .scan { position: absolute; left: 90px; right: 90px; bottom: 90px; height: 330px; border-radius: 40px; background: linear-gradient(135deg, #ff9800, #f57c00); color: var(--navy); display: flex; align-items: center; gap: 48px; padding: 0 50px; }
.p-a4 .scan .qr { width: 250px; height: 250px; padding: 16px; flex-shrink: 0; }
.p-a4 .scan b { display: block; font-family: 'GCZ Display', sans-serif; font-size: 66px; line-height: 1; letter-spacing: -0.03em; }
.p-a4 .scan span { display: block; font-size: 28px; font-weight: 700; margin-top: 16px; opacity: 0.85; }
.p-a4 .scan small { display: block; font-size: 24px; font-weight: 700; margin-top: 20px; }
