/* ── PubQuizHub landing ────────────────────────────────────────────────────
   Public marketing page for pubquizhub.app, served by the Perfect DJ app.
   Builds on the tokens in global.css and the .container/.btn primitives in
   components.css — only the page-specific blocks live here. */

.pqh-page { background: var(--color-surface-base); display: flex; flex-direction: column; min-height: 100vh }

.pqh-skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; padding: 12px 18px; background: var(--color-primary); color: #FFFFFF; border-radius: 0 0 var(--radius-button) 0; font-weight: 600 }
.pqh-skip-link:focus { left: 0 }

/* ── Layout ───────────────────────────────────────────────────────────────
   The marketing page keeps its own 1152px measure (max-w-6xl) rather than the
   app's 1200px .container, so it matches the design it shipped with. */
.pqh-container { max-width: 1152px; width: 100%; margin: 0 auto; padding: 0 24px }

/* ── Header ── */
.pqh-header { background: var(--color-surface-base); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 3px rgba(26, 22, 34, 0.06) }
.pqh-header__inner { display: flex; align-items: center; gap: 24px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap }
.pqh-lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; border-radius: var(--radius-button); margin: 0 }
.pqh-lockup__logo { width: auto; height: 36px; flex-shrink: 0 }
.pqh-lockup__text { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.1 }
.pqh-lockup__name { font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--color-text-primary) }
.pqh-lockup__byline { margin-top: 3px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-tertiary) }
.pqh-lockup:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px }
/* Hero lockup is the large repeat of the wordmark the design leads with. */
.pqh-lockup--lg { gap: 12px }
.pqh-lockup--lg .pqh-lockup__logo { height: 64px }
.pqh-lockup--lg .pqh-lockup__name { font-size: 36px }

.pqh-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; flex-wrap: wrap }
.pqh-nav a { font-size: 14px; font-weight: 600; color: var(--color-text-secondary); text-decoration: none }
.pqh-nav a:hover { color: var(--color-primary) }
.pqh-nav a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: 4px }
.pqh-header__actions { display: flex; align-items: center; gap: 8px }

/* ── Buttons: tighten the shared .btn for this page ── */
.pqh-btn { min-width: 0; padding: 0 20px; font-size: 14px }

/* ── Hero ── */
.pqh-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--color-border); background: var(--color-surface-base) }
.pqh-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(123, 0, 212, 0.10), transparent 55%); pointer-events: none }
.pqh-hero__inner { position: relative; display: flex; flex-direction: column; gap: 32px; padding-top: 112px; padding-bottom: 112px }
.pqh-hero__copy { max-width: 768px }
.pqh-hero h1 { font-family: var(--font-display); font-size: clamp(36px, 5vw, 60px); font-weight: 800; line-height: 1.25; letter-spacing: -0.025em; color: var(--color-text-primary) }
.pqh-hero__lead { margin-top: 20px; font-size: clamp(18px, 2vw, 20px); line-height: 1.4; color: var(--color-text-secondary) }

.pqh-actions { display: flex; flex-wrap: wrap; gap: 12px }

/* ── Section shell ── */
.pqh-section { padding: 72px 0; border-bottom: 1px solid var(--color-border) }
.pqh-section--tint { background: var(--color-surface-section) }
.pqh-section--final { background: var(--color-primary-light) }
.pqh-section h2 { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; color: var(--color-text-primary); max-width: 768px }
.pqh-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-primary); margin-bottom: 12px }
.pqh-lede { margin-top: 16px; max-width: 720px; font-size: 17px; line-height: 1.6; color: var(--color-text-secondary) }
.pqh-pullquote { margin-top: 20px; font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--color-primary) }

/* ── How it works ── */
.pqh-steps { list-style: none; display: grid; gap: 16px; margin-top: 40px; grid-template-columns: repeat(4, 1fr) }
.pqh-step { background: var(--color-surface-base); border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow-card) }
.pqh-step__number { display: block; font-family: var(--font-display); font-size: 32px; font-weight: 800; color: var(--color-primary); line-height: 1 }
.pqh-step h3 { margin-top: 12px; font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--color-text-primary) }
.pqh-step p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--color-text-secondary) }

/* ── For quizmasters ── */
.pqh-capabilities { display: grid; gap: 16px; margin-top: 40px; grid-template-columns: repeat(2, 1fr) }
.pqh-capability { background: var(--color-surface-section); border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 24px }
.pqh-capability h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--color-text-primary) }
.pqh-capability p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--color-text-secondary) }

/* ── What's included ── */
.pqh-products { list-style: none; display: grid; gap: 16px; margin-top: 40px; grid-template-columns: repeat(2, 1fr) }
.pqh-product { background: var(--color-surface-base); border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow-card) }
.pqh-product h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--color-text-primary) }
.pqh-product p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--color-text-secondary) }
.pqh-link { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--color-primary); text-decoration: none }
.pqh-link:hover { color: var(--color-primary-hover); text-decoration: underline }
.pqh-link:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: 4px }

/* ── Venue enquiry strip ── */
.pqh-section--split { padding: 44px 0 }
.pqh-split { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap }
.pqh-split__title { font-size: clamp(22px, 2.6vw, 30px) }

/* ── Footer ── */
.pqh-footer { margin-top: auto; background: var(--color-surface-base); border-top: 1px solid var(--color-border); padding: 48px 0 24px }
.pqh-footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap }
.pqh-footer__brand { display: flex; flex-direction: column; align-items: flex-start; max-width: 420px }
.pqh-footer__note { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--color-text-secondary) }
.pqh-footer__nav { display: grid; grid-template-columns: repeat(2, minmax(160px, auto)); gap: 40px }
.pqh-footer__nav a { display: block; margin-top: 8px; font-size: 14px; color: var(--color-text-secondary); text-decoration: none }
.pqh-footer__nav a:hover { color: var(--color-primary) }
.pqh-footer__nav a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: 4px }
.pqh-footer__heading { font-size: 14px; font-weight: 700; color: var(--color-text-primary) }
.pqh-footer__legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--color-border-subtle); font-size: 13px; color: var(--color-text-secondary) }
.pqh-footer__legal a { color: var(--color-primary); text-decoration: none }
.pqh-footer__legal a:hover { text-decoration: underline }
.pqh-footer__legal span { margin: 0 8px; color: var(--color-text-tertiary) }

/* ── Responsive ──
   Breakpoints follow the design the page shipped with: `sm` = 640px,
   `lg` = 1024px. */
@media (max-width: 1023px) {
    /* Below lg the header stacks and the CTAs move out of the bar (`hidden lg:flex`). */
    .pqh-header__inner { flex-direction: column; align-items: flex-start; gap: 12px }
    .pqh-nav { margin-left: 0; gap: 16px }
    .pqh-header__actions { display: none }
    .pqh-hero__inner { padding-top: 96px; padding-bottom: 96px }
    .pqh-section { padding: 64px 0 }
    .pqh-steps { grid-template-columns: repeat(2, 1fr) }
}
@media (max-width: 639px) {
    .pqh-lockup--lg .pqh-lockup__logo { height: 56px }
    .pqh-lockup--lg .pqh-lockup__name { font-size: 24px }
    .pqh-hero__inner { padding-top: 64px; padding-bottom: 64px }
    .pqh-section { padding: 56px 0 }
    .pqh-steps, .pqh-capabilities, .pqh-products { grid-template-columns: 1fr }
    .pqh-actions .pqh-btn { width: 100% }
}
